MadRemote question

delphi package - getting into other processes

MadRemote question

Postby rhaehnel » Mon May 02, 2005 3:24 pm

Is it possible for madremote to return nested records similar to:

type
pChildRec = ^TChildRec;
TChildRec = record
recname: pchar;
end;

pParentRec = ^TParentRec;
TParentRec = record
recName: pchar;
childRec: pChildRec;
end;

I modified and messed around w/ the demo app for madremote and was able to successfully return the ParentRec, but was unable to get ChildRec(even w/ ReadProcessMemory).

Or is there a better method to solve this problem?
rhaehnel
 
Posts: 1
Joined: Mon May 02, 2005 3:20 pm

Postby madshi » Tue May 03, 2005 7:23 am

You should be able to read all this by using ReadProcessMemory. Please note that you need a seperate call for each pointer/buffer to read. When reading the child rec you still can't access the string. First you also need to read the "recname" buffer with another call to ReadProcessMemory, since "pchar" is just another pointer.
madshi
Site Admin
 
Posts: 9384
Joined: Sun Mar 21, 2004 5:25 pm


Return to madRemote

Who is online

Users browsing this forum: No registered users and 1 guest

cron