How can you get a monitor out of sleep mode in c#?
I tried the following, but then the monitor wakes up and falls back to sleep mode immediately.
Code:uint SC_MONITORPOWER = 0xF170; uint WM_SYSCOMMAND = 0x0112; SendMessage(this.Handle, WM_SYSCOMMAND, (IntPtr)SC_MONITORPOWER, (IntPtr)(-1));