win32service.ChangeServiceConfig2

ChangeServiceConfig2(hService, InfoLevel, info)

Modifies advanced service parameters

Parameters

hService : PySC_HANDLE

Service handle as returned by win32service::OpenService

InfoLevel : int

One of win32service.SERVICE_CONFIG_* values

info : object

Type depends on InfoLevel

InfoLevel Input value
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_INFOSequence of unicode strings