Win32 API prevent standby

别来无恙 提交于 2019-12-13 02:45:30

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/2687867/win32-api-prevent-standby

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!