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

# PFFriendsClientAddFriendGetResult

> 成功した PFFriendsClientAddFriendAsync 呼び出しの結果を取得します。

成功した PFFriendsClientAddFriendAsync 呼び出しの結果を取得します。

## 構文

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

### パラメーター

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

非同期操作用の XAsyncBlock。

**`result`**   [PFFriendsAddFriendResult\*](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pffriendstypes/structs/pffriendsaddfriendresult.md)\
*output*

結果が設定される PFFriendsAddFriendResult オブジェクト。

### 戻り値

型: HRESULT

この API 操作の結果コード。サービス呼び出しが失敗した場合、結果は E\_PF\_USERS\_ALREADY\_FRIENDS またはグローバルな PlayFab サービス エラーのいずれかになります。エラー処理の詳細については、ドキュメント ページ「Handling PlayFab Errors」を参照してください。

## 要件

**ヘッダー:** PFFriends.h

## 関連項目

[PFFriends のメンバー](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pffriends/pffriends_members.md)


## Related topics

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