NET_DVR_FindAlarmHostLog

Search for security control panel logs.

API Definition

LONG NET_DVR_FindAlarmHostLog(
  LONG                                 lUserID, 
  LONG                                 lSelectMode, 
  NET_DVR_ALARMHOST_SEARCH_LOG_PARAM   *lpSearchParam
);

Parameters

lUserID

[IN] Value returned by NET_DVR_Login_V40.

lSelectMode

[IN] Searching mode: 0-all, 1-by type, 2-by time, 3-by time and type.

lpSearchParam

[IN] Structure about the conditions of searching for security control panel logs, see details in NET_DVR_ALARMHOST_SEARCH_LOG_PARAM.

Return Values

Return -1 for failure, and return other values as the parameter of NET_DVR_FindNextAlarmHostLog.

If -1 is returned, you can call NET_DVR_GetLastError to get the error code.