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

# XblAddServiceCallRoutedHandler

> XblAddServiceCallRoutedHandler

# XblAddServiceCallRoutedHandler

Registers for all service call notifications.

## Syntax

```cpp theme={null}
XblFunctionContext XblAddServiceCallRoutedHandler(  
         XblCallRoutedHandler handler,  
         void* context  
)  
```

### Parameters

*handler*   \_In\_\
Type: XblCallRoutedHandler

The event handler function to call.

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

Caller context to be passed back to the handler.

### Return value

Type: XblFunctionContext

A XblFunctionContext that can be used to unregister the event handler.

## Requirements

**Header:** xbox\_live\_global\_c.h

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

## See also

[xbox\_live\_global\_c](/reference/live/xsapi-c/xbox_live_global_c/xbox_live_global_c_members)


## Related topics

- [HCAddCallRoutedHandler](/reference/live/httpclient/httpclient/functions/hcaddcallroutedhandler.md)
- [XblRemoveServiceCallRoutedHandler](/reference/live/xsapi-c/xbox_live_global_c/functions/xblremoveservicecallroutedhandler.md)
- [XblServiceCallRoutedArgs](/reference/live/xsapi-c/xbox_live_global_c/structs/xblservicecallroutedargs.md)
- [HCRemoveCallRoutedHandler](/reference/live/httpclient/httpclient/functions/hcremovecallroutedhandler.md)
- [HCRemoveWebSocketRoutedHandler](/reference/live/httpclient/httpclient/functions/hcremovewebsocketroutedhandler.md)
