As for 2nd point: maybe you could register for SERVICE_CONTROL_PRESHUTDOWN notification with RegisterServiceCtrlHandlerEx as here: http://msdn.microsoft.com/en-us/magazine/cc164252.aspx MS says that "The SCM will wait (potentially indefinitely) for all of the pre-shutdown services to stop before proceeding with its traditional services shutdown process" Regards, Chris |