Given: my USB device attached and detected; WinUSB.sys installed and executing.
After obtaining my USB device handle (createfile), I can successfully
execute WinUSB_Initialize. I then call WinUsb_ControlTransfer and fetch the
status. Next I call WinUsb_ControlTransfer to set a feature
(<WINUSB_SETUP_PACKET> RequestType=0, Request=3, Value=1, Index=0, Length=0).
The call fails and the GetLastError string="A device attached to the system
is not functioning."
Note:
1. "Value=1" ==>> DEVICE_REMOTE_WAKEUP
2. This error also occurs when RequestType=1 or 2
Did I set a field incorrectly? Is the sequence of operations incorrect?
Thanks
dmm