MODULEENTRY

3.1

#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.

Members

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.

See Also

ModuleFindHandle, ModuleFindName, ModuleFirst, ModuleNext