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

# XNetworkingQuerySecurityInformationForUrlAsyncResult

> XNetworkingQuerySecurityInformationForUrlAsyncResult

# XNetworkingQuerySecurityInformationForUrlAsyncResult

Gets the results from the [XNetworkingQuerySecurityInformationForUrlAsync](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasync) function.

## Syntax

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

### Parameters

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

Pointer to the [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) that was passed to the [XNetworkingQuerySecurityInformationForUrlAsync](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasync) function.

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

The size, in bytes, to allocate for the results buffer. This data is obtained by calling [XNetworkingQuerySecurityInformationForUrlAsyncResultSize](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasyncresultsize). 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](/reference/networking/xnetworking/structs/xnetworkingsecurityinformation)\*\*

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 results from the [XNetworkingQuerySecurityInformationForUrlAsync](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasync) function. Its pointers determine the size in bytes allocated to the results buffer, actual results of the buffer byte size, the buffer that contains the thumbprint results, and the list of certificate thumbprints returned from the NSAL.

The buffer is the underlying buffer used by all the pointers in the security information structure pointer. The title should keep the buffer valid as long as it is using the security information structure pointer. Freeing and cleaning up the buffer also cleans up all memory used by the security information structure 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)\
[XNetworkingQuerySecurityInformationForUrlUtf16AsyncResult](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16asyncresult)\
[XNetworking](/reference/networking/xnetworking/xnetworking_members)


## Related topics

- [XNetworkingQuerySecurityInformationForUrlUtf16AsyncResult](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16asyncresult.md)
- [XNetworking](/reference/networking/xnetworking/xnetworking_members.md)
- [XNetworkingVerifyServerCertificate](/reference/networking/xnetworking/functions/xnetworkingverifyservercertificate.md)
- [Unity C# API wrappers for the GDK](/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XNetworkingQuerySecurityInformationForUrlAsyncResultSize](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasyncresultsize.md)
