#include <toolhelp.h> |
BOOL ModuleNext(lpme) | |||||
MODULEENTRY FAR* lpme; | /* address of MODULEENTRY structure | */ |
The ModuleNext function fills the specified structure with information that describes the next module in the list of all currently loaded modules.
lpme
Points to a MODULEENTRY structure that will receive information about the next module. The MODULEENTRY structure has the following form:
#include <toolhelp.h>
typedef struct tagMODULEENTRY { /* me */
DWORD dwSize;
char szModule[MAX_MODULE_NAME + 1];
HMODULE hModule;
WORD wcUsage;
char szExePath[MAX_PATH + 1];
WORD wNext;
} MODULEENTRY;
For a full description of this structure, see the Microsoft Windows Programmer's Reference, Volume 3.
The return value is nonzero if the function is successful. Otherwise, it is zero.
The ModuleNext function can be used to continue a walk through the list of all currently loaded modules. The walk must have been started by the ModuleFirst, ModuleFindName, or ModuleFindHandle function.