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

產品查詢的遊戲定義回呼。

## 語法

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

### 參數

*product*   \_In\_\
類型：[XStoreProduct\*](/zh-TW/reference/system/xstore/structs/xstoreproduct)

產品的描述。

*context*   \_In\_opt\_\
類型：void\*

要傳遞給回呼的遊戲定義內容。

### 傳回值

類型：bool

傳回 true 以繼續列舉查詢結果；否則傳回 false。

## 備註

這個遊戲定義的函式可用來從列舉的市集產品集合中讀取其中一個產品的資訊。此函式必須具有與此處所提供定義相同的傳回類型和參數，並作為 [XStoreEnumerateProductsQuery](/zh-TW/reference/system/xstore/functions/xstoreenumerateproductsquery) 函式的回呼使用。如需使用範例，請參閱 [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)\
[XStoreEnumerateProductsQuery](/zh-TW/reference/system/xstore/functions/xstoreenumerateproductsquery)\
[XStoreQueryAssociatedProductsAsync](/zh-TW/reference/system/xstore/functions/xstorequeryassociatedproductsasync)


## Related topics

- [XStoreProductQueryCallback](/reference/system/xstore/functions/xstoreproductquerycallback.md)
- [XStoreEnumerateProductsQuery](/ja-jp/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)
