Internal helper function to initalize hive descriptor structure for a hive stored in memory. The data of the hive are copied and it is prepared for read/write access.
Allocate a new hive descriptor structure and intialize it.
Parameters:
RegistryHive
Output variable to store pointer to the hive descriptor.
Operation
HV_OPERATION_CREATE_HIVE Create a new hive for read/write access.
HV_OPERATION_MEMORY Load and copy in-memory hive for read/write access. The pointer to data passed to this routine can be freed after the function is executed.
HV_OPERATION_MEMORY_INPLACE Load an in-memory hive for read-only access. The pointer to data passed to this routine MUSTN'T be freed until HvFree is called.
ChunkBase
Pointer to hive data.
ChunkSize
Size of passed hive data.
Returns:
STATUS_NO_MEMORY - A memory allocation failed. STATUS_REGISTRY_CORRUPT - Registry corruption was detected. STATUS_SUCCESS
Internal helper function to initalize hive descriptor structure for a hive stored in memory. The in-memory data of the hive are directly used and it is read-only accessible.