https://git.reactos.org/?p=reactos.git;a=commitdiff;h=08d100989248ca30eabfa…
commit 08d100989248ca30eabfa315a1443465d7b906f7
Author: Vincent Franchomme <franchomme.vincent(a)gmail.com>
AuthorDate: Thu Apr 28 21:36:34 2022 +0200
Commit: Hermès BÉLUSCA - MAÏTO <hermes.belusca-maito(a)reactos.org>
CommitDate: Tue May 3 17:30:11 2022 +0200
[PSDK][BOOTMGR] Import NTSTATUS definitions of BitLocker (#4417)
---
boot/environ/app/bootmgr/bootmgr.c | 4 ++--
sdk/include/psdk/ntstatus.h | 44 +++++++++++++++++++++++++++++++++++++-
2 files changed, 45 insertions(+), 3 deletions(-)
diff --git a/boot/environ/app/bootmgr/bootmgr.c b/boot/environ/app/bootmgr/bootmgr.c
index 1e874cd3a8c..c811a2723c6 100644
--- a/boot/environ/app/bootmgr/bootmgr.c
+++ b/boot/environ/app/bootmgr/bootmgr.c
@@ -432,7 +432,7 @@ BmpFatalErrorMessageFilter (
*ErrorResourceId = 9019;
Result = 2;
break;
- case 0xC0210000:
+ case STATUS_FVE_LOCKED_VOLUME:
*ErrorResourceId = 9013;
break;
}
@@ -2319,7 +2319,7 @@ BmpTransferExecution (
}
/* STATUS_FVE_LOCKED_VOLUME -- bitlocker volume is locked */
- if (Status == 0xC0210000)
+ if (Status == STATUS_FVE_LOCKED_VOLUME)
{
/* Launch recovery mode */
*LaunchCode = 4;
diff --git a/sdk/include/psdk/ntstatus.h b/sdk/include/psdk/ntstatus.h
index bc18d575f7b..6f078ba9a5e 100644
--- a/sdk/include/psdk/ntstatus.h
+++ b/sdk/include/psdk/ntstatus.h
@@ -1419,7 +1419,6 @@ extern "C" {
#define STATUS_SXS_FILE_HASH_MISSING ((NTSTATUS) 0xC0150027)
-
#define STATUS_FLT_NO_HANDLER_DEFINED ((NTSTATUS)0xC01C0001L)
#define STATUS_FLT_CONTEXT_ALREADY_DEFINED ((NTSTATUS)0xC01C0002L)
#define STATUS_FLT_INVALID_ASYNCHRONOUS_REQUEST ((NTSTATUS)0xC01C0003L)
@@ -1452,6 +1451,49 @@ extern "C" {
#define STATUS_FLT_REGISTRATION_BUSY ((NTSTATUS)0xC01C0023L)
+#define STATUS_FVE_LOCKED_VOLUME ((NTSTATUS)0xC0210000)
+#define STATUS_FVE_NOT_ENCRYPTED ((NTSTATUS)0xC0210001)
+#define STATUS_FVE_BAD_INFORMATION ((NTSTATUS)0xC0210002)
+#define STATUS_FVE_TOO_SMALL ((NTSTATUS)0xC0210003)
+#define STATUS_FVE_FAILED_WRONG_FS ((NTSTATUS)0xC0210004)
+#define STATUS_FVE_FAILED_BAD_FS ((NTSTATUS)0xC0210005)
+#define STATUS_FVE_FS_NOT_EXTENDED ((NTSTATUS)0xC0210006)
+#define STATUS_FVE_FS_MOUNTED ((NTSTATUS)0xC0210007)
+#define STATUS_FVE_NO_LICENSE ((NTSTATUS)0xC0210008)
+#define STATUS_FVE_ACTION_NOT_ALLOWED ((NTSTATUS)0xC0210009)
+#define STATUS_FVE_BAD_DATA ((NTSTATUS)0xC021000A)
+#define STATUS_FVE_VOLUME_NOT_BOUND ((NTSTATUS)0xC021000B)
+#define STATUS_FVE_NOT_DATA_VOLUME ((NTSTATUS)0xC021000C)
+#define STATUS_FVE_CONV_READ_ERROR ((NTSTATUS)0xC021000D)
+#define STATUS_FVE_CONV_WRITE_ERROR ((NTSTATUS)0xC021000E)
+#define STATUS_FVE_OVERLAPPED_UPDATE ((NTSTATUS)0xC021000F)
+#define STATUS_FVE_FAILED_SECTOR_SIZE ((NTSTATUS)0xC0210010)
+#define STATUS_FVE_FAILED_AUTHENTICATION ((NTSTATUS)0xC0210011)
+#define STATUS_FVE_NOT_OS_VOLUME ((NTSTATUS)0xC0210012)
+#define STATUS_FVE_KEYFILE_NOT_FOUND ((NTSTATUS)0xC0210013)
+#define STATUS_FVE_KEYFILE_INVALID ((NTSTATUS)0xC0210014)
+#define STATUS_FVE_KEYFILE_NO_VMK ((NTSTATUS)0xC0210015)
+#define STATUS_FVE_TPM_DISABLED ((NTSTATUS)0xC0210016)
+#define STATUS_FVE_TPM_SRK_AUTH_NOT_ZERO ((NTSTATUS)0xC0210017)
+#define STATUS_FVE_TPM_INVALID_PCR ((NTSTATUS)0xC0210018)
+#define STATUS_FVE_TPM_NO_VMK ((NTSTATUS)0xC0210019)
+#define STATUS_FVE_PIN_INVALID ((NTSTATUS)0xC021001A)
+#define STATUS_FVE_AUTH_INVALID_APPLICATION ((NTSTATUS)0xC021001B)
+#define STATUS_FVE_AUTH_INVALID_CONFIG ((NTSTATUS)0xC021001C)
+#define STATUS_FVE_DEBUGGER_ENABLED ((NTSTATUS)0xC021001D)
+#define STATUS_FVE_DRY_RUN_FAILED ((NTSTATUS)0xC021001E)
+#define STATUS_FVE_BAD_METADATA_POINTER ((NTSTATUS)0xC021001F)
+#define STATUS_FVE_OLD_METADATA_COPY ((NTSTATUS)0xC0210020)
+#define STATUS_FVE_REBOOT_REQUIRED ((NTSTATUS)0xC0210021)
+#define STATUS_FVE_RAW_ACCESS ((NTSTATUS)0xC0210022)
+#define STATUS_FVE_RAW_BLOCKED ((NTSTATUS)0xC0210023)
+#define STATUS_FVE_NO_FEATURE_LICENSE ((NTSTATUS)0xC0210026)
+#define STATUS_FVE_POLICY_USER_DISABLE_RDV_NOT_ALLOWED ((NTSTATUS)0xC0210027)
+#define STATUS_FVE_CONV_RECOVERY_FAILED ((NTSTATUS)0xC0210028)
+#define STATUS_FVE_VIRTUALIZED_SPACE_TOO_BIG ((NTSTATUS)0xC0210029)
+#define STATUS_FVE_VOLUME_TOO_SMALL ((NTSTATUS)0xC0210030)
+
+
#endif /* WIN32_NO_STATUS */
#ifdef __cplusplus