I used EnumWindows() to iterate through all the open windows on my system, but now I need their assoicated executable names.

Upon running a certain app, I need to shut down one or more copies of a different app (from my company) on the system.

How can I do this?

Is there any way to get a exe name from a window handle?