flynny1st
July 6th, 2007, 07:05 AM
Hi,
I'm having trouble finding a windows executable string from the HWND.
It seems to work ok if i try and get the string of the process but is i try this on another window (for example on internet explorer window). it returns nonsense.
this is how i'm doing it
char path[500];
HINSTANCE__* foundWindowH = (HINSTANCE) GetWindowLong(hwndFoundWindow,GWL_HINSTANCE);
GetModuleFileName(foundWindowH, path, 500);
with hwndFoundWindow being the HWND__* i'm interested in.
any ideas,
thanks Matt.
I'm having trouble finding a windows executable string from the HWND.
It seems to work ok if i try and get the string of the process but is i try this on another window (for example on internet explorer window). it returns nonsense.
this is how i'm doing it
char path[500];
HINSTANCE__* foundWindowH = (HINSTANCE) GetWindowLong(hwndFoundWindow,GWL_HINSTANCE);
GetModuleFileName(foundWindowH, path, 500);
with hwndFoundWindow being the HWND__* i'm interested in.
any ideas,
thanks Matt.