Skip to main content

XblMultiplayerSetActivityAsync

Sets the passed session as the user’s current activity, which will be displayed in XBOX dashboard user experiences (e.g. friends and gamercard) as associated with the currently running title. If the session is joinable, it may also be displayed as such in those user experiences.

Syntax

Parameters

xblContext   _In_
Type: XblContextHandle
XBOX live context for the local user. sessionReference   _In_
Type: XblMultiplayerSessionReference*
An XblMultiplayerSessionReference for the session of the activity. async   _In_
Type: XAsyncBlock*
The AsyncBlock for this operation.

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 20, 2026