Re: Connecting to an USB-Device

From: Maxim S. Shatskih (maxim_at_storagecraft.com)
Date: 02/28/04


Date: Sat, 28 Feb 2004 19:52:35 +0300


> (like the USBView Example in the DDK). Now I want to open
> a connection to one of this devices.

You cannot. Windows does not expose the ability to talk to USB device to
anybody but the device's kernel mode driver.

There is facilities for the user mode code to just open some USB endpoint and
send/receive on it.

If the device has a driver - then you can only use the driver's upper
interface, which is surely depends on device class - printers and keyboards
have nothing in common.

And if the device has no driver - then sorry, the devnode start will fail, and
it is very much possibly that USBHUB will just power down this device, so
nobody will be able to talk to it.

You can enumerate the USB devices, but not talk to them.

-- 
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com


Relevant Pages

  • Re: Driver development
    ... Windows, support for the various power modes, hot-plugging. ... Don Burn (MVP, Windows DDK) ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ...
    (microsoft.public.development.device.drivers)
  • Re: WDK v. 7 for USB
    ... Don Burn ... Windows Filesystem and Driver Consulting ... I'm very-very new to this and XP DDK books are all I have. ...
    (microsoft.public.development.device.drivers)
  • Re: How to complie a driver?
    ... Don Burn (MVP, Windows DDK) ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ...
    (microsoft.public.development.device.drivers)
  • Re: Who can tell me where I can download the WDK?
    ... From the WHDC site I see that depending on which links I choose to ... Don Burn (MVP, Windows DDK) ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ...
    (microsoft.public.development.device.drivers)
  • Re: ndisprot, ndisuio, packet - Help plz?
    ... as part of my PhD obligations), I am not however a Windows driver developer. ... I might be good with C/C++ but the first time I looked at the code of the DDK ... >> Does any of this DDK examples really supports overlapped operation? ...
    (microsoft.public.development.device.drivers)

Quantcast