EngSecureMem function (winddi.h)

The EngSecureMem function locks down the specified address range in memory.

Syntax

ENGAPI HANDLE EngSecureMem(
  [in] PVOID Address,
  [in] ULONG Length
);

Parameters

[in] Address

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

[in] 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.

Remarks

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

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