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

# XNetworkingQuerySecurityInformationForUrlUtf16AsyncResult

> XNetworkingQuerySecurityInformationForUrlUtf16AsyncResult

Gets the buffer results from the [XNetworkingQuerySecurityInformationForUrlUtf16Async](https://docs.xbox.com/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16async.md) function.

## Syntax

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

### Parameters

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

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

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

The size, in bytes, to allocate for the results buffer. This data is obtained by calling the[XNetworkingQuerySecurityInformationForUrlUtf16AsyncResultSize](https://docs.xbox.com/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16asyncresultsize.md) function. Alternatively, if you have pre-allocated a large results buffer, you can pass in the size of the pre-allocated buffer.

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

Pointer to the size, in bytes, of the actual results buffer.

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

Pointer to the buffer that contains the thumbprint results.

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

Pointer to the list of certificate thumbprints returned from the Network Security Allow List (NSAL).

### 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 allocated to the results buffer are determined using the *securityInformationBufferByteCount* pointer. The actual number of bytes of the results buffer are determined using the *securityInformationBufferByteCountUsed* pointer. Thumbprint results and the list of certificate thumbprints returned from the NSAL are determined by the *securityInformationBuffer* pointer and the *securityInformation* pointer. For network information in Microsoft Game Development Kit (GDK) titles, see [Retrieving Network Information](https://docs.xbox.com/build/console-features/networking/initialization-connectivity-networking.md).

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](https://docs.xbox.com/build/console-features/networking/web-requests/http-networking.md)\
[XNetworkingQuerySecurityInformationForUrlAsyncResult](https://docs.xbox.com/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasyncresult.md)\
[XNetworking](https://docs.xbox.com/reference/networking/xnetworking/xnetworking_members.md)


## Related topics

- [XNetworkingQuerySecurityInformationForUrlUtf16Async](https://docs.xbox.com/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16async.md)
- [XNetworkingQuerySecurityInformationForUrlAsyncResult](https://docs.xbox.com/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasyncresult.md)
- [XNetworking (API contents)](https://docs.xbox.com/reference/networking/xnetworking/xnetworking_members.md)
- [Using C# wrappers for GDK APIs in your Unity project](https://docs.xbox.com/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XNetworkingQuerySecurityInformationForUrlUtf16AsyncResultSize](https://docs.xbox.com/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16asyncresultsize.md)
