> ## 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 cliente qui connecte l'utilisateur avec un jeton d'identité Battle.net sur Windows. Appelez PFAuthenticationLoginWithBattleNetGetResult une fois la tâche terminée.

Connecte l'utilisateur avec un jeton d'identité Battle.net

## Syntaxe

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

### Paramètres

**`serviceConfigHandle`**   PFServiceConfigHandle

PFServiceConfigHandle renvoyé par l'appel PFServiceConfigCreateHandle.

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

Objet de requête renseigné.

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

XAsyncBlock pour l'opération asynchrone.

### Valeur de retour

Type : HRESULT

Code de résultat de cette opération d'API.

## Notes

Cette API est disponible sur Windows. Voir aussi ClientLinkBattleNetAccountAsync, ClientUnlinkBattleNetAccountAsync. Une fois la tâche asynchrone terminée, appelez [PFAuthenticationLoginWithBattleNetGetResult](https://docs.xbox.com/fr/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithbattlenetgetresult.md) pour obtenir le résultat.

## Configuration requise

**En-tête :** PFAuthentication.h

## Voir aussi

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


## Related topics

- [PFAuthenticationLoginWithBattleNetGetResultSize](https://docs.xbox.com/fr/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithbattlenetgetresultsize.md)
- [PFAuthenticationLoginWithBattleNetGetResult](https://docs.xbox.com/fr/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithbattlenetgetresult.md)
- [Vue d'ensemble de l'API C Services - PFAuthentication.h](https://docs.xbox.com/fr/services/playfab/api-references/c/pfauthentication/pfauthentication_members.md)
- [PFAuthenticationServerLoginWithBattleNetAsync](https://docs.xbox.com/fr/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithbattlenetasync.md)
- [PFAuthenticationReLoginWithBattleNetAsync](https://docs.xbox.com/fr/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationreloginwithbattlenetasync.md)
