Witam,
Problem polega na tym, że w delphi 7 to działa, a w delphi 10 już nie.
Oto kod:
function ReadString(Address: Integer): String;
var
NB: LongWord;
Temp: ARRAY [1 .. 255] OF Byte;
I: Byte;
IDProcess: Cardinal;
begin
IDProcess := OpenProcess(PROCESS_ALL_ACCESS, False, PID);
Result := '';
ReadProcessMemory(IDProcess, Ptr(Address), @Temp[1], 255, NB);
for I := 1 to 255 do
begin
if ((Temp[I] = 0) or (Temp[I] = $0F)) then
Break;
Result := Result + Chr(Temp[I]);
end;
end;
Error Message:
[dcc32 Error] uMemory.pas(52): E2033 Types of actual and formal var parameters must be identical
ParentColor
też się przyda, dla tła.