PowerSettingUnregisterNotification function

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

Syntax

DWORD PowerSettingUnregisterNotification(
  HPOWERNOTIFY RegistrationHandle
);

Parameters

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

   
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