> ## 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-CA/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-CA/reference/system/xasync/structs/xasyncblock)

Le XAsyncBlock passé à [XStoreGetUserPurchaseIdAsync](/fr-CA/reference/system/xstore/functions/xstoregetuserpurchaseidasync). Le [XAsyncBlock](/fr-CA/reference/system/xasync/structs/xasyncblock) peut servir à 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).

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

La 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-CA/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 de [XStoreGetUserPurchaseIdAsync](/fr-CA/reference/system/xstore/functions/xstoregetuserpurchaseidasync), habituellement dans le contexte d'une fonction de rappel.

Consultez [XStoreGetUserPurchaseIdAsync](/fr-CA/reference/system/xstore/functions/xstoregetuserpurchaseidasync) pour un exemple d'utilisation.

## 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-CA/reference/system/xstore/xstore_members)\
[XStoreGetUserPurchaseIdAsync](/fr-CA/reference/system/xstore/functions/xstoregetuserpurchaseidasync)\
[XStoreGetUSerPurchaseIdResultSize](/fr-CA/reference/system/xstore/functions/xstoregetuserpurchaseidresultsize)


## Related topics

- [XStoreGetUserPurchaseIdResult](/reference/system/xstore/functions/xstoregetuserpurchaseidresult.md)
- [XStoreGetUserPurchaseIdResultSize](/reference/system/xstore/functions/xstoregetuserpurchaseidresultsize.md)
- [XStoreGetUserPurchaseIdAsync](/ko/reference/system/xstore/functions/xstoregetuserpurchaseidasync.md)
- [XStore](/reference/system/xstore/xstore_members.md)
