However few moments later the SCM ends the service with following message written in the event log:
Product: Windows Operating System
Event ID: 7034
Source: Service Control Manager
Symbolic Name: EVENT_SERVICE_CRASH_
Message: The %1 service terminated unexpectedly. It has done this %2 time(s).
I found following explanation on a Microsoft page (http://www.microsoft.com/technet/support/ee/transform.aspx?ProdName=Windows+Operating+System&ProdVer=5.2&EvtID=7034&EvtSrc=Service+Control+Manager&LCID=1033
"The specified service could not continue. This service is configured to report the number of failures and, after a specific number of failures are reported, the Service Control Manager will perform the recovery action configured for the specified service."
Is there a way to suppress in a programmatic manner this behavior?