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

Gets the size of the results buffer from the[XNetworkingQuerySecurityInformationForUrlUtf16Async](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16async) function.

## Syntax

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

### Parameters

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

Pointer to the [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) structure that gets passed to the[XNetworkingQuerySecurityInformationForUrlUtf16Async](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16async) function.

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

The size, in bytes, of the results buffer.

### Return value

Type: HRESULT

HRESULT success or error code.

## Remarks

This function gets the buffer results by calling the `XNetworkingQuerySecurityInformationForUrlUtf16Async` function. The number of bytes of the results buffer are determined using the *securityInformationBufferByteCount* pointer. For network information in Microsoft Game Development Kit (GDK) titles, see [Retrieving Network Information](/build/console-features/networking/initialization-connectivity-networking).

This method interrogates the local state within the calling process and returns quickly, so it is safe to call from time-sensitive contexts.

## Requirements

**Header:** XNetworking.h

**Library:** xgameruntime.lib

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[HTTP and Web Sockets](/build/console-features/networking/web-requests/http-networking)\
[XNetworking](/reference/networking/xnetworking/xnetworking_members)


## Related topics

- [XNetworkingQuerySecurityInformationForUrlUtf16AsyncResult](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16asyncresult.md)
- [XNetworking](/reference/networking/xnetworking/xnetworking_members.md)
- [Unity C# API wrappers for the GDK](/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XNetworkingQuerySecurityInformationForUrlUtf16Async](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16async.md)
- [XNetworkingQuerySecurityInformationForUrlAsyncResult](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasyncresult.md)
