This file is indexed.

/usr/i686-w64-mingw32/include/vds.h is in mingw-w64-i686-dev 2.0.3-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   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
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
/**
 * This file has no copyright assigned and is placed in the Public Domain.
 * This file is part of the w64 mingw-runtime package.
 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
 */
#ifndef _INC_VDS
#define _INC_VDS

#if (_WIN32_WINNT >= 0x0600)
#include <diskguid.h>
#include <winioctl.h>

#ifdef __cplusplus
extern "C" {
#endif

#define GPT_PARTITION_NAME_LENGTH 36

  typedef GUID VDS_OBJECT_ID;
  typedef UINT64 VDS_PATH_ID;

  typedef enum _VDS_PARTITION_STYLE {
    VDS_PST_UNKNOWN   = 0,
    VDS_PST_MBR       = 1,
    VDS_PST_GPT       = 2 
  } VDS_PARTITION_STYLE;

  typedef enum tag_VDS_PARTITION_STYLE {
    VDS_PARTITION_STYLE_MBR,
    VDS_PARTITION_STYLE_GPT,
    VDS_PARTITION_STYLE_RAW 
  } __VDS_PARTITION_STYLE;

  typedef enum _VDS_ASYNC_OUTPUT_TYPE {
    VDS_ASYNCOUT_UNKNOWN             = 0,
    VDS_ASYNCOUT_CREATEVOLUME        = 1,
    VDS_ASYNCOUT_EXTENDVOLUME        = 2,
    VDS_ASYNCOUT_SHRINKVOLUME        = 3,
    VDS_ASYNCOUT_ADDVOLUMEPLEX       = 4,
    VDS_ASYNCOUT_BREAKVOLUMEPLEX     = 5,
    VDS_ASYNCOUT_REMOVEVOLUMEPLEX    = 6,
    VDS_ASYNCOUT_REPAIRVOLUMEPLEX    = 7,
    VDS_ASYNCOUT_RECOVERPACK         = 8,
    VDS_ASYNCOUT_REPLACEDISK         = 9,
    VDS_ASYNCOUT_CREATEPARTITION     = 10,
    VDS_ASYNCOUT_CLEAN               = 11,
    VDS_ASYNCOUT_CREATELUN           = 50,
    VDS_ASYNCOUT_ADDLUNPLEX          = 52,
    VDS_ASYNCOUT_REMOVELUNPLEX       = 53,
    VDS_ASYNCOUT_EXTENDLUN           = 54,
    VDS_ASYNCOUT_SHRINKLUN           = 55,
    VDS_ASYNCOUT_RECOVERLUN          = 56,
    VDS_ASYNCOUT_LOGINTOTARGET       = 60,
    VDS_ASYNCOUT_LOGOUTFROMTARGET    = 61,
    VDS_ASYNCOUT_CREATETARGET        = 62,
    VDS_ASYNCOUT_CREATEPORTALGROUP   = 63,
    VDS_ASYNCOUT_DELETETARGET        = 64,
    VDS_ASYNCOUT_ADDPORTAL           = 65,
    VDS_ASYNCOUT_REMOVEPORTAL        = 66,
    VDS_ASYNCOUT_DELETEPORTALGROUP   = 67,
    VDS_ASYNCOUT_FORMAT              = 101,
    VDS_ASYNCOUT_CREATE_VDISK        = 200,
    VDS_ASYNCOUT_ATTACH_VDISK        = 201,
    VDS_ASYNCOUT_COMPACT_VDISK       = 202,
    VDS_ASYNCOUT_MERGE_VDISK         = 203,
    VDS_ASYNCOUT_EXPAND_VDISK        = 204 
  } VDS_ASYNC_OUTPUT_TYPE;

  typedef enum _VDS_HEALTH {
    VDS_H_UNKNOWN                     = 0,
    VDS_H_HEALTHY                     = 1,
    VDS_H_REBUILDING                  = 2,
    VDS_H_STALE                       = 3,
    VDS_H_FAILING                     = 4,
    VDS_H_FAILING_REDUNDANCY          = 5,
    VDS_H_FAILED_REDUNDANCY           = 6,
    VDS_H_FAILED_REDUNDANCY_FAILING   = 7,
    VDS_H_FAILED                      = 8,
    VDS_H_REPLACED                    = 9,
    VDS_H_PENDING_FAILURE             = 10,
    VDS_H_DEGRADED                    = 11 
  } VDS_HEALTH;

  typedef enum _VDS_CONTROLLER_STATUS {
    VDS_CS_UNKNOWN     = 0,
    VDS_CS_ONLINE      = 1,
    VDS_CS_NOT_READY   = 2,
    VDS_CS_OFFLINE     = 4,
    VDS_CS_FAILED      = 5,
    VDS_CS_REMOVED     = 8 
  } VDS_CONTROLLER_STATUS;

  typedef enum _VDS_DISK_EXTENT_TYPE {
    VDS_DET_UNKNOWN    = 0,
    VDS_DET_FREE       = 1,
    VDS_DET_DATA       = 2,
    VDS_DET_OEM        = 3,
    VDS_DET_ESP        = 4,
    VDS_DET_MSR        = 5,
    VDS_DET_LDM        = 6,
    VDS_DET_CLUSTER    = 7,
    VDS_DET_UNUSABLE   = 0x7FFF 
  } VDS_DISK_EXTENT_TYPE;

  typedef enum _VDS_DISK_FLAG {
    VDS_DF_AUDIO_CD               = 0x1,
    VDS_DF_HOTSPARE               = 0x2,
    VDS_DF_RESERVE_CAPABLE        = 0x4,
    VDS_DF_MASKED                 = 0x8,
    VDS_DF_STYLE_CONVERTIBLE      = 0x10,
    VDS_DF_CLUSTERED              = 0x20,
    VDS_DF_READ_ONLY              = 0x40,
    VDS_DF_SYSTEM_DISK            = 0x80,
    VDS_DF_BOOT_DISK              = 0x100,
    VDS_DF_PAGEFILE_DISK          = 0x200,
    VDS_DF_HIBERNATIONFILE_DISK   = 0x400,
    VDS_DF_CRASHDUMP_DISK         = 0x800,
    VDS_DF_HAS_ARC_PATH           = 0x1000,
    VDS_DF_DYNAMIC                = 0x2000,
    VDS_DF_BOOT_FROM_DISK         = 0x4000,
    VDS_DF_CURRENT_READ_ONLY      = 0x8000 
  } VDS_DISK_FLAG;

  typedef enum _VDS_NOTIFICATION_TARGET_TYPE {
    VDS_NTT_UNKNOWN        = 0,
    VDS_NTT_PACK           = 10,
    VDS_NTT_VOLUME         = 11,
    VDS_NTT_DISK           = 13,
    VDS_NTT_PARTITION      = 60,
    VDS_NTT_DRIVE_LETTER   = 61,
    VDS_NTT_FILE_SYSTEM    = 62,
    VDS_NTT_MOUNT_POINT    = 63,
    VDS_NTT_SUB_SYSTEM     = 30,
    VDS_NTT_CONTROLLER     = 31,
    VDS_NTT_DRIVE          = 32,
    VDS_NTT_LUN            = 33,
    VDS_NTT_PORT           = 35,
    VDS_NTT_PORTAL         = 36,
    VDS_NTT_TARGET         = 37,
    VDS_NTT_PORTAL_GROUP   = 38,
    VDS_NTT_SERVICE        = 200 
  } VDS_NOTIFICATION_TARGET_TYPE;

  typedef enum _VDS_OBJECT_TYPE {
    VDS_OT_UNKNOWN        = 0,
    VDS_OT_PROVIDER       = 1,
    VDS_OT_PACK           = 10,
    VDS_OT_VOLUME         = 11,
    VDS_OT_VOLUME_PLEX    = 12,
    VDS_OT_DISK           = 13,
    VDS_OT_SUB_SYSTEM     = 30,
    VDS_OT_CONTROLLER     = 31,
    VDS_OT_DRIVE          = 32,
    VDS_OT_LUN            = 33,
    VDS_OT_LUN_PLEX       = 34,
    VDS_OT_PORT           = 35,
    VDS_OT_PORTAL         = 36,
    VDS_OT_TARGET         = 37,
    VDS_OT_PORTAL_GROUP   = 38,
    VDS_OT_STORAGE_POOL   = 39,
    VDS_OT_HBAPORT        = 90,
    VDS_OT_INIT_ADAPTER   = 91,
    VDS_OT_INIT_PORTAL    = 92,
    VDS_OT_ASYNC          = 100,
    VDS_OT_ENUM           = 101,
    VDS_OT_VDISK          = 200,
    VDS_OT_OPEN_VDISK     = 201 
  } VDS_OBJECT_TYPE;

  typedef enum _VDS_STORAGE_BUS_TYPE {
    VDSBusTypeUnknown = 0x00,
    VDSBusTypeScsi = 0x01,
    VDSBusTypeAtapi = 0x02,
    VDSBusTypeAta = 0x03,
    VDSBusType1394 = 0x04,
    VDSBusTypeSsa = 0x05,
    VDSBusTypeFibre = 0x06,
    VDSBusTypeUsb = 0x07,
    VDSBusTypeRAID = 0x08,
    VDSBusTypeiScsi = 0x09,
    VDSBusTypeMaxReserved = 0x7F
  } VDS_STORAGE_BUS_TYPE;

  typedef enum _VDS_DISK_STATUS {
    VDS_DS_UNKNOWN     = 0,
    VDS_DS_ONLINE      = 1,
    VDS_DS_NOT_READY   = 2,
    VDS_DS_NO_MEDIA    = 3,
    VDS_DS_OFFLINE     = 4,
    VDS_DS_FAILED      = 5,
    VDS_DS_MISSING     = 6 
  } VDS_DISK_STATUS;

  typedef enum _VDS_DRIVE_FLAG {
    VDS_DRF_HOTSPARE           = 0x1,
    VDS_DRF_ASSIGNED           = 0x2,
    VDS_DRF_UNASSIGNED         = 0x4,
    VDS_DRF_HOTSPARE_IN_USE    = 0x8,
    VDS_DRF_HOTSPARE_STANDBY   = 0x10 
  } VDS_DRIVE_FLAG;

  typedef enum _VDS_DRIVE_LETTER_FLAG {
    VDS_DLF_NON_PERSISTENT   = 0x1 
  } VDS_DRIVE_LETTER_FLAG;

  typedef enum _VDS_DRIVE_STATUS {
    VDS_DRS_UNKNOWN     = 0,
    VDS_DRS_ONLINE      = 1,
    VDS_DRS_NOT_READY   = 2,
    VDS_DRS_OFFLINE     = 4,
    VDS_DRS_FAILED      = 5,
    VDS_DRS_REMOVED     = 8 
  } VDS_DRIVE_STATUS;

  typedef enum _VDS_FILE_SYSTEM_FLAG {
    VDS_FSF_SUPPORT_FORMAT            = 0x1,
    VDS_FSF_SUPPORT_QUICK_FORMAT      = 0x2,
    VDS_FSF_SUPPORT_COMPRESS          = 0x4,
    VDS_FSF_SUPPORT_SPECIFY_LABEL     = 0x8,
    VDS_FSF_SUPPORT_MOUNT_POINT       = 0x10,
    VDS_FSF_SUPPORT_REMOVABLE_MEDIA   = 0x20,
    VDS_FSF_SUPPORT_EXTEND            = 0x40,
    VDS_FSF_ALLOCATION_UNIT_512       = 0x10000,
    VDS_FSF_ALLOCATION_UNIT_1K        = 0x20000,
    VDS_FSF_ALLOCATION_UNIT_2K        = 0x40000,
    VDS_FSF_ALLOCATION_UNIT_4K        = 0x80000,
    VDS_FSF_ALLOCATION_UNIT_8K        = 0x100000,
    VDS_FSF_ALLOCATION_UNIT_16K       = 0x200000,
    VDS_FSF_ALLOCATION_UNIT_32K       = 0x400000,
    VDS_FSF_ALLOCATION_UNIT_64K       = 0x800000,
    VDS_FSF_ALLOCATION_UNIT_128K      = 0x1000000,
    VDS_FSF_ALLOCATION_UNIT_256K      = 0x2000000 
  } VDS_FILE_SYSTEM_FLAG;

  typedef enum _VDS_FILE_SYSTEM_FORMAT_SUPPORT_FLAG {
    VDS_FSS_DEFAULT             = 0x00000001,
    VDS_FSS_PREVIOUS_REVISION   = 0x00000002,
    VDS_FSS_RECOMMENDED         = 0x00000004 
  } VDS_FILE_SYSTEM_FORMAT_SUPPORT_FLAG;

  typedef enum _VDS_FILE_SYSTEM_PROP_FLAG {
    VDS_FPF_COMPRESSED   = 0x1 
  } VDS_FILE_SYSTEM_PROP_FLAG;

  typedef enum _VDS_FILE_SYSTEM_TYPE {
    VDS_FST_UNKNOWN   = 0,
    VDS_FST_RAW       = 1,
    VDS_FST_FAT       = 2,
    VDS_FST_FAT32     = 3,
    VDS_FST_NTFS      = 4,
    VDS_FST_CDFS      = 5,
    VDS_FST_UDF       = 6,
    VDS_FST_EXFAT     = 7 
  } VDS_FILE_SYSTEM_TYPE;

  typedef enum _VDS_HBAPORT_SPEED_FLAG {
    VDS_HSF_UNKNOWN          = 0,
    VDS_HSF_1GBIT            = 0x1,
    VDS_HSF_2GBIT            = 0x2,
    VDS_HSF_10GBIT           = 0x4,
    VDS_HSF_4GBIT            = 0x8,
    VDS_HSF_NOT_NEGOTIATED   = 0x8000 
  } VDS_HBAPORT_SPEED_FLAG;

  typedef enum _VDS_HBAPORT_STATUS {
    VDS_HPS_UNKNOWN       = 1,
    VDS_HPS_ONLINE        = 2,
    VDS_HPS_OFFLINE       = 3,
    VDS_HPS_BYPASSED      = 4,
    VDS_HPS_DIAGNOSTICS   = 5,
    VDS_HPS_LINKDOWN      = 6,
    VDS_HPS_ERROR         = 7,
    VDS_HPS_LOOPBACK      = 8 
  } VDS_HBAPORT_STATUS;

  typedef enum _VDS_HBAPORT_TYPE {
    VDS_HPT_UNKNOWN      = 1,
    VDS_HPT_OTHER        = 2,
    VDS_HPT_NOTPRESENT   = 3,
    VDS_HPT_NPORT        = 5,
    VDS_HPT_NLPORT       = 6,
    VDS_HPT_FLPORT       = 7,
    VDS_HPT_FPORT        = 8,
    VDS_HPT_EPORT        = 9,
    VDS_HPT_GPORT        = 10,
    VDS_HPT_LPORT        = 20,
    VDS_HPT_PTP          = 21 
  } VDS_HBAPORT_TYPE;

  typedef enum _VDS_HWPROVIDER_TYPE {
    VDS_HWT_UNKNOWN         = 0,
    VDS_HWT_PCI_RAID        = 1,
    VDS_HWT_FIBRE_CHANNEL   = 2,
    VDS_HWT_ISCSI           = 3,
    VDS_HWT_SAS             = 4,
    VDS_HWT_HYBRID          = 5 
  } VDS_HWPROVIDER_TYPE;

  typedef enum _VDS_INTERCONNECT_ADDRESS_TYPE {
    VDS_IA_UNKNOWN = 0,
    VDS_IA_FCFS = 1,
    VDS_IA_FCPH = 2,
    VDS_IA_FCPH3 = 3,
    VDS_IA_MAC = 4,
    VDS_IA_SCSI = 5
  } VDS_INTERCONNECT_ADDRESS_TYPE;

  typedef enum VDS_IPADDRESS_TYPE {
    VDS_IPT_TEXT    = 0,
    VDS_IPT_IPV4    = 1,
    VDS_IPT_IPV6    = 2,
    VDS_IPT_EMPTY   = 3 
  } VDS_IPADDRESS_TYPE;

  typedef enum _VDS_ISCSI_AUTH_TYPE {
    VDS_IAT_NONE          = 0,
    VDS_IAT_CHAP          = 1,
    VDS_IAT_MUTUAL_CHAP   = 2 
  } VDS_ISCSI_AUTH_TYPE;

  typedef enum _VDS_ISCSI_LOGIN_FLAG {
    VDS_ILF_REQUIRE_IPSEC       = 0x1,
    VDS_ILF_MULTIPATH_ENABLED   = 0x2 
  } VDS_ISCSI_LOGIN_FLAG;

  typedef enum _VDS_ISCSI_LOGIN_TYPE {
    VDS_ILT_MANUAL       = 0,
    VDS_ILT_PERSISTENT   = 1,
    VDS_ILT_BOOT         = 2 
  } VDS_ISCSI_LOGIN_TYPE;

  typedef enum _VDS_ISCSI_PORTAL_STATUS {
    VDS_IPS_UNKNOWN     = 0,
    VDS_IPS_ONLINE      = 1,
    VDS_IPS_NOT_READY   = 2,
    VDS_IPS_OFFLINE     = 4,
    VDS_IPS_FAILED      = 5 
  } VDS_ISCSI_PORTAL_STATUS;

  typedef enum _VDS_LOADBALANCE_POLICY_ENUM {
    VDS_LBP_UNKNOWN                   = 0,
    VDS_LBP_FAILOVER                  = 1,
    VDS_LBP_ROUND_ROBIN               = 2,
    VDS_LBP_ROUND_ROBIN_WITH_SUBSET   = 3,
    VDS_LBP_DYN_LEAST_QUEUE_DEPTH     = 4,
    VDS_LBP_WEIGHTED_PATHS            = 5,
    VDS_LBP_LEAST_BLOCKS              = 6,
    VDS_LBP_VENDOR_SPECIFIC           = 7 
  } VDS_LOADBALANCE_POLICY_ENUM;

  typedef enum _VDS_LUN_FLAG {
    VDS_LF_LBN_REMAP_ENABLED               = 0x01,
    VDS_LF_READ_BACK_VERIFY_ENABLED        = 0x02,
    VDS_LF_WRITE_THROUGH_CACHING_ENABLED   = 0x04,
    VDS_LF_HARDWARE_CHECKSUM_ENABLED       = 0x08,
    VDS_LF_READ_CACHE_ENABLED              = 0x10,
    VDS_LF_WRITE_CACHE_ENABLED             = 0x20,
    VDS_LF_MEDIA_SCAN_ENABLED              = 0x40,
    VDS_LF_CONSISTENCY_CHECK_ENABLED       = 0x80,
    VDS_LF_SNAPSHOT                        = 0x100 
  } VDS_LUN_FLAG;

  typedef enum _VDS_LUN_PLEX_FLAG  {
    VDS_LPF_LBN_REMAP_ENABLED   = 0x1 
  } VDS_LUN_PLEX_FLAG;

  typedef enum _VDS_TRANSITION_STATE {
    VDS_TS_UNKNOWN       = 0,
    VDS_TS_STABLE        = 1,
    VDS_TS_EXTENDING     = 2,
    VDS_TS_SHRINKING     = 3,
    VDS_TS_RECONFIGING   = 4,
    VDS_TS_RESTRIPING    = 8 
  } VDS_TRANSITION_STATE;

  typedef enum _VDS_LUN_PLEX_STATUS {
    VDS_LPS_UNKNOWN     = 0,
    VDS_LPS_ONLINE      = 1,
    VDS_LPS_NOT_READY   = 2,
    VDS_LPS_OFFLINE     = 4,
    VDS_LPS_FAILED      = 5 
  } VDS_LUN_PLEX_STATUS;

  typedef enum _VDS_LUN_PLEX_TYPE {
    VDS_LPT_UNKNOWN   = 0,
    VDS_LPT_SIMPLE    = 10,
    VDS_LPT_SPAN      = 11,
    VDS_LPT_STRIPE    = 12,
    VDS_LPT_PARITY    = 14,
    VDS_LPT_RAID2     = 15,
    VDS_LPT_RAID3     = 16,
    VDS_LPT_RAID4     = 17,
    VDS_LPT_RAID5     = 18,
    VDS_LPT_RAID6     = 19,
    VDS_LPT_RAID03    = 21,
    VDS_LPT_RAID05    = 22,
    VDS_LPT_RAID10    = 23,
    VDS_LPT_RAID15    = 24,
    VDS_LPT_RAID30    = 25,
    VDS_LPT_RAID50    = 26,
    VDS_LPT_RAID53    = 28,
    VDS_LPT_RAID60    = 29 
  } VDS_LUN_PLEX_TYPE;

  typedef enum _VDS_LUN_STATUS {
    VDS_LS_UNKNOWN     = 0,
    VDS_LS_ONLINE      = 1,
    VDS_LS_NOT_READY   = 2,
    VDS_LS_OFFLINE     = 4,
    VDS_LS_FAILED      = 5 
  } VDS_LUN_STATUS;

  typedef enum _VDS_LUN_TYPE {
    VDS_LT_UNKNOWN              = 0,
    VDS_LT_DEFAULT              = 1,
    VDS_LT_FAULT_TOLERANT       = 2,
    VDS_LT_NON_FAULT_TOLERANT   = 3,
    VDS_LT_SIMPLE               = 10,
    VDS_LT_SPAN                 = 11,
    VDS_LT_STRIPE               = 12,
    VDS_LT_MIRROR               = 13,
    VDS_LT_PARITY               = 14,
    VDS_LT_RAID2                = 15,
    VDS_LT_RAID3                = 16,
    VDS_LT_RAID4                = 17,
    VDS_LT_RAID5                = 18,
    VDS_LT_RAID6                = 19,
    VDS_LT_RAID01               = 20,
    VDS_LT_RAID03               = 21,
    VDS_LT_RAID05               = 22,
    VDS_LT_RAID10               = 23,
    VDS_LT_RAID15               = 24,
    VDS_LT_RAID30               = 25,
    VDS_LT_RAID50               = 26,
    VDS_LT_RAID51               = 27,
    VDS_LT_RAID53               = 28,
    VDS_LT_RAID60               = 29,
    VDS_LT_RAID61               = 30 
  } VDS_LUN_TYPE;

  typedef enum _VDS_MAINTENANCE_OPERATION {
    BlinkLight   = 1,
    BeepAlarm    = 2,
    SpinDown     = 3,
    SpinUp       = 4,
    Ping         = 5 
  } VDS_MAINTENANCE_OPERATION;

  typedef enum _VDS_PACK_FLAG {
    VDS_PKF_FOREIGN        = 0x1,
    VDS_PKF_NOQUORUM       = 0x2,
    VDS_PKF_POLICY         = 0x4,
    VDS_PKF_CORRUPTED      = 0x8,
    VDS_PKF_ONLINE_ERROR   = 0x10 
  } VDS_PACK_FLAG;

  typedef enum _VDS_PACK_STATUS {
    VDS_PS_UNKNOWN   = 0,
    VDS_PS_ONLINE    = 1,
    VDS_PS_OFFLINE   = 4 
  } VDS_PACK_STATUS;

  typedef enum _VDS_PARTITION_FLAG {
    VDS_PTF_SYSTEM   = 0x1 
  } VDS_PARTITION_FLAG;

  typedef enum _VDS_PATH_STATUS {
    VDS_MPS_UNKNOWN   = 0,
    VDS_MPS_ONLINE    = 1,
    VDS_MPS_FAILED    = 5,
    VDS_MPS_STANDBY   = 7 
  } VDS_PATH_STATUS;

  typedef enum _VDS_PORT_STATUS {
    VDS_PRS_UNKNOWN     = 0,
    VDS_PRS_ONLINE      = 1,
    VDS_PRS_NOT_READY   = 2,
    VDS_PRS_OFFLINE     = 4,
    VDS_PRS_FAILED      = 5,
    VDS_PRS_REMOVED     = 8 
  } VDS_PORT_STATUS;

  typedef enum _VDS_PROVIDER_FLAG {
    VDS_PF_DYNAMIC                           = 0x00000001,
    VDS_PF_INTERNAL_HARDWARE_PROVIDER        = 0x00000002,
    VDS_PF_ONE_DISK_ONLY_PER_PACK            = 0x00000004,
    VDS_PF_ONE_PACK_ONLINE_ONLY              = 0x00000008,
    VDS_PF_VOLUME_SPACE_MUST_BE_CONTIGUOUS   = 0x00000010,
    VDS_PF_SUPPORT_DYNAMIC                   = 0x80000000,
    VDS_PF_SUPPORT_FAULT_TOLERANT            = 0x40000000,
    VDS_PF_SUPPORT_DYNAMIC_1394              = 0x20000000,
    VDS_PF_SUPPORT_MIRROR                    = 0x00000020,
    VDS_PF_SUPPORT_RAID5                     = 0x00000040 
  } VDS_PROVIDER_FLAG;

  typedef enum _VDS_PROVIDER_LBSUPPORT_FLAG {
    VDS_LBF_FAILOVER                  = 0x1,
    VDS_LBF_ROUND_ROBIN               = 0x2,
    VDS_LBF_ROUND_ROBIN_WITH_SUBSET   = 0x4,
    VDS_LBF_DYN_LEAST_QUEUE_DEPTH     = 0x8,
    VDS_LBF_WEIGHTED_PATHS            = 0x10,
    VDS_LBF_LEAST_BLOCKS              = 0x20,
    VDS_LBF_VENDOR_SPECIFIC           = 0x40 
  } VDS_PROVIDER_LBSUPPORT_FLAG;

  typedef enum _VDS_PROVIDER_TYPE {
    VDS_PT_UNKNOWN       = 0,
    VDS_PT_SOFTWARE      = 1,
    VDS_PT_HARDWARE      = 2,
    VDS_PT_VIRTUALDISK   = 3,
    VDS_PT_MAX           = 4 
  } VDS_PROVIDER_TYPE;

  typedef enum _VDS_QUERY_PROVIDER_FLAG {
    VDS_QUERY_SOFTWARE_PROVIDERS   = 0x1,
    VDS_QUERY_HARDWARE_PROVIDERS   = 0x2 
  } VDS_QUERY_PROVIDER_FLAG;

  typedef enum _VDS_SAN_POLICY {
    VDS_SP_UNKNOWN          = 0x0,
    VDS_SP_ONLINE           = 0x1,
    VDS_SP_OFFLINE_SHARED   = 0x2,
    VDS_SP_OFFLINE          = 0x3 
  } VDS_SAN_POLICY;

  typedef enum _VDS_SERVICE_FLAG {
    VDS_SVF_SUPPORT_DYNAMIC              = 0x1L,
    VDS_SVF_SUPPORT_FAULT_TOLERANT       = 0x2L,
    VDS_SVF_SUPPORT_GPT                  = 0x4L,
    VDS_SVF_SUPPORT_DYNAMIC_1394         = 0x8L,
    VDS_SVF_CLUSTER_SERVICE_CONFIGURED   = 0x10L,
    VDS_SVF_AUTO_MOUNT_OFF               = 0x20L,
    VDS_SVF_OS_UNINSTALL_VALID           = 0x40L,
    VDS_SVF_EFI                          = 0x80L,
    VDS_SVF_SUPPORT_MIRROR               = 0x100L,
    VDS_SVF_SUPPORT_RAID5                = 0x200L 
  } VDS_SERVICE_FLAG;

  typedef enum _VDS_STORAGE_IDENTIFIER_CODE_SET {
    VDSStorageIdCodeSetReserved = 0,
    VDSStorageIdCodeSetBinary = 1,
    VDSStorageIdCodeSetAscii = 2
  } VDS_STORAGE_IDENTIFIER_CODE_SET;

  typedef enum VDS_STORAGE_IDENTIFIER_TYPE {
    VDSStorageIdTypeVendorSpecific = 0,
    VDSStorageIdTypeVendorId = 1,
    VDSStorageIdTypeEUI64 = 2,
    VDSStorageIdTypeFCPHName = 3,
    VDSStorageIdTypeSCSINameString = 8
  } VDS_STORAGE_IDENTIFIER_TYPE;

  typedef enum _VDS_SUB_SYSTEM_FLAG {
    VDS_SF_LUN_MASKING_CAPABLE                = 0x1,
    VDS_SF_LUN_PLEXING_CAPABLE                = 0x2,
    VDS_SF_LUN_REMAPPING_CAPABLE              = 0x4,
    VDS_SF_DRIVE_EXTENT_CAPABLE               = 0x8,
    VDS_SF_HARDWARE_CHECKSUM_CAPABLE          = 0x10,
    VDS_SF_RADIUS_CAPABLE                     = 0x20,
    VDS_SF_READ_BACK_VERIFY_CAPABLE           = 0x40,
    VDS_SF_WRITE_THROUGH_CACHING_CAPABLE      = 0x80,
    VDS_SF_SUPPORTS_FAULT_TOLERANT_LUNS       = 0x200,
    VDS_SF_SUPPORTS_NON_FAULT_TOLERANT_LUNS   = 0x400,
    VDS_SF_SUPPORTS_SIMPLE_LUNS               = 0x800,
    VDS_SF_SUPPORTS_SPAN_LUNS                 = 0x1000,
    VDS_SF_SUPPORTS_STRIPE_LUNS               = 0x2000,
    VDS_SF_SUPPORTS_MIRROR_LUNS               = 0x4000,
    VDS_SF_SUPPORTS_PARITY_LUNS               = 0x8000,
    VDS_SF_SUPPORTS_AUTH_CHAP                 = 0x10000,
    VDS_SF_SUPPORTS_AUTH_MUTUAL_CHAP          = 0x20000,
    VDS_SF_SUPPORTS_SIMPLE_TARGET_CONFIG      = 0x40000,
    VDS_SF_SUPPORTS_LUN_NUMBER                = 0x80000,
    VDS_SF_SUPPORTS_MIRRORED_CACHE            = 0x100000,
    VDS_SF_READ_CACHING_CAPABLE               = 0x200000,
    VDS_SF_WRITE_CACHING_CAPABLE              = 0x400000,
    VDS_SF_MEDIA_SCAN_CAPABLE                 = 0x800000,
    VDS_SF_CONSISTENCY_CHECK_CAPABLE          = 0x1000000 
  } VDS_SUB_SYSTEM_FLAG;

  typedef enum _VDS_SUB_SYSTEM_STATUS {
    VDS_SSS_UNKNOWN             = 0,
    VDS_SSS_ONLINE              = 1,
    VDS_SSS_NOT_READY           = 2,
    VDS_SSS_OFFLINE             = 4,
    VDS_SSS_FAILED              = 5,
    VDS_SSS_PARTIALLY_MANAGED   = 9 
  } VDS_SUB_SYSTEM_STATUS;

  typedef enum _VDS_VERSION_SUPPORT_FLAG {
    VDS_VSF_1_0   = 0x1,
    VDS_VSF_1_1   = 0x2,
    VDS_VSF_2_0   = 0x4,
    VDS_VSF_2_1   = 0x8,
    VDS_VSF_3_0   = 0x10 
  } VDS_VERSION_SUPPORT_FLAG;

  typedef enum _VDS_VOLUME_FLAG {
    VDS_VF_SYSTEM_VOLUME                  = 0x1,
    VDS_VF_BOOT_VOLUME                    = 0x2,
    VDS_VF_ACTIVE                         = 0x4,
    VDS_VF_READONLY                       = 0x8,
    VDS_VF_HIDDEN                         = 0x10,
    VDS_VF_CAN_EXTEND                     = 0x20,
    VDS_VF_CAN_SHRINK                     = 0x40,
    VDS_VF_PAGEFILE                       = 0x80,
    VDS_VF_HIBERNATION                    = 0x100,
    VDS_VF_CRASHDUMP                      = 0x200,
    VDS_VF_INSTALLABLE                    = 0x400,
    VDS_VF_LBN_REMAP_ENABLED              = 0x800,
    VDS_VF_FORMATTING                     = 0x1000,
    VDS_VF_NOT_FORMATTABLE                = 0x2000,
    VDS_VF_NTFS_NOT_SUPPORTED             = 0x4000,
    VDS_VF_FAT32_NOT_SUPPORTED            = 0x8000,
    VDS_VF_FAT_NOT_SUPPORTED              = 0x10000,
    VDS_VF_NO_DEFAULT_DRIVE_LETTER        = 0x20000,
    VDS_VF_PERMANENTLY_DISMOUNTED         = 0x40000,
    VDS_VF_PERMANENT_DISMOUNT_SUPPORTED   = 0x80000,
    VDS_VF_SHADOW_COPY                    = 0x100000,
    VDS_VF_FVE_ENABLED                    = 0x200000,
    VDS_VF_DIRTY                          = 0x400000 
  } VDS_VOLUME_FLAG;

  typedef enum _VDS_VOLUME_PLEX_STATUS {
    VDS_VPS_UNKNOWN    = 0,
    VDS_VPS_ONLINE     = 1,
    VDS_VPS_NO_MEDIA   = 3,
    VDS_VPS_FAILED     = 5 
  } VDS_VOLUME_PLEX_STATUS;

  typedef enum _VDS_VOLUME_PLEX_TYPE {
    VDS_VPT_UNKNOWN   = 0,
    VDS_VPT_SIMPLE    = 10,
    VDS_VPT_SPAN      = 11,
    VDS_VPT_STRIPE    = 12,
    VDS_VPT_PARITY    = 14 
  } VDS_VOLUME_PLEX_TYPE;

  typedef enum _VDS_VOLUME_STATUS {
    VDS_VS_UNKNOWN    = 0,
    VDS_VS_ONLINE     = 1,
    VDS_VS_NO_MEDIA   = 3,
    VDS_VS_FAILED     = 5,
    VDS_VS_OFFLINE    = 4 
  } VDS_VOLUME_STATUS;

  typedef enum _VDS_VOLUME_TYPE {
    VDS_VT_UNKNOWN   = 0,
    VDS_VT_SIMPLE    = 10,
    VDS_VT_SPAN      = 11,
    VDS_VT_STRIPE    = 12,
    VDS_VT_MIRROR    = 13,
    VDS_VT_PARITY    = 14 
  } VDS_VOLUME_TYPE;

  typedef struct _VDS_PARTITION_INFO_GPT {
    GUID      partitionType;
    GUID      partitionId;
    ULONGLONG attributes;
    WCHAR     name[GPT_PARTITION_NAME_LENGTH];
  } VDS_PARTITION_INFO_GPT;

  typedef struct _CHANGE_ATTRIBUTES_PARAMETERS {
    VDS_PARTITION_STYLE style;
    __C89_NAMELESS union {
      struct {
	BOOLEAN bootIndicator;
      } MbrPartInfo;
      struct {
	ULONGLONG attributes;
      } GptPartInfo;
    };
  } CHANGE_ATTRIBUTES_PARAMETERS;

  typedef struct _CHANGE_PARTITION_TYPE_PARAMETERS {
    VDS_PARTITION_STYLE style;
    __C89_NAMELESS union {
      struct {
        BYTE partitionType;
      } MbrPartInfo;
      struct {
        GUID partitionType;
      } GptPartInfo;
    } ;
  } CHANGE_PARTITION_TYPE_PARAMETERS, *PCHANGE_PARTITION_TYPE_PARAMETERS;


  typedef struct _CREATE_PARTITION_PARAMETERS {
    VDS_PARTITION_STYLE style;
    __C89_NAMELESS union {
      struct {
	BYTE    partitionType;
	BOOLEAN bootIndicator;
      } MbrPartInfo;
      struct {
	GUID      partitionType;
	GUID      partitionId;
	ULONGLONG attributes;
	WCHAR     name[GPT_PARTITION_NAME_LENGTH];
      } GptPartInfo;
    };
  } CREATE_PARTITION_PARAMETERS;

  typedef struct _VDS_ASYNC_OUTPUT {
    VDS_ASYNC_OUTPUT_TYPE type;
    /*[switch(type)] */__C89_NAMELESS union {
      /*[case(VDS_ASYNCOUT_CREATEPARTITION)]*/
      struct {
	ULONGLONG     ullOffset;
	VDS_OBJECT_ID volumeId;
      } cp;
      /*[case(VDS_ASYNCOUT_CREATEVOLUME)]*/
      struct {
	IUnknown *pVolumeUnk;
      } cv;
      /*[case(VDS_ASYNCOUT_BREAKVOLUMEPLEX)]*/
      struct {
	IUnknown *pVolumeUnk;
      } bvp;
      /*[case(VDS_ASYNCOUT_CREATELUN)]*/
      struct {
	IUnknown *pLunUnk;
      } cl;
      /*[case(VDS_ASYNCOUT_CREATETARGET)]*/
      struct {
	IUnknown *pTargetUnk;
      } ct;
      /*[case(VDS_ASYNCOUT_CREATEPORTALGROUP)]*/
      struct {
	IUnknown *pPortalGroupUnk;
      } cpg;
      /*[case(VDS_ASYNCOUT_CREATE_VDISK)]*/
      struct {
	IUnknown *pVDiskUnk;
      } cvd;
    };
  }  VDS_ASYNC_OUTPUT;

#define VDS_NF_CONTROLLER_ARRIVE 103
#define VDS_NF_CONTROLLER_DEPART 104
#define VDS_NF_CONTROLLER_MODIFY 350
#define VDS_NF_CONTROLLER_REMOVED 351

  typedef struct _VDS_CONTROLLER_NOTIFICATION {
    ULONG         ulEvent;
    VDS_OBJECT_ID controllerId;
  } VDS_CONTROLLER_NOTIFICATION;

  typedef struct _VDS_CONTROLLER_PROP {
    VDS_OBJECT_ID         id;
    LPWSTR                pwszFriendlyName;
    LPWSTR                pwszIdentification;
    VDS_CONTROLLER_STATUS status;
    VDS_HEALTH            health;
    SHORT                 sNumberOfPorts;
  } VDS_CONTROLLER_PROP;

  typedef struct _VDS_DISK_EXTENT {
    VDS_OBJECT_ID        diskId;
    VDS_DISK_EXTENT_TYPE type;
    ULONGLONG            ullOffset;
    ULONGLONG            ullSize;
    VDS_OBJECT_ID        volumeId;
    VDS_OBJECT_ID        plexId;
    ULONG                memberIdx;
  } VDS_DISK_EXTENT, *PVDS_DISK_EXTENT;

  typedef struct _VDS_DISK_NOTIFICATION {
    ULONG         ulEvent;
    VDS_OBJECT_ID diskId;
  } VDS_DISK_NOTIFICATION;

  typedef struct _VDS_PACK_NOTIFICATION {
    ULONG         ulEvent;
    VDS_OBJECT_ID packId;
  } VDS_PACK_NOTIFICATION;

  typedef struct _VDS_VOLUME_NOTIFICATION {
    ULONG         ulEvent;
    VDS_OBJECT_ID volumeId;
    VDS_OBJECT_ID plexId;
    ULONG         ulPercentCompleted;
  } VDS_VOLUME_NOTIFICATION;

  typedef struct _VDS_PARTITION_NOTIFICATION {
    ULONG         ulEvent;
    VDS_OBJECT_ID diskId;
    ULONGLONG     ullOffset;
  } VDS_PARTITION_NOTIFICATION;

  typedef struct _VDS_DRIVE_LETTER_NOTIFICATION {
    ULONG         ulEvent;
    WCHAR         wcLetter;
    VDS_OBJECT_ID volumeId;
  } VDS_DRIVE_LETTER_NOTIFICATION;

  typedef struct _VDS_FILE_SYSTEM_NOTIFICATION {
    ULONG         ulEvent;
    VDS_OBJECT_ID volumeId;
    DWORD         dwPercentCompleted;
  } VDS_FILE_SYSTEM_NOTIFICATION;

  typedef struct _VDS_MOUNT_POINT_NOTIFICATION {
    ULONG         ulEvent;
    VDS_OBJECT_ID volumeId;
  } VDS_MOUNT_POINT_NOTIFICATION;

  typedef struct _VDS_SUB_SYSTEM_NOTIFICATION {
    ULONG         ulEvent;
    VDS_OBJECT_ID subSystemId;
  } VDS_SUB_SYSTEM_NOTIFICATION;

  typedef struct _VDS_DRIVE_NOTIFICATION {
    ULONG         ulEvent;
    VDS_OBJECT_ID driveId;
  } VDS_DRIVE_NOTIFICATION;

  typedef struct _VDS_LUN_NOTIFICATION {
    ULONG         ulEvent;
    VDS_OBJECT_ID LunId;
  } VDS_LUN_NOTIFICATION;

  typedef struct _VDS_PORT_NOTIFICATION {
    ULONG         ulEvent;
    VDS_OBJECT_ID portId;
  } VDS_PORT_NOTIFICATION;

  typedef struct _VDS_PORTAL_NOTIFICATION {
    ULONG         ulEvent;
    VDS_OBJECT_ID portalId;
  } VDS_PORTAL_NOTIFICATION;

  typedef struct _VDS_TARGET_NOTIFICATION {
    ULONG         ulEvent;
    VDS_OBJECT_ID targetId;
  } VDS_TARGET_NOTIFICATION;

  typedef struct _VDS_PORTAL_GROUP_NOTIFICATION {
    ULONG         ulEvent;
    VDS_OBJECT_ID portalGroupId;
  } VDS_PORTAL_GROUP_NOTIFICATION;

  typedef struct _VDS_NOTIFICATION {
    VDS_NOTIFICATION_TARGET_TYPE objectType;
    __C89_NAMELESS union {
      VDS_PACK_NOTIFICATION         Pack;
      VDS_DISK_NOTIFICATION         Disk;
      VDS_VOLUME_NOTIFICATION       Volume;
      VDS_PARTITION_NOTIFICATION    Partition;
      VDS_DRIVE_LETTER_NOTIFICATION Letter;
      VDS_FILE_SYSTEM_NOTIFICATION  FileSystem;
      VDS_MOUNT_POINT_NOTIFICATION  MountPoint;
      VDS_SUB_SYSTEM_NOTIFICATION   SubSystem;
      VDS_CONTROLLER_NOTIFICATION   Controller;
      VDS_DRIVE_NOTIFICATION        Drive;
      VDS_LUN_NOTIFICATION          Lun;
      VDS_PORT_NOTIFICATION         Port;
      VDS_PORTAL_NOTIFICATION       Portal;
      VDS_TARGET_NOTIFICATION       Target;
      VDS_PORTAL_GROUP_NOTIFICATION PortalGroup;
    };
  } VDS_NOTIFICATION;

  typedef enum _VDS_LUN_RESERVE_MODE {
    VDS_LRM_NONE = 0x00000000,
    VDS_LRM_EXCLUSIVE_RW = 0x00000001,
    VDS_LRM_EXCLUSIVE_RO = 0x00000002,
    VDS_LRM_SHARED_RO = 0x00000003,
    VDS_LRM_SHARED_RW = 0x00000004
  } VDS_LUN_RESERVE_MODE;

  typedef struct _VDS_DISK_PROP {
    VDS_OBJECT_ID        id;
    VDS_DISK_STATUS      status;
    VDS_LUN_RESERVE_MODE ReserveMode;
    VDS_HEALTH           health;
    DWORD                dwDeviceType;
    DWORD                dwMediaType;
    ULONGLONG            ullSize;
    ULONG                ulBytesPerSector;
    ULONG                ulSectorsPerTrack;
    ULONG                ulTracksPerCylinder;
    ULONG                ulFlags;
    VDS_STORAGE_BUS_TYPE BusType;
    VDS_PARTITION_STYLE  PartitionStyle;
    __C89_NAMELESS union {
      DWORD dwSignature;
      GUID  DiskGuid;
    };
    LPWSTR               pwszDiskAddress;
    LPWSTR               pwszName;
    LPWSTR               pwszFriendlyName;
    LPWSTR               pwszAdaptorName;
    LPWSTR               pwszDevicePath;
  } VDS_DISK_PROP, *PVDS_DISK_PROP;

  typedef struct _VDS_DRIVE_EXTENT {
    VDS_OBJECT_ID id;
    VDS_OBJECT_ID LunId;
    ULONGLONG     ullSize;
    WINBOOL       bUsed;
  } VDS_DRIVE_EXTENT;

#define VDS_NF_DRIVE_LETTER_FREE 201
#define VDS_NF_DRIVE_LETTER_ASSIGN 202

  typedef struct _VDS_DRIVE_LETTER_PROP {
    WCHAR         wcLetter;
    VDS_OBJECT_ID volumeId;
    ULONG         ulFlags;
    WINBOOL       bUsed;
  } VDS_DRIVE_LETTER_PROP, *PVDS_DRIVE_LETTER_PROP;

#define VDS_NF_DRIVE_ARRIVE 105
#define VDS_NF_DRIVE_DEPART 106
#define VDS_NF_DRIVE_MODIFY 107
#define VDS_NF_DRIVE_REMOVED 354

  typedef struct _VDS_DRIVE_PROP {
    VDS_OBJECT_ID    id;
    ULONGLONG        ullSize;
    LPWSTR           pwszFriendlyName;
    LPWSTR           pwszIdentification;
    ULONG            ulFlags;
    VDS_DRIVE_STATUS status;
    VDS_HEALTH       health;
    SHORT            sInternalBusNumber;
    SHORT            sSlotNumber;
  } VDS_DRIVE_PROP;

  typedef struct _VDS_FILE_SYSTEM_FORMAT_SUPPORT_PROP {
    ULONG  ulFlags;
    USHORT usRevision;
    ULONG  ulDefaultUnitAllocationSize;
    ULONG  rgulAllowedUnitAllocationSizes;
    WCHAR  wszName;
  } VDS_FILE_SYSTEM_FORMAT_SUPPORT_PROP, *PVDS_FILE_SYSTEM_FORMAT_SUPPORT_PROP;

#define VDS_NF_FILE_SYSTEM_MODIFY 203
#define VDS_NF_FILE_SYSTEM_FORMAT_PROGRESS 204

  typedef struct _VDS_FILE_SYSTEM_PROP {
    VDS_FILE_SYSTEM_TYPE type;
    VDS_OBJECT_ID        volumeId;
    ULONG                ulFlags;
    ULONGLONG            ullTotalAllocationUnits;
    ULONGLONG            ullAvailableAllocationUnits;
    ULONG                ulAllocationUnitSize;
    LPWSTR               pwszLabel;
  } VDS_FILE_SYSTEM_PROP, *PVDS_FILE_SYSTEM_PROP;

#define MAX_FS_NAME_SIZE 8

  typedef struct _VDS_FILE_SYSTEM_TYPE_PROP {
    VDS_FILE_SYSTEM_TYPE type;
    WCHAR                wszName[MAX_FS_NAME_SIZE];
    ULONG                ulFlags;
    ULONG                ulCompressionFlags;
    ULONG                ulMaxLableLength;
    LPWSTR               pwszIllegalLabelCharSet;
  } VDS_FILE_SYSTEM_TYPE_PROP, *PVDS_FILE_SYSTEM_TYPE_PROP;

  typedef struct _VDS_WWN {
    UCHAR rguchWwn[8];
  } VDS_WWN;

  typedef struct _VDS_HBAPORT_PROP {
    VDS_OBJECT_ID      id;
    VDS_WWN            wwnNode;
    VDS_WWN            wwnPort;
    VDS_HBAPORT_TYPE   type;
    VDS_HBAPORT_STATUS status;
    ULONG              ulPortSpeed;
    ULONG              ulSupportedPortSpeed;
  } VDS_HBAPORT_PROP;

#define VDS_HINT_FASTCRASHRECOVERYREQUIRED   0x0000000000000001ULL
#define VDS_HINT_MOSTLYREADS                 0x0000000000000002ULL
#define VDS_HINT_OPTIMIZEFORSEQUENTIALREADS  0x0000000000000004ULL
#define VDS_HINT_OPTIMIZEFORSEQUENTIALWRITES 0x0000000000000008ULL
#define VDS_HINT_READBACKVERIFYENABLED       0x0000000000000010ULL
#define VDS_HINT_REMAPENABLED                0x0000000000000020ULL
#define VDS_HINT_WRITETHROUGHCACHINGENABLED  0x0000000000000040ULL
#define VDS_HINT_HARDWARECHECKSUMENABLED     0x0000000000000080ULL
#define VDS_HINT_ISYANKABLE                  0x0000000000000100ULL
#define VDS_HINT_ALLOCATEHOTSPARE            0x0000000000000200ULL
#define VDS_HINT_BUSTYPE                     0x0000000000000400ULL
#define VDS_HINT_USEMIRROREDCACHE            0x0000000000000800ULL
#define VDS_HINT_READCACHINGENABLED          0x0000000000001000ULL
#define VDS_HINT_WRITECACHINGENABLED         0x0000000000002000ULL
#define VDS_HINT_MEDIASCANENABLED            0x0000000000004000ULL
#define VDS_HINT_CONSISTENCYCHECKENABLED     0x0000000000008000ULL

  typedef struct _VDS_HINTS {
    ULONGLONG ullHintMask;
    ULONGLONG ullExpectedMaximumSize;
    ULONG     ulOptimalReadSize;
    ULONG     ulOptimalReadAlignment;
    ULONG     ulOptimalWriteSize;
    ULONG     ulOptimalWriteAlignment;
    ULONG     ulMaximumDriveCount;
    ULONG     ulStripeSize;
    WINBOOL   bFastCrashRecoveryRequired;
    WINBOOL   bMostlyReads;
    WINBOOL   bOptimizeForSequentialReads;
    WINBOOL   bOptimizeForSequentialWrites;
    WINBOOL   bRemapEnabled;
    WINBOOL   bReadBackVerifyEnabled;
    WINBOOL   bWriteThroughCachingEnabled;
    WINBOOL   bHardwareChecksumEnabled;
    WINBOOL   bIsYankable;
    SHORT     sRebuildPriority;
  } VDS_HINTS, *PVDS_HINTS;

  typedef struct _VDS_INPUT_DISK {
    VDS_OBJECT_ID diskId;
    ULONGLONG     ullSize;
    VDS_OBJECT_ID plexId;
    ULONG         memberIdx;
  } VDS_INPUT_DISK;

  typedef struct _VDS_IPADDRESS {
    VDS_IPADDRESS_TYPE type;
    ULONG              ipv4Address;
    UCHAR              ipv6Address[16];
    ULONG              ulIpv6FlowInfo;
    ULONG              ulIpv6ScopeId;
    WCHAR              wszTextAddress[256 + 1];
    ULONG              ulPort;
  } VDS_IPADDRESS;

  typedef struct _VDS_ISCSI_INITIATOR_ADAPTER_PROP {
    VDS_OBJECT_ID id;
    LPWSTR        pwszName;
  } VDS_ISCSI_INITIATOR_ADAPTER_PROP;

  typedef struct _VDS_ISCSI_INITIATOR_PORTAL_PROP {
    VDS_OBJECT_ID id;
    VDS_IPADDRESS address;
    ULONG         ulPortIndex;
  } VDS_ISCSI_INITIATOR_PORTAL_PROP;

  typedef struct _VDS_ISCSI_PORTAL_PROP {
    VDS_OBJECT_ID           id;
    VDS_IPADDRESS           address;
    VDS_ISCSI_PORTAL_STATUS status;
  } VDS_ISCSI_PORTAL_PROP;

  typedef USHORT VDS_ISCSI_PORTALGROUP_TAG;

  typedef struct _VDS_ISCSI_PORTALGROUP_PROP {
    VDS_OBJECT_ID             id;
    VDS_ISCSI_PORTALGROUP_TAG tag;
  } VDS_ISCSI_PORTALGROUP_PROP;

  typedef struct _VDS_ISCSI_SHARED_SECRET {
    UCHAR *pSharedSecret;
    ULONG ulSharedSecretSize;
  } VDS_ISCSI_SHARED_SECRET;

  typedef struct _VDS_ISCSI_TARGET_PROP {
    VDS_OBJECT_ID id;
    LPWSTR        pwszIscsiName;
    LPWSTR        pwszFriendlyName;
    WINBOOL       bChapEnabled;
  } VDS_ISCSI_TARGET_PROP;

  typedef struct _VDS_STORAGE_IDENTIFIER {
    VDS_STORAGE_IDENTIFIER_CODE_SET m_CodeSet;
    VDS_STORAGE_IDENTIFIER_TYPE m_Type;
    ULONG m_cbIdentifier;
    BYTE* m_rgbIdentifier;
  } VDS_STORAGE_IDENTIFIER;

  typedef struct _VDS_STORAGE_DEVICE_ID_DESCRIPTOR {
    ULONG m_version;
    ULONG m_cIdentifiers;
    VDS_STORAGE_IDENTIFIER* m_rgIdentifiers;
  } VDS_STORAGE_DEVICE_ID_DESCRIPTOR;

#define VDS_NF_LUN_ARRIVE 108
#define VDS_NF_LUN_DEPART 109
#define VDS_NF_LUN_MODIFY 110

  typedef struct _VDS_LUN_PLEX_PROP {
    VDS_OBJECT_ID        id;
    ULONGLONG            ullSize;
    VDS_LUN_PLEX_TYPE    type;
    VDS_LUN_PLEX_STATUS  status;
    VDS_HEALTH           health;
    VDS_TRANSITION_STATE TransitionState;
    ULONG                ulFlags;
    ULONG                ulStripeSize;
    SHORT                sRebuildPriority;
  } VDS_LUN_PLEX_PROP;

  typedef struct _VDS_LUN_PROP {
    VDS_OBJECT_ID        id;
    ULONGLONG            ullSize;
    LPWSTR               pwszFriendlyName;
    LPWSTR               pwszIdentification;
    LPWSTR               pwszUnmaskingList;
    ULONG                ulFlags;
    VDS_LUN_TYPE         type;
    VDS_LUN_STATUS       status;
    VDS_HEALTH           health;
    VDS_TRANSITION_STATE TransitionState;
    SHORT                sRebuildPriority;
  } VDS_LUN_PROP, *PVDS_LUN_PROP;

#define VDS_NF_MOUNT_POINTS_CHANGE 205

#define VDS_NF_PACK_ARRIVE 1
#define VDS_NF_PACK_DEPART 2
#define VDS_NF_PACK_MODIFY 3

  typedef struct _VDS_PACK_PROP {
    VDS_OBJECT_ID   id;
    LPWSTR          pwszName;
    VDS_PACK_STATUS status;
    ULONG           ulFlags;
  } VDS_PACK_PROP, *PVDS_PACK_PROP;

  typedef struct _VDS_PARTITION_INFO_MBR {
    BYTE    partitionType;
    BOOLEAN bootIndicator;
    BOOLEAN recognizedPartition;
    DWORD   hiddenSectors;
  } VDS_PARTITION_INFO_MBR;

#define VDS_NF_PARTITION_ARRIVE 11
#define VDS_NF_PARTITION_DEPART 12
#define VDS_NF_PARTITION_MODIFY 13

  typedef struct _VDS_PARTITION_PROP {
    VDS_PARTITION_STYLE PartitionStyle;
    ULONG               ulFlags;
    ULONG               ulPartitionNumber;
    ULONGLONG           ullOffset;
    ULONGLONG           ullSize;
    __C89_NAMELESS union {
      VDS_PARTITION_INFO_MBR Mbr;
      VDS_PARTITION_INFO_GPT Gpt;
    };
  } VDS_PARTITION_PROP;

  typedef struct _VDS_PATH_INFO {
    VDS_PATH_ID         pathId;
    VDS_HWPROVIDER_TYPE type;
    VDS_PATH_STATUS     status;
    __C89_NAMELESS union {
      VDS_OBJECT_ID controllerPortId;
      VDS_OBJECT_ID targetPortalId;
    };
    __C89_NAMELESS union {
      VDS_OBJECT_ID hbaPortId;
      VDS_OBJECT_ID initiatorAdapterId;
    };
    __C89_NAMELESS union {
      VDS_HBAPORT_PROP *pHbaPortProp;
      VDS_IPADDRESS    *pInitiatorPortalIpAddr;
    };
  } VDS_PATH_INFO;

  typedef struct _VDS_PATH_POLICY {
    VDS_PATH_ID pathId;
    BOOL        bPrimaryPath;
    ULONG       ulWeight;
  } VDS_PATH_POLICY;

#define VDS_NF_PORT_ARRIVE 121
#define VDS_NF_PORT_DEPART 122
#define VDS_NF_PORT_MODIFY 352
#define VDS_NF_PORT_REMOVED 353

  typedef struct _VDS_PORT_PROP {
    VDS_OBJECT_ID   id;
    LPWSTR          pwszFriendlyName;
    LPWSTR          pwszIdentification;
    VDS_PORT_STATUS status;
  } VDS_PORT_PROP;

#define VDS_NF_PORTAL_GROUP_ARRIVE 129
#define VDS_NF_PORTAL_GROUP_DEPART 130
#define VDS_NF_PORTAL_GROUP_MODIFY 131
#define VDS_NF_PORTAL_ARRIVE 123
#define VDS_NF_PORTAL_DEPART 124
#define VDS_NF_PORTAL_MODIFY 125

  typedef struct _VDS_PROVIDER_PROP {
    VDS_OBJECT_ID     id;
    LPWSTR            pwszName;
    GUID              guidVersionId;
    LPWSTR            pwszVersion;
    VDS_PROVIDER_TYPE type;
    ULONG             ulFlags;
    ULONG             ulStripeSizeFlags;
    SHORT             sRebuildPriority;
  } VDS_PROVIDER_PROP;

  typedef struct VDS_REPARSE_POINT_PROP {
    VDS_OBJECT_ID SourceVolumeId;
    LPWSTR        pwszPath;
  } VDS_REPARSE_POINT_PROP, *PVDS_REPARSE_POINT_PROP;

  typedef struct _VDS_SERVICE_PROP {
    LPWSTR pwszVersion;
    ULONG  ulFlags;
  } VDS_SERVICE_PROP;

#define VDS_NF_SUB_SYSTEM_ARRIVE 101
#define VDS_NF_SUB_SYSTEM_DEPART 102
#define VDS_NF_SUB_SYSTEM_MODIFY 151

  typedef struct _VDS_SUB_SYSTEM_PROP {
    VDS_OBJECT_ID         id;
    LPWSTR                pwszFriendlyName;
    LPWSTR                pwszIdentification;
    ULONG                 ulFlags;
    ULONG                 ulStripeSizeFlags;
    VDS_SUB_SYSTEM_STATUS status;
    VDS_HEALTH            health;
    SHORT                 sNumberOfInternalBuses;
    SHORT                 sMaxNumberOfSlotsEachBus;
    SHORT                 sMaxNumberOfControllers;
    SHORT                 sRebuildPriority;
  } VDS_SUB_SYSTEM_PROP;

#define VDS_NF_TARGET_ARRIVE 126
#define VDS_NF_TARGET_DEPART 127
#define VDS_NF_TARGET_MODIFY 128
#define VDS_NF_VOLUME_ARRIVE 4
#define VDS_NF_VOLUME_DEPART 5
#define VDS_NF_VOLUME_MODIFY 6
#define VDS_NF_VOLUME_REBUILDING 7

  typedef struct _VDS_VOLUME_PLEX_PROP {
    VDS_OBJECT_ID          id;
    VDS_VOLUME_PLEX_TYPE   type;
    VDS_VOLUME_PLEX_STATUS status;
    VDS_HEALTH             health;
    VDS_TRANSITION_STATE   TransitionState;
    ULONGLONG              ullSize;
    ULONG                  ulStripeSize;
    ULONG                  ulNumberOfMembers;
  } VDS_VOLUME_PLEX_PROP, *PVDS_VOLUME_PLEX_PROP;

  typedef struct _VDS_VOLUME_PROP {
    VDS_OBJECT_ID        id;
    VDS_VOLUME_TYPE      type;
    VDS_VOLUME_STATUS    status;
    VDS_HEALTH           health;
    VDS_TRANSITION_STATE TransitionState;
    ULONGLONG            ullSize;
    ULONG                ulFlags;
    VDS_FILE_SYSTEM_TYPE RecommendedFileSystemType;
    LPWSTR               pwszName;
  } VDS_VOLUME_PROP, *PVDS_VOLUME_PROP;

#ifdef __cplusplus
}
#endif

#endif /*(_WIN32_WINNT >= 0x0600)*/

#include <vdslun.h>

#if (_WIN32_WINNT >= 0x0601)
#ifdef __cplusplus
extern "C" {
#endif
typedef enum _VDS_DISK_OFFLINE_REASON {
  VDSDiskOfflineReasonNone            = 0,
  VDSDiskOfflineReasonPolicy          = 1,
  VDSDiskOfflineReasonRedundantPath   = 2,
  VDSDiskOfflineReasonSnapshot        = 3,
  VDSDiskOfflineReasonCollision       = 4 
} VDS_DISK_OFFLINE_REASON;

typedef enum _VDS_STORAGE_POOL_STATUS {
  VDS_SPS_UNKNOWN     = 0,
  VDS_SPS_ONLINE      = 1,
  VDS_SPS_NOT_READY   = 2,
  VDS_SPS_OFFLINE     = 4 
} VDS_STORAGE_POOL_STATUS;

typedef enum _VDS_SUB_SYSTEM_SUPPORTED_RAID_TYPE_FLAG {
  VDS_SF_SUPPORTS_RAID2_LUNS    = 0x1,
  VDS_SF_SUPPORTS_RAID3_LUNS    = 0x2,
  VDS_SF_SUPPORTS_RAID4_LUNS    = 0x4,
  VDS_SF_SUPPORTS_RAID5_LUNS    = 0x8,
  VDS_SF_SUPPORTS_RAID6_LUNS    = 0x10,
  VDS_SF_SUPPORTS_RAID01_LUNS   = 0x20,
  VDS_SF_SUPPORTS_RAID03_LUNS   = 0x40,
  VDS_SF_SUPPORTS_RAID05_LUNS   = 0x80,
  VDS_SF_SUPPORTS_RAID10_LUNS   = 0x100,
  VDS_SF_SUPPORTS_RAID15_LUNS   = 0x200,
  VDS_SF_SUPPORTS_RAID30_LUNS   = 0x400,
  VDS_SF_SUPPORTS_RAID50_LUNS   = 0x800,
  VDS_SF_SUPPORTS_RAID51_LUNS   = 0x1000,
  VDS_SF_SUPPORTS_RAID53_LUNS   = 0x2000,
  VDS_SF_SUPPORTS_RAID60_LUNS   = 0x4000,
  VDS_SF_SUPPORTS_RAID61_LUNS   = 0x8000 
} VDS_SUB_SYSTEM_SUPPORTED_RAID_TYPE_FLAG;

typedef enum VDS_FORMAT_OPTION_FLAGS {
  VDS_FSOF_NONE                 = 0x00000000,
  VDS_FSOF_FORCE                = 0x00000001,
  VDS_FSOF_QUICK                = 0x00000002,
  VDS_FSOF_COMPRESSION          = 0x00000004,
  VDS_FSOF_DUPLICATE_METADATA   = 0x00000008 
} VDS_FORMAT_OPTION_FLAGS;

typedef enum _VDS_INTERCONNECT_FLAG {
  VDS_ITF_PCI_RAID        = 0x1,
  VDS_ITF_FIBRE_CHANNEL   = 0x2,
  VDS_ITF_ISCSI           = 0x4,
  VDS_ITF_SAS             = 0x8 
} VDS_INTERCONNECT_FLAG;

typedef enum _VDS_RAID_TYPE {
  VDS_RT_UNKNOWN   = 0,
  VDS_RT_RAID0     = 10,
  VDS_RT_RAID1     = 11,
  VDS_RT_RAID2     = 12,
  VDS_RT_RAID3     = 13,
  VDS_RT_RAID4     = 14,
  VDS_RT_RAID5     = 15,
  VDS_RT_RAID6     = 16,
  VDS_RT_RAID01    = 17,
  VDS_RT_RAID03    = 18,
  VDS_RT_RAID05    = 19,
  VDS_RT_RAID10    = 20,
  VDS_RT_RAID15    = 21,
  VDS_RT_RAID30    = 22,
  VDS_RT_RAID50    = 23,
  VDS_RT_RAID51    = 24,
  VDS_RT_RAID53    = 25,
  VDS_RT_RAID60    = 26,
  VDS_RT_RAID61    = 27 
} VDS_RAID_TYPE;

typedef enum _VDS_STORAGE_POOL_TYPE {
  VDS_SPT_UNKNOWN      = 0,
  VDS_SPT_PRIMORDIAL   = 0x1,
  VDS_SPT_CONCRETE     = 0x2 
} VDS_STORAGE_POOL_TYPE;

typedef enum _VDS_VDISK_STATE {
  VDS_VST_UNKNOWN             = 0,
  VDS_VST_ADDED               = 1,
  VDS_VST_OPEN                = 2,
  VDS_VST_ATTACH_PENDING      = 3,
  VDS_VST_ATTACHED_NOT_OPEN   = 4,
  VDS_VST_ATTACHED            = 5,
  VDS_VST_DETACH_PENDING      = 6,
  VDS_VST_COMPACTING          = 7,
  VDS_VST_MERGING             = 8,
  VDS_VST_EXPANDING           = 9,
  VDS_VST_DELETED             = 10,
  VDS_VST_MAX                 = 11 
} VDS_VDISK_STATE;

typedef struct _VDS_CREATE_VDISK_PARAMETERS {
  GUID      UniqueId;
  ULONGLONG MaximumSize;
  ULONG     BlockSizeInBytes;
  ULONG     SectorSizeInBytes;
  LPWSTR    pParentPath;
  LPWSTR    pSourcePath;
} VDS_CREATE_VDISK_PARAMETERS, *PVDS_CREATE_VDISK_PARAMETERS;

typedef struct _VDS_DISK_FREE_EXTENT {
  VDS_OBJECT_ID diskId;
  ULONGLONG     ullOffset;
  ULONGLONG     ullSize;
} VDS_DISK_FREE_EXTENT, *PVDS_DISK_FREE_EXTENT;

typedef struct _VDS_DISK_PROP2 {
  VDS_OBJECT_ID           id;
  VDS_DISK_STATUS         status;
  VDS_DISK_OFFLINE_REASON OfflineReason;
  VDS_LUN_RESERVE_MODE    ReserveMode;
  VDS_HEALTH              health;
  DWORD                   dwDeviceType;
  DWORD                   dwMediaType;
  ULONGLONG               ullSize;
  ULONG                   ulBytesPerSector;
  ULONG                   ulSectorsPerTrack;
  ULONG                   ulTracksPerCylinder;
  ULONG                   ulFlags;
  VDS_STORAGE_BUS_TYPE    BusType;
  VDS_PARTITION_STYLE     PartitionStyle;
  __C89_NAMELESS union {
    DWORD dwSignature;
    GUID  DiskGuid;
  };
  LPWSTR                  pwszDiskAddress;
  LPWSTR                  pwszName;
  LPWSTR                  pwszFriendlyName;
  LPWSTR                  pwszAdaptorName;
  LPWSTR                  pwszDevicePath;
  LPWSTR                  pwszLocationPath;
} VDS_DISK_PROP2, *PVDS_DISK_PROP2;

typedef struct _VDS_DRIVE_PROP2 {
  VDS_OBJECT_ID        id;
  ULONGLONG            ullSize;
  LPWSTR               pwszFriendlyName;
  LPWSTR               pwszIdentification;
  ULONG                ulFlags;
  VDS_DRIVE_STATUS     status;
  VDS_HEALTH           health;
  SHORT                sInternalBusNumber;
  SHORT                sSlotNumber;
  ULONG                ulEnclosureNumber;
  VDS_STORAGE_BUS_TYPE busType;
  ULONG                ulSpindleSpeed;
} VDS_DRIVE_PROP2, *PVDS_DRIVE_PROP2;

typedef struct _VDS_HINTS2 {
  ULONGLONG            ullHintMask;
  ULONGLONG            ullExpectedMaximumSize;
  ULONG                ulOptimalReadSize;
  ULONG                ulOptimalReadAlignment;
  ULONG                ulOptimalWriteSize;
  ULONG                ulOptimalWriteAlignment;
  ULONG                ulMaximumDriveCount;
  ULONG                ulStripeSize;
  ULONG                ulReserved1;
  ULONG                ulReserved2;
  ULONG                ulReserved3;
  WINBOOL              bFastCrashRecoveryRequired;
  WINBOOL              bMostlyReads;
  WINBOOL              bOptimizeForSequentialReads;
  WINBOOL              bOptimizeForSequentialWrites;
  WINBOOL              bRemapEnabled;
  WINBOOL              bReadBackVerifyEnabled;
  WINBOOL              bWriteThroughCachingEnabled;
  WINBOOL              bHardwareChecksumEnabled;
  WINBOOL              bIsYankable;
  WINBOOL              bAllocateHotSpare;
  WINBOOL              bUseMirroredCache;
  WINBOOL              bReadCachingEnabled;
  WINBOOL              bWriteCachingEnabled;
  WINBOOL              bMediaScanEnabled;
  WINBOOL              bConsistencyCheckEnabled;
  VDS_STORAGE_BUS_TYPE BusType;
  WINBOOL              bReserved1;
  WINBOOL              bReserved2;
  WINBOOL              bReserved3;
  SHORT                sRebuildPriority;
} VDS_HINTS2, *PVDS_HINTS2;

typedef struct _VDS_POOL_CUSTOM_ATTRIBUTES {
  LPWSTR pwszName;
  LPWSTR pwszValue;
} VDS_POOL_CUSTOM_ATTRIBUTES, *PVDS_POOL_CUSTOM_ATTRIBUTES;

typedef struct _VDS_POOL_ATTRIBUTES {
  ULONGLONG                  ullAttributeMask;
  VDS_RAID_TYPE              raidType;
  VDS_STORAGE_BUS_TYPE       busType;
  LPWSTR                     pwszIntendedUsage;
  WINBOOL                    bSpinDown;
  WINBOOL                    bIsThinProvisioned;
  ULONGLONG                  ullProvisionedSpace;
  WINBOOL                    bNoSinglePointOfFailure;
  ULONG                      ulDataRedundancyMax;
  ULONG                      ulDataRedundancyMin;
  ULONG                      ulDataRedundancyDefault;
  ULONG                      ulPackageRedundancyMax;
  ULONG                      ulPackageRedundancyMin;
  ULONG                      ulPackageRedundancyDefault;
  ULONG                      ulStripeSize;
  ULONG                      ulStripeSizeMax;
  ULONG                      ulStripeSizeMin;
  ULONG                      ulDefaultStripeSize;
  ULONG                      ulNumberOfColumns;
  ULONG                      ulNumberOfColumnsMax;
  ULONG                      ulNumberOfColumnsMin;
  ULONG                      ulDefaultNumberofColumns;
  ULONG                      ulDataAvailabilityHint;
  ULONG                      ulAccessRandomnessHint;
  ULONG                      ulAccessDirectionHint;
  ULONG                      ulAccessSizeHint;
  ULONG                      ulAccessLatencyHint;
  ULONG                      ulAccessBandwidthWeightHint;
  ULONG                      ulStorageCostHint;
  ULONG                      ulStorageEfficiencyHint;
  ULONG                      ulNumOfCustomAttributes;
  VDS_POOL_CUSTOM_ATTRIBUTES *pPoolCustomAttributes;
  WINBOOL                    bReserved1;
  WINBOOL                    bReserved2;
  ULONG                      ulReserved1;
  ULONG                      ulReserved2;
  ULONGLONG                  ullReserved1;
  ULONGLONG                  ullReserved2;
} VDS_POOL_ATTRIBUTES, *PVDS_POOL_ATTRIBUTES;

typedef struct _VDS_STORAGE_POOL_DRIVE_EXTENT {
  VDS_OBJECT_ID id;
  ULONGLONG     ullSize;
  WINBOOL       bUsed;
} VDS_STORAGE_POOL_DRIVE_EXTENT, *PVDS_STORAGE_POOL_DRIVE_EXTENT;

typedef struct _VDS_STORAGE_POOL_PROP {
  VDS_OBJECT_ID           id;
  VDS_STORAGE_POOL_STATUS status;
  VDS_HEALTH              health;
  VDS_STORAGE_POOL_TYPE   type;
  LPWSTR                  pwszName;
  LPWSTR                  pwszDescription;
  ULONGLONG               ullTotalConsumedSpace;
  ULONGLONG               ullTotalManagedSpace;
  ULONGLONG               ullRemainingFreeSpace;
} VDS_STORAGE_POOL_PROP, *PVDS_STORAGE_POOL_PROP;

typedef struct _VDS_SUB_SYSTEM_PROP2 {
  VDS_OBJECT_ID         id;
  LPWSTR                pwszFriendlyName;
  LPWSTR                pwszIdentification;
  ULONG                 ulFlags;
  ULONG                 ulStripeSizeFlags;
  ULONG                 ulSupportedRaidTypeFlags;
  VDS_SUB_SYSTEM_STATUS status;
  VDS_HEALTH            health;
  SHORT                 sNumberOfInternalBuses;
  SHORT                 sMaxNumberOfSlotsEachBus;
  SHORT                 sMaxNumberOfControllers;
  SHORT                 sRebuildPriority;
  ULONG                 ulNumberOfEnclosures;
} VDS_SUB_SYSTEM_PROP2, *PVDS_SUB_SYSTEM_PROP2;

typedef struct _VDS_VDISK_PROPERTIES {
  VDS_OBJECT_ID        Id;
  VDS_VDISK_STATE      State;
  VIRTUAL_STORAGE_TYPE VirtualDeviceType;
  ULONGLONG            VirtualSize;
  ULONGLONG            PhysicalSize;
  LPWSTR               pPath;
  LPWSTR               pDeviceName;
  DEPENDENT_DISK_FLAG  DiskFlag;
  WINBOOL              bIsChild;
  LPWSTR               pParentPath;
} VDS_VDISK_PROPERTIES, *PVDS_VDISK_PROPERTIES;

typedef struct _VDS_VOLUME_PROP2 {
  VDS_OBJECT_ID        id;
  VDS_VOLUME_TYPE      type;
  VDS_VOLUME_STATUS    status;
  VDS_HEALTH           health;
  VDS_TRANSITION_STATE TransitionState;
  ULONGLONG            ullSize;
  ULONG                ulFlags;
  VDS_FILE_SYSTEM_TYPE RecommendedFileSystemType;
  ULONG                cbUniqueId;
  LPWSTR               pwszName;
  BYTE                 *pUniqueId;
} VDS_VOLUME_PROP2, *PVDS_VOLUME_PROP2;

#ifdef __cplusplus
}
#endif
#endif /*(_WIN32_WINNT >= 0x0601)*/

#endif /*_INC_VDS*/