IXtfCopyFileCallback::OnEndFileCopy Method

Called when a file finishes copying between two locations on a development console.

Syntax

public:
HRESULT OnEndFileCopy(
         LPCWSTR pszRootDirectory,
         LPCWSTR pszSearchPattern,
         LPCXTFFILEINFO pSrcFileInfo,
         LPCWSTR pszDstFileName,
         HRESULT hrErrorCode
)  

Parameters

pszRootDirectory
Type: LPCWSTR

A pointer to the root directory path for the copy.

pszSearchPattern
Type: LPCWSTR

A pointer to the search pattern that defines the filenames of the source files to copy. This parameter accepts wildcard characters, to match strings with the indicated pattern.

pSrcFileInfo
Type: LPCXTFFILEINFO

A pointer to an XTFFILEINFO structure that contains information about the file copied.

pszDstFileName
Type: LPCWSTR

A pointer to the filename of the target file.

hrErrorCode
Type: HRESULT

An HRESULT success or error code.

Return value

Type: HRESULT

Returns S_OK if successful; otherwise, returns an HRESULT error code.

Remarks

This function is called by the IXtfFileIOClient::CopyFiles function once, at the end of a file copying operation. The information specified in the callback function includes the total number of bytes transferred in the XTFFILEINFO structure. You can check this function's hrErrorCode parameter to identify any errors that may have occurred during the file copying operation.

Requirements

Header: xtffileio.h

Library: xtffileio.lib

Supported platforms: Windows (for Xbox console tools)

See also

IXtfCopyFileCallback Interface
XtfFileIO