[CMLIB] Assign a signature to the in-memory HHIVE registry hive structure. CORE-15753

Makes the `!reg hivelist` WinDbg command working in ReactOS.

Dedicated to Mark Jansen.

See for more details:
https://webcache.googleusercontent.com/search?q=cache:fmHJX9eFGkkJ:https://blogs.technet.microsoft.com/ganand/archive/2008/01/05/internal-structures-of-the-windows-registry.aspx
and
http://moyix.blogspot.com/2008/02/enumerating-registry-hives.html
This commit is contained in:
Hermès Bélusca-Maïto 2019-02-17 01:10:27 +01:00
parent 70180ee06a
commit 3ddf59e1ed
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
2 changed files with 2 additions and 0 deletions

View file

@ -47,6 +47,7 @@
//
// Hive structure identifiers
//
#define HV_HHIVE_SIGNATURE 0xbee0bee0
#define HV_HBLOCK_SIGNATURE 0x66676572 // "regf"
#define HV_HBIN_SIGNATURE 0x6e696268 // "hbin"

View file

@ -542,6 +542,7 @@ HvInitialize(
*/
RtlZeroMemory(Hive, sizeof(HHIVE));
Hive->Signature = HV_HHIVE_SIGNATURE;
Hive->Allocate = Allocate;
Hive->Free = Free;