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

# XStoreQueryAssociatedProductsForStoreIdResult

> XStoreQueryAssociatedProductsForStoreIdResult

# XStoreQueryAssociatedProductsForStoreIdResult

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

## Syntaxe

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

### Paramètres

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

`XAsyncBlock` que vous passez à [XStoreQueryAssociatedProductsForStoreIdAsync](/fr-CA/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync). Utilisez le [XAsyncBlock](/fr-CA/reference/system/xasync/structs/xasyncblock) pour vérifier l'état de l'appel et obtenir les résultats.
Pour plus d'informations, consultez [XAsyncBlock](/fr-CA/reference/system/xasync/structs/xasyncblock).

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

Au retour, contient un `XStoreProductQueryHandle` représentant la requête. Passez le `XStoreProductQueryHandle` retourné à [XStoreEnumerateProductsQuery](/fr-CA/reference/system/xstore/functions/xstoreenumerateproductsquery) pour énumérer les produits retournés par la requête.

### Valeur de retour

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 d'exécution de [XStoreQueryAssociatedProductsForStoreIdAsync](/fr-CA/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync). Si le résultat est une réussite, il inclut une liste de produits associés que vous pouvez énumérer avec [XStoreEnumerateProductsQuery](/fr-CA/reference/system/xstore/functions/xstoreenumerateproductsquery). Appelez cette fonction après [XStoreQueryAssociatedProductsForStoreIdAsync](/fr-CA/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync), généralement dans le contexte d'une fonction de rappel.

Pour obtenir un exemple d'utilisation, consultez [XStoreQueryAssociatedProductsForStoreIdAsync](/fr-CA/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync).

## 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)
[XStoreQueryAssociatedProductsForStoreIdAsync](/fr-CA/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync)\
[XStoreQueryEntitledProductsAsync](/fr-CA/reference/system/xstore/functions/xstorequeryentitledproductsasync)\
[XStoreQueryProductsAsync](/fr-CA/reference/system/xstore/functions/xstorequeryproductsasync)\
[XStoreQueryProductForCurrentGameAsync](/fr-CA/reference/system/xstore/functions/xstorequeryproductforcurrentgameasync)\
[XStoreQueryProductForPackageAsync](/fr-CA/reference/system/xstore/functions/xstorequeryproductforpackageasync)


## Related topics

- [XStoreQueryAssociatedProductsForStoreIdResult](/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidresult.md)
- [XStoreQueryAssociatedProductsForStoreIdAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync.md)
- [XStore](/reference/system/xstore/xstore_members.md)
- [XStoreQueryAssociatedProductsAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsasync.md)
- [XStoreQueryAssociatedProductsResult](/reference/system/xstore/functions/xstorequeryassociatedproductsresult.md)
