I have updated my service control functions to take advantage of the new DllOpen and DllClose functions.
I have also added _CreateService and _DeleteService.
All these functions are limited in one way or another and offer only the very basic service control so I suggest you read up on the Windows service control functions on MSDN for more information.
The test script requires winvnc.exe and vnchooks.dll to be copied to the Windows directory. You can download UltraVNC from here. Get th