Debian Codegraph @

mingw-w64-headers/include/vdslun.idl

raw
1 /**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6
7 cpp_quote("#include <winapifamily.h>")
8 cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
9
10 import "oaidl.idl";
11 import "ocidl.idl";
12
13 typedef enum _VDS_STORAGE_IDENTIFIER_CODE_SET {
14 VDSStorageIdCodeSetReserved = 0,
15 VDSStorageIdCodeSetBinary = 1,
16 VDSStorageIdCodeSetAscii = 2,
17 VDSStorageIdCodeSetUtf8 = 3
18 } VDS_STORAGE_IDENTIFIER_CODE_SET;
19
20 typedef enum _VDS_STORAGE_IDENTIFIER_TYPE {
21 VDSStorageIdTypeVendorSpecific = 0,
22 VDSStorageIdTypeVendorId = 1,
23 VDSStorageIdTypeEUI64 = 2,
24 VDSStorageIdTypeFCPHName = 3,
25 VDSStorageIdTypePortRelative = 4,
26 VDSStorageIdTypeTargetPortGroup = 5,
27 VDSStorageIdTypeLogicalUnitGroup = 6,
28 VDSStorageIdTypeMD5LogicalUnitIdentifier = 7,
29 VDSStorageIdTypeScsiNameString = 8
30 } VDS_STORAGE_IDENTIFIER_TYPE;
31
32 typedef enum _VDS_STORAGE_BUS_TYPE {
33 VDSBusTypeUnknown = 0x00,
34 VDSBusTypeScsi = 0x01,
35 VDSBusTypeAtapi = 0x02,
36 VDSBusTypeAta = 0x03,
37 VDSBusType1394 = 0x04,
38 VDSBusTypeSsa = 0x05,
39 VDSBusTypeFibre = 0x06,
40 VDSBusTypeUsb = 0x07,
41 VDSBusTypeRAID = 0x08,
42 VDSBusTypeiScsi = 0x09,
43 VDSBusTypeSas = 0x0A,
44 VDSBusTypeSata = 0x0B,
45 VDSBusTypeSd = 0x0C,
46 VDSBusTypeMmc = 0x0D,
47 VDSBusTypeMax = 0x0E,
48 VDSBusTypeVirtual = 0x0E,
49 VDSBusTypeFileBackedVirtual = 0x0F,
50 VDSBusTypeSpaces = 0x10,
51 VDSBusTypeNVMe = 0x11,
52 VDSBusTypeScm = 0x12,
53 VDSBusTypeUfs = 0x13,
54 VDSBusTypeMaxReserved = 0x7F
55 } VDS_STORAGE_BUS_TYPE;
56
57 typedef struct _VDS_STORAGE_IDENTIFIER {
58 VDS_STORAGE_IDENTIFIER_CODE_SET m_CodeSet;
59 VDS_STORAGE_IDENTIFIER_TYPE m_Type;
60 ULONG m_cbIdentifier;
61 [size_is(m_cbIdentifier)] BYTE *m_rgbIdentifier;
62 } VDS_STORAGE_IDENTIFIER;
63
64 typedef struct _VDS_STORAGE_DEVICE_ID_DESCRIPTOR {
65 ULONG m_version;
66 ULONG m_cIdentifiers;
67 [size_is(m_cIdentifiers)] VDS_STORAGE_IDENTIFIER *m_rgIdentifiers;
68 } VDS_STORAGE_DEVICE_ID_DESCRIPTOR;
69
70 typedef enum _VDS_INTERCONNECT_ADDRESS_TYPE {
71 VDS_IA_UNKNOWN = 0,
72 VDS_IA_FCFS = 1,
73 VDS_IA_FCPH = 2,
74 VDS_IA_FCPH3 = 3,
75 VDS_IA_MAC = 4,
76 VDS_IA_SCSI = 5
77 } VDS_INTERCONNECT_ADDRESS_TYPE;
78
79 typedef struct _VDS_INTERCONNECT {
80 VDS_INTERCONNECT_ADDRESS_TYPE m_addressType;
81 ULONG m_cbPort;
82 [size_is(m_cbPort)] BYTE *m_pbPort;
83 ULONG m_cbAddress;
84 [size_is(m_cbAddress)] BYTE *m_pbAddress;
85 } VDS_INTERCONNECT;
86
87 typedef struct _VDS_LUN_INFORMATION {
88 ULONG m_version;
89 BYTE m_DeviceType;
90 BYTE m_DeviceTypeModifier;
91 WINBOOL m_bCommandQueueing;
92 VDS_STORAGE_BUS_TYPE m_BusType;
93 [string] char *m_szVendorId;
94 [string] char *m_szProductId;
95 [string] char *m_szProductRevision;
96 [string] char *m_szSerialNumber;
97 GUID m_diskSignature;
98 VDS_STORAGE_DEVICE_ID_DESCRIPTOR m_deviceIdDescriptor;
99 ULONG m_cInterconnects;
100 [size_is(m_cInterconnects)] VDS_INTERCONNECT *m_rgInterconnects;
101 } VDS_LUN_INFORMATION;
102
103 const ULONG VER_VDS_LUN_INFORMATION = 1;
104
105 cpp_quote("#endif /* WINAPI_PARTITION_DESKTOP */")