Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PNPDeviceID Format

Tags:

device

wmi

I'm working on developing a WMI query for my application. It needs to find the assigned virtual COM port for a given VID/PID. Using the WMI Code Creator I have found that...

  • Namespace: root\CIMV2
  • Class: Win32_SerialPort
  • Property: PNPDeviceID

...returns a value of USB\VID_10C4&PID_EA60\0001. This same value can be found by going to the appropriate entry in Device Manager -> Properties -> Details tab and selecting Device Instance Id.

My question is, what does the \0001 signify? Or, can I expect my device to have a device ID of USB\VID_10C4&PID_EA60\0001 when plugged into any Windows system? Thanks.

like image 345
Jim Fell Avatar asked Oct 28 '10 13:10

Jim Fell


1 Answers

It references the device instance. That is, devices with identical identifiers (more than one plugged in) are enumerated, so that the system can identify them.

http://forums.techguy.org/software-development/959095-solved-pnpdeviceid-format.html#3

like image 167
Jim Fell Avatar answered Oct 19 '22 05:10

Jim Fell