VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



This will shut down the computer

by N.W.K. Sampath Kumara (1 Submission)
Category: Windows System Services
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 8th January 2004
Date Added: Mon 8th February 2021
Rating: (1 Votes)

This will shut down the computer

API Declarations


You should select the EXITWINDOWSEX from the listbox and insert it in to your Forms Declaration

Rate This will shut down the computer



Dim lngX as long
Dim lngY as long
Dim lngX=2   'This is the number to shutdown. 1 for Reboot, 2 for Logoff 
lngY=ExitwindowsEx&(lngX,0)
End Sub 

Download this snippet    Add to My Saved Code

This will shut down the computer Comments

No comments have been posted about This will shut down the computer. Why not be the first to post a comment about This will shut down the computer.

Post your comment

Subject:
Message:
0/1000 characters