这是一个API函数应用的实例程序,在vb6中新建一个工程,在Form1中建立两个command button,然后将下面的代码复制到Form1中,然后就请大家运行测试一下吧!
Option Explicit
'读内存进程Private Declare Function ReadProcessMemory Lib "kernel32" (ByVal hProcess As Long, lpBaseAddress As Any, lpBuffer As Any, ByVal nSize As Long, lpNumberOfBytesWritten As Long) ...