Click to See Complete Forum and Search --> : Shut Down windows


chem1
August 4th, 1999, 12:20 AM
I am using ExitWindowsEx API.But it shuts down windows.How do I RESTART Windows?
Thanks

Danny Boy
August 4th, 1999, 03:25 AM
ExitWindowsEx (EWX_REBOOT)

That should do the trick.

Ravi Kiran
August 4th, 1999, 04:04 AM
MSDN:
EWX_REBOOT = 2.

On NT you should have SE_SHUTDOWN_NAME previlage
you are supposed yo use AdjustTokenPrevileges fn to enable this

Life is a comedy for those who think and a tragedy for those who feel