bbdfd8d09d37f4ba59d9219c4f967bc75b7eb79b
[reactos.git] / base / setup / lib / settings.h
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 /*
30 * Return values:
31 * 0x00: Failure, stop the enumeration;
32 * 0x01: Add the entry and continue the enumeration;
33 * 0x02: Skip the entry but continue the enumeration.
34 */
35 typedef UCHAR
36 (NTAPI *PPROCESS_ENTRY_ROUTINE)(
37 IN PWCHAR KeyName,
38 IN PWCHAR KeyValue,
39 IN PCHAR DisplayText,
40 IN SIZE_T DisplayTextSize,
41 OUT PVOID* UserData,
42 OUT PBOOLEAN Current,
43 IN PVOID Parameter OPTIONAL);
44
45 LONG
46 AddEntriesFromInfSection(
47 IN OUT PGENERIC_LIST List,
48 IN HINF InfFile,
49 IN PCWSTR SectionName,
50 IN PINFCONTEXT pContext,
51 IN PPROCESS_ENTRY_ROUTINE ProcessEntry,
52 IN PVOID Parameter OPTIONAL);
53
54 UCHAR
55 NTAPI
56 DefaultProcessEntry(
57 IN PWCHAR KeyName,
58 IN PWCHAR KeyValue,
59 IN PCHAR DisplayText,
60 IN SIZE_T DisplayTextSize,
61 OUT PVOID* UserData,
62 OUT PBOOLEAN Current,
63 IN PVOID Parameter OPTIONAL);
64
65
66 PGENERIC_LIST
67 CreateComputerTypeList(
68 HINF InfFile);
69
70 PGENERIC_LIST
71 CreateDisplayDriverList(
72 HINF InfFile);
73
74 BOOLEAN
75 ProcessComputerFiles(
76 HINF InfFile,
77 PGENERIC_LIST List,
78 PWCHAR *AdditionalSectionName);
79
80 BOOLEAN
81 ProcessDisplayRegistry(
82 HINF InfFile,
83 PGENERIC_LIST List);
84
85 PGENERIC_LIST
86 CreateKeyboardDriverList(
87 HINF InfFile);
88
89 #if 0 // FIXME: Disabled for now because it uses MUI* functions from usetup
90
91 PGENERIC_LIST
92 CreateKeyboardLayoutList(
93 HINF InfFile,
94 WCHAR *DefaultKBLayout);
95
96 PGENERIC_LIST
97 CreateLanguageList(
98 HINF InfFile,
99 WCHAR *DefaultLanguage);
100
101 ULONG
102 GetDefaultLanguageIndex(VOID);
103
104 BOOLEAN
105 ProcessKeyboardLayoutRegistry(
106 PGENERIC_LIST List);
107
108 BOOLEAN
109 ProcessKeyboardLayoutFiles(
110 PGENERIC_LIST List);
111
112 #endif
113
114 BOOLEAN
115 ProcessLocaleRegistry(
116 PGENERIC_LIST List);
117
118 BOOLEAN
119 SetGeoID(
120 PWCHAR Id);
121
122 BOOLEAN
123 SetDefaultPagefile(
124 WCHAR Drive);
125
126 /* EOF */