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

# XStoreQueryAssociatedProductsForStoreIdResult

> XStoreQueryAssociatedProductsForStoreIdResult

# XStoreQueryAssociatedProductsForStoreIdResult

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

## Syntaxe

```cpp theme={null}
HRESULT XStoreQueryAssociatedProductsForStoreIdResult(  
         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 à [XStoreQueryAssociatedProductsForStoreIdAsync](https://docs.xbox.com/fr/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync.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 [XStoreQueryAssociatedProductsForStoreIdAsync](https://docs.xbox.com/fr/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync.md). Si le résultat est positif, il inclut une liste de produits associés que vous pouvez énumérer avec [XStoreEnumerateProductsQuery](https://docs.xbox.com/fr/reference/system/xstore/functions/xstoreenumerateproductsquery.md). Appelez cette fonction après [XStoreQueryAssociatedProductsForStoreIdAsync](https://docs.xbox.com/fr/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync.md), généralement dans le contexte d'une fonction de rappel.

Pour obtenir un exemple d'utilisation, consultez [XStoreQueryAssociatedProductsForStoreIdAsync](https://docs.xbox.com/fr/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync.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

## Voir aussi

[XStore](https://docs.xbox.com/fr/reference/system/xstore/xstore_members.md)
[XStoreQueryAssociatedProductsForStoreIdAsync](https://docs.xbox.com/fr/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync.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)


## Related topics

- [XStoreQueryAssociatedProductsForStoreIdAsync](https://docs.xbox.com/fr/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync.md)
- [XStore (contenu de l'API)](https://docs.xbox.com/fr/reference/system/xstore/xstore_members.md)
- [XStoreQueryAssociatedProductsAsync](https://docs.xbox.com/fr/reference/system/xstore/functions/xstorequeryassociatedproductsasync.md)
- [XStoreQueryAssociatedProductsResult](https://docs.xbox.com/fr/reference/system/xstore/functions/xstorequeryassociatedproductsresult.md)
- [XStoreQueryProductsResult](https://docs.xbox.com/fr/reference/system/xstore/functions/xstorequeryproductsresult.md)
