XStoreQueryProductForCurrentGameAsync
提供目前執行中遊戲的市集產品資訊、其 SKU 和供應情況,以及其他中繼資料。語法
參數
storeContextHandle _In_類型:XStoreContextHandle 由 XStoreCreateContext 傳回的使用者市集內容控制代碼。 async _Inout_
類型:XAsyncBlock* 定義正在進行之非同步工作的 XAsyncBlock。XAsyncBlock 可用來輪詢呼叫的狀態並擷取呼叫結果。如需詳細資訊,請參閱 XAsyncBlock。
傳回值
類型:HRESULT HRESULT 成功或錯誤碼。備註
若要擷取市集產品資訊以及此函式的執行結果,請在呼叫此函式之後呼叫 XStoreQueryProductForCurrentGameResult。 下列程式碼片段示範擷取目前執行中遊戲之市集產品資訊的範例。需求
標頭: XStore.h (包含在 XGameRuntime.h 中) 程式庫: xgameruntime.lib 支援的平台: Windows、XBOX One 系列主機和 XBOX Series 主機概念文件
另請參閱
XStoreXStoreQueryProductForCurrentGameResult
XStoreQueryAssociatedProductsAsync
XStoreQueryEntitledProductsAsync
XStoreQueryProductsAsync
XStoreQueryProductForCurrentGameAsync
XStoreQueryProductForPackageAsync
