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

# XStoreShowProductPageUIAsync

> XStoreShowProductPageUIAsync

# XStoreShowProductPageUIAsync

Cette API ouvre l'application Store directement à la page de détails du produit (PDP) correspondant au ProductId fourni. Cela permet aux titres qui n'ont pas intégré le flux d'achat ni une interface utilisateur de magasin en jeu d'orienter quand même les utilisateurs vers les produits liés à leur titre et vers le flux d'achat offert sur la page de détails du produit.

<img src="https://mintcdn.com/microsoft-4404708b/MccwT2UvEEolGlU5/images/gdk/reference/pdpexample-small.webp?fit=max&auto=format&n=MccwT2UvEEolGlU5&q=85&s=ccd512ab75cdb0bd60e8314238d6a5da" alt="pdp" width="1920" height="1080" data-path="images/gdk/reference/pdpexample-small.webp" />

## Syntaxe

```cpp theme={null}
HRESULT XStoreShowProductPageUIAsync(  
         const XStoreContextHandle storeContextHandle,  
         const char* storeId,  
         XAsyncBlock* async  
)  
```

### Paramètres

*storeContextHandle*   \_In\_\
Type : XStoreContextHandle

Handle de contexte du magasin pour l'utilisateur, retourné par [XStoreCreateContext](/fr-CA/reference/system/xstore/functions/xstorecreatecontext).

*storeId*   \_In\_z\_\
Type : char\*

ID du produit.

*async*   \_Inout\_\
Type : XAsyncBlock\*

Un [XAsyncBlock](/fr-CA/reference/system/xasync/structs/xasyncblock) définissant le travail asynchrone en cours. Le [XAsyncBlock](/fr-CA/reference/system/xasync/structs/xasyncblock) peut être utilisé pour interroger l'état de l'appel et récupérer les résultats de l'appel. Pour plus d'informations, consultez [XAsyncBlock](/fr-CA/reference/system/xasync/structs/xasyncblock).

### Valeur de retour

Type : HRESULT

Code de réussite ou d'erreur HRESULT.

## Configuration requise

**En-tête :** XStore.h\
**Bibliothèque :** xgameruntime.lib\
**Plateformes prises en charge :** Windows, consoles de la famille XBOX One et consoles XBOX Series

## Documentation conceptuelle

* [Implémenter les achats en jeu dans votre jeu](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/pc-dev/tutorials/pc-e2e-guide/e2e-services/e2e-in-game-purchases)

## Voir aussi

[XStore](/fr-CA/reference/system/xstore/xstore_members)


## Related topics

- [XStoreShowProductPageUIAsync](/reference/system/xstore/functions/xstoreshowproductpageuiasync.md)
- [XStoreShowProductPageUIResult](/reference/system/xstore/functions/xstoreshowproductpageuiresult.md)
- [XStore](/reference/system/xstore/xstore_members.md)
- [XStoreShowAssociatedProductsUIAsync](/reference/system/xstore/functions/xstoreshowassociatedproductsuiasync.md)
