Commit in reactos/lib/userenv on MAIN
directory.c+49-11.7 -> 1.8
userenv.def+21.11 -> 1.12
+51-1
2 modified files
Implement CopyProfileDirectoryA/W.

reactos/lib/userenv
directory.c 1.7 -> 1.8
diff -u -r1.7 -r1.8
--- directory.c	9 Nov 2004 15:02:35 -0000	1.7
+++ directory.c	28 Dec 2004 13:30:18 -0000	1.8
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: directory.c,v 1.7 2004/11/09 15:02:35 ion Exp $
+/* $Id: directory.c,v 1.8 2004/12/28 13:30:18 ekohl Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS system libraries
@@ -30,6 +30,54 @@
 
 /* FUNCTIONS ***************************************************************/
 
+BOOL STDCALL
+CopyProfileDirectoryA(LPCSTR lpSourcePath,
+		      LPCSTR lpDestinationPath,
+		      DWORD dwFlags)
+{
+  UNICODE_STRING SrcPath;
+  UNICODE_STRING DstPath;
+  NTSTATUS Status;
+  BOOL bResult;
+
+  Status = RtlCreateUnicodeStringFromAsciiz(&SrcPath,
+                                            (LPSTR)lpSourcePath);
+  if (!NT_SUCCESS(Status))
+    {
+      SetLastError (RtlNtStatusToDosError (Status));
+      return FALSE;
+    }
+
+  Status = RtlCreateUnicodeStringFromAsciiz(&DstPath,
+                                            (LPSTR)lpDestinationPath);
+  if (!NT_SUCCESS(Status))
+    {
+      RtlFreeUnicodeString(&SrcPath);
+      SetLastError (RtlNtStatusToDosError (Status));
+      return FALSE;
+    }
+
+  bResult = CopyProfileDirectoryW(SrcPath.Buffer,
+                                  DstPath.Buffer,
+                                  dwFlags);
+
+  RtlFreeUnicodeString(&DstPath);
+  RtlFreeUnicodeString(&SrcPath);
+
+  return bResult;
+}
+
+
+BOOL STDCALL
+CopyProfileDirectoryW(LPCWSTR lpSourcePath,
+		      LPCWSTR lpDestinationPath,
+		      DWORD dwFlags)
+{
+  /* FIXME: dwFlags are ignored! */
+  return CopyDirectory(lpDestinationPath, lpSourcePath);
+}
+
+
 BOOL
 CopyDirectory (LPCWSTR lpDestinationPath,
 	       LPCWSTR lpSourcePath)

reactos/lib/userenv
userenv.def 1.11 -> 1.12
diff -u -r1.11 -r1.12
--- userenv.def	5 May 2004 15:29:15 -0000	1.11
+++ userenv.def	28 Dec 2004 13:30:18 -0000	1.12
@@ -11,6 +11,8 @@
 DeleteItemW@16 @108 NONAME
 CreateUserProfileA@8 @109 NONAME
 CreateUserProfileW@8 @110 NONAME
+CopyProfileDirectoryA@12 @111 NONAME
+CopyProfileDirectoryW@12 @112 NONAME
 AddDesktopItemA@32 @113 NONAME
 AddDesktopItemW@32 @114 NONAME
 DeleteDesktopItemA@8 @115 NONAME
CVSspam 0.2.8