Go to the source code of this file.
◆ SPIN_TIME
◆ START_TEST()
Definition at line 368 of file NtQueryInformationProcess.c.
369{
371
372
374
377
382}
#define ok_hex(expression, result)
NTSTATUS NTAPI NtQuerySystemTime(OUT PLARGE_INTEGER SystemTime)
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
◆ Test_ProcessPriorityClassAlignment()
static void Test_ProcessPriorityClassAlignment |
( |
void |
| ) |
|
|
static |
Definition at line 191 of file NtQueryInformationProcess.c.
192{
195
196
198 if (ProcPriority ==
NULL)
199 {
200 skip(
"Failed to allocate memory for PROCESS_PRIORITY_CLASS!\n");
201 return;
202 }
203
204
205
206
207
208
210
211
215 0,
218
219
226
227
231 0,
234
235
242
243
246 ProcPriority,
250
251
253 "Expected a valid number from priority class range but got %d\n", ProcPriority->
PriorityClass);
255}
#define PROCESS_PRIORITY_CLASS_INVALID
#define PROCESS_PRIORITY_CLASS_ABOVE_NORMAL
#define RtlFillMemory(Dest, Length, Fill)
#define NtCurrentProcess()
NTSTATUS NTAPI NtQueryInformationProcess(_In_ HANDLE ProcessHandle, _In_ PROCESSINFOCLASS ProcessInformationClass, _Out_ PVOID ProcessInformation, _In_ ULONG ProcessInformationLength, _Out_opt_ PULONG ReturnLength)
#define STATUS_DATATYPE_MISALIGNMENT
#define STATUS_INFO_LENGTH_MISMATCH
Referenced by START_TEST().
◆ Test_ProcessTimes()
Definition at line 16 of file NtQueryInformationProcess.c.
17{
18#define SPIN_TIME 1000000
24
25
29 0,
32
33
40
41
45 0,
48
49
53 0,
56
57
64
65
72
73
80
81
88
89
98
101
102
103 do
104 {
107 {
108 ok(0,
"NtQuerySystemTime failed with %lx\n",
Status);
109 break;
110 }
112
113
116
120 &Times1,
133
134
135 do
136 {
139 {
140 ok(0,
"NtQuerySystemTime failed with %lx\n",
Status);
141 break;
142 }
144
145
150 &Times2,
161
162
165
171
174 "KernelTime values inconsistent. Expected %I64u - %I64u < %I64u\n",
177 "UserTime values inconsistent. Expected %I64u - %I64u < %I64u\n",
179
184
185
186#undef SPIN_TIME
187}
#define ok_dec(expression, result)
#define STATUS_INVALID_HANDLE
#define NT_SUCCESS(StatCode)
_In_ ULONG _In_ ULONG _In_ ULONG Length
#define STATUS_ACCESS_VIOLATION
Referenced by START_TEST().
◆ Test_ProcessWx86Information()
static void Test_ProcessWx86Information |
( |
void |
| ) |
|
|
static |
Definition at line 259 of file NtQueryInformationProcess.c.
260{
263
264
268 0,
271
272
275 &VdmPower,
276 sizeof(VdmPower),
279
280
284 sizeof(VdmPower),
287
288
292 0,
295
296
300 sizeof(VdmPower),
303
304
308 sizeof(VdmPower),
311
312
315 &VdmPower,
316 sizeof(VdmPower),
319 ok(VdmPower == 0 || VdmPower == 1,
"The VDM power value must be within the boundary between 0 and 1, not anything else! Got %lu\n", VdmPower);
320
321
324 &VdmPower,
325 sizeof(VdmPower),
329 ok(VdmPower == 0 || VdmPower == 1,
"The VDM power value must be within the boundary between 0 and 1, not anything else! Got %lu\n", VdmPower);
330
331
333 trace(
"VdmPower = %lu\n", VdmPower);
334}
IN CINT OUT PVOID IN ULONG OUT PULONG ReturnLength
Referenced by START_TEST().
◆ Test_ProcQueryAlignmentProbe()
static void Test_ProcQueryAlignmentProbe |
( |
void |
| ) |
|
|
static |
Definition at line 338 of file NtQueryInformationProcess.c.
339{
341
342
344 {
345
347 InfoClass,
351
352
354 InfoClass,
358
359
361 InfoClass,
365 }
366}
VOID QuerySetProcessValidator(_In_ ALIGNMENT_PROBE_MODE ValidationMode, _In_ ULONG InfoClassIndex, _In_ PVOID InfoPointer, _In_ ULONG InfoLength, _In_ NTSTATUS ExpectedStatus)
static const INFORMATION_CLASS_INFO PsProcessInfoClass[]
Referenced by START_TEST().
◆ TestStartTime