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_DiscoverDeviceStart

### Interface Definition

C++C#

    1
    2
    3
    4
    5
    6
    unsigned int NET_SDK_DiscoverDeviceStart(
        IPTool_SearchDataCallBack SearchCallBack,
        IPTool_SearchDataCallBackEx SearchCallBackEx,
        void* pParam,
        unsigned int SearchTypeMask,
        int nMaxRecordCount);

    1
    2
    3
    4
    5
    6
    public static extern UInt32 NET_SDK_DiscoverDeviceStart(
        IPTool_SearchDataCallBack SearchCallBack,
        IPTool_SearchDataCallBackEx SearchCallBackEx,
        IntPtr pParam,
        UInt32 SearchTypeMask,
        Int32 nMaxRecordCount);

### Function Description

LAN device search (asynchronous mode, only supports Windows).

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
SearchCallBackin | `IPTool_SearchDataCallBack` | The callback function receives the search results, which are in XML format.
SearchCallBackExin | `IPTool_SearchDataCallBackEx` | The callback function that receives the search result. The search result is a `SEARCHED_DEVICE_INFO` structure.
pParamin | void* | User data.
SearchTypeMask in | unsigned int | Search for the device type.
nMaxRecordCountin | int | The maximum number of searches.

### Return Value

- Type：unsigned int

- Remark：The return value is the search handle value.

### Remarks

None

Error Code