#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;
The MODULEENTRY structure contains information about one module in the module list.
dwSize
Specifies the size of the MODULEENTRY structure, in bytes.
szModule
Specifies the null-terminated string that contains the module name.
hModule
Identifies the module handle.
wcUsage
Specifies the reference count of the module. This is the same number returned by the GetModuleUsage function.
szExePath
Specifies the null-terminated string that contains the fully-qualified executable path for the module.
wNext
Specifies the next module in the module list. This member is reserved for internal use by Windows.