reactos/modules/rostests/apitests/ntdll/NtQuerySystemInformation.c

20 lines
549 B
C

/*
* PROJECT: ReactOS Kernel
* LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
* PURPOSE: Test for NtQuerySystemInformation
* COPYRIGHT: Copyright 2019 Thomas Faber (thomas.faber@reactos.org)
*/
#include "precomp.h"
START_TEST(NtQuerySystemInformation)
{
NTSTATUS Status;
Status = NtQuerySystemInformation(0, NULL, 0, NULL);
ok_hex(Status, STATUS_INFO_LENGTH_MISMATCH);
Status = NtQuerySystemInformation(0x80000000, NULL, 0, NULL);
ok_hex(Status, STATUS_INVALID_INFO_CLASS);
}