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

# XblSocialManagerDoWork

> XblSocialManagerDoWork

# XblSocialManagerDoWork

타이틀이 소셜 그래프를 업데이트하고 변경 이벤트 목록을 가져오려고 할 때마다 호출됩니다.

## Syntax

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

### Parameters

*socialEvents*   \_Outptr\_result\_maybenull\_\
Type: [XblSocialManagerEvent\*\*](/reference/live/xsapi-c/social_manager_c/structs/xblsocialmanagerevent)

이전 XblSocialManagerDoWork 호출 이후 발생한 소셜 이벤트 배열에 대한 포인터를 반환합니다. 이 배열은 다음 XblSocialManagerDoWork 호출까지만 유효합니다. 내부 배열은 XblCleanup이 호출되면 자동으로 정리됩니다.

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

소셜 이벤트 배열의 이벤트 수를 반환합니다.

### Return value

Type: HRESULT

이 API 작업에 대한 HRESULT 반환 코드입니다.

## Remarks

데이터를 최신 상태로 유지하려면 프레임마다 호출해야 합니다. 반환되는 소셜 이벤트 배열은 다음 [XblSocialManagerDoWork](/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagerdowork) 호출까지만 유효합니다. 반환된 소셜 이벤트가 있는지 반드시 확인하세요. 소셜 이벤트 배열이 null이면 결과가 없습니다. 소셜 이벤트 수가 0이면 결과가 없습니다. 반환된 소셜 이벤트가 있는 경우 각 [XblSocialManagerEvent](/reference/live/xsapi-c/social_manager_c/structs/xblsocialmanagerevent)를 해당 [XblSocialManagerEventType](/reference/live/xsapi-c/social_manager_c/enums/xblsocialmanagereventtype)별로 처리합니다.

## Requirements

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

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

## See also

[social\_manager\_c](/reference/live/xsapi-c/social_manager_c/social_manager_c_members)


## Related topics

- [XblSocialManagerEvent](/ko/reference/live/xsapi-c/social_manager_c/structs/xblsocialmanagerevent.md)
- [XblSocialManagerUserGroupGetUsers](/ko/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagerusergroupgetusers.md)
- [XblSocialManagerUpdateSocialUserGroup](/ko/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagerupdatesocialusergroup.md)
- [XblSocialManagerCreateSocialUserGroupFromFilters](/ko/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagercreatesocialusergroupfromfilters.md)
- [XblSocialManagerCreateSocialUserGroupFromList](/ko/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagercreatesocialusergroupfromlist.md)
