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

# XblUserStatisticsGetMultipleUserStatisticsResult

> XblUserStatisticsGetMultipleUserStatisticsResult

# XblUserStatisticsGetMultipleUserStatisticsResult

Get the result for an XblUserStatisticsGetMultipleUserStatisticsAsync call.

## Syntax

```cpp theme={null}
HRESULT XblUserStatisticsGetMultipleUserStatisticsResult(  
         XAsyncBlock* async,  
         size_t bufferSize,  
         void* buffer,  
         XblUserStatisticsResult** ptrToBuffer,  
         size_t* resultsCount,  
         size_t* bufferUsed  
)  
```

### Parameters

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

The AsyncBlock for this operation.

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

The size of the provided buffer. Use [XblUserStatisticsGetMultipleUserStatisticsResultSize](/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetmultipleuserstatisticsresultsize) to get the size required.

*buffer*   \_Out\_writes\_bytes\_to\_(bufferSize,*bufferUsed)\
Type: void*

A caller allocated byte buffer that passes back the multiple user statistics.

*ptrToBuffer*   \_Outptr\_\
Type: [XblUserStatisticsResult\*\*](/reference/live/xsapi-c/user_statistics_c/structs/xbluserstatisticsresult)

Passes back a strongly typed pointer that points into buffer. Do not free this as its lifecycle is tied to buffer.

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

Passes back the number of user statistics results.

*bufferUsed*   \_Out\_opt\_\
Type: size\_t\*

Passes back the number of bytes written to the buffer.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Requirements

**Header:** user\_statistics\_c.h

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

## See also

[user\_statistics\_c](/reference/live/xsapi-c/user_statistics_c/user_statistics_c_members)


## Related topics

- [XblUserStatisticsResult](/reference/live/xsapi-c/user_statistics_c/structs/xbluserstatisticsresult.md)
- [XblUserStatisticsGetMultipleUserStatisticsAsync](/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetmultipleuserstatisticsasync.md)
- [Getting event-based stats](/services/xbox-services/player-data/stats-leaderboards/event-based/how-to/live-getting-eb-stat.md)
- [XblUserStatisticsGetMultipleUserStatisticsResultSize](/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetmultipleuserstatisticsresultsize.md)
- [XblUserStatisticsGetMultipleUserStatisticsForMultipleServiceConfigurationsResult](/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetmultipleuserstatisticsformultipleserviceconfigurationsresult.md)
