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

# XGameUiWebAuthenticationResultData

> XGameUiWebAuthenticationResultData

# XGameUiWebAuthenticationResultData

Web 認証要求からの応答が含まれます。

## Syntax

```cpp theme={null}
typedef struct XGameUiWebAuthenticationResultData {  
    HRESULT responseStatus ;  
    size_t responseCompletionUriSize;  
    const char* responseCompletionUri;  
} XGameUiWebAuthenticationResultData  
```

### Members

*responseStatus*
型: HRESULT

Web ビュー認証の状態を示します。成功した場合は `S_OK`、ユーザーが戻るボタンを押して Web ビューを手動で閉じた場合は `E_CANCELLED`。

*responseCompletionUriSize*\
型: size\_t

*responseCompletionUri* に格納されている応答データのサイズ (バイト単位)。

*responseCompletionUri*\
型: const char\*

完全な応答データ。URI 形式で含まれます。

## Remarks

この構造体は、[XGameUiShowWebAuthenticationResult](/reference/system/xgameui/functions/xgameuishowwebauthenticationresult) を呼び出した後にアクセスできます。

*responseStatus* フィールドを確認することで、認証要求が成功したかどうかを確認できます。認証ブラウザーが完了 URI に正常に遷移した場合、このフィールドには `S_OK` が含まれ、それ以外の場合は、ユーザーが戻るボタンを押してキャンセルしたことを示す `E_CANCELLED` が含まれます。

認証要求が成功した場合、応答データには基本コールバック URI と、ユーザーの認証結果として OAuth プロバイダーが追加したパラメーター (アクセス トークン、有効期限など) が含まれます。

認証要求がキャンセルされた場合、応答データは null 文字列になります。

## Requirements

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

**サポートされているプラットフォーム:** 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)\
[XGameUiShowWebAuthenticationResult](/reference/system/xgameui/functions/xgameuishowwebauthenticationresult)\
[非同期プログラミング モデル](/build/core-features/common/async/async-programming-model)


## Related topics

- [XGameUiShowWebAuthenticationResult](/ja-jp/reference/system/xgameui/functions/xgameuishowwebauthenticationresult.md)
- [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)
- [XGameUI](/ja-jp/reference/system/xgameui/xgameui_members.md)
