Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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
hwnd
A handle to window.
uMsg
Value | Meaning |
---|---|
|
Message identifier. |
wParam
Value | Meaning |
---|---|
|
Event identifier. |
lParam
Pointer to a POWERBROADCAST_SETTING structure.
No return value.
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |
Header |
|
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today