[Console Application] Event when user logout/shutdown windows?
Hi,
I need my console application to execute a last command when a user logout or shutdown windows.
Is there a way to catch those events? or is there a specific event when windows try to close your application (you logout => windows want to close everything including your app). I found such thing for a windows form but not for a console application ...
Thanks for your help.
N.

