mirror of
https://github.com/reactos/reactos.git
synced 2024-07-19 10:56:09 +00:00
Implement CopyProfileDirectoryA/W.
svn path=/trunk/; revision=12380
This commit is contained in:
parent
59951cd18f
commit
9af695bf7b
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* 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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS system libraries
|
* PROJECT: ReactOS system libraries
|
||||||
|
@ -30,6 +30,54 @@
|
||||||
|
|
||||||
/* FUNCTIONS ***************************************************************/
|
/* 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
|
BOOL
|
||||||
CopyDirectory (LPCWSTR lpDestinationPath,
|
CopyDirectory (LPCWSTR lpDestinationPath,
|
||||||
LPCWSTR lpSourcePath)
|
LPCWSTR lpSourcePath)
|
||||||
|
|
|
@ -11,6 +11,8 @@ DeleteItemA@16 @107 NONAME
|
||||||
DeleteItemW@16 @108 NONAME
|
DeleteItemW@16 @108 NONAME
|
||||||
CreateUserProfileA@8 @109 NONAME
|
CreateUserProfileA@8 @109 NONAME
|
||||||
CreateUserProfileW@8 @110 NONAME
|
CreateUserProfileW@8 @110 NONAME
|
||||||
|
CopyProfileDirectoryA@12 @111 NONAME
|
||||||
|
CopyProfileDirectoryW@12 @112 NONAME
|
||||||
AddDesktopItemA@32 @113 NONAME
|
AddDesktopItemA@32 @113 NONAME
|
||||||
AddDesktopItemW@32 @114 NONAME
|
AddDesktopItemW@32 @114 NONAME
|
||||||
DeleteDesktopItemA@8 @115 NONAME
|
DeleteDesktopItemA@8 @115 NONAME
|
||||||
|
|
|
@ -52,6 +52,8 @@ BOOL WINAPI AddItemA (LPCSTR, BOOL, LPCSTR, LPCSTR, LPCSTR, INT, LPCSTR, WORD, I
|
||||||
BOOL WINAPI AddItemW (LPCWSTR, BOOL, LPCWSTR, LPCWSTR, LPCWSTR, INT, LPCWSTR, WORD, INT);
|
BOOL WINAPI AddItemW (LPCWSTR, BOOL, LPCWSTR, LPCWSTR, LPCWSTR, INT, LPCWSTR, WORD, INT);
|
||||||
BOOL WINAPI DeleteItemA (LPCSTR, BOOL, LPCSTR, BOOL);
|
BOOL WINAPI DeleteItemA (LPCSTR, BOOL, LPCSTR, BOOL);
|
||||||
BOOL WINAPI DeleteItemW (LPCWSTR, BOOL, LPCWSTR, BOOL);
|
BOOL WINAPI DeleteItemW (LPCWSTR, BOOL, LPCWSTR, BOOL);
|
||||||
|
BOOL WINAPI CopyProfileDirectoryA(LPCSTR, LPCSTR, DWORD);
|
||||||
|
BOOL WINAPI CopyProfileDirectoryW(LPCWSTR, LPCWSTR, DWORD);
|
||||||
/* end private */
|
/* end private */
|
||||||
BOOL WINAPI LoadUserProfileA (HANDLE, LPPROFILEINFOA);
|
BOOL WINAPI LoadUserProfileA (HANDLE, LPPROFILEINFOA);
|
||||||
BOOL WINAPI LoadUserProfileW (HANDLE, LPPROFILEINFOW);
|
BOOL WINAPI LoadUserProfileW (HANDLE, LPPROFILEINFOW);
|
||||||
|
@ -80,6 +82,7 @@ typedef LPPROFILEINFOW LPPROFILEINFO;
|
||||||
#define DeleteGroup DeleteGroupW
|
#define DeleteGroup DeleteGroupW
|
||||||
#define AddItem AddItemW
|
#define AddItem AddItemW
|
||||||
#define DeleteItem DeleteItemW
|
#define DeleteItem DeleteItemW
|
||||||
|
#define CopyProfileDirectory CopyProfileDirectoryW
|
||||||
/* end private */
|
/* end private */
|
||||||
#define LoadUserProfile LoadUserProfileW
|
#define LoadUserProfile LoadUserProfileW
|
||||||
#define GetAllUsersProfileDirectory GetAllUsersProfileDirectoryW
|
#define GetAllUsersProfileDirectory GetAllUsersProfileDirectoryW
|
||||||
|
@ -97,6 +100,7 @@ typedef LPPROFILEINFOA LPPROFILEINFO;
|
||||||
#define DeleteGroup DeleteGroupA
|
#define DeleteGroup DeleteGroupA
|
||||||
#define AddItem AddItemA
|
#define AddItem AddItemA
|
||||||
#define DeleteItem DeleteItemA
|
#define DeleteItem DeleteItemA
|
||||||
|
#define CopyProfileDirectory CopyProfileDirectoryA
|
||||||
/* end private */
|
/* end private */
|
||||||
#define LoadUserProfile LoadUserProfileA
|
#define LoadUserProfile LoadUserProfileA
|
||||||
#define GetAllUsersProfileDirectory GetAllUsersProfileDirectoryA
|
#define GetAllUsersProfileDirectory GetAllUsersProfileDirectoryA
|
||||||
|
|
Loading…
Reference in a new issue