win32service.QueryServiceConfig2

object = QueryServiceConfig2(hService, InfoLevel )

Retrieves advanced service configuration options

Parameters

hService : PySC_HANDLE

Service handle as returned by win32service::OpenService

InfoLevel : int

One of win32service.SERVICE_CONFIG_* values

InfoLevel Type of value returned


SERVICE_CONFIG_DESCRIPTIONUnicode string
SERVICE_CONFIG_FAILURE_ACTIONSDict representing a SERVICE_FAILURE_ACTIONS struct
SERVICE_CONFIG_DELAYED_AUTO_START_INFOBoolean
SERVICE_CONFIG_FAILURE_ACTIONS_FLAGBoolean
SERVICE_CONFIG_PRESHUTDOWN_INFOint (shutdown timeout in milliseconds)
SERVICE_CONFIG_SERVICE_SID_INFOint (SERVICE_SID_TYPE_*)
SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFOList of unicode strings

Return Value

Type of returned object depends on InfoLevel