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

# XGameUiShowTextEntryResultSize

> XGameUiShowTextEntryResultSize

Gets the size of the return buffer from a [XGameUiShowTextEntryAsync](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowtextentryasync.md) call.

## Syntax

```cpp theme={null}
HRESULT XGameUiShowTextEntryResultSize(  
         XAsyncBlock* async,  
         uint32_t* resultTextBufferSize  
)  
```

### Parameters

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

A pointer to the [XAsyncBlock](https://docs.xbox.com/reference/system/xasync/structs/xasyncblock.md) that was passed to [XGameUiShowTextEntryAsync](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowtextentryasync.md).

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

The size of the result text buffer.

### Return value

Type: HRESULT

HRESULT success or error code.

## Remarks

Typically this function is to be called in [XGameUiShowTextEntryAsync's](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowtextentryasync.md) **XAsyncBlock**. This function allows you to retrieve the size of the text input from a text entry field that was originally called for by [XGameUiShowTextEntryAsync](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowtextentryasync.md). To retrieve the  text entry result you will need to call [XGameUiShowTextEntryResult](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowtextentryresult.md).\
You may also call this function anytime after the async function completes in order to retrieve the function result.

## Requirements

**Header:** XGameUI.h

**Library:** xgameruntime.lib

**Supported platforms:** Windows, Steam Deck, XBOX One family consoles and XBOX Series consoles

## See also

[XGameUI](https://docs.xbox.com/reference/system/xgameui/xgameui_members.md)\
[XGameUiShowTextEntryAsync](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowtextentryasync.md)\
[XGameUiShowTextEntryResult](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowtextentryresult.md)


## Related topics

- [XGameUiShowTextEntryResult](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowtextentryresult.md)
- [XGameUiShowTextEntryAsync](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowtextentryasync.md)
- [XGameUiSetTextEntryUiResponse](https://docs.xbox.com/reference/system/xgameui/functions/xgameuisettextentryuiresponse.md)
- [XGameUI (API contents)](https://docs.xbox.com/reference/system/xgameui/xgameui_members.md)
- [XGameUiShowTextEntryUiCallback](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowtextentryuicallback.md)
