Need to restart win 95/98/nt How?

I need to restart win 95/98/nt
What code can i use?
Thanks
Pote
poteAsked:
Who is Participating?
 
chensuConnect With a Mentor Commented:
::ExitWindowsEx(EWX_REBOOT, 0);
0
 
poteAuthor Commented:
This works for 95/98 but not Nt, any solution for NT?
Thanks
0
 
chensuCommented:
Shutting Down
http://msdn.microsoft.com/isapi/msdnlib.idc?theURL=/library/psdk/sysmgmt/shutdown_7z8u.htm

Replace EWX_SHUTDOWN | EWX_FORCE with EWX_REBOOT.
0
 
Brain2000Commented:
I'll post how to do it under NT after you unlock the question.
0
All Courses

From novice to tech pro — start learning today.