Skip to main content

XblMultiplayerSessionSetLocked

Sets if a session is locked or not. If locked, members that leave the session will be able to come back into the session, allowing no additional users to take that spot.

Syntax

Parameters

handle   _In_
Type: XblMultiplayerSessionHandle
Handle to the multiplayer session. locked   _In_
Type: bool
Set true, if the session should be lock, false otherwise.

Return value

Type: void

Remarks

If the session is locked, it must also be set to closed.

Requirements

Header: multiplayer_c.h Library: Microsoft.Xbox.Services.14x.GDK.C.lib

See also

multiplayer_c
Last modified on August 4, 2026