> ## 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.

# XGameUiShowAchievementsAsync

> XGameUiShowAchievementsAsync

# XGameUiShowAchievementsAsync

指定されたタイトルに対する、要求元プレイヤーの実績を表示する UI を表示します。

## 構文

```cpp theme={null}
HRESULT XGameUiShowAchievementsAsync(  
         XAsyncBlock* async,  
         XUserHandle requestingUser,  
         uint32_t titleId  
)  
```

### パラメーター

*async*   \_In\_\
Type: [XAsyncBlock\*](https://docs.xbox.com/ja-jp/reference/system/xasync/structs/xasyncblock.md)

[XAsyncRun](https://docs.xbox.com/ja-jp/reference/system/xasync/functions/xasyncrun.md) に渡される [XAsyncBlock](https://docs.xbox.com/ja-jp/reference/system/xasync/structs/xasyncblock.md) へのポインター。

*requestingUser*   \_In\_\
Type: XUserHandle

実績のリストを要求しているプレイヤー。

*titleId*   \_In\_\
Type: uint32\_t

プレイヤーが実績を要求するタイトルの ID。

### 戻り値

Type: HRESULT

非同期呼び出しの HRESULT 成功またはエラー コード。

## 解説

このメソッドは実績のリストを返しません。プレイヤー向けに UI に実績を表示するだけです。

UI を呼び出すと、ゲームは *制約付きモード* に入ります。制約付きモードでは、呼び出された UI のバックグラウンドにある間、タイトルが受け取るシステム リソースが少なくなります。制約付きモードやタイトルのその他の運用モードの詳細については、「[XBOX ゲーム ライフ サイクル (NDA トピック)](https://docs.xbox.com/ja-jp/build/console-features/console-workflows/xbox-game-life-cycle.md)」を参照してください。

## 要件

**ヘッダー:** XGameUI.h

**ライブラリ:** xgameruntime.lib

**サポートされているプラットフォーム:** Windows、Steam Deck、XBOX One ファミリー本体および XBOX Series 本体

## 関連項目

[XGameUI](https://docs.xbox.com/ja-jp/reference/system/xgameui/xgameui_members.md)\
[XGameUiShowAchievementsResult](https://docs.xbox.com/ja-jp/reference/system/xgameui/functions/xgameuishowachievementsasync.md)\
[XBOX ゲーム ライフ サイクル (NDA トピック)](https://docs.xbox.com/ja-jp/build/console-features/console-workflows/xbox-game-life-cycle.md)


## Related topics

- [XGameUiShowAchievementsResult](https://docs.xbox.com/ja-jp/reference/system/xgameui/functions/xgameuishowachievementsresult.md)
- [XGameUiShowAchievementsUiCallback](https://docs.xbox.com/ja-jp/reference/system/xgameui/functions/xgameuishowachievementsuicallback.md)
- [XGameUiSetAchievementsUiResponse](https://docs.xbox.com/ja-jp/reference/system/xgameui/functions/xgameuisetachievementsuiresponse.md)
- [XGameUiUiCallbacks](https://docs.xbox.com/ja-jp/reference/system/xgameui/structs/xgameuiuicallbacks.md)
- [XGameUI (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xgameui/xgameui_members.md)
