[MKHIVE] Implement and use RegCloseKey().
[reactos.git] / sdk / tools / mkhive / mkhive.h
index 519ee91..82c8ecc 100644 (file)
@@ -21,7 +21,7 @@
  * PROJECT:         ReactOS hive maker
  * FILE:            tools/mkhive/mkhive.h
  * PURPOSE:         Hive maker
- * PROGRAMMER     Eric Kohl
+ * PROGRAMMERS:     Eric Kohl
  *                  HervĂ© Poussineau
  */
 
 
 #include <typedefs.h>
 
+#ifndef _MSC_VER
+#ifndef _countof
+#define _countof(_Array) (sizeof(_Array) / sizeof(_Array[0]))
+#endif
+#endif
+
 // Definitions copied from <ntstatus.h>
 // We only want to include host headers, so we define them manually
 #define STATUS_SUCCESS                   ((NTSTATUS)0x00000000)
@@ -83,6 +89,10 @@ RegSetValueExW(
     IN const UCHAR* lpData,
     IN ULONG cbData);
 
+LONG WINAPI
+RegCloseKey(
+    IN HKEY hKey);
+
 LONG WINAPI
 RegDeleteKeyW(
     IN HKEY hKey,