I’ve not used this, but I wonder if it would be of use SetThreadExecutionState function (winbase.h) - Win32 apps | Microsoft Learn
I’ve not used this, but I wonder if it would be of use SetThreadExecutionState function (winbase.h) - Win32 apps | Microsoft Learn