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

# XNetworkingQuerySecurityInformationForUrlAsyncResult

> XNetworkingQuerySecurityInformationForUrlAsyncResult

# XNetworkingQuerySecurityInformationForUrlAsyncResult

Obtém os resultados da função [XNetworkingQuerySecurityInformationForUrlAsync](https://docs.xbox.com/pt-BR/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasync.md).

## Sintaxe

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

### Parâmetros

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

Ponteiro para o [XAsyncBlock](https://docs.xbox.com/pt-BR/reference/system/xasync/structs/xasyncblock.md) que foi passado para a função [XNetworkingQuerySecurityInformationForUrlAsync](https://docs.xbox.com/pt-BR/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasync.md).

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

O tamanho, em bytes, a ser alocado para o buffer de resultados. Esse dado é obtido chamando [XNetworkingQuerySecurityInformationForUrlAsyncResultSize](https://docs.xbox.com/pt-BR/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasyncresultsize.md). Como alternativa, se você tiver pré-alocado um buffer de resultados grande, poderá passar o tamanho do buffer pré-alocado.

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

Ponteiro para o tamanho, em bytes, do buffer de resultados real.

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

Ponteiro para o buffer que contém os resultados da impressão digital.

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

Ponteiro para a lista de impressões digitais de certificado retornada pela NSAL (Network Security Allow List).

### Valor retornado

Tipo: HRESULT

Código de sucesso ou de erro HRESULT.

## Comentários

Essa função obtém os resultados da função [XNetworkingQuerySecurityInformationForUrlAsync](https://docs.xbox.com/pt-BR/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasync.md). Os ponteiros dela determinam o tamanho em bytes alocado para o buffer de resultados, o tamanho real em bytes do buffer de resultados, o buffer que contém os resultados da impressão digital e a lista de impressões digitais de certificado retornada pela NSAL.

O buffer é o buffer subjacente usado por todos os ponteiros no ponteiro da estrutura de informações de segurança. O título deve manter o buffer válido enquanto estiver usando o ponteiro da estrutura de informações de segurança. Liberar e limpar o buffer também limpa toda a memória usada pelo ponteiro da estrutura de informações de segurança. Para obter informações de rede em títulos do Microsoft Game Development Kit (GDK), confira [Recuperando informações de rede](https://docs.xbox.com/pt-BR/build/console-features/networking/initialization-connectivity-networking.md).

Esse método consulta o estado local no processo de chamada e retorna rapidamente, portanto, é seguro chamá-lo a partir de contextos sensíveis ao tempo.

## Requisitos

**Cabeçalho:** XNetworking.h

**Biblioteca:** xgameruntime.lib

**Plataformas com suporte:** Windows, consoles da família XBOX One e consoles XBOX Series

## Confira também

[HTTP e Web Sockets](https://docs.xbox.com/pt-BR/build/console-features/networking/web-requests/http-networking.md)\
[XNetworkingQuerySecurityInformationForUrlUtf16AsyncResult](https://docs.xbox.com/pt-BR/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16asyncresult.md)\
[XNetworking](https://docs.xbox.com/pt-BR/reference/networking/xnetworking/xnetworking_members.md)


## Related topics

- [XNetworkingQuerySecurityInformationForUrlUtf16AsyncResult](https://docs.xbox.com/pt-BR/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16asyncresult.md)
- [XNetworkingVerifyServerCertificate](https://docs.xbox.com/pt-BR/reference/networking/xnetworking/functions/xnetworkingverifyservercertificate.md)
- [XNetworking (conteúdo da API)](https://docs.xbox.com/pt-BR/reference/networking/xnetworking/xnetworking_members.md)
- [Usar wrappers C# para APIs do GDK no seu projeto do Unity](https://docs.xbox.com/pt-BR/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XNetworkingQuerySecurityInformationForUrlAsyncResultSize](https://docs.xbox.com/pt-BR/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasyncresultsize.md)
