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

> Gets the result of a successful PFFriendsClientAddFriendAsync call.

Gets the result of a successful PFFriendsClientAddFriendAsync call.

## Syntax

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

### Parameters

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

XAsyncBlock for the async operation.

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

PFFriendsAddFriendResult object that will be populated with the result.

### Return value

Type: HRESULT

Result code for this API operation. If the service call is unsuccessful, the result will be E\_PF\_USERS\_ALREADY\_FRIENDS or any of the global PlayFab Service errors. See doc page "Handling PlayFab Errors" for more details on error handling.

## Requirements

**Header:** PFFriends.h

## See also

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


## Related topics

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