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

Registers an event handler for notifications when the user's block list changes.

## Syntax

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

### Parameters

*xboxLiveContext*   \_In\_\
Type: [XblContextHandle](/reference/live/xsapi-c/types_c/handles/xblcontexthandle)

An xbox services context handle created with XblContextCreateHandle.

*handler*   \_In\_\
Type: XblPrivacyBlockListChangedHandler

The callback function that receives notifications.

*handlerContext*   \_In\_opt\_\
Type: void\*

Client context pointer to be passed back to the handler.

### Return value

Type: XblFunctionContext

A XblFunctionContext used to remove the handler.

## Remarks

Call [XblPrivacyRemoveBlockListChangedHandler](/reference/live/xsapi-c/privacy_c/functions/xblprivacyremoveblocklistchangedhandler) to un-register the event handler.

## Requirements

**Header:** privacy\_c.h

**Library:** Microsoft.Xbox.Services.14x.GDK.C.lib

## See also

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


## Related topics

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