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

# XblSocialManagerPresenceRecordIsUserPlayingTitle

> XblSocialManagerPresenceRecordIsUserPlayingTitle

# XblSocialManagerPresenceRecordIsUserPlayingTitle

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

## 语法

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

### 参数

*presenceRecord*   \_In\_\
类型：[XblSocialManagerPresenceRecord\*](https://docs.xbox.com/zh-CN/reference/live/xsapi-c/social_manager_c/structs/xblsocialmanagerpresencerecord.md)

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

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

要查询的标题 ID。

### 返回值

类型：bool

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

## 要求

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

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

## 另请参阅

[social\_manager\_c](https://docs.xbox.com/zh-CN/reference/live/xsapi-c/social_manager_c/social_manager_c_members.md)


## Related topics

- [XblSocialManagerPresenceRecord](https://docs.xbox.com/zh-CN/reference/live/xsapi-c/social_manager_c/structs/xblsocialmanagerpresencerecord.md)
- [social_manager_c](https://docs.xbox.com/zh-CN/reference/live/xsapi-c/social_manager_c/social_manager_c_members.md)
- [XblSocialManagerPresenceTitleRecord](https://docs.xbox.com/zh-CN/reference/live/xsapi-c/social_manager_c/structs/xblsocialmanagerpresencetitlerecord.md)
- [XblSocialManagerUser](https://docs.xbox.com/zh-CN/reference/live/xsapi-c/social_manager_c/structs/xblsocialmanageruser.md)
- [presence_c](https://docs.xbox.com/zh-CN/reference/live/xsapi-c/presence_c/presence_c_members.md)
