将系统置于连接待机状态的API是什么? [英] What's API to put system into Connected standby state?

查看:167
本文介绍了将系统置于连接待机状态的API是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

系统支持"已连接待机"。现在,需要一个API将系统置于"已连接待机"状态。州。

The System supports "Connected Standby". Now, need a API to put the system into "Connected standby" state.

推荐答案

您好
Xiangan,

感谢您在此处发帖。

>> ;系统支持"已连接待机"。现在,需要一个API将系统置于"已连接待机"状态。状态。

对于这种情况,我建议您在下面查看以下方法。

For this case, I suggest you check these ways below.

1。如果您正在处理硬件开发,可以使用
IWDTFSystemAction2 :: ConnectedStandby
将系统置于已连接待机状态的方法    在所需时间过后退出已连接待机状态。

1. If you're dealing with hardware development, you could use IWDTFSystemAction2::ConnectedStandby method to put the system into Connected Standby state and     exits Connected Standby state after the desired time has passed.

2。如果您正在处理Win32编程,可以使用 $带有PowerRequestExecutionRequired类型的b $ b PowerSetRequest函数,它使调用进程继续运行,而不是被进程生存期管理机制暂停或终止。

2. If you're dealing with Win32 programming, you could use PowerSetRequest function with PowerRequestExecutionRequired type which make the calling process continues to run instead of being suspended or terminated by process lifetime management mechanisms.

3。您还可以考虑使用
SetThreadExecutionState函数
使应用程序能够通知系统它正在使用中,从而防止系统在应用程序运行时进入休眠或关闭显示器。

3. You could also consider to use SetThreadExecutionState function to enable an application to inform the system that it is in use, thereby preventing the system from entering sleep or turning off the display while the application is running.

希望这可能是你的帮助。

Hope this could be help of you.

最好的问候,

Baron Bi


这篇关于将系统置于连接待机状态的API是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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