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

# XGameUiShowWebAuthenticationResultSize

> XGameUiShowWebAuthenticationResultSize

# XGameUiShowWebAuthenticationResultSize

Recupera o tamanho do buffer necessário para armazenar uma solicitação de autenticação concluída anteriormente. Esse tamanho é variável porque a resposta do servidor pode conter uma quantidade arbitrária de dados.

## Sintaxe

```cpp theme={null}
HRESULT XGameUiShowWebAuthenticationResultSize(  
         XAsyncBlock* async,  
         size_t* bufferSize  
)  
```

### Parâmetros

*async*   \_Inout\_\
Tipo: [XAsyncBlock\*](/pt-BR/reference/system/xasync/structs/xasyncblock)

Um ponteiro para o [XAsyncBlock](/pt-BR/reference/system/xasync/structs/xasyncblock) que foi passado para [XGameUiShowWebAuthenticationAsync](/pt-BR/reference/system/xgameui/functions/xgameuishowwebauthenticationasync).

*bufferSize*   \_Out\_\
Tipo: size\_t\*

O tamanho, em bytes, do [XGameUiWebAuthenticationResultData](/pt-BR/reference/system/xgameui/structs/xgameuiwebauthenticationresultdata) retornado pela chamada de [XGameUiShowWebAuthenticationAsync](/pt-BR/reference/system/xgameui/functions/xgameuishowwebauthenticationasync).

### Valor retornado

Tipo: HRESULT

Código de êxito ou de erro HRESULT.

## Comentários

Chame este método dentro do retorno de chamada do *AsyncBlock* ou após a conclusão do *AsyncBlock*. Você deve chamar este método para poder alocar um buffer de tamanho suficiente para conter os dados do resultado retornados em [XGameUiShowWebAuthenticationResult](/pt-BR/reference/system/xgameui/functions/xgameuishowwebauthenticationresult).

Para obter um exemplo de como usar este método, confira o exemplo de código em [XGameUiShowWebAuthenticationAsync](/pt-BR/reference/system/xgameui/functions/xgameuishowwebauthenticationasync).

## Requisitos

**Cabeçalho:** XGameUI.h

**Biblioteca:** xgameruntime.lib

**Plataformas com suporte:** Windows, consoles da família XBOX One e consoles XBOX Series

## Confira também

[XGameUI](/pt-BR/reference/system/xgameui/xgameui_members)\
[XGameUiShowWebAuthenticationAsync](/pt-BR/reference/system/xgameui/functions/xgameuishowwebauthenticationasync)\
[XGameUiShowWebAuthenticationResult](/pt-BR/reference/system/xgameui/functions/xgameuishowwebauthenticationresult)\
[XGameUiWebAuthenticationResultData](/pt-BR/reference/system/xgameui/structs/xgameuiwebauthenticationresultdata)\
[Modelo de programação assíncrona](/pt-BR/build/core-features/common/async/async-programming-model)


## Related topics

- [XGameUiShowWebAuthenticationResult](/pt-BR/reference/system/xgameui/functions/xgameuishowwebauthenticationresult.md)
- [XGameUiShowWebAuthenticationAsync](/pt-BR/reference/system/xgameui/functions/xgameuishowwebauthenticationasync.md)
- [XGameUiShowWebAuthenticationWithOptionsAsync](/pt-BR/reference/system/xgameui/functions/xgameuishowwebauthenticationwithoptionsasync.md)
- [XGameUiWebAuthenticationResultData](/pt-BR/reference/system/xgameui/structs/xgameuiwebauthenticationresultdata.md)
- [XGameUiWebAuthenticationOptions](/pt-BR/reference/system/xgameui/enums/xgameuiwebauthenticationoptions.md)
