> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XStoreQueryProductsResult

> XStoreQueryProductsResult

# XStoreQueryProductsResult

Obtient les résultats d'un appel à [XStoreQueryProductsAsync](https://docs.xbox.com/fr/reference/system/xstore/functions/xstorequeryproductsasync.md).

## Syntaxe

```cpp theme={null}
HRESULT XStoreQueryProductsResult(  
         XAsyncBlock* async,  
         XStoreProductQueryHandle* productQueryHandle  
)  
```

### Paramètres

*async*   \_Inout\_\
Type : [XAsyncBlock\*](https://docs.xbox.com/fr/reference/system/xasync/structs/xasyncblock.md)

`XAsyncBlock` transmis à [XStoreQueryProductsAsync](https://docs.xbox.com/fr/reference/system/xstore/functions/xstorequeryproductsasync.md).
Utilisez le [XAsyncBlock](https://docs.xbox.com/fr/reference/system/xasync/structs/xasyncblock.md) pour vérifier l'état de l'appel et obtenir les résultats.
Pour plus d'informations, consultez [XAsyncBlock](https://docs.xbox.com/fr/reference/system/xasync/structs/xasyncblock.md).

*productQueryHandle*   \_Out\_\
Type : XStoreProductQueryHandle\*

Au retour, contient un XStoreProductQueryHandle représentant la requête. Le XStoreProductQueryHandle retourné peut être transmis à [XStoreEnumerateProductsQuery](https://docs.xbox.com/fr/reference/system/xstore/functions/xstoreenumerateproductsquery.md) pour énumérer les produits retournés par la requête.

### Valeur de retour

Type : HRESULT

S\_OK en cas de réussite ; sinon, retourne un code d'erreur.

## Remarques

Utilisez cette fonction de résultat pour obtenir les résultats de l'exécution de [XStoreQueryProductsAsync](https://docs.xbox.com/fr/reference/system/xstore/functions/xstorequeryproductsasync.md). Si l'exécution réussit, elle retourne les informations de référencement.
Appelez cette fonction après [XStoreQueryProductsAsync](https://docs.xbox.com/fr/reference/system/xstore/functions/xstorequeryproductsasync.md), généralement dans le contexte d'une fonction de rappel.

Pour un exemple d'utilisation, consultez [XStoreQueryProductsAsync](https://docs.xbox.com/fr/reference/system/xstore/functions/xstorequeryproductsasync.md).

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

## Documentation conceptuelle

* [Accorder aux joueurs l'accès au contenu des extensions](https://docs.xbox.com/fr/publishing/xstore-commerce/xstore-granting-access.md)

## Voir aussi

[XStore](https://docs.xbox.com/fr/reference/system/xstore/xstore_members.md)\
[XStoreQueryAssociatedProductsAsync](https://docs.xbox.com/fr/reference/system/xstore/functions/xstorequeryassociatedproductsasync.md)\
[XStoreQueryEntitledProductsAsync](https://docs.xbox.com/fr/reference/system/xstore/functions/xstorequeryentitledproductsasync.md)\
[XStoreQueryProductsAsync](https://docs.xbox.com/fr/reference/system/xstore/functions/xstorequeryproductsasync.md)\
[XStoreQueryProductForCurrentGameAsync](https://docs.xbox.com/fr/reference/system/xstore/functions/xstorequeryproductforcurrentgameasync.md)\
[XStoreQueryProductForPackageAsync](https://docs.xbox.com/fr/reference/system/xstore/functions/xstorequeryproductforpackageasync.md)\
[Opérations de base du Store](https://docs.xbox.com/fr/publishing/xstore-commerce/xstore-basic-operations.md)\
[Accorder aux joueurs l'accès au contenu des extensions](https://docs.xbox.com/fr/publishing/xstore-commerce/xstore-granting-access.md)


## Related topics

- [XStoreEnumerateProductsQuery](https://docs.xbox.com/fr/reference/system/xstore/functions/xstoreenumerateproductsquery.md)
- [XStoreCloseProductsQueryHandle](https://docs.xbox.com/fr/reference/system/xstore/functions/xstorecloseproductsqueryhandle.md)
- [XStoreQueryProductsAsync](https://docs.xbox.com/fr/reference/system/xstore/functions/xstorequeryproductsasync.md)
- [XStoreProductsQueryHasMorePages](https://docs.xbox.com/fr/reference/system/xstore/functions/xstoreproductsqueryhasmorepages.md)
- [XStoreProductsQueryNextPageAsync](https://docs.xbox.com/fr/reference/system/xstore/functions/xstoreproductsquerynextpageasync.md)
