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.
Code: Select all
f4:: Window:="Game title" UNKNOWN_MAGIC_NUMBER:=0x0010 ;0x0400 WinGet, pid, pid, %Window% handle:=DllCall("OpenProcess", "UInt", UNKNOWN_MAGIC_NUMBER, "UInt", 0, "UInt", pid) el:=Errorlevel le:=A_LastError msgbox, 64, , pid = %pid% `nhandle = %handle% `nerror level = %el% `nlast error = %le% return