Win32 API prevent standby
Asked Answered
N

1

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..

Nagpur answered 22/4, 2010 at 2:25 Comment(0)
S
5

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

Sparkle answered 22/4, 2010 at 2:40 Comment(1)
And to kill that, you'd probably need to intercept it using Microsoft DetoursShaina

© 2022 - 2024 — McMap. All rights reserved.