ReactOS 0.4.16-dev-297-gc569aee
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
37typedef struct _BL_BOOT_ERROR
38{
47
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
66BmMain (
68 );
69
73 _Out_ PULONG EntryIndex,
74 _In_ ULONG LaunchCode,
75 _In_ BOOLEAN LaunchWinRe
76 );
77
78#endif
unsigned char BOOLEAN
LONG NTSTATUS
Definition: precomp.h:26
NTSTATUS NTAPI BmMain(_In_ PBOOT_APPLICATION_PARAMETER_BLOCK BootParameters)
Definition: bootmgr.c:2736
struct _BL_PACKED_BOOT_ERROR * PBL_PACKED_BOOT_ERROR
struct _BL_BOOT_ERROR BL_BOOT_ERROR
NTSTATUS BmpLaunchBootEntry(_In_ PBL_LOADED_APPLICATION_ENTRY BootEntry, _Out_ PULONG EntryIndex, _In_ ULONG LaunchCode, _In_ BOOLEAN LaunchWinRe)
Definition: bootmgr.c:2426
struct _BL_PACKED_BOOT_ERROR BL_PACKED_BOOT_ERROR
struct _BL_BOOT_ERROR * PBL_BOOT_ERROR
#define _Out_
Definition: no_sal2.h:160
#define _In_
Definition: no_sal2.h:158
ULONG HelpMsgId
Definition: bootmgr.h:44
ULONG Unknown1
Definition: bootmgr.h:41
NTSTATUS ErrorStatus
Definition: bootmgr.h:40
ULONG ErrorCode
Definition: bootmgr.h:39
ULONG Unknown2
Definition: bootmgr.h:45
PWCHAR ErrorString
Definition: bootmgr.h:42
PWCHAR FileName
Definition: bootmgr.h:43
Definition: bl.h:864
PBL_BOOT_ERROR BootError
Definition: bootmgr.h:50
uint32_t * PULONG
Definition: typedefs.h:59
#define NTAPI
Definition: typedefs.h:36
uint16_t * PWCHAR
Definition: typedefs.h:56
uint32_t ULONG
Definition: typedefs.h:59