|
-
September 10th, 1999, 11:43 PM
#6
Re: How to call shutdown from within Visual C++?
Call the windows API ExitWindows or ExitWindowEx for shutting down windows.
A sample is
[ccode]
::ExitWindowsEx(EWX_LOGOFF,0) will logoff the computer;.
::ExitWindowsEx(EWX_SHUTDOWN,0) will shutdown the computer.
See the MSDN for more details about the ExitWindows and ExitWindowsEx.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|