18th
Ноя

Как просканировать память программы в поисках определеного значения?

Posted by Chas under Delphi

Larboss

function GetAdrValue(h: hwnd; Addres: cardinal; ByteType: integer;
var GetValue: integer): Boolean;
var
PID, PH: cardinal;
rw: cardinal;
exec: Boolean;
begin
exec := true;
if h = 0 then
exec := false;
getwindowthreadprocessid(h, PID);
PH := openprocess(process_all_access, false, PID);
if PH = 0 then
exec := false;
if readprocessmemory(PH, ptr(Addres), @GetValue, ByteType, rw) = false then
exec := false;
closehandle(PH);
result := exec;
end;

тема на форуме

Похожие статьи