BOOLEAN
SetupDiGetDeviceRegistryProperty
IN HDEVINFO DeviceInfoSet,
IN PSP_DEVINFO_DATA DeviceInfoData,
IN DWORD Property,
OUT PDWORD PropertyRegDataType, /* optional */
OUT PBYTE PropertyBuffer,
IN DWORD PropertyBufferSize,
OUT PDWORD RequiredSize /* optional */
);
SetupDiGetDeviceRegistryProperty retrieves the specified property from the Plug and Play device storage location in the registry.
Code |
Property |
SPDRP_DEVICEDESC (0x00) |
DeviceDesc |
SPDRP_HARDWAREID (0x01) |
HardwareID |
SPDRP_COMPATIBLEIDS (0x02) |
CompatibleIDs |
SPDRP_NTDEVICEPATHS (0x03) |
NtDevicePaths |
SPDRP_SERVICE (0x04) |
Service |
SPDRP_CONFIGURATION (0x05) |
Configuration |
SPDRP_CONFIGURATIONVECTOR (0x06) |
ConfigurationVector |
SPDRP_CLASS (0x07) |
Class |
SPDRP_CLASSGUID (0x08) |
ClassGUID |
SPDRP_DRIVER (0x09) |
Driver |
SPDRP_CONFIGFLAGS (0x0A) |
ConfigFlags |
SPDRP_MFG (0x0B) |
Mfg |
SPDRP_FRIENDLYNAME (0x0C) |
FriendlyName |
The function returns TRUE if it is successful. Otherwise it returns FALSE and the logged error can be retrieved with a call to GetLastError.