How to track other instances of the same program?

i wnat to let the user start several instances of the same program So
far so good! When the user closes down one of the programs, I want to
close all of the same program. How can I do this. Is it possible at all?
I tried to use the API FindWindow(...), but it did not work for me.