summaryrefslogtreecommitdiffstats
path: root/src/libnetdata/os/windows-wmi/windows-wmi-GetDiskDriveInfo.h
blob: cc9b4606723a1bc28960f548ef595e81d7aa403b (plain)
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
// SPDX-License-Identifier: GPL-3.0-or-later

#ifndef NETDATA_WINDOWS_WMI_GETDISKDRIVEINFO_H
#define NETDATA_WINDOWS_WMI_GETDISKDRIVEINFO_H

#include "windows-wmi.h"

#if defined(OS_WINDOWS)

typedef struct {
    char DeviceID[256];
    char Model[256];
    char Caption[256];
    char Name[256];
    int Partitions;
    unsigned long long Size;
    char Status[64];
    int Availability;
    int Index;
    char Manufacturer[256];
    char InstallDate[64];
    char MediaType[128];
    bool NeedsCleaning;
} DiskDriveInfoWMI;

size_t GetDiskDriveInfo(DiskDriveInfoWMI *diskInfoArray, size_t array_size);

#endif

#endif //NETDATA_WINDOWS_WMI_GETDISKDRIVEINFO_H