Is it possible to shut down a network connected computer by using VB 6
If so what could be the coding
email me thank you
Printable View
Is it possible to shut down a network connected computer by using VB 6
If so what could be the coding
email me thank you
It's InitiateSystemShutdown. It will work with NT/2000 machines, but probably requires Admin rights when attempting to use.
VB Code:
Public Declare Function InitiateSystemShutdown Lib "advapi32.dll" Alias "InitiateSystemShutdownA" (ByVal lpMachineName As String, ByVal lpMessage As String, ByVal dwTimeout As Long, ByVal bForceAppsClosed As Long, ByVal bRebootAfterShutdown As Long) As Long
Are you talking about shutting down NT workstations or
Win95/98 workstations?