I have a Console Application (App1) which runs before other application (App2) and confirm or reject by returning an error code the launch of App2. When App1 return error code 0 - App2 being launched and if the error code is different than 0, App2 close it self with showing a suitable message to the user.
This simple flow works great but I have one issue that I need to solve. It seems that when the user kill App1 by using Ctrl+Alt+Del the returned error code is 0 and then App2 runs. Is there any way to solve this issue? is it possible to catch some event before the application being killed? Thanks Ofir