1 /* 2 * ReactOS kernel 3 * Copyright (C) 2004 ReactOS Team 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License along 16 * with this program; if not, write to the Free Software Foundation, Inc., 17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 18 */ 19 /* 20 * COPYRIGHT: See COPYING in the top level directory 21 * PROJECT: ReactOS text-mode setup 22 * FILE: base/setup/usetup/settings.h 23 * PURPOSE: Device settings support functions 24 * PROGRAMMERS: Colin Finck 25 */ 26 27 #pragma once 28 29 /* Settings entries with simple 1:1 mapping */ 30 typedef struct _GENENTRY 31 { 32 PCWSTR Id; 33 PCWSTR Value; 34 } GENENTRY, *PGENENTRY; 35 36 PGENERIC_LIST 37 CreateComputerTypeList( 38 IN HINF InfFile); 39 40 PGENERIC_LIST 41 CreateDisplayDriverList( 42 IN HINF InfFile); 43 44 BOOLEAN 45 ProcessComputerFiles( 46 _In_ HINF InfFile, 47 _In_ PCWSTR ComputerType, 48 _Out_ PWSTR* AdditionalSectionName); 49 50 BOOLEAN 51 ProcessDisplayRegistry( 52 _In_ HINF InfFile, 53 _In_ PCWSTR DisplayType); 54 55 PGENERIC_LIST 56 CreateKeyboardDriverList( 57 IN HINF InfFile); 58 59 PGENERIC_LIST 60 CreateKeyboardLayoutList( 61 IN HINF InfFile, 62 IN PCWSTR LanguageId, 63 OUT PWSTR DefaultKBLayout); 64 65 PGENERIC_LIST 66 CreateLanguageList( 67 IN HINF InfFile, 68 OUT PWSTR DefaultLanguage); 69 70 ULONG 71 GetDefaultLanguageIndex(VOID); 72 73 BOOLEAN 74 ProcessKeyboardLayoutRegistry( 75 _In_ PCWSTR pszLayoutId, 76 _In_ PCWSTR LanguageId); 77 78 #if 0 79 BOOLEAN 80 ProcessKeyboardLayoutFiles( 81 IN PGENERIC_LIST List); 82 #endif 83 84 BOOLEAN 85 ProcessLocaleRegistry( 86 _In_ PCWSTR LanguageId); 87 88 BOOLEAN 89 SetGeoID( 90 _In_ GEOID GeoId); 91 92 BOOLEAN 93 SetDefaultPagefile( 94 _In_ WCHAR Drive); 95 96 /* EOF */ 97