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

# XStoreGetUserPurchaseIdResult

> XStoreGetUserPurchaseIdResult

# XStoreGetUserPurchaseIdResult

Obtient le résultat d'un appel à [XStoreGetUserPurchaseIdAsync](/fr/reference/system/xstore/functions/xstoregetuserpurchaseidasync).

## Syntaxe

```cpp theme={null}
HRESULT XStoreGetUserPurchaseIdResult(  
         XAsyncBlock* async,  
         size_t size,  
         char* result  
)  
```

### Paramètres

*async*   \_Inout\_\
Type : [XAsyncBlock\*](/fr/reference/system/xasync/structs/xasyncblock)

XAsyncBlock passé à [XStoreGetUserPurchaseIdAsync](/fr/reference/system/xstore/functions/xstoregetuserpurchaseidasync). 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).

*size*   \_In\_\
Type : size\_t

Taille du tableau passé dans **result**.

*result*   \_Out\_writes\_z\_(size)\
Type : char\*

En cas de réussite, contient l'ID d'achat récupéré.

### Valeur de retour

Type : HRESULT

Code de réussite ou d'erreur HRESULT.

## Remarques

Cette fonction de résultat vous permet de récupérer les résultats d'exécution de [XStoreGetUserPurchaseIdAsync](/fr/reference/system/xstore/functions/xstoregetuserpurchaseidasync), ainsi que l'ID d'achat demandé si l'exécution a réussi. Par conséquent, cette fonction doit être appelée après l'appel à [XStoreGetUserPurchaseIdAsync](/fr/reference/system/xstore/functions/xstoregetuserpurchaseidasync), généralement dans le contexte d'une fonction de rappel.

Pour obtenir un exemple d'utilisation, consultez [XStoreGetUserPurchaseIdAsync](/fr/reference/system/xstore/functions/xstoregetuserpurchaseidasync).

## Configuration requise

**En-tête :** XStore.h (inclus dans XGameRuntime.h)

**Bibliothèque :** xgameruntime.lib

**Plateformes prises en charge :** Windows, consoles de la famille XBOX One et consoles XBOX Series

## Voir aussi

[XStore](/fr/reference/system/xstore/xstore_members)\
[XStoreGetUserPurchaseIdAsync](/fr/reference/system/xstore/functions/xstoregetuserpurchaseidasync)\
[XStoreGetUSerPurchaseIdResultSize](/fr/reference/system/xstore/functions/xstoregetuserpurchaseidresultsize)


## Related topics

- [XStoreGetUserPurchaseIdResult](/reference/system/xstore/functions/xstoregetuserpurchaseidresult.md)
- [XStoreGetUserPurchaseIdResultSize](/reference/system/xstore/functions/xstoregetuserpurchaseidresultsize.md)
