The EngAllocMem function allocates a block of memory and inserts a caller-supplied tag before the allocation.
- Flags [in]
Specifies how to allocate memory. This parameter can be a combination of the following values.
Allocate memory from the nonpaged pool. If this flag is not set, the memory is allocated from the system's paged pool.
Zero-initialize the allocated memory. If this flag is not set, the memory is returned uninitialized.
- MemSize [in]
Specifies the number of bytes to allocate.
- Tag [in]
EngAllocMem returns a pointer to the allocated memory if the system has enough memory to satisfy the request; otherwise, it returns a null pointer.
When the memory is no longer needed, it should be freed by a call to the EngFreeMem function.
|Available in Windows 2000 and later versions of the Windows operating systems.|
Build date: 1/22/2014