> ## 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.

# XStoreDownloadAndInstallPackagesResult

> XStoreDownloadAndInstallPackagesResult

# XStoreDownloadAndInstallPackagesResult

取得 [XStoreDownloadAndInstallPackagesAsync](/zh-TW/reference/system/xstore/functions/xstoredownloadandinstallpackagesasync) 呼叫的結果。

## 語法

```cpp theme={null}
HRESULT XStoreDownloadAndInstallPackagesResult(  
         XAsyncBlock* async,  
         uint32_t count,  
         char packageIdentifiers[][XPACKAGE_IDENTIFIER_MAX_LENGTH]  
) noexcept;  
```

### 參數

*async*   \_Inout\_\
類型：[XAsyncBlock\*](/zh-TW/reference/system/xasync/structs/xasyncblock)

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

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

傳入 **packageIdentifiers** 參數之陣列的大小 (以元素為單位)。

*packageIdentifiers*   \_Out\_writes\_z\_(count)\
類型：char\[]\[XPACKAGE\_IDENTIFIER\_MAX\_LENGTH]

成功時，包含已下載之套件的套件識別碼清單。如需套件識別碼的詳細資訊，請參閱[管理可下載內容 (DLC) 並授權](/zh-TW/publishing/xstore-commerce/xstore-dlc)。

### 傳回值

類型：HRESULT

成功時傳回 S\_OK；否則傳回錯誤碼。

## 備註

此結果函式可讓您擷取 [XStoreDownloadAndInstallPackagesAsync](/zh-TW/reference/system/xstore/functions/xstoredownloadandinstallpackagesasync) 的執行結果，以及在執行成功時所要求的市集套件。因此，應在呼叫 [XStoreDownloadAndInstallPackagesAsync](/zh-TW/reference/system/xstore/functions/xstoredownloadandinstallpackagesasync) 之後呼叫此函式，通常是在回呼函式的內容中。

如需使用範例，請參閱 [XStoreDownloadAndInstallPackagesAsync](/zh-TW/reference/system/xstore/functions/xstoredownloadandinstallpackagesasync)。

## 需求

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

**程式庫：** xgameruntime.lib

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

## 概念文件

* [管理可下載內容 (DLC) 並授權](/zh-TW/publishing/xstore-commerce/xstore-dlc)

## 另請參閱

[XStore](/zh-TW/reference/system/xstore/xstore_members)\
[XStoreDownloadAndInstallPackagesAsync](/zh-TW/reference/system/xstore/functions/xstoredownloadandinstallpackagesasync)\
[XStoreDownloadAndInstallPackagesResultCount](/zh-TW/reference/system/xstore/functions/xstoredownloadandinstallpackagesresultcount)


## Related topics

- [XStoreDownloadAndInstallPackagesResult](/reference/system/xstore/functions/xstoredownloadandinstallpackagesresult.md)
- [XStoreDownloadAndInstallPackagesResultCount](/reference/system/xstore/functions/xstoredownloadandinstallpackagesresultcount.md)
- [XStoreDownloadAndInstallPackagesAsync](/reference/system/xstore/functions/xstoredownloadandinstallpackagesasync.md)
- [XStoreQueryPackageIdentifier](/reference/system/xstore/functions/xstorequerypackageidentifier.md)
- [XStoreShowProductPageUIResult](/reference/system/xstore/functions/xstoreshowproductpageuiresult.md)
