Re: Use IOCTL_USB_USER_REQUEST to develop a test program for USB d



Hi Doron,

Thanks for your information. In fact, we do not want to install, not to
write a driver for our program. It takes too much time to install a driver
for our application program. Therefore, we want to control the device
directly in this program. I can understand that the device under the same
root hub will be disabled also by this method and we need to enumerate the
USB device by ourselves.

Can you give me more information about it?

"Doron Holan [MSFT]" wrote:

this is going down a very undocumented and not very supported path. if you
want to test yoru device w/out writing a driver for it, use winusb

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.


"Jimmy" <Jimmy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CF745044-60E3-4D96-94DF-CAD689405A9F@xxxxxxxxxxxxxxxx
Hi,

We want to develop a test program for USB device without driver. I find
the
IOCTL_USB_USER_REQUEST in WDK document and have try to use this IOCTL to
get
some root hub status. It works fine.

But I meet problem when I start to use USBUSER_SET_ROOTPORT_FEATURE
request.
I want to enable the specific port on root hub. But the status of this
port
is always disable when I check it with USBUSER_GET_ROOTPORT_STATUS.

I am sure that the USBUSER_GET_ROOTPORT_STATUS request is successful
because
the port connection status is always correct.

According to WDK, USBUSER_SET_ROOTPORT_FEATURE is not enabled unless the
root hub is disabled. Therefore, I have disable the root hub.

And I have issued USBUSER_GET_BUS_STATISTICS_0 to get bus statistics
information. It shows that the RootHubEnabled == 1 and
RootHubDevicePowerState == 3. It seems that the root hub enters suspend
mode.

Could somebody help me?



.



Relevant Pages

  • Re: Clustered printing issue
    ... tcp/ip port. ... accessible unless you install the printer driver. ... printers restored via the print migrator tool. ...
    (microsoft.public.windows.server.clustering)
  • Re: KMDF Fakemodem not working
    ... I'm using the `Windows Vista and Windows Server Longhorn x86 Checked Build ... install the fakemodem with devcon: ... INf in the sample should tell you how to use devcon to install the driver. ... Why do I need to choose a COM port? ...
    (microsoft.public.development.device.drivers)
  • KMDF Fakemodem not working
    ... I'm trying to develop my first device driver but have some problems getting ... I succeeded to install the WDM version on a Win 2003 Server x86 using the ... I had to disable a real modem driver, ... Why do I need to choose a COM port? ...
    (microsoft.public.development.device.drivers)
  • Re: NDIS WDM driver installation for multi-port NIC
    ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... miniport's inf and to install the miniport driver. ... the miniport driver (the bus driver starts up fine). ... identify the particular port you are communicating with. ...
    (microsoft.public.development.device.drivers)
  • Re: Found, a new rootkit
    ... Your MS-DOS box is no more secure ... machine has a device driver for that device, ... to the serial port. ... So if I install a modem on it, ...
    (Fedora)