Dracons Newbie cheater Reputation: 0
Joined: 08 Nov 2016 Posts: 16
|
Posted: Thu Jan 19, 2017 7:49 pm Post subject: [Delphi] Reading from pointers. |
|
|
Hello.
I am writing to you, because I have problem in reading pointers in Delphi.
Previously I worked with client where addresess were static, so to be able to read them I used simple code like memreadinteger.
It looked like that:
Code: | function MemReadInteger(Address: Cardinal): Cardinal; //Read adress:value
var
ProcId: Cardinal;
tProc: THandle;
NBR: Size_T;
value:integer;
begin
GetWindowThreadProcessId(FindWindow('Nazwa,Nil), @ProcId);
tProc:= OpenProcess(PROCESS_ALL_ACCESS, False, ProcId);
ReadProcessMemory(tProc, Ptr(Address), @value, 4, NBR);
CloseHandle(tProc);
Result:=value;
end; |
Now, because I am trying to work on new client addresess are not static, so it's much difficult to read from them.
This picture shows how it looks like (pointer):
[img]zapodaj.net/images/c8f4dddf9e194.png[/img]
Is anyone able to help me?
I want something like Spinedit1.value := value from this pointer.
Thanks.
|
|