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_SetDVRMessageCallBack

### Interface Definition

C++C#

    1
    2
    3
    BOOL NET_SDK_SetDVRMessageCallBack(
        NET_MESSAGE_CALLBACK fMessageCallBack,
        void* pUser);

    1
    2
    3
    public static extern bool NET_SDK_SetDVRMessageCallBack(
        NET_MESSAGE_CALLBACK fMessageCallBack,
        IntPtr pUser);

### Function Description

Set the SDK operation exception callback function.

### Parameter Description

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

### Return Value

- Type：BOOL

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

### Remarks

None

Error Code