Skip to main content

XStoreShowProductPageUIAsync

此 API 會直接開啟 Store 應用程式,並顯示所提供 ProductId 的產品詳細資料頁面 (PDP)。這可讓尚未整合購買流程或遊戲內商店 UI 的遊戲,仍能協助將使用者導向與其遊戲相關的產品,以及產品詳細資料頁面上的購買流程。 pdp

語法

參數

storeContextHandle   _In_
類型:XStoreContextHandle
由 XStoreCreateContext 傳回的使用者商店內容控制代碼。 storeId   _In_z_
類型:char*
產品的識別碼。 async   _Inout_
類型:XAsyncBlock*
定義正在執行之非同步工作的 XAsyncBlock。XAsyncBlock 可用來輪詢呼叫的狀態並擷取呼叫結果。如需詳細資訊,請參閱 XAsyncBlock。

傳回值

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

需求

標頭: XStore.h
程式庫: xgameruntime.lib
支援的平台: Windows、XBOX One 系列主機和 XBOX Series 主機

概念文件

另請參閱

XStore
Last modified on October 6, 2026