No, no luck with that code. I substituted JWAWinSvc for WinSvc and changed one argument type error, but no joy. The service installed but would not start.
@jsonnabendGetMem, your code compiles, installs and starts. I can't figure out what routines execute when the service starts and stops.