Condition structure about getting access control events.
struct{ DWORD dwSize; DWORD dwMajor; DWORD dwMinor; NET_DVR_TIME struStartTime; NET_DVR_TIME struEndTime; BYTE byCardNo[ACS_CARD_NO_LEN/*32*/]; BYTE byName[NAME_LEN/*32*/]; BYTE byPicEnable; BYTE byTimeType; BYTE byRes2[2]; DWORD dwBeginSerialNo; DWORD dwEndSerialNo; DWORD dwIOTChannelNo; WORD wInductiveEventType; BYTE bySearchType; BYTE byEventAttribute; char szMonitorID[NET_SDK_MONITOR_ID_LEN/*64*/]; BYTE byEmployeeNo[NET_SDK_EMPLOYEE_NO_LEN/*32*/]; BYTE byRes[140]; }NET_DVR_ACS_EVENT_COND,*LPNET_DVR_ACS_EVENT_COND;
Structure size.
Event major types, see details in Access Control Event Types, 0-all.
Event minor types, see details in Access Control Event Types, 0-all.
Start time, see NET_DVR_TIME for details.
End time, see NET_DVR_TIME for details.
Card No.
Cardholder name.
Whether contain pictures: 0-no, 1-yes. If this member is set to 0, all events that meet the requirements will be uploaded without pictures. If this member is set to 1, for all events that meet the requirements, the event information will be uploaded if there is no linkage picture, and the event information along with the linkage pictures will be uploaded if there are any.
Time type: 0-device local time (default), 1-UTC time (which is same as struStartTime and struEndTime).
Reserved, set to 0.
Start serial No.: 0-all.
End serial No.: 0-all.
IOT channel No., 0-invalid.
Inductive event type, 0-invalid. The alarm event types will be distinguished according to the inductive event type if wInductiveEventType is not 0; otherwise, the alarm event types will be distinguished according to dwMajor and dwMinor.
Search mode: 0-reserved, 1-search by event source (the channel No. is the non-video channel No.), 2-search by monitoring resource ID.
Event attribute: 0-undefined, 1-valid authentication, 2-other.
Monitoring resource ID which consists of device serial No., channel type, and No. For example, the access point ID is device serial No.+"DOOR"+door No.
Employee No. (person ID)
Reserved, set to 0.