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

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

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

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

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

O tamanho, em bytes, a ser alocado para o buffer de resultados. Esse dado é obtido chamando [XNetworkingQuerySecurityInformationForUrlAsyncResultSize](/pt-BR/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasyncresultsize). 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](/pt-BR/reference/networking/xnetworking/structs/xnetworkingsecurityinformation)\*\*

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](/pt-BR/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasync). 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](/pt-BR/build/console-features/networking/initialization-connectivity-networking).

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


## Related topics

- [XNetworkingQuerySecurityInformationForUrlUtf16AsyncResult](/pt-BR/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16asyncresult.md)
- [XNetworkingVerifyServerCertificate](/pt-BR/reference/networking/xnetworking/functions/xnetworkingverifyservercertificate.md)
- [XNetworking](/pt-BR/reference/networking/xnetworking/xnetworking_members.md)
- [Wrappers de API C# do Unity para o GDK](/pt-BR/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XNetworkingQuerySecurityInformationForUrlAsyncResultSize](/pt-BR/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasyncresultsize.md)
