mirror of
https://github.com/reactos/reactos.git
synced 2024-11-02 21:09:15 +00:00
f80ec8b822
Take also the opportunity to simplify a little bit the code.
43 lines
1.4 KiB
C
43 lines
1.4 KiB
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
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
/* Language-independent Vendor strings */
|
|
#define VENDOR_REACTOS L"ReactOS"
|
|
#define VENDOR_MICROSOFT L"Microsoft"
|
|
|
|
typedef struct _NTOS_INSTALLATION
|
|
{
|
|
LIST_ENTRY ListEntry;
|
|
// BOOLEAN IsDefault; // TRUE / FALSE whether this installation is marked as "default" in its corresponding loader configuration file.
|
|
UNICODE_STRING SystemArcPath; // Normalized ARC path
|
|
UNICODE_STRING SystemNtPath; // Corresponding NT path
|
|
PCWSTR PathComponent; // Pointer inside SystemNtPath.Buffer
|
|
ULONG DiskNumber;
|
|
ULONG PartitionNumber;
|
|
PPARTENTRY PartEntry;
|
|
WCHAR InstallationName[MAX_PATH];
|
|
WCHAR VendorName[MAX_PATH];
|
|
// CHAR Data[ANYSIZE_ARRAY];
|
|
} NTOS_INSTALLATION, *PNTOS_INSTALLATION;
|
|
|
|
// EnumerateNTOSInstallations
|
|
PGENERIC_LIST
|
|
CreateNTOSInstallationsList(
|
|
IN PPARTLIST List);
|
|
|
|
/*
|
|
* FindSubStrI(PCWSTR str, PCWSTR strSearch) :
|
|
* Searches for a sub-string 'strSearch' inside 'str', similarly to what
|
|
* wcsstr(str, strSearch) does, but ignores the case during the comparisons.
|
|
*/
|
|
PCWSTR FindSubStrI(PCWSTR str, PCWSTR strSearch);
|
|
|
|
/* EOF */
|