XStoreShowProductPageUIAsync
This API will open up the Store app directly to the Product Details Page (PDP) of the provided ProductId. This allows titles who have not integrated with the purchase flow or an in-game store UI to still help drive users to products related to their title and the purchase flow found on the Product Details Page.
Syntax
HRESULT XStoreShowProductPageUIAsync(
const XStoreContextHandle storeContextHandle,
const char* storeId,
XAsyncBlock* async
)
Parameters
storeContextHandle _In_
Type: XStoreContextHandle
The store context handle for the user returned by XStoreCreateContext.
storeId _In_z_
Type: char*
The ID of the product.
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.
Requirements
Header: XStore.h
Library: xgameruntime.lib
Supported Platforms: Windows, Xbox One family consoles and Xbox Series consoles