Called when the service is being started. You must override this function in order to start your service.
[Visual Basic] Overridable Protected Sub OnStart( _ ByVal args() As String _ ) [C#] protected virtual void OnStart( string[] args ); [C++] protected: virtual void OnStart( String* args[] ); [JScript] protected function OnStart( args : String[] );
ServiceBase Class | ServiceBase Members | System.ServiceProcess Namespace