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

# XStoreProductsQueryNextPageAsync

> XStoreProductsQueryNextPageAsync

Gets the next page of query results.

## Syntax

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

### 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.md](https://docs.xbox.com/reference/system/xstore/functions/xstorequeryproductforpackageresult.md), [XStoreQueryEntitledProductsResult](https://docs.xbox.com/reference/system/xstore/functions/xstorequeryentitledproductsresult.md), [XStoreQueryProductsAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequeryproductsasync.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.

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

An [XAsyncBlock](https://docs.xbox.com/reference/system/xasync/structs/xasyncblock.md) defining the asynchronous work being done. The [XAsyncBlock](https://docs.xbox.com/reference/system/xasync/structs/xasyncblock.md) can be used to poll for the call's status and retrieve call results. See [XAsyncBlock](https://docs.xbox.com/reference/system/xasync/structs/xasyncblock.md) for more information.

### Return value

Type: HRESULT

HRESULT success or error code.

## Remarks

This function is used to query for additional product information after a product query has been enumerated with [XStoreEnumerateProductsQuery](https://docs.xbox.com/reference/system/xstore/functions/xstoreenumerateproductsquery.md). Before calling this function you should check for the existence of additional product query information by calling [XStoreProductsQueryHasMorePages](https://docs.xbox.com/reference/system/xstore/functions/xstoreproductsqueryhasmorepages.md). To retrieve the next page of query results as well as the execution result of this function call [XStoreProductsQueryNextPageResult](https://docs.xbox.com/reference/system/xstore/functions/xstoreproductsquerynextpageresult.md) after calling this function. 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)\
[XStoreProductsQueryNextPageResult](https://docs.xbox.com/reference/system/xstore/functions/xstoreproductsquerynextpageresult.md)\
[XStoreProductsQueryHasMorePages](https://docs.xbox.com/reference/system/xstore/functions/xstoreproductsqueryhasmorepages.md)\
[XStoreEnumerateProductsQuery](https://docs.xbox.com/reference/system/xstore/functions/xstoreenumerateproductsquery.md)


## Related topics

- [XStoreProductsQueryNextPageResult](https://docs.xbox.com/reference/system/xstore/functions/xstoreproductsquerynextpageresult.md)
- [XStoreProductsQueryHasMorePages](https://docs.xbox.com/reference/system/xstore/functions/xstoreproductsqueryhasmorepages.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)
