pub const LoadOptions = packed struct(ULONG) WHOLE_HIVE_VOLATILE: bool = falseRestore whole hive volatile
REFRESH_HIVE: bool = falseUnwind changes to last flush
NO_LAZY_FLUSH: bool = falseNever lazy flush this hive
FORCE_RESTORE: bool = falseForce the restore process even when we have open handles on subkeys
APP_HIVE: bool = falseLoads the hive visible to the calling process
PROCESS_PRIVATE: bool = falseHive cannot be mounted by any other process while in use
START_JOURNAL: bool = falseStarts Hive Journal
HIVE_EXACT_FILE_GROWTH: bool = falseGrow hive file in exact 4k increments
HIVE_NO_RM: bool = falseNo RM is started for this hive (no transactions)
HIVE_SINGLE_LOG: bool = falseLegacy single logging is used for this hive
BOOT_HIVE: bool = falseThis hive might be used by the OS loader
LOAD_HIVE_OPEN_HANDLE: bool = falseLoad the hive and return a handle to its root kcb
FLUSH_HIVE_FILE_GROWTH: bool = falseFlush changes to primary hive file size as part of all flushes
OPEN_READ_ONLY: bool = falseOpen a hive's files in read-only mode The same flag is used for REG_APP_HIVE_OPEN_READ_ONLY: Open an app hive's files in read-only mode (if the hive was not previously loaded).
IMMUTABLE: bool = falseLoad the hive, but don't allow any modification of it
NO_IMPERSONATION_FALLBACK: bool = falseDo not fall back to impersonating the caller if hive file access fails
Reserved16: u16 = 04401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437 pub const LoadOptions = packed struct(ULONG) {
/// Restore whole hive volatile
WHOLE_HIVE_VOLATILE: bool = false,
/// Unwind changes to last flush
REFRESH_HIVE: bool = false,
/// Never lazy flush this hive
NO_LAZY_FLUSH: bool = false,
/// Force the restore process even when we have open handles on subkeys
FORCE_RESTORE: bool = false,
/// Loads the hive visible to the calling process
APP_HIVE: bool = false,
/// Hive cannot be mounted by any other process while in use
PROCESS_PRIVATE: bool = false,
/// Starts Hive Journal
START_JOURNAL: bool = false,
/// Grow hive file in exact 4k increments
HIVE_EXACT_FILE_GROWTH: bool = false,
/// No RM is started for this hive (no transactions)
HIVE_NO_RM: bool = false,
/// Legacy single logging is used for this hive
HIVE_SINGLE_LOG: bool = false,
/// This hive might be used by the OS loader
BOOT_HIVE: bool = false,
/// Load the hive and return a handle to its root kcb
LOAD_HIVE_OPEN_HANDLE: bool = false,
/// Flush changes to primary hive file size as part of all flushes
FLUSH_HIVE_FILE_GROWTH: bool = false,
/// Open a hive's files in read-only mode
/// The same flag is used for REG_APP_HIVE_OPEN_READ_ONLY:
/// Open an app hive's files in read-only mode (if the hive was not previously loaded).
OPEN_READ_ONLY: bool = false,
/// Load the hive, but don't allow any modification of it
IMMUTABLE: bool = false,
/// Do not fall back to impersonating the caller if hive file access fails
NO_IMPERSONATION_FALLBACK: bool = false,
Reserved16: u16 = 0,
}
Used with NtLoadKeyEx, maybe others