Skip to main content
Called whenever the title wants to update the social graph and get list of change events.

Syntax

Parameters

socialEvents   _Outptr_result_maybenull_
Type: XblSocialManagerEvent**
Passes back a pointer to the array of social events that have occurred since the last call to XblSocialManagerDoWork. This array is only valid until the next call to XblSocialManagerDoWork. The internal array will automatically be cleaned up when XblCleanupAsync is called. socialEventsCount   _Out_
Type: size_t*
Passes back the number of events in the social events array.

Return value

Type: HRESULT Returns S_OK if successful, including when there are no events. When there are no events, socialEvents is set to null and socialEventsCount is set to 0. Possible error codes include the following. This list isn’t exhaustive.

Remarks

Must be called every frame for data to be up to date. The array of social events that is sent back is only valid until the next call to XblSocialManagerDoWork. Make sure to check if there were social events sent back. If the social events array is null, no results. If the social events count is 0, no results. If there were social events sent back then handle each XblSocialManagerEvent by their respective XblSocialManagerEventType.

Requirements

Header: social_manager_c.h Library: Microsoft.Xbox.Services.142.C.lib or Microsoft.Xbox.Services.143.C.lib

See also

social_manager_c
Last modified on October 29, 2026