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

# XStoreShowProductPageUIAsync

> XStoreShowProductPageUIAsync

# XStoreShowProductPageUIAsync

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

![pdp](https://mintcdn.com/microsoft-4404708b/MccwT2UvEEolGlU5/images/gdk/reference/pdpexample-small.webp?fit=max\&auto=format\&n=MccwT2UvEEolGlU5\&q=85\&s=ccd512ab75cdb0bd60e8314238d6a5da)

## Syntax

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

### Parameters

*storeContextHandle*   \_In\_\
型: XStoreContextHandle

[XStoreCreateContext](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorecreatecontext.md) によって返されたユーザーのストア コンテキスト ハンドル。

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

製品の ID。

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

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

### 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](https://docs.xbox.com/ja-jp/reference/system/xstore/xstore_members.md)


## Related topics

- [XStoreShowProductPageUIResult](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoreshowproductpageuiresult.md)
- [XStore (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xstore/xstore_members.md)
- [Unity プロジェクトでの GDK API 用 C# ラッパーの使用](https://docs.xbox.com/ja-jp/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XStoreShowAssociatedProductsUIAsync](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoreshowassociatedproductsuiasync.md)
- [XStoreProductsQueryNextPageAsync](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoreproductsquerynextpageasync.md)
