View previous topic :: View next topic |
Author |
Message |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Mon Nov 19, 2007 8:03 pm Post subject: What am I doing wrong... |
|
|
Code: | procedure TForm1.Button1Click(Sender: TObject);
var
value : cardinal;
write : cardinal;
begin
GetProcessID('Tester.exe',PidID);
PidHandle := OpenProcess(PROCESS_ALL_ACCESS,False,PidId);
//messagedlg(PidID,mtInformation,[mbok],0);
value := 284;
WriteProcessMemory(PidHandle, ptr($CF06FC), @value, 4, write);
closehandle(PidHandle);
end;
end. |
Why isn't writeprocessmemory working? I want 4 byte by the way.
And can some1 explain how to do double and text... etc?
|
|
Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Mon Nov 19, 2007 8:04 pm Post subject: |
|
|
check the return values
_________________
|
|
Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Mon Nov 19, 2007 8:17 pm Post subject: |
|
|
What return Values???
|
|
Back to top |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Mon Nov 19, 2007 8:25 pm Post subject: |
|
|
FROM THE API WHAT ELSE!
_________________
|
|
Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Mon Nov 19, 2007 8:29 pm Post subject: |
|
|
Return Value: Nothing T.T
|
|
Back to top |
|
 |
|