device-instance-id

Get parent information of a USB device C++

杀马特。学长 韩版系。学妹 提交于 2020-08-27 21:27:10
问题 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 Setupapi.dll to get device information in my code. Got USB device information handle using SetupDiGetClassDevs function. Got specific device info data using SetupDiEnumDeviceInfo function. Got device description and hardware id using

Get parent information of a USB device C++

柔情痞子 提交于 2020-08-27 21:26:47
问题 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 Setupapi.dll to get device information in my code. Got USB device information handle using SetupDiGetClassDevs function. Got specific device info data using SetupDiEnumDeviceInfo function. Got device description and hardware id using

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

时光怂恿深爱的人放手 提交于 2020-01-09 10:09:37
问题 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 such: [StructLayout(LayoutKind.Sequential)] public struct DEV_BROADCAST_DEVICEINTERFACE { public int dbcc_size; public int dbcc_devicetype; public int dbcc_reserved; public Guid dbcc_classguid; [MarshalAs(UnmanagedType.LPStr)] public string dbcc_name; } And I'm using

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

﹥>﹥吖頭↗ 提交于 2020-01-09 10:07:53
问题 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 such: [StructLayout(LayoutKind.Sequential)] public struct DEV_BROADCAST_DEVICEINTERFACE { public int dbcc_size; public int dbcc_devicetype; public int dbcc_reserved; public Guid dbcc_classguid; [MarshalAs(UnmanagedType.LPStr)] public string dbcc_name; } And I'm using

Embed the Google assistant in a Windows computer - device instance ID not generated while running the sample code

心已入冬 提交于 2019-12-25 19:46:16
问题 I am trying to get Google Assistant installed on a Windows computer, following the instructions from Set Up Hardware and Network Access (Google Assistant SDK). I have been able to complete all but the last step. I am at the point of running the sample code. https://developers.google.com/assistant/sdk/guides/service/python/embed/run-sample?refresh=1. In this last step a 'device instance ID' should be generated, but that does not happen. See the screenshot: The error message states that the

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

混江龙づ霸主 提交于 2019-12-08 13:27:15
问题 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 changes if I plug the same device into different ports, but that is ok with me. The question is: If I take an identical device (mouse in my example) and plug it in, will it get the same or a different Instance ID ? I've done some research and

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

孤街浪徒 提交于 2019-12-04 11:59:54
问题 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 have used works as follows: Call SetupDiGetClassDevs with DIGCF_DEVICEINTERFACE . Call SetupDiEnumDeviceInfo to get the returned device in a SP_DEVINFO_DATA. Call SetupDiEnumDeviceInterfaces with GUID_NDIS_LAN_CLASS to get a device interface. Call

Drive Letter to Device Instance ID

放肆的年华 提交于 2019-12-01 05:59:15
问题 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 items; but I haven't found anything that gets me from a drive letter to a device instance ID. A solution in C# or VB.NET would be ideal, but I'm willing to figure it out from any other language as long as I can see the API calls. Thanks in advance

Get parent device

跟風遠走 提交于 2019-12-01 05:29:17
问题 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 composite device)? In real-life scenarios it will be many of them connected to the same USB controller. Moreover, it's possible they'll be of the same maker and model. That's why I cant verify the VID, PID, and use Win32_USBControllerDevice WMI query to

How to find the device instance id of a PCSC reader

房东的猫 提交于 2019-11-30 17:31:18
问题 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 reader. SCardGetReaderDeviceInstanceId is only available on Windows 8, so unfortunately not for me. As a plan B, all smart card readers could be enumerated in SetupDi using the smart card reader class guid. But then I would need a unique attribute to be able to