https://git.reactos.org/?p=reactos.git;a=commitdiff;h=32e9710fd107ed8112b48ed594056267762141c9

commit 32e9710fd107ed8112b48ed594056267762141c9
Author:     George Bișoc <[email protected]>
AuthorDate: Thu Dec 30 20:59:57 2021 +0100
Commit:     George Bișoc <[email protected]>
CommitDate: Tue Jan 11 10:11:09 2022 +0100

    [NTOS:OB] Add a system process quota block macro
    
    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 | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/ntoskrnl/include/internal/ob.h b/ntoskrnl/include/internal/ob.h
index 8c3b82faf8a..4aad5a5e253 100644
--- a/ntoskrnl/include/internal/ob.h
+++ b/ntoskrnl/include/internal/ob.h
@@ -58,6 +58,11 @@
 //
 #define ObpAccessProtectCloseBit 0x02000000L
 
+//
+// System Process Quota Block
+//
+#define OBP_SYSTEM_PROCESS_QUOTA ((PEPROCESS_QUOTA_BLOCK)(ULONG_PTR)1)
+
 //
 // Identifies a Kernel Handle
 //

Reply via email to