Export (0) Print
Expand All

PBT_POWERSETTINGCHANGE event

Power setting change event sent with a WM_POWERBROADCAST window message or in a HandlerEx notification callback for services.


LRESULT 
CALLBACK 
WindowProc( HWND hwnd,      // handle to window
            UINT uMsg,      // WM_POWERBROADCAST
            WPARAM wParam,  // PBT_POWERSETTINGCHANGE
            LPARAM lParam); // Pointer to POWERBROADCAST_SETTING


Parameters

hwnd

A handle to window.

uMsg
ValueMeaning
WM_POWERBROADCAST
536 (0x218)

Message identifier.

 

wParam
ValueMeaning
PBT_POWERSETTINGCHANGE
32787 (0x8013)

Event identifier.

 

lParam

Pointer to a POWERBROADCAST_SETTING structure.

Return value

No return value.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

WinUser.h (include Windows.h)

See also

Power Management Events
HandlerEx
WM_POWERBROADCAST
POWERBROADCAST_SETTING

 

 

Community Additions

ADD
Show:
© 2014 Microsoft