mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 00:32:57 +00:00
[SETUPLIB][USETUP][INPUT.CPL] MUI integration with setuplib.
[SETUPLIB] Copy the mui* files from usetup into the setuplib for later usage, and add mui.c to build.
svn path=/branches/setup_improvements/; revision=75711
[SETUPLIB][USETUP] Start massaging the MUI files and split up what concerns only the usetup "resources",
and what concerns general language parameters (in the setuplib).
It may be interesting to retrieve the language parameters
from INF file (e.g. intl.inf) (suggested by Giannis).
svn path=/branches/setup_improvements/; revision=75715
[SETUPLIB] Add the necessary headers to mui.c to be able to compile.
[USETUP] Comment out the languages that don't have any resources.
svn path=/branches/setup_improvements/; revision=75716
[SETUPLIB][USETUP] Adjust MUI and settings code.
- Re-enable settings code concerning language, keyboards & layout
in the setuplib, and remove the old code in usetup.
- Remove useless code in setuplib's mui.c.
- Rename usetup's MUI "LanguageList" into "ResourceList" so as to
avoid colliding with the "LanguageList" of setuplib.
- Add the magic CMakeLists line "add_definitions(${I18N_DEFS})" that
I forgot previously, that caused the "LanguageList" of setuplib to be empty!
The code compiles and works during my tests.
svn path=/branches/setup_improvements/; revision=75717
[SETUPLIB] Change some string pointer types & function prototypes so that the usetup-specific
"SelectedLanguageId" variable is not used in the library.
svn path=/branches/setup_improvements/; revision=75719
[SETUPLIB] Change some function prototypes so that the usetup-specific "SelectedLanguageId" variable is not used in the library.
Also, make AddEntriesFromInfSection(), DefaultProcessEntry() and the typedef PPROCESS_ENTRY_ROUTINE private again.
svn path=/branches/setup_improvements/; revision=75720
svn path=/branches/setup_improvements/; revision=75724
[USETUP] Code adaptations.
- Transform some do{}while() loops into while(){} ones, since the lists on which we work may only contain one single {NULL} element.
- Modify MUIGetOEMCodePage() call after r75719.
- Use PCWSTR where needed.
svn path=/branches/setup_improvements/; revision=75722
[USETUP] Adjust some MUI & settings calls, following the commits r75719, r75720 and r75721.
svn path=/branches/setup_improvements/; revision=75723
[INPUT.CPL] Adjust inclusion of "muifonts.h" (commit 3dbd44f
) due to changes introduced in r75711 and r75715.
This commit is contained in:
parent
e4d79e514a
commit
e405ad257c
178 changed files with 2284 additions and 1643 deletions
|
@ -26,101 +26,62 @@
|
|||
|
||||
#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);
|
||||
IN HINF InfFile);
|
||||
|
||||
PGENERIC_LIST
|
||||
CreateDisplayDriverList(
|
||||
HINF InfFile);
|
||||
IN HINF InfFile);
|
||||
|
||||
BOOLEAN
|
||||
ProcessComputerFiles(
|
||||
HINF InfFile,
|
||||
PGENERIC_LIST List,
|
||||
PWCHAR *AdditionalSectionName);
|
||||
IN HINF InfFile,
|
||||
IN PGENERIC_LIST List,
|
||||
OUT PWSTR* AdditionalSectionName);
|
||||
|
||||
BOOLEAN
|
||||
ProcessDisplayRegistry(
|
||||
HINF InfFile,
|
||||
PGENERIC_LIST List);
|
||||
IN HINF InfFile,
|
||||
IN PGENERIC_LIST List);
|
||||
|
||||
PGENERIC_LIST
|
||||
CreateKeyboardDriverList(
|
||||
HINF InfFile);
|
||||
|
||||
#if 0 // FIXME: Disabled for now because it uses MUI* functions from usetup
|
||||
IN HINF InfFile);
|
||||
|
||||
PGENERIC_LIST
|
||||
CreateKeyboardLayoutList(
|
||||
HINF InfFile,
|
||||
WCHAR *DefaultKBLayout);
|
||||
IN HINF InfFile,
|
||||
IN PCWSTR LanguageId,
|
||||
OUT PWSTR DefaultKBLayout);
|
||||
|
||||
PGENERIC_LIST
|
||||
CreateLanguageList(
|
||||
HINF InfFile,
|
||||
WCHAR *DefaultLanguage);
|
||||
IN HINF InfFile,
|
||||
OUT PWSTR DefaultLanguage);
|
||||
|
||||
ULONG
|
||||
GetDefaultLanguageIndex(VOID);
|
||||
|
||||
BOOLEAN
|
||||
ProcessKeyboardLayoutRegistry(
|
||||
PGENERIC_LIST List);
|
||||
IN PGENERIC_LIST List,
|
||||
IN PCWSTR LanguageId);
|
||||
|
||||
BOOLEAN
|
||||
ProcessKeyboardLayoutFiles(
|
||||
PGENERIC_LIST List);
|
||||
|
||||
#endif
|
||||
IN PGENERIC_LIST List);
|
||||
|
||||
BOOLEAN
|
||||
ProcessLocaleRegistry(
|
||||
PGENERIC_LIST List);
|
||||
IN PGENERIC_LIST List);
|
||||
|
||||
BOOLEAN
|
||||
SetGeoID(
|
||||
PWCHAR Id);
|
||||
IN PCWSTR Id);
|
||||
|
||||
BOOLEAN
|
||||
SetDefaultPagefile(
|
||||
WCHAR Drive);
|
||||
IN WCHAR Drive);
|
||||
|
||||
/* EOF */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue