IMAGEHLP_MODULE structure (dbghelp.h)

Contains module information.

Syntax

typedef struct _IMAGEHLP_MODULE {
  DWORD    SizeOfStruct;
  DWORD    BaseOfImage;
  DWORD    ImageSize;
  DWORD    TimeDateStamp;
  DWORD    CheckSum;
  DWORD    NumSyms;
  SYM_TYPE SymType;
  CHAR     ModuleName[32];
  CHAR     ImageName[256];
  CHAR     LoadedImageName[256];
} IMAGEHLP_MODULE, *PIMAGEHLP_MODULE;

Members

SizeOfStruct

The size of the structure, in bytes. The caller must set this member to sizeof(IMAGEHLP_MODULE64).

BaseOfImage

The base virtual address where the image is loaded.

ImageSize

The size of the image, in bytes.

TimeDateStamp

The date and timestamp value. The value is represented in the number of seconds elapsed since midnight (00:00:00), January 1, 1970, Universal Coordinated Time, according to the system clock. The timestamp can be printed using the C run-time (CRT) function ctime.

CheckSum

The checksum of the image. This value can be zero.

NumSyms

The number of symbols in the symbol table. The value of this parameter is not meaningful when SymPdb is specified as the value of the SymType parameter.

SymType

The type of symbols that are loaded. This member can be one of the following values.

Value Meaning
SymCoff
COFF symbols.
SymCv
CodeView symbols.
SymDeferred
Symbol loading deferred.
SymDia
DIA symbols.
SymExport
Symbols generated from a DLL export table.
SymNone
No symbols are loaded.
SymPdb
PDB symbols.
SymSym
.sym file.
SymVirtual
The virtual module created by SymLoadModuleEx with SLMFLAG_VIRTUAL.

ModuleName[32]

The module name.

ImageName[256]

The image name. The name may or may not contain a full path.

LoadedImageName[256]

The full path and file name of the file from which symbols were loaded.

Remarks

This structure supersedes the IMAGEHLP_MODULE structure. For more information, see Updated Platform Support. IMAGEHLP_MODULE is defined as follows in DbgHelp.h.

#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64)
#define IMAGEHLP_MODULE IMAGEHLP_MODULE64
#define PIMAGEHLP_MODULE PIMAGEHLP_MODULE64
#define IMAGEHLP_MODULEW IMAGEHLP_MODULEW64
#define PIMAGEHLP_MODULEW PIMAGEHLP_MODULEW64
#else
typedef struct _IMAGEHLP_MODULE {
    DWORD    SizeOfStruct;
    DWORD    BaseOfImage; 
    DWORD    ImageSize; 
    DWORD    TimeDateStamp; 
    DWORD    CheckSum; 
    DWORD    NumSyms; 
    SYM_TYPE SymType; 
    CHAR     ModuleName[32];  
    CHAR     ImageName[256]; 
    CHAR     LoadedImageName[256]; 
} IMAGEHLP_MODULE, *PIMAGEHLP_MODULE;

typedef struct _IMAGEHLP_MODULEW {
    DWORD    SizeOfStruct;  
    DWORD    BaseOfImage; 
    DWORD    ImageSize;  
    DWORD    TimeDateStamp; 
    DWORD    CheckSum; 
    DWORD    NumSyms; 
    SYM_TYPE SymType; 
    WCHAR    ModuleName[32]; 
    WCHAR    ImageName[256]; 
    WCHAR    LoadedImageName[256]; 
} IMAGEHLP_MODULEW, *PIMAGEHLP_MODULEW;
#endif

Requirements

Requirement Value
Header dbghelp.h
Redistributable DbgHelp.dll 5.1 or later

See also

SymGetModuleInfo64