GetCurrentHwProfile

From aldeid
Jump to navigation Jump to search

Description

Retrieves information about the current hardware profile for the local computer.

This value can also be found in the registry database. Below is an example:

[HKLM\SYSTEM\CurrentControlSet\Control\IDConfigDB\Hardware Profiles\0001]
HwProfileGuid = "{846ee340-7039-11de-9d20-806e6f6e6963}"

Syntax

BOOL WINAPI GetCurrentHwProfile(
  _Out_ LPHW_PROFILE_INFO lpHwProfileInfo
);

Parameters

lpHwProfileInfo [out]
A pointer to an HW_PROFILE_INFO structure that receives information about the current hardware profile.

Return value

If the function succeeds, the return value is a nonzero value.

If the function fails, the return value is zero. To get extended error information, call GetLastError.