Monitor not going to sleep

broken image

Private const int SC_MONITORPOWER = 0xF170

broken image

Private const int SC_CLOSE = 0xF060 // dont know Private const int SC_SCREENSAVE = 0xF140 Private const int WM_SYSCOMMAND = 0x0112 I dont know how to retrieve the display/screen EVENTS private const int WM_POWERBROADCAST = 0x0218 How do I know when the screen is going off or on.

broken image

Hi I have been searching but I can't find the answer.