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

# XNetworkingQuerySecurityInformationForUrlUtf16AsyncResult

Obtient les résultats de mémoire tampon de la fonction [XNetworkingQuerySecurityInformationForUrlUtf16Async](https://docs.xbox.com/fr-CA/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16async.md).

## Syntaxe

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

### Paramètres

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

Pointeur vers la structure [XAsyncBlock](https://docs.xbox.com/fr-CA/reference/system/xasync/structs/xasyncblock.md) passée à la fonction [XNetworkingQuerySecurityInformationForUrlUtf16Async](https://docs.xbox.com/fr-CA/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16async.md).

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

Taille, en octets, à allouer pour la mémoire tampon des résultats. Cette donnée est obtenue en appelant la fonction [XNetworkingQuerySecurityInformationForUrlUtf16AsyncResultSize](https://docs.xbox.com/fr-CA/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16asyncresultsize.md). Sinon, si vous avez préalloué une grande mémoire tampon de résultats, vous pouvez passer la taille de cette mémoire tampon préallouée.

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

Pointeur vers la taille réelle, en octets, de la mémoire tampon des résultats.

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

Pointeur vers la mémoire tampon qui contient les résultats des empreintes numériques.

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

Pointeur vers la liste des empreintes numériques de certificat retournées par la NSAL (Network Security Allow List).

### Valeur de retour

Type : HRESULT

Code de réussite ou d'erreur HRESULT.

## Remarques

Cette fonction obtient les résultats de mémoire tampon en appelant la fonction `XNetworkingQuerySecurityInformationForUrlUtf16Async`. Le nombre d'octets alloués à la mémoire tampon des résultats est déterminé à l'aide du pointeur *securityInformationBufferByteCount*. Le nombre réel d'octets de la mémoire tampon des résultats est déterminé à l'aide du pointeur *securityInformationBufferByteCountUsed*. Les résultats des empreintes numériques et la liste des empreintes numériques de certificat retournées par la NSAL sont déterminés par le pointeur *securityInformationBuffer* et le pointeur *securityInformation*. Pour les informations réseau dans les titres Microsoft Game Development Kit (GDK), consultez [Récupération des informations réseau](https://docs.xbox.com/fr-CA/build/console-features/networking/initialization-connectivity-networking.md).

Cette méthode interroge l'état local au sein du processus appelant et retourne rapidement; elle peut donc être appelée en toute sécurité dans des contextes où le temps est critique.

## Configuration requise

**En-tête :** XNetworking.h

**Bibliothèque :** xgameruntime.lib

**Plateformes prises en charge :** Windows, consoles de la famille XBOX One et consoles XBOX Series

## Voir aussi

[HTTP et WebSockets](https://docs.xbox.com/fr-CA/build/console-features/networking/web-requests/http-networking.md)\
[XNetworkingQuerySecurityInformationForUrlAsyncResult](https://docs.xbox.com/fr-CA/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasyncresult.md)\
[XNetworking](https://docs.xbox.com/fr-CA/reference/networking/xnetworking/xnetworking_members.md)


## Related topics

- [XNetworkingQuerySecurityInformationForUrlUtf16Async](https://docs.xbox.com/fr-CA/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16async.md)
- [XNetworkingQuerySecurityInformationForUrlAsyncResult](https://docs.xbox.com/fr-CA/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasyncresult.md)
- [XNetworking (contenu de l'API)](https://docs.xbox.com/fr-CA/reference/networking/xnetworking/xnetworking_members.md)
- [Utilisation des wrappers C# pour les API du GDK dans votre projet Unity](https://docs.xbox.com/fr-CA/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XNetworkingQuerySecurityInformationForUrlUtf16AsyncResultSize](https://docs.xbox.com/fr-CA/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16asyncresultsize.md)
