> ## 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 inicia la sesión del usuario con un token de identidad de Battle.net en Windows. Llame a PFAuthenticationLoginWithBattleNetGetResult cuando se complete la tarea.

Inicia la sesión del usuario con un token de identidad de Battle.net

## Sintaxis

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

### Parámetros

**`serviceConfigHandle`**   PFServiceConfigHandle

PFServiceConfigHandle devuelto por la llamada a PFServiceConfigCreateHandle.

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

Objeto de solicitud rellenado.

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

XAsyncBlock para la operación asincrónica.

### Valor devuelto

Tipo: HRESULT

Código de resultado de esta operación de API.

## Comentarios

Esta API está disponible en Windows. Vea también ClientLinkBattleNetAccountAsync, ClientUnlinkBattleNetAccountAsync. Cuando se complete la tarea asincrónica, llame a [PFAuthenticationLoginWithBattleNetGetResult](https://docs.xbox.com/es/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithbattlenetgetresult.md) para obtener el resultado.

## Requisitos

**Encabezado:** PFAuthentication.h

## Consulte también

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


## Related topics

- [PFAuthenticationLoginWithBattleNetGetResultSize](https://docs.xbox.com/es/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithbattlenetgetresultsize.md)
- [PFAuthenticationLoginWithBattleNetGetResult](https://docs.xbox.com/es/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithbattlenetgetresult.md)
- [PFAuthenticationServerLoginWithBattleNetAsync](https://docs.xbox.com/es/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithbattlenetasync.md)
- [PFAuthenticationReLoginWithBattleNetAsync](https://docs.xbox.com/es/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationreloginwithbattlenetasync.md)
- [PFAuthenticationServerLoginWithBattleNetGetResult](https://docs.xbox.com/es/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithbattlenetgetresult.md)
