NET_DVR_BypassAlarmChan

Perform bypass on the zone.

API Definition

BOOL NET_DVR_BypassAlarmChan(
  LONG                     lUserID,
  NET_DVR_ALARMIN_SETUP    *lpInter
);

Parameters

lUserID

[IN] Value returned by NET_DVR_Login_V40.

lpInter

[IN] Zone parameters, see details in the structure NET_DVR_ALARMIN_SETUP.

Return Values

Return TRUE for success, and return FALSE for failure.

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

Remarks

Bypass is not allowed in the following situations: the zone is in arming status; the zone is a 24-hour zone; the security control panel is in programming mode and test mode. Otherwise, FALSE will be returned, and the corresponding error code is 11.