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

# XStoreQueryAssociatedProductsResult

> XStoreQueryAssociatedProductsResult

# XStoreQueryAssociatedProductsResult

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

## Syntaxe

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

### Paramètres

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

`XAsyncBlock` que vous passez à [XStoreQueryAssociatedProductsAsync](https://docs.xbox.com/fr/reference/system/xstore/functions/xstorequeryassociatedproductsasync.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.
Passez le XStoreProductQueryHandle retourné à [XStoreEnumerateProductsQuery](https://docs.xbox.com/fr/reference/system/xstore/functions/xstoreenumerateproductsquery.md) pour répertorier les produits retournés par la requête.

### Valeur renvoyée

Type : HRESULT

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

## Remarques

Cette fonction de résultat récupère les résultats de l'exécution de [XStoreQueryAssociatedProductsAsync](https://docs.xbox.com/fr/reference/system/xstore/functions/xstorequeryassociatedproductsasync.md). Si l'exécution a réussi, elle retourne une liste de produits associés.
Appelez cette fonction après [XStoreQueryAssociatedProductsAsync](https://docs.xbox.com/fr/reference/system/xstore/functions/xstorequeryassociatedproductsasync.md), généralement dans le contexte d'une fonction de rappel.

Pour obtenir un exemple d'utilisation, consultez [XStoreQueryAssociatedProductsAsync](https://docs.xbox.com/fr/reference/system/xstore/functions/xstorequeryassociatedproductsasync.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)
* [Opérations de base du Store](https://docs.xbox.com/fr/publishing/xstore-commerce/xstore-basic-operations.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

- [XStoreQueryAssociatedProductsAsync](https://docs.xbox.com/fr/reference/system/xstore/functions/xstorequeryassociatedproductsasync.md)
- [Opérations de base du Store](https://docs.xbox.com/fr/publishing/xstore-commerce/xstore-basic-operations.md)
- [XStore (contenu de l'API)](https://docs.xbox.com/fr/reference/system/xstore/xstore_members.md)
- [Utilisation des wrappers C# pour les API GDK dans votre projet Unity](https://docs.xbox.com/fr/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XStoreQueryAssociatedProductsForStoreIdResult](https://docs.xbox.com/fr/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidresult.md)
