Partager via


XblMultiplayerManagerGameSessionConstants

Retrieves the session constants associated with the game session.

Syntax

const XblMultiplayerSessionConstants* XblMultiplayerManagerGameSessionConstants(  
)  

Parameters

Return value

Type: const XblMultiplayerSessionConstants*

A pointer to the session constants for the game session, or null if a game session doesn't exist. The memory for the returned pointer remains valid until the next call to XblMultiplayerManagerDoWork.

Remarks

This function retrieves a pointer to the session constants for a game session, if the game session exists for the lobby session in Multiplayer Manager. The session constants contain constants, such as session visibility and session capabilities, defined by the session template used for the game session. Unlike session properties, session constants can only be set through the session template, and are set at the time the game session is created. For more information about session constants, see Multiplayer Session advanced topics.

Requirements

Header: multiplayer_manager_c.h

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

See also

multiplayer_manager_c
XblMultiplayerManagerGameSessionPropertiesJson
XblMultiplayerManagerGameSessionSessionReference