WM_POWERBROADCAST

LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
int wmId, wmEvent;
PAINTSTRUCT ps;
HDC hdc;
TCHAR szHello[MAX_LOADSTRING];
LoadString(hInst, IDS_HELLO, szHello, MAX_LOADSTRING);
switch (message) 
{
case  WM_POWERBROADCAST:
{
MessageBox(0,"","",0);
}
break;
default:
return DefWindowProc(hWnd, message, wParam, lParam);
   }
   return 0;
}

你可能感兴趣的:(Broadcast)