18{
20
21
22 switch (ValidationMode)
23 {
25 {
26 switch (InfoClassIndex)
27 {
29 {
31 break;
32 }
33
35 {
37 break;
38 }
39
40
41
42
43
44
45
47 {
49 break;
50 }
51
52
54 {
56 {
58 }
59 else
60 {
62 }
63 break;
64 }
65
66
76 {
78 break;
79 }
80
81
93 {
95 break;
96 }
97 }
98
99
101 InfoClassIndex,
102 InfoPointer,
103 InfoLength,
105
106
108 "0x%lx or special status (0x%lx) expected but got 0x%lx for class information %lu in query information process operation!\n", ExpectedStatus, SpecialStatus,
Status, InfoClassIndex);
109 break;
110 }
111
113 {
114 switch (InfoClassIndex)
115 {
117 {
119 break;
120 }
121
122
123
124
125
127 {
129 break;
130 }
131
132
134 {
136 {
138 }
139 else
140 {
142 }
143 break;
144 }
145
146
160 {
162 break;
163 }
164
165
177 {
179 break;
180 }
181
182
186 {
188 break;
189 }
190 }
191
192
194 InfoClassIndex,
195 InfoPointer,
196 InfoLength);
197
198
200 "0x%lx or special status (0x%lx) expected but got 0x%lx for class information %lu in set information process operation!\n", ExpectedStatus, SpecialStatus,
Status, InfoClassIndex);
201 break;
202 }
203
204 default:
205 break;
206 }
207}
#define STATUS_PRIVILEGE_NOT_HELD
#define SET(field, seg, reg)
@ ProcessBasicInformation
@ ProcessWow64Information
@ ProcessLUIDDeviceMapsEnabled
@ ProcessMemoryAllocationMode
@ ProcessWorkingSetWatchEx
@ ProcessInstrumentationCallback
@ ProcessImageFileMapping
@ ProcessImageInformation
@ ProcessPooledUsageAndLimits
@ ProcessImageFileNameWin32
@ ProcessAffinityUpdateMode
@ ProcessEnableAlignmentFaultFixup
@ ProcessThreadStackAllocation
@ ProcessForegroundInformation
@ ProcessDebugObjectHandle
#define NtCurrentProcess()
NTSTATUS NTAPI NtSetInformationProcess(IN HANDLE ProcessHandle, IN PROCESSINFOCLASS ProcessInformationClass, IN PVOID ProcessInformation, IN ULONG ProcessInformationLength)
NTSTATUS NTAPI NtQueryInformationProcess(_In_ HANDLE ProcessHandle, _In_ PROCESSINFOCLASS ProcessInformationClass, _Out_ PVOID ProcessInformation, _In_ ULONG ProcessInformationLength, _Out_opt_ PULONG ReturnLength)
#define STATUS_ACCESS_VIOLATION
#define STATUS_DATATYPE_MISALIGNMENT
#define STATUS_INVALID_INFO_CLASS
#define STATUS_PORT_ALREADY_SET
#define STATUS_INVALID_PARAMETER
#define STATUS_UNSUCCESSFUL
#define STATUS_INFO_LENGTH_MISMATCH