I was just wondering if there was a way to get the full file path by using a window handle. For example if the user selects the Notepad window then it will show "C:\Documents and Settings\SSynan\Start Menu\Programs\Accessories\Notepad.exe" (or whatever window). I tried messing with TLHelp32 but the best I could get is the file name, not the full path.
I know how to do all the necessary code to locate the window, I just don't know how to get the file path. Btw, this will be used on both WindowsXP and Windows 2000.