XblMultiplayerSetTransferHandleAsync

调用方对原始会话所拥有的访问权限扩展到目标会话。

语法

HRESULT XblMultiplayerSetTransferHandleAsync(  
         XblContextHandle xblContext,  
         XblMultiplayerSessionReference targetSessionReference,  
         XblMultiplayerSessionReference originSessionReference,  
         XAsyncBlock* async  
)  

参数

xblContext _In_
类型:XblContextHandle

本地用户的 Xbox Live 上下文。

targetSessionReference _In_
类型:XblMultiplayerSessionReference

想要扩展其访问权限的会话的目标 XblMultiplayerSessionReference。

originSessionReference _In_
类型:XblMultiplayerSessionReference

向目标会话授予访问权限的会话的原始 XblMultiplayerSessionReference。

async _In_
类型:XAsyncBlock*

此操作的 AsyncBlock。

返回值

类型:HRESULT

此 API 操作的 HRESULT 返回代码。

注意

例如,在具有大厅会话和游戏会话的游戏中,游戏可以在大厅会话内放置将大厅与游戏链接的转移句柄。 受邀进入大厅的用户也可以使用该句柄加入游戏会话。 删除目标会话后,转移句柄也会被删除。

要求

头文件:multiplayer_c.h

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

另请参阅

multiplayer_c