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

# SetProtectedResourceSession

> 명령 목록의 이후 명령이 보호된 리소스에 액세스할 수 있는지 여부를 지정합니다.

명령 목록의 이후 명령이 보호된 리소스에 액세스할 수 있는지 여부를 지정합니다. 기본적으로 어떤 보호된 리소스도 활성화되지 않습니다. 유효한 세션으로 **SetProtectedResourceSession**을 호출한 후에는 동일한 유형의 보호된 리소스가 해당 세션을 참조할 수 있습니다. **NULL**로 **SetProtectedResourceSession**을 호출한 후에는 어떤 보호된 리소스도 액세스할 수 없습니다.

## 구문

```cpp theme={null}
void SetProtectedResourceSession(
    ID3D12ProtectedResourceSession  pProtectedResourceSession
)
```

### 매개 변수

*pProtectedResourceSession \[in, optional]*<br />형식: ID3D12ProtectedResourceSession \*

**ID3D12ProtectedResourceSession**에 대한 선택적 포인터입니다. [ID3D12Device4::CreateProtectedResourceSession](/reference/graphics/d3d12/interfaces/id3d12device4/methods/id3d12device4_createprotectedresourcesession_public)을 호출하여 **ID3D12ProtectedResourceSession**을 얻을 수 있습니다.

### 반환 값

형식: void

설정되면 주어진 세션으로 보호된 리소스에 액세스할 수 있음을 나타냅니다. 보호된 리소스에 대한 액세스는 유효한 세션으로 **SetProtectedResourceSession**이 호출된 후에만 발생할 수 있습니다. 이 메서드를 호출하면 명령 목록 상태가 지워집니다. **NULL**을 전달하면 어떤 보호된 리소스도 액세스할 수 없습니다.

## 요구 사항

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

## 함께 보기

[ID3D12GraphicsCommandList3](/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist3/id3d12graphicscommandlist3_public)


## Related topics

- [ID3D12ProtectedResourceSession](/ko/reference/graphics/d3d12/interfaces/id3d12protectedresourcesession/id3d12protectedresourcesession_public.md)
- [D3D12_PROTECTED_RESOURCE_SESSION_DESC](/ko/reference/graphics/d3d12/structs/d3d12_protected_resource_session_desc_public.md)
- [CreateProtectedResourceSession (XBOX Series 콘솔)](/ko/reference/graphics/d3d12/interfaces/id3d12device4/methods/id3d12device4_createprotectedresourcesession_public.md)
- [D3D12_PROTECTED_RESOURCE_SESSION_DESC1](/ko/reference/graphics/d3d12/structs/d3d12_protected_resource_session_desc1_public.md)
- [ID3D12ProtectedResourceSession1](/ko/reference/graphics/d3d12/interfaces/id3d12protectedresourcesession1/id3d12protectedresourcesession1_public.md)
