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

[XGameUiShowWebAuthenticationAsync](/reference/system/xgameui/functions/xgameuishowwebauthenticationasync) 呼び出しの結果を取得します。

## Syntax

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

### Parameters

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

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

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

完了した認証要求から結果データを受け取るバッファーのサイズ (バイト単位)。

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

完了した認証要求から結果データを受け取るバッファーへのポインター。このバッファーには、結果データ構造体と可変サイズの応答データが格納されます。

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

結果データ構造体への参照ポインター。結果データ構造体は、渡された *buffer* に格納されます。

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

結果データと可変応答データの格納に使用された *buffer* のバイト数。

### Return value

型: HRESULT

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

## Remarks

このメソッドは *AsyncBlock* コールバック内、または *AsyncBlock* の完了後に呼び出します。

このメソッドを呼び出す前に、[XGameUiShowWebAuthenticationResultSize](/reference/system/xgameui/functions/xgameuishowwebauthenticationresultsize) を呼び出して、Web 認証応答の結果を格納するのに十分なサイズのメモリ バッファーを割り当てられるようにしてください。

このメソッドを呼び出した後、*buffer* には XGameUiWebAuthenticationResultData 構造体と可変の応答データ (結果データ構造体の *responseCompletionUri* フィールドからアクセスできます) の両方が含まれます。

結果データの処理が完了したら、*buffer* に割り当てたメモリを解放する必要があります。

このメソッドの使用例については、[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)\
[XGameUiShowWebAuthenticationResultSize](/reference/system/xgameui/functions/xgameuishowwebauthenticationresultsize)\
[XGameUiWebAuthenticationResultData](/reference/system/xgameui/structs/xgameuiwebauthenticationresultdata)\
[非同期プログラミング モデル](/build/core-features/common/async/async-programming-model)


## Related topics

- [XGameUiShowWebAuthenticationResultSize](/ja-jp/reference/system/xgameui/functions/xgameuishowwebauthenticationresultsize.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)
