![]() |
|
#6
|
|||
|
|||
|
Quote:
Code:
#include <tlhelp32.h>
DWORD currentProcessId = ::GetCurrentProcessId();
HANDLE h = ::CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, currentProcessId);
if (h != INVALID_HANDLE_VALUE)
{
MODULEENTRY32 me32 = {0};
me32.dwSize = sizeof MODULEENTRY32;
for (BOOL b = ::Module32First(h, &me32); b; b = ::Module32Next(h, &me32))
{
// do something with me32
}
::CloseHandle(h);
}
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to Patch (IL Edit) of Assembles loaded from Resource | cracki | General Discussion | 18 | 01-14-2024 00:26 |
| Olly Crash when this simple app loaded... | kunam | General Discussion | 6 | 10-10-2023 21:00 |
| Working with multiple modules when reversing | maktm | General Discussion | 2 | 04-19-2015 06:46 |
| Runtime Error R6002 - Floating point not loaded | MrGneissGuy's | General Discussion | 1 | 09-14-2009 03:08 |
| Detection/Signature for Corba/Com/Dcom/Activex Modules | nulli | General Discussion | 2 | 11-27-2005 18:41 |