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

Gets the results for a call to [XStoreQueryAssociatedProductsForStoreIdAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync.md).

## Syntax

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

### Parameters

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

The `XAsyncBlock` that you pass to [XStoreQueryAssociatedProductsForStoreIdAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync.md). Use the [XAsyncBlock](https://docs.xbox.com/reference/system/xasync/structs/xasyncblock.md) to check the call's status and get the results.
For more information, see [XAsyncBlock](https://docs.xbox.com/reference/system/xasync/structs/xasyncblock.md).

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

On return, contains a `XStoreProductQueryHandle` representing the query. Pass the returned `XStoreProductQueryHandle` to [XStoreEnumerateProductsQuery](https://docs.xbox.com/reference/system/xstore/functions/xstoreenumerateproductsquery.md) to list the products the query returned.

### Return value

Type: HRESULT

S\_OK on success; otherwise, returns an error code.

## Remarks

This result function retrieves the execution results of [XStoreQueryAssociatedProductsForStoreIdAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync.md). If the result is successful, it includes a list of associated products that you can enumerate with [XStoreEnumerateProductsQuery](https://docs.xbox.com/reference/system/xstore/functions/xstoreenumerateproductsquery.md). Call this function after [XStoreQueryAssociatedProductsForStoreIdAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync.md), usually in the context of a callback function.

For a usage example, see [XStoreQueryAssociatedProductsForStoreIdAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync.md).

## Requirements

**Header:** XStore.h (included in XGameRuntime.h)

**Library:** xgameruntime.lib

**Supported platforms:** Windows, XBOX One family consoles, and XBOX Series consoles

## See also

[XStore](https://docs.xbox.com/reference/system/xstore/xstore_members.md)
[XStoreQueryAssociatedProductsForStoreIdAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync.md)\
[XStoreQueryEntitledProductsAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequeryentitledproductsasync.md)\
[XStoreQueryProductsAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequeryproductsasync.md)\
[XStoreQueryProductForCurrentGameAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequeryproductforcurrentgameasync.md)\
[XStoreQueryProductForPackageAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequeryproductforpackageasync.md)


## Related topics

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