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

# XNetworkingQuerySecurityInformationForUrlUtf16AsyncResult

> XNetworkingQuerySecurityInformationForUrlUtf16AsyncResult

# XNetworkingQuerySecurityInformationForUrlUtf16AsyncResult

[XNetworkingQuerySecurityInformationForUrlUtf16Async](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16async) 関数からバッファーの結果を取得します。

## 構文

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

### パラメーター

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

[XNetworkingQuerySecurityInformationForUrlUtf16Async](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16async) 関数に渡される [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) 構造体へのポインター。

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

結果バッファーに割り当てるサイズ (バイト単位)。このデータは、[XNetworkingQuerySecurityInformationForUrlUtf16AsyncResultSize](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16asyncresultsize) 関数を呼び出して取得します。または、大きな結果バッファーを事前に割り当てている場合は、事前割り当てされたバッファーのサイズを渡すこともできます。

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

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

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

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

*securityInformation*   \_Outptr\_\
型: [XNetworkingSecurityInformation](/reference/networking/xnetworking/structs/xnetworkingsecurityinformation)\*\*

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

### 戻り値

型: HRESULT

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

## 解説

この関数は、`XNetworkingQuerySecurityInformationForUrlUtf16Async` 関数を呼び出すことでバッファーの結果を取得します。結果バッファーに割り当てられたバイト数は、*securityInformationBufferByteCount* ポインターを使用して決定されます。結果バッファーの実際のバイト数は、*securityInformationBufferByteCountUsed* ポインターを使用して決定されます。拇印の結果と NSAL から返される証明書拇印の一覧は、*securityInformationBuffer* ポインターと *securityInformation* ポインターによって決定されます。Microsoft Game Development Kit (GDK) タイトルにおけるネットワーク情報については、「[ネットワーク情報の取得](/build/console-features/networking/initialization-connectivity-networking)」を参照してください。

このメソッドは呼び出し元プロセス内のローカル状態を照会して迅速に返るため、時間の影響を受けやすいコンテキストから呼び出しても安全です。

## 要件

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

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

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

## 関連項目

[HTTP および WebSocket](/build/console-features/networking/web-requests/http-networking)\
[XNetworkingQuerySecurityInformationForUrlAsyncResult](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasyncresult)\
[XNetworking](/reference/networking/xnetworking/xnetworking_members)
