Skip to content
This SDK only works with devices released within the past 3 years. We regularly optimize and update the SDK to ensure compatibility and performance. We do not guarantee compatibility or provide technical support for devices older than 3 years.

# NET_SDK_SetDVRMessageCallBackEx

### Interface Definition

C++C#

    1
    2
    3
    BOOL NET_SDK_SetDVRMessageCallBackEx(
        NET_MESSAGE_CALLBACK_EX fMessageCallBack,
        void* pUser);

    1
    2
    3
    public static extern bool NET_SDK_SetDVRMessageCallBackEx(
        NET_MESSAGE_CALLBACK_EX fMessageCallBack,
        IntPtr pUser);

### Function Description

Set SDK operation exception callback function (extension of `NET_SDK_SetDVRMessageCallBack`, callback function parameters are different).

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
fMessageCallBackin | `NET_MESSAGE_CALLBACK_EX` | The callback function that receives the exception message calls back the relevant information of the current exception. For reference, refer to `NET_MESSAGE_CALLBACK_EX`.
pUserin | void* | User-defined parameters.

### Return Value

- Type：BOOL

- Remark：Returns TRUE if successful, FALSE if failed.

### Remarks

None

Error Code