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.

# NET_SDK_DISK_INFO

### Structure Definition

C++C#

    1
    2
    3
    4
    5
    6
    7
    8
    typedef struct _net_sdk_disk_info
    {
        LONG diskIndex;
        short diskStatus;
        short diskProperty;
        DWORD diskTotalSpace;
        DWORD diskFreeSpace;
    } NET_SDK_DISK_INFO;

    1
    2
    3
    4
    5
    6
    7
    8
    9
    [StructLayout(LayoutKind.Sequential, Pack = 4)]
    public struct NET_SDK_DISK_INFO
    {
        public Int32 diskIndex;
        public Int16 diskStatus;
        public Int16 diskProperty;
        public UInt32 diskTotalSpace;
        public UInt32 diskFreeSpace;
    }

### Function Description

Disk information structure.

### Member Description

Member | Type | Remark
--- | --- | ---
diskIndex | LONG | Disk number.
diskStatus | short | Disk status, refer to `NET_SDK_DISK_STATUS`.
diskProperty | short | Disk status, refer to `NET_SDK_DISK_PROPERTY`.
diskTotalSpace | DWORD | Total disk space, in MB.
diskFreeSpace | DWORD | Remaining disk space, in MB.

Error Code