Expand Minimize

PowerSettingUnregisterNotification function

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

Syntax


DWORD WINAPI PowerSettingUnregisterNotification(
  _Inout_  HPOWERNOTIFY RegistrationHandle
);

Parameters

RegistrationHandle [in, out]

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]

Header

Powersetting.h;
Powrprof.h on Windows Server 2008 R2 and Windows 7

Library

Powrprof.lib

DLL

Powrprof.dll

See also

PowerSettingRegisterNotification

 

 

Community Additions

ADD
Show:
© 2014 Microsoft