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

# XblSocialManagerDoWork

> XblSocialManagerDoWork

# XblSocialManagerDoWork

Appelée chaque fois que le titre souhaite mettre à jour le graphe social et obtenir la liste des événements de modification.

## Syntaxe

```cpp theme={null}
HRESULT XblSocialManagerDoWork(  
         const XblSocialManagerEvent** socialEvents,  
         size_t* socialEventsCount  
)  
```

### Paramètres

*socialEvents*   \_Outptr\_result\_maybenull\_\
Type : [XblSocialManagerEvent\*\*](https://docs.xbox.com/fr/reference/live/xsapi-c/social_manager_c/structs/xblsocialmanagerevent.md)

Renvoie un pointeur vers le tableau des événements sociaux survenus depuis le dernier appel à XblSocialManagerDoWork. Ce tableau n'est valide que jusqu'au prochain appel à XblSocialManagerDoWork. Le tableau interne est automatiquement nettoyé lors de l'appel de XblCleanup.

*socialEventsCount*   \_Out\_\
Type : size\_t\*

Renvoie le nombre d'événements dans le tableau des événements sociaux.

### Valeur de retour

Type : HRESULT

Code de retour HRESULT pour cette opération d'API.

## Remarques

Doit être appelée à chaque frame pour que les données soient à jour. Le tableau d'événements sociaux renvoyé n'est valide que jusqu'au prochain appel à [XblSocialManagerDoWork](https://docs.xbox.com/fr/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagerdowork.md). Veillez à vérifier si des événements sociaux ont été renvoyés. Si le tableau d'événements sociaux est null, il n'y a aucun résultat. Si le nombre d'événements sociaux est 0, il n'y a aucun résultat. Si des événements sociaux ont été renvoyés, traitez chaque [XblSocialManagerEvent](https://docs.xbox.com/fr/reference/live/xsapi-c/social_manager_c/structs/xblsocialmanagerevent.md) en fonction de son [XblSocialManagerEventType](https://docs.xbox.com/fr/reference/live/xsapi-c/social_manager_c/enums/xblsocialmanagereventtype.md) respectif.

## Configuration requise

**En-tête :** social\_manager\_c.h

**Bibliothèque :** Microsoft.Xbox.Services.14x.GDK.C.lib

## Voir aussi

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


## Related topics

- [XblSocialManagerUserGroupGetUsers](https://docs.xbox.com/fr/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagerusergroupgetusers.md)
- [XblSocialManagerEvent](https://docs.xbox.com/fr/reference/live/xsapi-c/social_manager_c/structs/xblsocialmanagerevent.md)
- [XblSocialManagerUpdateSocialUserGroup](https://docs.xbox.com/fr/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagerupdatesocialusergroup.md)
- [XblSocialManagerCreateSocialUserGroupFromList](https://docs.xbox.com/fr/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagercreatesocialusergroupfromlist.md)
- [XblSocialManagerCreateSocialUserGroupFromFilters](https://docs.xbox.com/fr/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagercreatesocialusergroupfromfilters.md)
