PNPDeviceID Format

强颜欢笑 提交于 2019-12-23 09:29:13

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/4043453/pnpdeviceid-format

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!