|
-
Mar 26th, 2008, 10:09 AM
#1
Thread Starter
Lively Member
[VB6][API] turning of hard drive
Can i turn off specific hard drive with sendmessage(or something else) api function and how?
Tnx for help
-
Mar 27th, 2008, 05:54 AM
#2
Re: [VB6][API] turning of hard drive
I think kernel32 - DeviceIoControl may help you.
I don't have an example though.
-
Mar 27th, 2008, 07:35 AM
#3
Re: [VB6][API] turning of hard drive
What do you mean by "TURN OFF"?
-
Mar 27th, 2008, 11:49 AM
#4
Thread Starter
Lively Member
Re: [VB6][API] turning of hard drive
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.
-
Mar 27th, 2008, 12:36 PM
#5
Re: [VB6][API] turning of hard drive
Like "Sleep" mode....is that what you mean?
-
Mar 27th, 2008, 01:05 PM
#6
Fanatic Member
Re: [VB6][API] turning of hard drive
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.
Last edited by Dungeon Keeper; Mar 27th, 2008 at 01:09 PM.
-
Mar 27th, 2008, 04:59 PM
#7
Thread Starter
Lively Member
Re: [VB6][API] turning of hard drive
Yes i mean Sleep mode for Hdd.
-
Mar 28th, 2008, 02:37 AM
#8
Re: [VB6][API] turning of hard drive
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)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|