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.
Printable View
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.
On Wed, 23 Jul 2003 15:45:53 +0100, "Austin Harvey"
<auztin100@hotmail.com> wrote:
[color=blue]
>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.
>[/color]
ExitWindowsEx(), plus you might need to change your privileges to be
able to shut the machine down. There's sample code on MSDN.
Jim