The SetupDiGetHwProfileFriendlyName function retrieves the friendly name associated with a hardware profile ID.
WINSETUPAPI BOOL SetupDiGetHwProfileFriendlyNameA( DWORD HwProfile, PSTR FriendlyName, DWORD FriendlyNameSize, PDWORD RequiredSize );
The hardware profile ID associated with the friendly name to retrieve. If this parameter is 0, the friendly name for the current hardware profile is retrieved.
A pointer to a string buffer to receive the friendly name.
The size, in characters, of the FriendlyName buffer.
A pointer to a variable of type DWORD that receives the number of characters required to retrieve the friendly name (including a NULL terminator).
The function returns TRUE if it is successful. Otherwise, it returns FALSE and the logged error can be retrieved by making a call to GetLastError.
Call SetupDiGetHwProfileFriendlyNameEx to get the friendly name of a hardware profile ID on a remote computer.
|Windows version||Available in Microsoft Windows 2000 and later versions of Windows.|
|Header||setupapi.h (include Setupapi.h)|