What Is The Callback Method When A Daemon Application Exists
        Posted  
        
            by ChloeRadshaw
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by ChloeRadshaw
        
        
        
        Published on 2010-05-14T17:10:05Z
        Indexed on 
            2010/05/14
            17:14 UTC
        
        
        Read the original article
        Hit count: 225
        
c#
I need to be able to create a little daemon application that will keep running until the machine is restarted or the process is forcefully killed.
Is there a callback I can implement to get called when the application is exiting (either by force or at system shutdown)
I am not creating a Windows form but a daemon application - I have serached google with no luck
© Stack Overflow or respective owner