Hi There, I have HWND / process ID / Process handle how can I find the process name from it... I did try GetProcessImageFileName but it is returning junk characters : ( -Arif
There are several old methods, like GetModuleFileNameEx(), GetModuleBaseName(), NtQueryInformationProcess() & PROCESS_BASIC_INFORMATION, etc...
GetWindowThreadProcessId is probably what you need.