IXtfFileIOClient::CopyFiles Method

Copies files between two locations on a development console and returns information about the operation.

Syntax

public:
HRESULT CopyFiles(
         LPCWSTR pszSearchPattern,
         DWORD dwIncludeAttributes,
         DWORD dwExcludeAttributes,
         DWORD dwRecursionLevels,
         LPCWSTR pszDstFileName,
         DWORD dwFlags,
         IXtfCopyFileCallback *pCallback
)  

Parameters

pszSearchPattern
Type: LPCWSTR 

Pointer to the search pattern that defines the filenames of the source files to copy.

dwIncludeAttributes
Type: DWORD 

Bitwise-OR combination of file attributes to include for the copy.

dwExcludeAttributes
Type: DWORD 

Bitwise-OR combination of file attributes to exclude from the copy.

dwRecursionLevels
Type: DWORD 

Number of directory levels to recurse for the copy.

pszDstFileName
Type: LPCWSTR 

Pointer to the filenames of the target files to copy to.

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.

Return value

Type: HRESULT 

HRESULT success or error code.

Requirements

Header: Declared in xtffileio.h.

Library: Use xtffileio.lib.

See also

Reference

IXtfFileIOClient Interface

IXtfFileIOClient Members

XtfFileIO