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_QueryNodeList

### Interface Definition

C++C#

    1
    2
    3
    4
    5
    6
    BOOL NET_SDK_QueryNodeList(
        LONG lUserID,
        const NET_SDK_NODE_PARAM queryParam,
        char* outNodesBuffer,
        unsigned int outNodesBufferSize,
        unsigned int* outFilledSize);

    1
    2
    3
    4
    5
    6
    public static extern Boolean NET_SDK_QueryNodeList(
        Int32 lUserID,
        in NET_SDK_NODE_PARAM queryParam,
        IntPtr outNodesBuffer,
        in UInt32 outNodesBufferSize,
        ref UInt32 outFilledSize);

### Function Description

Query the NVR node list.

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
lUserIDin | LONG | User ID, the return value of `NET_SDK_Login` or `NET_SDK_LoginEx`.
queryParamin | const `NET_SDK_NODE_PARAM` | Query parameters.
outNodesBufferout | char* | Node list.
outNodesBufferSizein | unsigned int | The length of outNodesBuffer.
outFilledSizeout | unsigned int* | Returns the length of the data.

### Return Value

- Type：BOOL

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

### Remarks

According to different queryParam.nodeType, the outNodesBuffer type is different, as follows:

nodeType type | outNodesBuffer type
--- | ---
1(E_DIGITAL_CHL_TYPE) | Array of `NET_SDK_DEV_NODE_CHL`
2(E_ANALOG_CHL_TYPE) | Array of `NET_SDK_DEV_NODE_CHL`
3(E_ALARMOUT_CHL_TYPE) | Array of `NET_SDK_DEV_NODE_ALARMOUT`
4(E_SENSOR_CHL_TYPE) | Array of `NET_SDK_DEV_NODE_SENSOR`
5(E_VOICE_CHL_TYPE) | Array of `NET_SDK_DEV_NODE_VOICE`

Error Code