ReactOS
0.4.15-dev-8636-g945e856
bootmgr.h
Go to the documentation of this file.
1
/*
2
* COPYRIGHT: See COPYING.ARM in the top level directory
3
* PROJECT: ReactOS UEFI Boot Manager
4
* FILE: boot/environ/app/bootmgr/bootmgr.h
5
* PURPOSE: Main Boot Manager Header
6
* PROGRAMMER: Alex Ionescu (alex.ionescu@reactos.org)
7
*/
8
9
#ifndef _BOOTMGR_H
10
#define _BOOTMGR_H
11
12
/* INCLUDES ******************************************************************/
13
14
/* C Headers */
15
#include <stdlib.h>
16
#include <stdio.h>
17
#include <wchar.h>
18
19
/* NT Base Headers */
20
#include <
initguid.h
>
21
#include <ntifs.h>
22
23
/* UEFI Headers */
24
#include <
Uefi.h
>
25
26
/* Boot Library Headers */
27
#include <
bl.h
>
28
29
/* BCD Headers */
30
#include <
bcd.h
>
31
32
/* Message Header */
33
#include <bootmsg.h>
34
35
/* STRUCTURES ****************************************************************/
36
37
typedef
struct
_BL_BOOT_ERROR
38
{
39
ULONG
ErrorCode
;
40
NTSTATUS
ErrorStatus
;
41
ULONG
Unknown1
;
42
PWCHAR
ErrorString
;
43
PWCHAR
FileName
;
44
ULONG
HelpMsgId
;
45
ULONG
Unknown2
;
46
}
BL_BOOT_ERROR
, *
PBL_BOOT_ERROR
;
47
48
typedef
struct
_BL_PACKED_BOOT_ERROR
49
{
50
PBL_BOOT_ERROR
BootError
;
51
ULONG
Unknown
;
52
ULONG
Size
;
53
}
BL_PACKED_BOOT_ERROR
, *
PBL_PACKED_BOOT_ERROR
;
54
55
#define BL_FATAL_ERROR_BCD_READ 0x01
56
#define BL_FATAL_ERROR_APP_LOAD 0x02
57
#define BL_FATAL_ERROR_BCD_ENTRIES 0x03
58
#define BL_FATAL_ERROR_GENERIC 0x04
59
#define BL_FATAL_ERROR_BCD_PARSE 0x07
60
#define BL_FATAL_ERROR_NO_PAE 0x0B
61
62
/* FUNCTIONS *****************************************************************/
63
64
NTSTATUS
65
NTAPI
66
BmMain
(
67
_In_
PBOOT_APPLICATION_PARAMETER_BLOCK
BootParameters
68
);
69
70
NTSTATUS
71
BmpLaunchBootEntry
(
72
_In_
PBL_LOADED_APPLICATION_ENTRY
BootEntry,
73
_Out_
PULONG
EntryIndex,
74
_In_
ULONG
LaunchCode,
75
_In_
BOOLEAN
LaunchWinRe
76
);
77
78
#endif
BOOLEAN
unsigned char BOOLEAN
Definition:
ProcessorBind.h:185
Uefi.h
NTSTATUS
LONG NTSTATUS
Definition:
precomp.h:26
bcd.h
bl.h
BmMain
NTSTATUS NTAPI BmMain(_In_ PBOOT_APPLICATION_PARAMETER_BLOCK BootParameters)
Definition:
bootmgr.c:2736
PBL_PACKED_BOOT_ERROR
struct _BL_PACKED_BOOT_ERROR * PBL_PACKED_BOOT_ERROR
BL_BOOT_ERROR
struct _BL_BOOT_ERROR BL_BOOT_ERROR
BmpLaunchBootEntry
NTSTATUS BmpLaunchBootEntry(_In_ PBL_LOADED_APPLICATION_ENTRY BootEntry, _Out_ PULONG EntryIndex, _In_ ULONG LaunchCode, _In_ BOOLEAN LaunchWinRe)
Definition:
bootmgr.c:2426
BL_PACKED_BOOT_ERROR
struct _BL_PACKED_BOOT_ERROR BL_PACKED_BOOT_ERROR
PBL_BOOT_ERROR
struct _BL_BOOT_ERROR * PBL_BOOT_ERROR
initguid.h
_Out_
#define _Out_
Definition:
ms_sal.h:345
_In_
#define _In_
Definition:
ms_sal.h:308
_BL_BOOT_ERROR
Definition:
bootmgr.h:38
_BL_BOOT_ERROR::HelpMsgId
ULONG HelpMsgId
Definition:
bootmgr.h:44
_BL_BOOT_ERROR::Unknown1
ULONG Unknown1
Definition:
bootmgr.h:41
_BL_BOOT_ERROR::ErrorStatus
NTSTATUS ErrorStatus
Definition:
bootmgr.h:40
_BL_BOOT_ERROR::ErrorCode
ULONG ErrorCode
Definition:
bootmgr.h:39
_BL_BOOT_ERROR::Unknown2
ULONG Unknown2
Definition:
bootmgr.h:45
_BL_BOOT_ERROR::ErrorString
PWCHAR ErrorString
Definition:
bootmgr.h:42
_BL_BOOT_ERROR::FileName
PWCHAR FileName
Definition:
bootmgr.h:43
_BL_LOADED_APPLICATION_ENTRY
Definition:
bl.h:864
_BL_PACKED_BOOT_ERROR
Definition:
bootmgr.h:49
_BL_PACKED_BOOT_ERROR::Size
ULONG Size
Definition:
bootmgr.h:52
_BL_PACKED_BOOT_ERROR::Unknown
ULONG Unknown
Definition:
bootmgr.h:51
_BL_PACKED_BOOT_ERROR::BootError
PBL_BOOT_ERROR BootError
Definition:
bootmgr.h:50
_BOOT_APPLICATION_PARAMETER_BLOCK
Definition:
bl.h:769
PULONG
uint32_t * PULONG
Definition:
typedefs.h:59
NTAPI
#define NTAPI
Definition:
typedefs.h:36
PWCHAR
uint16_t * PWCHAR
Definition:
typedefs.h:56
ULONG
uint32_t ULONG
Definition:
typedefs.h:59
boot
environ
app
bootmgr
bootmgr.h
Generated on Tue Sep 10 2024 06:02:38 for ReactOS by
1.9.6