Is it possible in .NET to find out if my application closes due to the fact that Windows receives the shutdown command (as opposed to closing any old application) to either write out some temporary cache files or even block the shutdown for a long time to request user input?
While my current scope is related to the Winform application and the Windows service, I am interested in understanding this, if possible,
johnc source
share