ReactOS
0.4.16-dev-981-g80eb313
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
m
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
a
b
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
osdetect.h
Go to the documentation of this file.
1
/*
2
* PROJECT: ReactOS Setup Library
3
* LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4
* PURPOSE: NT 5.x family (MS Windows <= 2003, and ReactOS)
5
* operating systems detection code.
6
* COPYRIGHT: Copyright 2017-2024 Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
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
{
17
LIST_ENTRY
ListEntry
;
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
23
ULONG
DiskNumber
;
24
ULONG
PartitionNumber
;
25
PVOLENTRY
Volume
;
// PVOLINFO
26
WCHAR
InstallationName
[
MAX_PATH
];
27
WCHAR
VendorName
[
MAX_PATH
];
28
// CHAR Data[ANYSIZE_ARRAY];
29
}
NTOS_INSTALLATION
, *
PNTOS_INSTALLATION
;
30
31
// EnumerateNTOSInstallations
32
PGENERIC_LIST
33
NTAPI
34
CreateNTOSInstallationsList
(
35
_In_
PPARTLIST
PartList);
36
37
PCWSTR
38
NTAPI
39
FindSubStrI
(
40
_In_
PCWSTR
str
,
41
_In_
PCWSTR
strSearch);
42
43
/* EOF */
MAX_PATH
#define MAX_PATH
Definition:
compat.h:34
_In_
#define _In_
Definition:
no_sal2.h:158
NTOS_INSTALLATION
struct _NTOS_INSTALLATION NTOS_INSTALLATION
CreateNTOSInstallationsList
PGENERIC_LIST NTAPI CreateNTOSInstallationsList(_In_ PPARTLIST PartList)
Create a list of available NT OS installations on the computer, by searching for recognized ones on e...
Definition:
osdetect.c:768
FindSubStrI
PCWSTR NTAPI FindSubStrI(_In_ PCWSTR str, _In_ PCWSTR strSearch)
Finds the first occurrence of a sub-string 'strSearch' inside 'str', using case-insensitive compariso...
Definition:
osdetect.c:219
PNTOS_INSTALLATION
struct _NTOS_INSTALLATION * PNTOS_INSTALLATION
USHORT
unsigned short USHORT
Definition:
pedump.c:61
str
const WCHAR * str
Definition:
rpc_transport.c:2724
_GENERIC_LIST
Definition:
genlist.h:19
_LIST_ENTRY
Definition:
typedefs.h:120
_NTOS_INSTALLATION
Definition:
osdetect.h:16
_NTOS_INSTALLATION::PartitionNumber
ULONG PartitionNumber
Definition:
osdetect.h:24
_NTOS_INSTALLATION::DiskNumber
ULONG DiskNumber
Definition:
osdetect.h:23
_NTOS_INSTALLATION::Machine
USHORT Machine
Definition:
osdetect.h:19
_NTOS_INSTALLATION::InstallationName
WCHAR InstallationName[MAX_PATH]
Definition:
osdetect.h:26
_NTOS_INSTALLATION::SystemNtPath
UNICODE_STRING SystemNtPath
Definition:
osdetect.h:21
_NTOS_INSTALLATION::ListEntry
LIST_ENTRY ListEntry
Definition:
osdetect.h:17
_NTOS_INSTALLATION::VendorName
WCHAR VendorName[MAX_PATH]
Definition:
osdetect.h:27
_NTOS_INSTALLATION::Volume
PVOLENTRY Volume
Definition:
osdetect.h:25
_NTOS_INSTALLATION::SystemArcPath
UNICODE_STRING SystemArcPath
Definition:
osdetect.h:20
_NTOS_INSTALLATION::PathComponent
PCWSTR PathComponent
Definition:
osdetect.h:22
_PARTLIST
Definition:
partlist.h:171
_UNICODE_STRING
Definition:
env_spec_w32.h:368
_VOLENTRY
Definition:
partlist.h:44
PCWSTR
const uint16_t * PCWSTR
Definition:
typedefs.h:57
NTAPI
#define NTAPI
Definition:
typedefs.h:36
ULONG
uint32_t ULONG
Definition:
typedefs.h:59
WCHAR
__wchar_t WCHAR
Definition:
xmlstorage.h:180
base
setup
lib
utils
osdetect.h
Generated on Wed Apr 16 2025 06:02:34 for ReactOS by
1.9.6