I am using ExitWindowsEx API.But it shuts down windows.How do I RESTART Windows?
Thanks
Printable View
I am using ExitWindowsEx API.But it shuts down windows.How do I RESTART Windows?
Thanks
ExitWindowsEx (EWX_REBOOT)
That should do the trick.
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