Monitor Doesn't Turnoff in windows 10 for some monitors. It does happen in windows 8 and below version

  • Thread starter Thread starter Vinay Yalamanchili
  • Start date Start date
V

Vinay Yalamanchili

Guest
Hi Team,

I want to turn off the monitor and then disable the mouse and keyboard inputs

//Turn off Monitor

SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) 2);

BlockInput(TRUE);// To lock mouse and keyboard inputs.

//To Turn on the Monitor.

SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) -1);


Could you please let me know if there is a change in the Windows 10 related to Monitor at drivers level. If yes, Could you please guide me accordingly so that I can make changes.

Thanks for your support in advance.

Continue reading...
 
Back
Top