Hello @Oliver Collyer ,
Welcome to Microsoft Q&A!
SetThreadExecutionState(SYSTEM_REQUIRED) simply doesn't work on Windows 11. Is this true?
This is true, I reproduced the same problem on win11, I will submit this bug through internal channels.
You can also submit feedback in the API documentation.
Thank you.
Junjie
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.