| View previous topic :: View next topic |
| Author |
Message |
homer_simpson Grandmaster Cheater
Reputation: 0
Joined: 25 Feb 2007 Posts: 596
|
Posted: Sat Jan 26, 2008 3:51 pm Post subject: [Delphi] WPM |
|
|
I was wandering if i could make some what of a trainer. But first i need some one to help me.
| Code: | function WriteProcessMemory(hProcess: THandle; const lpBaseAddress: Pointer; lpBuffer: Pointer;
nSize: DWORD; var lpNumberOfBytesWritten: DWORD): BOOL; stdcall; external kernel32 name 'WriteProcessMemory';
|
Now what to do?
Im kinda noobish at delphi
|
|
| Back to top |
|
 |
NothingToShow Grandmaster Cheater Supreme
Reputation: 0
Joined: 11 Jul 2007 Posts: 1579
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Sun Jan 27, 2008 4:35 am Post subject: |
|
|
I think you can use WriteProcessMemory without importing kernel32 in delphi.
I don't have delphi here, I'm at school, but I think this is how you use:
procedure whatever(...);
var
Wnd: hWnd;
hProcess: THandle;
Bytes: Array of Byte;
pID, BytesRead: Integer;
begin
Wnd := FindWindow(nil,'Untitled - notepad');
GetWindowThreadProcessId(Wnd, @pID);
hProcess := OpenProcess(Access, Boolean, pID);
Bytes := [$0A, $1B, $2C, $3D, $4E]
WriteProcessMemory(hProcess, $Address, Bytes, 5, BytesRead);
end;
Not sure...
|
|
| Back to top |
|
 |
homer_simpson Grandmaster Cheater
Reputation: 0
Joined: 25 Feb 2007 Posts: 596
|
Posted: Sun Jan 27, 2008 7:32 am Post subject: |
|
|
Ty guys i got it
|
|
| Back to top |
|
 |
|