How can I detect WinRT app exit?
107288
Handle application exit
146697
How do I reopen an instance window once it has disappeared from desktop?
157927
Is there a way to quit an app when the last item is closed?
155395
Windows 7 "Waiting for background program to close"
32860
How can I detect when the mouse leaves the window?
135314
How can I detect Windows 8.1 in a Desktop application
130938
Java: Handle logoff or shutdown on Windows and Linux
30789
Window close events in a winforms application
154113
Detecting and restarting my crashed .NET application
53082
Detect virtualized OS from an application?
34849
How to detect a remote side socket close?
51783
How to find source process of unknown popup in Windows 7
5845
termination of program on main thread exit?
1506
which app triggers the "Windows features" dialog?
95462
C# - How to detect a Windows shutdown/logoff and cancel that action (after asking the user)
112985
How to monitor process/program execution in windows?
100260
What is the "right" way to bring a Windows Forms Application to the foreground?