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

> 取得成功的 PFLeaderboardsGetFriendLeaderboardForEntityAsync 呼叫的結果。

取得成功的 PFLeaderboardsGetFriendLeaderboardForEntityAsync 呼叫的結果。

## 語法

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

### 參數

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

用於非同步作業的 XAsyncBlock。

**`bufferSize`**   size\_t

結果物件的緩衝區大小。

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

用於結果值及其欄位的位元組緩衝區。

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

結果物件的指標。

**`bufferUsed`**   size\_t\*\
*optional output*

所提供緩衝區中已使用的位元組數。

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。如果服務呼叫失敗，結果將為 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 或任何全域 PlayFab 服務錯誤。如需錯誤處理的詳細資訊，請參閱文件頁面「Handling PlayFab Errors」。

## 備註

result 是 buffer 內的指標，不需要另外釋放。

## 需求

**標頭：** PFLeaderboards.h

## 另請參閱

[PFLeaderboards 成員](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfleaderboards/pfleaderboards_members.md)


## Related topics

- [PFLeaderboardsGetFriendLeaderboardForEntityAsync](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetfriendleaderboardforentityasync.md)
- [服務 C API 概觀 - PFLeaderboards.h](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfleaderboards/pfleaderboards_members.md)
- [PFLeaderboardsGetFriendLeaderboardForEntityGetResultSize](https://docs.xbox.com/zh-TW/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/zh-TW/services/playfab/api-references/c/pfleaderboardstypes/structs/pfleaderboardsgetfriendleaderboardforentityrequest.md)
