How can i reboot my windows (Views: 100)
How can i reboot my windows?
To Reboot your computer you just have to insert the next code:
ExitWindowsEx(EWX_FORCE and EWX_REBOOT);
This line of code while cause a LogOff in Windows 2000 and Windows XP.
If you need to ShutDown the line of code is:
ExitWindowsEx(EWX_FORCE and EWX_SHUTDOWN);
For more informaction about this, just write ExitWindowsEx in your program and then press F1 and will appear the help related with this function.
<< Back to main page