WinGet, pid, pid, %Window%
handle:=DllCall("OpenProcess", "UInt", UNKNOWN_MAGIC_NUMBER, "UInt", 0, "UInt", pid)
msgbox, 64, , pid = %pid% `nhandle = %handle% `nerror level = %el% `nlast error = %le%
For some random window, let it be chrome its opening process without problems but for the game title it returns last error as 5 which stands for "acces denied". Is there any way I can open this process in order to read its memory? So far tried running app as x32 and x64, with and without admin rights and nothing works. Searched forums but couldn't find solution.