#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 \%s ", me.modBaseAddr, me.szModule); ret = Module32Next(h, &me); } CloseHandle(h); return 0; }