win32service.EnumServicesStatus

(tuple,...) = EnumServicesStatus(hSCManager, ServiceType , ServiceState )

Returns a tuple of status info for each service that meets specified criteria

Parameters

hSCManager : PySC_HANDLE

Handle to service control manager as returned by win32service::OpenSCManager

ServiceType=SERVICE_WIN32 : int

Types of services to enumerate (SERVICE_DRIVER and/or SERVICE_WIN32)

ServiceState=SERVICE_STATE_ALL : int

Limits to services in specified state

Return Value

Returns a sequence of tuples representing ENUM_SERVICE_STATUS structs: (ServiceName, DisplayName, SERVICE_STATUS)