18{
20
23 {
24 skip(
"FIXME: Skipping test for InfoClass %lu, because PsProcessInfoClass[] doesn't have it.\n", InfoClassIndex);
25 return;
26 }
27
28
29 switch (ValidationMode)
30 {
32 {
33 switch (InfoClassIndex)
34 {
36 {
38 break;
39 }
40
42 {
44 break;
45 }
46
47
48
49
50
51
52
54 {
56 break;
57 }
58
59
61 {
63 {
65 }
66 else
67 {
69 }
70 break;
71 }
72
73
82 {
84 break;
85 }
86
88 {
90 {
92 }
93 break;
94 }
95
96
98 {
99
101 {
103 }
104
105 }
116 {
118 {
120 }
121 break;
122 }
123
124#ifndef _M_IX86
126 {
128 break;
129 }
130#endif
131 }
132
133
135 InfoClassIndex,
136 InfoPointer,
137 InfoLength,
139
140
142 "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);
143 break;
144 }
145
147 {
148 switch (InfoClassIndex)
149 {
151 {
152#ifndef _M_IX86
154#else
156#endif
157 break;
158 }
159
160
161
162
163
165 {
169 break;
170 }
171
172
174 {
176 {
178 }
179 else
180 {
182 }
183 break;
184 }
185
186
200 {
202 break;
203 }
204
205
217 {
219 break;
220 }
221
222
226 {
228 break;
229 }
230
231#ifndef _M_IX86
234 {
236 break;
237 }
238#endif
239 }
240
241
243 InfoClassIndex,
244 InfoPointer,
245 InfoLength);
246
247
249 "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);
250 break;
251 }
252
253 default:
254 break;
255 }
256}
#define STATUS_PRIVILEGE_NOT_HELD
@ ProcessBasicInformation
@ ProcessWow64Information
#define SET(field, seg, reg)
#define STATUS_NOT_IMPLEMENTED
#define STATUS_ACCESS_VIOLATION
@ 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_reads_bytes_(ProcessInformationLength) PVOID ProcessInformation, _In_ ULONG ProcessInformationLength)
NTSTATUS NTAPI NtQueryInformationProcess(_In_ HANDLE ProcessHandle, _In_ PROCESSINFOCLASS ProcessInformationClass, _Out_writes_bytes_to_opt_(ProcessInformationLength, *ReturnLength) PVOID ProcessInformation, _In_ ULONG ProcessInformationLength, _Out_opt_ PULONG ReturnLength)
#define STATUS_DATATYPE_MISALIGNMENT
#define STATUS_INVALID_INFO_CLASS
#define STATUS_PORT_ALREADY_SET
static const INFORMATION_CLASS_INFO PsProcessInfoClass[]
#define _WIN32_WINNT_VISTA
#define STATUS_INVALID_PARAMETER
#define STATUS_UNSUCCESSFUL
#define STATUS_INFO_LENGTH_MISMATCH