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

Syntax

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.142.C.lib or Microsoft.Xbox.Services.143.C.lib

See also

multiplayer_c
Last modified on October 29, 2026