Solved

Shut Down NT 4.0 Quick with all programs

Posted on 1998-10-22
2
154 Views
Last Modified: 2010-04-06
How can i shut down and restart NT 4.0 Quick with all
programs running ?

Thanks!!!!
0
Comment
Question by:vis
2 Comments
 
LVL 3

Expert Comment

by:bryan7
Comment Utility
hey vis, there's a special section for Windows Nt at Experts Exchange.

http://www.experts-exchange.com

bryan

0
 
LVL 1

Accepted Solution

by:
Romanian earned 50 total points
Comment Utility
Use ExitWindowsEx function with parameters EWX_REBOOT

Sample:
uses Windows;
procedure Reboot;
begin
  ExitWindowsEx(EWX_REBOOT,0);
end;
BTW, process which try reboot computer must have priveleges = SE_SHUTDOWN_NAME
You can set this by AdjustTokenPriveleges function.
If you need sample how to use AdjustTokenPriveleges tell me.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now