PsChargeProcessNonPagedPoolQuota

This function charges a process for its use of non-paged pool.

Declaration

NTSTATUS
PsChargeProcessNonPagedPoolQuota (
    EPROCESS *Process,
    SIZE_T Amount);

Parameters

The Process argument is the address of the process that is to be charged for its use of non-paged pool.

The Amount argument is the amount, in bytes, to charge.

Return Value

The function returns STATUS_SUCCESS if successful, else a negative error code.

Availability

The PsChargeProcessNonPagedPoolQuota function is exported by name from the kernel in version 5.1 and higher.

Documentation Status

The PsChargeProcessNonPagedPoolQuota function is not documented.

Behaviour

The PsChargeProcessNonPagedPoolQuota function is essentially the PsChargeProcessPoolQuota function but with the latter’s PoolType argument specialised to NonPagedPool (0).