Is it possible to do SETFEATURE to USB device from user mode?

Sorry if this post is duplicated…

I would like to make a SETFEATURE request to a USB hub from user mode
without writing a replacement driver. Is this possible? Would I use
the
IOCTL_USB_USER_REQUEST with DeviceIOControl()? How would I obtain a
handle to the hub to do this (if it is the right approach)?

The hub driver does not allow you to send random URBs to it or the
devices attached. What do you want to do with the SETFEAREU command
that you want to send?

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Kurt Fankhauser
Sent: Thursday, August 09, 2007 5:32 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Is it possible to do SETFEATURE to USB device from user
mode?

Sorry if this post is duplicated…

I would like to make a SETFEATURE request to a USB hub from user mode
without writing a replacement driver. Is this possible? Would I use
the
IOCTL_USB_USER_REQUEST with DeviceIOControl()? How would I obtain a
handle to the hub to do this (if it is the right approach)?


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

We are developing a device with an embedded hub. I wanted to manually
control one of the hub’s LED signals to use as an IO line.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Thursday, August 09, 2007 7:51 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Is it possible to do SETFEATURE to USB device from
user mode?

The hub driver does not allow you to send random URBs to it or the
devices attached. What do you want to do with the SETFEAREU command
that you want to send?

d

Report an additional port and enumerate a “fake” device. Install winusb
on the fake device and then translate the endpoint traffic to control
your LED signals. There is no way to do this from a std usbhub
interface.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Kurt Fankhauser
Sent: Friday, August 10, 2007 9:28 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Is it possible to do SETFEATURE to USB device from
user mode?

We are developing a device with an embedded hub. I wanted to manually
control one of the hub’s LED signals to use as an IO line.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Thursday, August 09, 2007 7:51 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Is it possible to do SETFEATURE to USB device from
user mode?

The hub driver does not allow you to send random URBs to it or the
devices attached. What do you want to do with the SETFEAREU command
that you want to send?

d


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer