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

# XStoreQueryEntitledProductsResult

> XStoreQueryEntitledProductsResult

# XStoreQueryEntitledProductsResult

取得 [XStoreQueryEntitledProductsAsync](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorequeryentitledproductsasync.md) 呼叫的結果。

## 語法

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

### 參數

*async*   \_Inout\_\
類型：[XAsyncBlock\*](https://docs.xbox.com/zh-TW/reference/system/xasync/structs/xasyncblock.md)

傳遞給 [XStoreQueryEntitledProductsAsync](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorequeryentitledproductsasync.md) 的 `XAsyncBlock`。
使用 [XAsyncBlock](https://docs.xbox.com/zh-TW/reference/system/xasync/structs/xasyncblock.md) 來輪詢呼叫的狀態並擷取呼叫結果。
如需詳細資訊，請參閱 [XAsyncBlock](https://docs.xbox.com/zh-TW/reference/system/xasync/structs/xasyncblock.md)。

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

傳回時，包含代表該查詢的 XStoreProductQueryHandle。傳回的 XStoreProductQueryHandle 可傳遞給 [XStoreEnumerateProductsQuery](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstoreenumerateproductsquery.md)，以列舉查詢所傳回的產品。

### 傳回值

類型：HRESULT

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

## 備註

此結果函式會擷取 [XStoreQueryEntitledProductsAsync](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorequeryentitledproductsasync.md) 的執行結果，以及在執行成功時的產品資訊。
請在 [XStoreQueryEntitledProductsAsync](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorequeryentitledproductsasync.md) 之後呼叫此函式，通常是在回呼函式的內容中呼叫。

如需使用範例，請參閱 [XStoreQueryEntitledProductsAsync](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorequeryentitledproductsasync.md)。

## 需求

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

**程式庫：** xgameruntime.lib

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

## 概念文件

* [授與玩家附加元件內容的存取權](https://docs.xbox.com/zh-TW/publishing/xstore-commerce/xstore-granting-access.md)
* [在遊戲中實作遊戲內購買](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/pc-dev/tutorials/pc-e2e-guide/e2e-services/e2e-in-game-purchases)
* [基本商店作業](https://docs.xbox.com/zh-TW/publishing/xstore-commerce/xstore-basic-operations.md)

## 另請參閱

[XStore](https://docs.xbox.com/zh-TW/reference/system/xstore/xstore_members.md)
[XStoreQueryAssociatedProductsAsync](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorequeryassociatedproductsasync.md)\
[XStoreQueryEntitledProductsAsync](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorequeryentitledproductsasync.md)\
[XStoreQueryProductsAsync](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorequeryproductsasync.md)\
[XStoreQueryProductForCurrentGameAsync](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorequeryproductforcurrentgameasync.md)\
[XStoreQueryProductForPackageAsync](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorequeryproductforpackageasync.md)\
[基本商店作業](https://docs.xbox.com/zh-TW/publishing/xstore-commerce/xstore-basic-operations.md)\
[授與玩家附加元件內容的存取權](https://docs.xbox.com/zh-TW/publishing/xstore-commerce/xstore-granting-access.md)


## Related topics

- [XStoreQueryEntitledProductsAsync](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorequeryentitledproductsasync.md)
- [XStoreCloseProductsQueryHandle](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorecloseproductsqueryhandle.md)
- [XStoreEnumerateProductsQuery](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstoreenumerateproductsquery.md)
- [XStoreProductsQueryHasMorePages](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstoreproductsqueryhasmorepages.md)
- [基本商店作業](https://docs.xbox.com/zh-TW/publishing/xstore-commerce/xstore-basic-operations.md)
