XblMultiplayerQuerySessionsAsync

Retrieve a list of sessions with various filters.

Syntax

HRESULT XblMultiplayerQuerySessionsAsync(  
         XblContextHandle xblContext,  
         const XblMultiplayerSessionQuery* sessionQuery,  
         XAsyncBlock* async  
)  

Parameters

xblContext   _In_
Type: XblContextHandle

Xbox live context for the local user.

sessionQuery   _In_
Type: XblMultiplayerSessionQuery*

A session query object that defines the parameters for the query.

async   _In_
Type: XAsyncBlock*

The AsyncBlock for this operation.

Return value

Type: HRESULT

HRESULT return code for this API operation.

REST Call

Calls V102 GET /serviceconfigs/{scid}/sessions or /serviceconfigs/{scid}/sessiontemplates/{session-template-name}/sessions

Requirements

Header: multiplayer_c.h

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

See also

multiplayer_c