Skip to content
This SDK only works with devices released within the past 3 years. We regularly optimize and update the SDK to ensure compatibility and performance. We do not guarantee compatibility or provide technical support for devices older than 3 years.

# DD_ACCOUNT_CONFIG

### Structure Definition

C++C#

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    typedef struct _dd_account_config_
    {
        unsigned int iSize;
        unsigned int enable;
        unsigned int bindMAC;
        unsigned int group;
        char MAC[8];
        char name[DD_MAX_USER_NAME_BUF_LEN];
        char password[DD_MAX_PASSWORD_BUF_LEN];
        unsigned char logSearch;
        unsigned char systemSetup;
        unsigned char fileManagement;
        unsigned char diskManagement;
        unsigned char remoteLogin;
        unsigned char twoWayAudio;
        unsigned char systemMaintain;
        unsigned char OnlineUserManagement;
        unsigned char shutdown;
        unsigned char alarmOutCtrl;
        unsigned char netAlarm;
        unsigned char netSerialCtrl;
        unsigned char authLive;
        unsigned char authRecord;
        unsigned char authPlayback;
        unsigned char authBackup;
        unsigned char authPTZ;
        unsigned char netAuthView;
        unsigned char netauthRecord;
        unsigned char netauthPlayback;
        unsigned char netauthBackup;
        unsigned char netauthPTZ;
        unsigned char recv[2];
        unsigned char authLiveCH[DD_MAX_CAMERA_NUM_BYTE_LEN];
        unsigned char authRecordCH[DD_MAX_CAMERA_NUM_BYTE_LEN];
        unsigned char authPlaybackCH[DD_MAX_CAMERA_NUM_BYTE_LEN];
        unsigned char authBackupCH[DD_MAX_CAMERA_NUM_BYTE_LEN];
        unsigned char authPTZCH[DD_MAX_CAMERA_NUM_BYTE_LEN];
        unsigned char netAuthViewCH[DD_MAX_CAMERA_NUM_BYTE_LEN];
        unsigned char netAuthRecordCH[DD_MAX_CAMERA_NUM_BYTE_LEN];
        unsigned char netAuthPlaybackCH[DD_MAX_CAMERA_NUM_BYTE_LEN];
        unsigned char netAuthBackupCH[DD_MAX_CAMERA_NUM_BYTE_LEN];
        unsigned char netAuthPTZCH[DD_MAX_CAMERA_NUM_BYTE_LEN];
    } DD_ACCOUNT_CONFIG;

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    [StructLayout(LayoutKind.Sequential, Pack = 4)]
    public struct DD_ACCOUNT_CONFIG
    {
        public UInt32 iSize;
        public UInt32 enable;
        public UInt32 bindMAC;
        public UInt32 group;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 8)]
        public byte[] MAC;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 132)]
        public byte[] name;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 132)]
        public byte[] password;
        public byte logSearch;
        public byte systemSetup;
        public byte fileManagement;
        public byte diskManagement;
        public byte remoteLogin;
        public byte twoWayAudio;
        public byte systemMaintain;
        public byte OnlineUserManagement;
        public byte shutdown;
        public byte alarmOutCtrl;
        public byte netAlarm;
        public byte netSerialCtrl;
        public byte authLive;
        public byte authRecord;
        public byte authPlayback;
        public byte authBackup;
        public byte authPTZ;
        public byte netAuthView;
        public byte netauthRecord;
        public byte netauthPlayback;
        public byte netauthBackup;
        public byte netauthPTZ;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 2)]
        public byte[] recv;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 16)]
        public byte[] authLiveCH;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 16)]
        public byte[] authRecordCH;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 16)]
        public byte[] authPlaybackCH;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 16)]
        public byte[] authBackupCH;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 16)]
        public byte[] authPTZCH;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 16)]
        public byte[] netAuthViewCH;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 16)]
        public byte[] netAuthRecordCH;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 16)]
        public byte[] netAuthPlaybackCH;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 16)]
        public byte[] netAuthBackupCH;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 16)]
        public byte[] netAuthPTZCH;
    }

### Function Description

Account configuration structure.

### Member Description

Member | Type | Remark
--- | --- | ---
iSize | unsigned int | The length of this structure.
enable | unsigned int | Whether to enable the account.
bindMAC | unsigned int | Whether to bind to a physical address.
group | unsigned int | The group it belongs to. For the value, refer to `DD_USER_GROUP`.
MAC | char[8] | The physical address to be bound.
name | char[DD_MAX_USER_NAME_BUF_LEN] | User name.
password | char[DD_MAX_PASSWORD_BUF_LEN] | Account password.
logSearch | unsigned char | Log search permission.
systemSetup | unsigned char | System configuration.
fileManagement | unsigned char | File management.
diskManagement | unsigned char | Disk management.
remoteLogin | unsigned char | Remote login.
twoWayAudio | unsigned char | Voice intercom.
systemMaintain | unsigned char | System maintenance.
OnlineUserManagement | unsigned char | Online user management.
shutdown | unsigned char | Shut down or restart.
alarmOutCtrl | unsigned char | Alarm output control.
netAlarm | unsigned char | Network alarm.
netSerialCtrl | unsigned char | Network serial port control.
authLive | unsigned char | Live preview.
authRecord | unsigned char | Local video recording.
authPlayback | unsigned char | Local retrieval playback.
authBackup | unsigned char | Local backup.
authPTZ | unsigned char | Local PTZ.
netAuthView | unsigned char | On-site control.
netauthRecord | unsigned char | Remote video recording.
netauthPlayback | unsigned char | Remote live playback.
netauthBackup | unsigned char | Remote backup.
netauthPTZ | unsigned char | Remote PTZ.
recv | unsigned char[2] | Reserved bytes.
authLiveCH | unsigned char[DD_MAX_CAMERA_NUM_BYTE_LEN] | Live preview channel.
authRecordCH | unsigned char[DD_MAX_CAMERA_NUM_BYTE_LEN] | Local manual recording.
authPlaybackCH | unsigned char[DD_MAX_CAMERA_NUM_BYTE_LEN] | Local retrieval and playback.
authBackupCH | unsigned char[DD_MAX_CAMERA_NUM_BYTE_LEN] | Local backup.
authPTZCH | unsigned char[DD_MAX_CAMERA_NUM_BYTE_LEN] | Local PTZ control.
netAuthViewCH | unsigned char[DD_MAX_CAMERA_NUM_BYTE_LEN] | Remote live preview.
netAuthRecordCH | unsigned char[DD_MAX_CAMERA_NUM_BYTE_LEN] | Remote manual recording.
netAuthPlaybackCH | unsigned char[DD_MAX_CAMERA_NUM_BYTE_LEN] | Remote playback.
netAuthBackupCH | unsigned char[DD_MAX_CAMERA_NUM_BYTE_LEN] | Remote backup.
netAuthPTZCH | unsigned char[DD_MAX_CAMERA_NUM_BYTE_LEN] | Remote PTZ control.

Error Code