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

# PFAuthenticationServerLoginWithBattleNetAsync

> API de servidor que inicia la sesión de un usuario con un token de identidad de Battle.net y autentica la solicitud de servicio con una clave secreta del título. Disponible en Windows.

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

## Sintaxis

```cpp theme={null}
HRESULT PFAuthenticationServerLoginWithBattleNetAsync(  
    PFServiceConfigHandle serviceConfigHandle,  
    const char* secretKey,  
    const PFAuthenticationServerLoginWithBattleNetRequest* request,  
    XAsyncBlock* async  
)  
```

### Parámetros

**`serviceConfigHandle`**   PFServiceConfigHandle

PFServiceConfigHandle devuelto por la llamada a PFServiceConfigCreateHandle.

**`secretKey`**   char\*<br />*In\_z*

Clave secreta del título que se usa para autenticar la solicitud de servicio.

**`request`**   [PFAuthenticationServerLoginWithBattleNetRequest\*](/es/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationserverloginwithbattlenetrequest)

Objeto de solicitud rellenado.

**`async`**   XAsyncBlock\*<br />*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 ServerLinkBattleNetAccountAsync, ServerUnlinkBattleNetAccountAsync. Cuando se complete la tarea asincrónica, llame a [PFAuthenticationServerLoginWithBattleNetGetResult](/es/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithbattlenetgetresult) para obtener el resultado.

## Requisitos

**Encabezado:** PFAuthentication.h

## Consulte también

[Miembros de PFAuthentication](/es/services/playfab/api-references/c/pfauthentication/pfauthentication_members)


## Related topics

- [PFAuthenticationServerLoginWithBattleNetGetResultSize](/es/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithbattlenetgetresultsize.md)
- [PFAuthenticationServerLoginWithBattleNetGetResult](/es/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithbattlenetgetresult.md)
- [PFAuthenticationServerLoginWithBattleNetRequest](/es/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationserverloginwithbattlenetrequest.md)
- [PFAuthenticationLoginWithBattleNetAsync](/es/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithbattlenetasync.md)
- [PFAuthenticationReLoginWithBattleNetAsync](/es/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationreloginwithbattlenetasync.md)
