win32service.EnumServicesStatusEx

(dict,...) = EnumServicesStatusEx(SCManager, ServiceType , ServiceState , GroupName , InfoLevel )

Lists the status of services that meet the specified criteria

Parameters

SCManager : 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

GroupName=None : str

Name of group - use None for all, or '' for services that don't belong to a group

InfoLevel=SC_ENUM_PROCESS_INFO : int

Currently SC_ENUM_PROCESS_INFO is only level defined

Win32 API References

Search for EnumServicesStatusEx at msdn, google or google groups.

Return Value

Returns a sequence of dicts, whose contents depend on information level requested. Currently, only information level supported is SC_ENUM_PROCESS_INFO (returns ENUM_SERVICE_STATUS_PROCESS).