Run Service ActiveX Control Events Overview

Run Service ActiveX Control provides the following events to control the service:

Events Brief Description
OnServicePause Notifies a service that it should pause
OnUserEvent Notifies a service when user event is triggered. User events available: SERVICE_CONTROL_INTERROGATE,
SERVICE_CONTROL_NETBINDADD,
SERVICE_CONTROL_NETBINDREMOVE,
SERVICE_CONTROL_NETBINDDISABLE,
SERVICE_CONTROL_DEVICEEVENT,
SERVICE_CONTROL_HARDWAREPROFILECHANGE,
SERVICE_CONTROL_POWEREVENT,
SERVICE_CONTROL_SESSIONCHANGE, etc
OnParamChange Notifies a service that service-specific startup parameters have changed. The service should reread its startup parameters. (Only 2000/XP)
OnServiceStop Notifies a service that it should stop
OnServiceStart Notifies a service that it should start