From: Uwe Sieber on
Sudhir Gupta wrote:
> Hi
> I want to develop an c++ application which display hardware id of usb
> port. Please give me some suggestion on this topic.If possible than please
> send some code.

Check out the USBview sample that comes with the Windows Driver Kit
http://go.microsoft.com/fwlink/?LinkId=89050 or the old DDK
http://www.microsoft.com/whdc/devtools/ddk/default.mspx (smaller
download).



Uwe





From: Sudhir Gupta on
Thank you

I have seen DDK devcon demo but in devcon we need to give H/W ID
to disable and enable any hardware, but I want to retrieve h/w id for usb
and want to pass it devcon program how i can do it?

"Uwe Sieber" wrote:

> Sudhir Gupta wrote:
> > Hi
> > I want to develop an c++ application which display hardware id of usb
> > port. Please give me some suggestion on this topic.If possible than please
> > send some code.
>
> Check out the USBview sample that comes with the Windows Driver Kit
> http://go.microsoft.com/fwlink/?LinkId=89050 or the old DDK
> http://www.microsoft.com/whdc/devtools/ddk/default.mspx (smaller
> download).
>
>
>
> Uwe
>
>
>
>
>
>
From: Doron Holan [MSFT] on
enumerate instances of the usb host controller device interface guid,
GUID_CLASS_USB_HOST_CONTROLLER, using setupapi. for each instance you can
query for the property SPDRP_HARDWAREID with
SetupDiGetDeviceRegistryProperty. note that the result is a multi sz so
there will be potentially many strings in the answer

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.


"Sudhir Gupta" <SudhirGupta(a)discussions.microsoft.com> wrote in message
news:81491034-6565-4F47-975E-112A6DA50BF3(a)microsoft.com...
> Thank you
>
> I have seen DDK devcon demo but in devcon we need to give H/W
> ID
> to disable and enable any hardware, but I want to retrieve h/w id for
> usb
> and want to pass it devcon program how i can do it?
>
> "Uwe Sieber" wrote:
>
>> Sudhir Gupta wrote:
>> > Hi
>> > I want to develop an c++ application which display hardware id of
>> > usb
>> > port. Please give me some suggestion on this topic.If possible than
>> > please
>> > send some code.
>>
>> Check out the USBview sample that comes with the Windows Driver Kit
>> http://go.microsoft.com/fwlink/?LinkId=89050 or the old DDK
>> http://www.microsoft.com/whdc/devtools/ddk/default.mspx (smaller
>> download).
>>
>>
>>
>> Uwe
>>
>>
>>
>>
>>
>>