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

# XblPrivacyAddBlockListChangedHandler

> XblPrivacyAddBlockListChangedHandler

# XblPrivacyAddBlockListChangedHandler

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

## 語法

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

### 參數

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

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

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

接收通知的回呼函式。

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

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

### 傳回值

類型：XblFunctionContext

用來移除處理常式的 XblFunctionContext。

## 備註

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

## 需求

**標頭：** 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

- [XblPrivacyRemoveBlockListChangedHandler](/zh-TW/reference/live/xsapi-c/privacy_c/functions/xblprivacyremoveblocklistchangedhandler.md)
- [XblPrivacyAddMuteListChangedHandler](/zh-TW/reference/live/xsapi-c/privacy_c/functions/xblprivacyaddmutelistchangedhandler.md)
- [XblPrivacyRemoveMuteListChangedHandler](/zh-TW/reference/live/xsapi-c/privacy_c/functions/xblprivacyremovemutelistchangedhandler.md)
- [XblMultiplayerAddSessionChangedHandler](/zh-TW/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayeraddsessionchangedhandler.md)
- [XblSocialAddSocialRelationshipChangedHandler](/zh-TW/reference/live/xsapi-c/social_c/functions/xblsocialaddsocialrelationshipchangedhandler.md)
