MSGCallBack

Alarm/event information callback function.

Callback Function Definition

typedef void(CALLBACK *MSGCallBack)(
  LONG               lCommand,
  NET_DVR_ALARMER    *pAlarmer,
  char               *pAlarmInfo,
  DWORD              dwBufLen,
  void               *pUser
);

Parameters

lCommand

[OUT] Uploaded message type. You can distinguish the alarm/event information via the type.

pAlarmer

[OUT] Alarm device information, including serial No., IP address, login handle, and so on, see details in NET_DVR_ALARMER.

pAlarmInfo

[OUT] Alarm/event information, the details are returned in different structures according to lCommand.

dwBufLen

[OUT] Size of alarm/event information buffer.

pUser

[OUT] User data.