Edit

Share via


ExDestroyPool function (wdm.h)

ExDestroyPool destroys a pool instance.

Syntax

void ExDestroyPool(
  HANDLE PoolHandle
);

Parameters

PoolHandle

[in] Handle to the pool instance to be destroyed. Must be a valid handle returned by ExCreatePool.

Return value

None.

Remarks

After this call, the pool handle is no longer valid and must not be used in subsequent operations.

All allocations associated with the pool must have been released before the pool is destroyed.

If the handle is invalid, a bug check may occur.

Requirements

Requirement Value
Minimum supported server Windows Server 2022
Header wdm.h (include Wdm.h)
IRQL PASSIVE_LEVEL

See also

ExCreatePool

ExAllocatePool2

ExFreePool2