[img]http://img4.imageshack.us/img4/5140/71788648.jpg[/img]
program stub;
{$APPTYPE CONSOLE}
uses
SysUtils,Windows;
var
bufferhandle : THandle;
bufferaddress : pointer;
processhandle : THandle;
begin
///build buffer
bufferhandle := GlobalAlloc(GMEM_MOVEABLE and GMEM_ZEROINIT, 1);
bufferaddress := GlobalLock(bufferhandle);
//get process handle
processhandle := GetCurrentProcess;
//read one byte of file and load into buffer
ReadProcessMemory(processhandle, ptr($830022), bufferaddress, 1, nil);
end.
[Pascal Error] stub.dpr(25): E2033 Types of actual and formal var parameters must be identical
Any help?