ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

hiveinit.c File Reference
#include "cmlib.h"
#include <debug.h>

Go to the source code of this file.

Defines

#define NDEBUG

Functions

HvpVerifyHiveHeader

Internal function to verify that a hive header has valid format.

BOOLEAN CMAPI HvpVerifyHiveHeader (PHBASE_BLOCK BaseBlock)
HvpFreeHiveBins

Internal function to free all bin storage associated with hive descriptor.

VOID CMAPI HvpFreeHiveBins (PHHIVE Hive)
HvpCreateHive

Internal helper function to initalize hive descriptor structure for newly created hive.

See also:
HvInitialize
NTSTATUS CMAPI HvpCreateHive (PHHIVE RegistryHive)
HvpInitializeMemoryHive

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.

See also:
HvInitialize
NTSTATUS CMAPI HvpInitializeMemoryHive (PHHIVE Hive, PVOID ChunkBase)
HvInitialize

Allocate a new hive descriptor structure and intialize it.

Parameters:
RegistryHiveOutput 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.
ChunkBasePointer to hive data.
ChunkSizeSize of passed hive data.
Returns:
STATUS_NO_MEMORY - A memory allocation failed. STATUS_REGISTRY_CORRUPT - Registry corruption was detected. STATUS_SUCCESS
See also:
HvFree
NTSTATUS CMAPI HvInitialize (PHHIVE RegistryHive, ULONG Operation, ULONG HiveType, ULONG HiveFlags, PVOID HiveData OPTIONAL, PALLOCATE_ROUTINE Allocate, PFREE_ROUTINE Free, PFILE_SET_SIZE_ROUTINE FileSetSize, PFILE_WRITE_ROUTINE FileWrite, PFILE_READ_ROUTINE FileRead, PFILE_FLUSH_ROUTINE FileFlush, ULONG Cluster OPTIONAL, PUNICODE_STRING FileName)
HvFree

Free all stroage and handles associated with hive descriptor.

VOID CMAPI HvFree (PHHIVE RegistryHive)

HvpInitializeMemoryInplaceHive

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.

See also:
HvInitialize
enum  RESULT {
  NotHive, Fail, NoMemory, HiveSuccess,
  RecoverHeader, RecoverData, SelfHeal
}
NTSTATUS CMAPI HvpInitializeMemoryInplaceHive (PHHIVE Hive, PVOID ChunkBase)
RESULT CMAPI HvpGetHiveHeader (IN PHHIVE Hive, IN PHBASE_BLOCK *HiveBaseBlock, IN PLARGE_INTEGER TimeStamp)
NTSTATUS CMAPI HvLoadHive (IN PHHIVE Hive, IN ULONG FileSize)

Generated on Fri May 25 2012 06:01:26 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.