Declare Function ReadProcessMemory Lib "Kernel32" (ByVal hProcess As Long, ByVal lpBaseAddress As Any, ByVal lpBuffer As Any, ByVal nSize As Long, lpNumberOfBytesWritten As Long) As Long
如果某个地址(00345678)中存放的是数据值,我可以用下面的语句直接把数据读出赋值给变量SJ
dim sj
ReadProcessMemory pHandle, &H345678, VarPtr(sj), 4, 0&