Batch copies files between two locations on a development console and returns information about the operation.
public:
HRESULT CopyFiles(
LPCWSTR pszRootDirectory,
LPCWSTR *rgszRootDirectoryRelativeFiles,
DWORD cRootDirectoryRelativeFiles,
LPCWSTR pszDstDirectoryName,
DWORD dwFlags,
IXtfCopyFileCallback *pCallback
)
pszRootDirectory
Type: LPCWSTR
Pointer to the root directory for the batch copy.
rgszRootDirectoryRelativeFiles
Type: LPCWSTR *
Pointer to the relative filepath to the first file for the batch copy.
cRootDirectoryRelativeFiles
Type: DWORD
Number of files for the batch copy.
pszDstDirectoryName
Type: LPCWSTR
Pointer to the destination directory name for the batch copy.
dwFlags
Type: DWORD
Flags that specify how to copy the files. This is a bitwise-OR combination of the macros listed in the following table.
| Value | Macro | Description |
|---|---|---|
| 0x80000000 | XTFCOPYFILE_DEFER | Defer the file copy. |
pCallback
Type: IXtfCopyFileCallback *
Pointer to the IXtfCopyFileCallback callback to call when the status of the copy changes.
Type: HRESULT
HRESULT success or error code.
Header: Declared in xtffileio.h.
Library: Use xtffileio.lib.