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

# XStoreQueryGameLicenseResult

> XStoreQueryGameLicenseResult

# XStoreQueryGameLicenseResult

Obtient les résultats d'un appel à [XStoreQueryGameLicenseAsync](/fr-CA/reference/system/xstore/functions/xstorequerygamelicenseasync).

## Syntaxe

```cpp theme={null}
HRESULT XStoreQueryGameLicenseResult(  
         XAsyncBlock* async,  
         XStoreGameLicense* license  
)  
```

### Paramètres

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

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

*license*   \_Out\_\
Type : [XStoreGameLicense\*](/fr-CA/reference/system/xstore/structs/xstoregamelicense)

En cas de réussite, contient la licence du jeu.

### 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 [XStoreQueryGameLicenseAsync](/fr-CA/reference/system/xstore/functions/xstorequerygamelicenseasync), ainsi que la licence de lancement du jeu demandée si l'exécution a réussi. Par conséquent, cette fonction doit être appelée après l'appel à [XStoreQueryGameLicenseAsync](/fr-CA/reference/system/xstore/functions/xstorequerygamelicenseasync), généralement dans le contexte d'une fonction de rappel.

Consultez [XStoreQueryGameLicenseAsync](/fr-CA/reference/system/xstore/functions/xstorequerygamelicenseasync) pour obtenir 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)\
[XStoreQueryGameLicenseAsync](/fr-CA/reference/system/xstore/functions/xstorequerygamelicenseasync)


## Related topics

- [XStoreQueryGameLicenseResult](/reference/system/xstore/functions/xstorequerygamelicenseresult.md)
- [XStoreGameLicense](/reference/system/xstore/structs/xstoregamelicense.md)
- [XStoreQueryGameLicenseAsync](/reference/system/xstore/functions/xstorequerygamelicenseasync.md)
