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

# XStoreQueryAssociatedProductsResult

> XStoreQueryAssociatedProductsResult

# XStoreQueryAssociatedProductsResult

Gets the results for a call to [XStoreQueryAssociatedProductsAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsasync).

## Syntax

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

### Parameters

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

The `XAsyncBlock` that you pass to [XStoreQueryAssociatedProductsAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsasync).
Use the [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) to check the call's status and get the results.
For more information, see [XAsyncBlock](/reference/system/xasync/structs/xasyncblock).

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

On return, contains a XStoreProductQueryHandle representing the query.
Pass the returned XStoreProductQueryHandle to [XStoreEnumerateProductsQuery](/reference/system/xstore/functions/xstoreenumerateproductsquery) 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 [XStoreQueryAssociatedProductsAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsasync). If the execution was successful, it returns a list of associated products.
Call this function after [XStoreQueryAssociatedProductsAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsasync), usually in the context of a callback function.

For a usage example, see [XStoreQueryAssociatedProductsAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsasync).

## Requirements

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

**Library:** xgameruntime.lib

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

## Conceptual documentation

* [Granting players access to add-on content](/publishing/xstore-commerce/xstore-granting-access)
* [Basic store operations](/publishing/xstore-commerce/xstore-basic-operations)

## See also

[XStore](/reference/system/xstore/xstore_members)
[XStoreQueryAssociatedProductsAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsasync)\
[XStoreQueryEntitledProductsAsync](/reference/system/xstore/functions/xstorequeryentitledproductsasync)\
[XStoreQueryProductsAsync](/reference/system/xstore/functions/xstorequeryproductsasync)\
[XStoreQueryProductForCurrentGameAsync](/reference/system/xstore/functions/xstorequeryproductforcurrentgameasync)\
[XStoreQueryProductForPackageAsync](/reference/system/xstore/functions/xstorequeryproductforpackageasync)\
[Basic store operations](/publishing/xstore-commerce/xstore-basic-operations)\
[Granting players access to add-on content](/publishing/xstore-commerce/xstore-granting-access)


## Related topics

- [Basic store operations](/publishing/xstore-commerce/xstore-basic-operations.md)
- [XStore](/reference/system/xstore/xstore_members.md)
- [Unity C# API wrappers for the GDK](/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XStoreQueryAssociatedProductsForStoreIdResult](/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidresult.md)
- [XStoreQueryProductsResult](/reference/system/xstore/functions/xstorequeryproductsresult.md)
