> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XStoreShowProductPageUIAsync

> XStoreShowProductPageUIAsync

# XStoreShowProductPageUIAsync

この API は、指定した ProductId の製品詳細ページ (PDP) をストア アプリで直接開きます。これにより、購入フローやゲーム内ストア UI との統合を実装していないタイトルでも、ユーザーをタイトルに関連する製品や、製品詳細ページにある購入フローに誘導できます。

<img src="https://mintcdn.com/microsoft-4404708b/MccwT2UvEEolGlU5/images/gdk/reference/pdpexample-small.webp?fit=max&auto=format&n=MccwT2UvEEolGlU5&q=85&s=ccd512ab75cdb0bd60e8314238d6a5da" alt="pdp" width="1920" height="1080" data-path="images/gdk/reference/pdpexample-small.webp" />

## Syntax

```cpp theme={null}
HRESULT XStoreShowProductPageUIAsync(  
         const XStoreContextHandle storeContextHandle,  
         const char* storeId,  
         XAsyncBlock* async  
)  
```

### Parameters

*storeContextHandle*   \_In\_\
型: XStoreContextHandle

[XStoreCreateContext](/reference/system/xstore/functions/xstorecreatecontext) によって返されたユーザーのストア コンテキスト ハンドル。

*storeId*   \_In\_z\_\
型: char\*

製品の ID。

*async*   \_Inout\_\
型: XAsyncBlock\*

実行される非同期処理を定義する [XAsyncBlock](/reference/system/xasync/structs/xasyncblock)。[XAsyncBlock](/reference/system/xasync/structs/xasyncblock) を使用して呼び出しの状態をポーリングしたり、呼び出し結果を取得したりできます。詳細については、[XAsyncBlock](/reference/system/xasync/structs/xasyncblock) を参照してください。

### Return value

型: HRESULT

HRESULT の成功またはエラー コード。

## Requirements

**ヘッダー:** XStore.h\
**ライブラリ:** xgameruntime.lib\
**サポートされているプラットフォーム**: Windows、XBOX One ファミリー本体および XBOX Series 本体

## Conceptual documentation

* [ゲームでゲーム内購入を実装する](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/pc-dev/tutorials/pc-e2e-guide/e2e-services/e2e-in-game-purchases)

## See also

[XStore](/reference/system/xstore/xstore_members)


## Related topics

- [XStoreShowProductPageUIResult](/ja-jp/reference/system/xstore/functions/xstoreshowproductpageuiresult.md)
- [XStore](/ja-jp/reference/system/xstore/xstore_members.md)
- [GDK 向け Unity C# API ラッパー](/ja-jp/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XStoreShowAssociatedProductsUIAsync](/ja-jp/reference/system/xstore/functions/xstoreshowassociatedproductsuiasync.md)
- [XStoreProductsQueryNextPageAsync](/ja-jp/reference/system/xstore/functions/xstoreproductsquerynextpageasync.md)
