Can anyone explain how to stop and start NT services in VB code?
Printable View
Can anyone explain how to stop and start NT services in VB code?
There are whole heap of APIs in the winapi.txt file that comes with VB that look like:
Declare Function StartService Lib "advapi32.dll" Alias "StartServiceA" (ByVal hService As Long, ByVal dwNumServiceArgs As Long, ByVal lpServiceArgVectors As Long) As Long
as well as all the constants and types too. I have no documentation that covers them (niether of my API books have anything) but you should be able to work through it.
or write a few batch files and shell them hidden. ;)