EngSecureMem

HANDLE EngSecureMem(

    PVOID  Address,
   ULONG  Length
  );

EngSecureMem locks down the specified address range in memory.

Parameters

Address

Pointer to the base address of the memory to be secured.

Length

Specifies the size of the memory range to be secured.

Return Value

EngSecureMem returns a handle to the secured address range upon successful completion; otherwise, it returns null.

Comments

The address range locked down by EngSecureMem will not be deallocated until it is unlocked by EngUnsecureMem.