mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 10:52:52 +00:00
![Hermès Bélusca-Maïto](/assets/img/avatar_default.png)
[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.
59 lines
928 B
C
59 lines
928 B
C
#pragma once
|
|
|
|
typedef struct
|
|
{
|
|
PCWSTR FontName;
|
|
PCWSTR SubFontName;
|
|
} MUI_SUBFONT;
|
|
|
|
typedef struct
|
|
{
|
|
PCWSTR LangID; // Language ID (like "0409")
|
|
PCWSTR LayoutID; // Layout ID (like "00000409")
|
|
} MUI_LAYOUTS;
|
|
|
|
typedef struct
|
|
{
|
|
PCWSTR LanguageID;
|
|
PCWSTR ACPage;
|
|
PCWSTR OEMCPage;
|
|
PCWSTR MACCPage;
|
|
PCWSTR LanguageDescriptor;
|
|
PCWSTR GeoID;
|
|
const MUI_SUBFONT * MuiSubFonts;
|
|
const MUI_LAYOUTS * MuiLayouts;
|
|
} MUI_LANGUAGE;
|
|
|
|
|
|
BOOLEAN
|
|
IsLanguageAvailable(
|
|
IN PCWSTR LanguageId);
|
|
|
|
PCWSTR
|
|
MUIDefaultKeyboardLayout(
|
|
IN PCWSTR LanguageId);
|
|
|
|
PCWSTR
|
|
MUIGetOEMCodePage(
|
|
IN PCWSTR LanguageId);
|
|
|
|
PCWSTR
|
|
MUIGetGeoID(
|
|
IN PCWSTR LanguageId);
|
|
|
|
const MUI_LAYOUTS*
|
|
MUIGetLayoutsList(
|
|
IN PCWSTR LanguageId);
|
|
|
|
BOOLEAN
|
|
AddKbLayoutsToRegistry(
|
|
IN const MUI_LAYOUTS *MuiLayouts);
|
|
|
|
BOOLEAN
|
|
AddKeyboardLayouts(
|
|
IN PCWSTR LanguageId);
|
|
|
|
BOOLEAN
|
|
AddCodePage(
|
|
IN PCWSTR LanguageId);
|