> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XNetworkingQuerySecurityInformationForUrlAsyncResult

> XNetworkingQuerySecurityInformationForUrlAsyncResult

# XNetworkingQuerySecurityInformationForUrlAsyncResult

[XNetworkingQuerySecurityInformationForUrlAsync](https://docs.xbox.com/ja-jp/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasync.md) 関数からの結果を取得します。

## 構文

```cpp theme={null}
HRESULT XNetworkingQuerySecurityInformationForUrlAsyncResult(
         XAsyncBlock* asyncBlock,
         size_t securityInformationBufferByteCount,
         size_t* securityInformationBufferByteCountUsed,
         uint8_t* securityInformationBuffer,
         XNetworkingSecurityInformation** securityInformation
)
```

### パラメーター

*asyncBlock*   \_Inout\_\
型: [XAsyncBlock](https://docs.xbox.com/ja-jp/reference/system/xasync/structs/xasyncblock.md)\*

[XNetworkingQuerySecurityInformationForUrlAsync](https://docs.xbox.com/ja-jp/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasync.md) 関数に渡された [XAsyncBlock](https://docs.xbox.com/ja-jp/reference/system/xasync/structs/xasyncblock.md) へのポインター。

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

結果バッファーに割り当てるサイズ (バイト単位)。このデータは、[XNetworkingQuerySecurityInformationForUrlAsyncResultSize](https://docs.xbox.com/ja-jp/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasyncresultsize.md) を呼び出して取得します。または、大きな結果バッファーを事前に割り当てている場合は、事前割り当てされたバッファーのサイズを渡すこともできます。

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

実際の結果バッファーのサイズ (バイト単位) へのポインター。

*securityInformationBuffer*   \_Out\_writes\_bytes\_to\_(securityInformationBufferByteCount,\*securityInformationBufferByteCountUsed)\
型: uint8\_t\*

拇印の結果を含むバッファーへのポインター。

*securityInformation*   \_Outptr\_\
型: [XNetworkingSecurityInformation](https://docs.xbox.com/ja-jp/reference/networking/xnetworking/structs/xnetworkingsecurityinformation.md)\*\*

ネットワーク セキュリティ許可リスト (NSAL) から返される証明書拇印の一覧へのポインター。

### 戻り値

型: HRESULT

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

## 解説

この関数は、[XNetworkingQuerySecurityInformationForUrlAsync](https://docs.xbox.com/ja-jp/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasync.md) 関数からの結果を取得します。そのポインターは、結果バッファーに割り当てられたバイト単位のサイズ、バッファー バイト サイズの実際の結果、拇印の結果を含むバッファー、および NSAL から返される証明書拇印の一覧を決定します。

このバッファーは、セキュリティ情報構造体ポインター内のすべてのポインターが使用する基になるバッファーです。タイトルは、セキュリティ情報構造体ポインターを使用している間、バッファーを有効に保つ必要があります。バッファーの解放とクリーンアップにより、セキュリティ情報構造体ポインターで使用されるすべてのメモリもクリーンアップされます。Microsoft Game Development Kit (GDK) タイトルにおけるネットワーク情報については、「[ネットワーク情報の取得](https://docs.xbox.com/ja-jp/build/console-features/networking/initialization-connectivity-networking.md)」を参照してください。

このメソッドは呼び出し元プロセス内のローカル状態を照会して迅速に返るため、タイム センシティブなコンテキストから呼び出しても安全です。

## 要件

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

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

**サポートされているプラットフォーム:** Windows、XBOX One ファミリ コンソール、XBOX Series コンソール

## 関連項目

[HTTP および WebSocket](https://docs.xbox.com/ja-jp/build/console-features/networking/web-requests/http-networking.md)\
[XNetworkingQuerySecurityInformationForUrlUtf16AsyncResult](https://docs.xbox.com/ja-jp/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16asyncresult.md)\
[XNetworking](https://docs.xbox.com/ja-jp/reference/networking/xnetworking/xnetworking_members.md)


## Related topics

- [XNetworkingQuerySecurityInformationForUrlUtf16AsyncResult](https://docs.xbox.com/ja-jp/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16asyncresult.md)
- [XNetworkingVerifyServerCertificate](https://docs.xbox.com/ja-jp/reference/networking/xnetworking/functions/xnetworkingverifyservercertificate.md)
- [XNetworking (API の内容)](https://docs.xbox.com/ja-jp/reference/networking/xnetworking/xnetworking_members.md)
- [Unity プロジェクトでの GDK API 用 C# ラッパーの使用](https://docs.xbox.com/ja-jp/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XNetworkingQuerySecurityInformationForUrlAsyncResultSize](https://docs.xbox.com/ja-jp/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasyncresultsize.md)
