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

# XblPrivacyAddMuteListChangedHandler

> XblPrivacyAddMuteListChangedHandler

# XblPrivacyAddMuteListChangedHandler

註冊事件處理常式，以在使用者的靜音清單變更時接收通知。

## 語法

```cpp theme={null}
XblFunctionContext XblPrivacyAddMuteListChangedHandler(  
         XblContextHandle xboxLiveContext,  
         XblPrivacyMuteListChangedHandler handler,  
         void* handlerContext  
)  
```

### 參數

*xboxLiveContext*   \_In\_\
類型：[XblContextHandle](/zh-TW/reference/live/xsapi-c/types_c/handles/xblcontexthandle)

使用 XblContextCreateHandle 建立的 XBOX 服務內容控制代碼。

*handler*   \_In\_\
類型：XblPrivacyMuteListChangedHandler

接收通知的回呼函式。

*handlerContext*   \_In\_opt\_\
類型：void\*

要傳回給處理常式的用戶端內容指標。

### 傳回值

類型：XblFunctionContext

用來移除處理常式的 XblFunctionContext。

## 備註

呼叫 [XblPrivacyRemoveMuteListChangedHandler](/zh-TW/reference/live/xsapi-c/privacy_c/functions/xblprivacyremovemutelistchangedhandler) 以取消註冊事件處理常式。

## 需求

**標頭：** privacy\_c.h

**程式庫：** Microsoft.Xbox.Services.14x.GDK.C.lib

## 另請參閱

[privacy\_c](/zh-TW/reference/live/xsapi-c/privacy_c/privacy_c_members)


## Related topics

- [XblPrivacyRemoveMuteListChangedHandler](/zh-TW/reference/live/xsapi-c/privacy_c/functions/xblprivacyremovemutelistchangedhandler.md)
- [XblPrivacyAddBlockListChangedHandler](/zh-TW/reference/live/xsapi-c/privacy_c/functions/xblprivacyaddblocklistchangedhandler.md)
- [XblPrivacyRemoveBlockListChangedHandler](/zh-TW/reference/live/xsapi-c/privacy_c/functions/xblprivacyremoveblocklistchangedhandler.md)
- [XblPrivacyGetMuteListResult](/zh-TW/reference/live/xsapi-c/privacy_c/functions/xblprivacygetmutelistresult.md)
- [XblPrivacyGetMuteListAsync](/zh-TW/reference/live/xsapi-c/privacy_c/functions/xblprivacygetmutelistasync.md)
