NET_DVR_ALARM_DEVICE_USER

Structure about User Configuration of Security Control Devices

Member

Data Type

Description

dwSize

DWORD

Structure size.

sUserName

BYTE[]

User name. The array length is 32 bytes (macro definition value of "NAME_LEN").

sPassword

BYTE[]

Password. The array length is 16 bytes (macro definition value of "PASSWD_LEN").

struUserIP

NET_DVR_IPADDR

IP address of the user. If it is 0, it indicates that all addresses are allowed.

byMACAddr

BYTE[]

MAC address. The array length is 6 bytes (macro definition value of "MACADDR_LEN").

byUserType

BYTE

User type: 0-normal user, 1-admin user.

byAlarmOnRight

BYTE

Whether the person has arming permission: 0-no, 1-yes.

byAlarmOffRight

BYTE

Whether the person has disarming permission: 0-no, 1-yes.

byBypassRight

BYTE

Whether the person has bypass permission: 0-no, 1-yes.

byOtherRight

BYTE[]

Whether the person has other permission: 0-no, 1-yes. The array length is 32 bytes (macro definition value of "MAX_RIGHT").

  • byOtherRight[0]: log permission.

  • byOtherRight[1]: restart and shut down.

  • byOtherRight[2]: permission of setting parameters.

  • byOtherRight[3]: permission of getting parameters.

  • byOtherRight[4]: permission of restoring to default settings.

  • byOtherRight[5]: siren output permission.

  • byOtherRight[6]: PTZ control permission. For video security control panel, this parameter is invalid, and the PTZ control permission is configured by byNetPTZRight.

  • byOtherRight[7]: permission of upgrading remotely.

  • byOtherRight[8]: alarm output control permission.

  • byOtherRight[9]: serial port control permission.

  • byOtherRight[10]: access control permission.

  • byOtherRight[11]: two-way audio permission.

  • byOtherRight[12]: permission of controlling local output remotely.

  • byOtherRight[13]: permission of configuring HDD.

  • byOtherRight[14]: permission of formatting HDD.

  • byOtherRight[15]: permission of controlling analog sensor.

byNetPreviewRight

BYTE[]

Channels that support remote live view. The array length is 8 bytes (macro definition value of "MAX_ALARMHOST_VIDEO_CHAN" divided by 8). Each element in the array indicates the corresponding channel. For each element, 1 means having permission, and 0 means having no permission.

byNetRecordRight

BYTE[]

Channels that support remote recording. The array length is 8 bytes (macro definition value of "MAX_ALARMHOST_VIDEO_CHAN" divided by 8). Each element in the array indicates the corresponding channel. For each element, 1 means having permission, and 0 means having no permission.

byNetPlaybackRight

BYTE[]

Channels that support remote playback. The array length is 8 bytes (macro definition value of "MAX_ALARMHOST_VIDEO_CHAN" divided by 8). Each element in the array indicates the corresponding channel. For each element, 1 means having permission, and 0 means having no permission.

byNetPTZRight

BYTE[]

Channels that support remote PTZ control. The array length is 8 bytes (macro definition value of "MAX_ALARMHOST_VIDEO_CHAN" divided by 8). Each element in the array indicates the corresponding channel. For each element, 1 means having permission, and 0 means having no permission.

sOriginalPassword

BYTE[]

Original password. The array length is 16 bytes (macro definition value of "PASSWD_LEN").

byRes2

BYTE[]

Reserved. The array length is 152 bytes.