I need to use some SetupAPI functions in firefox extension. I need to retrieve device's friendly name. I figured it can be done by SetupDiGetClassDevs
, SetupDiEnumDeviceInfo
, SetupDiGetDeviceRegistryProperty
and SetupDiDestroyDeviceInfoList
.
BUT! I imported the setupapi.dll
and declared three of the functions - no problem. Then I found out that SetupDiGetDeviceRegistryProperty
simply isn't in the DLL at all and can only be statically linked with setupapi.lib
. Is there any way I could substitute this function?
I cannot use WMI.