本文整理自网络,侵删。
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 combobox 只读 text属性可用的方法
Delphi webbrowser1 保存文档为 .html
Delphi d10.x 并行库ppl编程之 tparallel.for
Delphi fileopendialog1 多选加载大量文件,不受中文文件名影响
更多相关阅读请进入《Delphi》频道 >>