EngMapModule function (winddi.h)

The EngMapModule function returns the address and size of a file that was loaded by EngLoadModule, EngLoadModuleForWrite, EngLoadImage, or EngMapFile.

Syntax

ENGAPI PVOID EngMapModule(
  [in] HANDLE h,
  [in] PULONG pSize
);

Parameters

[in] h

Handle to the file to be memory-mapped.

[in] pSize

Pointer to a memory location that receives the size, in bytes, of the memory-mapped file.

Return value

EngMapModule returns a pointer to the view of the file identified by h.

Remarks

A driver can open and read a file using EngLoadModule and EngMapModule.

Requirements

Requirement Value
Minimum supported client Available in Windows 2000 and later versions of the Windows operating systems.
Target Platform Universal
Header winddi.h (include Winddi.h)
Library Win32k.lib
DLL Win32k.sys

See also

EngFreeModule

EngLoadImage

EngLoadModule

EngLoadModuleForWrite

EngMapFile