Results 1 to 5 of 5
  1. #1
    Star Lounger
    Join Date
    Jan 2001
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Way to Turn Off Computer Programically After Shutd (VB 6 Windows 2000)

    Way to Turn Off Computer Programically After Shutdown?

    Hi,

    I have learned to shutdown Windows 2000 programically using the API ExitWindowsEx Lib, but the computer will not turn off; I get an "Ok to turn off computer" message box; How can I programically turn off the computer so the computer "fully" shuts down? Or does the Windows operating system prevent this?

    Thank you!

    --Llyal

  2. #2
    JustCallMeAl
    Guest

    Re: Way to Turn Off Computer Programically After Shutd (VB 6 Windows 2000)

    From my understanding that feature of automatically turning off the computer (actually powering down) is in the Bios. I have no idea how to access it.

  3. #3
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Way to Turn Off Computer Programically After Shutd (VB 6 Windows 2000)

    What you're looking for is power management software. There are various ones out there for different operating systems, so I'd suggest a <A target="_blank" HREF=http://www.google.com>http://www.google.com</A> search.
    Charlotte

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Way to Turn Off Computer Programically After Shutd (VB 6 Windows 2000)

    A <A target="_blank" HREF=http://search.microsoft.com/us/SearchMS25.asp?so=RECCNT&qu=ExitWindowsEx&qu=2000& boolean=ALL&i=00&i=01&i=02&i=03&i=04&i=05&i=06&i=0 7&i=08&i=09&p=1&nq=PREV&fqu=EXITWINDOWSEX&fqu=2000 >search at MS</A> shows lots of bugs in this function, and also mentions a utility called Shutdown.exe in the resource kit as an alternative.

  5. #5
    Star Lounger
    Join Date
    Jan 2001
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Way to Turn Off Computer Programically After Shutd (VB 6 Windows 2000)

    jscher2000,

    I have also heard that the WINPowerDown API is unreliable; I am going to try GUI automation to shutdown windows like a user does; since this is not a commercial application, i don't care how the shutdown gets done;

    thanksto all for the help!

    --Llyal

Posting Permissions

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