> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XblMultiplayerGetSessionByHandleResult

> XblMultiplayerGetSessionByHandleResult

# XblMultiplayerGetSessionByHandleResult

XblMultiplayerGetSessionByHandleAsync 呼び出しの結果を取得します。

## 構文

```cpp theme={null}
HRESULT XblMultiplayerGetSessionByHandleResult(  
         XAsyncBlock* async,  
         XblMultiplayerSessionHandle* handle  
)  
```

### パラメーター

*async*   \_In\_\
型: XAsyncBlock\*

この操作用の AsyncBlock。

*handle*   \_Out\_\
型: [XblMultiplayerSessionHandle\*](/reference/live/xsapi-c/multiplayer_c/handles/xblmultiplayersessionhandle)

ローカル マルチプレイヤー セッション オブジェクトの新しいインスタンスへのハンドルを返します。呼び出し元は [XblMultiplayerSessionCloseHandle](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionclosehandle) で解放する必要があります。

### 戻り値

型: HRESULT

この API 操作の HRESULT 戻り値コード。

## 解説

セッションが存在しない場合、この API は \_\_HRESULT\_FROM\_WIN32(ERROR\_RESOURCE\_DATA\_NOT\_FOUND) と null の XblMultiplayerSessionHandle を返します。

## 要件

**ヘッダー:** multiplayer\_c.h

**ライブラリ:** Microsoft.Xbox.Services.14x.GDK.C.lib

## 関連項目

[multiplayer\_c](/reference/live/xsapi-c/multiplayer_c/multiplayer_c_members)
