How to get VID-PID of USB device ?

Hi,

I am developing a NDIS-WDM driver, with USB interface at its lower edge.
(Thanks to Eliyas for the sample code)
As per my understanding, the NdisMGetDeviceProperty returns the device
object of USB if the INF file is provided with correct USB info. I need the
VID and PID of my USB device to enter in the INF file, however I don’t have
its user manual. How can one get the VID and PID of a device in Windows
2000?
(I tried Device Manger but with no luck)

Currently I have found one workaround. In my callback for
PnpNotifyInterfaceChange for USB device, I call IoGetDeviceObjectPointer to
get the device object. But anyway the question remains.

I also have another question (remained unanswered from my previous mail).
How to debug a serial driver using the Debugging setup which uses the
serial port itself ?

Regards,
Abhijit


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi Abhijit,
One solution to debugging your driver would be to add another serial port to
your PC (A multifunction Io card should be used for this) and use that to
host the driver communications.

Robert Fernando
Anite Telecoms Ltd
110 Fleet Road
Fleet
Hampshire GU51 4BL
United Kingdom
Tel: +44 (0) 1252 775200
Fax: +44 (0) 1252 775 321
Email: xxxxx@anitetelecoms.com

Anite Telecoms Limited Registered in England No. 1721900 Registered
Office: 100 Longwater Avenue, GreenPark, Reading, Berkshire RG2 6GP,
United Kingdom

-----Original Message-----
From: xxxxx@controlnet.co.in [mailto:xxxxx@controlnet.co.in]
Sent: 31 August 2001 03:49
To: NT Developers Interest List
Subject: [ntdev] How to get VID-PID of USB device ?

Hi,

I am developing a NDIS-WDM driver, with USB interface at its lower edge.
(Thanks to Eliyas for the sample code)
As per my understanding, the NdisMGetDeviceProperty returns the device
object of USB if the INF file is provided with correct USB info. I need the
VID and PID of my USB device to enter in the INF file, however I don’t have
its user manual. How can one get the VID and PID of a device in Windows
2000?
(I tried Device Manger but with no luck)

Currently I have found one workaround. In my callback for
PnpNotifyInterfaceChange for USB device, I call IoGetDeviceObjectPointer to
get the device object. But anyway the question remains.

I also have another question (remained unanswered from my previous mail).
How to debug a serial driver using the Debugging setup which uses the
serial port itself ?

Regards,
Abhijit


You are currently subscribed to ntdev as: xxxxx@anitetelecoms.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

The USBView utility, from the Windows 2000 DDK, will display the vid & pid of devices plugged into USB. If you need to get the VID / PID at runtime you can get the USB device descriptor.

The Debugger only takes over 1 serial port, the others ar free for use with your driver.

Larry

-----Original Message-----
From: xxxxx@controlnet.co.in [mailto:xxxxx@controlnet.co.in]
Sent: Thursday, August 30, 2001 10:49 PM
To: NT Developers Interest List
Subject: [ntdev] How to get VID-PID of USB device ?

Hi,

I am developing a NDIS-WDM driver, with USB interface at its lower edge.
(Thanks to Eliyas for the sample code)
As per my understanding, the NdisMGetDeviceProperty returns the device
object of USB if the INF file is provided with correct USB info. I need the
VID and PID of my USB device to enter in the INF file, however I don’t have
its user manual. How can one get the VID and PID of a device in Windows
2000?
(I tried Device Manger but with no luck)

Currently I have found one workaround. In my callback for
PnpNotifyInterfaceChange for USB device, I call IoGetDeviceObjectPointer to
get the device object. But anyway the question remains.

I also have another question (remained unanswered from my previous mail).
How to debug a serial driver using the Debugging setup which uses the
serial port itself ?

Regards,
Abhijit


You are currently subscribed to ntdev as: xxxxx@diebold.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Try looking in HKEY_LOCAL_MACHINE/System/CurrentControlSet/System/Enum/USB.
See if you can find it in there…

  • Dennis

Dennis Merrill
Embedded Systems Engineer
Thermo Nicolet Corporation

-----Original Message-----
From: xxxxx@controlnet.co.in [mailto:xxxxx@controlnet.co.in]
Sent: Thursday, August 30, 2001 9:49 PM
To: NT Developers Interest List
Subject: [ntdev] How to get VID-PID of USB device ?

Hi,

I am developing a NDIS-WDM driver, with USB interface at its lower edge.
(Thanks to Eliyas for the sample code)
As per my understanding, the NdisMGetDeviceProperty returns the device
object of USB if the INF file is provided with correct USB info. I need the
VID and PID of my USB device to enter in the INF file, however I don’t have
its user manual. How can one get the VID and PID of a device in Windows
2000?
(I tried Device Manger but with no luck)

Currently I have found one workaround. In my callback for
PnpNotifyInterfaceChange for USB device, I call IoGetDeviceObjectPointer to
get the device object. But anyway the question remains.

I also have another question (remained unanswered from my previous mail).
How to debug a serial driver using the Debugging setup which uses the
serial port itself ?

Regards,
Abhijit


You are currently subscribed to ntdev as: xxxxx@thermonicolet.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com