11{
15 SIZE_T NonPagedUsage, PagedUsage;
17
18
20
21
24 &QuotaLimits,
25 sizeof(QuotaLimits),
28 {
29 return;
30 }
31
35
36
39 &VmCounters,
40 sizeof(VmCounters),
43 {
44 return;
45 }
46
47
52
53
56
57
61
65
66
69 &VmCounters,
70 sizeof(VmCounters),
73 {
74 return;
75 }
76
77
78
83
84
85
86
87
90
91
92 trace(
"=== QUOTA USAGE AFTER CHARGE ===\n\n");
99
100
103
104
107 &VmCounters,
108 sizeof(VmCounters),
111 {
112 return;
113 }
114
115
116
117
118
121
122
123 trace(
"=== QUOTA USAGE AFTER RETURN ===\n\n");
130
131
133}
#define ok_eq_hex(value, expected)
#define ok_eq_size(value, expected)
#define NT_SUCCESS(StatCode)
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
#define KeLeaveGuardedRegion()
#define KeEnterGuardedRegion()
NTSYSAPI NTSTATUS NTAPI ZwQueryInformationProcess(_In_ HANDLE ProcessHandle, _In_ PROCESSINFOCLASS ProcessInformationClass, _Out_ PVOID ProcessInformation, _In_ ULONG ProcessInformationLength, _Out_opt_ PULONG ReturnLength)
#define NtCurrentProcess()
NTSTATUS NTAPI PsChargeProcessNonPagedPoolQuota(_In_ PEPROCESS Process, _In_ SIZE_T Amount)
Charges the non paged pool quota of a given process.
VOID NTAPI PsReturnProcessNonPagedPoolQuota(_In_ PEPROCESS Process, _In_ SIZE_T Amount)
Returns the non paged quota pool that the process was taking up.
VOID NTAPI PsReturnProcessPagedPoolQuota(_In_ PEPROCESS Process, _In_ SIZE_T Amount)
Returns the paged pool quota that the process was taking up.
NTSTATUS NTAPI PsChargeProcessPagedPoolQuota(_In_ PEPROCESS Process, _In_ SIZE_T Amount)
Charges the paged pool quota of a given process.
SIZE_T QuotaPeakPagedPoolUsage
SIZE_T QuotaPeakNonPagedPoolUsage
SIZE_T QuotaNonPagedPoolUsage
SIZE_T QuotaPagedPoolUsage
#define PsGetCurrentProcess