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 {
64 else
66 break;
67 }
68
69
78 {
80 break;
81 }
82
84 {
87 break;
88 }
89
90
92 {
93
96
97 }
108 {
111 break;
112 }
113
114#ifndef _M_IX86
116 {
118 break;
119 }
120#endif
121 }
122
123
125 InfoClassIndex,
126 InfoPointer,
127 InfoLength,
129
130
132 "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);
133 break;
134 }
135
137 {
138 switch (InfoClassIndex)
139 {
141 {
142#ifndef _M_IX86
144#else
146#endif
147 break;
148 }
149
150
151
152
153
155 {
159 break;
160 }
161
162
164 {
167 else
169 break;
170 }
171
172
186 {
188 break;
189 }
190
191
203 {
205 break;
206 }
207
208
212 {
214 break;
215 }
216
217#ifndef _M_IX86
220 {
222 break;
223 }
224#endif
225 }
226
227
229 InfoClassIndex,
230 InfoPointer,
231 InfoLength);
232
233
235 "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);
236 break;
237 }
238
239 default:
240 break;
241 }
242}
#define STATUS_PRIVILEGE_NOT_HELD
@ ProcessBasicInformation
@ ProcessWow64Information
#define SET(field, seg, reg)
#define STATUS_NOT_IMPLEMENTED
#define STATUS_ACCESS_VIOLATION
#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
@ ProcessLUIDDeviceMapsEnabled
@ ProcessMemoryAllocationMode
@ ProcessWorkingSetWatchEx
@ ProcessInstrumentationCallback
@ ProcessImageFileMapping
@ ProcessImageInformation
@ ProcessPooledUsageAndLimits
@ ProcessImageFileNameWin32
@ ProcessAffinityUpdateMode
@ ProcessEnableAlignmentFaultFixup
@ ProcessThreadStackAllocation
@ ProcessForegroundInformation
@ ProcessDebugObjectHandle