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_GetDeviceCHStatus

### Interface Definition

C++C#

    1
    2
    3
    4
    5
    BOOL NET_SDK_GetDeviceCHStatus(
        LONG lUserID,
        NET_SDK_CH_DEVICE_STATUS* pDeviceCHStatus,
        LONG lBuffSize,
        LONG* pCHCount);

    1
    2
    3
    4
    5
    public static extern bool NET_SDK_GetDeviceCHStatus(
        Int32 lUserID,
        IntPtr pDeviceCHStatus,
        Int32 lBuffSize,
        ref Int32 pCHCount);

### Function Description

Get NVR device channel information, channel type, whether it is online, whether the analog channel is connected to the video, etc.

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
lUserIDin | LONG | User ID, the return value of `NET_SDK_Login` or `NET_SDK_LoginEx`.
pDeviceCHStatusout | `NET_SDK_CH_DEVICE_STATUS`* | The device's currently configured channel online status, refer to `NET_SDK_CH_DEVICE_STATUS`.
lBuffSizein | LONG | PDeviceCHStatus length (sizeof(`NET_SDK_CH_DEVICE_STATUS`) * number of channels supported by the device).
pCHCountout | LONG* | The actual number of channels currently available on the device.

### Return Value

- Type：BOOL

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

### Remarks

None

Error Code