XStoreQueryProductForPackageAsync
Retrieves store product information for the specified package.Syntax
Parameters
storeContextHandle _In_Type: XStoreContextHandle The store context handle for the user returned by XStoreCreateContext. productKinds _In_
Type: XStoreProductKind The type of products to find. packageIdentifier _In_z_
Type: char* A string that uniquely identifies a store package. For more information about package identifiers, see Manage and license downloadable content (DLC). 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 HRESULT success or error code.Remarks
To retrieve the store product information as well as the execution result of this function call XStoreQueryProductForPackageResult after calling this function. The following code snippet shows an example of retrieving product information for a package.Requirements
Header: XStore.h (included in XGameRuntime.h) Library: xgameruntime.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consolesSee also
XStoreXStoreQueryProductForPackageResult
XStoreQueryAssociatedProductsAsync
XStoreQueryEntitledProductsAsync
XStoreQueryProductsAsync
XStoreQueryProductForCurrentGameAsync
XStoreQueryProductForPackageAsync
