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

# XblSocialAddSocialRelationshipChangedHandler

> XblSocialAddSocialRelationshipChangedHandler

# XblSocialAddSocialRelationshipChangedHandler

등록 사용자에 의해 발생한 소셜 관계 변경 알림을 위한 이벤트 핸들러를 등록합니다.

## Syntax

```cpp theme={null}
XblFunctionContext XblSocialAddSocialRelationshipChangedHandler(  
         XblContextHandle xboxLiveContext,  
         XblSocialRelationshipChangedHandler handler,  
         void* handlerContext  
)  
```

### Parameters

*xboxLiveContext*   \_In\_\
Type: [XblContextHandle](/reference/live/xsapi-c/types_c/handles/xblcontexthandle)

XblContextCreateHandle로 생성된 XBOX live 컨텍스트 핸들입니다.

*handler*   \_In\_\
Type: XblSocialRelationshipChangedHandler

알림을 수신하는 콜백 함수입니다.

*handlerContext*   \_In\_opt\_\
Type: void\*

핸들러에 다시 전달될 클라이언트 컨텍스트 포인터입니다.

### Return value

Type: XblFunctionContext

핸들러를 제거하는 데 사용되는 XblFunctionContext입니다.

## Remarks

이 핸들러는 사용자가 다른 사용자와의 관계를 변경한 경우에만 트리거됩니다. 다른 사용자가 해당 사용자와의 관계를 변경한 경우에는 이 핸들러가 트리거되지 않습니다. 이벤트 핸들러의 등록을 해제하려면 [XblSocialRemoveSocialRelationshipChangedHandler](/reference/live/xsapi-c/social_c/functions/xblsocialremovesocialrelationshipchangedhandler)를 호출합니다.

## Requirements

**Header:** social\_c.h

**Library:** Microsoft.Xbox.Services.14x.GDK.C.lib

## See also

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


## Related topics

- [XblSocialRemoveSocialRelationshipChangedHandler](/ko/reference/live/xsapi-c/social_c/functions/xblsocialremovesocialrelationshipchangedhandler.md)
- [소셜 관계 변경 처리하기](/ko/services/xbox-services/community/people-system/how-to/live-handling-a-relationship-change.md)
- [XblSocialRelationship](/ko/reference/live/xsapi-c/social_c/structs/xblsocialrelationship.md)
- [XblSocialGetSocialRelationshipsAsync](/ko/reference/live/xsapi-c/social_c/functions/xblsocialgetsocialrelationshipsasync.md)
- [XblSocialGetSocialRelationshipsResult](/ko/reference/live/xsapi-c/social_c/functions/xblsocialgetsocialrelationshipsresult.md)
