EngAllocMem macro (winddi.h)

The EngAllocMem function allocates a block of memory and inserts a caller-supplied tag before the allocation.

Syntax

void EngAllocMem(
  [in]  flags,
  [in]  cj,
  [in]  tag
);

Parameters

[in] flags

Specifies how to allocate memory. This parameter can be a combination of the following values.

Value Meaning
FL_NONPAGED_MEMORY Allocate memory from the nonpaged pool. If this flag is not set, the memory is allocated from the system's paged pool.
FL_ZERO_MEMORY Zero-initialize the allocated memory. If this flag is not set, the memory is returned uninitialized.

[in] cj

Specifies the number of bytes to allocate.

[in] tag

Specifies a 4-byte pool tag that uniquely identifies the driver that does the memory allocation. For more information about pool tags, see ExAllocatePoolWithTag.

Return value

None

Remarks

When the memory is no longer needed, it should be freed by a call to the EngFreeMem function.

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

EngFreeMem