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

# XblUserStatisticsStopTrackingUsers

> XblUserStatisticsStopTrackingUsers

Configures the set of stats that will be tracked real-time. The API will cancel all real-time stat updates for the provided users.

## Syntax

```cpp theme={null}
HRESULT XblUserStatisticsStopTrackingUsers(  
         XblContextHandle xblContextHandle,  
         const uint64_t* xboxUserIds,  
         size_t xboxUserIdsCount  
)  
```

### Parameters

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

XBOX services context for the local user.

*xboxUserIds*   \_In\_\
Type: uint64\_t\*

Array of XboxUserIDs for whom to stop tracking the all stats.

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

Length of xboxUserIds array.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Requirements

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

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

## See also

[user\_statistics\_c](https://docs.xbox.com/reference/live/xsapi-c/user_statistics_c/user_statistics_c_members.md)\
[XblUserStatisticsTrackStatistics](https://docs.xbox.com/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticstrackstatistics.md)\
[XblUserStatisticsStopTrackingStatistics](https://docs.xbox.com/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsstoptrackingstatistics.md)\
[XblUserStatisticsRemoveStatisticChangedHandler](https://docs.xbox.com/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsremovestatisticchangedhandler.md)\
[Programming the RTA service](https://docs.xbox.com/services/xbox-services/fundamentals/rta/how-to/live-programming-rta.md)


## Related topics

- [XblUserStatisticsStopTrackingStatistics](https://docs.xbox.com/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsstoptrackingstatistics.md)
- [XblUserStatisticsTrackStatistics](https://docs.xbox.com/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticstrackstatistics.md)
- [Handle an event-based stat change](https://docs.xbox.com/services/xbox-services/player-data/stats-leaderboards/event-based/how-to/live-handling-eb-stat-change.md)
- [user_statistics_c (contents)](https://docs.xbox.com/reference/live/xsapi-c/user_statistics_c/user_statistics_c_members.md)
- [XblUserStatisticsAddStatisticChangedHandler](https://docs.xbox.com/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsaddstatisticchangedhandler.md)
