> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IXtfFileIOClient::FindFiles 메서드

> IXtfFileIOClient::FindFiles 메서드

# IXtfFileIOClient::FindFiles 메서드

개발 콘솔에서 파일을 검색합니다.

<a id="syntaxSection" />

## 구문

```cpp theme={null}
public:
HRESULT FindFiles(
         LPCWSTR pszSearchPattern,
         DWORD dwIncludeAttributes,
         DWORD dwExcludeAttributes,
         DWORD dwRecursionLevels,
         DWORD dwFlags,
         IXtfFindFileCallback *pCallback
)  
```

<a id="ID4EH" />

### 매개 변수

*pszSearchPattern*\
형식: LPCWSTR

검색할 원본 파일의 파일 이름을 정의하는 검색 패턴에 대한 포인터입니다.\
이 매개 변수는 지정된 패턴과 일치하는 문자열을 위해 와일드카드 문자를 허용합니다.

*dwIncludeAttributes*\
형식: DWORD

검색에 포함할 파일 특성의 비트별 OR 조합입니다. 가능한 특성 목록은 [파일 특성 상수](https://msdn.microsoft.com/library/windows/desktop/gg258117\(v=vs.85\).aspx)를 참조하세요.

*dwExcludeAttributes*\
형식: DWORD

검색에서 제외할 파일 특성의 비트별 OR 조합입니다. 가능한 특성 목록은 [파일 특성 상수](https://msdn.microsoft.com/library/windows/desktop/gg258117\(v=vs.85\).aspx)를 참조하세요.

*dwRecursionLevels*\
형식: DWORD

검색에서 재귀할 디렉터리 수준 수입니다.

*dwFlags*\
형식: DWORD

파일을 검색하는 방법을 지정하는 플래그의 비트별 OR 조합입니다.

*pCallback*\
형식: IXtfFindFileCallback \*

파일이 발견될 때 호출할 [IXtfFindFileCallback](/reference/tools/xtf/xtffileio/classes/IXtfFindFileCallback/ixtffindfilecallback-xtffileio-xbox-microsoft-t) 콜백에 대한 포인터입니다.

<a id="ID4EQ" />

### 반환 값

형식: HRESULT

HRESULT 성공 또는 오류 코드입니다.

<a id="requirements" />

## 요구 사항

**헤더:** xtffileio.h

**라이브러리:** xtffileio.lib

**지원 플랫폼:** Windows(XBOX 콘솔 도구용)

<a id="ID4EZB" />

## 설명

파일을 찾을 때 *dwIncludeAttributes* 및 *dwExcludeAttributes*는 어떤 파일이 반환되는지에 대한 필터 역할을 하며, 파일을 찾을 때 어떤 파일 특성이 반환되는지에 대한 필터 역할은 하지 않습니다. [IXtfFindFileCallback](/reference/tools/xtf/xtffileio/classes/IXtfFindFileCallback/ixtffindfilecallback-xtffileio-xbox-microsoft-t)의 **onfindfile** 함수 호출은 반환되는 각 파일에 대해 호출됩니다. 콜백 함수는 발견된 각 파일에 대한 정보를 반환합니다. 반환된 정보를 사용하여 진행률 정보를 반환할 수 있습니다.

## 함께 보기

<a id="ID4E2B" />

[IXtfFileIOClient 인터페이스](/reference/tools/xtf/xtffileio/classes/IXtfFileIOClient/ixtffileioclient-xtffileio-xbox-microsoft-t)\
[XtfFileIO](/reference/tools/xtf/xtffileio/xtffileio-xbox-microsoft-n)\
[IXtfFindFileCallback](/reference/tools/xtf/xtffileio/classes/IXtfFindFileCallback/ixtffindfilecallback-xtffileio-xbox-microsoft-t)


## Related topics

- [IXtfFindFileCallback::OnFoundFile 메서드](/ko/reference/tools/xtf/xtffileio/classes/IXtfFindFileCallback/methods/onfoundfile-ixtffindfilecallback-xtffileio-xbox-microsoft-m.md)
- [IXtfFileIOClient::DeleteFiles 메서드](/ko/reference/tools/xtf/xtffileio/classes/IXtfFileIOClient/methods/deletefiles-ixtffileioclient-xtffileio-xbox-microsoft-m.md)
- [IXtfFileIOClient::SetFileAttributes 메서드](/ko/reference/tools/xtf/xtffileio/classes/IXtfFileIOClient/methods/setfileattributes-ixtffileioclient-xtffileio-xbox-microsoft-m.md)
- [IXtfFileIOClient::RemoveDirectory 메서드](/ko/reference/tools/xtf/xtffileio/classes/IXtfFileIOClient/methods/removedirectory-ixtffileioclient-xtffileio-xbox-microsoft-m.md)
- [IXtfFileIOClient::CopyFiles 메서드](/ko/reference/tools/xtf/xtffileio/classes/IXtfFileIOClient/methods/copyfiles-ixtffileioclient-xtffileio-xbox-microsoft-m.md)
