Skip to main content

XStoreQueryProductsResult

取得呼叫 XStoreQueryProductsAsync 的結果。

語法

參數

async   _Inout_
類型:XAsyncBlock*
傳遞給 XStoreQueryProductsAsync 的 XAsyncBlock。 使用 XAsyncBlock 檢查呼叫的狀態並取得結果。 如需詳細資訊,請參閱 XAsyncBlock。

productQueryHandle   _Out_
類型:XStoreProductQueryHandle*
傳回時,包含代表該查詢的 XStoreProductQueryHandle。傳回的 XStoreProductQueryHandle 可傳遞給 XStoreEnumerateProductsQuery,以列舉查詢傳回的產品。

傳回值

類型:HRESULT 成功時傳回 S_OK;否則傳回錯誤碼。

備註

使用此結果函式取得 XStoreQueryProductsAsync 的執行結果。如果執行成功,它會傳回清單資訊。 請在 XStoreQueryProductsAsync 之後呼叫此函式,通常是在回呼函式的內容中呼叫。 如需使用範例,請參閱 XStoreQueryProductsAsync。

需求

標頭: XStore.h (包含在 XGameRuntime.h 中) 程式庫: xgameruntime.lib 支援的平台: Windows、XBOX One 系列主機和 XBOX Series 主機

概念文件

另請參閱

XStore
XStoreQueryAssociatedProductsAsync
XStoreQueryEntitledProductsAsync
XStoreQueryProductsAsync
XStoreQueryProductForCurrentGameAsync
XStoreQueryProductForPackageAsync
基本市集作業
授與玩家附加元件內容的存取權
Last modified on October 6, 2026