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

# XStoreQueryGameAndDlcPackageUpdatesResult

> XStoreQueryGameAndDlcPackageUpdatesResult

# XStoreQueryGameAndDlcPackageUpdatesResult

取得 [XStoreQueryGameAndDlcPackageUpdatesAsync](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesasync.md) 呼叫的結果。

## 語法

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

### 參數

*async*   \_Inout\_\
類型：[XAsyncBlock\*](https://docs.xbox.com/zh-TW/reference/system/xasync/structs/xasyncblock.md)

傳遞給 [XStoreQueryGameAndDlcPackageUpdatesAsync](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesasync.md) 的 XAsyncBlock。[XAsyncBlock](https://docs.xbox.com/zh-TW/reference/system/xasync/structs/xasyncblock.md) 可用來輪詢呼叫的狀態並擷取呼叫結果。如需詳細資訊，請參閱 [XAsyncBlock](https://docs.xbox.com/zh-TW/reference/system/xasync/structs/xasyncblock.md)。

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

傳入 **packageUpdates** 之陣列中的元素數目。

*packageUpdates*   \_Out\_writes\_(count)\
類型：[XStorePackageUpdate\*](https://docs.xbox.com/zh-TW/reference/system/xstore/structs/xstorepackageupdate.md)

成功時，包含所擷取的套件更新。

### 傳回值

類型：HRESULT

HRESULT 成功或錯誤碼。

## 備註

此結果函式可讓您擷取 [XStoreQueryGameAndDlcPackageUpdatesAsync](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesasync.md) 的執行結果，以及在執行成功時所要求的可用更新清單。因此，應在呼叫 [XStoreQueryGameAndDlcPackageUpdatesAsync](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesasync.md) 之後呼叫此函式，通常是在回呼函式的內容中呼叫。

如需使用範例，請參閱 [XStoreQueryGameAndDlcPackageUpdatesAsync](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesasync.md)。

## 需求

**標頭：** XStore.h (包含在 XGameRuntime.h 中)

**程式庫：** xgameruntime.lib

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[XStore](https://docs.xbox.com/zh-TW/reference/system/xstore/xstore_members.md)\
[XStoreQueryGameAndDlcPackageUpdatesAsync](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesasync.md)\
[XStoreQueryGameAndDlcPackageUpdatesResultCount](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesresultcount.md)


## Related topics

- [XStoreQueryGameAndDlcPackageUpdatesResultCount](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesresultcount.md)
- [XStoreQueryGameAndDlcPackageUpdatesAsync](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesasync.md)
- [XStorePackageUpdate](https://docs.xbox.com/zh-TW/reference/system/xstore/structs/xstorepackageupdate.md)
- [XStore (API 內容)](https://docs.xbox.com/zh-TW/reference/system/xstore/xstore_members.md)
- [在 Unity 專案中使用 GDK API 的 C# 包裝函式](https://docs.xbox.com/zh-TW/build/gdk-and-engines/unity/unity-api-wrappers.md)
