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

# XblMultiplayerSetTransferHandleAsync

> XblMultiplayerSetTransferHandleAsync

# XblMultiplayerSetTransferHandleAsync

呼び出し元が元のセッションに対して持つアクセス権が、ターゲット セッションに拡張されます。

## 構文

```cpp theme={null}
HRESULT XblMultiplayerSetTransferHandleAsync(  
         XblContextHandle xblContext,  
         XblMultiplayerSessionReference targetSessionReference,  
         XblMultiplayerSessionReference originSessionReference,  
         XAsyncBlock* async  
)  
```

### パラメーター

*xblContext*   \_In\_\
型: [XblContextHandle](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/types_c/handles/xblcontexthandle.md)

ローカル ユーザーの XBOX live コンテキスト。

*targetSessionReference*   \_In\_\
型: [XblMultiplayerSessionReference](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/multiplayer_c/structs/xblmultiplayersessionreference.md)

アクセス権を拡張するセッションのターゲット XblMultiplayerSessionReference。

*originSessionReference*   \_In\_\
型: [XblMultiplayerSessionReference](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/multiplayer_c/structs/xblmultiplayersessionreference.md)

ターゲット セッションへのアクセスを付与する、元の XblMultiplayerSessionReference。

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

この操作の AsyncBlock。

### 戻り値

型: HRESULT

この API 操作の HRESULT リターン コード。

## 解説

たとえば、ロビー セッションとゲーム セッションを持つタイトルでは、タイトルはロビー セッション内にロビーからゲームへリンクする転送ハンドルを配置できます。ロビーに招待されたユーザーは、そのハンドルを使用してゲーム セッションにも参加できます。転送ハンドルは、ターゲット セッションが削除されると削除されます。

## 要件

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

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

## 関連項目

[multiplayer\_c](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/multiplayer_c/multiplayer_c_members.md)


## Related topics

- [XblMultiplayerSetTransferHandleResult](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersettransferhandleresult.md)
- [XblMultiplayerSetActivityAsync](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersetactivityasync.md)
- [XblMultiplayerActivitySetActivityAsync](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/multiplayer_activity_c/functions/xblmultiplayeractivitysetactivityasync.md)
- [XblMultiplayerWriteSessionByHandleAsync](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayerwritesessionbyhandleasync.md)
- [XblMultiplayerGetSearchHandlesAsync](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayergetsearchhandlesasync.md)
