Results 1 to 8 of 8

Thread: [VB6][API] turning of hard drive

Hybrid View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2006
    Location
    Slovenia
    Posts
    100

    [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



  2. #2
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: [VB6][API] turning of hard drive

    I think kernel32 - DeviceIoControl may help you.
    I don't have an example though.

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: [VB6][API] turning of hard drive

    What do you mean by "TURN OFF"?

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Dec 2006
    Location
    Slovenia
    Posts
    100

    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.



  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: [VB6][API] turning of hard drive

    Like "Sleep" mode....is that what you mean?

  6. #6
    Fanatic Member Dungeon Keeper's Avatar
    Join Date
    Mar 2008
    Posts
    590

    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.

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Dec 2006
    Location
    Slovenia
    Posts
    100

    Re: [VB6][API] turning of hard drive

    Yes i mean Sleep mode for Hdd.



  8. #8
    PowerPoster
    Join Date
    Jul 2006
    Location
    Maldon, Essex. UK
    Posts
    6,334

    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
  •  



Click Here to Expand Forum to Full Width