| 684 | } |
| 685 | public: |
| 686 | BOOL LoadModules(HANDLE hProcess, DWORD dwProcessId) |
| 687 | { |
| 688 | // first try toolhelp32 |
| 689 | if (GetModuleListTH32(hProcess, dwProcessId)) |
| 690 | return true; |
| 691 | // then try psapi |
| 692 | return GetModuleListPSAPI(hProcess); |
| 693 | } |
| 694 | |
| 695 | |
| 696 | BOOL GetModuleInfo(HANDLE hProcess, DWORD64 baseAddr, IMAGEHLP_MODULE64_V2 *pModuleInfo) |
nothing calls this directly
no outgoing calls
no test coverage detected