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

# XNetworkingQuerySecurityInformationForUrlUtf16AsyncResult

> XNetworkingQuerySecurityInformationForUrlUtf16AsyncResult

# XNetworkingQuerySecurityInformationForUrlUtf16AsyncResult

Obtém os resultados do buffer da função [XNetworkingQuerySecurityInformationForUrlUtf16Async](/pt-BR/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16async).

## Sintaxe

```cpp theme={null}
HRESULT XNetworkingQuerySecurityInformationForUrlUtf16AsyncResult(
         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 a estrutura [XAsyncBlock](/pt-BR/reference/system/xasync/structs/xasyncblock) que é passada para a função [XNetworkingQuerySecurityInformationForUrlUtf16Async](/pt-BR/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16async).

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

O tamanho, em bytes, a ser alocado para o buffer de resultados. Esse dado é obtido chamando a função [XNetworkingQuerySecurityInformationForUrlUtf16AsyncResultSize](/pt-BR/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16asyncresultsize). 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 do buffer chamando a função `XNetworkingQuerySecurityInformationForUrlUtf16Async`. O número de bytes alocados para o buffer de resultados é determinado usando o ponteiro *securityInformationBufferByteCount*. O número real de bytes do buffer de resultados é determinado usando o ponteiro *securityInformationBufferByteCountUsed*. Os resultados da impressão digital e a lista de impressões digitais de certificado retornada pela NSAL são determinados pelo ponteiro *securityInformationBuffer* e pelo ponteiro *securityInformation*. 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)\
[XNetworkingQuerySecurityInformationForUrlAsyncResult](/pt-BR/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasyncresult)\
[XNetworking](/pt-BR/reference/networking/xnetworking/xnetworking_members)


## Related topics

- [XNetworkingQuerySecurityInformationForUrlUtf16AsyncResult](/zh-CN/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16asyncresult.md)
- [XNetworkingQuerySecurityInformationForUrlUtf16Async](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16async.md)
- [XNetworkingQuerySecurityInformationForUrlAsyncResult](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasyncresult.md)
- [XNetworking](/reference/networking/xnetworking/xnetworking_members.md)
- [XNetworkingQuerySecurityInformationForUrlUtf16AsyncResultSize](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16asyncresultsize.md)
