Detect switch user event

EFileTahi-A

Contributor
Joined
Aug 8, 2004
Location
Portugal / Barreiro
I have this .exe running in the background but I need it to be closed whenever a user switches account (instead logging off) and restarted when the user re-logs in it.

If 2 users log in but do not close their accounts I end up having 2 .exe running at the same time which is quite problematic. Any suggestions in how to walk around this?

Thank you.
 
Top Bottom