of_stop

This function is called in response to the service being stopped by the Service Control Manager. It is also called when the system is being shutdown. Do not code any long running processes in this function. The system gives all services a total of 20 seconds to prepare for shutdown.

Arguments:

ab_shutdown - True = Shutdown, False = SCM Stop

Return:

None

Usage:

If your service uses a database, you would disconnect from it here.