1 /* 2 * PROJECT: ReactOS API tests 3 * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later) 4 * PURPOSE: Tests for the NtSetDefaultLocale API 5 * COPYRIGHT: Copyright 2023 George Bișoc <george.bisoc@reactos.org> 6 */ 7 8 #include "precomp.h" 9 10 START_TEST(NtSetDefaultLocale) 11 { 12 NTSTATUS Status; 13 14 Status = NtSetDefaultLocale(TRUE, 0xffffffff); 15 ok_ntstatus(Status, STATUS_INVALID_PARAMETER); 16 17 Status = NtSetDefaultLocale(TRUE, 0xfffffffe); 18 ok_ntstatus(Status, STATUS_INVALID_PARAMETER); 19 20 Status = NtSetDefaultLocale(TRUE, 0x7fffffff); 21 ok_ntstatus(Status, STATUS_INVALID_PARAMETER); 22 23 Status = NtSetDefaultLocale(TRUE, 0x7ffffffe); 24 ok_ntstatus(Status, STATUS_INVALID_PARAMETER); 25 26 Status = NtSetDefaultLocale(TRUE, 0x80000000); 27 ok_ntstatus(Status, STATUS_INVALID_PARAMETER); 28 29 Status = NtSetDefaultLocale(TRUE, 0x80000001); 30 ok_ntstatus(Status, STATUS_INVALID_PARAMETER); 31 32 Status = NtSetDefaultLocale(TRUE, 0x10000); 33 ok_ntstatus(Status, STATUS_INVALID_PARAMETER); 34 35 Status = NtSetDefaultLocale(TRUE, 1); 36 ok_ntstatus(Status, STATUS_OBJECT_NAME_NOT_FOUND); 37 38 Status = NtSetDefaultLocale(TRUE, 0x0C); 39 ok_ntstatus(Status, STATUS_OBJECT_NAME_NOT_FOUND); 40 41 Status = NtSetDefaultLocale(TRUE, 0x1000); 42 ok_ntstatus(Status, STATUS_OBJECT_NAME_NOT_FOUND); 43 } 44