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

# XblSocialGetSocialRelationshipsResult

> XblSocialGetSocialRelationshipsResult

Get the result handle from an XblSocialGetSocialRelationshipsAsync API call.

## Syntax

```cpp theme={null}
HRESULT XblSocialGetSocialRelationshipsResult(  
         XAsyncBlock* async,  
         XblSocialRelationshipResultHandle* handle  
)  
```

### Parameters

*async*   \_In\_\
Type: XAsyncBlock\*

The same AsyncBlock that was passed to [XblSocialGetSocialRelationshipsAsync](https://docs.xbox.com/reference/live/xsapi-c/social_c/functions/xblsocialgetsocialrelationshipsasync.md).

*handle*   \_Out\_\
Type: [XblSocialRelationshipResultHandle\*](https://docs.xbox.com/reference/live/xsapi-c/social_c/handles/xblsocialrelationshipresulthandle.md)

Passes back an XblSocialRelationshipResultHandle.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Remarks

When no longer using the XblSocialRelationshipResultHandle, make sure to call [XblSocialRelationshipResultCloseHandle](https://docs.xbox.com/reference/live/xsapi-c/social_c/functions/xblsocialrelationshipresultclosehandle.md). When all outstanding handles have been closed, the memory associated with the social relationship's results list will be freed. After calling this API, make sure to call [XblSocialRelationshipResultGetRelationships](https://docs.xbox.com/reference/live/xsapi-c/social_c/functions/xblsocialrelationshipresultgetrelationships.md) to get the results list to iterate over. Then call [XblSocialRelationshipResultHasNext](https://docs.xbox.com/reference/live/xsapi-c/social_c/functions/xblsocialrelationshipresulthasnext.md) to check if there are additional pages of results.

## Requirements

**Header:** social\_c.h

**Library:** Microsoft.Xbox.Services.142.C.lib or Microsoft.Xbox.Services.143.C.lib

## See also

[social\_c](https://docs.xbox.com/reference/live/xsapi-c/social_c/social_c_members.md)


## Related topics

- [XblSocialGetSocialRelationshipsAsync](https://docs.xbox.com/reference/live/xsapi-c/social_c/functions/xblsocialgetsocialrelationshipsasync.md)
- [Getting a social relationship](https://docs.xbox.com/services/xbox-services/community/people-system/how-to/live-getting-a-social-relationship.md)
- [XblSocialRelationshipResultGetTotalCount](https://docs.xbox.com/reference/live/xsapi-c/social_c/functions/xblsocialrelationshipresultgettotalcount.md)
- [XblSocialRelationshipResultHasNext](https://docs.xbox.com/reference/live/xsapi-c/social_c/functions/xblsocialrelationshipresulthasnext.md)
- [social_c (contents)](https://docs.xbox.com/reference/live/xsapi-c/social_c/social_c_members.md)
