Skip to main content

XblMultiplayerCreateSearchHandleAsync

创建与现有会话关联的搜索句柄。这样会话就可被查询。

语法

参数

xblContext   _In_
类型:XblContextHandle
本地用户的 XBOX Live 上下文。 sessionRef   _In_
类型:XblMultiplayerSessionReference*
为其创建搜索句柄的会话引用。 tags   _In_reads_opt_(tagsCount)
类型:XblMultiplayerSessionTag*
要附加到搜索句柄的可选标签集合。 tagsCount   _In_
类型:size_t
标签的数量。 numberAttributes   _In_reads_opt_(numberAttributesCount)
类型:XblMultiplayerSessionNumberAttribute*
要附加到搜索句柄的可选属性。 numberAttributesCount   _In_
类型:size_t
数字属性的数量。 stringAttributes   _In_reads_opt_(stringAttributesCount)
类型:XblMultiplayerSessionStringAttribute*
要附加到搜索句柄的可选属性。 stringAttributesCount   _In_
类型:size_t
字符串属性的数量。 async   _In_
类型:XAsyncBlock*
此操作的 AsyncBlock。

返回值

类型:HRESULT 此 API 操作的 HRESULT 返回代码。

要求

头文件: multiplayer_c.h 库: Microsoft.Xbox.Services.14x.GDK.C.lib

另请参阅

multiplayer_c
最后修改于 2026年8月24日