[BOOT:BOOTLIB] Parse BCD GUID to application entry

This commit is contained in:
2024-08-09 09:11:09 -04:00
parent 76e007584e
commit 2680e9b4c0
3 changed files with 52 additions and 95 deletions

View File

@@ -71,10 +71,14 @@ typedef struct {
ULONG PlatformDataOffset;
} BOOT_INPUT_PARAMETERS, *PBOOT_INPUT_PARAMETERS;
#define BOOT_APPLICATION_ENTRY_SIGNATURE 0x544e4550415442
#define BOOT_APPLICATION_ENTRY_SIGNATURE 0x544e4550415442 /* "BTAPENT" */
#define BOOT_APPLICATION_ENTRY_BCD_IDENTIFIER_NOT_SET 0x01
typedef struct {
ULONGLONG Signature;
ULONG Attributes;
GUID BcdIdentifier;
} BOOT_APPLICATION_ENTRY, *PBOOT_APPLICATION_ENTRY;
#define BOOT_MEMORY_INFO_VERSION 1
@@ -87,7 +91,8 @@ typedef struct {
ULONG BasePageOffset;
} BOOT_MEMORY_INFO, *PBOOT_MEMORY_INFO;
#define MEMORY_FLAG_CACHE_WB 0x08
#define MEMORY_ATTRIBUTE_CACHE_WB 0x08
#define MEMORY_TYPE_BOOT_APPLICATION 0xd0000002
typedef struct {
@@ -96,7 +101,7 @@ typedef struct {
ULONGLONG BasePage;
ULONG Pages;
ULONG Flags;
ULONG Attributes;
ULONG Type;
} BOOT_MEMORY_DESCRIPTOR, *PBOOT_MEMORY_DESCRIPTOR;