VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Shut down your computer with one line of code (NO API)

by Kourosh (1 Submission)
Category: Windows System Services
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Sat 6th May 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Shut down your computer with one line of code (NO API)

Rate Shut down your computer with one line of code (NO API)



'This code works in Windows 98 and 95 only (NT does not support this)
'Invisible the form
me.visible = false
'Shut down the computer
shell "rundll32.exe user.exe,exitwindows"
End Sub


Download this snippet    Add to My Saved Code

Shut down your computer with one line of code (NO API) Comments

No comments have been posted about Shut down your computer with one line of code (NO API). Why not be the first to post a comment about Shut down your computer with one line of code (NO API).

Post your comment

Subject:
Message:
0/1000 characters