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

# GetSessionStatus

> Gets the status of the protected session.

Gets the status of the protected session.

## Syntax

```cpp theme={null}
D3D12_PROTECTED_SESSION_STATUS GetSessionStatus(
)
```

### Parameters

### Return value

Type: D3D12\_PROTECTED\_SESSION\_STATUS

The status of the protected session. If the returned value is [D3D12\_PROTECTED\_SESSION\_STATUS\_INVALID](/reference/graphics/d3d12/enums/d3d12_protected_session_status_public), then you need to wait for a uniqueness value bump to reuse the resource if the session is an [ID3D12ProtectedResourceSession](/reference/graphics/d3d12/interfaces/id3d12protectedresourcesession/id3d12protectedresourcesession_public).

## Requirements

**Header:** d3d12\_xs.h or d3d12\_x.h<br />**Library:** d3d12\_xs.lib or d3d12\_x.lib<br />**Supported Platforms**: XBOX Series consoles and XBOX One family

## See Also

[ID3D12ProtectedSession](/reference/graphics/d3d12/interfaces/id3d12protectedsession/id3d12protectedsession_public)


## Related topics

- [Multiplayer FAQ and troubleshooting](/services/xbox-services/multiplayer/mpsd/concepts/live-multiplayer-2015-faq.md)
- [Multiplayer session status codes](/services/xbox-services/multiplayer/mpsd/how-to/live-mpsd-status-codes.md)
- [GetStatusFence](/reference/graphics/d3d12/interfaces/id3d12protectedsession/methods/id3d12protectedsession_getstatusfence_public.md)
- [XblWriteSessionStatus](/reference/live/xsapi-c/multiplayer_c/enums/xblwritesessionstatus.md)
- [XblMultiplayerWriteSessionResult](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayerwritesessionresult.md)
