Go to the source code of this file.
◆ ntv6
◆ START_TEST()
START_TEST |
( |
NtSystemInformation |
| ) |
|
Definition at line 326 of file SystemInfo.c.
327{
330
333
337
343
349
355
359
363
367}
static void Test_Flags(void)
static void Test_TimeAdjustment(void)
static void Test_KernelDebugger(void)
IN CINT OUT PVOID IN ULONG OUT PULONG ReturnLength
#define STATUS_ACCESS_VIOLATION
#define STATUS_DATATYPE_MISALIGNMENT
#define STATUS_INVALID_INFO_CLASS
NTSYSAPI NTSTATUS NTAPI NtQuerySystemInformation(IN SYSTEM_INFORMATION_CLASS SystemInfoClass, OUT PVOID SystemInfoBuffer, IN ULONG SystemInfoBufferSize, OUT PULONG BytesReturned OPTIONAL)
◆ Test_Flags()
Definition at line 16 of file SystemInfo.c.
17{
25
26
29
30
36
41
47
53
61
69
78
84 ok(FlagsInfo->
Flags != 0x55555555,
"Flags = %lx\n", FlagsInfo->
Flags);
87
96
102
108
114
120
127 ok(Buffer2[0] == 0x00000455,
"Buffer2[0] = %lx\n", Buffer2[0]);
128 ok(Buffer2[1] == 0x55555500,
"Buffer2[1] = %lx\n", Buffer2[1]);
129
130
133
136
139
142
145 {
146 skip(
"Cannot acquire SeDebugPrivilege\n");
147 return;
148 }
149
152
155
158
162
165
168
171
174
176
179}
NTSYSAPI NTSTATUS NTAPI NtSetSystemInformation(IN INT SystemInformationClass, IN PVOID SystemInformation, IN ULONG SystemInformationLength)
#define NT_SUCCESS(StatCode)
#define RtlFillMemory(Dest, Length, Fill)
#define SE_DEBUG_PRIVILEGE
#define SE_SYSTEMTIME_PRIVILEGE
NTSYSAPI NTSTATUS NTAPI RtlAdjustPrivilege(_In_ ULONG Privilege, _In_ BOOLEAN NewValue, _In_ BOOLEAN ForThread, _Out_ PBOOLEAN OldValue)
#define STATUS_ACCESS_DENIED
#define STATUS_INFO_LENGTH_MISMATCH
VERSIONHELPERAPI IsWindows7OrGreater()
_Must_inspect_result_ _In_ ULONG Flags
Referenced by START_TEST().
◆ Test_KernelDebugger()
static void Test_KernelDebugger |
( |
void |
| ) |
|
|
static |
Definition at line 278 of file SystemInfo.c.
279{
284
285
291
300
306 ok((
Buffer[0] & 0x55fefe55) == 0x55000055,
"Buffer[0] = %lx\n",
Buffer[0]);
308
318
319
324}
@ SystemKernelDebuggerInformation
Referenced by START_TEST().
◆ Test_TimeAdjustment()
static void Test_TimeAdjustment |
( |
void |
| ) |
|
|
static |
Definition at line 183 of file SystemInfo.c.
184{
190
191
194
197
198
200 &TimeInfoOrg,
201 sizeof(TimeInfoOrg),
203
204
206 &SetTimeInfo,
207 sizeof(SetTimeInfo));
209
210
213 {
214 skip(
"Cannot acquire SeSystemTimePrivilege\n");
215 return;
216 }
217
218
220 &SetTimeInfo,
221 sizeof(SetTimeInfo) + 1);
223
224
226 &SetTimeInfo,
227 sizeof(SetTimeInfo));
229
230
234 &SetTimeInfo,
235 sizeof(SetTimeInfo));
237
238
240 &GetTimeInfo,
241 sizeof(GetTimeInfo),
246
247
251 &SetTimeInfo,
252 sizeof(SetTimeInfo));
254
255
257 &GetTimeInfo,
258 sizeof(GetTimeInfo),
263
264
268 &SetTimeInfo,
269 sizeof(SetTimeInfo));
271
274}
#define STATUS_PRIVILEGE_NOT_HELD
#define ok_ntstatus(status, expected)
#define ok_long(expression, result)
@ SystemTimeAdjustmentInformation
#define STATUS_INVALID_PARAMETER_2
#define STATUS_INTEGER_DIVIDE_BY_ZERO
Referenced by START_TEST().