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

# XblSocialManagerEvent

> XblSocialManagerEvent

An event that something in the social graph has changed.

## Syntax

```cpp theme={null}
typedef struct XblSocialManagerEvent {  
    XblUserHandle user;  
    XblSocialManagerEventType eventType;  
    HRESULT hr;  
    XblSocialManagerUserGroupHandle groupAffected;  
    XblSocialManagerUser* usersAffected[XBL_SOCIAL_MANAGER_MAX_AFFECTED_USERS_PER_EVENT];  
} XblSocialManagerEvent;  
```

### Members

*user*\
Type: XblUserHandle

The user whose graph got changed.

*eventType*\
Type: [XblSocialManagerEventType](https://docs.xbox.com/reference/live/xsapi-c/social_manager_c/enums/xblsocialmanagereventtype.md)

The type of event this is.

*hr*\
Type: HRESULT

The error code for the event, or S\_OK.

*groupAffected*\
Type: XblSocialManagerUserGroupHandle

The user group that was loaded for XblSocialManagerEventType::SocialUserGroupLoaded or updated. For XblSocialManagerEventType::SocialUserGroupUpdated. Will be null for other types of events.

*usersAffected*\
Type: [XblSocialManagerUser\*](https://docs.xbox.com/reference/live/xsapi-c/social_manager_c/structs/xblsocialmanageruser.md)\[XBL\_SOCIAL\_MANAGER\_MAX\_AFFECTED\_USERS\_PER\_EVENT]

The users affected. Returned pointers valid until the next XblSocialManagerDoWork call.

## Argument of

[XblSocialManagerDoWork](https://docs.xbox.com/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagerdowork.md)

## Requirements

**Header:** social\_manager\_c.h

## See also

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


## Related topics

- [XblSocialManagerEventType](https://docs.xbox.com/reference/live/xsapi-c/social_manager_c/enums/xblsocialmanagereventtype.md)
- [Social Manager overview](https://docs.xbox.com/services/xbox-services/community/social-manager/live-social-manager-overview.md)
- [XblSocialManagerUser](https://docs.xbox.com/reference/live/xsapi-c/social_manager_c/structs/xblsocialmanageruser.md)
- [XblSocialManagerDoWork](https://docs.xbox.com/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagerdowork.md)
- [social_manager_c (contents)](https://docs.xbox.com/reference/live/xsapi-c/social_manager_c/social_manager_c_members.md)
