Muokkaa

Jaa


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

Value Meaning
WM_POWERBROADCAST
536 (0x218)
Message identifier.

wParam

Value Meaning
PBT_POWERSETTINGCHANGE
32787 (0x8013)
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
WinUser.h (include Windows.h)

See also