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

# XblSocialRelationshipResultGetNextAsync

> XblSocialRelationshipResultGetNextAsync

Gets the next page of a list of people that the caller is socially connected to.

## Syntax

```cpp theme={null}
HRESULT XblSocialRelationshipResultGetNextAsync(  
         XblContextHandle xboxLiveContext,  
         XblSocialRelationshipResultHandle resultHandle,  
         size_t maxItems,  
         XAsyncBlock* async  
)  
```

### Parameters

*xboxLiveContext*   \_In\_\
Type: [XblContextHandle](https://docs.xbox.com/reference/live/xsapi-c/types_c/handles/xblcontexthandle.md)

An XBOX services context handle created with XblContextCreateHandle.

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

Social relationship result handle from a previous call to XblSocialGetSocialRelationshipsAsync.

*maxItems*   \_In\_\
Type: size\_t

Controls the number of XblSocialRelationship objects to get. Pass 0 to try to retrieve all items. If *maxItems* is 0, the service might apply a default value. The service might return fewer than *maxItems* items even if it hasn't returned the last page of results yet.

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

Caller allocated AsyncBlock.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Remarks

Call this API after finding more results from [XblSocialRelationshipResultHasNext](https://docs.xbox.com/reference/live/xsapi-c/social_c/functions/xblsocialrelationshipresulthasnext.md). After calling this API, make sure to call [XblSocialRelationshipResultGetNextResult](https://docs.xbox.com/reference/live/xsapi-c/social_c/functions/xblsocialrelationshipresultgetnextresult.md) to get the result.

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

- [Getting a social relationship](https://docs.xbox.com/services/xbox-services/community/people-system/how-to/live-getting-a-social-relationship.md)
- [XblSocialRelationshipResultGetNextResult](https://docs.xbox.com/reference/live/xsapi-c/social_c/functions/xblsocialrelationshipresultgetnextresult.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)
- [XblSocialGetSocialRelationshipsResult](https://docs.xbox.com/reference/live/xsapi-c/social_c/functions/xblsocialgetsocialrelationshipsresult.md)
