IXtfFindFileCallback::OnFoundFile Method

Called when a file is found during a find or delete operation.

Syntax

public:
HRESULT OnFoundFile(
         LPCWSTR pszRootDirectory,
         LPCWSTR pszSearchPattern,
         LPCXTFFILEINFO pFileInfo
)  

Parameters

pszRootDirectory
Type: LPCWSTR 

Pointer to the root directory path for the operation.

pszSearchPattern
Type: LPCWSTR 

Pointer to the search pattern that defines the filenames of the files for the operation.

pFileInfo
Type: LPCXTFFILEINFO 

Pointer to an XTFFILEINFO structure that contains information about the located file.

Return value

Type: HRESULT 

HRESULT success or error code.

Requirements

Header: Declared in xtffileio.h.

Library: Use xtffileio.lib.