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

# XblSocialManagerRemoveLocalUser

> XblSocialManagerRemoveLocalUser

# XblSocialManagerRemoveLocalUser

立即移除指定本地用户的社交图。

## 语法

```cpp theme={null}
HRESULT XblSocialManagerRemoveLocalUser(  
         XblUserHandle user  
)  
```

### 参数

*user*   \_In\_\
类型：XblUserHandle

要移除的 XBOX Live 用户。

### 返回值

类型：HRESULT

此 API 操作的 HRESULT 返回代码。

## 备注

移除用户后，其社交图和用户组也将被销毁。移除用户后，将不再有与该用户相关联的未来事件。仅当使用 [XblSocialManagerAddLocalUser](/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanageraddlocaluser) 为本地用户创建了社交图时，才调用此 API。

## 要求

**标头：** social\_manager\_c.h

**库：** Microsoft.Xbox.Services.14x.GDK.C.lib

## 另请参阅

[social\_manager\_c](/reference/live/xsapi-c/social_manager_c/social_manager_c_members)


## Related topics

- [XblSocialManagerAddLocalUser](/zh-CN/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanageraddlocaluser.md)
- [XblSocialManagerGetLocalUserCount](/zh-CN/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagergetlocalusercount.md)
- [Social Manager 概述](/zh-CN/services/xbox-services/community/social-manager/live-social-manager-overview.md)
- [XblAchievementsManagerRemoveLocalUser](/zh-CN/reference/live/xsapi-c/achievements_manager_c/functions/xblachievementsmanagerremovelocaluser.md)
- [XblSocialManagerGetLocalUsers](/zh-CN/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagergetlocalusers.md)
