Is it possible to get the path of a process's .exe file from another process using the first process window handle?
I'm writing a dll that would just love to find the home directory of winamp using winamp's window handle. This dll is btw not running inside winamps process space.
I know it's possible to read HKCU\Software\Winamp\ but the installation path is only there if you used the nullsoft installer and not if you just unzipped a previously zipped winamp dir. So it's not a 100% working method as a lot of people i know reinstall a winamp backup using the zip method. Like me for instance ;)
I'm writing a dll that would just love to find the home directory of winamp using winamp's window handle. This dll is btw not running inside winamps process space.
I know it's possible to read HKCU\Software\Winamp\ but the installation path is only there if you used the nullsoft installer and not if you just unzipped a previously zipped winamp dir. So it's not a 100% working method as a lot of people i know reinstall a winamp backup using the zip method. Like me for instance ;)
GetWindowThreadProcessId, GetModuleFileName, toolhelp32 API