共用方式為


XblMultiplayerSessionReferenceCreate

Creates an XblMultiplayerSessionReference object from a service configuration ID (SCID), session template name, and session name.

Syntax

XblMultiplayerSessionReference XblMultiplayerSessionReferenceCreate(  
         const char* scid,  
         const char* sessionTemplateName,  
         const char* sessionName  
)  

Parameters

scid   _In_z_
Type: char*

The SCID that the session is a part of. The SCID is case-sensitive, so paste it directly from Partner Center.

sessionTemplateName   _In_z_
Type: char*

The name of the session template.

sessionName   _In_z_
Type: char*

The name of the session.

Return value

Type: XblMultiplayerSessionReference

A reference to the multiplayer session.

Requirements

Header: multiplayer_c.h

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

See also

multiplayer_c