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.