Go to the source code of this file.
◆ START_TEST()
◆ Test_ProcBasePriorityClass()
static void Test_ProcBasePriorityClass |
( |
void |
| ) |
|
|
static |
Definition at line 13 of file NtSetInformationProcess.c.
14{
16
17
18
19
20
21
22
24
25
29 0);
31
32
35 &BasePriority,
38
39
45
46
49 &BasePriority,
50 0);
52
53
57 0);
59
60
66
67
73
74
77 &BasePriority,
80
81
82
83
84
85 BasePriority = 8;
88 &BasePriority,
91}
#define STATUS_PRIVILEGE_NOT_HELD
#define ok_hex(expression, result)
#define STATUS_INVALID_HANDLE
#define NtCurrentProcess()
NTSTATUS NTAPI NtSetInformationProcess(IN HANDLE ProcessHandle, IN PROCESSINFOCLASS ProcessInformationClass, IN PVOID ProcessInformation, IN ULONG ProcessInformationLength)
#define STATUS_ACCESS_VIOLATION
#define STATUS_DATATYPE_MISALIGNMENT
#define STATUS_INFO_LENGTH_MISMATCH
Referenced by START_TEST().
◆ Test_ProcessWx86InformationClass()
static void Test_ProcessWx86InformationClass |
( |
void |
| ) |
|
|
static |
Definition at line 221 of file NtSetInformationProcess.c.
222{
225
226
230 0);
232
233
237 sizeof(VdmPower));
239
240
244 0);
246
247
251 sizeof(VdmPower));
253
254
258 sizeof(VdmPower));
260
261
264 &VdmPower,
265 sizeof(VdmPower));
267}
Referenced by START_TEST().
◆ Test_ProcForegroundBackgroundClass()
static void Test_ProcForegroundBackgroundClass |
( |
void |
| ) |
|
|
static |
Definition at line 154 of file NtSetInformationProcess.c.
155{
158
160 if (ProcForeground ==
NULL)
161 {
162 skip(
"Failed to allocate memory block from heap for PROCESS_FOREGROUND_BACKGROUND!\n");
163 return;
164 }
165
166
168
169
173 0);
175
176
179 ProcForeground,
182
183
189
190
194 0);
196
197
198
199
200
201
207
208
211 ProcForeground,
214
215
217}
#define HeapFree(x, y, z)
@ ProcessForegroundInformation
Referenced by START_TEST().
◆ Test_ProcRaisePriorityClass()
static void Test_ProcRaisePriorityClass |
( |
void |
| ) |
|
|
static |
Definition at line 95 of file NtSetInformationProcess.c.
96{
98
99
101
102
106 0);
108
109
112 &RaisePriority,
115
116
120 0);
122
123
129
130
136
137
143
144
147 &RaisePriority,
150}
Referenced by START_TEST().
◆ Test_ProcSetAlignmentProbe()
static void Test_ProcSetAlignmentProbe |
( |
void |
| ) |
|
|
static |
Definition at line 271 of file NtSetInformationProcess.c.
272{
274
275
277 {
278
280 InfoClass,
284
285
287 InfoClass,
291
292
294 InfoClass,
298 }
299}
#define SET(field, seg, reg)
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().