PsReturnPoolQuota - NtDoc

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

VOID PsReturnPoolQuota(
  [in] PEPROCESS Process,
  [in] POOL_TYPE PoolType,
  [in] ULONG_PTR Amount
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ntifs-psreturnpoolquota)

PsReturnPoolQuota function

Description

The PsReturnPoolQuota routine returns pool quota of the specified pool type to the specified process.

Parameters

Process [in]

Pointer to the process whose quota is to be returned.

PoolType [in]

Type of pool quota to return, which can be one of the following:

The NonPagedPoolMustSucceed and NonPagedPoolCacheAlignedMustS pool types are obsolete and should no longer be used.

Amount [in]

Number of bytes to return to the pool quota for this process.

Remarks

If the quota return would exceed the quota for the process, PsReturnPoolQuota raises an exception with the status value STATUS_QUOTA_EXCEEDED. Callers are responsible for handling this exception. Thus calls to PsReturnPoolQuota must be wrapped within a driver-supplied exception handler.

Every successful call to PsChargePoolQuota must be matched by a subsequent call to PsReturnPoolQuota.

For more information about memory management, see Memory Management.

See also

PsChargePoolQuota