如何使用Win Form应用程序访问和管理系统休眠属性 [英] How to access and Manage System Hibernate properties using win form application

查看:75
本文介绍了如何使用Win Form应用程序访问和管理系统休眠属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想实现以下目标:

1.从我的winform应用程序中检查休眠状态.
2.如果休眠"功能为开",则复制并保存当前的休眠设置.
3.关闭休眠功能.
4.执行任务X
5.恢复休眠设置.

Thankuss ..

I want to acheive following:

1. Check hibernate status from my winform app.
2. If Hibernate feature is ON then copy the current hibernate settings and store it.
3. Turn off hibernate feature.
4. Perform task X
5. Restore the hibernate settings.

Thankuss..

推荐答案

与其取代用户设置,不如与电源管理进行协作(更安全).延迟休眠的方式仅取决于您的操作环境.有白皮书可供下载:

http://www.microsoft.com/whdc/system/pnppwr/powermgmt/AvailabilityRequests.mspx [^ ]
Rather than taking over the users settings, it will be simpler (and safer) to co-operate with power management. Just how to delay hibernation depends a bit on your operating environment. There''s a white paper available for download here:

http://www.microsoft.com/whdc/system/pnppwr/powermgmt/AvailabilityRequests.mspx[^]


这篇关于如何使用Win Form应用程序访问和管理系统休眠属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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