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

# XblMultiplayerSessionSetClosed

> XblMultiplayerSessionSetClosed

# XblMultiplayerSessionSetClosed

If set to true, makes the session "closed", meaning that new users will not be able to join unless they already have a reservation.

## Syntax

```cpp theme={null}
void XblMultiplayerSessionSetClosed(  
         XblMultiplayerSessionHandle handle,  
         bool closed  
)  
```

### Parameters

*handle*   \_In\_\
Type: [XblMultiplayerSessionHandle](/reference/live/xsapi-c/multiplayer_c/handles/xblmultiplayersessionhandle)

Handle to the multiplayer session.

*closed*   \_In\_\
Type: bool

True if the session should be closed, false otherwise.

### Return value

Type: void

## Requirements

**Header:** multiplayer\_c.h

**Library:** Microsoft.Xbox.Services.14x.GDK.C.lib

## See also

[multiplayer\_c](/reference/live/xsapi-c/multiplayer_c/multiplayer_c_members)


## Related topics

- [XblMultiplayerSessionSetLocked](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionsetlocked.md)
- [XblMultiplayerSearchHandleGetSessionClosed](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersearchhandlegetsessionclosed.md)
- [XblMultiplayerSessionSetSessionChangeSubscription](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionsetsessionchangesubscription.md)
- [XblMultiplayerSessionConstantsSetMaxMembersInSession](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionconstantssetmaxmembersinsession.md)
- [XblMultiplayerSessionSetMatchmakingTargetSessionConstantsJson](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionsetmatchmakingtargetsessionconstantsjson.md)
