Does anybody know how to turn ON and OFF monitor through APIs or any other methods?
Thank you.
Posted on 2003-10-10 18:24:49 by masnick[CCCP]
send a WM_SYSCOMMAND to your main hwnd with SC_MONITORPOWER as wParam and 2 in lParam (-1 to power back on I think)

Posted on 2003-10-10 19:46:21 by Hiroshimator
Doesn't work on 2000/XP :(
We tested on 2000/XP machine and no results, but both Win98 machines worked perfectly with that method.
Posted on 2003-10-10 20:13:52 by comrade
it depends. I know it works on my machine but it has never worked on the k62 we have here, I think it's a chipset issue :/

and don't rely on MS to spill any beans or give actual useful info, if you're lucky you'll get the functionality in some .NET class
Posted on 2003-10-10 20:23:10 by Hiroshimator