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

# PFLeaderboardsGetFriendLeaderboardForEntityGetResult

> Obtém o resultado de uma chamada PFLeaderboardsGetFriendLeaderboardForEntityAsync bem-sucedida.

Obtém o resultado de uma chamada PFLeaderboardsGetFriendLeaderboardForEntityAsync bem-sucedida.

## Sintaxe

```cpp theme={null}
HRESULT PFLeaderboardsGetFriendLeaderboardForEntityGetResult(  
    XAsyncBlock* async,  
    size_t bufferSize,  
    void* buffer,  
    PFLeaderboardsGetEntityLeaderboardResponse** result,  
    size_t* bufferUsed  
)  
```

### Parâmetros

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

XAsyncBlock para a operação assíncrona.

**`bufferSize`**   size\_t

O tamanho do buffer para o objeto de resultado.

**`buffer`**   void\*\
\**Out\_writes\_bytes\_to*(bufferSize,*bufferUsed)*

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

**`result`**   [PFLeaderboardsGetEntityLeaderboardResponse\*\*](https://docs.xbox.com/pt-BR/services/playfab/api-references/c/pfleaderboardstypes/structs/pfleaderboardsgetentityleaderboardresponse.md)\
*library-allocated output*

Ponteiro para o objeto de resultado.

**`bufferUsed`**   size\_t\*\
*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\_API\_NOT\_ENABLED\_FOR\_TITLE, E\_PF\_DOWNSTREAM\_SERVICE\_UNAVAILABLE, E\_PF\_EXPIRED\_XBOX\_LIVE\_TOKEN, E\_PF\_FACEBOOK\_API\_ERROR, E\_PF\_INVALID\_ENTITY\_TYPE, E\_PF\_INVALID\_SIGNATURE, E\_PF\_INVALID\_SIGNATURE\_TIME, E\_PF\_INVALID\_XBOX\_LIVE\_TOKEN, E\_PF\_LEADERBOARD\_NOT\_FOUND, E\_PF\_NO\_LEADERBOARD\_FOR\_STATISTIC, E\_PF\_PLAYER\_SECRET\_NOT\_CONFIGURED, E\_PF\_SPECIFIED\_VERSION\_LEADERBOARD\_NOT\_FOUND, E\_PF\_STATISTIC\_NOT\_FOUND, E\_PF\_XBOX\_INACCESSIBLE, E\_PF\_XBOX\_SERVICE\_TOO\_MANY\_REQUESTS, E\_PF\_XBOX\_XASS\_EXCHANGE\_FAILURE 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

result é um ponteiro dentro de buffer e não precisa ser liberado separadamente.

## Requisitos

**Cabeçalho:** PFLeaderboards.h

## Confira também

[Membros de PFLeaderboards](https://docs.xbox.com/pt-BR/services/playfab/api-references/c/pfleaderboards/pfleaderboards_members.md)


## Related topics

- [PFLeaderboardsGetFriendLeaderboardForEntityAsync](https://docs.xbox.com/pt-BR/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetfriendleaderboardforentityasync.md)
- [Visão geral da API C do Services - PFLeaderboards.h](https://docs.xbox.com/pt-BR/services/playfab/api-references/c/pfleaderboards/pfleaderboards_members.md)
- [PFLeaderboardsGetFriendLeaderboardForEntityGetResultSize](https://docs.xbox.com/pt-BR/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetfriendleaderboardforentitygetresultsize.md)
- [Get Friend Leaderboard For Entity](https://docs.xbox.com/api-reference/leaderboards/get-friend-leaderboard-for-entity.md)
- [PFLeaderboardsGetFriendLeaderboardForEntityRequest](https://docs.xbox.com/pt-BR/services/playfab/api-references/c/pfleaderboardstypes/structs/pfleaderboardsgetfriendleaderboardforentityrequest.md)
