Hi,
Welcome to Microsoft Q&A!
Modern Standby consists of multiple hardware and software power modes, all of which occur with the screen turned off.
I suggest you could try to use the SC_MONITORPOWER parameter for the WM_SYSCOMMAND message to turn off the monitor:
SendMessage(handle, WM_SYSCOMMAND, SC_MONITORPOWER, 2);
The argument 2 for the fourth parameter turns the monitor off.
You could refer to the Doc:
https://learn.microsoft.com/en-gb/windows/win32/menurc/wm-syscommand?redirectedfrom=MSDN
Best Regards,
Jeanine
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.