servicemanager.RegisterServiceCtrlHandler
int/None = RegisterServiceCtrlHandler(serviceName, callback , extra_args )
Registers the Python service control handler function.
Parameters
Return Value
If the service manager is in debug mode, this returns None, indicating there is no service control manager handle, otherwise the handle to the Win32 service manager.