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

# XStoreQueryGameAndDlcPackageUpdatesResult

> XStoreQueryGameAndDlcPackageUpdatesResult

# XStoreQueryGameAndDlcPackageUpdatesResult

获取对 [XStoreQueryGameAndDlcPackageUpdatesAsync](/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesasync) 调用的结果。

## 语法

```cpp theme={null}
HRESULT XStoreQueryGameAndDlcPackageUpdatesResult(  
         XAsyncBlock* async,  
         uint32_t count,  
         XStorePackageUpdate* packageUpdates  
)  
```

### 参数

*async*   \_Inout\_\
类型：[XAsyncBlock\*](/reference/system/xasync/structs/xasyncblock)

传递给 [XStoreQueryGameAndDlcPackageUpdatesAsync](/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesasync) 的 XAsyncBlock。可使用 [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) 轮询调用状态并检索调用结果。有关详细信息，请参阅 [XAsyncBlock](/reference/system/xasync/structs/xasyncblock)。

*count*   \_In\_\
类型：uint32\_t

传递到 **packageUpdates** 的数组中的元素数量。

*packageUpdates*   \_Out\_writes\_(count)\
类型：[XStorePackageUpdate\*](/reference/system/xstore/structs/xstorepackageupdate)

成功时包含已检索的包更新。

### 返回值

类型：HRESULT

HRESULT 成功或错误代码。

## 备注

此结果函数使你能够检索 [XStoreQueryGameAndDlcPackageUpdatesAsync](/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesasync) 的执行结果，如果执行成功，还可以检索所请求的可用更新列表。因此，此函数应在调用 [XStoreQueryGameAndDlcPackageUpdatesAsync](/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesasync) 之后调用，通常在回调函数的上下文中。

有关用法示例，请参阅 [XStoreQueryGameAndDlcPackageUpdatesAsync](/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesasync)。

## 要求

**头文件：** XStore.h（包含于 XGameRuntime.h 中）

**库：** xgameruntime.lib

**支持的平台：** Windows、XBOX One 系列主机和 XBOX Series 主机

## 另请参阅

[XStore](/reference/system/xstore/xstore_members)\
[XStoreQueryGameAndDlcPackageUpdatesAsync](/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesasync)\
[XStoreQueryGameAndDlcPackageUpdatesResultCount](/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesresultcount)


## Related topics

- [XStoreQueryGameAndDlcPackageUpdatesResultCount](/zh-CN/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesresultcount.md)
- [XStoreQueryGameAndDlcPackageUpdatesAsync](/zh-CN/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesasync.md)
- [XStorePackageUpdate](/zh-CN/reference/system/xstore/structs/xstorepackageupdate.md)
- [XStore](/zh-CN/reference/system/xstore/xstore_members.md)
- [面向 GDK 的 Unity C# API 包装器](/zh-CN/build/gdk-and-engines/unity/unity-api-wrappers.md)
