Questions tagged [device-instance-id]

Use this tag for questions about Microsoft Device Instance IDs. Example of a Device Instance ID is `PCI\VEN_1000&DEV_0001&SUBSYS_00000000&REV_02\1&08`. It is a device identification string supplied by the Plug and Play Manager.

A device instance ID is a Windows system-supplied device identification string that uniquely identifies a device in an operating system. The Plug and Play (PnP) manager assigns a device instance ID to each device node (devnode) in the system's device tree. A device instance ID is persistent across system restarts.

An example of a Device Instance ID is:

PCI\VEN_1000&DEV_0001&SUBSYS_00000000&REV_02\1&08

Homepage: Microsoft Device Instance ID page on Microsoft.com
Device Instance IDs are part of the broader Device Identification Strings

21 questions
13
votes
5 answers

Change/update Firebase notification token or instance id forcefully via code?

What should I do that for changing or requesting the token in firebase? the unique token generated by firebase on the basis of device information.
PRAVEEN
  • 5,723
  • 4
  • 12
  • 29
11
votes
3 answers

How to get friendly device name from DEV_BROADCAST_DEVICEINTERFACE and Device Instance ID

I've registered a window with RegisterDeviceNotification and can successfully recieve DEV_BROADCAST_DEVICEINTERFACE messages. However, the dbcc_name field in the returned struct is always empty. The struct I have is defined as…
snicker
  • 5,984
  • 6
  • 40
  • 49
11
votes
3 answers

How to reliably and quickly get the MAC address of a network card given its device instance ID

Given a device instance ID for a network card, I would like to know its MAC address. Example device instance ID on my system for integrated Intel Gigabit card: PCI\VEN_8086&DEV_10CC&SUBSYS_00008086&REV_00\3&33FD14CA&0&C8 So far, the algorithm I…
James Johnston
  • 8,775
  • 7
  • 45
  • 75
5
votes
3 answers

Get parent device

I have two USB device IDs, e.g. USB\VID_E4F1&PID_0661\00000115FA9CE7750000000000000000 and USB\VID_E4F1&PID_0661&MI_00\7&B5A5DDF&0&0000 How to verify device #2 is a direct child of device #1 (physically they’re different parts of the same USB…
Soonts
  • 15,806
  • 9
  • 45
  • 100
4
votes
1 answer

Restart USB port WITHOUT reboot (DevCon)

UNNECESSARY BACKGROUND INFO: I purchased a new USB microphone (Samson Q2U) and I am having an issue where every time I (re)boot my PC, the mic does not work (it does receive power) until I unplug and re-plug the microphone from the USB port. Now…
Magnum
  • 43
  • 5
4
votes
1 answer

Get parent information of a USB device C++

I'm working on an MFC tool that check some driver information's of connected USB device such as location info, parent, hardware id, etc. I have got all other information i want but i'm stuck in getting device parent information. I have used…
TiYan
  • 103
  • 1
  • 9
4
votes
2 answers

Getting USB Storage Device Instance ID (unique ID) programmatically

How to programmatically get the Device Instance ID (unique ID) of a USB mass storage device that a user just plugged in?
Navaneeth
  • 587
  • 2
  • 7
  • 19
4
votes
2 answers

How to find the device instance id of a PCSC reader

Having only a handle and context to a PCSC reader using winscard on Windows >= XP, is there some way to get its device instance id or something else that can be used in the SetupDi* API to find out which driver is loaded for said…
mandrake
  • 1,091
  • 1
  • 10
  • 27
4
votes
2 answers

Get device instance DWORD from device instance path string

I get an device instance path like L"\\\\?\\USB#VID_0403&PID_6001#6&2cc2d230&0&2#{219d0508-57a8-4ff5-97a1-bd86587c6c7e}" from IWDFRemoteInterfaceInitialize::RetrieveSymbolicLink. But for CM_Get_Parent I need the DEVINST/DWORD of the device which…
chendral
  • 686
  • 1
  • 5
  • 17
3
votes
3 answers

is the USB Instance ID on Windows unique for a device?

I'm trying to identify a USB device uniquely on a Windows system. Since serial number is optional (and empty on most devices), I'm looking at the Instance ID. The field that is like USB\VID_03F0&PID_094A\6&24b73976&0&2. I already know that this ID…
Tom
  • 1,991
  • 2
  • 23
  • 39
3
votes
1 answer

How to get USB Device handle using device instance handle?

I'm enumerating device manager tree using the CM_Locate_DevNode(), CM_Get_Child() and CM_Get_DevNode_Registry_Property() APIs. I'm able to get the device instance handle. Using that handle I'm trying to get the device handle to query the string…
3
votes
3 answers

Drive Letter to Device Instance ID

How do I get from a drive letter to a device instance ID? My process starts with a device arrival message. I have been successful in getting the drive letter from the arrival message and in opening the dvd tray. I have searched the various Setup API…
2
votes
1 answer

C#: Error in getting device instance handle

In my C# code I am trying to use C++ functions: CM_Locate_DevNodeW and CM_Open_DevNode_Key (using pinvoke). My code seems something like this: String deviceId = "PCI\\VEN_8086&DEV_591B&SUBSYS_22128086&REV_01\\3&11583659&0&10"; int devInst =…
RK Coder
  • 379
  • 1
  • 13
1
vote
1 answer

How to access GPIO, I²C, SPI, and PWM on Windows 10 using SetupDiGetClassDevs() function and what is the importance of GUID over here?

How do I access GPIO, I²C, SPI, PWM, etc. in the Windows environment? Currently I have two Intel NUC5i5MYBE motherboards. One board has WindRiver Linux and another one has Windows 10 Enterprise. On Linux, I don't have any trouble while accessing all…
1
vote
2 answers

how to parse USB device instance?

I want to know how "Device Instance ID" is made or how to parse it. Take the following string as an example: USB\VID_093A&PID_2700&MI_00\6&2703A67B&0&0000 As per my knowledge: USB tells that this is a USB device VID_093A indicates its vendor…
1
2