mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:03:00 +00:00
[SETUPLIB][USETUP] Move the settings code from usetup to setuplib.
This code is moved ther since it'll be needed for 1st-stage GUI installer as well. The code dealing with keyboard layouts is however not moved yet, since it uses MUI* functions from usetup. I'll try to think how to include that in setuplib... svn path=/branches/setup_improvements/; revision=75701
This commit is contained in:
parent
6f19c83b96
commit
7af2f717bc
6 changed files with 1487 additions and 1139 deletions
|
@ -15,6 +15,7 @@ list(APPEND SOURCE
|
||||||
bootsup.c
|
bootsup.c
|
||||||
fsutil.c
|
fsutil.c
|
||||||
registry.c
|
registry.c
|
||||||
|
settings.c
|
||||||
setuplib.c
|
setuplib.c
|
||||||
precomp.h)
|
precomp.h)
|
||||||
|
|
||||||
|
|
1358
base/setup/lib/settings.c
Normal file
1358
base/setup/lib/settings.c
Normal file
File diff suppressed because it is too large
Load diff
126
base/setup/lib/settings.h
Normal file
126
base/setup/lib/settings.h
Normal file
|
@ -0,0 +1,126 @@
|
||||||
|
/*
|
||||||
|
* ReactOS kernel
|
||||||
|
* Copyright (C) 2004 ReactOS Team
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License along
|
||||||
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
|
* PROJECT: ReactOS text-mode setup
|
||||||
|
* FILE: base/setup/usetup/settings.h
|
||||||
|
* PURPOSE: Device settings support functions
|
||||||
|
* PROGRAMMERS: Colin Finck
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Return values:
|
||||||
|
* 0x00: Failure, stop the enumeration;
|
||||||
|
* 0x01: Add the entry and continue the enumeration;
|
||||||
|
* 0x02: Skip the entry but continue the enumeration.
|
||||||
|
*/
|
||||||
|
typedef UCHAR
|
||||||
|
(NTAPI *PPROCESS_ENTRY_ROUTINE)(
|
||||||
|
IN PWCHAR KeyName,
|
||||||
|
IN PWCHAR KeyValue,
|
||||||
|
IN PCHAR DisplayText,
|
||||||
|
IN SIZE_T DisplayTextSize,
|
||||||
|
OUT PVOID* UserData,
|
||||||
|
OUT PBOOLEAN Current,
|
||||||
|
IN PVOID Parameter OPTIONAL);
|
||||||
|
|
||||||
|
LONG
|
||||||
|
AddEntriesFromInfSection(
|
||||||
|
IN OUT PGENERIC_LIST List,
|
||||||
|
IN HINF InfFile,
|
||||||
|
IN PCWSTR SectionName,
|
||||||
|
IN PINFCONTEXT pContext,
|
||||||
|
IN PPROCESS_ENTRY_ROUTINE ProcessEntry,
|
||||||
|
IN PVOID Parameter OPTIONAL);
|
||||||
|
|
||||||
|
UCHAR
|
||||||
|
NTAPI
|
||||||
|
DefaultProcessEntry(
|
||||||
|
IN PWCHAR KeyName,
|
||||||
|
IN PWCHAR KeyValue,
|
||||||
|
IN PCHAR DisplayText,
|
||||||
|
IN SIZE_T DisplayTextSize,
|
||||||
|
OUT PVOID* UserData,
|
||||||
|
OUT PBOOLEAN Current,
|
||||||
|
IN PVOID Parameter OPTIONAL);
|
||||||
|
|
||||||
|
|
||||||
|
PGENERIC_LIST
|
||||||
|
CreateComputerTypeList(
|
||||||
|
HINF InfFile);
|
||||||
|
|
||||||
|
PGENERIC_LIST
|
||||||
|
CreateDisplayDriverList(
|
||||||
|
HINF InfFile);
|
||||||
|
|
||||||
|
BOOLEAN
|
||||||
|
ProcessComputerFiles(
|
||||||
|
HINF InfFile,
|
||||||
|
PGENERIC_LIST List,
|
||||||
|
PWCHAR *AdditionalSectionName);
|
||||||
|
|
||||||
|
BOOLEAN
|
||||||
|
ProcessDisplayRegistry(
|
||||||
|
HINF InfFile,
|
||||||
|
PGENERIC_LIST List);
|
||||||
|
|
||||||
|
PGENERIC_LIST
|
||||||
|
CreateKeyboardDriverList(
|
||||||
|
HINF InfFile);
|
||||||
|
|
||||||
|
#if 0 // FIXME: Disabled for now because it uses MUI* functions from usetup
|
||||||
|
|
||||||
|
PGENERIC_LIST
|
||||||
|
CreateKeyboardLayoutList(
|
||||||
|
HINF InfFile,
|
||||||
|
WCHAR *DefaultKBLayout);
|
||||||
|
|
||||||
|
PGENERIC_LIST
|
||||||
|
CreateLanguageList(
|
||||||
|
HINF InfFile,
|
||||||
|
WCHAR *DefaultLanguage);
|
||||||
|
|
||||||
|
ULONG
|
||||||
|
GetDefaultLanguageIndex(VOID);
|
||||||
|
|
||||||
|
BOOLEAN
|
||||||
|
ProcessKeyboardLayoutRegistry(
|
||||||
|
PGENERIC_LIST List);
|
||||||
|
|
||||||
|
BOOLEAN
|
||||||
|
ProcessKeyboardLayoutFiles(
|
||||||
|
PGENERIC_LIST List);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
BOOLEAN
|
||||||
|
ProcessLocaleRegistry(
|
||||||
|
PGENERIC_LIST List);
|
||||||
|
|
||||||
|
BOOLEAN
|
||||||
|
SetGeoID(
|
||||||
|
PWCHAR Id);
|
||||||
|
|
||||||
|
BOOLEAN
|
||||||
|
SetDefaultPagefile(
|
||||||
|
WCHAR Drive);
|
||||||
|
|
||||||
|
/* EOF */
|
|
@ -40,6 +40,7 @@ extern HANDLE ProcessHeap;
|
||||||
#include "utils/osdetect.h"
|
#include "utils/osdetect.h"
|
||||||
#include "utils/regutil.h"
|
#include "utils/regutil.h"
|
||||||
#include "registry.h"
|
#include "registry.h"
|
||||||
|
#include "settings.h"
|
||||||
|
|
||||||
|
|
||||||
/* DEFINES ******************************************************************/
|
/* DEFINES ******************************************************************/
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -26,29 +26,6 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
PGENERIC_LIST
|
|
||||||
CreateComputerTypeList(
|
|
||||||
HINF InfFile);
|
|
||||||
|
|
||||||
PGENERIC_LIST
|
|
||||||
CreateDisplayDriverList(
|
|
||||||
HINF InfFile);
|
|
||||||
|
|
||||||
BOOLEAN
|
|
||||||
ProcessComputerFiles(
|
|
||||||
HINF InfFile,
|
|
||||||
PGENERIC_LIST List,
|
|
||||||
PWCHAR *AdditionalSectionName);
|
|
||||||
|
|
||||||
BOOLEAN
|
|
||||||
ProcessDisplayRegistry(
|
|
||||||
HINF InfFile,
|
|
||||||
PGENERIC_LIST List);
|
|
||||||
|
|
||||||
PGENERIC_LIST
|
|
||||||
CreateKeyboardDriverList(
|
|
||||||
HINF InfFile);
|
|
||||||
|
|
||||||
PGENERIC_LIST
|
PGENERIC_LIST
|
||||||
CreateKeyboardLayoutList(
|
CreateKeyboardLayoutList(
|
||||||
HINF InfFile,
|
HINF InfFile,
|
||||||
|
@ -62,10 +39,6 @@ CreateLanguageList(
|
||||||
ULONG
|
ULONG
|
||||||
GetDefaultLanguageIndex(VOID);
|
GetDefaultLanguageIndex(VOID);
|
||||||
|
|
||||||
BOOLEAN
|
|
||||||
ProcessLocaleRegistry(
|
|
||||||
PGENERIC_LIST List);
|
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
ProcessKeyboardLayoutRegistry(
|
ProcessKeyboardLayoutRegistry(
|
||||||
PGENERIC_LIST List);
|
PGENERIC_LIST List);
|
||||||
|
@ -74,12 +47,4 @@ BOOLEAN
|
||||||
ProcessKeyboardLayoutFiles(
|
ProcessKeyboardLayoutFiles(
|
||||||
PGENERIC_LIST List);
|
PGENERIC_LIST List);
|
||||||
|
|
||||||
BOOLEAN
|
|
||||||
SetGeoID(
|
|
||||||
PWCHAR Id);
|
|
||||||
|
|
||||||
BOOLEAN
|
|
||||||
SetDefaultPagefile(
|
|
||||||
WCHAR Drive);
|
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue