PowerIsSettingRangeDefined function (powrprof.h)

Queries whether the specified power setting represents a range of possible values.

Syntax

BOOLEAN PowerIsSettingRangeDefined(
  [in, optional] const GUID *SubKeyGuid,
  [in, optional] const GUID *SettingGuid
);

Parameters

[in, optional] SubKeyGuid

The identifier of the subkey to search.

[in, optional] SettingGuid

The identifier of the power setting to query.

Return value

TRUE if the registry key specified by SubKeyGuid represents a single power setting.

If the registry key specified by SubKeyGuid represents a range, this function returns FALSE.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header powrprof.h
Library Powrprof.lib
DLL Powrprof.dll