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

Obtient les résultats de la fonction [XNetworkingQuerySecurityInformationForUrlAsync](/fr-CA/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasync).

## Syntaxe

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

### Paramètres

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

Pointeur vers le [XAsyncBlock](/fr-CA/reference/system/xasync/structs/xasyncblock) qui a été passé à la fonction [XNetworkingQuerySecurityInformationForUrlAsync](/fr-CA/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasync).

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

Taille, en octets, à allouer pour la mémoire tampon des résultats. Cette donnée est obtenue en appelant [XNetworkingQuerySecurityInformationForUrlAsyncResultSize](/fr-CA/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasyncresultsize). 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](/fr-CA/reference/networking/xnetworking/structs/xnetworkingsecurityinformation)\*\*

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 la fonction [XNetworkingQuerySecurityInformationForUrlAsync](/fr-CA/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasync). Ses pointeurs déterminent la taille en octets allouée à la mémoire tampon des résultats, la taille réelle en octets de la mémoire tampon des résultats, la mémoire tampon qui contient les résultats des empreintes numériques et la liste des empreintes numériques de certificat retournées par la NSAL.

La mémoire tampon est la mémoire tampon sous-jacente utilisée par tous les pointeurs du pointeur de structure d'informations de sécurité. Le titre doit garder la mémoire tampon valide tant qu'il utilise le pointeur de structure d'informations de sécurité. La libération et le nettoyage de la mémoire tampon nettoient également toute la mémoire utilisée par le pointeur de structure d'informations de sécurité. Pour les informations réseau dans les titres Microsoft Game Development Kit (GDK), consultez [Récupération des informations réseau](/fr-CA/build/console-features/networking/initialization-connectivity-networking).

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](/fr-CA/build/console-features/networking/web-requests/http-networking)\
[XNetworkingQuerySecurityInformationForUrlUtf16AsyncResult](/fr-CA/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16asyncresult)\
[XNetworking](/fr-CA/reference/networking/xnetworking/xnetworking_members)


## Related topics

- [XNetworkingQuerySecurityInformationForUrlAsyncResult](/zh-CN/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasyncresult.md)
- [XNetworkingQuerySecurityInformationForUrlUtf16AsyncResult](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16asyncresult.md)
