Im trying to get the executable path from a program that is running. I can find the window handle with FindWindow, but now i dont know how to find the path from where the program is running. I saw an example program in msdn which searches all processes, but i dont really like to check all processes when i already got the handle to the window. Does anyone know a way to get the path from the executable from an OTHER program from which i have the handle?
EDIT. i tried GetWindowModuleFileName but this return the name of my own program.