Win32 API防止待机 [英] Win32 API prevent standby

查看:587
本文介绍了Win32 API防止待机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是防止系统进入待机状态的Win32 API函数?

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.

我知道有一对夫妇在一起的 WM_SYSCOMMAND 讯息,您可以通过陷阱阻止屏幕保护程序从开始。

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

推荐答案

SetThreadExecutionState。没有Get,它不采取线程句柄。已完成。

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

这篇关于Win32 API防止待机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆