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
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