Groups | Blog | Home
all groups > dotnet framework > december 2007 >

dotnet framework : Restarting windows


Alexander Vasilevsky
12/24/2007 9:19:46 PM
How can I do it in NET?

http://www.alvas.net - Audio tools for C# and VB.Net developers + Christmas
discount

Kerem Gümrükcü
12/25/2007 9:19:08 AM
Hi Alexander,

http://www.codeproject.com/KB/cs/timercomputershutdown.aspx

There is no code for adjusting token priviliges, but you
can download sample code everywhere on the www for
this,...

Just do a search for "AdjustTokenPriviliges" and "ExitWindowsEx".
You will find endless code and examples,...

Regards

Kerem

--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Microsoft Live Space: http://kerem-g.spaces.live.com/
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."

Eternal Snow
12/25/2007 2:49:39 PM
Call command:

shutdown /s /f /t 0 /d p:0:0

AddThis Social Bookmark Button