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...
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...