Freigeben über


XblMultiplayerQuerySessionsResult

Gets the results of a session query.

Syntax

HRESULT XblMultiplayerQuerySessionsResult(  
         XAsyncBlock* async,  
         size_t sessionCount,  
         XblMultiplayerSessionQueryResult* sessions  
)  

Parameters

async   _In_
Type: XAsyncBlock*

The AsyncBlock for this operation.

sessionCount   _In_
Type: size_t

The number of sessions that matched the query. Use XblMultiplayerQuerySessionsResultCount to get the count required.

sessions   _Out_writes_(sessionCount)
Type: XblMultiplayerSessionQueryResult*

A caller allocated array to pass back the session query results.

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