C++休眠硬盘(以编程方式)
在 WS2008R2 及其补充版 7 等操作系统中,我需要休眠一个(两个)硬盘驱动器。有问题的硬盘会变热(因为它很旧),并且每周也只用于写入一次主硬盘的图像。
我想向它发出“睡眠”或“休眠”命令。
另外,我不希望它在除非应用程序需要读/写它时唤醒,这意味着分区文件表是否缓存在这些操作系统中?
补充:
另一个帖子没有回答这个问题。
我不需要工具,我需要编写代码
尽管有反对这样做这个
WMI 可能是可行的方法,有人知道吗?
据我了解 IOCTL_ATA_PASS_THROUGH 不会这样做。
理想情况下,我想访问电源管理控件 直接但不清楚是否可以通过编程方式完成此操作而不使用 Windows 组策略
我会采用任何语言的代码在此刻....
In OS's like WS2008R2 and its compliment 7, I need to hibernate one (of two) hard drives. The hard drive in question gets hot (cos its old) and is only used to write images of the main HD too once a week.
I would like to issue it a "sleep" or "hibernate" command.
Also, I dont want it to wake up when unless an app is needs to read/write to it, meaning is the partition file table cached in these OS's?
Added:
The other thread did not answer the question.
I do not want a tool, I need to write code
Notwithstanding the arguments against doing this
WMI might be the way to go does anyone know?
From what i understand IOCTL_ATA_PASS_THROUGH will not do it.
Ideally I would like to access the power management controls directly but it is unclear if this can be done programmatically without using a Windows Group Policy
Ill take code in any language at this point....
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论