跳转至
本 SDK 仅适用于过去 3 年内发布的设备。我们定期优化和更新 SDK，以确保兼容性和性能。对于超过 3 年的旧设备，我们不保证兼容性，也不会提供技术支持。

# DD_ACCOUNT_CONFIG

### 结构体定义

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;
    }

### 功能描述

账户配置结构体。

### 成员说明

成员 | 类型 | 说明
--- | --- | ---
iSize | unsigned int | 本结构体长度。
enable | unsigned int | 是否启用该帐号。
bindMAC | unsigned int | 是否绑定物理地址。
group | unsigned int | 所属群组，取值参考`DD_USER_GROUP`。
MAC | char[8] | 被绑定的物理地址。
name | char[DD_MAX_USER_NAME_BUF_LEN] | 用户名称。
password | char[DD_MAX_PASSWORD_BUF_LEN] | 帐号密码。
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 | unsigned char[2] | 保留字节。
authLiveCH | unsigned char[DD_MAX_CAMERA_NUM_BYTE_LEN] | 现场预览通道。
authRecordCH | unsigned char[DD_MAX_CAMERA_NUM_BYTE_LEN] | 本地手动录像。
authPlaybackCH | unsigned char[DD_MAX_CAMERA_NUM_BYTE_LEN] | 本地检索及回放。
authBackupCH | unsigned char[DD_MAX_CAMERA_NUM_BYTE_LEN] | 本地备份。
authPTZCH | unsigned char[DD_MAX_CAMERA_NUM_BYTE_LEN] | 本地云台控制。
netAuthViewCH | unsigned char[DD_MAX_CAMERA_NUM_BYTE_LEN] | 远程现场预览。
netAuthRecordCH | unsigned char[DD_MAX_CAMERA_NUM_BYTE_LEN] | 远程手动录像。
netAuthPlaybackCH | unsigned char[DD_MAX_CAMERA_NUM_BYTE_LEN] | 远程回放。
netAuthBackupCH | unsigned char[DD_MAX_CAMERA_NUM_BYTE_LEN] | 远程备份。
netAuthPTZCH | unsigned char[DD_MAX_CAMERA_NUM_BYTE_LEN] | 远程云台控制。

错误码