ReactOS  0.4.14-dev-376-gaedba84
osdetect.h
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS Setup Library
3  * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4  * PURPOSE: NT 5.x family (MS Windows <= 2003, and ReactOS)
5  * operating systems detection code.
6  * COPYRIGHT: Copyright 2017-2018 Hermes Belusca-Maito
7  */
8 
9 #pragma once
10 
11 /* Language-independent Vendor strings */
12 #define VENDOR_REACTOS L"ReactOS"
13 #define VENDOR_MICROSOFT L"Microsoft"
14 
15 typedef struct _NTOS_INSTALLATION
16 {
18 // BOOLEAN IsDefault; // TRUE / FALSE whether this installation is marked as "default" in its corresponding loader configuration file.
19  USHORT Machine; // Target architecture of the NTOS installation
20  UNICODE_STRING SystemArcPath; // Normalized ARC path ("ArcSystemRoot")
21  UNICODE_STRING SystemNtPath; // Corresponding NT path ("NtSystemRoot")
22  PCWSTR PathComponent; // Pointer inside SystemNtPath.Buffer
28  // CHAR Data[ANYSIZE_ARRAY];
30 
31 // EnumerateNTOSInstallations
34  IN PPARTLIST List);
35 
36 /*
37  * FindSubStrI(PCWSTR str, PCWSTR strSearch) :
38  * Searches for a sub-string 'strSearch' inside 'str', similarly to what
39  * wcsstr(str, strSearch) does, but ignores the case during the comparisons.
40  */
41 PCWSTR FindSubStrI(PCWSTR str, PCWSTR strSearch);
42 
43 /* EOF */
PCWSTR FindSubStrI(PCWSTR str, PCWSTR strSearch)
Definition: osdetect.c:217
const uint16_t * PCWSTR
Definition: typedefs.h:55
#define IN
Definition: typedefs.h:38
WCHAR VendorName[MAX_PATH]
Definition: osdetect.h:27
LIST_ENTRY ListEntry
Definition: osdetect.h:17
PPARTENTRY PartEntry
Definition: osdetect.h:25
const WCHAR * str
LIST_ENTRY List
Definition: psmgr.c:57
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define MAX_PATH
Definition: compat.h:26
WCHAR InstallationName[MAX_PATH]
Definition: osdetect.h:26
Definition: typedefs.h:117
struct _NTOS_INSTALLATION * PNTOS_INSTALLATION
PCWSTR PathComponent
Definition: osdetect.h:22
unsigned short USHORT
Definition: pedump.c:61
UNICODE_STRING SystemArcPath
Definition: osdetect.h:20
struct _NTOS_INSTALLATION NTOS_INSTALLATION
ULONG PartitionNumber
Definition: osdetect.h:24
unsigned int ULONG
Definition: retypes.h:1
PGENERIC_LIST CreateNTOSInstallationsList(IN PPARTLIST List)
Definition: osdetect.c:777
UNICODE_STRING SystemNtPath
Definition: osdetect.h:21