当桌面应用程序在CS模式下调用SetSuspendState或SetSystemPowerState时,操作系统会做什么? [英] What will OS do when a desktop application calls SetSuspendState or SetSystemPowerState in CS mode?

查看:950
本文介绍了当桌面应用程序在CS模式下调用SetSuspendState或SetSystemPowerState时,操作系统会做什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在CS模式下,没有暂停或休眠。如果用户应用程序(桌面应用程序)调用SetSuspendState或SetSystemPowerState()会发生什么?

In CS mode, there is no suspend or hibernate. What will happen if user application (desktop application) calls SetSuspendState or SetSystemPowerState()?

MSDN文档没有说明这一点。

The MSDN document does not say anything about this.

谢谢,

zhongsheng

zhongsheng

推荐答案

在CS模式下,桌面应用程序的行为就像系统处于睡眠模式一样。因此他们无法运行,因此无法进行这些调用。您可能还会发现这些调用在启用CS的系统上根本不执行任何操作,假设它们甚至可以为WinRT提供
When in CS mode desktop applications behave as though the system is in sleep mode. Thus they don't get to run, and so can't make these calls. You may also find that these calls simply don't do anything on a CS enabled system, assuming they are even there for WinRT.


这篇关于当桌面应用程序在CS模式下调用SetSuspendState或SetSystemPowerState时,操作系统会做什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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