Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This structure contains the module load address, size, and entry point.

Syntax

typedef struct _MODULEINFO {
  LPVOID 
lpBaseOfDll;
  DWORD 
SizeOfImage;
  LPVOID 
EntryPoint;
} MODULEINFO, *LPMODULEINFO;

Members

lpBaseOfDll

The load address of the module.

SizeOfImage

The size, in bytes, of the linear space that the module occupies.

EntryPoint

The entry point of the module.

Remarks

The load address of a module is the same as the HMODULEvalue.

The information returned in the SizeOfImageand EntryPointmembers comes from the module's Portable Executable (PE) header.

The module entry point is the location called during process startup, thread startup, process shutdown, and thread shutdown.

Although this is not the address of the DllMainfunction, it is close enough for most purposes.

Requirements

Header psapi.h
Windows Embedded CE Windows CE .NET 4.1 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also