XblSocialManagerUserGroupGetLocalUser

Gets local user the group is associated with.

Syntax

HRESULT XblSocialManagerUserGroupGetLocalUser(  
         XblSocialManagerUserGroupHandle group,  
         XblUserHandle* localUser  
)  

Parameters

group   _In_
Type: XblSocialManagerUserGroupHandle

The group handle.

localUser   _Out_
Type: XblUserHandle*

Passes back the local user handle. This user handle does not need to be closed. It remains valid for as long as the user is added to the social manager.

Return value

Type: HRESULT

HRESULT return code for this API operation.

Remarks

Call this API after calling either XblSocialManagerCreateSocialUserGroupFromFilters or XblSocialManagerCreateSocialUserGroupFromList to create an XblSocialManagerUserGroup. Have the XblSocialManagerUserGroupHandle returned by the XblSocialManagerEventType::SocialUserGroupLoaded event in XblSocialManagerDoWork.

Requirements

Header: social_manager_c.h

Library: Microsoft.Xbox.Services.141.GSDK.C.lib

See also

social_manager_c