Can i turn off specific hard drive with sendmessage(or something else) api function and how?
Tnx for help :wave:
Printable View
Can i turn off specific hard drive with sendmessage(or something else) api function and how?
Tnx for help :wave:
I think kernel32 - DeviceIoControl may help you.
I don't have an example though.
What do you mean by "TURN OFF"?
hmm i mean like when you set in power settings turn off hard drive in some time but i want to turn them off when i like to not when some time passes by.
Like "Sleep" mode....is that what you mean?
If i got i right he wants to power off HDD like its done in screen saver Power settings. I suppose its something like Sleep, but im not sure.
http://img169.imageshack.us/img169/7939/ssdgn6.gif
Yes i mean Sleep mode for Hdd.
There are a set of Power related API's (http://msdn2.microsoft.com/en-us/lib...9(VS.85).aspx). I've not studied them in depth, but it looks as if you can dynamically change the current Power Policy, however looking at the structures involved, it seems that you can only power down all the spindles rather than select a particular device. (But ,as I said, I've only had a quick look)