XStoreGetUserCollectionsIdResult

获取调用 XStoreGetUserCollectionsIdAsync 的结果。

语法

HRESULT XStoreGetUserCollectionsIdResult(  
         XAsyncBlock* async,  
         size_t size,  
         char* result  
)  

参数

async _Inout_
类型:XAsyncBlock*

传递给 XStoreGetUserCollectionsIdAsync 的 XAsyncBlock。 XAsyncBlock 可用于轮询调用的状态和检索调用结果。 有关详细信息,请参阅 XAsyncBlock

size _In_
类型:size_t

传递给 result 的数组大小。

result _Out_writes_z_(size)
类型:char*

成功时包含收藏 ID。

返回值

类型:HRESULT

HRESULT 成功或错误代码。

备注

此结果函数使您可以检索 XStoreGetUserCollectionsIdAsync 的执行结果,以及执行成功时为其执行调用的收藏 ID。 因此,应在调用 XStoreGetUserCollectionsIdAsync 之后调用此函数,并且通常是在回调函数的上下文中。 有关使用示例,请参阅 XStoreGetUserCollectionsIdAsync

要求

头文件:XStore.h(包含在 XGameRuntime.h 中)

库:xgameruntime.lib

支持平台:Windows、Xbox One 系列主机和 Xbox Series 主机

另请参阅

XStore
XStoreGetUserCollectionsIdAsync
XStoreGetUserCollectionsIdResultSize