win32service.OpenService

PySC_HANDLE = OpenService(scHandle, name , desiredAccess )

Returns a handle to the specified service.

Parameters

scHandle : PySC_HANDLE

Handle to the Service Control Mananger

name : PyUnicode

The name of the service to open.

desiredAccess : int

The access desired.