ReactOS 0.4.16-dev-981-g80eb313
|
#include "errorcode.h"
#include "spapisup/fileqsup.h"
#include "spapisup/infsupp.h"
#include "utils/linklist.h"
#include "utils/ntverrsrc.h"
#include "utils/bldrsup.h"
#include "utils/filesup.h"
#include "utils/fsrec.h"
#include "utils/genlist.h"
#include "utils/inicache.h"
#include "utils/partinfo.h"
#include "utils/partlist.h"
#include "utils/arcname.h"
#include "utils/osdetect.h"
#include "utils/regutil.h"
#include "bootcode.h"
#include "fsutil.h"
#include "bootsup.h"
#include "registry.h"
#include "mui.h"
#include "settings.h"
#include "install.h"
#include "substset.h"
Go to the source code of this file.
Classes | |
struct | _USETUP_DATA |
Macros | |
#define | SPLIBAPI DECLSPEC_IMPORT |
#define | KB ((ULONGLONG)1024) |
#define | MB (KB*KB) |
#define | GB (KB*KB*KB) |
#define | ERROR_SYSTEM_PARTITION_NOT_FOUND (ERROR_LAST_ERROR_CODE + 1) |
#define | IS_VALID_INSTALL_PATH_CHAR(c) (isalnum(c) || (c) == L'.' || (c) == L'\\' || (c) == L'-' || (c) == L'_') |
Defines the class of characters valid for the installation directory. | |
Typedefs | |
typedef enum _ARCHITECTURE_TYPE | ARCHITECTURE_TYPE |
typedef VOID(__cdecl * | PSETUP_ERROR_ROUTINE) (IN struct _USETUP_DATA *,...) |
typedef struct _USETUP_DATA | USETUP_DATA |
typedef struct _USETUP_DATA * | PUSETUP_DATA |
typedef enum _REGISTRY_STATUS | REGISTRY_STATUS |
typedef VOID(__cdecl * | PREGISTRY_STATUS_ROUTINE) (IN REGISTRY_STATUS,...) |
Enumerations | |
enum | _ARCHITECTURE_TYPE { ARCH_PcAT , ARCH_NEC98x86 , ARCH_Xbox , ARCH_Arc , ARCH_Efi } |
enum | _REGISTRY_STATUS { Success = 0 , RegHiveUpdate , ImportRegHive , DisplaySettingsUpdate , LocaleSettingsUpdate , KeybLayouts , KeybSettingsUpdate , CodePageInfoUpdate } |
#define ERROR_SYSTEM_PARTITION_NOT_FOUND (ERROR_LAST_ERROR_CODE + 1) |
Definition at line 188 of file setuplib.h.
#define IS_VALID_INSTALL_PATH_CHAR | ( | c | ) | (isalnum(c) || (c) == L'.' || (c) == L'\\' || (c) == L'-' || (c) == L'_') |
Defines the class of characters valid for the installation directory.
The valid characters are: ASCII alphanumericals (a-z, A-Z, 0-9), and: '.', '\', '-', '_' . Spaces are not allowed.
Definition at line 206 of file setuplib.h.
Definition at line 74 of file setuplib.h.
Definition at line 75 of file setuplib.h.
#define SPLIBAPI DECLSPEC_IMPORT |
Definition at line 15 of file setuplib.h.
typedef enum _ARCHITECTURE_TYPE ARCHITECTURE_TYPE |
typedef VOID(__cdecl * PREGISTRY_STATUS_ROUTINE) (IN REGISTRY_STATUS,...) |
Definition at line 248 of file setuplib.h.
typedef VOID(__cdecl * PSETUP_ERROR_ROUTINE) (IN struct _USETUP_DATA *,...) |
Definition at line 85 of file setuplib.h.
typedef struct _USETUP_DATA * PUSETUP_DATA |
typedef enum _REGISTRY_STATUS REGISTRY_STATUS |
typedef struct _USETUP_DATA USETUP_DATA |
Enumerator | |
---|---|
ARCH_PcAT | |
ARCH_NEC98x86 | |
ARCH_Xbox | |
ARCH_Arc | |
ARCH_Efi |
Definition at line 52 of file setuplib.h.
Enumerator | |
---|---|
Success | |
RegHiveUpdate | |
ImportRegHive | |
DisplaySettingsUpdate | |
LocaleSettingsUpdate | |
KeybLayouts | |
KeybSettingsUpdate | |
CodePageInfoUpdate |
Definition at line 236 of file setuplib.h.
BOOLEAN NTAPI CheckUnattendedSetup | ( | IN OUT PUSETUP_DATA | pSetupData | ) |
Definition at line 32 of file setuplib.c.
Referenced by _tWinMain(), and SetupStartPage().
VOID NTAPI FinishSetup | ( | IN OUT PUSETUP_DATA | pSetupData | ) |
Definition at line 1104 of file setuplib.c.
Referenced by _tWinMain(), and RunUSetup().
NTSTATUS GetSourcePaths | ( | _Out_ PUNICODE_STRING | SourcePath, |
_Out_ PUNICODE_STRING | SourceRootPath, | ||
_Out_ PUNICODE_STRING | SourceRootDir | ||
) |
Determine the installation source path and isolate its useful path components (root path and source sub-directory).
The installation source path is based either on the installer's image file path, or on the \SystemRoot full path.
In case the \SystemRoot full path prefixes the image file path, use the resolved \SystemRoot as the installation source path. Otherwise, use the image file path.
The returned strings are allocated with RtlCreateUnicodeString(), and need to be freed with RtlFreeUnicodeString() after being used.
Example of output: SourcePath: '\Device\CdRom0\I386' SourceRootPath: '\Device\CdRom0' SourceRootDir: '\I386'
Definition at line 408 of file setuplib.c.
Referenced by InitializeSetup().
NTSTATUS NTAPI InitDestinationPaths | ( | _Inout_ PUSETUP_DATA | pSetupData, |
_In_ PCWSTR | InstallationDir, | ||
_In_ PVOLENTRY | Volume | ||
) |
Equivalent of 'NTOS_INSTALLATION::SystemArcPath'
Equivalent of 'NTOS_INSTALLATION::SystemNtPath'
Equivalent of 'NTOS_INSTALLATION::PathComponent'
Definition at line 864 of file setuplib.c.
Referenced by InstallDirectoryPage(), and PrepareAndDoCopyThread().
ERROR_NUMBER NTAPI InitializeSetup | ( | _Inout_ PUSETUP_DATA | pSetupData, |
_In_opt_ PSETUP_ERROR_ROUTINE | ErrorRoutine, | ||
_In_ PSPFILE_EXPORTS | pSpFileExports, | ||
_In_ PSPINF_EXPORTS | pSpInfExports | ||
) |
Definition at line 1020 of file setuplib.c.
Referenced by _tWinMain(), and SetupStartPage().
BOOLEAN NTAPI InitSystemPartition | ( | _In_ PPARTLIST | PartitionList, |
_In_ PPARTENTRY | InstallPartition, | ||
_Out_ PPARTENTRY * | pSystemPartition, | ||
_In_opt_ PFSVOL_CALLBACK | FsVolCallback, | ||
_In_opt_ PVOID | Context | ||
) |
Find or set the active system partition.
Definition at line 679 of file setuplib.c.
Referenced by PrepareAndDoCopyThread(), and StartPartitionOperationsPage().
VOID NTAPI InstallSetupInfFile | ( | IN OUT PUSETUP_DATA | pSetupData | ) |
Definition at line 208 of file setuplib.c.
Referenced by FileCopyPage(), and PrepareAndDoCopyThread().
Verify whether the given directory is suitable for ReactOS installation. Each path component must be a valid 8.3 name.
Definition at line 779 of file setuplib.c.
Referenced by InstallDirectoryPage(), MoreOptDlgProc(), and START_TEST().
ERROR_NUMBER LoadSetupInf | ( | IN OUT PUSETUP_DATA | pSetupData | ) |
Definition at line 563 of file setuplib.c.
Referenced by InitializeSetup().
ERROR_NUMBER NTAPI UpdateRegistry | ( | IN OUT PUSETUP_DATA | pSetupData, |
IN BOOLEAN | RepairUpdateFlag, | ||
IN PPARTLIST | PartitionList, | ||
IN WCHAR | DestinationDriveLetter, | ||
IN PCWSTR | SelectedLanguageId, | ||
IN PREGISTRY_STATUS_ROUTINE StatusRoutine | OPTIONAL, | ||
IN PFONTSUBSTSETTINGS SubstSettings | OPTIONAL | ||
) |
Definition at line 1155 of file setuplib.c.
Referenced by PrepareAndDoCopyThread(), and RegistryPage().