PowerSettingUnregisterNotification function (powersetting.h)

Cancels a registration to receive notification when a power setting changes.

Syntax

DWORD PowerSettingUnregisterNotification(
  [in, out] HPOWERNOTIFY RegistrationHandle
);

Parameters

[in, out] RegistrationHandle

A handle to a registration obtained by calling the PowerSettingRegisterNotification function.

Return value

Returns ERROR_SUCCESS (zero) if the call was successful, and a nonzero value if the call failed.

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 powersetting.h
Library Powrprof.lib
DLL Powrprof.dll

See also

PowerSettingRegisterNotification