VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Shut Down your Pc, Restart Windows, Restart System. Only cut the code and put in yor form.

by Servando Buonpensiere (2 Submissions)
Category: Windows System Services
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Wed 30th August 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Shut Down your Pc, Restart Windows, Restart System. Only cut the code and put in yor form.

Rate Shut Down your Pc, Restart Windows, Restart System. Only cut the code and put in yor form.



Dim i As Integer
i = ExitWindowsEx(1, 0&) 'Shut Down
End Sub

Private Sub Command2_Click()
Dim i As Integer 'Restar Windows
i = ExitWindowsEx(0, 0&)
End Sub

Private Sub Command3_Click()
Dim i As Integer 'Restart System
i = ExitWindowsEx(2, 0&)
End Sub


Download this snippet    Add to My Saved Code

Shut Down your Pc, Restart Windows, Restart System. Only cut the code and put in yor form. Comments

No comments have been posted about Shut Down your Pc, Restart Windows, Restart System. Only cut the code and put in yor form.. Why not be the first to post a comment about Shut Down your Pc, Restart Windows, Restart System. Only cut the code and put in yor form..

Post your comment

Subject:
Message:
0/1000 characters