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

# PFFriendsServerGetFriendsListGetResultSize

> 取得儲存 ServerGetFriendsList 呼叫結果所需的位元組大小。

取得儲存 ServerGetFriendsList 呼叫結果所需的位元組大小。

## 語法

```cpp theme={null}
HRESULT PFFriendsServerGetFriendsListGetResultSize(  
    XAsyncBlock* async,  
    size_t* bufferSize  
)  
```

### 參數

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

用於非同步作業的 XAsyncBlock。

**`bufferSize`**   size\_t\*\
*output*

結果所需的緩衝區大小 (以位元組為單位)。

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。如果服務呼叫失敗，結果將為 E\_PF\_ACCOUNT\_NOT\_FOUND, E\_PF\_EXPIRED\_XBOX\_LIVE\_TOKEN, E\_PF\_FACEBOOK\_API\_ERROR, E\_PF\_INVALID\_SIGNATURE, E\_PF\_INVALID\_SIGNATURE\_TIME, E\_PF\_INVALID\_XBOX\_LIVE\_TOKEN, E\_PF\_PLAYER\_SECRET\_NOT\_CONFIGURED, E\_PF\_XBOX\_INACCESSIBLE, E\_PF\_XBOX\_SERVICE\_TOO\_MANY\_REQUESTS, E\_PF\_XBOX\_XASS\_EXCHANGE\_FAILURE 或任何全域 PlayFab 服務錯誤。如需錯誤處理的詳細資訊，請參閱文件頁面「Handling PlayFab Errors」。

## 需求

**標頭：** PFFriends.h

## 另請參閱

[PFFriends 成員](/zh-TW/services/playfab/api-references/c/pffriends/pffriends_members)


## Related topics

- [PFFriendsServerGetFriendsListAsync](/zh-TW/services/playfab/api-references/c/pffriends/functions/pffriendsservergetfriendslistasync.md)
- [服務 C API 概觀 - PFFriends.h](/zh-TW/services/playfab/api-references/c/pffriends/pffriends_members.md)
- [PFFriendsServerGetFriendsListGetResult](/zh-TW/services/playfab/api-references/c/pffriends/functions/pffriendsservergetfriendslistgetresult.md)
- [PFFriendsClientGetFriendsListGetResultSize](/zh-TW/services/playfab/api-references/c/pffriends/functions/pffriendsclientgetfriendslistgetresultsize.md)
- [PFFriendsClientGetFriendsListGetResult](/zh-TW/services/playfab/api-references/c/pffriends/functions/pffriendsclientgetfriendslistgetresult.md)
