mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
5a6050902b
In all the disks/partitions available, it searches for the presence of freeldr.ini / boot.ini, open & parse them, and enumerates the available boot entries (as candidates for installations). For each of them, it maps their ARC paths into the NT namespace (hence the ARC 2 NT path resolver committed in r74621), then attempts to detect in these paths the existence of NTOS installations. svn path=/branches/setup_improvements/; revision=74622
26 lines
927 B
C
26 lines
927 B
C
/*
|
|
* PROJECT: ReactOS Setup Library
|
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
|
* PURPOSE: NT 5.x family (MS Windows <= 2003, and ReactOS)
|
|
* operating systems detection code.
|
|
* COPYRIGHT: Copyright 2017-2018 Hermes Belusca-Maito
|
|
*/
|
|
|
|
typedef struct _NTOS_INSTALLATION
|
|
{
|
|
LIST_ENTRY ListEntry;
|
|
ULONG DiskNumber;
|
|
ULONG PartitionNumber;
|
|
PPARTENTRY PartEntry;
|
|
// BOOLEAN IsDefault; // TRUE / FALSE whether this installation is marked as "default" in its corresponding loader configuration file.
|
|
// Vendor???? (Microsoft / ReactOS)
|
|
/**/WCHAR SystemRoot[MAX_PATH];/**/
|
|
UNICODE_STRING SystemArcPath; // Normalized ARC path
|
|
UNICODE_STRING SystemNtPath; // Corresponding NT path
|
|
/**/WCHAR InstallationName[MAX_PATH];/**/
|
|
} NTOS_INSTALLATION, *PNTOS_INSTALLATION;
|
|
|
|
// EnumerateNTOSInstallations
|
|
PGENERIC_LIST
|
|
CreateNTOSInstallationsList(
|
|
IN PPARTLIST List);
|