ReactOS  0.4.15-dev-1068-g467feb9
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 {
47 
48 typedef struct _BL_PACKED_BOOT_ERROR
49 {
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 
65 NTAPI
66 BmMain (
68  );
69 
73  _Out_ PULONG EntryIndex,
74  _In_ ULONG LaunchCode,
75  _In_ BOOLEAN LaunchWinRe
76  );
77 
78 #endif
NTSTATUS NTAPI BmMain(_In_ PBOOT_APPLICATION_PARAMETER_BLOCK BootParameters)
Definition: bootmgr.c:2736
struct _BL_PACKED_BOOT_ERROR * PBL_PACKED_BOOT_ERROR
PWCHAR ErrorString
Definition: bootmgr.h:42
LONG NTSTATUS
Definition: precomp.h:26
ULONG Unknown1
Definition: bootmgr.h:41
uint16_t * PWCHAR
Definition: typedefs.h:56
struct _BL_PACKED_BOOT_ERROR BL_PACKED_BOOT_ERROR
struct _BL_BOOT_ERROR BL_BOOT_ERROR
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
ULONG HelpMsgId
Definition: bootmgr.h:44
ULONG ErrorCode
Definition: bootmgr.h:39
ULONG Unknown2
Definition: bootmgr.h:45
unsigned char BOOLEAN
#define _Out_
Definition: no_sal2.h:323
Definition: bl.h:864
PWCHAR FileName
Definition: bootmgr.h:43
NTSTATUS ErrorStatus
Definition: bootmgr.h:40
#define _In_
Definition: no_sal2.h:204
unsigned int * PULONG
Definition: retypes.h:1
struct _BL_BOOT_ERROR * PBL_BOOT_ERROR
unsigned int ULONG
Definition: retypes.h:1
PBL_BOOT_ERROR BootError
Definition: bootmgr.h:50
NTSTATUS BmpLaunchBootEntry(_In_ PBL_LOADED_APPLICATION_ENTRY BootEntry, _Out_ PULONG EntryIndex, _In_ ULONG LaunchCode, _In_ BOOLEAN LaunchWinRe)
Definition: bootmgr.c:2426