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

# XNetworkingQuerySecurityInformationForUrlUtf16AsyncResultSize

> XNetworkingQuerySecurityInformationForUrlUtf16AsyncResultSize

# XNetworkingQuerySecurityInformationForUrlUtf16AsyncResultSize

[XNetworkingQuerySecurityInformationForUrlUtf16Async](https://docs.xbox.com/ja-jp/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16async.md) 関数からの結果バッファーのサイズを取得します。

## 構文

```cpp theme={null}
HRESULT XNetworkingQuerySecurityInformationForUrlUtf16AsyncResultSize(
         XAsyncBlock* asyncBlock,
         size_t* securityInformationBufferByteCount
)
```

### パラメーター

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

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

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

結果バッファーのサイズ (バイト単位)。

### 戻り値

型: HRESULT

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

## 解説

この関数は、`XNetworkingQuerySecurityInformationForUrlUtf16Async` 関数を呼び出すことでバッファーの結果を取得します。結果バッファーのバイト数は、*securityInformationBufferByteCount* ポインターを使用して決定されます。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)\
[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)
- [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)
- [XNetworkingQuerySecurityInformationForUrlUtf16Async](https://docs.xbox.com/ja-jp/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16async.md)
- [XNetworkingQuerySecurityInformationForUrlAsyncResult](https://docs.xbox.com/ja-jp/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasyncresult.md)
