mirror of
https://github.com/reactos/reactos.git
synced 2024-08-29 22:58:34 +00:00
24 lines
756 B
C
24 lines
756 B
C
![]() |
/*
|
||
|
* PROJECT: ReactOS Kernel
|
||
|
* LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
|
||
|
* PURPOSE: Test for NtQueryInformationFile
|
||
|
* COPYRIGHT: Copyright 2019 Thomas Faber (thomas.faber@reactos.org)
|
||
|
*/
|
||
|
|
||
|
#include "precomp.h"
|
||
|
|
||
|
#define ntv6(x) (LOBYTE(LOWORD(GetVersion())) >= 6 ? (x) : 0)
|
||
|
|
||
|
START_TEST(NtQueryInformationFile)
|
||
|
{
|
||
|
NTSTATUS Status;
|
||
|
|
||
|
Status = NtQueryInformationFile(NULL, NULL, NULL, 0, 0);
|
||
|
ok(Status == STATUS_INVALID_INFO_CLASS ||
|
||
|
ntv6(Status == STATUS_NOT_IMPLEMENTED), "Status = %lx\n", Status);
|
||
|
|
||
|
Status = NtQueryInformationFile(NULL, NULL, NULL, 0, 0x80000000);
|
||
|
ok(Status == STATUS_INVALID_INFO_CLASS ||
|
||
|
ntv6(Status == STATUS_NOT_IMPLEMENTED), "Status = %lx\n", Status);
|
||
|
}
|