怎样获得某个进程的内存基地址?
#include <iostream> #include <windows.h> #include <Tlhelp32.h.> using namespace std; int main() { HANDLE h= CreateToolhelp32Snapshot(8, 780); MODULEENTRY32 me; int ret = Module32First(h, &me); while (ret) { printf("%p\t\%s\n", me.modBaseAddr, me.szModule); ret = Module32Next(h, &me); } CloseHandle(h); return 0; }