How would it be possible to close all instances of my program at the same time?


Say if someone clicks "exit" on one instance of my program, how could i make it also close all other instances?

The real question here is it possible to do this directly? Without writing to a file or the registry & have the other program constantly reading that location?

Would it be possible to have a program "listen" for a command, or when somthing is called in one program it's also called in all the others, i think this is possible with classes but it's been a while.