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

# XGameUiShowWebAuthenticationResult

> XGameUiShowWebAuthenticationResult

# XGameUiShowWebAuthenticationResult

Gets the results from a [XGameUiShowWebAuthenticationAsync](/reference/system/xgameui/functions/xgameuishowwebauthenticationasync) call.

## Syntax

```cpp theme={null}
HRESULT XGameUiShowWebAuthenticationResult(  
         XAsyncBlock* async,  
         size_t bufferSize,  
         void* buffer,  
         XGameUiWebAuthenticationResultData** ptrToBuffer,  
         size_t* bufferUsed  
)  
```

### Parameters

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

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

*bufferSize*   \_In\_\
Type: size\_t

The size, in bytes, of the buffer to receive the result data from the completed authentication request.

*buffer*   \_Out\_writes\_bytes\_to\_(bufferSize,*bufferUsed)\
Type: void*

A pointer to the buffer to receive the result data from the completed authentication request. This buffer holds the result data structure, as well as the variable size response data.

*ptrToBuffer*   \_Outptr\_\
Type: [XGameUiWebAuthenticationResultData\*\*](/reference/system/xgameui/structs/xgameuiwebauthenticationresultdata)

A reference pointer to the result data structure. The result data structure is stored in the passed in *buffer*.

*bufferUsed*   \_Out\_opt\_\
Type: size\_t\*

The count of how many bytes of the *buffer* were used to store the result data and the variable response data.

### Return value

Type: HRESULT

HRESULT success or error code.

## Remarks

Call this method inside the *AsyncBlock* callback or after the *AsyncBlock* is complete.

Before you call this method, you should call [XGameUiShowWebAuthenticationResultSize](/reference/system/xgameui/functions/xgameuishowwebauthenticationresultsize) so that you can allocate a buffer of memory of sufficient size to contain the results of the web authentication response.

After calling this method, the *buffer* contains both the XGameUiWebAuthenticationResultData structure, as well as the variable response data (which can be accessed via the *responseCompletionUri* field of the result data structure).

When you are done processing the results of the result data, you should release the *buffer* memory allocation.

For an example of how to use this method, see the code example in [XGameUiShowWebAuthenticationAsync](/reference/system/xgameui/functions/xgameuishowwebauthenticationasync).

## Requirements

**Header:** XGameUI.h

**Library:** xgameruntime.lib

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

## See also

[XGameUI](/reference/system/xgameui/xgameui_members)\
[XGameUiShowWebAuthenticationAsync](/reference/system/xgameui/functions/xgameuishowwebauthenticationasync)\
[XGameUiShowWebAuthenticationResultSize](/reference/system/xgameui/functions/xgameuishowwebauthenticationresultsize)\
[XGameUiWebAuthenticationResultData](/reference/system/xgameui/structs/xgameuiwebauthenticationresultdata)\
[Asynchronous Programming Model](/build/core-features/common/async/async-programming-model)


## Related topics

- [XGameUiShowWebAuthenticationResultSize](/reference/system/xgameui/functions/xgameuishowwebauthenticationresultsize.md)
- [XGameUiShowWebAuthenticationAsync](/reference/system/xgameui/functions/xgameuishowwebauthenticationasync.md)
- [XGameUiShowWebAuthenticationWithOptionsAsync](/reference/system/xgameui/functions/xgameuishowwebauthenticationwithoptionsasync.md)
- [XGameUiWebAuthenticationResultData](/reference/system/xgameui/structs/xgameuiwebauthenticationresultdata.md)
- [XGameUiWebAuthenticationOptions](/reference/system/xgameui/enums/xgameuiwebauthenticationoptions.md)
