GerhardSchr: Nochmal zu deiner vorigen Frage:
Remarks
The _WinAPI_SetThreadExecutionState() function cannot be used to prevent the user from putting the computer to
sleep. Applications should respect that the user expects a certain behavior when they close the lid on their
laptop or press the power button.
This function does not stop the screen saver from executing.
Das erste in Fett sollte deine Frage beantworten, letzteres widerspricht irgendwie das dies funktioniert (Bildschirmschoner verhindern), müsste hier das Remark bei der Funktionsbeschreibung geändert werden?