win32service.OpenSCManager

PySC_HANDLE = OpenSCManager(machineName, dbName , desiredAccess )

Returns a handle to the service control manager

Parameters

machineName : PyUnicode

The name of the computer, or None

dbName : PyUnicode

The name of the service database, or None

desiredAccess : int

The access desired. (combination of win32service.SC_MANAGER_* flags)