Here is a API call for your task to perform.<br><br>Use the function ExitWindowsEx. This function has two parameters. The first is one or more flags to instruct windows how to shutdown. These are listed below along with the declarations. The second part of the function is reserved, and it set to zero. It is important to unload your application to help the system to shut down smoothly. The declarations for this function are below.<br>Public Const EWX_LOGOFF = 0 <br>Public Const EWX_SHUTDOWN = 1 <br>Public Const EWX_REBOOT = 2 <br>Public Const EWX_FORCE = 4 <br>Declare Function ExitWindowsEx Lib "user32" Alias _<br>"ExitWindowsEx" (ByVal uFlags As Long, ByVal dwReserved _<br>As Long) As Long <br>If you wanted to forcefully reboot the computer use the following code:<br><br>t& = ExitWindowsEx(EWX_FORCE OR EWX_REBOOT, 0)<br><br>I hope this you required if I am not wrong.