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

# XblSocialManagerPresenceRecordIsUserPlayingTitle

> XblSocialManagerPresenceRecordIsUserPlayingTitle

# XblSocialManagerPresenceRecordIsUserPlayingTitle

查询与所提供的在线状态记录相关联的用户是否正在玩指定的标题 ID。

## 语法

```cpp theme={null}
bool XblSocialManagerPresenceRecordIsUserPlayingTitle(  
         const XblSocialManagerPresenceRecord* presenceRecord,  
         uint32_t titleId  
)  
```

### 参数

*presenceRecord*   \_In\_\
类型：[XblSocialManagerPresenceRecord\*](/reference/live/xsapi-c/social_manager_c/structs/xblsocialmanagerpresencerecord)

从另一个社交管理器 API 返回的在线状态记录。

*titleId*   \_In\_\
类型：uint32\_t

要查询的标题 ID。

### 返回值

类型：bool

如果用户正在玩该标题，则为 True，否则为 false。

## 要求

**标头：** social\_manager\_c.h

**库：** Microsoft.Xbox.Services.14x.GDK.C.lib

## 另请参阅

[social\_manager\_c](/reference/live/xsapi-c/social_manager_c/social_manager_c_members)


## Related topics

- [XblSocialManagerPresenceRecord](/zh-CN/reference/live/xsapi-c/social_manager_c/structs/xblsocialmanagerpresencerecord.md)
- [XblSocialManagerPresenceTitleRecord](/zh-CN/reference/live/xsapi-c/social_manager_c/structs/xblsocialmanagerpresencetitlerecord.md)
- [XblSocialManagerUser](/zh-CN/reference/live/xsapi-c/social_manager_c/structs/xblsocialmanageruser.md)
- [XblPresenceDeviceType](/zh-CN/reference/live/xsapi-c/presence_c/enums/xblpresencedevicetype.md)
- [XblPresenceFilter](/zh-CN/reference/live/xsapi-c/social_manager_c/enums/xblpresencefilter.md)
