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

# XNetworkingQuerySecurityInformationForUrlUtf16AsyncResultSize

> XNetworkingQuerySecurityInformationForUrlUtf16AsyncResultSize

# XNetworkingQuerySecurityInformationForUrlUtf16AsyncResultSize

取得 [XNetworkingQuerySecurityInformationForUrlUtf16Async](/zh-TW/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16async) 函式的結果緩衝區大小。

## 語法

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

### 參數

*asyncBlock*   \_Inout\_\
類型：[XAsyncBlock](/zh-TW/reference/system/xasync/structs/xasyncblock)\*

傳遞給 [XNetworkingQuerySecurityInformationForUrlUtf16Async](/zh-TW/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16async) 函式之 [XAsyncBlock](/zh-TW/reference/system/xasync/structs/xasyncblock) 結構的指標。

*securityInformationBufferByteCount*   \_Out\_\
類型：size\_t\*

結果緩衝區的大小 (以位元組為單位)。

### 傳回值

類型：HRESULT

HRESULT 成功或錯誤碼。

## 備註

此函式會藉由呼叫 `XNetworkingQuerySecurityInformationForUrlUtf16Async` 函式來取得緩衝區結果。結果緩衝區的位元組數是使用 *securityInformationBufferByteCount* 指標來決定。如需 Microsoft Game Development Kit (GDK) 遊戲中的網路資訊，請參閱[擷取網路資訊](/zh-TW/build/console-features/networking/initialization-connectivity-networking)。

此方法會查詢呼叫處理程序內的本機狀態並快速傳回，因此可以安全地從時間敏感的內容中呼叫。

## 需求

**標頭：** XNetworking.h

**程式庫：** xgameruntime.lib

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[HTTP 和 WebSocket](/zh-TW/build/console-features/networking/web-requests/http-networking)\
[XNetworking](/zh-TW/reference/networking/xnetworking/xnetworking_members)


## Related topics

- [XNetworkingQuerySecurityInformationForUrlUtf16AsyncResultSize](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16asyncresultsize.md)
- [XNetworkingQuerySecurityInformationForUrlUtf16AsyncResult](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16asyncresult.md)
