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

# XblPresenceTrackAdditionalTitles

> Adds titles other than the current title to the list of titles for which XSAPI tracks real-time title Presence changes.

Configures the list of titles for which real-time title presence will be tracked. To receive title presence updates for titles other than the current title, they must be added using this API.

## Syntax

```cpp theme={null}
HRESULT XblPresenceTrackAdditionalTitles(  
         XblContextHandle xblContextHandle,  
         const uint32_t* titleIds,  
         size_t titleIdsCount  
)  
```

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

*titleIds*   \_In\_\
Type: uint32\_t\*

Array of title IDs to append to the existing list of tracked titles. Note that the current title will be tracked by default.

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

Length of the titleIds array.

### Return value

Type: HRESULT

Returns `S_OK` on success, or an error code on failure. Possible error codes include the following. This list isn't exhaustive.

| Return code | Description |
| - | - |
| E\_INVALIDARG | *xblContextHandle* or *titleIds* is null. |

## Remarks

Updates will be delivered via XblPresenceTitlePresenceChangedHandlers. Note that the set of tracked titles can be updated independent from the handlers.

Title Presence updates are received only for users that you track with [XblPresenceTrackUsers](https://docs.xbox.com/reference/live/xsapi-c/presence_c/functions/xblpresencetrackusers.md). Register a handler with [XblPresenceAddTitlePresenceChangedHandler](https://docs.xbox.com/reference/live/xsapi-c/presence_c/functions/xblpresenceaddtitlepresencechangedhandler.md) before you track users and titles. XSAPI creates and removes the Real-Time Activity (RTA) subscriptions.

Tracking is reference counted. Call [XblPresenceStopTrackingAdditionalTitles](https://docs.xbox.com/reference/live/xsapi-c/presence_c/functions/xblpresencestoptrackingadditionaltitles.md) once for each successful call to this function for the same title.

Together with `XblPresenceTrackUsers`, this function replaces the deprecated `XblPresenceSubscribeToTitlePresenceChange` function.

## Requirements

**Header:** presence\_c.h

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

## See also

[presence\_c](https://docs.xbox.com/reference/live/xsapi-c/presence_c/presence_c_members.md)\
[XblPresenceStopTrackingAdditionalTitles](https://docs.xbox.com/reference/live/xsapi-c/presence_c/functions/xblpresencestoptrackingadditionaltitles.md)\
[Handling a title Presence change](https://docs.xbox.com/services/xbox-services/community/presence/how-to/live-handling-a-title-presence-change.md)


## Related topics

- [XblPresenceStopTrackingAdditionalTitles](https://docs.xbox.com/reference/live/xsapi-c/presence_c/functions/xblpresencestoptrackingadditionaltitles.md)
- [Handling a title Presence change](https://docs.xbox.com/services/xbox-services/community/presence/how-to/live-handling-a-title-presence-change.md)
- [XblPresenceAddTitlePresenceChangedHandler](https://docs.xbox.com/reference/live/xsapi-c/presence_c/functions/xblpresenceaddtitlepresencechangedhandler.md)
- [XblPresenceTrackUsers](https://docs.xbox.com/reference/live/xsapi-c/presence_c/functions/xblpresencetrackusers.md)
- [presence_c (contents)](https://docs.xbox.com/reference/live/xsapi-c/presence_c/presence_c_members.md)
