Closing a service handleΒΆ

close_service_handle()

Close a service handle


SYNTAX

close_service_handle(handle)

Closes a handle obtained from the create_service(), open_service() or open_scmanager() function. A handle should be closed when it is no longer required.

The function returns 0 if successful, or a non-zero value if an error occurs. The Windows error code is stored in sys.Errno.


RELATED TOPICS

Servers

Windows service management functions