开发者

C++ hibernate a hard disk (programmatically)

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 开发者_如何学Pythonnot 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....

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜