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

Re: standard device requests and winusb by Doron

Doron
Wed Apr 18 00:36:20 CDT 2007

you do not manually enable remote wake, the usb core does this for you.

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"dmm" <dmm@discussions.microsoft.com> wrote in message
news:6201A094-E82B-49DF-AE82-439E541ADC4D@microsoft.com...
> 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