[ros-diffs] [dchapyshev] 39410: - Add some defines to winnt.h - Partially implement RegSaveKeyExW

dchapyshev at svn.reactos.org dchapyshev at svn.reactos.org
Thu Feb 5 15:18:21 CET 2009


Author: dchapyshev
Date: Thu Feb  5 08:18:20 2009
New Revision: 39410

URL: http://svn.reactos.org/svn/reactos?rev=39410&view=rev
Log:
- Add some defines to winnt.h
- Partially implement RegSaveKeyExW

Modified:
    trunk/reactos/dll/win32/advapi32/reg/reg.c
    trunk/reactos/include/psdk/winnt.h

Modified: trunk/reactos/dll/win32/advapi32/reg/reg.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/reg/reg.c?rev=39410&r1=39409&r2=39410&view=diff
==============================================================================
--- trunk/reactos/dll/win32/advapi32/reg/reg.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/reg/reg.c [iso-8859-1] Thu Feb  5 08:18:20 2009
@@ -4732,8 +4732,21 @@
               LPSECURITY_ATTRIBUTES lpSecurityAttributes,
               DWORD Flags)
 {
-    FIXME("RegSaveKeyExW() not implemented!\n");
-    return ERROR_INVALID_PARAMETER;
+    switch (Flags)
+    {
+        case REG_STANDARD_FORMAT:
+        case REG_LATEST_FORMAT:
+        case REG_NO_COMPRESSION:
+            break;
+        default:
+            return ERROR_INVALID_PARAMETER;
+    }
+
+    FIXME("RegSaveKeyExW(): Flags ignored!\n");
+
+    return RegSaveKeyW(hKey,
+                       lpFile,
+                       lpSecurityAttributes);
 }
 
 

Modified: trunk/reactos/include/psdk/winnt.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/winnt.h?rev=39410&r1=39409&r2=39410&view=diff
==============================================================================
--- trunk/reactos/include/psdk/winnt.h [iso-8859-1] (original)
+++ trunk/reactos/include/psdk/winnt.h [iso-8859-1] Thu Feb  5 08:18:20 2009
@@ -276,6 +276,10 @@
 #define STANDARD_RIGHTS_ALL	0x1F0000
 #define SPECIFIC_RIGHTS_ALL	0xFFFF
 #define ACCESS_SYSTEM_SECURITY	0x1000000
+
+#define REG_STANDARD_FORMAT 1
+#define REG_LATEST_FORMAT   2
+#define REG_NO_COMPRESSION  4
 
 #ifndef WIN32_NO_STATUS
 



More information about the Ros-diffs mailing list