ReactOS  0.4.15-dev-2361-g32428a3
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 #define _CM_
9 #include "cmlib.h"
10 #include <cmreslist.h>
11 
12 //
13 // Define this if you want debugging support
14 //
15 #define _CM_DEBUG_ 0x00
16 
17 //
18 // These define the Debug Masks Supported
19 //
20 #define CM_HANDLE_DEBUG 0x01
21 #define CM_NAMESPACE_DEBUG 0x02
22 #define CM_SECURITY_DEBUG 0x04
23 #define CM_REFERENCE_DEBUG 0x08
24 #define CM_CALLBACK_DEBUG 0x10
25 
26 //
27 // Debug/Tracing support
28 //
29 #if _CM_DEBUG_
30 #ifdef NEW_DEBUG_SYSTEM_IMPLEMENTED // enable when Debug Filters are implemented
31 #define CMTRACE DbgPrintEx
32 #else
33 #define CMTRACE(x, ...) \
34  if (x & CmpTraceLevel) DbgPrint(__VA_ARGS__)
35 #endif
36 #else
37 #define CMTRACE(x, fmt, ...) DPRINT(fmt, ##__VA_ARGS__)
38 #endif
39 
40 //
41 // Hack since bigkeys are not yet supported
42 //
43 #define ASSERT_VALUE_BIG(h, s) \
44  ASSERTMSG("Big keys not supported!\n", !CmpIsKeyValueBig(h, s));
45 
46 //
47 // CM_KEY_CONTROL_BLOCK Signatures
48 //
49 #define CM_KCB_SIGNATURE 'bKmC'
50 #define CM_KCB_INVALID_SIGNATURE '4FmC'
51 
52 //
53 // CM_KEY_CONTROL_BLOCK ExtFlags
54 //
55 #define CM_KCB_NO_SUBKEY 0x01
56 #define CM_KCB_SUBKEY_ONE 0x02
57 #define CM_KCB_SUBKEY_HINT 0x04
58 #define CM_KCB_SYM_LINK_FOUND 0x08
59 #define CM_KCB_KEY_NON_EXIST 0x10
60 #define CM_KCB_NO_DELAY_CLOSE 0x20
61 #define CM_KCB_INVALID_CACHED_INFO 0x40
62 #define CM_KCB_READ_ONLY_KEY 0x80
63 
64 //
65 // CM_KEY_BODY Types
66 //
67 #define CM_KEY_BODY_TYPE 0x6B793032
68 
69 //
70 // CM_KEY_VALUE Types
71 //
72 #define CM_KEY_VALUE_SMALL 0x4
73 #define CM_KEY_VALUE_BIG 0x3FD8
74 #define CM_KEY_VALUE_SPECIAL_SIZE 0x80000000
75 
76 //
77 // Number of various lists and hashes
78 //
79 #define CMP_SECURITY_HASH_LISTS 64
80 #define CMP_MAX_CALLBACKS 100
81 
82 //
83 // Hashing Constants
84 //
85 #define CMP_HASH_IRRATIONAL 314159269
86 #define CMP_HASH_PRIME 1000000007
87 
88 //
89 // CmpCreateKeyControlBlock Flags
90 //
91 #define CMP_CREATE_FAKE_KCB 0x1
92 #define CMP_LOCK_HASHES_FOR_KCB 0x2
93 
94 //
95 // CmpDoCreate and CmpDoOpen flags
96 //
97 #define CMP_CREATE_KCB_KCB_LOCKED 0x2
98 #define CMP_OPEN_KCB_NO_CREATE 0x4
99 
100 //
101 // EnlistKeyBodyWithKCB Flags
102 //
103 #define CMP_ENLIST_KCB_LOCKED_SHARED 0x1
104 #define CMP_ENLIST_KCB_LOCKED_EXCLUSIVE 0x2
105 
106 //
107 // Unload Flags
108 //
109 #define CMP_UNLOCK_KCB_LOCKED 0x1
110 #define CMP_UNLOCK_REGISTRY_LOCKED 0x2
111 
112 //
113 // Maximum size of Value Cache
114 //
115 #define MAXIMUM_CACHED_DATA 2 * PAGE_SIZE
116 
117 //
118 // Hives to load on startup
119 //
120 #define CM_NUMBER_OF_MACHINE_HIVES 6
121 
122 //
123 // Number of items that can fit inside an Allocation Page
124 //
125 #define CM_KCBS_PER_PAGE \
126  ((PAGE_SIZE - FIELD_OFFSET(CM_ALLOC_PAGE, AllocPage)) / sizeof(CM_KEY_CONTROL_BLOCK))
127 #define CM_DELAYS_PER_PAGE \
128  ((PAGE_SIZE - FIELD_OFFSET(CM_ALLOC_PAGE, AllocPage)) / sizeof(CM_DELAY_ALLOC))
129 
130 //
131 // Value Search Results
132 //
134 {
139 
140 //
141 // Key Hash
142 //
143 typedef struct _CM_KEY_HASH
144 {
150 
151 //
152 // Key Hash Table Entry
153 //
155 {
160 
161 //
162 // Name Hash
163 //
164 typedef struct _CM_NAME_HASH
165 {
171 
172 //
173 // Name Hash Table Entry
174 //
176 {
180 
181 //
182 // Key Security Cache
183 //
185 {
192 
193 //
194 // Key Security Cache Entry
195 //
197 {
201 
202 //
203 // Cached Child List
204 //
205 typedef struct _CACHED_CHILD_LIST
206 {
208  union
209  {
212  };
214 
215 //
216 // Index Hint Block
217 //
218 typedef struct _CM_INDEX_HINT_BLOCK
219 {
223 
224 //
225 // Key Body
226 //
227 typedef struct _CM_KEY_BODY
228 {
235 
236 //
237 // Name Control Block (NCB)
238 //
240 {
243  union
244  {
246  struct
247  {
252  };
253  };
255 
256 //
257 // Key Control Block (KCB)
258 //
259 typedef struct _CM_KEY_CONTROL_BLOCK
260 {
263  struct
264  {
270  };
271  union
272  {
274  struct
275  {
280  };
281  };
286  union
287  {
291  };
292  union
293  {
296  };
303  struct
304  {
308  ULONG Flags : 16;
309  };
312 
313 //
314 // Notify Block
315 //
316 typedef struct _CM_NOTIFY_BLOCK
317 {
326 
327 //
328 // Re-map Block
329 //
330 typedef struct _CM_CELL_REMAP_BLOCK
331 {
335 
336 //
337 // Allocation Page
338 //
339 typedef struct _CM_ALLOC_PAGE
340 {
345 
346 //
347 // Allocation Page Entry
348 //
349 typedef struct _CM_DELAY_ALLOC
350 {
354 
355 //
356 // Delayed Close Entry
357 //
359 {
363 
364 //
365 // Delayed KCB Dereference Entry
366 //
368 {
372 
373 //
374 // Use Count Log and Entry
375 //
377 {
381 
382 typedef struct _CM_USE_COUNT_LOG
383 {
388 
389 //
390 // Configuration Manager Hive Structure
391 //
392 typedef struct _CMHIVE
393 {
436 } CMHIVE, *PCMHIVE;
437 
438 //
439 // Cached Value Index
440 //
442 {
444  union
445  {
448  } Data;
450 
451 //
452 // Cached Value
453 //
454 typedef struct _CM_CACHED_VALUE
455 {
461 
462 //
463 // Hive List Entry
464 //
465 typedef struct _HIVE_LIST_ENTRY
466 {
477 
478 //
479 // Parse context for Key Object
480 //
481 typedef struct _CM_PARSE_CONTEXT
482 {
493 
494 //
495 // MultiFunction Adapter Recognizer Structure
496 //
497 typedef struct _CMP_MF_TYPE
498 {
503 
504 //
505 // System Control Vector
506 //
508 {
515 
516 //
517 // Structure for CmpQueryValueDataFromCache
518 //
520 {
521  union
522  {
527  };
529 
530 typedef struct _KEY_INFORMATION
531 {
532  union
533  {
537  };
539 
541 //
542 // BUGBUG Old Hive Stuff for Temporary Support
543 //
546 
547 //
548 // Mapped View Hive Functions
549 //
550 VOID
551 NTAPI
553  IN PCMHIVE Hive
554 );
555 
556 VOID
557 NTAPI
559  IN PCMHIVE Hive
560 );
561 
562 //
563 // Security Cache Functions
564 //
565 VOID
566 NTAPI
568  IN PCMHIVE Hive
569 );
570 
571 VOID
572 NTAPI
574  IN PCMHIVE Hive
575 );
576 
577 //
578 // Value Cache Functions
579 //
581 NTAPI
585  OUT PCM_CACHED_VALUE **CachedValue,
586  OUT ULONG *Index,
588  OUT BOOLEAN *ValueIsCached,
589  OUT PHCELL_INDEX CellToRelease
590 );
591 
593 NTAPI
596  IN PCM_CACHED_VALUE *CachedValue,
597  IN PCM_KEY_VALUE ValueKey,
598  IN BOOLEAN ValueIsCached,
600  IN PVOID KeyValueInformation,
601  IN ULONG Length,
604 );
605 
607 NTAPI
610  OUT PCELL_DATA *CellData,
611  OUT BOOLEAN *IndexIsCached,
612  OUT PHCELL_INDEX ValueListToRelease
613 );
614 
616 NTAPI
619  IN PCELL_DATA CellData,
620  IN ULONG Index,
621  OUT PCM_CACHED_VALUE **CachedValue,
623  IN BOOLEAN IndexIsCached,
624  OUT BOOLEAN *ValueIsCached,
625  OUT PHCELL_INDEX CellToRelease
626 );
627 
629 NTAPI
633  IN ULONG Type,
634  IN PVOID Data,
636 );
637 
638 //
639 // Registry Validation Functions
640 //
641 ULONG
642 NTAPI
644  IN PCMHIVE Hive,
645  IN ULONG Flags
646 );
647 
648 //
649 // Hive List Routines
650 //
651 BOOLEAN
652 NTAPI
654  IN PCMHIVE Hive,
655  OUT PUNICODE_STRING HiveName
656 );
657 
658 NTSTATUS
659 NTAPI
661  IN PCMHIVE Hive
662 );
663 
664 VOID
665 NTAPI
667  IN PCMHIVE Hive
668 );
669 
670 //
671 // Quota Routines
672 //
673 VOID
674 NTAPI
676  VOID
677 );
678 
679 //
680 // Notification Routines
681 //
682 VOID
683 NTAPI
686  IN PHHIVE Hive,
687  IN HCELL_INDEX Cell,
688  IN ULONG Filter
689 );
690 
691 VOID
692 NTAPI
694  IN PCM_KEY_BODY KeyBody,
695  IN BOOLEAN LockHeld
696 );
697 
698 VOID
699 NTAPI
701  VOID
702 );
703 
704 //
705 // KCB Cache/Delay Routines
706 //
707 VOID
708 NTAPI
710  VOID
711 );
712 
713 VOID
714 NTAPI
716  VOID
717 );
718 
719 VOID
720 NTAPI
722  VOID
723 );
724 
725 VOID
726 NTAPI
728  VOID
729 );
730 
731 //
732 // Key Object Routines
733 //
734 VOID
735 NTAPI
738  IN PVOID Object,
741  IN ULONG SystemHandleCount
742 );
743 
744 VOID
745 NTAPI
747  IN PVOID Object
748 );
749 
750 NTSTATUS
751 NTAPI
753  IN PVOID ParseObject,
758  IN OUT PUNICODE_STRING CompleteName,
762  OUT PVOID *Object
763 );
764 
765 NTSTATUS
766 NTAPI
768  IN PVOID Object,
769  IN SECURITY_OPERATION_CODE OperationType,
772  IN OUT PULONG CapturedLength,
773  IN OUT PSECURITY_DESCRIPTOR *ObjectSecurityDescriptor,
776 );
777 
778 NTSTATUS
779 NTAPI
781  IN PVOID Object,
782  IN BOOLEAN HasObjectName,
783  OUT POBJECT_NAME_INFORMATION ObjectNameInfo,
784  IN ULONG Length,
787 );
788 
789 //
790 // Hive Routines
791 //
792 NTSTATUS
793 NTAPI
795  OUT PCMHIVE *CmHive,
796  IN ULONG OperationType,
797  IN ULONG HiveFlags,
798  IN ULONG FileType,
799  IN PVOID HiveData OPTIONAL,
800  IN HANDLE Primary,
801  IN HANDLE Log,
804  IN ULONG CheckFlags
805 );
806 
807 NTSTATUS
808 NTAPI
811 );
812 
814 NTAPI
816  VOID
817 );
818 
819 NTSTATUS
820 NTAPI
822  IN PUNICODE_STRING LinkName,
824  IN PCMHIVE CmHive,
827 );
828 
829 NTSTATUS
830 NTAPI
832  IN PCUNICODE_STRING BaseName,
834  OUT PHANDLE Primary,
835  OUT PHANDLE Log,
836  OUT PULONG PrimaryDisposition,
837  OUT PULONG LogDisposition,
838  IN BOOLEAN CreateAllowed,
839  IN BOOLEAN MarkAsSystemHive,
840  IN BOOLEAN NoBuffering,
842 );
843 
844 VOID
845 NTAPI
847  IN PCMHIVE Hive
848 );
849 
850 NTSTATUS
851 NTAPI
853  IN PCUNICODE_STRING HiveName,
854  IN ULONG HiveFlags,
855  OUT PCMHIVE *Hive,
856  IN OUT PBOOLEAN New,
857  IN ULONG CheckFlags
858 );
859 
860 VOID
861 NTAPI
863  VOID
864 );
865 
866 //
867 // Registry Utility Functions
868 //
869 BOOLEAN
870 NTAPI
872  VOID
873 );
874 
875 BOOLEAN
876 NTAPI
878  VOID
879 );
880 
881 VOID
882 NTAPI
884  VOID
885 );
886 
887 VOID
888 NTAPI
890  VOID
891 );
892 
893 VOID
894 NTAPI
896  VOID
897 );
898 
899 VOID
900 NTAPI
902  IN PCMHIVE Hive
903 );
904 
905 VOID
906 NTAPI
908  IN PCMHIVE Hive
909 );
910 
911 BOOLEAN
912 NTAPI
914  IN PCMHIVE Hive
915 );
916 
917 BOOLEAN
918 NTAPI
920  IN PCMHIVE Hive
921 );
922 
923 VOID
924 NTAPI
926  IN PCMHIVE Hive
927 );
928 
929 //
930 // Delay Functions
931 //
932 PVOID
933 NTAPI
935  VOID
936 );
937 
938 VOID
939 NTAPI
941  PVOID Entry
942 );
943 
944 VOID
945 NTAPI
948 );
949 
950 VOID
951 NTAPI
954  IN BOOLEAN LockHeldExclusively
955 );
956 
957 VOID
958 NTAPI
960  VOID
961 );
962 
963 VOID
964 NTAPI
966 
967 VOID
968 NTAPI
970  VOID
971 );
972 
973 //
974 // KCB Functions
975 //
977 NTAPI
979  IN PHHIVE Hive,
983  IN ULONG Flags,
985 );
986 
988 NTAPI
990  VOID
991 );
992 
993 VOID
994 NTAPI
997 );
998 
999 VOID
1000 NTAPI
1003 );
1004 
1005 VOID
1006 NTAPI
1009 );
1010 
1011 VOID
1012 NTAPI
1015  IN BOOLEAN LockHeldExclusively
1016 );
1017 
1018 VOID
1019 NTAPI
1022 );
1023 
1025 NTAPI
1028 );
1029 
1030 BOOLEAN
1031 NTAPI
1034 );
1035 
1036 VOID
1037 NTAPI
1040  IN BOOLEAN LockHeldExclusively
1041 );
1042 
1043 VOID
1044 NTAPI
1047 );
1048 
1049 VOID
1050 NTAPI
1052  IN PCM_KEY_BODY KeyObject,
1053  IN ULONG Flags
1054 );
1055 
1056 VOID
1057 NTAPI
1059  IN PCM_KEY_BODY KeyBody,
1060  IN BOOLEAN LockHeld
1061 );
1062 
1063 VOID
1064 NTAPI
1066  IN ULONG ConvKey1,
1067  IN ULONG ConvKey2
1068 );
1069 
1070 VOID
1071 NTAPI
1073  IN ULONG ConvKey1,
1074  IN ULONG ConvKey2
1075 );
1076 
1077 VOID
1078 NTAPI
1081  IN BOOLEAN LockHeld
1082 );
1083 
1084 //
1085 // Parse Routines
1086 //
1087 BOOLEAN
1088 NTAPI
1091  OUT PUNICODE_STRING NextName,
1092  OUT PBOOLEAN LastName
1093 );
1094 
1095 //
1096 // Command Routines (Flush, Open, Close, Init);
1097 //
1098 BOOLEAN
1099 NTAPI
1101  IN BOOLEAN ForceFlush
1102 );
1103 
1104 VOID
1105 NTAPI
1107  VOID
1108 );
1109 
1110 VOID
1111 NTAPI
1112 CmpCmdInit(
1113  IN BOOLEAN SetupBoot
1114 );
1115 
1116 NTSTATUS
1117 NTAPI
1120  IN PSECURITY_CLIENT_CONTEXT ImpersonationContext,
1122  OUT PCMHIVE *NewHive,
1123  IN ULONG CheckFlags
1124 );
1125 
1126 VOID
1127 NTAPI
1128 CmpLazyFlush(
1129  VOID
1130 );
1131 
1132 //
1133 // Open/Create Routines
1134 //
1135 NTSTATUS
1136 NTAPI
1137 CmpDoCreate(
1138  IN PHHIVE Hive,
1139  IN HCELL_INDEX Cell,
1144  IN PCM_KEY_CONTROL_BLOCK ParentKcb,
1145  OUT PVOID *Object
1146 );
1147 
1148 NTSTATUS
1149 NTAPI
1151  IN PHHIVE Hive,
1152  IN HCELL_INDEX Cell,
1158  IN PCM_KEY_CONTROL_BLOCK ParentKcb,
1159  OUT PVOID *Object
1160 );
1161 
1162 //
1163 // Boot Routines
1164 //
1166 NTAPI
1169  IN HCELL_INDEX RootCell,
1170  IN PUNICODE_STRING SelectKeyName,
1171  OUT PBOOLEAN AutoSelect
1172 );
1173 
1174 VOID
1175 NTAPI
1177  IN PVOID SystemHiveData,
1178  IN PCM_SYSTEM_CONTROL_VECTOR ControlVector
1179 );
1180 
1181 NTSTATUS
1182 NTAPI
1184  IN USHORT ControlSet
1185 );
1186 
1187 //
1188 // Hardware Configuration Routines
1189 //
1190 NTSTATUS
1191 NTAPI
1193  IN PCONFIGURATION_COMPONENT_DATA CurrentEntry,
1195  OUT PHANDLE NewHandle,
1197  IN ULONG BusNumber,
1198  IN PUSHORT DeviceIndexTable
1199 );
1200 
1201 NTSTATUS
1202 NTAPI
1204  IN PLOADER_PARAMETER_BLOCK LoaderBlock
1205 );
1206 
1207 NTSTATUS
1208 NTAPI
1210  IN PLOADER_PARAMETER_BLOCK LoaderBlock
1211 );
1212 
1213 //
1214 // Wrapper Routines
1215 //
1216 NTSTATUS
1217 NTAPI
1221  OUT PKEVENT *Event
1222 );
1223 
1224 PVOID
1225 NTAPI
1226 CmpAllocate(
1227  IN SIZE_T Size,
1228  IN BOOLEAN Paged,
1229  IN ULONG Tag
1230 );
1231 
1232 VOID
1233 NTAPI
1234 CmpFree(
1235  IN PVOID Ptr,
1236  IN ULONG Quota
1237 );
1238 
1239 BOOLEAN
1240 NTAPI
1241 CmpFileRead(
1242  IN PHHIVE RegistryHive,
1243  IN ULONG FileType,
1245  OUT PVOID Buffer,
1247 );
1248 
1249 BOOLEAN
1250 NTAPI
1251 CmpFileWrite(
1252  IN PHHIVE RegistryHive,
1253  IN ULONG FileType,
1255  IN PVOID Buffer,
1257 );
1258 
1259 BOOLEAN
1260 NTAPI
1262  IN PHHIVE RegistryHive,
1263  IN ULONG FileType,
1264  IN ULONG FileSize,
1265  IN ULONG OldFileSize
1266 );
1267 
1268 BOOLEAN
1269 NTAPI
1270 CmpFileFlush(
1271  IN PHHIVE RegistryHive,
1272  IN ULONG FileType,
1274  IN ULONG Length
1275 );
1276 
1277 //
1278 // Configuration Manager side of Registry System Calls
1279 //
1280 NTSTATUS
1281 NTAPI
1284  IN ULONG Index,
1286  IN PVOID KeyValueInformation,
1287  IN ULONG Length,
1289 
1290 NTSTATUS
1291 NTAPI
1295  IN ULONG Type,
1296  IN PVOID Data,
1297  IN ULONG DataSize);
1298 
1299 NTSTATUS
1300 NTAPI
1303  IN PVOID KeyInformation,
1304  IN ULONG Length,
1306 );
1307 
1308 NTSTATUS
1309 NTAPI
1311  IN ULONG Index,
1313  IN PVOID KeyInformation,
1314  IN ULONG Length,
1316 );
1317 
1318 NTSTATUS
1319 NTAPI
1320 CmDeleteKey(
1321  IN PCM_KEY_BODY KeyBody
1322 );
1323 
1324 NTSTATUS
1325 NTAPI
1326 CmFlushKey(
1328  IN BOOLEAN EclusiveLock
1329 );
1330 
1331 NTSTATUS
1332 NTAPI
1336 );
1337 
1338 NTSTATUS
1339 NTAPI
1344  IN PVOID KeyValueInformation,
1345  IN ULONG Length,
1347 );
1348 
1349 NTSTATUS
1350 NTAPI
1351 CmLoadKey(
1352  IN POBJECT_ATTRIBUTES TargetKey,
1353  IN POBJECT_ATTRIBUTES SourceFile,
1354  IN ULONG Flags,
1355  IN PCM_KEY_BODY KeyBody
1356 );
1357 
1358 NTSTATUS
1359 NTAPI
1360 CmUnloadKey(
1362  IN ULONG Flags
1363 );
1364 
1365 ULONG
1366 NTAPI
1368  IN PCM_KEY_CONTROL_BLOCK RootKcb,
1369  IN BOOLEAN RemoveEmptyCacheEntries,
1370  IN BOOLEAN DereferenceOpenedEntries
1371 );
1372 
1374 NTAPI
1375 CmpCopyCell(
1376  IN PHHIVE SourceHive,
1377  IN HCELL_INDEX SourceCell,
1378  IN PHHIVE DestinationHive,
1379  IN HSTORAGE_TYPE StorageType
1380 );
1381 
1382 NTSTATUS
1383 NTAPI
1385  IN PHHIVE SourceHive,
1386  IN HCELL_INDEX SrcKeyCell,
1387  IN PHHIVE DestinationHive,
1388  IN HSTORAGE_TYPE StorageType,
1389  OUT PHCELL_INDEX DestKeyCell OPTIONAL
1390 );
1391 
1392 NTSTATUS
1393 NTAPI
1394 CmSaveKey(
1397  IN ULONG Flags
1398 );
1399 
1400 NTSTATUS
1401 NTAPI
1403  IN PCM_KEY_CONTROL_BLOCK HighKcb,
1404  IN PCM_KEY_CONTROL_BLOCK LowKcb,
1406 );
1407 
1408 //
1409 // Startup and Shutdown
1410 //
1411 BOOLEAN
1412 NTAPI
1414  VOID
1415 );
1416 
1417 VOID
1418 NTAPI
1420  VOID
1421 );
1422 
1423 VOID
1424 NTAPI
1426  IN BOOLEAN Enable
1427 );
1428 
1429 VOID
1430 NTAPI
1432  VOID
1433 );
1434 
1435 //
1436 // Driver List Routines
1437 //
1439 NTAPI
1441  VOID
1442 );
1443 
1444 BOOLEAN
1445 NTAPI
1447  IN PHHIVE Hive,
1448  IN HCELL_INDEX ControlSet,
1449  IN SERVICE_LOAD_TYPE LoadType,
1450  IN PWSTR BootFileSystem OPTIONAL,
1451  IN PLIST_ENTRY DriverListHead
1452 );
1453 
1454 BOOLEAN
1455 NTAPI
1457  IN PHHIVE Hive,
1458  IN HCELL_INDEX ControlSet,
1459  IN PLIST_ENTRY DriverListHead
1460 );
1461 
1462 BOOLEAN
1463 NTAPI
1465  IN PLIST_ENTRY DriverListHead
1466 );
1467 
1468 BOOLEAN
1469 NTAPI
1470 CmpIsSafe(
1471  IN PHHIVE Hive,
1472  IN HCELL_INDEX SafeBootCell,
1473  IN HCELL_INDEX DriverCell);
1474 
1475 //
1476 // Global variables accessible from all of Cm
1477 //
1478 extern ULONG CmpTraceLevel;
1482 extern BOOLEAN CmpMiniNTBoot;
1487 extern ERESOURCE CmpRegistryLock;
1491 extern CMHIVE CmControlHive;
1492 extern WCHAR CmDefaultLanguageId[];
1495 extern WCHAR CmInstallUILanguageId[];
1498 extern ULONG CmNtGlobalFlag;
1504 extern UNICODE_STRING CmTypeName[];
1505 extern UNICODE_STRING CmClassName[];
1507 extern USHORT CmpUnknownBusCount;
1508 extern ULONG CmpTypeCount[MaximumType + 1];
1513 extern BOOLEAN CmSelfHeal;
1514 extern BOOLEAN CmpSelfHeal;
1515 extern ULONG CmpBootType;
1518 extern BOOLEAN InitIsWinPEMode;
1519 extern ULONG CmpHashTableSize;
1521 extern BOOLEAN CmpNoWrite;
1523 extern BOOLEAN CmpWasSetupBoot;
1524 extern BOOLEAN CmpProfileLoaded;
1525 extern PCMHIVE CmiVolatileHive;
1527 extern BOOLEAN CmpHoldLazyFlush;
1528 
1529 //
1530 // Inlined functions
1531 //
1532 #include "cm_x.h"
struct _CM_SYSTEM_CONTROL_VECTOR * PCM_SYSTEM_CONTROL_VECTOR
PKGUARDED_MUTEX ViewLock
Definition: cm.h:400
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:2621
UNICODE_STRING CmClassName[]
signed char * PCHAR
Definition: retypes.h:7
struct _CM_NAME_HASH CM_NAME_HASH
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:266
VOID NTAPI CmpFlushNotifiesOnKeyBodyList(IN PCM_KEY_CONTROL_BLOCK Kcb, IN BOOLEAN LockHeld)
Definition: cmkcbncb.c:1140
* PNTSTATUS
Definition: strlen.c:14
BOOLEAN NTAPI CmpTestRegistryLockExclusive(VOID)
Definition: cmsysini.c:1935
ObjectType
Definition: metafile.c:80
IN CINT OUT PVOID IN ULONG OUT PULONG ReturnLength
Definition: dumpinfo.c:39
LIST_ENTRY TrustClassEntry
Definition: cm.h:432
PCHAR Identifier
Definition: cm.h:499
ULONG ConvKey
Definition: cm.h:166
const uint16_t * PCWSTR
Definition: typedefs.h:57
NTSTATUS NTAPI CmpCreateEvent(IN EVENT_TYPE EventType, OUT PHANDLE EventHandle, OUT PKEVENT *Event)
Definition: cmwraprs.c:19
#define IN
Definition: typedefs.h:39
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:272
struct _CMHIVE * PCMHIVE
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG BufferLength
Definition: wdfdevice.h:3767
UNICODE_STRING CmpSystemStartOptions
PCM_KEY_BODY KeyBody
Definition: cm.h:321
PVOID AllocPage
Definition: cm.h:343
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
PKTHREAD Owner
Definition: cm.h:157
PWORK_QUEUE_ITEM UnloadWorkItem
Definition: cm.h:423
VOID NTAPI CmpLockHiveFlusherExclusive(IN PCMHIVE Hive)
Definition: cmsysini.c:1943
PCM_KEY_BODY KeyBodyArray[4]
Definition: cm.h:297
struct _CM_USE_COUNT_LOG * PCM_USE_COUNT_LOG
BOOLEAN NTAPI CmpSortDriverList(IN PHHIVE Hive, IN HCELL_INDEX ControlSet, IN PLIST_ENTRY DriverListHead)
Definition: cmboot.c:562
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
ULONG CmHiveFlags
Definition: cm.h:471
VOID NTAPI CmpDereferenceKeyControlBlock(IN PCM_KEY_CONTROL_BLOCK Kcb)
Definition: cmkcbncb.c:571
enum _INTERFACE_TYPE INTERFACE_TYPE
struct _CM_SYSTEM_CONTROL_VECTOR CM_SYSTEM_CONTROL_VECTOR
USHORT Count
Definition: cm.h:501
Definition: cm.h:137
_IRQL_requires_same_ _In_opt_ PVOID Argument1
Definition: cmtypes.h:696
struct _CM_NAME_CONTROL_BLOCK CM_NAME_CONTROL_BLOCK
EX_PUSH_LOCK Lock
Definition: cm.h:156
VOID NTAPI DelistKeyBodyFromKCB(IN PCM_KEY_BODY KeyBody, IN BOOLEAN LockHeld)
Definition: cmkcbncb.c:1101
struct _KEY_INFORMATION * PKEY_INFORMATION
WCHAR RootDirectory[MAX_PATH]
Definition: format.c:74
HCELL_INDEX OldCell
Definition: cm.h:332
BOOLEAN ThreadStarted
Definition: cm.h:474
ULONG FreeCount
Definition: cm.h:341
NTSTATUS CmiCallRegisteredCallbacks(IN REG_NOTIFY_CLASS Argument1, IN PVOID Argument2)
Definition: cmhook.c:59
_In_ ULONG _In_ KEY_INFORMATION_CLASS KeyInformationClass
Definition: zwfuncs.h:166
enum _KEY_INFORMATION_CLASS KEY_INFORMATION_CLASS
ULONG Signature
Definition: cm.h:261
ULONG ExtFlags
Definition: cm.h:265
#define ANYSIZE_ARRAY
Definition: typedefs.h:46
UNICODE_STRING CmSymbolicLinkValueName
Definition: cmdata.c:52
HCELL_INDEX NewCell
Definition: cm.h:333
UNICODE_STRING CmTypeName[]
struct _CM_KEY_CONTROL_BLOCK * ParentKcb
Definition: cm.h:282
struct _CM_KEY_HASH_TABLE_ENTRY CM_KEY_HASH_TABLE_ENTRY
EX_PUSH_LOCK CmpHiveListHeadLock
Definition: cmdata.c:39
PUNICODE_STRING *NTAPI CmGetSystemDriverList(VOID)
Definition: cmsysini.c:1776
LONG SecurityHitHint
Definition: cm.h:417
_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:182
uint16_t * PWSTR
Definition: typedefs.h:56
CACHED_CHILD_LIST ValueCache
Definition: cm.h:285
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:1030
BOOLEAN CmpNoWrite
Definition: cmsysini.c:29
LIST_ENTRY NotifyList
Definition: cm.h:396
CM_USE_COUNT_LOG_ENTRY Log[32]
Definition: cm.h:386
ULONG NotifyPending
Definition: cm.h:324
_Must_inspect_result_ _In_ PFSRTL_PER_STREAM_CONTEXT Ptr
Definition: fsrtlfuncs.h:898
struct _CM_CACHED_VALUE_INDEX CM_CACHED_VALUE_INDEX
ULONG SecurityCount
Definition: cm.h:415
ULONG CmNtGlobalFlag
Definition: cmdata.c:19
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
enum _CM_SERVICE_LOAD_TYPE SERVICE_LOAD_TYPE
LONG NTSTATUS
Definition: precomp.h:26
struct _CM_NAME_HASH * PCM_NAME_HASH
_In_ ULONGLONG _In_ ULONGLONG _In_ BOOLEAN Enable
Definition: ntddpcm.h:140
ULONG ConvKey
Definition: cm.h:145
VOID NTAPI CmpAddToDelayedClose(IN PCM_KEY_CONTROL_BLOCK Kcb, IN BOOLEAN LockHeldExclusively)
Definition: cmdelay.c:350
VOID NTAPI CmpInitDelayDerefKCBEngine(VOID)
Definition: cmdelay.c:268
ERESOURCE CmpRegistryLock
Definition: cmsysini.c:19
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:644
NTSTATUS NTAPI CmpAddToHiveFileList(IN PCMHIVE Hive)
Definition: cmhvlist.c:130
struct _CM_NAME_CONTROL_BLOCK * PCM_NAME_CONTROL_BLOCK
#define New(t)
Definition: rtf.h:1086
ULONG ValueList
Definition: cm.h:210
HCELL_INDEX KeyCell
Definition: cm.h:279
BOOLEAN CmpFlushOnLockRelease
Definition: cmsysini.c:27
ULONG NTAPI CmCheckRegistry(IN PCMHIVE Hive, IN ULONG Flags)
Definition: cmcheck.c:21
VOID NTAPI CmpCmdInit(IN BOOLEAN SetupBoot)
Definition: cmlazy.c:234
VOID NTAPI CmpShutdownWorkers(VOID)
Definition: cmlazy.c:433
BOOLEAN Frozen
Definition: cm.h:422
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:361
BOOLEAN CmpNoVolatileCreates
Definition: cmsysini.c:32
CM_USE_COUNT_LOG UseCountLog
Definition: cm.h:429
PCMHIVE CmHive
Definition: cm.h:469
BOOLEAN NTAPI CmpFileRead(IN PHHIVE RegistryHive, IN ULONG FileType, IN OUT PULONG FileOffset, OUT PVOID Buffer, IN SIZE_T BufferLength)
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
ULONG CmpDelayedCloseIndex
ULONG Flags
Definition: cm.h:431
VOID NTAPI CmpCloseHiveFiles(IN PCMHIVE Hive)
Definition: cminit.c:631
LIST_ENTRY KeyBodyList
Definition: cm.h:233
VOID NTAPI CmpInitializeCache(VOID)
Definition: cmkcbncb.c:26
ULONG FlushCount
Definition: cm.h:433
VOID NTAPI CmpDelayDerefKeyControlBlock(IN PCM_KEY_CONTROL_BLOCK Kcb)
Definition: cmdelay.c:286
UNICODE_STRING CmpLoadOptions
Definition: cmdata.c:55
BOOLEAN NTAPI CmpFileWrite(IN PHHIVE RegistryHive, IN ULONG FileType, IN OUT PULONG FileOffset, IN PVOID Buffer, IN SIZE_T BufferLength)
struct _CM_INDEX_HINT_BLOCK * PCM_INDEX_HINT_BLOCK
VOID NTAPI CmpInitCallback(VOID)
Definition: cmhook.c:38
struct _CM_NOTIFY_BLOCK CM_NOTIFY_BLOCK
WORD LANGID
Definition: typedefs.h:81
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical 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:728
HCELL_INDEX CellIndex
Definition: cm.h:443
PCM_NAME_CONTROL_BLOCK NameBlock
Definition: cm.h:283
EX_PUSH_LOCK SecurityLock
Definition: cm.h:405
BOOLEAN InitIsWinPEMode
Definition: init.c:70
uint16_t * PWCHAR
Definition: typedefs.h:56
struct _CM_NAME_HASH_TABLE_ENTRY * PCM_NAME_HASH_TABLE_ENTRY
_In_ PKSNODE_CREATE _In_ ACCESS_MASK _Out_ PHANDLE NodeHandle
Definition: ks.h:4546
PKTHREAD HiveLockOwner
Definition: cm.h:399
PUNICODE_STRING NTAPI CmpConstructName(IN PCM_KEY_CONTROL_BLOCK Kcb)
Definition: cmkcbncb.c:897
PCM_KEY_HASH_TABLE_ENTRY CmpCacheTable
Definition: cmkcbncb.c:18
PCM_KEY_CONTROL_BLOCK KeyControlBlock
Definition: cm.h:361
USHORT PinnedViews
Definition: cm.h:413
ULONG TotalLevels
Definition: cm.h:269
struct _CM_NOTIFY_BLOCK * NotifyBlock
Definition: cm.h:231
ULONG CreateOptions
Definition: cm.h:485
KEY_FULL_INFORMATION KeyFullInformation
Definition: cm.h:535
CMP_MF_TYPE CmpMultifunctionTypes[]
LARGE_INTEGER KcbLastWriteTime
Definition: cm.h:299
KEY_VALUE_PARTIAL_INFORMATION KeyValuePartialInformation
Definition: cm.h:525
BOOLEAN CmpMiniNTBoot
Definition: cmdata.c:60
_In_opt_ PALLOCATE_FUNCTION Allocate
Definition: exfuncs.h:814
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)
VOID NTAPI CmpFreeDelayItem(PVOID Entry)
Definition: cmalloc.c:266
struct _CACHED_CHILD_LIST CACHED_CHILD_LIST
BOOLEAN NTAPI CmpTestHiveFlusherLockExclusive(IN PCMHIVE Hive)
Definition: cmsysini.c:1985
ULONG KcbVirtControlFlags
Definition: cm.h:306
struct _CM_KEY_SECURITY_CACHE CM_KEY_SECURITY_CACHE
#define CMP_SECURITY_HASH_LISTS
Definition: cm.h:79
HANDLE ProcessID
Definition: cm.h:232
UNICODE_STRING FileUserName
Definition: cm.h:411
uint32_t ULONG_PTR
Definition: typedefs.h:65
ULONG HashKey[ANYSIZE_ARRAY]
Definition: cm.h:221
struct _CM_PARSE_CONTEXT CM_PARSE_CONTEXT
NTSTATUS NTAPI CmLoadKey(IN POBJECT_ATTRIBUTES TargetKey, IN POBJECT_ATTRIBUTES SourceFile, IN ULONG Flags, IN PCM_KEY_BODY KeyBody)
Definition: cmapi.c:2004
_In_ WDFREQUEST _In_ PIO_STACK_LOCATION Stack
Definition: wdfrequest.h:636
VOID NTAPI CmpUnlockHiveFlusher(IN PCMHIVE Hive)
Definition: cmsysini.c:1965
ULONG PrivateAlloc
Definition: cm.h:266
HCELL_INDEX KeyCell
Definition: cm.h:148
ULONG DescriptorLength
Definition: cm.h:189
struct _HIVE_LIST_ENTRY HIVE_LIST_ENTRY
HANDLE FileHandle
Definition: stats.c:38
CM_KEY_VALUE KeyValue
Definition: cm.h:459
ULONG Disposition
Definition: cm.h:486
ERESOURCE * PERESOURCE
Definition: env_spec_w32.h:595
HCELL_INDEX Cell
Definition: cm.h:198
struct _CM_CELL_REMAP_BLOCK * PCM_CELL_REMAP_BLOCK
KEY_BASIC_INFORMATION KeyBasicInformation
Definition: cm.h:534
LIST_ENTRY CmpHiveListHead
Definition: cmsysini.c:18
VOID NTAPI CmpArmDelayedCloseTimer(VOID)
Definition: cmdelay.c:335
VOID NTAPI CmpDeleteKeyObject(IN PVOID Object)
struct _CM_KEY_CONTROL_BLOCK * RealKcb
Definition: cm.h:211
VOID NTAPI CmSetLazyFlushState(IN BOOLEAN Enable)
Definition: cmlazy.c:442
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
BOOLEAN ThreadFinished
Definition: cm.h:473
_In_ WDFDEVICE _In_ WDF_SPECIAL_FILE_TYPE FileType
Definition: wdfdevice.h:2739
USHORT KcbMaxValueNameLen
Definition: cm.h:301
CM_KEY_REFERENCE ChildHive
Definition: cm.h:487
ULONG Count
Definition: cm.h:207
KGUARDED_MUTEX CmpDelayedCloseTableLock
Definition: cmdelay.c:21
long LONG
Definition: pedump.c:60
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:1192
PCM_NAME_HASH Entry
Definition: cm.h:178
LIST_ENTRY HiveList
Definition: cm.h:318
_Must_inspect_result_ _In_opt_ PFLT_FILTER Filter
Definition: fltkernel.h:1802
ULONG CmpTraceLevel
Definition: cmsysini.c:33
ULONG InDelayClose
Definition: cm.h:310
PCM_KEY_CONTROL_BLOCK RootKcb
Definition: cm.h:421
VOID NTAPI CmpUnlockRegistry(VOID)
Definition: cmsysini.c:1993
_In_ PEPROCESS _In_ KPROCESSOR_MODE AccessMode
Definition: mmfuncs.h:395
ULONG GrowOffset
Definition: cm.h:425
struct _CM_KEY_CONTROL_BLOCK * PCM_KEY_CONTROL_BLOCK
PCM_KEY_CONTROL_BLOCK Kcb
Definition: cm.h:370
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
HANDLE FileHandles[HFILE_TYPE_MAX]
Definition: cm.h:395
LANGID PsInstallUILanguageId
Definition: locale.c:21
struct _HIVE_LIST_ENTRY * PHIVE_LIST_ENTRY
HCELL_INDEX Cell
Definition: cm.h:378
unsigned char BOOLEAN
UNICODE_STRING FileFullPath
Definition: cm.h:410
struct _CACHED_CHILD_LIST * PCACHED_CHILD_LIST
struct _KEY_VALUE_INFORMATION * PKEY_VALUE_INFORMATION
ULONG SecurityCacheSize
Definition: cm.h:416
ULONG * PHCELL_INDEX
Definition: hivedata.h:80
static IDispatch External
Definition: htmldoc.c:521
POBJECT_TYPE CmpKeyObjectType
Definition: cmsysini.c:16
HHIVE Hive
Definition: cm.h:394
ULONG CmInstallUILanguageIdLength
Definition: cmdata.c:27
USHORT NameLength
Definition: cm.h:250
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:403
_Must_inspect_result_ _In_ PFILE_OBJECT _In_ SECURITY_INFORMATION SecurityInformation
Definition: fltkernel.h:1339
Definition: bufpool.h:45
LIST_ENTRY List
Definition: cm.h:188
#define HFILE_TYPE_MAX
Definition: hivedata.h:36
struct _CM_KEY_CONTROL_BLOCK CM_KEY_CONTROL_BLOCK
VOID NTAPI CmpLockRegistryExclusive(VOID)
Definition: cmsysini.c:1894
struct _CM_KEY_SECURITY_CACHE_ENTRY * PCM_KEY_SECURITY_CACHE_ENTRY
USHORT NameLength
Definition: cm.h:168
PVOID NTAPI CmpAllocate(IN SIZE_T Size, IN BOOLEAN Paged, IN ULONG Tag)
Definition: registry.c:34
_VALUE_SEARCH_RETURN_TYPE
Definition: cm.h:133
BOOLEAN CmpShareSystemHives
Definition: cmdata.c:57
struct _CM_DELAY_DEREF_KCB_ITEM CM_DELAY_DEREF_KCB_ITEM
_Must_inspect_result_ _In_ WDFDEVICE _In_ PCUNICODE_STRING KeyName
Definition: wdfdevice.h:2697
_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:1230
BOOLEAN Compressed
Definition: cm.h:241
LIST_ENTRY PostList
Definition: cm.h:319
_In_opt_ PUNICODE_STRING _In_ PDRIVER_OBJECT _In_ PDEVICE_OBJECT _In_ INTERFACE_TYPE _In_ ULONG BusNumber
Definition: halfuncs.h:156
PCM_KEY_HASH NextHash
Definition: cm.h:249
BOOLEAN NTAPI CmInitSystem1(VOID)
Definition: cmsysini.c:1511
_In_ PVOID Argument2
Definition: classpnp.h:721
NTSTATUS NTAPI CmSaveKey(IN PCM_KEY_CONTROL_BLOCK Kcb, IN HANDLE FileHandle, IN ULONG Flags)
Definition: cmapi.c:2638
NTSTATUS NTAPI CmUnloadKey(IN PCM_KEY_CONTROL_BLOCK Kcb, IN ULONG Flags)
Definition: cmapi.c:2195
NTSTATUS NTAPI CmpSaveBootControlSet(IN USHORT ControlSet)
Definition: cmcontrl.c:268
struct _CM_PARSE_CONTEXT * PCM_PARSE_CONTEXT
union _CM_CACHED_VALUE_INDEX::@1747 Data
VOID NTAPI CmpFreeKeyControlBlock(IN PCM_KEY_CONTROL_BLOCK Kcb)
Definition: cmalloc.c:53
enum _EVENT_TYPE EVENT_TYPE
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
Definition: wdfregistry.h:406
struct _CM_KEY_CONTROL_BLOCK * KeyControlBlock
Definition: cm.h:230
Status
Definition: gdiplustypes.h:24
VOID NTAPI CmpRemoveFromDelayedClose(IN PCM_KEY_CONTROL_BLOCK Kcb)
Definition: cmdelay.c:425
VOID NTAPI CmpFree(IN PVOID Ptr, IN ULONG Quota)
Definition: registry.c:47
BOOLEAN NTAPI CmpResolveDriverDependencies(IN PLIST_ENTRY DriverListHead)
Definition: cmboot.c:674
struct _CM_USE_COUNT_LOG CM_USE_COUNT_LOG
VOID NTAPI CmpSetGlobalQuotaAllowed(VOID)
Definition: cmquota.c:22
BOOLEAN HiveIsLoading
Definition: cm.h:434
Definition: registry.c:568
BOOLEAN NTAPI CmpReferenceKeyControlBlock(IN PCM_KEY_CONTROL_BLOCK Kcb)
Definition: cmkcbncb.c:357
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
struct _CM_DELAYED_CLOSE_ENTRY CM_DELAYED_CLOSE_ENTRY
UNICODE_STRING Class
Definition: cm.h:484
NTSTATUS NTAPI CmDeleteKey(IN PCM_KEY_BODY KeyBody)
Definition: cmapi.c:1824
HIVE_LIST_ENTRY CmpMachineHiveList[]
Definition: cmdata.c:41
__wchar_t WCHAR
Definition: xmlstorage.h:180
DWORD * PSECURITY_INFORMATION
Definition: ms-dtyp.idl:311
INT POOL_TYPE
Definition: typedefs.h:78
ULONG HCELL_INDEX
Definition: hivedata.h:80
_In_ WDFCOLLECTION _In_ ULONG Index
ULONG Filter
Definition: cm.h:322
HCELL_INDEX NTAPI CmpFindControlSet(IN PHHIVE SystemHive, IN HCELL_INDEX RootCell, IN PUNICODE_STRING SelectKeyName, OUT PBOOLEAN AutoSelect)
Definition: cmboot.c:25
BOOLEAN CmSelfHeal
Definition: cmdata.c:58
ULONG HashKey
Definition: cm.h:458
ULONG CmpBootType
Definition: cmdata.c:61
NTSTATUS NTAPI CmSaveMergedKeys(IN PCM_KEY_CONTROL_BLOCK HighKcb, IN PCM_KEY_CONTROL_BLOCK LowKcb, IN HANDLE FileHandle)
Definition: cmapi.c:2707
LIST_ENTRY DelayedLRUList
Definition: cm.h:360
struct _CM_USE_COUNT_LOG_ENTRY CM_USE_COUNT_LOG_ENTRY
struct _CMHIVE CMHIVE
NTSTATUS NTAPI CmpLinkHiveToMaster(IN PUNICODE_STRING LinkName, IN HANDLE RootDirectory, IN PCMHIVE CmHive, IN BOOLEAN Allocate, IN PSECURITY_DESCRIPTOR SecurityDescriptor)
Definition: cmsysini.c:798
DWORD ClusterSize
Definition: format.c:67
EX_PUSH_LOCK HiveLock
Definition: cm.h:398
struct _CM_DELAY_ALLOC * PCM_DELAY_ALLOC
Definition: cm.h:196
VOID NTAPI CmpInitializeDelayedCloseTable(VOID)
Definition: cmdelay.c:191
USHORT Next
Definition: cm.h:384
BOOLEAN ExpInTextModeSetup
Definition: init.c:67
Type
Definition: Type.h:6
ULONG CmDefaultLanguageIdType
Definition: cmdata.c:24
Definition: cm.h:358
struct _KEY_INFORMATION KEY_INFORMATION
ULONG CmpConfigurationAreaSize
Definition: cmdata.c:36
ULONG DelayedCloseIndex
Definition: cm.h:268
PCM_KEY_HASH NextHash
Definition: cm.h:277
Definition: cm.h:175
PERESOURCE FlusherLock
Definition: cm.h:404
VOID NTAPI CmpDestroySecurityCache(IN PCMHIVE Hive)
Definition: cmsecach.c:41
VOID NTAPI CmpCleanUpKcbCacheWithLock(IN PCM_KEY_CONTROL_BLOCK Kcb, IN BOOLEAN LockHeldExclusively)
Definition: cmkcbncb.c:476
VOID NTAPI CmShutdownSystem(VOID)
Definition: cmsysini.c:2088
struct _CM_KEY_BODY CM_KEY_BODY
CCHAR KPROCESSOR_MODE
Definition: ketypes.h:7
CM_SYSTEM_CONTROL_VECTOR CmControlVector[]
* PFILE_OBJECT
Definition: iotypes.h:1998
struct _CM_CACHED_VALUE_INDEX * PCM_CACHED_VALUE_INDEX
Definition: cm.h:376
LIST_ENTRY HiveList
Definition: cm.h:397
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
PHHIVE KeyHive
Definition: cm.h:147
_In_opt_ PVOID _In_opt_ PUNICODE_STRING _In_ PSECURITY_DESCRIPTOR _In_ PACCESS_STATE AccessState
Definition: sefuncs.h:414
BOOLEAN NTAPI CmpGetNextName(IN OUT PUNICODE_STRING RemainingName, OUT PUNICODE_STRING NextName, OUT PBOOLEAN LastName)
Definition: cmparse.c:21
BOOLEAN CmpHoldLazyFlush
Definition: cmlazy.c:24
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING ValueName
Definition: wdfregistry.h:240
PCMHIVE CmiVolatileHive
Definition: cmsysini.c:17
PVOID NTAPI CmpAllocateDelayItem(VOID)
Definition: cmalloc.c:196
char * PBOOLEAN
Definition: retypes.h:11
LIST_ENTRY CmiKeyObjectListHead
HANDLE PredefinedHandle
Definition: cm.h:488
VOID NTAPI CmpInitHiveViewList(IN PCMHIVE Hive)
Definition: cmmapvw.c:21
NTSTATUS NTAPI CmpQueryKeyName(IN PVOID Object, IN BOOLEAN HasObjectName, OUT POBJECT_NAME_INFORMATION ObjectNameInfo, IN ULONG Length, OUT PULONG ReturnLength, IN KPROCESSOR_MODE AccessMode)
USHORT Size
Definition: cm.h:385
VOID NTAPI EnlistKeyBodyWithKCB(IN PCM_KEY_BODY KeyObject, IN ULONG Flags)
Definition: cmkcbncb.c:1043
BOOLEAN CmpSelfHeal
Definition: cmdata.c:59
LIST_ENTRY LRUViewListHead
Definition: cm.h:407
VOID NTAPI CmGetSystemControlValues(IN PVOID SystemHiveData, IN PCM_SYSTEM_CONTROL_VECTOR ControlVector)
Definition: cmcontrl.c:104
struct _KEY_VALUE_INFORMATION KEY_VALUE_INFORMATION
NTSTATUS NTAPI CmpInitializeMachineDependentConfiguration(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
Definition: cmhardwr.c:21
USHORT CmpUnknownBusCount
Definition: cmdata.c:63
EX_PUSH_LOCK WriterLock
Definition: cm.h:402
BOOLEAN CmpSpecialBootCondition
Definition: cmsysini.c:28
enum _REG_NOTIFY_CLASS REG_NOTIFY_CLASS
USHORT MappedViews
Definition: cm.h:412
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:454
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
_Must_inspect_result_ _In_ WDFCMRESLIST List
Definition: wdfresource.h:550
SECURITY_DESCRIPTOR_RELATIVE Descriptor
Definition: cm.h:190
struct _CM_KEY_SECURITY_CACHE_ENTRY CM_KEY_SECURITY_CACHE_ENTRY
NTSTATUS NTAPI CmFlushKey(IN PCM_KEY_CONTROL_BLOCK Kcb, IN BOOLEAN EclusiveLock)
Definition: cmapi.c:1938
ULONG CmpHashTableSize
Definition: cmkcbncb.c:17
struct _CM_NAME_HASH_TABLE_ENTRY CM_NAME_HASH_TABLE_ENTRY
HCELL_INDEX NTAPI CmpCopyCell(IN PHHIVE SourceHive, IN HCELL_INDEX SourceCell, IN PHHIVE DestinationHive, IN HSTORAGE_TYPE StorageType)
Definition: cmvalue.c:376
_Must_inspect_result_ _Out_ PLARGE_INTEGER FileSize
Definition: fsrtlfuncs.h:108
PHHIVE KeyHive
Definition: cm.h:278
struct _CM_DELAYED_CLOSE_ENTRY * PCM_DELAYED_CLOSE_ENTRY
ULONG KcbDebug
Definition: cm.h:307
HANDLE CmpRegistryRootHandle
Definition: cmdata.c:66
BOOLEAN CmpProfileLoaded
Definition: cmsysini.c:31
Definition: typedefs.h:119
WCHAR CmInstallUILanguageId[]
Definition: cmdata.c:26
PKTHREAD ViewLockOwner
Definition: cm.h:401
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
CELL_DATA CellData
Definition: cm.h:446
VOID NTAPI CmpDestroyHiveViewList(IN PCMHIVE Hive)
Definition: cmmapvw.c:35
NTSTATUS NTAPI CmpInitHiveFromFile(IN PCUNICODE_STRING HiveName, IN ULONG HiveFlags, OUT PCMHIVE *Hive, IN OUT PBOOLEAN New, IN ULONG CheckFlags)
Definition: cmsysini.c:286
VOID NTAPI CmpLazyFlush(VOID)
Definition: cmlazy.c:158
_Must_inspect_result_ _In_ WDFDEVICE _In_ BOOLEAN _In_opt_ PVOID Tag
Definition: wdfdevice.h:4061
PKTHREAD WriterLockOwner
Definition: cm.h:403
VOID NTAPI CmpCloseKeyObject(IN PEPROCESS Process OPTIONAL, IN PVOID Object, IN ACCESS_MASK GrantedAccess, IN ULONG ProcessHandleCount, IN ULONG SystemHandleCount)
Definition: cmsysini.c:159
ULONG UseCount
Definition: cm.h:414
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, OUT PVOID *Object)
Definition: cmparse.c:727
PFILE_OBJECT FileObject
Definition: cm.h:409
_Must_inspect_result_ _In_ WDFCOLLECTION _In_ WDFOBJECT Object
_Must_inspect_result_ _In_opt_ WDFKEY _In_ PCUNICODE_STRING _In_ ACCESS_MASK _In_ ULONG CreateOptions
Definition: wdfregistry.h:112
LIST_ENTRY KeyBodyListHead
Definition: cm.h:294
KEY_VALUE_PARTIAL_INFORMATION_ALIGN64 KeyValuePartialInformationAlign64
Definition: cm.h:526
CMHIVE CmControlHive
Definition: cmdata.c:34
Definition: cm.h:154
LIST_ENTRY KnodeConvertListHead
Definition: cm.h:427
struct _CM_KEY_HASH_TABLE_ENTRY * PCM_KEY_HASH_TABLE_ENTRY
VOID NTAPI CmpInitCmPrivateAlloc(VOID)
Definition: cmalloc.c:29
HCELL_INDEX Cell
Definition: cm.h:186
ULONG CmpTypeCount[MaximumType+1]
Definition: cmdata.c:64
struct _CMP_MF_TYPE CMP_MF_TYPE
ULONG_PTR SIZE_T
Definition: typedefs.h:80
USHORT RefCount
Definition: cm.h:242
NTSTATUS NTAPI CmQueryKey(IN PCM_KEY_CONTROL_BLOCK Kcb, IN KEY_INFORMATION_CLASS KeyInformationClass, IN PVOID KeyInformation, IN ULONG Length, IN PULONG ResultLength)
static GENERIC_MAPPING GenericMapping
Definition: SeInheritance.c:11
ULONG TitleIndex
Definition: cm.h:483
ULONG KcbUserFlags
Definition: cm.h:305
VOID NTAPI CmpLockRegistry(VOID)
Definition: cmsysini.c:1907
KEY_NODE_INFORMATION KeyNodeInformation
Definition: cm.h:536
struct _CM_USE_COUNT_LOG_ENTRY * PCM_USE_COUNT_LOG_ENTRY
USHORT DataCacheType
Definition: cm.h:456
LIST_ENTRY ListEntry
Definition: cm.h:351
struct _CMP_MF_TYPE * PCMP_MF_TYPE
ULONG CmpDelayedCloseSize
Definition: cmdelay.c:19
ULONG CmDefaultLanguageIdLength
Definition: cmdata.c:23
VOID NTAPI CmpReleaseTwoKcbLockByKey(IN ULONG ConvKey1, IN ULONG ConvKey2)
Definition: cmsysini.c:2050
struct _CM_CACHED_VALUE * PCM_CACHED_VALUE
PCM_CELL_REMAP_BLOCK CellRemapArray
Definition: cm.h:428
EX_PUSH_LOCK CmpLoadHiveLock
Definition: cmdata.c:39
BOOLEAN NTAPI CmpFindDrivers(IN PHHIVE Hive, IN HCELL_INDEX ControlSet, IN SERVICE_LOAD_TYPE LoadType, IN PWSTR BootFileSystem OPTIONAL, IN PLIST_ENTRY DriverListHead)
Definition: cmboot.c:383
PKTHREAD CreatorOwner
Definition: cm.h:435
unsigned short USHORT
Definition: pedump.c:61
_In_ PFCB _In_ LONGLONG FileOffset
Definition: cdprocs.h:159
NTSTATUS NTAPI CmpInitializeHive(OUT PCMHIVE *CmHive, IN ULONG OperationType, IN ULONG HiveFlags, IN ULONG FileType, IN PVOID HiveData OPTIONAL, IN HANDLE Primary, IN HANDLE Log, IN HANDLE External, IN PCUNICODE_STRING FileName OPTIONAL, IN ULONG CheckFlags)
Definition: cminit.c:19
BOOLEAN CmpWasSetupBoot
Definition: cmsysini.c:30
HSTORAGE_TYPE
Definition: hivedata.h:100
BOOLEAN NTAPI CmpTestRegistryLock(VOID)
Definition: cmsysini.c:1927
VOID NTAPI CmpCleanUpSubKeyInfo(IN PCM_KEY_CONTROL_BLOCK Kcb)
Definition: cmkcbncb.c:517
static PCMHIVE CmHive
Definition: registry.c:28
WCHAR CmDefaultLanguageId[]
Definition: cmdata.c:22
unsigned int * PULONG
Definition: retypes.h:1
BOOLEAN NTAPI CmpDoFlushAll(IN BOOLEAN ForceFlush)
Definition: cmapi.c:82
KEY_VALUE_FULL_INFORMATION KeyValueFullInformation
Definition: cm.h:524
VOID NTAPI CmpDereferenceKeyControlBlockWithLock(IN PCM_KEY_CONTROL_BLOCK Kcb, IN BOOLEAN LockHeldExclusively)
Definition: cmkcbncb.c:606
PKTHREAD HiveSecurityLockOwner
Definition: cm.h:406
LIST_ENTRY PinViewListHead
Definition: cm.h:408
PKEVENT UnloadEvent
Definition: cm.h:420
ULONG SubKeyCount
Definition: cm.h:290
PCM_KEY_CONTROL_BLOCK KeyControlBlock
Definition: cm.h:320
struct _CM_DELAY_ALLOC CM_DELAY_ALLOC
static CMHIVE SystemHive
Definition: registry.c:57
ULONG WatchTree
Definition: cm.h:323
CM_USE_COUNT_LOG LockHiveLog
Definition: cm.h:430
BOOLEAN Allocate
Definition: cm.h:475
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
Definition: fsrtlfuncs.h:219
struct _CM_KEY_SECURITY_CACHE * PCM_KEY_SECURITY_CACHE
VOID NTAPI CmpLockHiveFlusherShared(IN PCMHIVE Hive)
Definition: cmsysini.c:1954
EX_PUSH_LOCK Lock
Definition: cm.h:177
USHORT KcbMaxNameLen
Definition: cm.h:300
PCM_KEY_HASH Entry
Definition: cm.h:158
#define OUT
Definition: typedefs.h:40
PCM_KEY_SECURITY_CACHE_ENTRY SecurityCache
Definition: cm.h:418
struct _CM_KEY_HASH CM_KEY_HASH
VOID NTAPI CmpInitializeHiveList(VOID)
Definition: cmsysini.c:1358
BOOLEAN NTAPI CmpFileFlush(IN PHHIVE RegistryHive, IN ULONG FileType, IN OUT PLARGE_INTEGER FileOffset, IN ULONG Length)
Definition: cmwraprs.c:162
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ _Strict_type_match_ POOL_TYPE PoolType
Definition: wdfdevice.h:3810
struct _CM_ALLOC_PAGE CM_ALLOC_PAGE
BOOLEAN NTAPI CmpIsSafe(IN PHHIVE Hive, IN HCELL_INDEX SafeBootCell, IN HCELL_INDEX DriverCell)
Definition: cmboot.c:724
ULONG ERESOURCE
Definition: env_spec_w32.h:594
PCMHIVE OriginatingPoint
Definition: cm.h:491
unsigned int ULONG
Definition: retypes.h:1
PCM_NAME_HASH_TABLE_ENTRY CmpNameCacheTable
Definition: cmkcbncb.c:19
ULONG RefCount
Definition: cm.h:262
PCM_KEY_CONTROL_BLOCK Kcb
Definition: cm.h:352
NTSTATUS NTAPI CmpInitializeHardwareConfiguration(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
Definition: cmconfig.c:328
VOID NTAPI CmpRemoveKeyControlBlock(IN PCM_KEY_CONTROL_BLOCK Kcb)
Definition: cmkcbncb.c:306
CM_KEY_HASH KeyHash
Definition: cm.h:273
struct _CM_ALLOC_PAGE * PCM_ALLOC_PAGE
_In_ ACCESS_MASK _In_opt_ POBJECT_ATTRIBUTES _In_ EVENT_TYPE EventType
Definition: exfuncs.h:165
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG _Out_ PULONG ResultLength
Definition: wdfdevice.h:3776
PCMHIVE CmHive2
Definition: cm.h:472
BOOLEAN NTAPI CmpTestHiveFlusherLockShared(IN PCMHIVE Hive)
Definition: cmsysini.c:1977
USHORT InterfaceType
Definition: cm.h:500
PCM_FULL_RESOURCE_DESCRIPTOR CmpConfigurationData
Definition: cmdata.c:37
BOOLEAN NTAPI CmpFileSetSize(IN PHHIVE RegistryHive, IN ULONG FileType, IN ULONG FileSize, IN ULONG OldFileSize)
Definition: cmwraprs.c:125
PWSTR BaseName
Definition: cm.h:468
struct _CM_DELAY_DEREF_KCB_ITEM * PCM_DELAY_DEREF_KCB_ITEM
ULONG NTAPI CmpEnumerateOpenSubKeys(IN PCM_KEY_CONTROL_BLOCK RootKcb, IN BOOLEAN RemoveEmptyCacheEntries, IN BOOLEAN DereferenceOpenedEntries)
Definition: cmapi.c:2328
VOID NTAPI CmpReportNotify(IN PCM_KEY_CONTROL_BLOCK Kcb, IN PHHIVE Hive, IN HCELL_INDEX Cell, IN ULONG Filter)
Definition: cmnotify.c:19
PVOID DelayCloseEntry
Definition: cm.h:298
VOID NTAPI CmpInitSecurityCache(IN PCMHIVE Hive)
Definition: cmsecach.c:21
enum _VALUE_SEARCH_RETURN_TYPE VALUE_SEARCH_RETURN_TYPE
ULONG Type
Definition: cm.h:229
_In_ ULONG _In_ KEY_VALUE_INFORMATION_CLASS KeyValueInformationClass
Definition: cmfuncs.h:93
PCM_KEY_SECURITY_CACHE CachedSecurity
Definition: cm.h:284
struct _CM_CACHED_VALUE CM_CACHED_VALUE
_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:13
struct _CM_KEY_BODY * PCM_KEY_BODY
VOID NTAPI CmpInitCmPrivateDelayAlloc(VOID)
Definition: cmalloc.c:44
BOOLEAN CreateLink
Definition: cm.h:489
KEY_VALUE_BASIC_INFORMATION KeyValueBasicInformation
Definition: cm.h:523
ULONG Reserved
Definition: cm.h:342
NTSTATUS NTAPI CmpDestroyHive(IN PCMHIVE CmHive)
Definition: cminit.c:235
struct _CM_NAME_HASH * NextHash
Definition: cm.h:167
VOID NTAPI CmpCleanUpKcbValueCache(IN PCM_KEY_CONTROL_BLOCK Kcb)
Definition: cmkcbncb.c:431
struct _CM_CELL_REMAP_BLOCK CM_CELL_REMAP_BLOCK
CM_NAME_HASH NameHash
Definition: cm.h:245
PWSTR Name
Definition: cm.h:467
VOID NTAPI CmpRemoveFromHiveFileList(IN PCMHIVE Hive)
Definition: cmhvlist.c:254
ULONG HHiveFlags
Definition: cm.h:470
ULONG KcbMaxValueDataLen
Definition: cm.h:302
BOOLEAN CmpForceForceFlush
Definition: cmlazy.c:23
LIST_ENTRY FreeListEntry
Definition: cm.h:295
LIST_ENTRY SecurityHash[CMP_SECURITY_HASH_LISTS]
Definition: cm.h:419
VOID NTAPI CmpSetVersionData(VOID)
Definition: cmsysini.c:2116
PSECURITY_DESCRIPTOR NTAPI CmpHiveRootSecurityDescriptor(VOID)
Definition: cmse.c:21
PCM_KEY_SECURITY_CACHE CachedSecurity
Definition: cm.h:199
_Inout_opt_ PUNICODE_STRING Extension
Definition: fltkernel.h:1092
SECURITY_OPERATION_CODE
Definition: setypes.h:142
_In_ NDIS_STATUS _In_ ULONG _In_ USHORT _In_opt_ PVOID _In_ ULONG DataSize
Definition: ndis.h:4751
unsigned short * PUSHORT
Definition: retypes.h:2
BOOLEAN CreateOperation
Definition: cm.h:490
ULONG ACCESS_MASK
Definition: nt_native.h:40
PCM_INDEX_HINT_BLOCK IndexHint
Definition: cm.h:288
LIST_ENTRY KcbConvertListHead
Definition: cm.h:426
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID InterfaceType
Definition: wdffdo.h:461
base of all file and directory entries
Definition: entries.h:82
LIST_ENTRY ListEntry
Definition: cm.h:369
VOID NTAPI CmpFlushNotify(IN PCM_KEY_BODY KeyBody, IN BOOLEAN LockHeld)
Definition: cmnotify.c:30
LANGID PsDefaultUILanguageId
Definition: locale.c:24
Definition: cm.h:392
struct _CM_KEY_HASH * NextHash
Definition: cm.h:146
enum _KEY_VALUE_INFORMATION_CLASS KEY_VALUE_INFORMATION_CLASS
Definition: reg.c:135
NTSTATUS NTAPI CmDeleteValueKey(IN PCM_KEY_CONTROL_BLOCK Kcb, IN UNICODE_STRING ValueName)
Definition: cmapi.c:916
ULONG CmInstallUILanguageIdType
Definition: cmdata.c:28
struct _CM_NOTIFY_BLOCK * PCM_NOTIFY_BLOCK
PCM_KEY_CONTROL_BLOCK NTAPI CmpAllocateKeyControlBlock(VOID)
Definition: cmalloc.c:111
USHORT ValueKeySize
Definition: cm.h:457
struct _CM_INDEX_HINT_BLOCK CM_INDEX_HINT_BLOCK
Definition: dlist.c:348
_Must_inspect_result_ _In_ WDFDMAENABLER _In_ _In_opt_ PWDF_OBJECT_ATTRIBUTES Attributes
_Inout_ PFCB _Inout_ PUNICODE_STRING RemainingName
Definition: cdprocs.h:801
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:1735
_Out_ PHANDLE EventHandle
Definition: iofuncs.h:855
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:1075
struct _CM_KEY_HASH * PCM_KEY_HASH
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68
BOOLEAN GrowOnlyMode
Definition: cm.h:424
VOID NTAPI CmpAcquireTwoKcbLocksExclusiveByKey(IN ULONG ConvKey1, IN ULONG ConvKey2)
Definition: cmsysini.c:2021