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_RECORD_LOG,LP_DD_RECORD_LOG

### Structure Definition

C++C#

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    typedef struct _dd_record_log_
    {
        unsigned char bLocked;
        unsigned char bUnofficial;
        unsigned char enableCard;
        unsigned char recv1;
        unsigned short diskIndex;
        unsigned short fileIndex;
        unsigned short logIndex;
        unsigned short recv2;
        unsigned short deviceID;
        unsigned short cameraID;
        unsigned int channel;
        unsigned int type;
        unsigned int size;
        DD_TIME startTime;
        DD_TIME endTime;
        char cardNo[32];
    } DD_RECORD_LOG, * LP_DD_RECORD_LOG;

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    [StructLayout(LayoutKind.Sequential, Pack = 4)]
    public struct DD_RECORD_LOG
    {
        public byte bLocked;
        public byte bUnofficial;
        public byte enableCard;
        public byte recv1;
        public UInt16 diskIndex;
        public UInt16 fileIndex;
        public UInt16 logIndex;
        public UInt16 recv2;
        public UInt16 deviceID;
        public UInt16 cameraID;
        public UInt32 channel;
        public UInt32 type;
        public UInt32 size;
        public DD_TIME startTime;
        public DD_TIME endTime;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 32)]
        public byte[] cardNo;
    }

### Function Description

Video log information structure.

### Member Description

Member | Type | Remark
--- | --- | ---
bLocked | unsigned char | 0 means unlocked, 1 means locked.
bUnofficial | unsigned char | 0 indicates a formal record, and 1 indicates an informal record (i.e., an overlapping record after the modification time).
enableCard | unsigned char | Whether to use the card number.
recv1 | unsigned char | Reserved bytes.
diskIndex | unsigned short | Disk serial number.
fileIndex | unsigned short | File serial number.
logIndex | unsigned short | Subsequence number.
recv2 | unsigned short | Reserved bytes.
deviceID | unsigned short | Device serial number.
cameraID | unsigned short | Camera serial number.
channel | unsigned int | Virtual channel number.
type | unsigned int | Recording type, refer to `DD_RECORD_TYPE` for its value.
size | unsigned int | The length of the video data.
startTime | `DD_TIME` | Start time.
endTime | `DD_TIME` | End time.
cardNo | char[32] | Card number.

Error Code