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.

# SEARCHED_DEVICE_INFO

### Structure Definition

C++C#

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    typedef struct _searched_deviceInfo
    {
        char series[64];
        char devName[64];
        char deviceType[16];
        char szproductModel[16];
        char szVersion[32];
        char szFactoryName[16];
        char szEthName[16];
        unsigned short netport;
        unsigned short nHttpPort;
        unsigned int ipaddr;
        unsigned int gateway;
        unsigned int netmask;
        unsigned int dns1;
        unsigned int dns2;
        unsigned short nChannelCount;
        unsigned int dwSecondIP;
        unsigned int dwSecondMask;
    } SEARCHED_DEVICE_INFO;

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    [StructLayout(LayoutKind.Sequential, Pack = 4)]
    public struct SEARCHED_DEVICE_INFO
    {
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 64)]
        public byte[] series;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 64)]
        public byte[] devName;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 16)]
        public byte[] deviceType;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 16)]
        public byte[] szproductModel;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 32)]
        public byte[] szVersion;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 16)]
        public byte[] szFactoryName;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 16)]
        public byte[] szEthName;
        public UInt16 netport;
        public UInt16 nHttpPort;
        public UInt32 ipaddr;
        public UInt32 gateway;
        public UInt32 netmask;
        public UInt32 dns1;
        public UInt32 dns2;
        public UInt16 nChannelCount;
        public UInt32 dwSecondIP;
        public UInt32 dwSecondMask;
    }

### Function Description

Search the device structure information in the local area network.

### Member Description

Member | Type | Remark
--- | --- | ---
series | char[64] | Serial number.
devName | char[64] | The name of the device.
deviceType | char[16] | Device type.
szproductModel | char[16] | Product model.
szVersion | char[32] | Version.
szFactoryName | char[16] | Manufacturer name.
szEthName | char[16] | The name of the network.
netport | unsigned short | Network port.
nHttpPort | unsigned short | Http port.
ipaddr | unsigned int | Ip address.
gateway | unsigned int | Gateway.
netmask | unsigned int | Mask.
dns1 | unsigned int | Dns1.
dns2 | unsigned int | Dns2.
nChannelCount | unsigned short | Number of NVR channels.
dwSecondIP | unsigned int | From IP address.
dwSecondMask | unsigned int | From the mask.

Error Code