共用方式為


XblMultiplayerSessionCurrentUserSetGroups

Sets a string vector of group names for the current user indicating which groups that user was part of during a multiplayer session.

Syntax

HRESULT XblMultiplayerSessionCurrentUserSetGroups(  
         XblMultiplayerSessionHandle handle,  
         const char** groups,  
         size_t groupsCount  
)  

Parameters

handle   _In_
Type: XblMultiplayerSessionHandle

Handle to the multiplayer session.

groups   _In_reads_(groupsCount)
Type: char**

Array of group names.

groupsCount   _In_
Type: size_t

Size of the groups array.

Return value

Type: HRESULT

HRESULT return code for this API operation.

Requirements

Header: multiplayer_c.h

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

See also

multiplayer_c