XblSocialManagerAddLocalUser

Create a social graph for the specified local user.

Syntax

HRESULT XblSocialManagerAddLocalUser(  
         XblUserHandle user,  
         XblSocialManagerExtraDetailLevel extraLevelDetail,  
         XTaskQueueHandle queue  
)  

Parameters

user   _In_
Type: XblUserHandle

Xbox Live User to create a graph for.

extraLevelDetail   _In_
Type: XblSocialManagerExtraDetailLevel

The level of verbosity that should be in the service calls for this user.

queue   _In_opt_
Type: XTaskQueueHandle

Queue to be used for background operation for this user (Optional). Note: Using XTaskQueueDispatchMode::Immediate for this queue may cause poor performance.

Return value

Type: HRESULT

HRESULT return code for this API operation.

Remarks

The result of a local user being added will be triggered through the XblSocialManagerEventType::LocalUserAdded event in XblSocialManagerDoWork. To remove the social graph for the specified local user, call XblSocialManagerRemoveLocalUser.

Requirements

Header: social_manager_c.h

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

See also

social_manager_c