|
-
Jul 14th, 2000, 08:17 AM
#1
Thread Starter
Lively Member
Can anyone explain how to stop and start NT services in VB code?
-
Jul 14th, 2000, 11:05 AM
#2
Fanatic Member
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. 
Paul Dwyer 
Network Engineer
Aussie In Tokyo
Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|