> ## 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 sur 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 ou une interface utilisateur de boutique dans le jeu de diriger malgré tout les utilisateurs vers des produits liés à leur titre et vers le flux d'achat proposé 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 Store pour l'utilisateur, retourné par [XStoreCreateContext](/fr/reference/system/xstore/functions/xstorecreatecontext).

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

ID du produit.

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

Un [XAsyncBlock](/fr/reference/system/xasync/structs/xasyncblock) définissant le travail asynchrone en cours. Le [XAsyncBlock](/fr/reference/system/xasync/structs/xasyncblock) peut être utilisé pour interroger l'état de l'appel et récupérer ses résultats. Pour plus d'informations, consultez [XAsyncBlock](/fr/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 des achats dans le 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/reference/system/xstore/xstore_members)


## Related topics

- [XStoreShowProductPageUIResult](/fr/reference/system/xstore/functions/xstoreshowproductpageuiresult.md)
- [XStore](/fr/reference/system/xstore/xstore_members.md)
- [Wrappers d'API C# Unity pour le GDK](/fr/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XStoreShowAssociatedProductsUIAsync](/fr/reference/system/xstore/functions/xstoreshowassociatedproductsuiasync.md)
- [XStoreProductsQueryNextPageAsync](/fr/reference/system/xstore/functions/xstoreproductsquerynextpageasync.md)
