PVOID EngAllocMem(
ULONG fl, | |
ULONG cj, | |
ULONG tag | |
); |
EngAllocMem allocates a block of memory from the system’s paged pool, and inserts a caller-supplied tag before the allocation.
EngAllocMem returns a pointer to the allocated memory if the system has enough memory to satisfy the request; otherwise, it returns a null pointer.
The tag string should be specified in byte reversed order. The first letter must be ‘D’; the other three should be indicative of the driver name. For example, the tag string ‘ 3sD’ appears as ‘Ds3 ‘ if pool is dumped. The tag appears in any crash dump of the system that occurs.