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

# PFFriendsClientGetFriendsListGetResult

> 获取成功的 PFFriendsClientGetFriendsListAsync 调用的结果。

获取成功的 PFFriendsClientGetFriendsListAsync 调用的结果。

## 语法

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

### 参数

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

用于异步操作的 XAsyncBlock。

**`bufferSize`**   size\_t

结果对象的缓冲区大小。

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

用于结果值及其字段的字节缓冲区。

**`result`**   [PFFriendsGetFriendsListResult\*\*](/services/playfab/api-references/c/pffriendstypes/structs/pffriendsgetfriendslistresult)<br />*library-allocated output*

指向结果对象的指针。

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

所提供缓冲区中已使用的字节数。

### 返回值

类型：HRESULT

此 API 操作的结果代码。如果服务调用失败，结果将是 E\_PF\_ACCOUNT\_NOT\_FOUND、E\_PF\_EXPIRED\_XBOX\_LIVE\_TOKEN、E\_PF\_FACEBOOK\_API\_ERROR、E\_PF\_INVALID\_XBOX\_LIVE\_TOKEN、E\_PF\_XBOX\_INACCESSIBLE、E\_PF\_XBOX\_SERVICE\_TOO\_MANY\_REQUESTS、E\_PF\_XBOX\_XASS\_EXCHANGE\_FAILURE 或任何全局 PlayFab 服务错误。有关错误处理的详细信息，请参阅文档页面“Handling PlayFab Errors”。

## 备注

result 是 buffer 中的一个指针，不需要单独释放。

## 要求

**头文件：** PFFriends.h

## 另请参阅

[PFFriends 成员](/services/playfab/api-references/c/pffriends/pffriends_members)


## Related topics

- [PFFriendsClientGetFriendsListAsync](/zh-CN/services/playfab/api-references/c/pffriends/functions/pffriendsclientgetfriendslistasync.md)
- [Services C API overview - PFFriends.h](/zh-CN/services/playfab/api-references/c/pffriends/pffriends_members.md)
- [PFFriendsClientGetFriendsListGetResultSize](/zh-CN/services/playfab/api-references/c/pffriends/functions/pffriendsclientgetfriendslistgetresultsize.md)
- [PFFriendsClientGetFriendsListRequest](/zh-CN/services/playfab/api-references/c/pffriendstypes/structs/pffriendsclientgetfriendslistrequest.md)
- [PFFriendsGetFriendsListResult](/zh-CN/services/playfab/api-references/c/pffriendstypes/structs/pffriendsgetfriendslistresult.md)
