(change sGuid variable by the Guid you want Once the USB port is identified, how do I use that info to get the "bus reported device description"? ' to get "bus reported device description" ' use DEVPKEY_Device_BusReportedDeviceDesc and SetupDiGetDevicePropertyW If InStr(Name, "(COM") Then Console.WriteLine(Name + " " + ID) Name = CType(info("Caption"), String) ' Get the name of the device.'ĭim ID As String = CType(info("DeviceID"), String)ĭim Description As String = CType(info("Description"), String)ĭim Desc As String = CType(info("Manufacturer"), String)ĭim misc As String = CType(info("SystemName"), String) Search = New ("SELECT * From Win32_PnPEntity") ' See if the desired device shows up in the device manager.'ĭim search As Here is some code that provides most of the info except for the "bus reported device description". ![]() I am not familiar with using APIs so I need a bit more help.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |