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

# XStoreProductQueryCallback

> XStoreProductQueryCallback

# XStoreProductQueryCallback

Game defined callback for a product query.

## Syntax

```cpp theme={null}
bool XStoreProductQueryCallback(  
         const XStoreProduct* product,  
         void* context  
)  
```

### Parameters

*product*   \_In\_\
Type: [XStoreProduct\*](/reference/system/xstore/structs/xstoreproduct)

Description of the product.

*context*   \_In\_opt\_\
Type: void\*

Game defined context to pass to the callback.

### Return value

Type: bool

Return true to continue enumerating query results; return false otherwise.

## Remarks

This game defined function is used to read information from one of an enumerated set of store products. The function must have the same return type and parameters as the definition provided here and is used as a callback for the [XStoreEnumerateProductsQuery](/reference/system/xstore/functions/xstoreenumerateproductsquery) function.  See [XStoreQueryAssociatedProductsAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsasync) for a usage example.

## 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](/reference/system/xstore/xstore_members)\
[XStoreEnumerateProductsQuery](/reference/system/xstore/functions/xstoreenumerateproductsquery)\
[XStoreQueryAssociatedProductsAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsasync)


## Related topics

- [XStoreEnumerateProductsQuery](/reference/system/xstore/functions/xstoreenumerateproductsquery.md)
- [XStore](/reference/system/xstore/xstore_members.md)
- [XStoreQueryProductsResult](/reference/system/xstore/functions/xstorequeryproductsresult.md)
- [XStoreQueryEntitledProductsResult](/reference/system/xstore/functions/xstorequeryentitledproductsresult.md)
- [XStoreQueryAssociatedProductsResult](/reference/system/xstore/functions/xstorequeryassociatedproductsresult.md)
