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

Gets the results for a call to [XStoreDownloadAndInstallPackagesAsync](/reference/system/xstore/functions/xstoredownloadandinstallpackagesasync).

## Syntax

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

### Parameters

*async*   \_Inout\_\
Type: [XAsyncBlock\*](/reference/system/xasync/structs/xasyncblock)

The XAsyncBlock that was passed to [XStoreDownloadAndInstallPackagesAsync](/reference/system/xstore/functions/xstoredownloadandinstallpackagesasync). The [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) can be used to poll for the call's status and retrieve call results. See [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) for more information.

*count*   \_In\_\
Type: uint32\_t

The size in elements of the array passed into the **packageIdentifiers** parameter.

*packageIdentifiers*   \_Out\_writes\_z\_(count)\
Type: char\[]\[XPACKAGE\_IDENTIFIER\_MAX\_LENGTH]

On success contains a list of package identifiers for the packages that were downloaded. For more information about package identifiers, see [Manage and license downloadable content (DLC)](/publishing/xstore-commerce/xstore-dlc).

### Return value

Type: HRESULT

S\_OK on success; otherwise, returns an error code.

## Remarks

This result function allows you to retrieve the execution results of [XStoreDownloadAndInstallPackagesAsync](/reference/system/xstore/functions/xstoredownloadandinstallpackagesasync), as well as the store packages that were called for if the execution was successful. As such, this function should be called after [XStoreDownloadAndInstallPackagesAsync](/reference/system/xstore/functions/xstoredownloadandinstallpackagesasync) has been called, usually in the context of a callback function.

See [XStoreDownloadAndInstallPackagesAsync](/reference/system/xstore/functions/xstoredownloadandinstallpackagesasync) for a usage example.

## Requirements

**Header:** XStore.h (included in XGameRuntime.h)

**Library:** xgameruntime.lib

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## Conceptual documentation

* [Manage and license downloadable content (DLC)](/publishing/xstore-commerce/xstore-dlc)

## See also

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


## Related topics

- [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)
- [XStoreShowAssociatedProductsUIResult](/reference/system/xstore/functions/xstoreshowassociatedproductsuiresult.md)
