VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Restart your computer

by Vicky Jadhav (5 Submissions)
Category: Windows System Services
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Mon 12th July 2004
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Restart your computer

Rate Restart your computer



'Declare the function below in a standard module

Public Declare Function ExitWindowsEx Lib "User32" Alias "ExitWindowsEx"(ByVal uFlags as Long,ByVal dwReserved as Long) as Long

Public sub Form_Load()

Call ExitWindowsEx(EWX_REBOOT,0)

End Sub

'This program reboot your machine 

Download this snippet    Add to My Saved Code

Restart your computer Comments

No comments have been posted about Restart your computer. Why not be the first to post a comment about Restart your computer.

Post your comment

Subject:
Message:
0/1000 characters