Author: fireball
Date: Mon Dec 22 12:17:23 2008
New Revision: 38271
URL:
http://svn.reactos.org/svn/reactos?rev=38271&view=rev
Log:
- Add control flags for CmpDoOpen, CmpCreateKey and CmpUnloadKey.
- Add CmUnloadKey prototype.
Modified:
trunk/reactos/ntoskrnl/include/internal/cm.h
Modified: trunk/reactos/ntoskrnl/include/internal/cm.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/…
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/cm.h [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/include/internal/cm.h [iso-8859-1] Mon Dec 22 12:17:23 2008
@@ -86,10 +86,22 @@
#define CMP_LOCK_HASHES_FOR_KCB 0x2
//
+// CmpDoCreate and CmpDoOpen flags
+//
+#define CMP_CREATE_KCB_KCB_LOCKED 0x2
+#define CMP_OPEN_KCB_NO_CREATE 0x4
+
+//
// EnlistKeyBodyWithKCB Flags
//
#define CMP_ENLIST_KCB_LOCKED_SHARED 0x1
#define CMP_ENLIST_KCB_LOCKED_EXCLUSIVE 0x2
+
+//
+// Unload Flags
+//
+#define CMP_UNLOCK_KCB_LOCKED 0x1
+#define CMP_UNLOCK_REGISTRY_LOCKED 0x2
//
// Maximum size of Value Cache
@@ -1418,6 +1430,13 @@
IN POBJECT_ATTRIBUTES SourceFile,
IN ULONG Flags,
IN PCM_KEY_BODY KeyBody
+);
+
+NTSTATUS
+NTAPI
+CmUnloadKey(
+ IN PCM_KEY_CONTROL_BLOCK Kcb,
+ IN ULONG Flags
);
//