EngMapModule

PVOID EngMapModule(

HANDLE h,
PULONG pSize
);

EngMapModule returns the address and size of an executable file that was loaded by EngLoadModule.

Parameters

h

Handle to the file to be memory-mapped.

pSize

Pointer to a ULONG in which the memory-mapped file's size, in bytes, is returned.

Return Value

EngMapModule returns a pointer to the view of the file identified by h. The file's size is returned in pSize.

Comments

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

See Also

EngFreeModule, EngLoadModule