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

# PFAuthenticationServerLoginWithBattleNetGetResult

> Obtém o resultado de uma chamada PFAuthenticationServerLoginWithBattleNetAsync. O PFEntityHandle sempre será retornado, mas as informações adicionais em PFAuthenticationLoginResult só serão retornadas se um buffer for fornecido.

Obtém o resultado de uma chamada PFAuthenticationServerLoginWithBattleNetAsync. O PFEntityHandle sempre será retornado, mas as informações adicionais em PFAuthenticationLoginResult só serão retornadas se um buffer for fornecido.

## Sintaxe

```cpp theme={null}
HRESULT PFAuthenticationServerLoginWithBattleNetGetResult(  
    XAsyncBlock* async,  
    const PFAuthenticationEntityTokenResponse** entityTokenResponse,  
    size_t bufferSize,  
    void* buffer,  
    const PFAuthenticationLoginResult** result,  
    size_t* bufferUsed  
)  
```

### Parâmetros

**`async`**   XAsyncBlock\*<br />*Inout*

XAsyncBlock para a operação assíncrona.

**`entityTokenResponse`**   [PFAuthenticationEntityTokenResponse\*\*](/pt-BR/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationentitytokenresponse)<br />*library-allocated output*

A definir

**`bufferSize`**   size\_t

O tamanho do buffer para o objeto de resultado.

**`buffer`**   void\*<br />\**Out\_writes\_bytes\_to*(bufferSize,*bufferUsed)*

Buffer de bytes usado para o valor do resultado de Login e seus campos.

**`result`**   [PFAuthenticationLoginResult\*\*](/pt-BR/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationloginresult)<br />*optional, library-allocated output*

Ponteiro para o objeto LoginResult.

**`bufferUsed`**   size\_t\*<br />*optional output*

O número de bytes usados no buffer fornecido.

### Valor de retorno

Tipo: HRESULT

Código de resultado desta operação de API. Se a chamada de serviço não for bem-sucedida, o resultado será E\_PF\_ACCOUNT\_NOT\_FOUND, E\_PF\_BATTLE\_NET\_NOT\_ENABLED\_FOR\_TITLE, E\_PF\_ENCRYPTION\_KEY\_MISSING, E\_PF\_EVALUATION\_MODE\_PLAYER\_COUNT\_EXCEEDED, E\_PF\_INVALID\_AUTH\_TOKEN, E\_PF\_INVALID\_SIGNATURE, E\_PF\_INVALID\_SIGNATURE\_TIME, E\_PF\_INVALID\_TITLE\_ID, E\_PF\_PLAYER\_SECRET\_ALREADY\_CONFIGURED, E\_PF\_PLAYER\_SECRET\_NOT\_CONFIGURED, E\_PF\_REQUEST\_VIEW\_CONSTRAINT\_PARAMS\_NOT\_ALLOWED ou qualquer um dos erros globais do Serviço PlayFab. Consulte a página de documentação "Handling PlayFab Errors" para obter mais detalhes sobre o tratamento de erros.

## Comentários

Se a chamada PFAuthenticationServerLoginWithBattleNetAsync falhar, entityHandle será nulo. Caso contrário, o identificador deverá ser fechado com PFEntityCloseHandle quando não for mais necessário. Se retornado, 'result' é um ponteiro dentro de 'buffer' e não precisa ser liberado separadamente.

## Requisitos

**Cabeçalho:** PFAuthentication.h

## Confira também

[Membros de PFAuthentication](/pt-BR/services/playfab/api-references/c/pfauthentication/pfauthentication_members)


## Related topics

- [PFAuthenticationServerLoginWithBattleNetAsync](/pt-BR/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithbattlenetasync.md)
- [Visão geral da API C do Services - PFAuthentication.h](/pt-BR/services/playfab/api-references/c/pfauthentication/pfauthentication_members.md)
- [PFAuthenticationServerLoginWithBattleNetGetResultSize](/pt-BR/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithbattlenetgetresultsize.md)
- [PFAuthenticationLoginWithBattleNetGetResult](/pt-BR/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithbattlenetgetresult.md)
- [PFAuthenticationLoginWithBattleNetGetResultSize](/pt-BR/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithbattlenetgetresultsize.md)
