Turn off the display on remote PC
Posted
by concretemixer
on Stack Overflow
See other posts from Stack Overflow
or by concretemixer
Published on 2010-05-26T07:46:41Z
Indexed on
2010/05/26
7:51 UTC
Read the original article
Hit count: 263
Hello. I'm fixing some bugs in the application for remote control (remote desktop-like) for Windows. And there is a feature that you can blank screen on remote machine - all the programms keep running unaffected, but the person who looks into the display on remote PC sees nothing but black screen.
It is implemented by sending IoCtl request IOCTL_VIDEO_SET_OUTPUT_DEVICE_POWER_STATE
, which is undocumented. And this request does not work on Vista and above.
Are there another ways to do what I want?
In fact, SendMessage(-1,WM_SOMMAND,SC_MONITORPOWER,2)
does the trick, but screen turns back on if someone toches keyboard/mouse.
© Stack Overflow or respective owner