Hello
Does anybody know how to turn ON and OFF monitor through APIs or any other methods?
Thank you.
Does anybody know how to turn ON and OFF monitor through APIs or any other methods?
Thank you.
send a WM_SYSCOMMAND to your main hwnd with SC_MONITORPOWER as wParam and 2 in lParam (-1 to power back on I think)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/power/base/wm_power.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/power/base/wm_power.asp
Doesn't work on 2000/XP :(
We tested on 2000/XP machine and no results, but both Win98 machines worked perfectly with that method.
We tested on 2000/XP machine and no results, but both Win98 machines worked perfectly with that method.
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
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