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

# XblSocialManagerAddLocalUser

> XblSocialManagerAddLocalUser

# XblSocialManagerAddLocalUser

指定したローカル ユーザーのソーシャル グラフを作成します。

## 構文

```cpp theme={null}
HRESULT XblSocialManagerAddLocalUser(  
         XblUserHandle user,  
         XblSocialManagerExtraDetailLevel extraLevelDetail,  
         XTaskQueueHandle queue  
)  
```

### パラメーター

*user*   \_In\_\
型: XblUserHandle

グラフを作成する対象の XBOX Live ユーザー。

*extraLevelDetail*   \_In\_\
型: [XblSocialManagerExtraDetailLevel](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/social_manager_c/enums/xblsocialmanagerextradetaillevel.md)

このユーザーに対するサービス呼び出しにおける詳細レベル。

*queue*   \_In\_opt\_\
型: XTaskQueueHandle

このユーザーのバックグラウンド操作に使用するキュー (省略可能)。注意: このキューに XTaskQueueDispatchMode::Immediate を使用すると、パフォーマンスが低下する可能性があります。

### 戻り値

型: HRESULT

この API 操作の HRESULT 戻り値コード。

## 解説

ローカル ユーザーが追加された結果は、[XblSocialManagerDoWork](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagerdowork.md) 内の [XblSocialManagerEventType](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/social_manager_c/enums/xblsocialmanagereventtype.md)::LocalUserAdded イベントを通じて通知されます。指定したローカル ユーザーのソーシャル グラフを削除するには、[XblSocialManagerRemoveLocalUser](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagerremovelocaluser.md) を呼び出します。

## 要件

**ヘッダー:** social\_manager\_c.h

**ライブラリ:** Microsoft.Xbox.Services.14x.GDK.C.lib

## 関連項目

[social\_manager\_c](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/social_manager_c/social_manager_c_members.md)


## Related topics

- [XblSocialManagerExtraDetailLevel](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/social_manager_c/enums/xblsocialmanagerextradetaillevel.md)
- [XblSocialManagerGetLocalUserCount](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagergetlocalusercount.md)
- [XblSocialManagerRemoveLocalUser](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagerremovelocaluser.md)
- [XblSocialManagerGetLocalUsers](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagergetlocalusers.md)
- [XblPresenceFilter](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/social_manager_c/enums/xblpresencefilter.md)
