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

# XStoreProductsQueryHasMorePages

> XStoreProductsQueryHasMorePages

Checks if there are more results pages for the specified query.
This is essential to call for `XStoreQuery` APIs, especially those that are expected to return multiple results, such as [XStoreQueryAssociatedProductsAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequeryassociatedproductsasync.md).

## Syntax

```cpp theme={null}
bool XStoreProductsQueryHasMorePages(  
         const XStoreProductQueryHandle productQueryHandle  
)  
```

### Parameters

*productQueryHandle*   \_In\_\
Type: XStoreProductQueryHandle

The handle to the query to check for more pages. On the first call to XStoreProductsQueryHasMorePages, this will be the XStoreProductQueryHandle returned by [XStoreQueryProductForCurrentGameResult](https://docs.xbox.com/reference/system/xstore/functions/xstorequeryproductforcurrentgameresult.md), [XStoreQueryProductForPackageResult](https://docs.xbox.com/reference/system/xstore/functions/xstorequeryproductforpackageresult.md), [XStoreQueryEntitledProductsResult](https://docs.xbox.com/reference/system/xstore/functions/xstorequeryentitledproductsresult.md),  or [XStoreQueryProductsResult](https://docs.xbox.com/reference/system/xstore/functions/xstorequeryproductsresult.md).
On subsequent calls, the query handle returned by [XStoreProductsQueryNextPageResult](https://docs.xbox.com/reference/system/xstore/functions/xstoreproductsquerynextpageresult.md) should be used.

### Return value

Type: bool

Returns true if there are more results pages to display.

## Remarks

This function is used to check to see if a product query has additional pages of product information.
It is called after a product query has been enumerated with [XStoreEnumerateProductsQuery](https://docs.xbox.com/reference/system/xstore/functions/xstoreenumerateproductsquery.md).
If this function returns true there is more product query information to be read.
Call [XStoreProductsQueryNextPageAsync](https://docs.xbox.com/reference/system/xstore/functions/xstoreproductsquerynextpageasync.md) to read additional product query information.
See [XStoreQueryAssociatedProductsAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequeryassociatedproductsasync.md) 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](https://docs.xbox.com/reference/system/xstore/xstore_members.md)\
[XStoreEnumerateProductsQuery](https://docs.xbox.com/reference/system/xstore/functions/xstoreenumerateproductsquery.md)\
[XStoreProductsQueryNextPageAsync](https://docs.xbox.com/reference/system/xstore/functions/xstoreproductsquerynextpageasync.md)\
[XStoreQueryAssociatedProductsAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequeryassociatedproductsasync.md)


## Related topics

- [XStoreProductsQueryNextPageResult](https://docs.xbox.com/reference/system/xstore/functions/xstoreproductsquerynextpageresult.md)
- [XStoreProductsQueryNextPageAsync](https://docs.xbox.com/reference/system/xstore/functions/xstoreproductsquerynextpageasync.md)
- [XStoreQueryAssociatedProductsForStoreIdAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync.md)
- [XStoreQueryAssociatedProductsAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequeryassociatedproductsasync.md)
- [XStoreEnumerateProductsQuery](https://docs.xbox.com/reference/system/xstore/functions/xstoreenumerateproductsquery.md)
