Hi,

I modified the Microsoft DDK sample USBView to enumerate all devices on the
USB. But now I need a device name to make a CreateFile() on each Device.
File names in the format "\\.\USB#Vid_04cc&Pid_1122#5&d3bcdf4&1&1#
{f18a0e88-c30c-11d0-8815-00a0c906bed8}" can I get only for external USB
hubs, but not for other devices.
How can I get these file names for my devices?

Thanks
Michael

Re: How to get USB device name by Maxim

Maxim
Tue Jun 22 10:16:13 CDT 2004

> USB. But now I need a device name to make a CreateFile() on each Device.
> File names in the format "\\.\USB#Vid_04cc&Pid_1122#5&d3bcdf4&1&1#
> {f18a0e88-c30c-11d0-8815-00a0c906bed8}" can I get only for external USB
> hubs, but not for other devices.
> How can I get these file names for my devices?

SetupDiGetClassDevs for a particular class (storage or such) can help.

Also look in DEVCON sample.

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



Re: How to get USB device name by Doron

Doron
Wed Jun 23 02:33:52 CDT 2004

a device name, in this case a device interface, implies a certain interface
to the driver. that interface is supported IOCTLs, read/write semantics,
etc. this means that even if you could generically get all the file names,
you will not be able to send the IOCTL you want to each one unless you know
specifically what the device is.

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.


"Michael Bahrs" <mbahrs@gmx.de> wrote in message
news:Xns9510AECB4DC38mbahrsgmxde@130.133.1.4...
> Hi,
>
> I modified the Microsoft DDK sample USBView to enumerate all devices on
the
> USB. But now I need a device name to make a CreateFile() on each Device.
> File names in the format "\\.\USB#Vid_04cc&Pid_1122#5&d3bcdf4&1&1#
> {f18a0e88-c30c-11d0-8815-00a0c906bed8}" can I get only for external USB
> hubs, but not for other devices.
> How can I get these file names for my devices?
>
> Thanks
> Michael