I am dealing with black screening like Teamviewer.
I want to power off monitor or make a completely black.
This method https://stackoverflow.com/a/713511/2469925 is useless for me. Because when mouse or keyboard in use monitor automatically opens back.
I found IOCTL_VIDEO_SET_OUTPUT_DEVICE_POWER_STATE but I guess it looks deprecated after XP. I think there is no usage currently.
Also I tried Setting brightness on Windows 10 using C++ WinAPI this method with Teamviewer Monitor driver.(Teamviewer driver allow me to reach device) I could get handle with Createfile but
DeviceIoControl(h, IOCTL_VIDEO_SET_DISPLAY_BRIGHTNESS, (DISPLAY_BRIGHTNESS*)&_displayBrightness, nOutBufferSize, NULL, 0, &ret, NULL)
always return 1 which is error/invalid function.
When I check my win10 settings also I could not find brightness settings. There is no such menu.
Any help is will be appreciated.
How can I do this with driver or driverless.