|
-
April 19th, 1999, 09:20 AM
#1
Rebooting
Hi,
How can i force a reboot of a Windows 95/98/NT pc using VC++. I need to be able to reboot this machine without user-questions popping up about saving documents e.g. or a sysem waiting for "stopped / hanging" programs.
I want to execute this code if a machine is leaking resources or filling it's memory caused by problems.
Hope anyone can help me !
-- Ron Daemen
-
April 19th, 1999, 11:02 PM
#2
Re: Rebooting
ExitWindowsEx (EWX_REBOOT ,0);
-
April 20th, 1999, 12:26 AM
#3
Re: Rebooting
Hi,
If you don't want questions to pop up, then use:
ExitWindowsEx(EWX_REBOOT|EWX_FORCE,0L);
Daniel.
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
|