1

What is the Win32 api function that prevents the system from going into standby?

Some programs use it, which is pretty annoying in my opinion.

I know there's a couple of WM_SYSCOMMAND messages you can trap to prevent the screensaver from coming on..

Community
  • 1
  • 1
bobobobo
  • 64,917
  • 62
  • 258
  • 363

1 Answers1

5

SetThreadExecutionState. There's no Get and it doesn't take a thread handle. Done.

Hans Passant
  • 922,412
  • 146
  • 1,693
  • 2,536