I'm having trouble using SetThreadExecutionState() on Win XP SP2. I'm
trying to prevent the PC from going into any of the low power states while
using my driver. Inside my code, I make a call to
SetThreadExecutionState(ES_SYSTEM_REQUIRED) to reset the timer. I end my
program after making this call successfully. At this point, I would expect
to be able to enter the low power states after the user specified time has
expired, but the PC NEVER suspends again until after a reboot. The PC
suspends fine if I never make the call to SetThreadExecutionState().
Has anyone run into this problem?
I'm using a DELL Latitude D600, 1.4 GHz Pentium M, 512 MB Memory.