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

# XGameUiShowTextEntryResult

> XGameUiShowTextEntryResult

# XGameUiShowTextEntryResult

[XGameUiShowTextEntryAsync](/reference/system/xgameui/functions/xgameuishowtextentryasync) 呼び出しから結果を取得します。

## 構文

```cpp theme={null}
HRESULT XGameUiShowTextEntryResult(  
         XAsyncBlock* async,  
         uint32_t resultTextBufferSize,  
         char* resultTextBuffer,  
         uint32_t* resultTextBufferUsed  
)  
```

### パラメーター

*async*   \_In\_\
Type: [XAsyncBlock\*](/reference/system/xasync/structs/xasyncblock)

[XGameUiShowTextEntryAsync](/reference/system/xgameui/functions/xgameuishowtextentryasync) に渡された [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) へのポインター。

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

結果テキスト バッファーのサイズ。結果を含むバッファーのサイズを決定するために使用されます。この情報は [XGameUiShowTextEntryResultSize](/reference/system/xgameui/functions/xgameuishowtextentryresultsize) を呼び出して取得できます。または、事前に割り当てられた結果バッファーがある場合は、その結果バッファーのサイズを渡すこともできます。

*resultTextBuffer*   \_Out\_writes\_to\_(resultTextBufferSize,*resultTextBufferUsed)\
Type: char*

プレイヤーのテキスト入力の結果を含むテキスト バッファーへのポインター。

*resultTextBufferUsed*   \_Out\_opt\_\
Type: uint32\_t\*

プレイヤーのテキスト入力を含むバッファーの実際のサイズ。

### 戻り値

Type: HRESULT

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

## 解説

通常、この関数は [XGameUiShowTextEntryAsync](/reference/system/xgameui/functions/xgameuishowtextentryasync) の **XAsyncBlock** で呼び出します。この関数を使用すると、[XGameUiShowTextEntryAsync](/reference/system/xgameui/functions/xgameuishowtextentryasync) によって元々呼び出されたテキスト入力フィールドからテキスト入力を取得できます。テキスト入力結果のサイズを取得するには、[XGameUiShowTextEntryResultSize](/reference/system/xgameui/functions/xgameuishowtextentryresultsize) を呼び出す必要があります。\
非同期関数の完了後にこの関数をいつでも呼び出して関数の結果を取得することもできます。

## 要件

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

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

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

## 関連項目

[XGameUI](/reference/system/xgameui/xgameui_members)\
[XGameUiShowTextEntryAsync](/reference/system/xgameui/functions/xgameuishowtextentryasync)\
[XGameUiShowTextEntryResultSize](/reference/system/xgameui/functions/xgameuishowtextentryresultsize)


## Related topics

- [XGameUiShowTextEntryResultSize](/ja-jp/reference/system/xgameui/functions/xgameuishowtextentryresultsize.md)
- [XGameUiShowTextEntryAsync](/ja-jp/reference/system/xgameui/functions/xgameuishowtextentryasync.md)
- [XGameUiSetTextEntryUiResponse](/ja-jp/reference/system/xgameui/functions/xgameuisettextentryuiresponse.md)
- [XGameUI](/ja-jp/reference/system/xgameui/xgameui_members.md)
- [XGameUiShowTextEntryUiCallback](/ja-jp/reference/system/xgameui/functions/xgameuishowtextentryuicallback.md)
