ExAllocatePoolUninitialized - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdm.h

PVOID ExAllocatePoolUninitialized(
  __drv_strictTypeMatch(__drv_typeExpr)POOL_TYPE PoolType,
  SIZE_T                                         NumberOfBytes,
  ULONG                                          Tag
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdm-exallocatepooluninitialized)

Description

This routine is a wrapper and replacement option for ExAllocatePoolWithTag.

Parameters

PoolType

Defines the POOL_TYPE parameter PoolType.

NumberOfBytes

Defines the SIZE_T parameter NumberOfBytes.

Tag

Defines the ULONG parameter Tag.

Return value

Remarks

Use this wrapper if you want to explicitly not zero the allocated memory range.

A driver should only access memory within the byte range that it allocates. Accessing memory outside this range may corrupt the pool and cause the system to crash.

Memory that ExAllocatePoolUninitialized allocates is uninitialized. A kernel-mode driver must first zero this memory if it is going to make it visible to user-mode software (to avoid leaking potentially privileged contents).

See the Remarks section of ExAllocatePoolWithTag for additional guidance.

See also

ExAllocatePoolZero