ReactOS 0.4.16-dev-106-g10b08aa
cm.h
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS Kernel
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: ntoskrnl/include/internal/cm.h
5 * PURPOSE: Internal header for the Configuration Manager
6 * PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org)
7 */
8
9#pragma once
10
11#include <cmlib.h>
12#include <cmreslist.h>
13#include "cmboot.h"
14
15//
16// Define this if you want debugging support
17//
18#define _CM_DEBUG_ 0x00
19
20//
21// These define the Debug Masks Supported
22//
23#define CM_HANDLE_DEBUG 0x01
24#define CM_NAMESPACE_DEBUG 0x02
25#define CM_SECURITY_DEBUG 0x04
26#define CM_REFERENCE_DEBUG 0x08
27#define CM_CALLBACK_DEBUG 0x10
28
29//
30// Debug/Tracing support
31//
32#if _CM_DEBUG_
33#ifdef NEW_DEBUG_SYSTEM_IMPLEMENTED // enable when Debug Filters are implemented
34#define CMTRACE DbgPrintEx
35#else
36#define CMTRACE(x, ...) \
37 if (x & CmpTraceLevel) DbgPrint(__VA_ARGS__)
38#endif
39#else
40#define CMTRACE(x, fmt, ...) DPRINT(fmt, ##__VA_ARGS__)
41#endif
42
43//
44// CM_KEY_CONTROL_BLOCK Signatures
45//
46#define CM_KCB_SIGNATURE 'bKmC'
47#define CM_KCB_INVALID_SIGNATURE '4FmC'
48
49//
50// CM_KEY_CONTROL_BLOCK ExtFlags
51//
52#define CM_KCB_NO_SUBKEY 0x01
53#define CM_KCB_SUBKEY_ONE 0x02
54#define CM_KCB_SUBKEY_HINT 0x04
55#define CM_KCB_SYM_LINK_FOUND 0x08
56#define CM_KCB_KEY_NON_EXIST 0x10
57#define CM_KCB_NO_DELAY_CLOSE 0x20
58#define CM_KCB_INVALID_CACHED_INFO 0x40
59#define CM_KCB_READ_ONLY_KEY 0x80
60
61//
62// CM_KEY_BODY Types
63//
64#define CM_KEY_BODY_TYPE 0x6B793032 // 'ky02'
65
66//
67// Number of various lists and hashes
68//
69#if 0 // See sdk/lib/cmlib/cmlib.h
70#define CMP_SECURITY_HASH_LISTS 64
71#endif
72#define CMP_MAX_CALLBACKS 100
73
74//
75// Hashing Constants
76//
77#define CMP_HASH_IRRATIONAL 314159269
78#define CMP_HASH_PRIME 1000000007
79
80//
81// CmpCreateKeyControlBlock Flags
82//
83#define CMP_CREATE_FAKE_KCB 0x1
84#define CMP_LOCK_HASHES_FOR_KCB 0x2
85
86//
87// CmpDoCreate and CmpDoOpen flags
88//
89#define CMP_CREATE_KCB_KCB_LOCKED 0x2
90#define CMP_OPEN_KCB_NO_CREATE 0x4
91
92//
93// EnlistKeyBodyWithKCB Flags
94//
95#define CMP_ENLIST_KCB_LOCKED_SHARED 0x1
96#define CMP_ENLIST_KCB_LOCKED_EXCLUSIVE 0x2
97
98//
99// CmpBuildAndLockKcbArray & CmpLockKcbArray Flags
100//
101#define CMP_LOCK_KCB_ARRAY_EXCLUSIVE 0x1
102#define CMP_LOCK_KCB_ARRAY_SHARED 0x2
103
104//
105// Unload Flags
106//
107#define CMP_UNLOCK_KCB_LOCKED 0x1
108#define CMP_UNLOCK_REGISTRY_LOCKED 0x2
109
110//
111// Maximum size of Value Cache
112//
113#define MAXIMUM_CACHED_DATA (2 * PAGE_SIZE)
114
115//
116// Hives to load on startup
117//
118#define CM_NUMBER_OF_MACHINE_HIVES 6
119
120//
121// Number of items that can fit inside an Allocation Page
122//
123#define CM_KCBS_PER_PAGE \
124 ((PAGE_SIZE - FIELD_OFFSET(CM_ALLOC_PAGE, AllocPage)) / sizeof(CM_KEY_CONTROL_BLOCK))
125#define CM_DELAYS_PER_PAGE \
126 ((PAGE_SIZE - FIELD_OFFSET(CM_ALLOC_PAGE, AllocPage)) / sizeof(CM_DELAY_ALLOC))
127
128//
129// Cache Lookup & KCB Array constructs
130//
131#define CMP_SUBKEY_LEVELS_DEPTH_LIMIT 32
132#define CMP_KCBS_IN_ARRAY_LIMIT (CMP_SUBKEY_LEVELS_DEPTH_LIMIT + 2)
133
134//
135// Value Search Results
136//
138{
143
144//
145// Key Hash
146//
147typedef struct _CM_KEY_HASH
148{
154
155//
156// Key Hash Table Entry
157//
159{
163#if DBG
164 PVOID LockBackTrace[5];
165#endif
167
168//
169// Name Hash
170//
171typedef struct _CM_NAME_HASH
172{
178
179//
180// Name Hash Table Entry
181//
183{
187
188//
189// Key Security Cache
190//
192{
199
200//
201// Key Security Cache Entry
202//
204{
208
209//
210// Cached Child List
211//
212typedef struct _CACHED_CHILD_LIST
213{
215 union
216 {
219 };
221
222//
223// Index Hint Block
224//
226{
230
231//
232// Key Body
233//
234typedef struct _CM_KEY_BODY
235{
241
242 /* ReactOS specific -- boolean flag to avoid recursive locking of the KCB */
245
246//
247// Name Control Block (NCB)
248//
250{
253 union
254 {
256 struct
257 {
262 };
263 };
265
266//
267// Key Control Block (KCB)
268//
270{
273 struct
274 {
280 };
281 union
282 {
284 struct
285 {
290 };
291 };
296 union
297 {
301 };
302 union
303 {
306 };
313 struct
314 {
319 };
322
323//
324// Notify Block
325//
326typedef struct _CM_NOTIFY_BLOCK
327{
336
337//
338// Re-map Block
339//
341{
345
346//
347// Allocation Page
348//
349typedef struct _CM_ALLOC_PAGE
350{
355
356//
357// Allocation Page Entry
358//
359typedef struct _CM_DELAY_ALLOC
360{
364
365//
366// Delayed Close Entry
367//
369{
373
374//
375// Delayed KCB Dereference Entry
376//
378{
382
383//
384// Cached Value Index
385//
387{
389 union
390 {
395
396//
397// Cached Value
398//
399typedef struct _CM_CACHED_VALUE
400{
406
407//
408// Hive List Entry
409//
410typedef struct _HIVE_LIST_ENTRY
411{
422
423//
424// Hash Cache Stack
425//
427{
431
432//
433// Parse context for Key Object
434//
435typedef struct _CM_PARSE_CONTEXT
436{
447
448//
449// MultiFunction Adapter Recognizer Structure
450//
451typedef struct _CMP_MF_TYPE
452{
457
458//
459// System Control Vector
460//
462{
469
470//
471// Structure for CmpQueryValueDataFromCache
472//
474{
475 union
476 {
481 };
483
484typedef struct _KEY_INFORMATION
485{
486 union
487 {
491 };
493
495//
496// BUGBUG Old Hive Stuff for Temporary Support
497//
500
501//
502// Mapped View Hive Functions
503//
504VOID
505NTAPI
507 IN PCMHIVE Hive
508);
509
510VOID
511NTAPI
513 IN PCMHIVE Hive
514);
515
516//
517// Security Management Functions
518//
523);
524
525//
526// Security Cache Functions
527//
528VOID
529NTAPI
531 IN PCMHIVE Hive
532);
533
534VOID
535NTAPI
537 IN PCMHIVE Hive
538);
539
540//
541// Value Cache Functions
542//
544NTAPI
548 OUT PCM_CACHED_VALUE **CachedValue,
549 OUT ULONG *Index,
551 OUT BOOLEAN *ValueIsCached,
552 OUT PHCELL_INDEX CellToRelease
553);
554
556NTAPI
559 IN PCM_CACHED_VALUE *CachedValue,
560 IN PCM_KEY_VALUE ValueKey,
561 IN BOOLEAN ValueIsCached,
563 IN PVOID KeyValueInformation,
567);
568
570NTAPI
573 OUT PCELL_DATA *CellData,
574 OUT BOOLEAN *IndexIsCached,
575 OUT PHCELL_INDEX ValueListToRelease
576);
577
579NTAPI
582 IN PCELL_DATA CellData,
583 IN ULONG Index,
584 OUT PCM_CACHED_VALUE **CachedValue,
586 IN BOOLEAN IndexIsCached,
587 OUT BOOLEAN *ValueIsCached,
588 OUT PHCELL_INDEX CellToRelease
589);
590
592NTAPI
596 IN ULONG Type,
597 IN PVOID Data,
599);
600
601//
602// Hive List Routines
603//
605NTAPI
607 IN PCMHIVE Hive,
608 OUT PUNICODE_STRING HiveName
609);
610
612NTAPI
614 IN PCMHIVE Hive
615);
616
617VOID
618NTAPI
620 IN PCMHIVE Hive
621);
622
623//
624// Quota Routines
625//
626VOID
627NTAPI
629 VOID
630);
631
632//
633// Notification Routines
634//
635VOID
636NTAPI
639 IN PHHIVE Hive,
640 IN HCELL_INDEX Cell,
642);
643
644VOID
645NTAPI
647 IN PCM_KEY_BODY KeyBody,
648 IN BOOLEAN LockHeld
649);
650
651CODE_SEG("INIT")
652VOID
653NTAPI
655 VOID
656);
657
658//
659// KCB Cache/Delay Routines
660//
661CODE_SEG("INIT")
662VOID
663NTAPI
665 VOID
666);
667
668CODE_SEG("INIT")
669VOID
670NTAPI
672 VOID
673);
674
675CODE_SEG("INIT")
676VOID
677NTAPI
679 VOID
680);
681
682CODE_SEG("INIT")
683VOID
684NTAPI
686 VOID
687);
688
689//
690// Key Object Routines
691//
692VOID
693NTAPI
699 IN ULONG SystemHandleCount
700);
701
702VOID
703NTAPI
706);
707
709NTAPI
711 IN PVOID ParseObject,
716 IN OUT PUNICODE_STRING CompleteName,
721);
722
724NTAPI
727 IN SECURITY_OPERATION_CODE OperationType,
730 IN OUT PULONG CapturedLength,
731 IN OUT PSECURITY_DESCRIPTOR *ObjectSecurityDescriptor,
734);
735
737NTAPI
740 IN BOOLEAN HasObjectName,
741 OUT POBJECT_NAME_INFORMATION ObjectNameInfo,
745);
746
747//
748// Hive Routines
749//
751NTAPI
753 _Out_ PCMHIVE *CmHive,
754 _In_ ULONG OperationType,
755 _In_ ULONG HiveFlags,
757 _In_opt_ PVOID HiveData,
758 _In_ HANDLE Primary,
759 _In_ HANDLE Log,
761 _In_ HANDLE Alternate,
763 _In_ ULONG CheckFlags
764);
765
767NTAPI
769 IN PCMHIVE CmHive
770);
771
773NTAPI
775 VOID
776);
777
779NTAPI
781 IN PUNICODE_STRING LinkName,
783 IN PCMHIVE CmHive,
786);
787
789NTAPI
791 IN PCUNICODE_STRING BaseName,
793 OUT PHANDLE Primary,
794 OUT PHANDLE Log,
795 OUT PULONG PrimaryDisposition,
796 OUT PULONG LogDisposition,
797 IN BOOLEAN CreateAllowed,
798 IN BOOLEAN MarkAsSystemHive,
799 IN BOOLEAN NoBuffering,
801);
802
803VOID
804NTAPI
806 IN PCMHIVE Hive
807);
808
810NTAPI
812 IN PCUNICODE_STRING HiveName,
813 IN ULONG HiveFlags,
814 OUT PCMHIVE *Hive,
816 IN ULONG CheckFlags
817);
818
819VOID
820NTAPI
822 VOID
823);
824
825//
826// Registry Utility Functions
827//
829NTAPI
831 VOID
832);
833
835NTAPI
837 VOID
838);
839
840VOID
841NTAPI
843 VOID
844);
845
846VOID
847NTAPI
849 VOID
850);
851
852VOID
853NTAPI
855 VOID
856);
857
858VOID
859NTAPI
861 IN PCMHIVE Hive
862);
863
864VOID
865NTAPI
867 IN PCMHIVE Hive
868);
869
871NTAPI
873 IN PCMHIVE Hive
874);
875
877NTAPI
879 IN PCMHIVE Hive
880);
881
882VOID
883NTAPI
885 IN PCMHIVE Hive
886);
887
888//
889// Delay Functions
890//
891PVOID
892NTAPI
894 VOID
895);
896
897VOID
898NTAPI
901);
902
903VOID
904NTAPI
907);
908
909VOID
910NTAPI
913 IN BOOLEAN LockHeldExclusively
914);
915
916VOID
917NTAPI
919 VOID
920);
921
922VOID
923NTAPI
925
926CODE_SEG("INIT")
927VOID
928NTAPI
930 VOID
931);
932
933//
934// KCB Functions
935//
937NTAPI
939 IN PHHIVE Hive,
943 IN ULONG Flags,
945);
946
948NTAPI
950 VOID
951);
952
953VOID
954NTAPI
957);
958
959VOID
960NTAPI
963);
964
965VOID
966NTAPI
969);
970
971VOID
972NTAPI
975 IN BOOLEAN LockHeldExclusively
976);
977
978VOID
979NTAPI
982);
983
985NTAPI
988);
989
991NTAPI
994);
995
996VOID
997NTAPI
1000 IN BOOLEAN LockHeldExclusively
1001);
1002
1003VOID
1004NTAPI
1007);
1008
1009VOID
1010NTAPI
1012 IN PCM_KEY_BODY KeyObject,
1013 IN ULONG Flags
1014);
1015
1016VOID
1017NTAPI
1019 IN PCM_KEY_BODY KeyBody,
1020 IN BOOLEAN LockHeld
1021);
1022
1023VOID
1025 _In_ PULONG LockedKcbs
1026);
1027
1028PULONG
1029NTAPI
1031 _In_ PCM_HASH_CACHE_STACK HashCacheStack,
1032 _In_ ULONG KcbLockFlags,
1034 _Inout_ PULONG OuterStackArray,
1035 _In_ ULONG TotalRemainingSubkeys,
1036 _In_ ULONG MatchRemainSubkeyLevel
1037);
1038
1039VOID
1040NTAPI
1042 IN ULONG ConvKey1,
1043 IN ULONG ConvKey2
1044);
1045
1046VOID
1047NTAPI
1049 IN ULONG ConvKey1,
1050 IN ULONG ConvKey2
1051);
1052
1053VOID
1054NTAPI
1057 IN BOOLEAN LockHeld
1058);
1059
1060//
1061// Parse Routines
1062//
1063BOOLEAN
1064NTAPI
1067 OUT PUNICODE_STRING NextName,
1068 OUT PBOOLEAN LastName
1069);
1070
1071//
1072// Command Routines (Flush, Open, Close, Init);
1073//
1074BOOLEAN
1075NTAPI
1077 IN BOOLEAN ForceFlush
1078);
1079
1080VOID
1081NTAPI
1083 VOID
1084);
1085
1086VOID
1087NTAPI
1089 IN BOOLEAN SetupBoot
1090);
1091
1093NTAPI
1096 IN PSECURITY_CLIENT_CONTEXT ImpersonationContext,
1098 OUT PCMHIVE *NewHive,
1099 IN ULONG CheckFlags
1100);
1101
1102VOID
1103NTAPI
1105 VOID
1106);
1107
1108//
1109// Open/Create Routines
1110//
1112NTAPI
1114 IN PHHIVE Hive,
1115 IN HCELL_INDEX Cell,
1120 IN PCM_KEY_CONTROL_BLOCK ParentKcb,
1122);
1123
1125NTAPI
1127 IN PHHIVE Hive,
1128 IN HCELL_INDEX Cell,
1134 IN PCM_KEY_CONTROL_BLOCK ParentKcb,
1135 IN PULONG KcbsLocked,
1137);
1138
1139//
1140// Boot Routines
1141//
1142CODE_SEG("INIT")
1143VOID
1144NTAPI
1146 IN PVOID SystemHiveData,
1147 IN PCM_SYSTEM_CONTROL_VECTOR ControlVector
1148);
1149
1151NTAPI
1153 IN USHORT ControlSet
1154);
1155
1156//
1157// Hardware Configuration Routines
1158//
1159CODE_SEG("INIT")
1161NTAPI
1163 IN PCONFIGURATION_COMPONENT_DATA CurrentEntry,
1165 OUT PHANDLE NewHandle,
1168 IN PUSHORT DeviceIndexTable
1169);
1170
1172NTAPI
1174 IN PLOADER_PARAMETER_BLOCK LoaderBlock
1175);
1176
1177CODE_SEG("INIT")
1179NTAPI
1181 IN PLOADER_PARAMETER_BLOCK LoaderBlock
1182);
1183
1184//
1185// Wrapper Routines
1186//
1188NTAPI
1193);
1194
1195PVOID
1196NTAPI
1198 IN SIZE_T Size,
1199 IN BOOLEAN Paged,
1200 IN ULONG Tag
1201);
1202
1203VOID
1204NTAPI
1205CmpFree(
1206 IN PVOID Ptr,
1207 IN ULONG Quota
1208);
1209
1210BOOLEAN
1211NTAPI
1213 IN PHHIVE RegistryHive,
1218);
1219
1220BOOLEAN
1221NTAPI
1223 IN PHHIVE RegistryHive,
1226 IN PVOID Buffer,
1228);
1229
1230BOOLEAN
1231NTAPI
1233 _In_ PHHIVE RegistryHive,
1236 _In_ ULONG OldFileSize
1237);
1238
1239BOOLEAN
1240NTAPI
1242 IN PHHIVE RegistryHive,
1246);
1247
1248//
1249// Configuration Manager side of Registry System Calls
1250//
1252NTAPI
1255 IN ULONG Index,
1257 IN PVOID KeyValueInformation,
1258 IN ULONG Length,
1260
1262NTAPI
1266 IN ULONG Type,
1267 IN PVOID Data,
1268 IN ULONG DataSize);
1269
1271NTAPI
1274 IN PVOID KeyInformation,
1275 IN ULONG Length,
1277);
1278
1280NTAPI
1282 IN ULONG Index,
1284 IN PVOID KeyInformation,
1285 IN ULONG Length,
1287);
1288
1290NTAPI
1292 IN PCM_KEY_BODY KeyBody
1293);
1294
1296NTAPI
1299 IN BOOLEAN EclusiveLock
1300);
1301
1303NTAPI
1307);
1308
1310NTAPI
1315 IN PVOID KeyValueInformation,
1316 IN ULONG Length,
1318);
1319
1321NTAPI
1322CmLoadKey(
1323 IN POBJECT_ATTRIBUTES TargetKey,
1324 IN POBJECT_ATTRIBUTES SourceFile,
1325 IN ULONG Flags,
1326 IN PCM_KEY_BODY KeyBody
1327);
1328
1330NTAPI
1334);
1335
1336ULONG
1337NTAPI
1340 _In_ BOOLEAN RemoveEmptyCacheEntries,
1341 _In_ BOOLEAN DereferenceOpenedEntries
1342);
1343
1345NTAPI
1347 IN PHHIVE SourceHive,
1348 IN HCELL_INDEX SourceCell,
1349 IN PHHIVE DestinationHive,
1350 IN HSTORAGE_TYPE StorageType
1351);
1352
1354NTAPI
1356 IN PHHIVE SourceHive,
1357 IN HCELL_INDEX SrcKeyCell,
1358 IN PHHIVE DestinationHive,
1359 IN HSTORAGE_TYPE StorageType,
1360 OUT PHCELL_INDEX DestKeyCell OPTIONAL
1361);
1362
1364NTAPI
1365CmSaveKey(
1368 IN ULONG Flags
1369);
1370
1372NTAPI
1374 IN PCM_KEY_CONTROL_BLOCK HighKcb,
1377);
1378
1379//
1380// Startup and Shutdown
1381//
1382CODE_SEG("INIT")
1383BOOLEAN
1384NTAPI
1386 VOID
1387);
1388
1389VOID
1390NTAPI
1392 VOID
1393);
1394
1395VOID
1396NTAPI
1399);
1400
1401VOID
1402NTAPI
1404 VOID
1405);
1406
1407//
1408// Driver List Routines
1409//
1410CODE_SEG("INIT")
1412NTAPI
1414 VOID
1415);
1416
1417//
1418// Global variables accessible from all of Cm
1419//
1420extern ULONG CmpTraceLevel;
1424extern BOOLEAN CmpMiniNTBoot;
1433extern CMHIVE CmControlHive;
1434extern WCHAR CmDefaultLanguageId[];
1440extern ULONG CmNtGlobalFlag;
1446extern UNICODE_STRING CmTypeName[];
1450extern ULONG CmpTypeCount[MaximumType + 1];
1455extern BOOLEAN CmSelfHeal;
1456extern BOOLEAN CmpSelfHeal;
1457extern ULONG CmpBootType;
1461extern ULONG CmpHashTableSize;
1463extern BOOLEAN CmpNoWrite;
1471
1472//
1473// Inlined functions
1474//
1475#include "cm_x.h"
#define CODE_SEG(...)
unsigned char BOOLEAN
static GENERIC_MAPPING GenericMapping
Definition: SeInheritance.c:11
Type
Definition: Type.h:7
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn UINT32 *TableIdx UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER void *Data ACPI_OBJECT_HANDLER void **Data ACPI_STRING ACPI_OBJECT_LIST ACPI_BUFFER *ReturnObjectBuffer ACPI_DEVICE_INFO **ReturnBuffer ACPI_HANDLE Parent
Definition: acpixf.h:732
LONG NTSTATUS
Definition: precomp.h:26
WCHAR RootDirectory[MAX_PATH]
Definition: format.c:74
DWORD ClusterSize
Definition: format.c:67
_In_ PFCB _In_ LONGLONG FileOffset
Definition: cdprocs.h:160
_Inout_ PFCB _Inout_ PUNICODE_STRING RemainingName
Definition: cdprocs.h:802
Definition: bufpool.h:45
_In_ PVOID Argument2
Definition: classpnp.h:721
NTSTATUS NTAPI CmpSecurityMethod(IN PVOID Object, IN SECURITY_OPERATION_CODE OperationType, IN PSECURITY_INFORMATION SecurityInformation, IN PSECURITY_DESCRIPTOR SecurityDescriptor, IN OUT PULONG CapturedLength, IN OUT PSECURITY_DESCRIPTOR *ObjectSecurityDescriptor, IN POOL_TYPE PoolType, IN PGENERIC_MAPPING GenericMapping)
struct _KEY_VALUE_INFORMATION * PKEY_VALUE_INFORMATION
NTSTATUS NTAPI CmpLinkHiveToMaster(IN PUNICODE_STRING LinkName, IN HANDLE RootDirectory, IN PCMHIVE CmHive, IN BOOLEAN Allocate, IN PSECURITY_DESCRIPTOR SecurityDescriptor)
Definition: cmsysini.c:802
VOID NTAPI CmpAddToDelayedClose(IN PCM_KEY_CONTROL_BLOCK Kcb, IN BOOLEAN LockHeldExclusively)
Definition: cmdelay.c:350
HCELL_INDEX NTAPI CmpCopyCell(IN PHHIVE SourceHive, IN HCELL_INDEX SourceCell, IN PHHIVE DestinationHive, IN HSTORAGE_TYPE StorageType)
Definition: cmvalue.c:376
VOID NTAPI CmpDelayDerefKeyControlBlock(IN PCM_KEY_CONTROL_BLOCK Kcb)
Definition: cmdelay.c:286
VOID NTAPI CmpLazyFlush(VOID)
Definition: cmlazy.c:157
VOID NTAPI CmpCleanUpKcbCacheWithLock(IN PCM_KEY_CONTROL_BLOCK Kcb, IN BOOLEAN LockHeldExclusively)
Definition: cmkcbncb.c:476
VOID NTAPI CmpSetVersionData(VOID)
Definition: cmsysini.c:2182
struct _CM_NAME_CONTROL_BLOCK CM_NAME_CONTROL_BLOCK
VOID CmpUnLockKcbArray(_In_ PULONG LockedKcbs)
Unlocks a number of KCBs provided by a KCB array.
Definition: cmkcbncb.c:1145
ULONG CmDefaultLanguageIdLength
Definition: cmdata.c:23
ULONG CmpDelayedCloseIndex
Definition: cm.h:1462
ULONG CmpDelayedCloseSize
Definition: cmdelay.c:19
BOOLEAN NTAPI CmpGetHiveName(IN PCMHIVE Hive, OUT PUNICODE_STRING HiveName)
Definition: cmhvlist.c:24
VALUE_SEARCH_RETURN_TYPE NTAPI CmpQueryKeyValueData(IN PCM_KEY_CONTROL_BLOCK Kcb, IN PCM_CACHED_VALUE *CachedValue, IN PCM_KEY_VALUE ValueKey, IN BOOLEAN ValueIsCached, IN KEY_VALUE_INFORMATION_CLASS KeyValueInformationClass, IN PVOID KeyValueInformation, IN ULONG Length, OUT PULONG ResultLength, OUT PNTSTATUS Status)
Definition: cmvalche.c:327
UNICODE_STRING CmClassName[]
VOID NTAPI CmpLockRegistryExclusive(VOID)
Definition: cmsysini.c:1957
BOOLEAN NTAPI CmpTestHiveFlusherLockShared(IN PCMHIVE Hive)
Definition: cmsysini.c:2040
struct _CM_KEY_HASH CM_KEY_HASH
NTSTATUS NTAPI CmpInitializeRegistryNode(IN PCONFIGURATION_COMPONENT_DATA CurrentEntry, IN HANDLE NodeHandle, OUT PHANDLE NewHandle, IN INTERFACE_TYPE InterfaceType, IN ULONG BusNumber, IN PUSHORT DeviceIndexTable)
Definition: cmconfig.c:20
VOID NTAPI CmpDestroyHiveViewList(IN PCMHIVE Hive)
Definition: cmmapvw.c:35
VOID NTAPI CmpCloseHiveFiles(IN PCMHIVE Hive)
Definition: cminit.c:644
VOID NTAPI CmpUnlockRegistry(VOID)
Definition: cmsysini.c:2056
struct _KEY_VALUE_INFORMATION KEY_VALUE_INFORMATION
ERESOURCE CmpRegistryLock
Definition: cmsysini.c:18
USHORT CmpUnknownBusCount
Definition: cmdata.c:66
VOID NTAPI CmpRemoveFromHiveFileList(IN PCMHIVE Hive)
Definition: cmhvlist.c:254
struct _CM_ALLOC_PAGE CM_ALLOC_PAGE
POBJECT_TYPE CmpKeyObjectType
Definition: cmsysini.c:15
NTSTATUS CmpAssignSecurityDescriptor(IN PCM_KEY_CONTROL_BLOCK Kcb, IN PSECURITY_DESCRIPTOR SecurityDescriptor)
Definition: cmse.c:251
struct _CACHED_CHILD_LIST CACHED_CHILD_LIST
enum _VALUE_SEARCH_RETURN_TYPE VALUE_SEARCH_RETURN_TYPE
NTSTATUS NTAPI CmpAddToHiveFileList(IN PCMHIVE Hive)
Definition: cmhvlist.c:130
VOID NTAPI CmpLockHiveFlusherExclusive(IN PCMHIVE Hive)
Definition: cmsysini.c:2006
struct _CM_DELAY_DEREF_KCB_ITEM CM_DELAY_DEREF_KCB_ITEM
struct _CM_KEY_HASH_TABLE_ENTRY * PCM_KEY_HASH_TABLE_ENTRY
ULONG CmDefaultLanguageIdType
Definition: cmdata.c:24
VOID NTAPI CmpReportNotify(IN PCM_KEY_CONTROL_BLOCK Kcb, IN PHHIVE Hive, IN HCELL_INDEX Cell, IN ULONG Filter)
Definition: cmnotify.c:19
struct _CM_DELAY_ALLOC CM_DELAY_ALLOC
struct _CM_SYSTEM_CONTROL_VECTOR CM_SYSTEM_CONTROL_VECTOR
struct _CM_KEY_CONTROL_BLOCK * PCM_KEY_CONTROL_BLOCK
BOOLEAN NTAPI CmpTestHiveFlusherLockExclusive(IN PCMHIVE Hive)
Definition: cmsysini.c:2048
VALUE_SEARCH_RETURN_TYPE NTAPI CmpFindValueByNameFromCache(IN PCM_KEY_CONTROL_BLOCK Kcb, IN PCUNICODE_STRING Name, OUT PCM_CACHED_VALUE **CachedValue, OUT ULONG *Index, OUT PCM_KEY_VALUE *Value, OUT BOOLEAN *ValueIsCached, OUT PHCELL_INDEX CellToRelease)
Definition: cmvalche.c:194
VOID NTAPI CmpAcquireTwoKcbLocksExclusiveByKey(IN ULONG ConvKey1, IN ULONG ConvKey2)
Definition: cmsysini.c:2079
VOID NTAPI CmpFree(IN PVOID Ptr, IN ULONG Quota)
Definition: registry.c:60
NTSTATUS NTAPI CmpInitializeMachineDependentConfiguration(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
Definition: cmhardwr.c:21
VOID NTAPI CmpInitCallback(VOID)
Definition: cmhook.c:38
EX_PUSH_LOCK CmpHiveListHeadLock
Definition: cmdata.c:39
NTSTATUS NTAPI CmQueryKey(IN PCM_KEY_CONTROL_BLOCK Kcb, IN KEY_INFORMATION_CLASS KeyInformationClass, IN PVOID KeyInformation, IN ULONG Length, IN PULONG ResultLength)
struct _CM_KEY_SECURITY_CACHE * PCM_KEY_SECURITY_CACHE
PSECURITY_DESCRIPTOR NTAPI CmpHiveRootSecurityDescriptor(VOID)
Definition: cmse.c:21
LANGID PsDefaultUILanguageId
Definition: locale.c:25
VOID NTAPI CmpInitializeCache(VOID)
Definition: cmkcbncb.c:26
struct _CACHED_CHILD_LIST * PCACHED_CHILD_LIST
LANGID PsInstallUILanguageId
Definition: locale.c:21
EX_PUSH_LOCK CmpLoadHiveLock
Definition: cm.h:1426
VALUE_SEARCH_RETURN_TYPE NTAPI CmpGetValueListFromCache(IN PCM_KEY_CONTROL_BLOCK Kcb, OUT PCELL_DATA *CellData, OUT BOOLEAN *IndexIsCached, OUT PHCELL_INDEX ValueListToRelease)
Definition: cmvalche.c:44
VOID NTAPI CmpDestroySecurityCache(IN PCMHIVE Hive)
Definition: cmsecach.c:41
HIVE_LIST_ENTRY CmpMachineHiveList[]
Definition: cmdata.c:41
VOID NTAPI CmpReleaseTwoKcbLockByKey(IN ULONG ConvKey1, IN ULONG ConvKey2)
Definition: cmsysini.c:2108
BOOLEAN NTAPI CmInitSystem1(VOID)
Definition: cmsysini.c:1621
struct _CM_CACHED_VALUE * PCM_CACHED_VALUE
UNICODE_STRING CmpSystemStartOptions
struct _CM_NOTIFY_BLOCK CM_NOTIFY_BLOCK
VOID NTAPI CmpLockRegistry(VOID)
Definition: cmsysini.c:1970
VOID NTAPI CmpLockHiveFlusherShared(IN PCMHIVE Hive)
Definition: cmsysini.c:2017
struct _CMP_MF_TYPE * PCMP_MF_TYPE
NTSTATUS NTAPI CmpParseKey(IN PVOID ParseObject, IN PVOID ObjectType, IN OUT PACCESS_STATE AccessState, IN KPROCESSOR_MODE AccessMode, IN ULONG Attributes, IN OUT PUNICODE_STRING CompleteName, IN OUT PUNICODE_STRING RemainingName, IN OUT PVOID Context OPTIONAL, IN PSECURITY_QUALITY_OF_SERVICE SecurityQos OPTIONAL, OUT PVOID *Object)
Definition: cmparse.c:1848
_VALUE_SEARCH_RETURN_TYPE
Definition: cm.h:138
@ SearchSuccess
Definition: cm.h:139
@ SearchNeedExclusiveLock
Definition: cm.h:140
@ SearchFail
Definition: cm.h:141
struct _CMP_MF_TYPE CMP_MF_TYPE
NTSTATUS NTAPI CmpQueryKeyName(IN PVOID Object, IN BOOLEAN HasObjectName, OUT POBJECT_NAME_INFORMATION ObjectNameInfo, IN ULONG Length, OUT PULONG ReturnLength, IN KPROCESSOR_MODE AccessMode)
NTSTATUS NTAPI CmpInitializeHardwareConfiguration(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
Definition: cmconfig.c:329
UNICODE_STRING CmSymbolicLinkValueName
Definition: cmdata.c:52
VOID NTAPI CmpArmDelayedCloseTimer(VOID)
Definition: cmdelay.c:335
WCHAR CmInstallUILanguageId[]
Definition: cmdata.c:26
VALUE_SEARCH_RETURN_TYPE NTAPI CmpGetValueKeyFromCache(IN PCM_KEY_CONTROL_BLOCK Kcb, IN PCELL_DATA CellData, IN ULONG Index, OUT PCM_CACHED_VALUE **CachedValue, OUT PCM_KEY_VALUE *Value, IN BOOLEAN IndexIsCached, OUT BOOLEAN *ValueIsCached, OUT PHCELL_INDEX CellToRelease)
Definition: cmvalche.c:96
VOID NTAPI CmpCmdInit(IN BOOLEAN SetupBoot)
Definition: cmlazy.c:233
VOID NTAPI DelistKeyBodyFromKCB(IN PCM_KEY_BODY KeyBody, IN BOOLEAN LockHeld)
Definition: cmkcbncb.c:1100
KGUARDED_MUTEX CmpDelayedCloseTableLock
Definition: cmdelay.c:21
NTSTATUS NTAPI CmSaveMergedKeys(IN PCM_KEY_CONTROL_BLOCK HighKcb, IN PCM_KEY_CONTROL_BLOCK LowKcb, IN HANDLE FileHandle)
Definition: cmapi.c:2743
VOID NTAPI CmpInitializeHiveList(VOID)
Definition: cmsysini.c:1467
CMP_MF_TYPE CmpMultifunctionTypes[]
struct _CM_KEY_SECURITY_CACHE_ENTRY CM_KEY_SECURITY_CACHE_ENTRY
BOOLEAN CmpSpecialBootCondition
Definition: cmsysini.c:26
struct _CM_NAME_CONTROL_BLOCK * PCM_NAME_CONTROL_BLOCK
VOID NTAPI CmpInitDelayDerefKCBEngine(VOID)
Definition: cmdelay.c:268
VOID NTAPI CmGetSystemControlValues(IN PVOID SystemHiveData, IN PCM_SYSTEM_CONTROL_VECTOR ControlVector)
Definition: cmcontrl.c:104
NTSTATUS NTAPI CmpCreateLinkNode(IN PHHIVE Hive, IN HCELL_INDEX Cell, IN PACCESS_STATE AccessState, IN UNICODE_STRING Name, IN KPROCESSOR_MODE AccessMode, IN ULONG CreateOptions, IN PCM_PARSE_CONTEXT Context, IN PCM_KEY_CONTROL_BLOCK ParentKcb, IN PULONG KcbsLocked, OUT PVOID *Object)
Definition: cmparse.c:830
NTSTATUS NTAPI CmEnumerateKey(IN PCM_KEY_CONTROL_BLOCK Kcb, IN ULONG Index, IN KEY_INFORMATION_CLASS KeyInformationClass, IN PVOID KeyInformation, IN ULONG Length, IN PULONG ResultLength)
Definition: cmapi.c:1734
PCM_KEY_HASH_TABLE_ENTRY CmpCacheTable
Definition: cmkcbncb.c:18
BOOLEAN NTAPI CmpReferenceKeyControlBlock(IN PCM_KEY_CONTROL_BLOCK Kcb)
Definition: cmkcbncb.c:357
struct _CM_CELL_REMAP_BLOCK * PCM_CELL_REMAP_BLOCK
UNICODE_STRING CmTypeName[]
PCM_FULL_RESOURCE_DESCRIPTOR CmpConfigurationData
Definition: cmdata.c:37
struct _CM_KEY_BODY * PCM_KEY_BODY
VOID NTAPI CmpCloseKeyObject(IN PEPROCESS Process OPTIONAL, IN PVOID Object, IN ACCESS_MASK GrantedAccess, IN ULONG ProcessHandleCount, IN ULONG SystemHandleCount)
Definition: cmsysini.c:162
NTSTATUS NTAPI CmSetValueKey(IN PCM_KEY_CONTROL_BLOCK Kcb, IN PUNICODE_STRING ValueName, IN ULONG Type, IN PVOID Data, IN ULONG DataSize)
Definition: cmapi.c:643
struct _CM_DELAYED_CLOSE_ENTRY CM_DELAYED_CLOSE_ENTRY
struct _CM_NAME_HASH CM_NAME_HASH
BOOLEAN NTAPI CmpFileSetSize(_In_ PHHIVE RegistryHive, _In_ ULONG FileType, _In_ ULONG FileSize, _In_ ULONG OldFileSize)
Definition: cmwraprs.c:132
ULONG NTAPI CmpEnumerateOpenSubKeys(_In_ PCM_KEY_CONTROL_BLOCK RootKcb, _In_ BOOLEAN RemoveEmptyCacheEntries, _In_ BOOLEAN DereferenceOpenedEntries)
Definition: cmapi.c:2339
NTSTATUS NTAPI CmFlushKey(IN PCM_KEY_CONTROL_BLOCK Kcb, IN BOOLEAN EclusiveLock)
Definition: cmapi.c:1937
PCM_KEY_CONTROL_BLOCK NTAPI CmpCreateKeyControlBlock(IN PHHIVE Hive, IN HCELL_INDEX Index, IN PCM_KEY_NODE Node, IN PCM_KEY_CONTROL_BLOCK Parent, IN ULONG Flags, IN PUNICODE_STRING KeyName)
Definition: cmkcbncb.c:655
struct _CM_DELAY_ALLOC * PCM_DELAY_ALLOC
struct _CM_HASH_CACHE_STACK * PCM_HASH_CACHE_STACK
VOID NTAPI CmpShutdownWorkers(VOID)
Definition: cmlazy.c:437
VOID NTAPI CmpCleanUpKcbValueCache(IN PCM_KEY_CONTROL_BLOCK Kcb)
Definition: cmkcbncb.c:431
struct _CM_NAME_HASH * PCM_NAME_HASH
BOOLEAN HvShutdownComplete
Definition: cmsysini.c:36
VOID NTAPI CmpDereferenceKeyControlBlockWithLock(IN PCM_KEY_CONTROL_BLOCK Kcb, IN BOOLEAN LockHeldExclusively)
Definition: cmkcbncb.c:606
VOID NTAPI CmpDereferenceKeyControlBlock(IN PCM_KEY_CONTROL_BLOCK Kcb)
Definition: cmkcbncb.c:571
NTSTATUS NTAPI CmpDoCreate(IN PHHIVE Hive, IN HCELL_INDEX Cell, IN PACCESS_STATE AccessState, IN PUNICODE_STRING Name, IN KPROCESSOR_MODE AccessMode, IN PCM_PARSE_CONTEXT Context, IN PCM_KEY_CONTROL_BLOCK ParentKcb, OUT PVOID *Object)
Definition: cmparse.c:404
struct _CM_DELAY_DEREF_KCB_ITEM * PCM_DELAY_DEREF_KCB_ITEM
BOOLEAN CmpNoVolatileCreates
Definition: cmsysini.c:34
NTSTATUS NTAPI CmpSaveBootControlSet(IN USHORT ControlSet)
Definition: cmcontrl.c:267
ULONG CmInstallUILanguageIdLength
Definition: cmdata.c:27
PUNICODE_STRING NTAPI CmpConstructName(IN PCM_KEY_CONTROL_BLOCK Kcb)
Definition: cmkcbncb.c:897
struct _CM_ALLOC_PAGE * PCM_ALLOC_PAGE
VOID NTAPI CmpFlushNotifiesOnKeyBodyList(IN PCM_KEY_CONTROL_BLOCK Kcb, IN BOOLEAN LockHeld)
Definition: cmkcbncb.c:1368
struct _CM_SYSTEM_CONTROL_VECTOR * PCM_SYSTEM_CONTROL_VECTOR
BOOLEAN NTAPI CmpFileWrite(IN PHHIVE RegistryHive, IN ULONG FileType, IN OUT PULONG FileOffset, IN PVOID Buffer, IN SIZE_T BufferLength)
struct _CM_NAME_HASH_TABLE_ENTRY CM_NAME_HASH_TABLE_ENTRY
NTSTATUS CmiCallRegisteredCallbacks(IN REG_NOTIFY_CLASS Argument1, IN PVOID Argument2)
Definition: cmhook.c:59
PCMHIVE CmiVolatileHive
Definition: cmsysini.c:16
NTSTATUS NTAPI CmpInitializeHive(_Out_ PCMHIVE *CmHive, _In_ ULONG OperationType, _In_ ULONG HiveFlags, _In_ ULONG FileType, _In_opt_ PVOID HiveData, _In_ HANDLE Primary, _In_ HANDLE Log, _In_ HANDLE External, _In_ HANDLE Alternate, _In_opt_ PCUNICODE_STRING FileName, _In_ ULONG CheckFlags)
Definition: cminit.c:19
struct _KEY_INFORMATION KEY_INFORMATION
BOOLEAN CmpProfileLoaded
Definition: cmsysini.c:33
BOOLEAN NTAPI CmpTestRegistryLockExclusive(VOID)
Definition: cmsysini.c:1998
VOID NTAPI CmpRemoveFromDelayedClose(IN PCM_KEY_CONTROL_BLOCK Kcb)
Definition: cmdelay.c:425
ULONG CmpBootType
Definition: cmdata.c:62
LIST_ENTRY CmpHiveListHead
Definition: cmsysini.c:17
NTSTATUS NTAPI CmpDeepCopyKey(IN PHHIVE SourceHive, IN HCELL_INDEX SrcKeyCell, IN PHHIVE DestinationHive, IN HSTORAGE_TYPE StorageType, OUT PHCELL_INDEX DestKeyCell OPTIONAL)
Definition: cmapi.c:2632
ULONG CmpTypeCount[MaximumType+1]
Definition: cmdata.c:67
BOOLEAN CmpWasSetupBoot
Definition: cmsysini.c:32
struct _CM_KEY_HASH * PCM_KEY_HASH
BOOLEAN CmpNoWrite
Definition: cmsysini.c:30
VOID NTAPI CmpSetGlobalQuotaAllowed(VOID)
Definition: cmquota.c:22
BOOLEAN CmpMiniNTBoot
Definition: cmdata.c:60
struct _CM_NOTIFY_BLOCK * PCM_NOTIFY_BLOCK
NTSTATUS NTAPI CmpInitHiveFromFile(IN PCUNICODE_STRING HiveName, IN ULONG HiveFlags, OUT PCMHIVE *Hive, IN OUT PBOOLEAN New, IN ULONG CheckFlags)
Definition: cmsysini.c:289
CMHIVE CmControlHive
Definition: cmdata.c:34
NTSTATUS NTAPI CmQueryValueKey(IN PCM_KEY_CONTROL_BLOCK Kcb, IN UNICODE_STRING ValueName, IN KEY_VALUE_INFORMATION_CLASS KeyValueInformationClass, IN PVOID KeyValueInformation, IN ULONG Length, IN PULONG ResultLength)
Definition: cmapi.c:1074
CM_SYSTEM_CONTROL_VECTOR CmControlVector[]
VOID NTAPI CmpDeleteKeyObject(IN PVOID Object)
struct _HIVE_LIST_ENTRY * PHIVE_LIST_ENTRY
BOOLEAN ExpInTextModeSetup
Definition: init.c:69
struct _CM_PARSE_CONTEXT * PCM_PARSE_CONTEXT
ULONG CmpTraceLevel
Definition: cmsysini.c:35
BOOLEAN CmpSelfHeal
Definition: cmdata.c:64
BOOLEAN NTAPI CmpFileFlush(IN PHHIVE RegistryHive, IN ULONG FileType, IN OUT PLARGE_INTEGER FileOffset, IN ULONG Length)
Definition: cmwraprs.c:192
NTSTATUS NTAPI CmpCreateEvent(IN EVENT_TYPE EventType, OUT PHANDLE EventHandle, OUT PKEVENT *Event)
Definition: cmwraprs.c:19
ULONG CmpConfigurationAreaSize
Definition: cmdata.c:36
WCHAR CmDefaultLanguageId[]
Definition: cmdata.c:22
struct _CM_INDEX_HINT_BLOCK * PCM_INDEX_HINT_BLOCK
VOID NTAPI EnlistKeyBodyWithKCB(IN PCM_KEY_BODY KeyObject, IN ULONG Flags)
Definition: cmkcbncb.c:1042
PCM_NAME_HASH_TABLE_ENTRY CmpNameCacheTable
Definition: cmkcbncb.c:19
VOID NTAPI CmpInitializeDelayedCloseTable(VOID)
Definition: cmdelay.c:191
struct _CM_HASH_CACHE_STACK CM_HASH_CACHE_STACK
NTSTATUS NTAPI CmpCmdHiveOpen(IN POBJECT_ATTRIBUTES FileAttributes, IN PSECURITY_CLIENT_CONTEXT ImpersonationContext, IN OUT PBOOLEAN Allocate, OUT PCMHIVE *NewHive, IN ULONG CheckFlags)
Definition: cmlazy.c:276
VOID NTAPI CmpInitHiveViewList(IN PCMHIVE Hive)
Definition: cmmapvw.c:21
BOOLEAN NTAPI CmpFileRead(IN PHHIVE RegistryHive, IN ULONG FileType, IN OUT PULONG FileOffset, OUT PVOID Buffer, IN SIZE_T BufferLength)
NTSTATUS NTAPI CmDeleteValueKey(IN PCM_KEY_CONTROL_BLOCK Kcb, IN UNICODE_STRING ValueName)
Definition: cmapi.c:915
VOID NTAPI CmpCleanUpSubKeyInfo(IN PCM_KEY_CONTROL_BLOCK Kcb)
Definition: cmkcbncb.c:517
struct _CM_CACHED_VALUE CM_CACHED_VALUE
VOID NTAPI CmSetLazyFlushState(IN BOOLEAN Enable)
Definition: cmlazy.c:446
struct _CM_INDEX_HINT_BLOCK CM_INDEX_HINT_BLOCK
NTSTATUS NTAPI CmEnumerateValueKey(IN PCM_KEY_CONTROL_BLOCK Kcb, IN ULONG Index, IN KEY_VALUE_INFORMATION_CLASS KeyValueInformationClass, IN PVOID KeyValueInformation, IN ULONG Length, IN PULONG ResultLength)
Definition: cmapi.c:1191
struct _CM_DELAYED_CLOSE_ENTRY * PCM_DELAYED_CLOSE_ENTRY
VOID NTAPI CmpUnlockHiveFlusher(IN PCMHIVE Hive)
Definition: cmsysini.c:2028
struct _CM_KEY_BODY CM_KEY_BODY
PVOID NTAPI CmpAllocateDelayItem(VOID)
Definition: cmalloc.c:199
NTSTATUS NTAPI CmSaveKey(IN PCM_KEY_CONTROL_BLOCK Kcb, IN HANDLE FileHandle, IN ULONG Flags)
Definition: cmapi.c:2649
BOOLEAN CmpForceForceFlush
Definition: cmlazy.c:22
VOID NTAPI CmpInitSecurityCache(IN PCMHIVE Hive)
Definition: cmsecach.c:21
ULONG CmNtGlobalFlag
Definition: cmdata.c:19
VOID NTAPI CmpRemoveKeyControlBlock(IN PCM_KEY_CONTROL_BLOCK Kcb)
Definition: cmkcbncb.c:306
BOOLEAN NTAPI CmpDoFlushAll(IN BOOLEAN ForceFlush)
Definition: cmapi.c:81
BOOLEAN CmpFlushOnLockRelease
Definition: cmsysini.c:25
struct _CM_CACHED_VALUE_INDEX CM_CACHED_VALUE_INDEX
VOID NTAPI CmpFlushNotify(IN PCM_KEY_BODY KeyBody, IN BOOLEAN LockHeld)
Definition: cmnotify.c:30
HANDLE CmpRegistryRootHandle
Definition: cmdata.c:69
NTSTATUS NTAPI CmDeleteKey(IN PCM_KEY_BODY KeyBody)
Definition: cmapi.c:1823
struct _CM_KEY_SECURITY_CACHE_ENTRY * PCM_KEY_SECURITY_CACHE_ENTRY
BOOLEAN CmpHoldLazyFlush
Definition: cmlazy.c:23
BOOLEAN CmSelfHeal
Definition: cmdata.c:63
VOID NTAPI CmShutdownSystem(VOID)
Definition: cmsysini.c:2146
BOOLEAN CmpShareSystemHives
Definition: cmdata.c:58
ULONG CmInstallUILanguageIdType
Definition: cmdata.c:28
UNICODE_STRING CmpLoadOptions
Definition: cmdata.c:55
PUNICODE_STRING *NTAPI CmGetSystemDriverList(VOID)
Definition: cmsysini.c:1839
NTSTATUS NTAPI CmpOpenHiveFiles(IN PCUNICODE_STRING BaseName, IN PCWSTR Extension OPTIONAL, OUT PHANDLE Primary, OUT PHANDLE Log, OUT PULONG PrimaryDisposition, OUT PULONG LogDisposition, IN BOOLEAN CreateAllowed, IN BOOLEAN MarkAsSystemHive, IN BOOLEAN NoBuffering, OUT PULONG ClusterSize OPTIONAL)
Definition: cminit.c:273
PVOID NTAPI CmpAllocate(IN SIZE_T Size, IN BOOLEAN Paged, IN ULONG Tag)
Definition: registry.c:49
VOID NTAPI CmpInitCmPrivateAlloc(VOID)
Definition: cmalloc.c:29
ULONG CmpHashTableSize
Definition: cmkcbncb.c:17
PULONG NTAPI CmpBuildAndLockKcbArray(_In_ PCM_HASH_CACHE_STACK HashCacheStack, _In_ ULONG KcbLockFlags, _In_ PCM_KEY_CONTROL_BLOCK Kcb, _Inout_ PULONG OuterStackArray, _In_ ULONG TotalRemainingSubkeys, _In_ ULONG MatchRemainSubkeyLevel)
Builds an array of KCBs and locks them. Whether these KCBs are locked exclusively or in shared mode b...
Definition: cmkcbncb.c:1302
NTSTATUS NTAPI CmLoadKey(IN POBJECT_ATTRIBUTES TargetKey, IN POBJECT_ATTRIBUTES SourceFile, IN ULONG Flags, IN PCM_KEY_BODY KeyBody)
Definition: cmapi.c:2012
NTSTATUS NTAPI CmpDestroyHive(IN PCMHIVE CmHive)
Definition: cminit.c:242
struct _CM_KEY_CONTROL_BLOCK CM_KEY_CONTROL_BLOCK
BOOLEAN NTAPI CmpTestRegistryLock(VOID)
Definition: cmsysini.c:1990
VOID NTAPI CmpInitCmPrivateDelayAlloc(VOID)
Definition: cmalloc.c:44
NTSTATUS NTAPI CmUnloadKey(_In_ PCM_KEY_CONTROL_BLOCK Kcb, _In_ ULONG Flags)
Definition: cmapi.c:2209
struct _CM_KEY_HASH_TABLE_ENTRY CM_KEY_HASH_TABLE_ENTRY
VOID NTAPI CmpFreeKeyControlBlock(IN PCM_KEY_CONTROL_BLOCK Kcb)
Definition: cmalloc.c:53
struct _HIVE_LIST_ENTRY HIVE_LIST_ENTRY
struct _CM_NAME_HASH_TABLE_ENTRY * PCM_NAME_HASH_TABLE_ENTRY
struct _KEY_INFORMATION * PKEY_INFORMATION
LIST_ENTRY CmiKeyObjectListHead
VOID NTAPI CmpFreeDelayItem(PVOID Entry)
Definition: cmalloc.c:267
struct _CM_CELL_REMAP_BLOCK CM_CELL_REMAP_BLOCK
struct _CM_PARSE_CONTEXT CM_PARSE_CONTEXT
PCM_KEY_CONTROL_BLOCK NTAPI CmpAllocateKeyControlBlock(VOID)
Definition: cmalloc.c:111
VALUE_SEARCH_RETURN_TYPE NTAPI CmpCompareNewValueDataAgainstKCBCache(IN PCM_KEY_CONTROL_BLOCK Kcb, IN PUNICODE_STRING ValueName, IN ULONG Type, IN PVOID Data, IN ULONG DataSize)
Definition: cmvalche.c:700
struct _CM_KEY_SECURITY_CACHE CM_KEY_SECURITY_CACHE
BOOLEAN NTAPI CmpGetNextName(IN OUT PUNICODE_STRING RemainingName, OUT PUNICODE_STRING NextName, OUT PBOOLEAN LastName)
Definition: cmparse.c:21
struct _CM_CACHED_VALUE_INDEX * PCM_CACHED_VALUE_INDEX
BOOLEAN InitIsWinPEMode
Definition: init.c:72
IN CINT OUT PVOID IN ULONG OUT PULONG ReturnLength
Definition: dumpinfo.c:43
ULONG ERESOURCE
Definition: env_spec_w32.h:594
_Must_inspect_result_ _In_opt_ PFLT_INSTANCE _Out_ PHANDLE _In_ ACCESS_MASK _In_ POBJECT_ATTRIBUTES _Out_ PIO_STATUS_BLOCK _In_opt_ PLARGE_INTEGER _In_ ULONG FileAttributes
Definition: fltkernel.h:1236
_Inout_opt_ PUNICODE_STRING Extension
Definition: fltkernel.h:1092
_Must_inspect_result_ _In_opt_ PFLT_INSTANCE _Out_ PHANDLE FileHandle
Definition: fltkernel.h:1231
_Must_inspect_result_ _In_opt_ PFLT_FILTER Filter
Definition: fltkernel.h:1801
_Must_inspect_result_ _In_ PFILE_OBJECT _In_ SECURITY_INFORMATION SecurityInformation
Definition: fltkernel.h:1340
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
Definition: fsrtlfuncs.h:223
_Must_inspect_result_ _Out_ PLARGE_INTEGER FileSize
Definition: fsrtlfuncs.h:108
_Must_inspect_result_ _In_ PFSRTL_PER_STREAM_CONTEXT Ptr
Definition: fsrtlfuncs.h:898
Status
Definition: gdiplustypes.h:25
ULONG * PHCELL_INDEX
Definition: hivedata.h:105
HSTORAGE_TYPE
Definition: hivedata.h:126
ULONG HCELL_INDEX
Definition: hivedata.h:105
enum _INTERFACE_TYPE INTERFACE_TYPE
@ ProcessHandleCount
Definition: winternl.h:876
_In_ PKSNODE_CREATE _In_ ACCESS_MASK _Out_ PHANDLE NodeHandle
Definition: ks.h:4548
USHORT LANGID
Definition: mui.h:9
* PNTSTATUS
Definition: strlen.c:14
ObjectType
Definition: metafile.c:81
static IDispatch External
Definition: htmldoc.c:521
DWORD * PSECURITY_INFORMATION
Definition: ms-dtyp.idl:311
#define _Inout_
Definition: ms_sal.h:378
#define _Out_
Definition: ms_sal.h:345
#define _In_
Definition: ms_sal.h:308
#define _In_opt_
Definition: ms_sal.h:309
_In_ NDIS_STATUS _In_ ULONG _In_ USHORT _In_opt_ PVOID _In_ ULONG DataSize
Definition: ndis.h:4755
_In_ ULONG _In_ KEY_VALUE_INFORMATION_CLASS KeyValueInformationClass
Definition: cmfuncs.h:94
_In_ ACCESS_MASK _In_opt_ POBJECT_ATTRIBUTES _In_ EVENT_TYPE EventType
Definition: exfuncs.h:167
ULONG ACCESS_MASK
Definition: nt_native.h:40
enum _KEY_VALUE_INFORMATION_CLASS KEY_VALUE_INFORMATION_CLASS
Definition: reg.c:135
enum _KEY_INFORMATION_CLASS KEY_INFORMATION_CLASS
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102
_In_ ULONGLONG _In_ ULONGLONG _In_ BOOLEAN Enable
Definition: ntddpcm.h:142
enum _EVENT_TYPE EVENT_TYPE
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:455
unsigned short USHORT
Definition: pedump.c:61
#define New(t)
Definition: rtf.h:1086
@ MaximumType
Definition: arc.h:145
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68
base of all file and directory entries
Definition: entries.h:83
struct _CM_KEY_CONTROL_BLOCK * RealKcb
Definition: cm.h:218
ULONG Count
Definition: cm.h:214
ULONG ValueList
Definition: cm.h:217
Definition: cmlib.h:316
USHORT Count
Definition: cm.h:455
PCHAR Identifier
Definition: cm.h:453
USHORT InterfaceType
Definition: cm.h:454
PVOID AllocPage
Definition: cm.h:353
ULONG Reserved
Definition: cm.h:352
ULONG FreeCount
Definition: cm.h:351
CELL_DATA CellData
Definition: cm.h:391
HCELL_INDEX CellIndex
Definition: cm.h:388
union _CM_CACHED_VALUE_INDEX::@1768 Data
ULONG HashKey
Definition: cm.h:403
CM_KEY_VALUE KeyValue
Definition: cm.h:404
USHORT ValueKeySize
Definition: cm.h:402
USHORT DataCacheType
Definition: cm.h:401
HCELL_INDEX OldCell
Definition: cm.h:342
HCELL_INDEX NewCell
Definition: cm.h:343
Definition: cm.h:369
LIST_ENTRY DelayedLRUList
Definition: cm.h:370
PCM_KEY_CONTROL_BLOCK KeyControlBlock
Definition: cm.h:371
PCM_KEY_CONTROL_BLOCK Kcb
Definition: cm.h:362
LIST_ENTRY ListEntry
Definition: cm.h:361
PCM_KEY_CONTROL_BLOCK Kcb
Definition: cm.h:380
LIST_ENTRY ListEntry
Definition: cm.h:379
UNICODE_STRING NameOfKey
Definition: cm.h:428
ULONG ConvKey
Definition: cm.h:429
ULONG HashKey[ANYSIZE_ARRAY]
Definition: cm.h:228
ULONG Type
Definition: cm.h:236
HANDLE ProcessID
Definition: cm.h:239
BOOLEAN KcbLocked
Definition: cm.h:243
struct _CM_NOTIFY_BLOCK * NotifyBlock
Definition: cm.h:238
struct _CM_KEY_CONTROL_BLOCK * KeyControlBlock
Definition: cm.h:237
LIST_ENTRY KeyBodyList
Definition: cm.h:240
LIST_ENTRY KeyBodyListHead
Definition: cm.h:304
ULONG PrivateAlloc
Definition: cm.h:276
ULONG TotalLevels
Definition: cm.h:279
USHORT KcbMaxValueNameLen
Definition: cm.h:311
ULONG DelayedCloseIndex
Definition: cm.h:278
ULONG KcbMaxValueDataLen
Definition: cm.h:312
PCM_NAME_CONTROL_BLOCK NameBlock
Definition: cm.h:293
CM_KEY_HASH KeyHash
Definition: cm.h:283
PCM_INDEX_HINT_BLOCK IndexHint
Definition: cm.h:298
ULONG RefCount
Definition: cm.h:272
PHHIVE KeyHive
Definition: cm.h:288
struct _CM_KEY_CONTROL_BLOCK * ParentKcb
Definition: cm.h:292
ULONG KcbDebug
Definition: cm.h:317
ULONG ExtFlags
Definition: cm.h:275
HCELL_INDEX KeyCell
Definition: cm.h:289
LARGE_INTEGER KcbLastWriteTime
Definition: cm.h:309
ULONG Signature
Definition: cm.h:271
PCM_KEY_BODY KeyBodyArray[4]
Definition: cm.h:307
ULONG KcbVirtControlFlags
Definition: cm.h:316
LIST_ENTRY FreeListEntry
Definition: cm.h:305
USHORT KcbMaxNameLen
Definition: cm.h:310
ULONG InDelayClose
Definition: cm.h:320
ULONG KcbUserFlags
Definition: cm.h:315
PCM_KEY_HASH NextHash
Definition: cm.h:287
ULONG SubKeyCount
Definition: cm.h:300
PVOID DelayCloseEntry
Definition: cm.h:308
CACHED_CHILD_LIST ValueCache
Definition: cm.h:295
PCM_KEY_SECURITY_CACHE CachedSecurity
Definition: cm.h:294
Definition: cm.h:159
PCM_KEY_HASH Entry
Definition: cm.h:162
EX_PUSH_LOCK Lock
Definition: cm.h:160
PKTHREAD Owner
Definition: cm.h:161
ULONG ConvKey
Definition: cm.h:149
PHHIVE KeyHive
Definition: cm.h:151
HCELL_INDEX KeyCell
Definition: cm.h:152
struct _CM_KEY_HASH * NextHash
Definition: cm.h:150
Definition: cm.h:204
PCM_KEY_SECURITY_CACHE CachedSecurity
Definition: cm.h:206
HCELL_INDEX Cell
Definition: cm.h:205
ULONG DescriptorLength
Definition: cm.h:196
HCELL_INDEX Cell
Definition: cm.h:193
SECURITY_DESCRIPTOR_RELATIVE Descriptor
Definition: cm.h:197
LIST_ENTRY List
Definition: cm.h:195
PCM_KEY_HASH NextHash
Definition: cm.h:259
CM_NAME_HASH NameHash
Definition: cm.h:255
BOOLEAN Compressed
Definition: cm.h:251
USHORT NameLength
Definition: cm.h:260
USHORT RefCount
Definition: cm.h:252
Definition: cm.h:183
EX_PUSH_LOCK Lock
Definition: cm.h:184
PCM_NAME_HASH Entry
Definition: cm.h:185
struct _CM_NAME_HASH * NextHash
Definition: cm.h:174
USHORT NameLength
Definition: cm.h:175
ULONG ConvKey
Definition: cm.h:173
ULONG WatchTree
Definition: cm.h:333
PCM_KEY_BODY KeyBody
Definition: cm.h:331
LIST_ENTRY HiveList
Definition: cm.h:328
PCM_KEY_CONTROL_BLOCK KeyControlBlock
Definition: cm.h:330
ULONG NotifyPending
Definition: cm.h:334
LIST_ENTRY PostList
Definition: cm.h:329
ULONG Filter
Definition: cm.h:332
HANDLE PredefinedHandle
Definition: cm.h:442
CM_KEY_REFERENCE ChildHive
Definition: cm.h:441
ULONG TitleIndex
Definition: cm.h:437
ULONG Disposition
Definition: cm.h:440
BOOLEAN CreateLink
Definition: cm.h:443
PCMHIVE OriginatingPoint
Definition: cm.h:445
UNICODE_STRING Class
Definition: cm.h:438
BOOLEAN CreateOperation
Definition: cm.h:444
ULONG CreateOptions
Definition: cm.h:439
Definition: registry.c:569
BOOLEAN ThreadStarted
Definition: cm.h:419
PCMHIVE CmHive
Definition: cm.h:414
PWSTR Name
Definition: cm.h:412
PWSTR BaseName
Definition: cm.h:413
PCMHIVE CmHive2
Definition: cm.h:417
BOOLEAN Allocate
Definition: cm.h:420
BOOLEAN ThreadFinished
Definition: cm.h:418
ULONG HHiveFlags
Definition: cm.h:415
ULONG CmHiveFlags
Definition: cm.h:416
KEY_FULL_INFORMATION KeyFullInformation
Definition: cm.h:489
KEY_NODE_INFORMATION KeyNodeInformation
Definition: cm.h:490
KEY_BASIC_INFORMATION KeyBasicInformation
Definition: cm.h:488
KEY_VALUE_PARTIAL_INFORMATION_ALIGN64 KeyValuePartialInformationAlign64
Definition: cm.h:480
KEY_VALUE_PARTIAL_INFORMATION KeyValuePartialInformation
Definition: cm.h:479
KEY_VALUE_BASIC_INFORMATION KeyValueBasicInformation
Definition: cm.h:477
KEY_VALUE_FULL_INFORMATION KeyValueFullInformation
Definition: cm.h:478
Definition: typedefs.h:120
uint16_t * PWSTR
Definition: typedefs.h:56
uint32_t * PULONG
Definition: typedefs.h:59
const uint16_t * PCWSTR
Definition: typedefs.h:57
unsigned char * PBOOLEAN
Definition: typedefs.h:53
#define ANYSIZE_ARRAY
Definition: typedefs.h:46
INT POOL_TYPE
Definition: typedefs.h:78
#define NTAPI
Definition: typedefs.h:36
ULONG_PTR SIZE_T
Definition: typedefs.h:80
uint16_t * PUSHORT
Definition: typedefs.h:56
uint32_t ULONG_PTR
Definition: typedefs.h:65
#define IN
Definition: typedefs.h:39
uint16_t * PWCHAR
Definition: typedefs.h:56
uint32_t ULONG
Definition: typedefs.h:59
#define OUT
Definition: typedefs.h:40
char * PCHAR
Definition: typedefs.h:51
Definition: dlist.c:348
_Must_inspect_result_ _In_ WDFCOLLECTION _In_ WDFOBJECT Object
_In_ WDFCOLLECTION _In_ ULONG Index
_Must_inspect_result_ _In_ WDFDMAENABLER _In_ _In_opt_ PWDF_OBJECT_ATTRIBUTES Attributes
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG _Out_ PULONG ResultLength
Definition: wdfdevice.h:3776
_Must_inspect_result_ _In_ WDFDEVICE _In_ BOOLEAN _In_opt_ PVOID Tag
Definition: wdfdevice.h:4065
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ _Strict_type_match_ POOL_TYPE PoolType
Definition: wdfdevice.h:3815
_In_ WDFDEVICE _In_ WDF_SPECIAL_FILE_TYPE FileType
Definition: wdfdevice.h:2741
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Definition: wdfdevice.h:4533
_Must_inspect_result_ _In_ WDFDEVICE _In_ PCUNICODE_STRING KeyName
Definition: wdfdevice.h:2699
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG BufferLength
Definition: wdfdevice.h:3771
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID InterfaceType
Definition: wdffdo.h:463
_Must_inspect_result_ _In_opt_ WDFKEY _In_ PCUNICODE_STRING _In_ ACCESS_MASK _In_ ULONG CreateOptions
Definition: wdfregistry.h:118
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING ValueName
Definition: wdfregistry.h:243
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
Definition: wdfregistry.h:413
_Must_inspect_result_ _In_ WDFCMRESLIST List
Definition: wdfresource.h:550
_In_ USHORT _In_ ULONG _In_ PSOCKADDR _In_ PSOCKADDR _Reserved_ ULONG _In_opt_ PVOID _In_opt_ const WSK_CLIENT_CONNECTION_DISPATCH _In_opt_ PEPROCESS _In_opt_ PETHREAD _In_opt_ PSECURITY_DESCRIPTOR SecurityDescriptor
Definition: wsk.h:191
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
enum _REG_NOTIFY_CLASS REG_NOTIFY_CLASS
_IRQL_requires_same_ _In_opt_ PVOID Argument1
Definition: cmtypes.h:696
_In_opt_ PALLOCATE_FUNCTION Allocate
Definition: exfuncs.h:814
_In_opt_ PUNICODE_STRING _In_ PDRIVER_OBJECT _In_ PDEVICE_OBJECT _In_ INTERFACE_TYPE _In_ ULONG BusNumber
Definition: halfuncs.h:160
_Out_ PHANDLE EventHandle
Definition: iofuncs.h:857
CCHAR KPROCESSOR_MODE
Definition: ketypes.h:7
_In_ PEPROCESS _In_ KPROCESSOR_MODE AccessMode
Definition: mmfuncs.h:396
_In_opt_ PVOID _In_opt_ PUNICODE_STRING _In_ PSECURITY_DESCRIPTOR _In_ PACCESS_STATE AccessState
Definition: sefuncs.h:417
_In_ PSECURITY_SUBJECT_CONTEXT _In_ BOOLEAN _In_ ACCESS_MASK _In_ ACCESS_MASK _Outptr_opt_ PPRIVILEGE_SET _In_ PGENERIC_MAPPING _In_ KPROCESSOR_MODE _Out_ PACCESS_MASK GrantedAccess
Definition: sefuncs.h:20
SECURITY_OPERATION_CODE
Definition: setypes.h:170
__wchar_t WCHAR
Definition: xmlstorage.h:180
_In_ ULONG _In_ KEY_INFORMATION_CLASS KeyInformationClass
Definition: zwfuncs.h:167