SetupDiGetDeviceRegistryProperty with a property of SPDRP_FRIENDLYNAME. If that fails, use the SPDRP_DEVICEDESC property.
d
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Harsha Inamdar
Sent: Thursday, March 30, 2006 11:13 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] How to extract a device or driver’s name?
I mean the name of the USB device shown in device manager.
Peter Wieland wrote:
what do you mean by device name?
?
-p
_
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Harsha Inamdar
Sent: Wednesday, March 29, 2006 2:39 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to extract a device or driver’s name?
Hi All,
?
I am trying to extract a name of the device or the driver from
typedef struct SP_DEVICE_INTERFACE_DETAIL_DATA_A {
??? DWORD? cbSize;
??? CHAR?? DevicePath[ANYSIZE_ARRAY];
} SP_DEVICE_INTERFACE_DETAIL_DATA_A
?
defined in DDK.
?
Can somebody please tell me how to extract the name as this structure doesn’t have the name field. It gives the DevicePath but not device name.
?
Thanks,
Harsha
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. — Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
—
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
________________________________________
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1?/min. — Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer