XStoreDownloadPackageUpdatesAsync
This API does not work as intended because updates on XBOX are installed as they are downloaded.
If the update is for the game, the game will terminate.
If the update is for DLC, the game will terminate if the DLC package is currently mounted.Use XStoreDownloadAndInstallPackageUpdatesAsync instead.
Syntax
Parameters
storeContextHandle _In_Type: XStoreContextHandle The store context handle for the user returned by XStoreCreateContext. packageIdentifiers _In_z_count_(packageIdentifiersCount)
Type: char** List of package identifiers. A package identifier is a unique id string for a Microsoft store package. For more information about package identifiers, see Manage and license downloadable content (DLC). packageIdentifiersCount _In_
Type: size_t The number of Identifiers in packageIdentifiers. async _Inout_
Type: XAsyncBlock* An XAsyncBlock defining the asynchronous work being done. The XAsyncBlock can be used to poll for the call’s status and retrieve call results. See XAsyncBlock for more information.
Return value
Type: HRESULT Returns S_OK if successful; otherwise, returns an error code.Remarks
This function only downloads and update but does not install it. In order to download and install an update in one call use the XStoreDownloadAndInstallPackageUpdatesAsync function. To retrieve the result of this function call XStoreDownloadPackageUpdatesResult after calling this function. See XStoreQueryGameAndDlcPackageUpdatesAsync for a usage example. When this API is called from a running game, then the downloads will be considered high priority and they will go at the beginning of the queue in the order in which they are specified in the storeIds parameter of this API.Requirements
Header: XStore.h (included in XGameRuntime.h) Library: xgameruntime.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consolesSee also
XStoreXStoreDownloadPackageUpdatesResult
XStoreDownloadAndInstallPackageUpdatesAsync
