ReactOS 0.4.15-dev-6073-g59e7458
|
Go to the source code of this file.
Macros | |
#define | NDEBUG |
Functions | |||||||||
HvpVerifyHiveHeader | |||||||||
Internal function to verify that a hive header has valid format. | |||||||||
BOOLEAN CMAPI | HvpVerifyHiveHeader (IN PHBASE_BLOCK BaseBlock) | ||||||||
HvpFreeHiveBins | |||||||||
Internal function to free all bin storage associated with a hive descriptor. | |||||||||
VOID CMAPI | HvpFreeHiveBins (PHHIVE Hive) | ||||||||
HvpAllocBaseBlockAligned | |||||||||
Internal helper function to allocate cluster-aligned hive base blocks. | |||||||||
static __inline PHBASE_BLOCK | HvpAllocBaseBlockAligned (IN PHHIVE Hive, IN BOOLEAN Paged, IN ULONG Tag) | ||||||||
HvpInitFileName | |||||||||
Internal function to initialize the UNICODE NULL-terminated hive file name member of a hive header by copying the last 31 characters of the file name. Mainly used for debugging purposes. | |||||||||
static VOID | HvpInitFileName (IN OUT PHBASE_BLOCK BaseBlock, IN PCUNICODE_STRING FileName OPTIONAL) | ||||||||
HvpCreateHive | |||||||||
Internal helper function to initialize a hive descriptor structure for a newly created hive in memory.
| |||||||||
NTSTATUS CMAPI | HvpCreateHive (IN OUT PHHIVE RegistryHive, IN PCUNICODE_STRING FileName OPTIONAL) | ||||||||
HvpInitializeMemoryHive | |||||||||
Internal helper function to initialize hive descriptor structure for an existing hive stored in memory. The data of the hive is copied and it is prepared for read/write access.
| |||||||||
NTSTATUS CMAPI | HvpInitializeMemoryHive (PHHIVE Hive, PHBASE_BLOCK ChunkBase, IN PCUNICODE_STRING FileName OPTIONAL) | ||||||||
HvInitialize | |||||||||
Allocate a new hive descriptor structure and intialize it.
| |||||||||
NTSTATUS CMAPI | HvInitialize (PHHIVE RegistryHive, ULONG OperationType, ULONG HiveFlags, ULONG FileType, 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, PCUNICODE_STRING FileName OPTIONAL) | ||||||||
HvFree | |||||||||
Free all stroage and handles associated with hive descriptor. But do not free the hive descriptor itself. | |||||||||
VOID CMAPI | HvFree (PHHIVE RegistryHive) | ||||||||
HvpInitializeFlatHive | |
Internal helper function to initialize 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.
| |
enum | _RESULT { NotHive , Fail , NoMemory , HiveSuccess , RecoverHeader , RecoverData , SelfHeal } |
typedef enum _RESULT | RESULT |
NTSTATUS CMAPI | HvpInitializeFlatHive (PHHIVE Hive, PHBASE_BLOCK ChunkBase) |
RESULT CMAPI | HvpGetHiveHeader (IN PHHIVE Hive, IN PHBASE_BLOCK *HiveBaseBlock, IN PLARGE_INTEGER TimeStamp) |
NTSTATUS CMAPI | HvLoadHive (IN PHHIVE Hive, IN PCUNICODE_STRING FileName OPTIONAL) |
#define NDEBUG |
Definition at line 9 of file hiveinit.c.
Enumerator | |
---|---|
NotHive | |
Fail | |
NoMemory | |
HiveSuccess | |
RecoverHeader | |
RecoverData | |
SelfHeal |
Definition at line 365 of file hiveinit.c.
Definition at line 628 of file hiveinit.c.
Referenced by CmiInitializeHive(), CmpDestroyHive(), and CmUnloadKey().
NTSTATUS CMAPI HvInitialize | ( | PHHIVE | RegistryHive, |
ULONG | OperationType, | ||
ULONG | HiveFlags, | ||
ULONG | FileType, | ||
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, | ||
PCUNICODE_STRING FileName | OPTIONAL | ||
) |
Definition at line 522 of file hiveinit.c.
Referenced by BiInitializeAndValidateHive(), CmGetSystemControlValues(), CmiInitializeHive(), CmpInitializeHive(), and RegImportBinaryHive().
Definition at line 415 of file hiveinit.c.
Referenced by HvInitialize().
|
static |
Definition at line 87 of file hiveinit.c.
Referenced by HvpCreateHive(), HvpGetHiveHeader(), and HvpInitializeMemoryHive().
Definition at line 160 of file hiveinit.c.
Referenced by HvInitialize().
Definition at line 53 of file hiveinit.c.
Referenced by HvFree(), and HvpInitializeMemoryHive().
RESULT CMAPI HvpGetHiveHeader | ( | IN PHHIVE | Hive, |
IN PHBASE_BLOCK * | HiveBaseBlock, | ||
IN PLARGE_INTEGER | TimeStamp | ||
) |
Definition at line 377 of file hiveinit.c.
Referenced by HvLoadHive().
|
static |
Definition at line 124 of file hiveinit.c.
Referenced by HvpCreateHive(), and HvpInitializeMemoryHive().
NTSTATUS CMAPI HvpInitializeFlatHive | ( | PHHIVE | Hive, |
PHBASE_BLOCK | ChunkBase | ||
) |
Definition at line 344 of file hiveinit.c.
Referenced by HvInitialize().
NTSTATUS CMAPI HvpInitializeMemoryHive | ( | PHHIVE | Hive, |
PHBASE_BLOCK | ChunkBase, | ||
IN PCUNICODE_STRING FileName | OPTIONAL | ||
) |
Definition at line 221 of file hiveinit.c.
Referenced by HvInitialize(), and HvLoadHive().
BOOLEAN CMAPI HvpVerifyHiveHeader | ( | IN PHBASE_BLOCK | BaseBlock | ) |
Definition at line 18 of file hiveinit.c.
Referenced by HvpGetHiveHeader(), HvpInitializeFlatHive(), and HvpInitializeMemoryHive().