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

註冊所有服務呼叫通知。

## 語法

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

### 參數

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

要呼叫的事件處理常式函式。

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

要傳回給處理常式的呼叫端內容。

### 傳回值

類型：XblFunctionContext

可用來取消註冊事件處理常式的 XblFunctionContext。

## 需求

**標頭：** xbox\_live\_global\_c.h

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

## 另請參閱

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


## Related topics

- [多人遊戲工作階段目錄](/zh-TW/services/xbox-services/multiplayer/mpsd/live-xbox-multiplayer-session-directory.md)
- [HCAddCallRoutedHandler](/zh-TW/reference/live/httpclient/httpclient/functions/hcaddcallroutedhandler.md)
- [XblRemoveServiceCallRoutedHandler](/zh-TW/reference/live/xsapi-c/xbox_live_global_c/functions/xblremoveservicecallroutedhandler.md)
- [XblServiceCallRoutedArgs](/zh-TW/reference/live/xsapi-c/xbox_live_global_c/structs/xblservicecallroutedargs.md)
- [HCRemoveCallRoutedHandler](/zh-TW/reference/live/httpclient/httpclient/functions/hcremovecallroutedhandler.md)
