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…
==============================================================================
--- 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=3…
==============================================================================
--- 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