AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
When that work is done _IsDeinitialized is set to true. In the OnCustomCommand I have a seperated task which does work thats needs to be done when the service stops. Even when I'm using SetServiceStatus with a WaitHint and incremended CheckPoint.ĭoes anyone know if you can keep a Windows service alive for over 3:20 minutes when Windows shuts down? If so how can I do this. I mannaged to keep the service alive for 3:20 minutes, but then Windows shuts down the ServiceĪutomatically. Because the service needs to do some work I need the service alive for example 5 minutes before the service can stop. Now I know when Windows is shutting down. I have made a Windows service which responds to the PreShutDown notification which Windows sends when the system shuts down.
0 Comments
Read More
Leave a Reply. |