XblMultiplayerSessionPropertiesSetJoinRestriction

Restricts who can join "open" sessions. (Has no effect on reservations, which means it has no impact on "private" and "visible" sessions.)

Syntax

void XblMultiplayerSessionPropertiesSetJoinRestriction(  
         XblMultiplayerSessionHandle handle,  
         XblMultiplayerSessionRestriction joinRestriction  
)  

Parameters

handle   _In_
Type: XblMultiplayerSessionHandle

Handle to the multiplayer session.

joinRestriction   _In_
Type: XblMultiplayerSessionRestriction

New join restriction value.

Return value

Type: void

Remarks

Defaults to "none". If "local", only users whose token's DeviceId matches someone else already in the session and "active": true. If "followed", only local users (as defined above) and users who are followed by an existing (not reserved) member of the session can join without a reservation.

Requirements

Header: multiplayer_c.h

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

See also

multiplayer_c