Sorry, my explanation was very poor. PBT_POWERSTATECHANGE is the wParam value, not the message type. The message type is WM_POWERBROADCAST, which is 0x218 (536) as you found out. The wParam is the sub-type of the message, in this case the type of power event.