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

# XblUserStatisticsGetSingleUserStatisticResult

> XblUserStatisticsGetSingleUserStatisticResult

# XblUserStatisticsGetSingleUserStatisticResult

Get the result for an XblUserStatisticsGetSingleUserStatisticAsync call.

## Syntax

```cpp theme={null}
HRESULT XblUserStatisticsGetSingleUserStatisticResult(  
         XAsyncBlock* async,  
         size_t bufferSize,  
         void* buffer,  
         XblUserStatisticsResult** ptrToBuffer,  
         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 [XblUserStatisticsGetSingleUserStatisticResultSize](/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetsingleuserstatisticresultsize) to get the size required.

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

A caller allocated byte buffer that passes back the single user statistic.

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

*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

- [XblUserStatisticsGetSingleUserStatisticAsync](/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetsingleuserstatisticasync.md)
- [XblUserStatisticsResult](/reference/live/xsapi-c/user_statistics_c/structs/xbluserstatisticsresult.md)
- [Getting event-based stats](/services/xbox-services/player-data/stats-leaderboards/event-based/how-to/live-getting-eb-stat.md)
- [XblUserStatisticsGetSingleUserStatisticResultSize](/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetsingleuserstatisticresultsize.md)
- [XblUserStatisticsGetSingleUserStatisticsResult](/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetsingleuserstatisticsresult.md)
