Opening the service managerΒΆ

open_scmanager()

Open the service manager


SYNTAX

open_scmanager(machine_name, access_rights )

Opens the service manager on a specified computer.

machine_name

The name of the target computer. A null string means the local computer.

access_rights

Desired access to the service. See the Windows API for full details. SC_MANAGER_ALL_ACCESS can be used if the user running the program has Administrator privileges.

If successful, the function returns a manager handle, which should be stored in an i8 field. It returns 0 if the manager cannot be opened. The Windows error code is stored in sys.Errno.


RELATED TOPICS

Servers

Windows service management functions