CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2005
    Posts
    1

    C++ Program Updater

    I have just recently started to learn c++. I was wondering if anyone could help me with a program that would shutdown and startup my computer(windows 2000) at a certain time.

  2. #2
    Ejaz's Avatar
    Ejaz is offline Elite Member Power Poster
    Join Date
    Jul 2002
    Location
    Lahore, Pakistan
    Posts
    4,211

    Re: C++ Program Updater

    Quote Originally Posted by ?what
    I have just recently started to learn c++. I was wondering if anyone could help me with a program that would shutdown and startup my computer(windows 2000) at a certain time.
    Well, shutting down the computer seems quite reasonable, but once the computer is down, how do you think that you'll start it?

  3. #3
    Join Date
    May 2001
    Location
    Oslo, Norway
    Posts
    610

    Exclamation Re: C++ Program Updater

    Quote Originally Posted by Ejaz
    Well, shutting down the computer seems quite reasonable, but once the computer is down, how do you think that you'll start it?
    Latest ACPI as far as I know, allows to wake the computer up at certain time given that all the hardware is up to it (i.e. compliant to ACPI specs). They way it is done, is that the BIOS is written into and a wake up event is attached onto the computer RTC (Real Time Clock) and thats it. Since all modern BIOS allows runtime reprogramming (writing into BIOS), there is a set of Windows API functions which deal with that. I have to admit I have no idea which exactly. But the functionality exists, you can check it out by adding a task into Scheduled Tasks and check the "Wake the computer to perform this task..".

    Just setting the matter straight. Tell me if I am wrong, i am not exacly sure about this in practice.

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

Featured