Restarting an application
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
can a application restart by itself, any way to do that. or can a NT service restart by itself.
-
can a application restart by itself, any way to do that. or can a NT service restart by itself.
You can certainly use
CreateProcess
to create a new instance of your application, then quit your current process (the way you do this will depend on your application, for example, you might need to close your main window). Service processes can be configured in the Services snap-in to automatically restart if the process crashes. See theChangeServiceConfig2
API. Stability. What an interesting concept. -- Chris Maunder