本文整理自网络,侵删。
delphi XE Berlin ReadProcessMemory WriteProcessMemory
delphi XE,Berlin
[dcc32 Error] Unit9.pas(93): E2033 Types of actual and formal var parameters must be identical 形参 实参
function ReadProcessMemory(hProcess: THandle; const lpBaseAddress: Pointer; lpBuffer: Pointer; nSize: SIZE_T; var lpNumberOfBytesRead: SIZE_T): BOOL; stdcall;{$EXTERNALSYM ReadProcessMemory}function WriteProcessMemory(hProcess: THandle; const lpBaseAddress: Pointer; lpBuffer: Pointer; nSize: SIZE_T; var lpNumberOfBytesWritten: SIZE_T): BOOL; stdcall;
lpNumberOfBytesRead: SIZE_T用dwBytesWriten: THandle;类型就可以了。SIZE_T,即NativeUInt。
相关阅读 >>
Delphi新建服务,停止系统服务,以及获取服务状态和新建系统服务器的方法
Delphi rest application 与 webbroker application 区别
Delphi 使用tnethttprequest / tnethttpclient访问web服务器
更多相关阅读请进入《Delphi》频道 >>