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

# PFFriendsClientAddFriendGetResult

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

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

## 语法

```cpp theme={null}
HRESULT PFFriendsClientAddFriendGetResult(  
    XAsyncBlock* async,  
    PFFriendsAddFriendResult* result  
)  
```

### 参数

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

用于异步操作的 XAsyncBlock。

**`result`**   [PFFriendsAddFriendResult\*](/services/playfab/api-references/c/pffriendstypes/structs/pffriendsaddfriendresult)<br />*output*

将使用结果填充的 PFFriendsAddFriendResult 对象。

### 返回值

类型：HRESULT

此 API 操作的结果代码。如果服务调用失败，结果将是 E\_PF\_USERS\_ALREADY\_FRIENDS 或任何全局 PlayFab 服务错误。有关错误处理的详细信息，请参阅文档页面“Handling PlayFab Errors”。

## 要求

**头文件：** PFFriends.h

## 另请参阅

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


## Related topics

- [PFFriendsClientAddFriendAsync](/zh-CN/services/playfab/api-references/c/pffriends/functions/pffriendsclientaddfriendasync.md)
- [Services C API overview - PFFriends.h](/zh-CN/services/playfab/api-references/c/pffriends/pffriends_members.md)
- [PFFriendsClientGetFriendsListAsync](/zh-CN/services/playfab/api-references/c/pffriends/functions/pffriendsclientgetfriendslistasync.md)
- [PFFriendsAddFriendResult](/zh-CN/services/playfab/api-references/c/pffriendstypes/structs/pffriendsaddfriendresult.md)
- [PFFriendsClientAddFriendRequest](/zh-CN/services/playfab/api-references/c/pffriendstypes/structs/pffriendsclientaddfriendrequest.md)
