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

# XblSocialRemoveSocialRelationshipChangedHandler

> XblSocialRemoveSocialRelationshipChangedHandler

# XblSocialRemoveSocialRelationshipChangedHandler

移除社交关系更改处理程序。

## 语法

```cpp theme={null}
HRESULT XblSocialRemoveSocialRelationshipChangedHandler(  
         XblContextHandle xboxLiveContext,  
         XblFunctionContext handlerFunctionContext  
)  
```

### 参数

*xboxLiveContext*   \_In\_\
类型：[XblContextHandle](/reference/live/xsapi-c/types_c/handles/xblcontexthandle)

使用 XblContextCreateHandle 创建的 XBOX Live 上下文句柄。

*handlerFunctionContext*   \_In\_\
类型：XblFunctionContext

要移除的处理程序的上下文。

### 返回值

类型：HRESULT

## 备注

\<prereq /> 仅当使用 [XblSocialAddSocialRelationshipChangedHandler](/reference/live/xsapi-c/social_c/functions/xblsocialaddsocialrelationshipchangedhandler) 注册了事件处理程序时才调用此 API。

## 要求

**头文件：** social\_c.h

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

## 另请参阅

[social\_c](/reference/live/xsapi-c/social_c/social_c_members)


## Related topics

- [XblSocialAddSocialRelationshipChangedHandler](/zh-CN/reference/live/xsapi-c/social_c/functions/xblsocialaddsocialrelationshipchangedhandler.md)
- [处理社交关系更改](/zh-CN/services/xbox-services/community/people-system/how-to/live-handling-a-relationship-change.md)
- [XblSocialRelationship](/zh-CN/reference/live/xsapi-c/social_c/structs/xblsocialrelationship.md)
- [XblSocialGetSocialRelationshipsResult](/zh-CN/reference/live/xsapi-c/social_c/functions/xblsocialgetsocialrelationshipsresult.md)
- [XblSocialGetSocialRelationshipsAsync](/zh-CN/reference/live/xsapi-c/social_c/functions/xblsocialgetsocialrelationshipsasync.md)
