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

# XblLeaderboardGetLeaderboardResultSize

> XblLeaderboardGetLeaderboardResultSize

# XblLeaderboardGetLeaderboardResultSize

Get the result size for an XblLeaderboardGetLeaderboardAsync call.

## Syntax

```cpp theme={null}
HRESULT XblLeaderboardGetLeaderboardResultSize(  
         XAsyncBlock* async,  
         size_t* resultSizeInBytes  
)  
```

### Parameters

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

The AsyncBlock for this operation.

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

The size in bytes required to store the user statistics result.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Requirements

**Header:** leaderboard\_c.h

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

## See also

[leaderboard\_c](/reference/live/xsapi-c/leaderboard_c/leaderboard_c_members)


## Related topics

- [Leaderboards](/build/steam-porting-guide/features/steam-leaderboards.md)
- [XblLeaderboardGetLeaderboardResult](/reference/live/xsapi-c/leaderboard_c/functions/xblleaderboardgetleaderboardresult.md)
- [Example code for event-based Leaderboards](/services/xbox-services/player-data/stats-leaderboards/event-based/how-to/live-leaderboards-eb-howto.md)
- [Getting a title-managed leaderboard](/services/xbox-services/player-data/stats-leaderboards/title-managed/how-to/live-getting-tm-leaderboard.md)
- [XblLeaderboardResultGetNextResultSize](/reference/live/xsapi-c/leaderboard_c/functions/xblleaderboardresultgetnextresultsize.md)
