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

# XblMultiplayerAddSubscriptionLostHandler

> XblMultiplayerAddSubscriptionLostHandler

# XblMultiplayerAddSubscriptionLostHandler

Registers an event handler for notifications when a multiplayer subscription is lost. Use the returned XblFunctionContext to unregister the handler.

## Syntax

```cpp theme={null}
XblFunctionContext XblMultiplayerAddSubscriptionLostHandler(  
         XblContextHandle xblContext,  
         XblMultiplayerSessionSubscriptionLostHandler* handler,  
         void* context  
)  
```

### Parameters

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

XBOX live context for the local user.

*handler*   \_In\_\
Type: XblMultiplayerSessionSubscriptionLostHandler\*

The callback function that receives notifications.

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

Caller context to be passed the handler.

### Return value

Type: XblFunctionContext

The function context token that was registered for the event.

## Requirements

**Header:** multiplayer\_c.h

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

## See also

[multiplayer\_c](/reference/live/xsapi-c/multiplayer_c/multiplayer_c_members)


## Related topics

- [Moving from MPSD to PlayFab Multiplayer and MPA](/services/xbox-services/multiplayer/mpsd/concepts/live-mpsd-to-mlp.md)
- [XblMultiplayerSessionSubscriptionLostHandler](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionsubscriptionlosthandler.md)
- [XblMultiplayerRemoveSubscriptionLostHandler](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayerremovesubscriptionlosthandler.md)
- [XblMultiplayerAddSessionChangedHandler](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayeraddsessionchangedhandler.md)
- [XblMultiplayerActivityAddInviteHandler](/reference/live/xsapi-c/multiplayer_activity_c/functions/xblmultiplayeractivityaddinvitehandler.md)
