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_FindEvent

### Interface Definition

C++C#

    1
    2
    3
    4
    5
    6
    POINTERHANDLE NET_SDK_FindEvent(
        LONG lUserID,
        LONG lChannel,
        DWORD dwRecType,
        DD_TIME* lpStartTime,
        DD_TIME* lpStopTime);

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

### Function Description

Search for video files based on events.

### 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.
dwRecTypein | DWORD | Event type.
lpStartTimein | `DD_TIME`* | The start time of the file, refer to `DD_TIME`.
lpStopTimein | `DD_TIME`* | End time of the file, refer to `DD_TIME`.

### Return Value

- Type：POINTERHANDLE

- Remark：-1 indicates failure, other values ​​are used as the lookup handle.

### Remarks

This interface specifies the information of the video file to be found (by event). After the call is successful, the `NET_SDK_FindNextEvent` interface can be called to obtain the file information. The video files found by event are based on the start time and stop time, so only playback by time `NET_SDK_PlayBackByTime`() is supported.

Error Code