Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.3 KiB

  1. #ifndef __METAEXP_FILECOPY__
  2. #define __METAEXP_FILECOPY__
  3. #include <iadmw.h> // COM Interface header file.
  4. typedef struct _XCOPYTASKITEM
  5. {
  6. WCHAR* pwszMBPath;
  7. WCHAR* pwszSourcePath;
  8. WCHAR* pwszDestPath;
  9. _XCOPYTASKITEM *pNextItem;
  10. }
  11. XCOPYTASKITEM;
  12. typedef XCOPYTASKITEM* PXCOPYTASKITEM;
  13. DWORD XCOPY(WCHAR* source, WCHAR* target, WCHAR* args = NULL);
  14. DWORD XCOPY(PXCOPYTASKITEM *pTaskItemList, WCHAR* args = NULL);
  15. HRESULT CopyContent(COSERVERINFO * pCoServerInfo, WCHAR* pwszSourceMBKeyPath,
  16. WCHAR* pwszRootFolderPath, PXCOPYTASKITEM *ppTaskItemList, BOOL bEnumFoldersOnly = false );
  17. HRESULT BuildXCOPYTaskList(IMSAdminBase* pIMeta, METADATA_HANDLE hKey, WCHAR* pwszKeyPath, WCHAR* pwszRootFolderPath,
  18. COSERVERINFO * pCoServerInfo, PXCOPYTASKITEM *ppTaskItemList );
  19. VOID FreeXCOPYTaskList(PXCOPYTASKITEM pList);
  20. DWORD BuildAdminSharePathName(const WCHAR* pwszPath, const WCHAR* pwszServer,
  21. WCHAR* pwszAdminPath, DWORD dwPathBuffer );
  22. DWORD AddListItem( PXCOPYTASKITEM *ppTaskItemList , const PXCOPYTASKITEM pTaskItem );
  23. DWORD CannonicalizePath(WCHAR *pszPath);
  24. DWORD CreateVirtualRootPath(const WCHAR* pwszMDKeyPath, const WCHAR *pwszRootFolderPath,
  25. WCHAR *pwszPath, DWORD dwSize);
  26. #endif