Re: USB bulk transfer help needed
From: Arnaud Debaene (adebaene_at_club-internet.fr)
Date: 02/09/05
- Next message: Juha-Pekka Kettunen: "Re: Why my Release exe needs mfc80.dll ?"
- Previous message: Edward H. Fabrega: "Re: ... Why my Release exe needs mfc80.dll ?"
- In reply to: B. Klosterman: "USB bulk transfer help needed"
- Next in thread: Gnum: "Re: USB bulk transfer help needed"
- Reply: Gnum: "Re: USB bulk transfer help needed"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 9 Feb 2005 23:21:44 +0100
B. Klosterman wrote:
> I have never done USB programing before and nedd a little help.
> I using the MS WIN32 C model and would like to poll the OS(WIN2K or
> XP) for all the
> devices attached to the USB.
Use SetupDiGetClassDevsEx to enumerate all devices on the system, then for
each device enumerate recursively it's parent to check if one of it's parent
is an USB host (see article "Obtaining the Parent of a Device in the Device
Tree" in MSDN). You will need the DDK to have the correct GUID for USB Host.
> Also, is there a generic USB driver that let's one do "generic" bulk
> data transfers to/from a USB device?
No.
An USB device export one or more "interface" that describe it's
functionnality (examples : "mass storage", "joystick", "Network card",
etc...). You manipulate the device through this interface. Windows has
drivers to manage the most common interfaces (such as USB mass storage), but
if your device doesn't fit in one of thosecategories, you need your own
driver.
Arnaud
MVP - VC
- Next message: Juha-Pekka Kettunen: "Re: Why my Release exe needs mfc80.dll ?"
- Previous message: Edward H. Fabrega: "Re: ... Why my Release exe needs mfc80.dll ?"
- In reply to: B. Klosterman: "USB bulk transfer help needed"
- Next in thread: Gnum: "Re: USB bulk transfer help needed"
- Reply: Gnum: "Re: USB bulk transfer help needed"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|