![]() ![]() I would like to use this info to obtain the monitor model name. I am using a database of monitors that contains either of the following pieces of information for each monitor, either (a) 4-character vendor ID and product ID, or (b) a 7-character device/hardware ID. Wsprintf(sLogicalDeviceID, L"%s", vtProp. Looking up model name based on either VID/PID or device ID. Hr = pclsObj3->Get(L"DeviceID", 0, &vtProp, 0, 0) HKEYLOCALMACHINE SYSTEM CurrentControlSet Control usbflags .The registry entries described in this article are found under this key: Output. Hr = pWbemEnum3->Next(WBEM_INFINITE, 1, &pclsObj3, &uReturn3) Registry settings for configuring USB driver stack behavior. 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. From this how am I able to find which drive letter the USB storage has mounted on? 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". ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |