[NTOS:OB] Add a system process quota block macro
authorGeorge Bișoc <george.bisoc@reactos.org>
Thu, 30 Dec 2021 19:59:57 +0000 (20:59 +0100)
committerGeorge Bișoc <george.bisoc@reactos.org>
Tue, 11 Jan 2022 09:11:09 +0000 (10:11 +0100)
OBP_SYSTEM_PROCESS_QUOTA is a macro that'll be used as a way to assign a dummy quota block to system processes, as we mustn't do anything to those in case the Object Manager is charging or returning pool quotas.

ntoskrnl/include/internal/ob.h

index 8c3b82f..4aad5a5 100644 (file)
 //
 #define ObpAccessProtectCloseBit 0x02000000L
 
+//
+// System Process Quota Block
+//
+#define OBP_SYSTEM_PROCESS_QUOTA ((PEPROCESS_QUOTA_BLOCK)(ULONG_PTR)1)
+
 //
 // Identifies a Kernel Handle
 //