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

# D3D12_PROTECTED_SESSION_STATUS

> 定义指定受保护会话状态的常量。

定义指定受保护会话状态的常量。

## 语法

```cpp theme={null}
typedef enum D3D12_PROTECTED_SESSION_STATUS
{
    D3D12_PROTECTED_SESSION_STATUS_OK = 0,
    D3D12_PROTECTED_SESSION_STATUS_INVALID = 1
} D3D12_PROTECTED_SESSION_STATUS
```

## 常量

| 常量                                         | 说明              |
| ------------------------------------------ | --------------- |
| D3D12\_PROTECTED\_SESSION\_STATUS\_OK      | 指示受保护会话处于有效状态。  |
| D3D12\_PROTECTED\_SESSION\_STATUS\_INVALID | 指示受保护会话未处于有效状态。 |

## 注解

## 要求

**头文件：** d3d12\_xs.h 或 d3d12\_x.h<br />**库：** d3d12\_xs.lib 或 d3d12\_x.lib<br />**支持的平台**：XBOX Series 主机和 XBOX One 系列

## 另请参阅


## Related topics

- [GetSessionStatus](/zh-CN/reference/graphics/d3d12/interfaces/id3d12protectedsession/methods/id3d12protectedsession_getsessionstatus_public.md)
- [D3D12_PROTECTED_RESOURCE_SESSION_DESC](/zh-CN/reference/graphics/d3d12/structs/d3d12_protected_resource_session_desc_public.md)
- [D3D12_PROTECTED_RESOURCE_SESSION_DESC1](/zh-CN/reference/graphics/d3d12/structs/d3d12_protected_resource_session_desc1_public.md)
- [D3D12_PROTECTED_RESOURCE_SESSION_FLAGS](/zh-CN/reference/graphics/d3d12/enums/d3d12_protected_resource_session_flags_public.md)
- [ID3D12ProtectedSession](/zh-CN/reference/graphics/d3d12/interfaces/id3d12protectedsession/id3d12protectedsession_public.md)
