EngMapModule function

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

Syntax


PVOID EngMapModule(
  _In_ HANDLE h,
  _In_ PULONG pSize
);

Parameters

h [in]

Handle to the file to be memory-mapped.

pSize [in]

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

Target platform

Universal

Version

Available in Windows 2000 and later versions of the Windows operating systems.

Header

Winddi.h (include Winddi.h)

Library

Win32k.lib

DLL

Win32k.sys

See also

EngFreeModule
EngLoadModule
EngLoadModuleForWrite
EngLoadImage
EngMapFile

 

 

Send comments about this topic to Microsoft

Show: