Author: dchapyshev
Date: Thu Feb 5 07:47:51 2009
New Revision: 39408
URL:
http://svn.reactos.org/svn/reactos?rev=39408&view=rev
Log:
- Add RegSaveKeyExA/W to winreg.h
- Uncomment RegSaveKeyExA/W in advapi32.def
- Implement RegSaveKeyExA
- Add stub for RegSaveKeyExW
Modified:
trunk/reactos/dll/win32/advapi32/advapi32.def
trunk/reactos/dll/win32/advapi32/reg/reg.c
trunk/reactos/include/psdk/winreg.h
Modified: trunk/reactos/dll/win32/advapi32/advapi32.def
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/advapi3…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/advapi32.def [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/advapi32.def [iso-8859-1] Thu Feb 5 07:47:51 2009
@@ -528,8 +528,8 @@
RegRestoreKeyA@12
RegRestoreKeyW@12
RegSaveKeyA@12
-;RegSaveKeyExA
-;RegSaveKeyExW
+RegSaveKeyExA@16
+RegSaveKeyExW@16
RegSaveKeyW@12
RegSetKeySecurity@12
RegSetKeyValueA@24
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 07:47:51 2009
@@ -4694,6 +4694,50 @@
/************************************************************************
+ * RegSaveKeyExA
+ *
+ * @implemented
+ */
+LONG
+WINAPI
+RegSaveKeyExA(HKEY hKey,
+ LPCSTR lpFile,
+ LPSECURITY_ATTRIBUTES lpSecurityAttributes,
+ DWORD Flags)
+{
+ UNICODE_STRING FileName;
+ LONG ErrorCode;
+
+ RtlCreateUnicodeStringFromAsciiz(&FileName,
+ (LPSTR)lpFile);
+ ErrorCode = RegSaveKeyExW(hKey,
+ FileName.Buffer,
+ lpSecurityAttributes,
+ Flags);
+ RtlFreeUnicodeString(&FileName);
+
+ return ErrorCode;
+}
+
+
+/************************************************************************
+ * RegSaveKeyExW
+ *
+ * @unimplemented
+ */
+LONG
+WINAPI
+RegSaveKeyExW(HKEY hKey,
+ LPCWSTR lpFile,
+ LPSECURITY_ATTRIBUTES lpSecurityAttributes,
+ DWORD Flags)
+{
+ FIXME("RegSaveKeyExW() not implemented!\n");
+ return ERROR_INVALID_PARAMETER;
+}
+
+
+/************************************************************************
* RegSetKeySecurity
*
* @implemented
Modified: trunk/reactos/include/psdk/winreg.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/winreg.h?rev=…
==============================================================================
--- trunk/reactos/include/psdk/winreg.h [iso-8859-1] (original)
+++ trunk/reactos/include/psdk/winreg.h [iso-8859-1] Thu Feb 5 07:47:51 2009
@@ -93,6 +93,8 @@
LONG WINAPI RegDeleteValueW(HKEY,LPCWSTR);
#if (_WIN32_WINNT >= 0x0500)
LONG WINAPI RegDisablePredefinedCache(VOID);
+LONG WINAPI RegSaveKeyExA(HKEY,LPCSTR,LPSECURITY_ATTRIBUTES,DWORD);
+LONG WINAPI RegSaveKeyExW(HKEY,LPCWSTR,LPSECURITY_ATTRIBUTES,DWORD);
#endif
#if (_WIN32_WINNT >= 0x0600)
LONG WINAPI RegDisablePredefinedCacheEx(VOID);
@@ -188,6 +190,7 @@
#define RegReplaceKey RegReplaceKeyW
#define RegRestoreKey RegRestoreKeyW
#define RegSaveKey RegSaveKeyW
+#define RegSaveKeyEx RegSaveKeyExW
#if (_WIN32_WINNT >= 0x0600)
#define RegSetKeyValue RegSetKeyValueW
#endif
@@ -230,6 +233,7 @@
#define RegReplaceKey RegReplaceKeyA
#define RegRestoreKey RegRestoreKeyA
#define RegSaveKey RegSaveKeyA
+#define RegSaveKeyEx RegSaveKeyExA
#if (_WIN32_WINNT >= 0x0600)
#define RegSetKeyValue RegSetKeyValueA
#endif