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 NtQueryInformationFile 5 * COPYRIGHT: Copyright 2019 Thomas Faber (thomas.faber@reactos.org) 6 */ 7 8 #include "precomp.h" 9 10 #define ntv6(x) (LOBYTE(LOWORD(GetVersion())) >= 6 ? (x) : 0) 11 12 START_TEST(NtQueryInformationFile) 13 { 14 NTSTATUS Status; 15 16 Status = NtQueryInformationFile(NULL, NULL, NULL, 0, 0); 17 ok(Status == STATUS_INVALID_INFO_CLASS || 18 ntv6(Status == STATUS_NOT_IMPLEMENTED), "Status = %lx\n", Status); 19 20 Status = NtQueryInformationFile(NULL, NULL, NULL, 0, 0x80000000); 21 ok(Status == STATUS_INVALID_INFO_CLASS || 22 ntv6(Status == STATUS_NOT_IMPLEMENTED), "Status = %lx\n", Status); 23 } 24