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_FindFile

### Interface Definition

C++C#

    1
    2
    3
    4
    5
    POINTERHANDLE NET_SDK_FindFile(
        LONG lUserID,
        LONG lChannel,
        DD_TIME* lpStartTime,
        DD_TIME* lpStopTime);

    1
    2
    3
    4
    5
    public static extern POINTERHANDLE NET_SDK_FindFile(
        Int32 lUserID,
        Int32 lChannel,
        ref DD_TIME lpStartTime,
        ref DD_TIME lpStopTime);

### Function Description

Search for device recording files based on file time.

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
lUserIDin | LONG | User ID, the return value of `NET_SDK_Login` or `NET_SDK_LoginEx`.
lChannelin | LONG | Channel number, starting from 0. This parameter is invalid for IPC devices.
lpStartTimein | `DD_TIME`* | The start time of the file.
lpStopTimein | `DD_TIME`* | The end time of the file.

### Return Value

- Type：POINTERHANDLE

- Remark：-1 indicates failure, and other values ​​are file search handles, which are used as input to `NET_SDK_FindClose`.

### Remarks

This interface specifies the type of video file to be searched and the search time range. After the call is successful, the `NET_SDK_FindNextFile` interface can be called to obtain file information.

Error Code