Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
Value | Meaning |
---|---|
|
Message identifier. |
wParam
Value | Meaning |
---|---|
|
Event identifier. |
lParam
Pointer to a POWERBROADCAST_SETTING structure.
Return value
No return value.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |
Header |
|