

OK AudioEndpoint Remote Audio SWD\MMDEVAPI. This page explains how a USB Identifier string (which composes the Device ID part of a Device Instance ID) is created.

OK System High precision event timer ACPI\PNP0103. The Microsoft Device Instance ID page explains well how a Device Instance ID string is composed. Examples Example 1: Get all PnP devices PS C:\>Get-PnpDevice The values returned are common to all devices. The Get-PnpDevice cmdlet returns basic information about Plug and Play (PnP) devices. In fact, Windows also have provided some function interface to get the device information as illustrated in the Device Manager. Wsprintf(sLogicalDeviceID, L"%s", vtProp.Returns information about PnP devices. Sometimes the user need to get the complete usb information (PID/VID etc) within software under Windows system just like the lsusb command under linux system. Hr = pclsObj3->Get(L"DeviceID", 0, &vtProp, 0, 0) Hr = pWbemEnum3->Next(WBEM_INFINITE, 1, &pclsObj3, &uReturn3) StrReplace(wsQuery, L"\\", L"\\\\", ARRAYSIZE(wsQuery)) WBEM_FLAG_FORWARD_ONLY | WBEM_FLAG_RETURN_IMMEDIATELY, NULL, &pWbemEnum3) On my Windows system this shows up under "Portable Devices" in "Device Manager".ĭevice SWD\WPDBUSENUM_?_USBSTOR#Disk&Ven_Logger&Prod_&Rev_1.00#9&319384a2&0&24842CB953324D5946202020FF170720&0# WHERE AssocClass = Win32_LogicalDiskToPartition") The drive, letter D:// is a UF2, fat filesystem which I am using to flash upgrade an embedded device.

In the following screenshot, you can see there are three (3) USB disk drives.

Once the device manager is opened, you can navigate to Disk Drives-> find out the disk drives with USB in the name. Let’s learn how to Find USB Drive Hardware ID on Windows 11. From this how am I able to find which drive letter the USB storage has mounted on? How to Find USB Drive Hardware ID on Windows 11. I have written a C++ application which is able to detect multiple USB VID and PID devices upon insertion and removal by matching "USB\VID_%04X&PID_%04X".
