GetPath() { WinGet, pid, PID h_process := DllCall("OpenProcess", UInt,0x418, Int,0, UInt,pid) VarSetCapacity(Proc, 255) DllCall("psapi.dll\GetModuleFileNameExA", UInt,h_process, UInt,0, Str,Proc, UInt,255) DllCall("CloseHandle", h_process) MsgBox %Proc% Return }
It returns Chinese characters. Why would that be?