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

# XNetworkingQuerySecurityInformationForUrlUtf16Async

> 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](/reference/system/xasync/structs/xasyncblock)\*

Pointer to the [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) structure that gets passed to the [XAsyncRun](/reference/system/xasync/functions/xasyncrun) 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.</Note>

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](/build/console-features/networking/web-requests/intro-winhttp)

## See also

[Retrieving Network Information](/build/console-features/networking/initialization-connectivity-networking)\
[XNetworkingQuerySecurityInformationForUrlUtf16AsyncResult](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16asyncresult)\
[XNetworking](/reference/networking/xnetworking/xnetworking_members)


## Related topics

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