Discussion:
How to get process name from HWND or processID or ProcessHandle
(too old to reply)
Arif Ali Saiyed
2010-01-26 19:25:58 UTC
Permalink
Hi There,
I have HWND / process ID / Process handle
how can I find the process name from it...

I did try GetProcessImageFileName but it's returning junk characters :
(
-Arif
Christian ASTOR
2010-01-26 19:52:52 UTC
Permalink
             I have HWND / process ID  / Process handle
 how can I find the process name from it...
I did try GetProcessImageFileName but it's returning junk characters
There are several old methods, like
GetModuleFileNameEx(),
GetModuleBaseName(),
NtQueryInformationProcess() & PROCESS_BASIC_INFORMATION,
etc...
Ivo Beltchev
2010-01-27 04:09:52 UTC
Permalink
GetWindowThreadProcessId is probably what you need.
Post by Arif Ali Saiyed
Hi There,
I have HWND / process ID / Process handle
how can I find the process name from it...
(
-Arif
Loading...