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

# XGameUiShowTextEntryResultSize

> XGameUiShowTextEntryResultSize

# XGameUiShowTextEntryResultSize

Gets the size of the return buffer from a [XGameUiShowTextEntryAsync](/reference/system/xgameui/functions/xgameuishowtextentryasync) call.

## Syntax

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

### Parameters

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

A pointer to the [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) that was passed to [XGameUiShowTextEntryAsync](/reference/system/xgameui/functions/xgameuishowtextentryasync).

*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](/reference/system/xgameui/functions/xgameuishowtextentryasync) **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](/reference/system/xgameui/functions/xgameuishowtextentryasync). To retrieve the  text entry result you will need to call [XGameUiShowTextEntryResult](/reference/system/xgameui/functions/xgameuishowtextentryresult).\
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](/reference/system/xgameui/xgameui_members)\
[XGameUiShowTextEntryAsync](/reference/system/xgameui/functions/xgameuishowtextentryasync)\
[XGameUiShowTextEntryResult](/reference/system/xgameui/functions/xgameuishowtextentryresult)


## Related topics

- [XGameUiShowTextEntryResult](/reference/system/xgameui/functions/xgameuishowtextentryresult.md)
- [XGameUiShowTextEntryAsync](/reference/system/xgameui/functions/xgameuishowtextentryasync.md)
- [XGameUiSetTextEntryUiResponse](/reference/system/xgameui/functions/xgameuisettextentryuiresponse.md)
- [XGameUI](/reference/system/xgameui/xgameui_members.md)
- [XGameUiShowTextEntryUiCallback](/reference/system/xgameui/functions/xgameuishowtextentryuicallback.md)
