You should set the pBuffer parameter of the WDU_Transfer() function toNULL and set the dwBufferSize parameter to 0.

In version 5.2.2 and earlier, set the pBuffer field of the WD_USB_TRANSFERstructure, used in the call to WD_UsbTransfer(), to NULL, and set thedwBytes field of this structure to 0.