
Starting and Stopping Services
We have an application that has a routine that is run every night,
unattended
As part of this routine I would like to start and subsequently stop the
Remote Access Server Service as RAS isn't required to be running most of the
time
Can anyone give me some help as to how I can achieve this with API Calls?
I have found the api call given below but cannot find out what needs to be
passed as arguments
Declare Function StartService Lib "advapi32.dll" Alias "StartServiceA"
(ByVal hService As Long, ByVal dwNumServiceArgs As Long, ByVal
lpServiceArgVectors As Long) As Long
Any help gratefully received.
Please feel free to email me direct as well as posting a message back to the
group
Regards
Neil Jellis