Skip to main content

XblMultiplayerGetActivitiesForUsersAsync

已弃用 - 请调用 XblMultiplayerGetActivitiesWithPropertiesForUsersAsync,它还会在结果中填充 CustomSessionProperties
查询由 XBOX 用户 ID 指定的一组玩家的当前活动。

语法

参数

xblContext   _In_
类型:XblContextHandle
本地用户的 XBOX Live 上下文。 scid   _In_
类型:char*
在其中查询活动的服务配置标识符 (SCID)。SCID 区分大小写,因此请直接从合作伙伴中心 (Partner Center) 粘贴。 xuids   _In_reads_(xuidsCount)
类型:uint64_t*
要查找其活动的 XBOX 用户 ID 列表。 xuidsCount   _In_
类型:size_t
xuids 数组的大小。 async   _In_
类型:XAsyncBlock*
此操作的 XAsyncBlock

返回值

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

备注

不支持分页或续传。多人游戏服务将返回的项数限制为 100。

要求

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

另请参阅

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