dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Power Manager API C++

  1. #1
    Join Date
    Dec 2006
    Posts
    17

    Power Manager API C++

    I need to avoid the automatic stop of the hard disk and monitor in Windows every xx minutes.
    In C++ what are the API`s I need to use ?
    Thanks.

  2. #2
    Join Date
    Nov 2003
    Posts
    1,902

  3. #3
    Join Date
    Dec 2006
    Posts
    17

    Re: Power Manager API C++

    Thank you for your help.
    But when I only include pwrprof.h (in C++ 6.0) I have 80 errors.
    The first one is SYSTEM_POWER_STATE missing storage-class .....
    I appreciate your help.

  4. #4
    Join Date
    Nov 2003
    Posts
    1,902

    Re: Power Manager API C++

    Compilers from this decade:
    http://www.microsoft.com/express/Dow...010-Visual-CPP
    http://www.codeblocks.org/

    Or use a newer PSDK (but not all the debug libs are compatible with 6.0):
    http://www.microsoft.com/downloads/e...displaylang=en

    gg

  5. #5
    Join Date
    Dec 2006
    Posts
    17

    Re: Power Manager API C++

    Quote Originally Posted by Codeplug View Post
    Compilers from this decade:
    http://www.microsoft.com/express/Dow...010-Visual-CPP
    http://www.codeblocks.org/

    Or use a newer PSDK (but not all the debug libs are compatible with 6.0):
    http://www.microsoft.com/downloads/e...displaylang=en

    gg
    Thank you very much for your help.
    I will do your suggestion.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)