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

# XNetworkingQuerySecurityInformationForUrlUtf16Async

> XNetworkingQuerySecurityInformationForUrlUtf16Async

Retrieves security information associated with an URL as configured in the Universal Developer Portal for XBOX Live-enabled titles.

## Syntax

```cpp theme={null}
HRESULT XNetworkingQuerySecurityInformationForUrlUtf16Async(
         const wchar_t* url,
         XAsyncBlock* asyncBlock
)
```

### Parameters

*url*   \_In\_z\_\
Type: wchar\_t\*

URL endpoint that retrieves the list of certificate thumbprints.

*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 [XAsyncRun](https://docs.xbox.com/reference/system/xasync/functions/xasyncrun.md) function.

### Return value

Type: HRESULT

HRESULT success or error code of the async call.

## Remarks

This function starts an async request for the certificates associated with an URL configured for the title through the Universal Developer Portal. This allows XBOX Live-enabled Microsoft Game Development Kit (GDK) titles to perform certificate pinning for custom title-specific service endpoints when paired with the [Windows HTTP Services (WinHTTP)](https://learn.microsoft.com/windows/desktop/winhttp/winhttp-start-page) API.

> [!NOTE]
>
> When making custom web requests to the XBOX Live service endpoints, allow the XBOX Services API (XSAPI) library to automatically perform the certificate pinning.

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

## Conceptual documentation

* [WinHTTP overview](https://docs.xbox.com/build/console-features/networking/web-requests/intro-winhttp.md)

## See also

[Retrieving Network Information](https://docs.xbox.com/build/console-features/networking/initialization-connectivity-networking.md)\
[XNetworkingQuerySecurityInformationForUrlUtf16AsyncResult](https://docs.xbox.com/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16asyncresult.md)\
[XNetworking](https://docs.xbox.com/reference/networking/xnetworking/xnetworking_members.md)


## Related topics

- [XNetworkingQuerySecurityInformationForUrlUtf16AsyncResult](https://docs.xbox.com/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16asyncresult.md)
- [XNetworkingQuerySecurityInformationForUrlUtf16AsyncResultSize](https://docs.xbox.com/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16asyncresultsize.md)
- [XNetworkingSecurityInformation](https://docs.xbox.com/reference/networking/xnetworking/structs/xnetworkingsecurityinformation.md)
- [XNetworking (API contents)](https://docs.xbox.com/reference/networking/xnetworking/xnetworking_members.md)
- [WinHTTP overview](https://docs.xbox.com/build/console-features/networking/web-requests/intro-winhttp.md)
