ReactOS
0.4.16-dev-470-g91b8923
NtQuerySystemInformation.c
Go to the documentation of this file.
1
/*
2
* PROJECT: ReactOS Kernel
3
* LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
4
* PURPOSE: Test for NtQuerySystemInformation
5
* COPYRIGHT: Copyright 2019 Thomas Faber (thomas.faber@reactos.org)
6
*/
7
8
#include "
precomp.h
"
9
10
START_TEST
(
NtQuerySystemInformation
)
11
{
12
NTSTATUS
Status
;
13
14
Status
=
NtQuerySystemInformation
(0,
NULL
, 0,
NULL
);
15
ok_hex
(
Status
,
STATUS_INFO_LENGTH_MISMATCH
);
16
17
Status
=
NtQuerySystemInformation
(0x80000000,
NULL
, 0,
NULL
);
18
ok_hex
(
Status
,
STATUS_INVALID_INFO_CLASS
);
19
}
ok_hex
#define ok_hex(expression, result)
Definition:
atltest.h:94
START_TEST
#define START_TEST(x)
Definition:
atltest.h:75
NTSTATUS
LONG NTSTATUS
Definition:
precomp.h:26
NULL
#define NULL
Definition:
types.h:112
Status
Status
Definition:
gdiplustypes.h:25
STATUS_INVALID_INFO_CLASS
#define STATUS_INVALID_INFO_CLASS
Definition:
ntstatus.h:240
NtQuerySystemInformation
NTSYSAPI NTSTATUS NTAPI NtQuerySystemInformation(IN SYSTEM_INFORMATION_CLASS SystemInfoClass, OUT PVOID SystemInfoBuffer, IN ULONG SystemInfoBufferSize, OUT PULONG BytesReturned OPTIONAL)
STATUS_INFO_LENGTH_MISMATCH
#define STATUS_INFO_LENGTH_MISMATCH
Definition:
udferr_usr.h:133
precomp.h
modules
rostests
apitests
ntdll
NtQuerySystemInformation.c
Generated on Wed Jan 15 2025 06:07:26 for ReactOS by
1.9.6