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

# XStoreProductsQueryNextPageResult

> XStoreProductsQueryNextPageResult

# XStoreProductsQueryNextPageResult

從產品查詢取得結果的下一頁。

## 語法

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

### 參數

*async*   \_Inout\_\
類型：[XAsyncBlock\*](/zh-TW/reference/system/xasync/structs/xasyncblock)

傳遞給 [XStoreQueryProductForCurrentGameResult](/zh-TW/reference/system/xstore/functions/xstorequeryproductforcurrentgameresult) 或 [XStoreQueryProductForPackageResult.md](/zh-TW/reference/system/xstore/functions/xstorequeryproductforpackageresult) 的 XAsyncBlock。[XAsyncBlock](/zh-TW/reference/system/xasync/structs/xasyncblock) 可用來輪詢呼叫的狀態並擷取呼叫結果。如需詳細資訊，請參閱 [XAsyncBlock](/zh-TW/reference/system/xasync/structs/xasyncblock)。

*productQueryHandle*   \_Out\_\
類型：XStoreProductQueryHandle\*

傳回時，包含指向查詢下一頁的查詢控制代碼。傳回的查詢控制代碼可用來追蹤查詢目前的結果頁面，並應在下一次呼叫 [XStoreProductsQueryHasMorePages](/zh-TW/reference/system/xstore/functions/xstoreproductsqueryhasmorepages) 和 [XStoreProductsQueryNextPageAsync](/zh-TW/reference/system/xstore/functions/xstoreproductsquerynextpageasync) 時使用。

### 傳回值

類型：HRESULT

成功時傳回 S\_OK；否則傳回錯誤碼。

## 備註

此結果函式可讓您擷取 [XStoreProductsQueryNextPageAsync](/zh-TW/reference/system/xstore/functions/xstoreproductsquerynextpageasync) 的執行結果，以及在執行成功時所要求的查詢結果下一頁。因此，應在呼叫 [XStoreProductsQueryNextPageAsync](/zh-TW/reference/system/xstore/functions/xstoreproductsquerynextpageasync) 之後呼叫此函式，通常是在回呼函式的內容中。如需使用範例，請參閱 [XStoreQueryAssociatedProductsAsync](/zh-TW/reference/system/xstore/functions/xstorequeryassociatedproductsasync)。

## 需求

**標頭：** XStore.h (包含在 XGameRuntime.h 中)

**程式庫：** xgameruntime.lib

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[XStore](/zh-TW/reference/system/xstore/xstore_members)\
[XStoreProductsQueryNextPageAsync](/zh-TW/reference/system/xstore/functions/xstoreproductsquerynextpageasync)\
[XStoreProductsQueryHasMorePages](/zh-TW/reference/system/xstore/functions/xstoreproductsqueryhasmorepages)


## Related topics

- [XStoreProductsQueryNextPageResult](/reference/system/xstore/functions/xstoreproductsquerynextpageresult.md)
- [XStoreProductsQueryNextPageAsync](/reference/system/xstore/functions/xstoreproductsquerynextpageasync.md)
- [XStoreProductsQueryHasMorePages](/reference/system/xstore/functions/xstoreproductsqueryhasmorepages.md)
- [XStoreQueryAssociatedProductsAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsasync.md)
- [XStore](/reference/system/xstore/xstore_members.md)
