#include "cmp.h"
Go to the source code of this file.
Defines | |
#define | MAX_FILE_IO 0x10000 |
#define | CmpIoFileRead 1 |
#define | CmpIoFileWrite 2 |
#define | CmpIoFileSetSize 3 |
#define | CmpIoFileFlush 4 |
Functions | |
PVOID | CmpAllocate (ULONG Size, BOOLEAN UseForIo) |
VOID | CmpFree (PVOID MemoryBlock, ULONG GlobalQuotaSize) |
NTSTATUS | CmpDoFileSetSize (PHHIVE Hive, ULONG FileType, ULONG FileSize) |
NTSTATUS | CmpCreateEvent (IN EVENT_TYPE eventType, OUT PHANDLE eventHandle, OUT PKEVENT *event) |
BOOLEAN | CmpFileRead (PHHIVE Hive, ULONG FileType, PULONG FileOffset, PVOID DataBuffer, ULONG DataLength) |
BOOLEAN | CmpFileWrite (PHHIVE Hive, ULONG FileType, PCMP_OFFSET_ARRAY offsetArray, ULONG offsetArrayCount, PULONG FileOffset) |
BOOLEAN | CmpFileFlush (PHHIVE Hive, ULONG FileType) |
Variables | |
ULONG | perftouchbuffer = 0 |
BOOLEAN | CmpNoWrite |
struct { | |
ULONG Action | |
HANDLE Handle | |
NTSTATUS Status | |
} | CmRegistryIODebug |
|
Definition at line 49 of file cmwrapr.c. Referenced by CmpFileFlush(). |
|
Definition at line 46 of file cmwrapr.c. Referenced by CmpFileRead(). |
|
Definition at line 48 of file cmwrapr.c. Referenced by CmpDoFileSetSize(). |
|
Definition at line 47 of file cmwrapr.c. Referenced by CmpFileWrite(). |
|
Definition at line 44 of file cmwrapr.c. Referenced by CmpFileRead(), and CmpFileWrite(). |
|
Definition at line 62 of file cmwrapr.c. References CML_MINOR, CMLOG, CmpClaimGlobalQuota(), CmpReleaseGlobalQuota(), CMS_POOL, ExAllocatePoolWithTag, FALSE, NULL, PagedPool, PagedPoolCacheAligned, RtlGetCallersAddress(), and Size. Referenced by CmpInitializeHive().
|
|
Definition at line 313 of file cmwrapr.c. References FALSE, KernelMode, NT_SUCCESS, NTSTATUS(), NULL, and ObReferenceObjectByHandle(). Referenced by CmpFileRead(), CmpFileWrite(), and CmpOpenHiveFiles().
|
|
Definition at line 227 of file cmwrapr.c. References ASSERT, ASSERT_PASSIVE_LEVEL, CmpIoFileSetSize, CmRegistryIODebug, DbgPrint, FALSE, _CMHIVE::FileHandles, Hive, IoSetThreadHardErrorMode(), L, NT_SUCCESS, NTSTATUS(), NULL, Status, TRUE, and ZwSetInformationFile(). Referenced by CmpFileSetSize(), CmpWorker(), CmpWorkerCommand(), HvpDoWriteHive(), and HvWriteHive().
|
|
Definition at line 772 of file cmwrapr.c. References ASSERT, ASSERT_PASSIVE_LEVEL, CML_MAJOR, CMLOG, CmpIoFileFlush, CmpNoWrite, CmRegistryIODebug, CMS_IO, DbgPrint, FALSE, _CMHIVE::FileHandles, Hive, NT_SUCCESS, NTSTATUS(), NULL, and TRUE. Referenced by CmpInitializeHive(), and CmpSaveKeyByFileCopy().
|
|
Definition at line 351 of file cmwrapr.c. References ASSERT, ASSERT_PASSIVE_LEVEL, CML_MAJOR, CMLOG, CmpCreateEvent(), CmpIoFileRead, CmRegistryIODebug, CMS_IO, CMS_IO_ERROR, DbgPrint, Executive, FALSE, _CMHIVE::FileHandles, Hive, KernelMode, KeWaitForSingleObject(), L, MAX_FILE_IO, NT_SUCCESS, NTSTATUS(), NULL, ObDereferenceObject, Offset, and TRUE. Referenced by CmpInitializeHive(), and CmpWorker().
|
|
Definition at line 516 of file cmwrapr.c. References ASSERT, ASSERT_PASSIVE_LEVEL, CML_MAJOR, CMLOG, CmpCreateEvent(), CmpIoFileWrite, CmpNoWrite, CmRegistryIODebug, CMS_IO, CMS_IO_ERROR, DbgPrint, Executive, FALSE, _CMHIVE::FileHandles, Hive, KernelMode, KeWaitForMultipleObjects(), L, MAX_FILE_IO, NT_SUCCESS, NTSTATUS(), NULL, ObDereferenceObject, Offset, PAGE_SIZE, perftouchbuffer, Status, and TRUE. Referenced by CmpInitializeHive(), and CmpSaveKeyByFileCopy().
|
|
Definition at line 186 of file cmwrapr.c. References ASSERT, CML_MINOR, CMLOG, CmpReleaseGlobalQuota(), CMS_POOL, ExFreePool(), and RtlGetCallersAddress(). Referenced by CmpDestroyTemporaryHive(), CmpInitializeHive(), CmpValidateAlternate(), CmReplaceKey(), CmUnloadKey(), EhCloseHive(), HvFreeHive(), HvFreeHivePartial(), and HvWriteHive().
|
|
|
|
|
|
|
|
|
|
Definition at line 24 of file cmwrapr.c. Referenced by CmpFileWrite(). |
|
|