windows_programming_notes.nbk: Home | Index | Next Page: win32 msgs: WM_PRINT | Previous Page: win32 msgs: WM_PASTE
The WM_POWERBROADCAST message is broadcast to an application to notify it of power-management events.
A window receives this message through its WindowProc function.
LRESULT CALLBACK WindowProc(
HWND hwnd, // handle to window
UINT uMsg, // WM_POWERBROADCAST
WPARAM wParam, // power-management event
LPARAM lParam // function-specific data
);
Return TRUE to grant a request.
Return BROADCAST_QUERY_DENY to deny a request.
Windows NT/2000 or later: Requires Windows NT 4.0 or later. Windows 95/98/Me: Requires Windows 95 or later. Header: Declared in Winuser.h; include Windows.h.
windows_programming_notes.nbk: Home | Index | Next Page: win32 msgs: WM_PRINT | Previous Page: win32 msgs: WM_PASTE
Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time