Partager via


XblMultiplayerSessionCurrentUserSetRoles

Set the role info of the local member. The member must first be joined to the session.

Syntax

HRESULT XblMultiplayerSessionCurrentUserSetRoles(  
         XblMultiplayerSessionHandle handle,  
         const XblMultiplayerSessionMemberRole* roles,  
         size_t rolesCount  
)  

Parameters

handle   _In_
Type: XblMultiplayerSessionHandle

Handle to the multiplayer session.

roles   _In_
Type: XblMultiplayerSessionMemberRole*

Indicates a collection of roles for the user.

rolesCount   _In_
Type: size_t

The size of the role array.

Return value

Type: HRESULT

HRESULT return code for this API operation.

Requirements

Header: multiplayer_c.h

Library: Microsoft.Xbox.Services.141.GSDK.C.lib

See also

multiplayer_c