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

# PFAuthenticationLoginWithBattleNetAsync

> API de cliente que conecta o usuário com um token de identidade do Battle.net no Windows. Chame PFAuthenticationLoginWithBattleNetGetResult quando a tarefa for concluída.

Conecta o usuário com um token de identidade do Battle.net

## Sintaxe

```cpp theme={null}
HRESULT PFAuthenticationLoginWithBattleNetAsync(  
    PFServiceConfigHandle serviceConfigHandle,  
    const PFAuthenticationLoginWithBattleNetRequest* request,  
    XAsyncBlock* async  
)  
```

### Parâmetros

**`serviceConfigHandle`**   PFServiceConfigHandle

PFServiceConfigHandle retornado pela chamada de PFServiceConfigCreateHandle.

**`request`**   [PFAuthenticationLoginWithBattleNetRequest\*](https://docs.xbox.com/pt-BR/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationloginwithbattlenetrequest.md)

Objeto de solicitação preenchido.

**`async`**   XAsyncBlock\*\
*Inout*

XAsyncBlock para a operação assíncrona.

### Valor de retorno

Tipo: HRESULT

Código de resultado desta operação de API.

## Comentários

Esta API está disponível no Windows. Consulte também ClientLinkBattleNetAccountAsync, ClientUnlinkBattleNetAccountAsync. Quando a tarefa assíncrona for concluída, chame [PFAuthenticationLoginWithBattleNetGetResult](https://docs.xbox.com/pt-BR/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithbattlenetgetresult.md) para obter o resultado.

## Requisitos

**Cabeçalho:** PFAuthentication.h

## Confira também

[Membros de PFAuthentication](https://docs.xbox.com/pt-BR/services/playfab/api-references/c/pfauthentication/pfauthentication_members.md)


## Related topics

- [PFAuthenticationLoginWithBattleNetGetResult](https://docs.xbox.com/pt-BR/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithbattlenetgetresult.md)
- [PFAuthenticationLoginWithBattleNetGetResultSize](https://docs.xbox.com/pt-BR/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithbattlenetgetresultsize.md)
- [Visão geral da API C do Services - PFAuthentication.h](https://docs.xbox.com/pt-BR/services/playfab/api-references/c/pfauthentication/pfauthentication_members.md)
- [PFAuthenticationServerLoginWithBattleNetAsync](https://docs.xbox.com/pt-BR/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithbattlenetasync.md)
- [PFAuthenticationReLoginWithBattleNetAsync](https://docs.xbox.com/pt-BR/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationreloginwithbattlenetasync.md)
