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

以前に完了した認証要求の結果を格納するために必要なバッファーのサイズを取得します。サーバー応答には任意の量のデータが含まれる可能性があるため、このサイズは可変です。

## Syntax

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

### Parameters

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

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

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

[XGameUiShowWebAuthenticationAsync](/reference/system/xgameui/functions/xgameuishowwebauthenticationasync) 呼び出しから返される [XGameUiWebAuthenticationResultData](/reference/system/xgameui/structs/xgameuiwebauthenticationresultdata) のサイズ (バイト単位)。

### Return value

型: HRESULT

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

## Remarks

このメソッドは *AsyncBlock* コールバック内、または *AsyncBlock* の完了後に呼び出します。[XGameUiShowWebAuthenticationResult](/reference/system/xgameui/functions/xgameuishowwebauthenticationresult) で返される結果データを格納するのに十分なサイズのバッファーを割り当てるために、このメソッドを呼び出す必要があります。

このメソッドの使用例については、[XGameUiShowWebAuthenticationAsync](/reference/system/xgameui/functions/xgameuishowwebauthenticationasync) のコード例を参照してください。

## Requirements

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

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

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

## See also

[XGameUI](/reference/system/xgameui/xgameui_members)\
[XGameUiShowWebAuthenticationAsync](/reference/system/xgameui/functions/xgameuishowwebauthenticationasync)\
[XGameUiShowWebAuthenticationResult](/reference/system/xgameui/functions/xgameuishowwebauthenticationresult)\
[XGameUiWebAuthenticationResultData](/reference/system/xgameui/structs/xgameuiwebauthenticationresultdata)\
[非同期プログラミング モデル](/build/core-features/common/async/async-programming-model)


## Related topics

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