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

# XblSocialManagerSetRichPresencePollingStatus

> XblSocialManagerSetRichPresencePollingStatus

# XblSocialManagerSetRichPresencePollingStatus

设置是否启用社交管理器每 30 秒从在线状态服务进行一次轮询。

## 语法

```cpp theme={null}
HRESULT XblSocialManagerSetRichPresencePollingStatus(  
         XblUserHandle user,  
         bool shouldEnablePolling  
)  
```

### 参数

*user*   \_In\_\
类型：XblUserHandle

要为其启用轮询的 XBOX Live 用户。

*shouldEnablePolling*   \_In\_\
类型：bool

是否应启用轮询。

### 返回值

类型：HRESULT

此 API 操作的 HRESULT 返回代码。

## 要求

**标头：** 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)
