Skip to main content

XblMultiplayerSessionCurrentUserSetRoles

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.14x.GDK.C.lib

See also

multiplayer_c
Last modified on August 4, 2026