PsChargeProcessPoolQuota

NTSTATUS __stdcall PsChargeProcessPoolQuota(PEPROCESS Process, POOL_TYPE PoolType, ULONG_PTR Amount){
  if( Process == PsInitialSystemProcess )
    return 0;
  else
    return PspChargeQuota(Process->QuotaBlock, Process, (PS_RESOURCE_TYPE)(PoolType == PagedPool), *(UINT64 *)&Amount);
}

Referenced by:

FsRtlCancelNotify
PsChargePoolQuota