 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
skyw4rrior Advanced Cheater
Reputation: 0
Joined: 21 Aug 2005 Posts: 67
|
Posted: Tue Mar 07, 2006 7:49 pm Post subject: From Injected Dll |
|
|
How do I do to call a function of an injected dll (and give it's result)?
ah.. let me do another question:
I'm sending a window message from an application to another. The problem is.. the first one sends a value (on lparam or wparam).. and the 2° one receives a different value... why?
I Used this message type:
| Code: |
...
WM_READM = wm_user + 500;
...
procedure WMRead(var Msg: TMessage); message WM_READM;
...
procedure TForm1.WMRead(var Msg: TMessage);
begin
MessageBox(0,pchar(inttostr(Msg.LParam)),'Look',mb_ok);
MessageBox(0,pchar(inttostr(Msg.WParam)),'Look',mb_ok); {<-- I put a messagebox showing the lparam and wparam values to check if it's correct.. BUT R'NT }
end;
|
in the first application:
| Code: |
...
var x:dword;
begin
x:=dword(edit1.text);
MessageBox(0,pchar(inttostr(x)),'Look',mb_ok);
SendMessage(WINHAND,WM_READM,0,x);
end;
|
Why the values r coming different in the second app?
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25807 Location: The netherlands
|
Posted: Tue Mar 07, 2006 11:55 pm Post subject: |
|
|
edit1.text is a pointer to the first character of the edit1 textfield
you give that pointer to x
and you give that address as lparam to the 2nd app.
Problem is that the 2nd app doesn't have a edit1 object, so it is pointing is a completly random location. (app2 doesn't have the memory of app1)
one way to solve this is using shared memory and give a offset into the object, using wm_copydata, or another method
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|