Re: Connecting to an USB-Device
From: Maxim S. Shatskih (maxim_at_storagecraft.com)
Date: 02/28/04
- Next message: Maxim S. Shatskih: "Re: DbgPrint in Irql=2"
- Previous message: Maxim S. Shatskih: "Re: System power mode"
- In reply to: Andre Groß: "Connecting to an USB-Device"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Maxim S. Shatskih: "Re: DbgPrint in Irql=2"
- Previous message: Maxim S. Shatskih: "Re: System power mode"
- In reply to: Andre Groß: "Connecting to an USB-Device"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|