> ## 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.

# FindValue

> 제공된 키와 정확히 일치하는 키를 가진 캐시의 항목을 조회합니다.

제공된 키와 정확히 일치하는 키를 가진 캐시의 항목을 조회합니다.

함수를 두 번 호출합니다. 첫 번째는 값의 크기를 검색하기 위해, 두 번째는 데이터를 검색하기 위해서입니다. 인메모리 임시 저장소로 이 호출 패턴을 효율적으로 만듭니다.

## 구문

```cpp theme={null}
HRESULT FindValue(
    const void  pKey,
    UINT KeySize,
    void  pValue,
    UINT  pValueSize
)
```

### 매개 변수

*pKey*\
형식: const void \*

조회할 항목의 키입니다.

*KeySize*\
형식: UINT

키의 크기(바이트 단위)입니다.

*pValue*\
형식: void \*

캐시된 항목을 받는 메모리 블록에 대한 포인터입니다.

*pValueSize*\
형식: UINT \*

캐시된 항목의 크기(바이트 단위)를 받는 **UINT**에 대한 포인터입니다.

### 반환 값

형식: HRESULT

함수가 성공하면 **S\_OK**를 반환합니다. 그렇지 않으면 [**HRESULT**](https://learn.microsoft.com/en-us/windows/desktop/com/structure-of-com-error-codes) [오류 코드](https://learn.microsoft.com/en-us/windows/win32/com/com-error-codes-10)를 반환합니다.

| 반환 값                                | 설명                                           |
| ----------------------------------- | -------------------------------------------- |
| DXGI\_ERROR\_CACHE\_HASH\_COLLISION | 제공된 키와 동일한 해시를 가진 항목이 있지만, 키가 정확히 일치하지 않습니다. |
| DXGI\_ERROR\_NOT\_FOUND             | 항목이 존재하지 않습니다.                               |

## 설명

## 요구 사항

**헤더:** d3d12\_xs.h 또는 d3d12\_x.h\
**라이브러리:** d3d12\_xs.lib 또는 d3d12\_x.lib\
**지원 플랫폼**: XBOX Series 콘솔 및 XBOX One 제품군

## 함께 보기

* [D3D12 셰이더 캐시 API](https://microsoft.github.io/DirectX-Specs/d3d/ShaderCache.html)


## Related topics

- [PartyNetwork::FindEndpointByUniqueIdentifier](/ko/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_findendpointbyuniqueidentifier.md)
- [IGameInput::FindDeviceFromId](/ko/reference/input/gameinput/interfaces/igameinput/methods/igameinput_finddevicefromid.md)
- [IGameInput::FindDeviceFromObject](/ko/reference/input/gameinput/deprecated/interfaces/igameinput/methods/igameinput_finddevicefromobject.md)
- [XblMultiplayerManagerFindMatch](/ko/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagerfindmatch.md)
- [IGameInput::FindDeviceFromPlatformString](/ko/reference/input/gameinput/interfaces/igameinput/methods/igameinput_finddevicefromplatformstring.md)
