Skip to main content

XStoreQueryProductForPackageAsync

擷取指定套件的市集產品資訊。

語法

參數

storeContextHandle   _In_
類型:XStoreContextHandle
由 XStoreCreateContext 傳回的使用者市集內容控制代碼。 productKinds   _In_
類型:XStoreProductKind
要尋找的產品類型。 packageIdentifier   _In_z_
類型:char*
可唯一識別市集套件的字串。如需套件識別碼的詳細資訊,請參閱管理可下載內容 (DLC) 並授權。 async   _Inout_
類型:XAsyncBlock*
定義正在進行之非同步工作的 XAsyncBlock。XAsyncBlock 可用來輪詢呼叫的狀態並擷取呼叫結果。如需詳細資訊,請參閱 XAsyncBlock。

傳回值

類型:HRESULT HRESULT 成功或錯誤碼。

備註

若要擷取市集產品資訊以及此函式的執行結果,請在呼叫此函式之後呼叫 XStoreQueryProductForPackageResult。 下列程式碼片段示範擷取套件之產品資訊的範例。

需求

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

另請參閱

XStore
XStoreQueryProductForPackageResult
XStoreQueryAssociatedProductsAsync
XStoreQueryEntitledProductsAsync
XStoreQueryProductsAsync
XStoreQueryProductForCurrentGameAsync
XStoreQueryProductForPackageAsync
Last modified on October 6, 2026