Platform SDK: Debugging and Error Handling

IMAGEHLP_MODULE

The IMAGEHLP_MODULE structure contains module information.

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

Win64: This structure is defined as follows.

typedef struct _IMAGEHLP_MODULE64 {
    DWORD    SizeOfStruct;
    DWORD64  BaseOfImage;
    DWORD    ImageSize;
    DWORD    TimeDateStamp;
    DWORD    CheckSum;
    DWORD    NumSyms;
    SYM_TYPE SymType;
    TCHAR    ModuleName[32];
    TCHAR    ImageName[256];
    TCHAR    LoadedImageName[256];
} IMAGEHLP_MODULE64, *PIMAGEHLP_MODULE64;

Members

SizeOfStruct
Specifies the size of the structure. The caller must set this member to sizeof(IMAGEHLP_MODULE).
BaseOfImage
Specifies the base virtual address where the image is loaded.
ImageSize
Specifies the size of the image.
TimeDateStamp
Specifies 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
Specifies the computed checksum of the image. This value can be zero.
NumSyms
Specifies the number of symbols in the symbol table.
SymType
Specifies the type of symbols that are loaded. This member can be one of the following values.
Value Meaning
SymNone No symbols are loaded.
SymCoff COFF symbols.
SymCv CodeView symbols.
SymPdb .pdb file
SymExport Symbols generated from a DLL's export table.
SymDeferred The library has not yet attempted to load symbols.
SymSym .SYM file

ModuleName
Specifies the module name.
ImageName
Specifies the image name. The name may or may not contain a full path.
LoadedImageName
Specifies the full path and file name from which symbols were loaded.

Requirements

  Windows NT/2000: Requires Windows NT 3.51 or later.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in Dbghelp.h.

See Also

Debug Help Library Overview, DbgHelp Structures, SymGetModuleInfo