Shutdown Windows - Programmer

This is a discussion on Shutdown Windows - Programmer ; Hi all, Should be a simple one !! Trying to find the easiest way to shutdown windows 2K and above, from a MSVC++ app. Any ideas would be great, Cheers, Auz....

+ Reply to Thread
Results 1 to 2 of 2

Thread: Shutdown Windows

  1. Shutdown Windows

    Hi all,

    Should be a simple one !!

    Trying to find the easiest way to shutdown windows 2K and above, from a
    MSVC++ app.

    Any ideas would be great,

    Cheers,

    Auz.



  2. Re: Shutdown Windows

    On Wed, 23 Jul 2003 15:45:53 +0100, "Austin Harvey"
    wrote:

    >Hi all,
    >
    >Should be a simple one !!
    >
    >Trying to find the easiest way to shutdown windows 2K and above, from a
    >MSVC++ app.
    >
    >Any ideas would be great,
    >
    >Cheers,
    >
    >Auz.
    >


    ExitWindowsEx(), plus you might need to change your privileges to be
    able to shut the machine down. There's sample code on MSDN.

    Jim

+ Reply to Thread