VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Network Shutdown.

by Martin Anbu selvan (18 Submissions)
Category: Windows System Services
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 26th February 2004
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Network Shutdown.

API Declarations


'St.joseph's college of Engineering,chennai.
'[email protected]

Public Declare Function InitiateSystemShutdown Lib "advapi32.dll" Alias "InitiateSystemShutdown"(ByVal lpMachineName as String, ByVal lpMessage As String, ByVal dwTimeout as Long, ByVal bForceAppsClosed as Long, ByVal bRebootAfterShutdown as Long) as Long


Rate Network Shutdown.



Public Sub ShutdownMachine()

Call InitiateSystemShutDown("Name of the machine on the network",0,1,True,True)

End Sub

private sub command1_click()
call ShutdownMachine()
End sub


Download this snippet    Add to My Saved Code

Network Shutdown. Comments

No comments have been posted about Network Shutdown.. Why not be the first to post a comment about Network Shutdown..

Post your comment

Subject:
Message:
0/1000 characters