Partager via


XblMultiplayerGetSessionByHandleResult

Gets the result of an XblMultiplayerGetSessionByHandleAsync call.

Syntax

HRESULT XblMultiplayerGetSessionByHandleResult(  
         XAsyncBlock* async,  
         XblMultiplayerSessionHandle* handle  
)  

Parameters

async   _In_
Type: XAsyncBlock*

The AsyncBlock for this operation.

handle   _Out_
Type: XblMultiplayerSessionHandle*

Passes back a handle to a new instance of a local multiplayer session object. It must be release by the caller with XblMultiplayerSessionCloseHandle.

Return value

Type: HRESULT

HRESULT return code for this API operation.

Remarks

If the session does not exist, this API will return __HRESULT_FROM_WIN32(ERROR_RESOURCE_DATA_NOT_FOUND) and a null XblMultiplayerSessionHandle.

Requirements

Header: multiplayer_c.h

Library: Microsoft.Xbox.Services.141.GSDK.C.lib

See also

multiplayer_c