How can i get the .exe file name of a program , given a handle to one of its windows?

Thanks for any help