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
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891
18892
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467
19468
19469
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092
20093
20094
20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123
20124
20125
20126
20127
20128
20129
20130
20131
20132
20133
20134
20135
20136
20137
20138
20139
20140
20141
20142
20143
20144
20145
20146
20147
20148
20149
20150
20151
20152
20153
20154
20155
20156
20157
20158
20159
20160
20161
20162
20163
20164
20165
20166
20167
20168
20169
20170
20171
20172
20173
20174
20175
20176
20177
20178
20179
20180
20181
20182
20183
20184
20185
20186
20187
20188
20189
20190
20191
20192
20193
20194
20195
20196
20197
20198
20199
20200
20201
20202
20203
20204
20205
20206
20207
20208
20209
20210
20211
20212
20213
20214
20215
20216
20217
20218
20219
20220
20221
20222
20223
20224
20225
20226
20227
20228
20229
20230
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241
20242
20243
20244
20245
20246
20247
20248
20249
20250
20251
20252
20253
20254
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338
20339
20340
20341
20342
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
20824
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863
20864
20865
20866
20867
20868
20869
20870
20871
20872
20873
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931
20932
20933
20934
20935
20936
20937
20938
20939
20940
20941
20942
20943
20944
20945
20946
20947
20948
20949
20950
20951
20952
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098
21099
21100
21101
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
21144
21145
21146
21147
21148
21149
21150
21151
21152
21153
21154
21155
21156
21157
21158
21159
21160
21161
21162
21163
21164
21165
21166
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179
21180
21181
21182
21183
21184
21185
21186
21187
21188
21189
21190
21191
21192
21193
21194
21195
21196
21197
21198
21199
21200
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212
21213
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223
21224
21225
21226
21227
21228
21229
21230
21231
21232
21233
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279
21280
21281
21282
21283
21284
21285
21286
21287
21288
21289
21290
21291
21292
21293
21294
21295
21296
21297
21298
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323
21324
21325
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354
21355
21356
21357
21358
21359
21360
21361
21362
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384
21385
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399
21400
21401
21402
21403
21404
21405
21406
21407
21408
21409
21410
21411
21412
21413
21414
21415
21416
21417
21418
21419
21420
21421
21422
21423
21424
21425
21426
21427
21428
21429
21430
21431
21432
21433
21434
21435
21436
21437
21438
21439
21440
21441
21442
21443
21444
21445
21446
21447
21448
21449
21450
21451
21452
21453
21454
21455
21456
21457
21458
21459
21460
21461
21462
21463
21464
21465
21466
21467
21468
21469
21470
21471
21472
21473
21474
21475
21476
21477
21478
21479
21480
21481
21482
21483
21484
21485
21486
21487
21488
21489
21490
21491
21492
21493
21494
21495
21496
21497
21498
21499
21500
21501
21502
21503
21504
21505
21506
21507
21508
21509
21510
21511
21512
21513
21514
21515
21516
21517
21518
21519
21520
21521
21522
21523
21524
21525
21526
21527
21528
21529
21530
21531
21532
21533
21534
21535
21536
21537
21538
21539
21540
21541
21542
21543
21544
21545
21546
21547
21548
21549
21550
21551
21552
21553
21554
21555
21556
21557
21558
21559
21560
21561
21562
21563
21564
21565
21566
21567
21568
21569
21570
21571
21572
21573
21574
21575
21576
21577
21578
21579
21580
21581
21582
21583
21584
21585
21586
21587
21588
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598
21599
21600
21601
21602
21603
21604
21605
21606
21607
21608
21609
21610
21611
21612
21613
21614
21615
21616
21617
21618
21619
21620
21621
21622
21623
21624
21625
21626
21627
21628
21629
21630
21631
21632
21633
21634
21635
21636
21637
21638
21639
21640
21641
21642
21643
21644
21645
21646
21647
21648
21649
21650
21651
21652
21653
21654
21655
21656
21657
21658
21659
21660
21661
21662
21663
21664
21665
21666
21667
21668
21669
21670
21671
21672
21673
21674
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696
21697
21698
21699
21700
21701
21702
21703
21704
21705
21706
21707
21708
21709
21710
21711
21712
21713
21714
21715
21716
21717
21718
21719
21720
21721
21722
21723
21724
21725
21726
21727
21728
21729
21730
21731
21732
21733
21734
21735
21736
21737
21738
21739
21740
21741
21742
21743
21744
21745
21746
21747
21748
21749
21750
21751
21752
21753
21754
21755
21756
21757
21758
21759
21760
21761
21762
21763
21764
21765
21766
21767
21768
21769
21770
21771
21772
21773
21774
21775
21776
21777
21778
21779
21780
21781
21782
21783
21784
21785
21786
21787
21788
21789
21790
21791
21792
21793
21794
21795
21796
21797
21798
21799
21800
21801
21802
21803
21804
21805
21806
21807
21808
21809
21810
21811
21812
21813
21814
21815
21816
21817
21818
21819
21820
21821
21822
21823
21824
21825
21826
21827
21828
21829
21830
21831
21832
21833
21834
21835
21836
21837
21838
21839
21840
21841
21842
21843
21844
21845
21846
21847
21848
21849
21850
21851
21852
21853
21854
21855
21856
21857
21858
21859
21860
21861
21862
21863
21864
21865
21866
21867
21868
21869
21870
21871
21872
21873
21874
21875
21876
21877
21878
21879
21880
21881
21882
21883
21884
21885
21886
21887
21888
21889
21890
21891
21892
21893
21894
21895
21896
21897
21898
21899
21900
21901
21902
21903
21904
21905
21906
21907
21908
21909
21910
21911
21912
21913
21914
21915
21916
21917
21918
21919
21920
21921
21922
21923
21924
21925
21926
21927
21928
21929
21930
21931
21932
21933
21934
21935
21936
21937
21938
21939
21940
21941
21942
21943
21944
21945
21946
21947
21948
21949
21950
21951
21952
21953
21954
21955
21956
21957
21958
21959
21960
21961
21962
21963
21964
21965
21966
21967
21968
21969
21970
21971
21972
21973
21974
21975
21976
21977
21978
21979
21980
21981
21982
21983
21984
21985
21986
21987
21988
21989
21990
21991
21992
21993
21994
21995
21996
21997
21998
21999
22000
22001
22002
22003
22004
22005
22006
22007
22008
22009
22010
22011
22012
22013
22014
22015
22016
22017
22018
22019
22020
22021
22022
22023
22024
22025
22026
22027
22028
22029
22030
22031
22032
22033
22034
22035
22036
22037
22038
22039
22040
22041
22042
22043
22044
22045
22046
22047
22048
22049
22050
22051
22052
22053
22054
22055
22056
22057
22058
22059
22060
22061
22062
22063
22064
22065
22066
22067
22068
22069
22070
22071
22072
22073
22074
22075
22076
22077
22078
22079
22080
22081
22082
22083
22084
22085
22086
22087
22088
22089
22090
22091
22092
22093
22094
22095
22096
22097
22098
22099
22100
22101
22102
22103
22104
22105
22106
22107
22108
22109
22110
22111
22112
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144
22145
22146
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158
22159
22160
22161
22162
22163
22164
22165
22166
22167
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177
22178
22179
22180
22181
22182
22183
22184
22185
22186
22187
22188
22189
22190
22191
22192
22193
22194
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240
22241
22242
22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
22254
22255
22256
22257
22258
22259
22260
22261
22262
22263
22264
22265
22266
22267
22268
22269
22270
22271
22272
22273
22274
22275
22276
22277
22278
22279
22280
22281
22282
22283
22284
22285
22286
22287
22288
22289
22290
22291
22292
22293
22294
22295
22296
22297
22298
22299
22300
22301
22302
22303
22304
22305
22306
22307
22308
22309
22310
22311
22312
22313
22314
22315
22316
22317
22318
22319
22320
22321
22322
22323
22324
22325
22326
22327
22328
22329
22330
22331
22332
22333
22334
22335
22336
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348
22349
22350
22351
22352
22353
22354
22355
22356
22357
22358
22359
22360
22361
22362
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372
22373
22374
22375
22376
22377
22378
22379
22380
22381
22382
22383
22384
22385
22386
22387
22388
22389
22390
22391
22392
22393
22394
22395
22396
22397
22398
22399
22400
22401
22402
22403
22404
22405
22406
22407
22408
22409
22410
22411
22412
22413
22414
22415
22416
22417
22418
22419
22420
22421
22422
22423
22424
22425
22426
22427
22428
22429
22430
22431
22432
22433
22434
22435
22436
22437
22438
22439
22440
22441
22442
22443
22444
22445
22446
22447
22448
22449
22450
22451
22452
22453
22454
22455
22456
22457
22458
22459
22460
22461
22462
22463
22464
22465
22466
22467
22468
22469
22470
22471
22472
22473
22474
22475
22476
22477
22478
22479
22480
22481
22482
22483
22484
22485
22486
22487
22488
22489
22490
22491
22492
22493
22494
22495
22496
22497
22498
22499
22500
22501
22502
22503
22504
22505
22506
22507
22508
22509
22510
22511
22512
22513
22514
22515
22516
22517
22518
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528
22529
22530
22531
22532
22533
22534
22535
22536
22537
22538
22539
22540
22541
22542
22543
22544
22545
22546
22547
22548
22549
22550
22551
22552
22553
22554
22555
22556
22557
22558
22559
22560
22561
22562
22563
22564
22565
22566
22567
22568
22569
22570
22571
22572
22573
22574
22575
22576
22577
22578
22579
22580
22581
22582
22583
22584
22585
22586
22587
22588
22589
22590
22591
22592
22593
22594
22595
22596
22597
22598
22599
22600
22601
22602
22603
22604
22605
22606
22607
22608
22609
22610
22611
22612
22613
22614
22615
22616
22617
22618
22619
22620
22621
22622
22623
22624
22625
22626
22627
22628
22629
22630
22631
22632
22633
22634
22635
22636
22637
22638
22639
22640
22641
22642
22643
22644
22645
22646
22647
22648
22649
22650
22651
22652
22653
22654
22655
22656
22657
22658
22659
22660
22661
22662
22663
22664
22665
22666
22667
22668
22669
22670
22671
22672
22673
22674
22675
22676
22677
22678
22679
22680
22681
22682
22683
22684
22685
22686
22687
22688
22689
22690
22691
22692
22693
22694
22695
22696
22697
22698
22699
22700
22701
22702
22703
22704
22705
22706
22707
22708
22709
22710
22711
22712
22713
22714
22715
22716
22717
22718
22719
22720
22721
22722
22723
22724
22725
22726
22727
22728
22729
22730
22731
22732
22733
22734
22735
22736
22737
22738
22739
22740
22741
22742
22743
22744
22745
22746
22747
22748
22749
22750
22751
22752
22753
22754
22755
22756
22757
22758
22759
22760
22761
22762
22763
22764
22765
22766
22767
22768
22769
22770
22771
22772
22773
22774
22775
22776
22777
22778
22779
22780
22781
22782
22783
22784
22785
22786
22787
22788
22789
22790
22791
22792
22793
22794
22795
22796
22797
22798
22799
22800
22801
22802
22803
22804
22805
22806
22807
22808
22809
22810
22811
22812
22813
22814
22815
22816
22817
22818
22819
22820
22821
22822
22823
22824
22825
22826
22827
22828
22829
22830
22831
22832
22833
22834
22835
22836
22837
22838
22839
22840
22841
22842
22843
22844
22845
22846
22847
22848
22849
22850
22851
22852
22853
22854
22855
22856
22857
22858
22859
22860
22861
22862
22863
22864
22865
22866
22867
22868
22869
22870
22871
22872
22873
22874
22875
22876
22877
22878
22879
22880
22881
22882
22883
22884
22885
22886
22887
22888
22889
22890
22891
22892
22893
22894
22895
22896
22897
22898
22899
22900
22901
22902
22903
22904
22905
22906
22907
22908
22909
22910
22911
22912
22913
22914
22915
22916
22917
22918
22919
22920
22921
22922
22923
22924
22925
22926
22927
22928
22929
22930
22931
22932
22933
22934
22935
22936
22937
22938
22939
22940
22941
22942
22943
22944
22945
22946
22947
22948
22949
22950
22951
22952
22953
22954
22955
22956
22957
22958
22959
22960
22961
22962
22963
22964
22965
22966
22967
22968
22969
22970
22971
22972
22973
22974
22975
22976
22977
22978
22979
22980
22981
22982
22983
22984
22985
22986
22987
22988
22989
22990
22991
22992
22993
22994
22995
22996
22997
22998
22999
23000
23001
23002
23003
23004
23005
23006
23007
23008
23009
23010
23011
23012
23013
23014
23015
23016
23017
23018
23019
23020
23021
23022
23023
23024
23025
23026
23027
23028
23029
23030
23031
23032
23033
23034
23035
23036
23037
23038
23039
23040
23041
23042
23043
23044
23045
23046
23047
23048
23049
23050
23051
23052
23053
23054
23055
23056
23057
23058
23059
23060
23061
23062
23063
23064
23065
23066
23067
23068
23069
23070
23071
23072
23073
23074
23075
23076
23077
23078
23079
23080
23081
23082
23083
23084
23085
23086
23087
23088
23089
23090
23091
23092
23093
23094
23095
23096
23097
23098
23099
23100
23101
23102
23103
23104
23105
23106
23107
23108
23109
23110
23111
23112
23113
23114
23115
23116
23117
23118
23119
23120
23121
23122
23123
23124
23125
23126
23127
23128
23129
23130
23131
23132
23133
23134
23135
23136
23137
23138
23139
23140
23141
23142
23143
23144
23145
23146
23147
23148
23149
23150
23151
23152
23153
23154
23155
23156
23157
23158
23159
23160
23161
23162
23163
23164
23165
23166
23167
23168
23169
23170
23171
23172
23173
23174
23175
23176
23177
23178
23179
23180
23181
23182
23183
23184
23185
23186
23187
23188
23189
23190
23191
23192
23193
23194
23195
23196
23197
23198
23199
23200
23201
23202
23203
23204
23205
23206
23207
23208
23209
23210
23211
23212
23213
23214
23215
23216
23217
23218
23219
23220
23221
23222
23223
23224
23225
23226
23227
23228
23229
23230
23231
23232
23233
23234
23235
23236
23237
23238
23239
23240
23241
23242
23243
23244
23245
23246
23247
23248
23249
23250
23251
23252
23253
23254
23255
23256
23257
23258
23259
23260
23261
23262
23263
23264
23265
23266
23267
23268
23269
23270
23271
23272
23273
23274
23275
23276
23277
23278
23279
23280
23281
23282
23283
23284
23285
23286
23287
23288
23289
23290
23291
23292
23293
23294
23295
23296
23297
23298
23299
23300
23301
23302
23303
23304
23305
23306
23307
23308
23309
23310
23311
23312
23313
23314
23315
23316
23317
23318
23319
23320
23321
23322
23323
23324
23325
23326
23327
23328
23329
23330
23331
23332
23333
23334
23335
23336
23337
23338
23339
23340
23341
23342
23343
23344
23345
23346
23347
23348
23349
23350
23351
23352
23353
23354
23355
23356
23357
23358
23359
23360
23361
23362
23363
23364
23365
23366
23367
23368
23369
23370
23371
23372
23373
23374
23375
23376
23377
23378
23379
23380
23381
23382
23383
23384
23385
23386
23387
23388
23389
23390
23391
23392
23393
23394
23395
23396
23397
23398
23399
23400
23401
23402
23403
23404
23405
23406
23407
23408
23409
23410
23411
23412
23413
23414
23415
23416
23417
23418
23419
23420
23421
23422
23423
23424
23425
23426
23427
23428
23429
23430
23431
23432
23433
23434
23435
23436
23437
23438
23439
23440
23441
23442
23443
23444
23445
23446
23447
23448
23449
23450
23451
23452
23453
23454
23455
23456
23457
23458
23459
23460
23461
23462
23463
23464
23465
23466
23467
23468
23469
23470
23471
23472
23473
23474
23475
23476
23477
23478
23479
23480
23481
23482
23483
23484
23485
23486
23487
23488
23489
23490
23491
23492
23493
23494
23495
23496
23497
23498
23499
23500
23501
23502
23503
23504
23505
23506
23507
23508
23509
23510
23511
23512
23513
23514
23515
23516
23517
23518
23519
23520
23521
23522
23523
23524
23525
23526
23527
23528
23529
23530
23531
23532
23533
23534
23535
23536
23537
23538
23539
23540
23541
23542
23543
23544
23545
23546
23547
23548
23549
23550
23551
23552
23553
23554
23555
23556
23557
23558
23559
23560
23561
23562
23563
23564
23565
23566
23567
23568
23569
23570
23571
23572
23573
23574
23575
23576
23577
23578
23579
23580
23581
23582
23583
23584
23585
23586
23587
23588
23589
23590
23591
23592
23593
23594
23595
23596
23597
23598
23599
23600
23601
23602
23603
23604
23605
23606
23607
23608
23609
23610
23611
23612
23613
23614
23615
23616
23617
23618
23619
23620
23621
23622
23623
23624
23625
23626
23627
23628
23629
23630
23631
23632
23633
23634
23635
23636
23637
23638
23639
23640
23641
23642
23643
23644
23645
23646
23647
23648
23649
23650
23651
23652
23653
23654
23655
23656
23657
23658
23659
23660
23661
23662
23663
23664
23665
23666
23667
23668
23669
23670
23671
23672
23673
23674
23675
23676
23677
23678
23679
23680
23681
23682
23683
23684
23685
23686
23687
23688
23689
23690
23691
23692
23693
23694
23695
23696
23697
23698
23699
23700
23701
23702
23703
23704
23705
23706
23707
23708
23709
23710
23711
23712
23713
23714
23715
23716
23717
23718
23719
23720
23721
23722
23723
23724
23725
23726
23727
23728
23729
23730
23731
23732
23733
23734
23735
23736
23737
23738
23739
23740
23741
23742
23743
23744
23745
23746
23747
23748
23749
23750
23751
23752
23753
23754
23755
23756
23757
23758
23759
23760
23761
23762
23763
23764
23765
23766
23767
23768
23769
23770
23771
23772
23773
23774
23775
23776
23777
23778
23779
23780
23781
23782
23783
23784
23785
23786
23787
23788
23789
23790
23791
23792
23793
23794
23795
23796
23797
23798
23799
23800
23801
23802
23803
23804
23805
23806
23807
23808
23809
23810
23811
23812
23813
23814
23815
23816
23817
23818
23819
23820
23821
23822
23823
23824
23825
23826
23827
23828
23829
23830
23831
23832
23833
23834
23835
23836
23837
23838
23839
23840
23841
23842
23843
23844
23845
23846
23847
23848
23849
23850
23851
23852
23853
23854
23855
23856
23857
23858
23859
23860
23861
23862
23863
23864
23865
23866
23867
23868
23869
23870
23871
23872
23873
23874
23875
23876
23877
23878
23879
23880
23881
23882
23883
23884
23885
23886
23887
23888
23889
23890
23891
23892
23893
23894
23895
23896
23897
23898
23899
23900
23901
23902
23903
23904
23905
23906
23907
23908
23909
23910
23911
23912
23913
23914
23915
23916
23917
23918
23919
23920
23921
23922
23923
23924
23925
23926
23927
23928
23929
23930
23931
23932
23933
23934
23935
23936
23937
23938
23939
23940
23941
23942
23943
23944
23945
23946
23947
23948
23949
23950
23951
23952
23953
23954
23955
23956
23957
23958
23959
23960
23961
23962
23963
23964
23965
23966
23967
23968
23969
23970
23971
23972
23973
23974
23975
23976
23977
23978
23979
23980
23981
23982
23983
23984
23985
23986
23987
23988
23989
23990
23991
23992
23993
23994
23995
23996
23997
23998
23999
24000
24001
24002
24003
24004
24005
24006
24007
24008
24009
24010
24011
24012
24013
24014
24015
24016
24017
24018
24019
24020
24021
24022
24023
24024
24025
24026
24027
24028
24029
24030
24031
24032
24033
24034
24035
24036
24037
24038
24039
24040
24041
24042
24043
24044
24045
24046
24047
24048
24049
24050
24051
24052
24053
24054
24055
24056
24057
24058
24059
24060
24061
24062
24063
24064
24065
24066
24067
24068
24069
24070
24071
24072
24073
24074
24075
24076
24077
24078
24079
24080
24081
24082
24083
24084
24085
24086
24087
24088
24089
24090
24091
24092
24093
24094
24095
24096
24097
24098
24099
24100
24101
24102
24103
24104
24105
24106
24107
24108
24109
24110
24111
24112
24113
24114
24115
24116
24117
24118
24119
24120
24121
24122
24123
24124
24125
24126
24127
24128
24129
24130
24131
24132
24133
24134
24135
24136
24137
24138
24139
24140
24141
24142
24143
24144
24145
24146
24147
24148
24149
24150
24151
24152
24153
24154
24155
24156
24157
24158
24159
24160
24161
24162
24163
24164
24165
24166
24167
24168
24169
24170
24171
24172
24173
24174
24175
24176
24177
24178
24179
24180
24181
24182
24183
24184
24185
24186
24187
24188
24189
24190
24191
24192
24193
24194
24195
24196
24197
24198
24199
24200
24201
24202
24203
24204
24205
24206
24207
24208
24209
24210
24211
24212
24213
24214
24215
24216
24217
24218
24219
24220
24221
24222
24223
24224
24225
24226
24227
24228
24229
24230
24231
24232
24233
24234
24235
24236
24237
24238
24239
24240
24241
24242
24243
24244
24245
24246
24247
24248
24249
24250
24251
24252
24253
24254
24255
24256
24257
24258
24259
24260
24261
24262
24263
24264
24265
24266
24267
24268
24269
24270
24271
24272
24273
24274
24275
24276
24277
24278
24279
24280
24281
24282
24283
24284
24285
24286
24287
24288
24289
24290
24291
24292
24293
24294
24295
24296
24297
24298
24299
24300
24301
24302
24303
24304
24305
24306
24307
24308
24309
24310
24311
24312
24313
24314
24315
24316
24317
24318
24319
24320
24321
24322
24323
24324
24325
24326
24327
24328
24329
24330
24331
24332
24333
24334
24335
24336
24337
24338
24339
24340
24341
24342
24343
24344
24345
24346
24347
24348
24349
24350
24351
24352
24353
24354
24355
24356
24357
24358
24359
24360
24361
24362
24363
24364
24365
24366
24367
24368
24369
24370
24371
24372
24373
24374
24375
24376
24377
24378
24379
24380
24381
24382
24383
24384
24385
24386
24387
24388
24389
24390
24391
24392
24393
24394
24395
24396
24397
24398
24399
24400
24401
24402
24403
24404
24405
24406
24407
24408
24409
24410
24411
24412
24413
24414
24415
24416
24417
24418
24419
24420
24421
24422
24423
24424
24425
24426
24427
24428
24429
24430
24431
24432
24433
24434
24435
24436
24437
24438
24439
24440
24441
24442
24443
24444
24445
24446
24447
24448
24449
24450
24451
24452
24453
24454
24455
24456
24457
24458
24459
24460
24461
24462
24463
24464
24465
24466
24467
24468
24469
24470
24471
24472
24473
24474
24475
24476
24477
24478
24479
24480
24481
24482
24483
24484
24485
24486
24487
24488
24489
24490
24491
24492
24493
24494
24495
24496
24497
24498
24499
24500
24501
24502
24503
24504
24505
24506
24507
24508
24509
24510
24511
24512
24513
24514
24515
24516
24517
24518
24519
24520
24521
24522
24523
24524
24525
24526
24527
24528
24529
24530
24531
24532
24533
24534
24535
24536
24537
24538
24539
24540
24541
24542
24543
24544
24545
24546
24547
24548
24549
24550
24551
24552
24553
24554
24555
24556
24557
24558
24559
24560
24561
24562
24563
24564
24565
24566
24567
24568
24569
24570
24571
24572
24573
24574
24575
24576
24577
24578
24579
24580
24581
24582
24583
24584
24585
24586
24587
24588
24589
24590
24591
24592
24593
24594
24595
24596
24597
24598
24599
24600
24601
24602
24603
24604
24605
24606
24607
24608
24609
24610
24611
24612
24613
24614
24615
24616
24617
24618
24619
24620
24621
24622
24623
24624
24625
24626
24627
24628
24629
24630
24631
24632
24633
24634
24635
24636
24637
24638
24639
24640
24641
24642
24643
24644
24645
24646
24647
24648
24649
24650
24651
24652
24653
24654
24655
24656
24657
24658
24659
24660
24661
24662
24663
24664
24665
24666
24667
24668
24669
24670
24671
24672
24673
24674
24675
24676
24677
24678
24679
24680
24681
24682
24683
24684
24685
24686
24687
24688
24689
24690
24691
24692
24693
24694
24695
24696
24697
24698
24699
24700
24701
24702
24703
24704
24705
24706
24707
24708
24709
24710
24711
24712
24713
24714
24715
24716
24717
24718
24719
24720
24721
24722
24723
24724
24725
24726
24727
24728
24729
24730
24731
24732
24733
24734
24735
24736
24737
24738
24739
24740
24741
24742
24743
24744
24745
24746
24747
24748
24749
24750
24751
24752
24753
24754
24755
24756
24757
24758
24759
24760
24761
24762
24763
24764
24765
24766
24767
24768
24769
24770
24771
24772
24773
24774
24775
24776
24777
24778
24779
24780
24781
24782
24783
24784
24785
24786
24787
24788
24789
24790
24791
24792
24793
24794
24795
24796
24797
24798
24799
24800
24801
24802
24803
24804
24805
24806
24807
24808
24809
24810
24811
24812
24813
24814
24815
24816
24817
24818
24819
24820
24821
24822
24823
24824
24825
24826
24827
24828
24829
24830
24831
24832
24833
24834
24835
24836
24837
24838
24839
24840
24841
24842
24843
24844
24845
24846
24847
24848
24849
24850
24851
24852
24853
24854
24855
24856
24857
24858
24859
24860
24861
24862
24863
24864
24865
24866
24867
24868
24869
24870
24871
24872
24873
24874
24875
24876
24877
24878
24879
24880
24881
24882
24883
24884
24885
24886
24887
24888
24889
24890
24891
24892
24893
24894
24895
24896
24897
24898
24899
24900
24901
24902
24903
24904
24905
24906
24907
24908
24909
24910
24911
24912
24913
24914
24915
24916
24917
24918
24919
24920
24921
24922
24923
24924
24925
24926
24927
24928
24929
24930
24931
24932
24933
24934
24935
24936
24937
24938
24939
24940
24941
24942
24943
24944
24945
24946
24947
24948
24949
24950
24951
24952
24953
24954
24955
24956
24957
24958
24959
24960
24961
24962
24963
24964
24965
24966
24967
24968
24969
24970
24971
24972
24973
24974
24975
24976
24977
24978
24979
24980
24981
24982
24983
24984
24985
24986
24987
24988
24989
24990
24991
24992
24993
24994
24995
24996
24997
24998
24999
25000
25001
25002
25003
25004
25005
25006
25007
25008
25009
25010
25011
25012
25013
25014
25015
25016
25017
25018
25019
25020
25021
25022
25023
25024
25025
25026
25027
25028
25029
25030
25031
25032
25033
25034
25035
25036
25037
25038
25039
25040
25041
25042
25043
25044
25045
25046
25047
25048
25049
25050
25051
25052
25053
25054
25055
25056
25057
25058
25059
25060
25061
25062
25063
25064
25065
25066
25067
25068
25069
25070
25071
25072
25073
25074
25075
25076
25077
25078
25079
25080
25081
25082
25083
25084
25085
25086
25087
25088
25089
25090
25091
25092
25093
25094
25095
25096
25097
25098
25099
25100
25101
25102
25103
25104
25105
25106
25107
25108
25109
25110
25111
25112
25113
25114
25115
25116
25117
25118
25119
25120
25121
25122
25123
25124
25125
25126
25127
25128
25129
25130
25131
25132
25133
25134
25135
25136
25137
25138
25139
25140
25141
25142
25143
25144
25145
25146
25147
25148
25149
25150
25151
25152
25153
25154
25155
25156
25157
25158
25159
25160
25161
25162
25163
25164
25165
25166
25167
25168
25169
25170
25171
25172
25173
25174
25175
25176
25177
25178
25179
25180
25181
25182
25183
25184
25185
25186
25187
25188
25189
25190
25191
25192
25193
25194
25195
25196
25197
25198
25199
25200
25201
25202
25203
25204
25205
25206
25207
25208
25209
25210
25211
25212
25213
25214
25215
25216
25217
25218
25219
25220
25221
25222
25223
25224
25225
25226
25227
25228
25229
25230
25231
25232
25233
25234
25235
25236
25237
25238
25239
25240
25241
25242
25243
25244
25245
25246
25247
25248
25249
25250
25251
25252
25253
25254
25255
25256
25257
25258
25259
25260
25261
25262
25263
25264
25265
25266
25267
25268
25269
25270
25271
25272
25273
25274
25275
25276
25277
25278
25279
25280
25281
25282
25283
25284
25285
25286
25287
25288
25289
25290
25291
25292
25293
25294
25295
25296
25297
25298
25299
25300
25301
25302
25303
25304
25305
25306
25307
25308
25309
25310
25311
25312
25313
25314
25315
25316
25317
25318
25319
25320
25321
25322
25323
25324
25325
25326
25327
25328
25329
25330
25331
25332
25333
25334
25335
25336
25337
25338
25339
25340
25341
25342
25343
25344
25345
25346
25347
25348
25349
25350
25351
25352
25353
25354
25355
25356
25357
25358
25359
25360
25361
25362
25363
25364
25365
25366
25367
25368
25369
25370
25371
25372
25373
25374
25375
25376
25377
25378
25379
25380
25381
25382
25383
25384
25385
25386
25387
25388
25389
25390
25391
25392
25393
25394
25395
25396
25397
25398
25399
25400
25401
25402
25403
25404
25405
25406
25407
25408
25409
25410
25411
25412
25413
25414
25415
25416
25417
25418
25419
25420
25421
25422
25423
25424
25425
25426
25427
25428
25429
25430
25431
25432
25433
25434
25435
25436
25437
25438
25439
25440
25441
25442
25443
25444
25445
25446
25447
25448
25449
25450
25451
25452
25453
25454
25455
25456
25457
25458
25459
25460
25461
25462
25463
25464
25465
25466
25467
25468
25469
25470
25471
25472
25473
25474
25475
25476
25477
25478
25479
25480
25481
25482
25483
25484
25485
25486
25487
25488
25489
25490
25491
25492
25493
25494
25495
25496
25497
25498
25499
25500
25501
25502
25503
25504
25505
25506
25507
25508
25509
25510
25511
25512
25513
25514
25515
25516
25517
25518
25519
25520
25521
25522
25523
25524
25525
25526
25527
25528
25529
25530
25531
25532
25533
25534
25535
25536
25537
25538
25539
25540
25541
25542
25543
25544
25545
25546
25547
25548
25549
25550
25551
25552
25553
25554
25555
25556
25557
25558
25559
25560
25561
25562
25563
25564
25565
25566
25567
25568
25569
25570
25571
25572
25573
25574
25575
25576
25577
25578
25579
25580
25581
25582
25583
25584
25585
25586
25587
25588
25589
25590
25591
25592
25593
25594
25595
25596
25597
25598
25599
25600
25601
25602
25603
25604
25605
25606
25607
25608
25609
25610
25611
25612
25613
25614
25615
25616
25617
25618
25619
25620
25621
25622
25623
25624
25625
25626
25627
25628
25629
25630
25631
25632
25633
25634
25635
25636
25637
25638
25639
25640
25641
25642
25643
25644
25645
25646
25647
25648
25649
25650
25651
25652
25653
25654
25655
25656
25657
25658
25659
25660
25661
25662
25663
25664
25665
25666
25667
25668
25669
25670
25671
25672
25673
25674
25675
25676
25677
25678
25679
25680
25681
25682
25683
25684
25685
25686
25687
25688
25689
25690
25691
25692
25693
25694
25695
25696
25697
25698
25699
25700
25701
25702
25703
25704
25705
25706
25707
25708
25709
25710
25711
25712
25713
25714
25715
25716
25717
25718
25719
25720
25721
25722
25723
25724
25725
25726
25727
25728
25729
25730
25731
25732
25733
25734
25735
25736
25737
25738
25739
25740
25741
25742
25743
25744
25745
25746
25747
25748
25749
25750
25751
25752
25753
25754
25755
25756
25757
25758
25759
25760
25761
25762
25763
25764
25765
25766
25767
25768
25769
25770
25771
25772
25773
25774
25775
25776
25777
25778
25779
25780
25781
25782
25783
25784
25785
25786
25787
25788
25789
25790
25791
25792
25793
25794
25795
25796
25797
25798
25799
25800
25801
25802
25803
25804
25805
25806
25807
25808
25809
25810
25811
25812
25813
25814
25815
25816
25817
25818
25819
25820
25821
25822
25823
25824
25825
25826
25827
25828
25829
25830
25831
25832
25833
25834
25835
25836
25837
25838
25839
25840
25841
25842
25843
25844
25845
25846
25847
25848
25849
25850
25851
25852
25853
25854
25855
25856
25857
25858
25859
25860
25861
25862
25863
25864
25865
25866
25867
25868
25869
25870
25871
25872
25873
25874
25875
25876
25877
25878
25879
25880
25881
25882
25883
25884
25885
25886
25887
25888
25889
25890
25891
25892
25893
25894
25895
25896
25897
25898
25899
25900
25901
25902
25903
25904
25905
25906
25907
25908
25909
25910
25911
25912
25913
25914
25915
25916
25917
25918
25919
25920
25921
25922
25923
25924
25925
25926
25927
25928
25929
25930
25931
25932
25933
25934
25935
25936
25937
25938
25939
25940
25941
25942
25943
25944
25945
25946
25947
25948
25949
25950
25951
25952
25953
25954
25955
25956
25957
25958
25959
25960
25961
25962
25963
25964
25965
25966
25967
25968
25969
25970
25971
25972
25973
25974
25975
25976
25977
25978
25979
25980
25981
25982
25983
25984
25985
25986
25987
25988
25989
25990
25991
25992
25993
25994
25995
25996
25997
25998
25999
26000
26001
26002
26003
26004
26005
26006
26007
26008
26009
26010
26011
26012
26013
26014
26015
26016
26017
26018
26019
26020
26021
26022
26023
26024
26025
26026
26027
26028
26029
26030
26031
26032
26033
26034
26035
26036
26037
26038
26039
26040
26041
26042
26043
26044
26045
26046
26047
26048
26049
26050
26051
26052
26053
26054
26055
26056
26057
26058
26059
26060
26061
26062
26063
26064
26065
26066
26067
26068
26069
26070
26071
26072
26073
26074
26075
26076
26077
26078
26079
26080
26081
26082
26083
26084
26085
26086
26087
26088
26089
26090
26091
26092
26093
26094
26095
26096
26097
26098
26099
26100
26101
26102
26103
26104
26105
26106
26107
26108
26109
26110
26111
26112
26113
26114
26115
26116
26117
26118
26119
26120
26121
26122
26123
26124
26125
26126
26127
26128
26129
26130
26131
26132
26133
26134
26135
26136
26137
26138
26139
26140
26141
26142
26143
26144
26145
26146
26147
26148
26149
26150
26151
26152
26153
26154
26155
26156
26157
26158
26159
26160
26161
26162
26163
26164
26165
26166
26167
26168
26169
26170
26171
26172
26173
26174
26175
26176
26177
26178
26179
26180
26181
26182
26183
26184
26185
26186
26187
26188
26189
26190
26191
26192
26193
26194
26195
26196
26197
26198
26199
26200
26201
26202
26203
26204
26205
26206
26207
26208
26209
26210
26211
26212
26213
26214
26215
26216
26217
26218
26219
26220
26221
26222
26223
26224
26225
26226
26227
26228
26229
26230
26231
26232
26233
26234
26235
26236
26237
26238
26239
26240
26241
26242
26243
26244
26245
26246
26247
26248
26249
26250
26251
26252
26253
26254
26255
26256
26257
26258
26259
26260
26261
26262
26263
26264
26265
26266
26267
26268
26269
26270
26271
26272
26273
26274
26275
26276
26277
26278
26279
26280
26281
26282
26283
26284
26285
26286
26287
26288
26289
26290
26291
26292
26293
26294
26295
26296
26297
26298
26299
26300
26301
26302
26303
26304
26305
26306
26307
26308
26309
26310
26311
26312
26313
26314
26315
26316
26317
26318
26319
26320
26321
26322
26323
26324
26325
26326
26327
26328
26329
26330
26331
26332
26333
26334
26335
26336
26337
26338
26339
26340
26341
26342
26343
26344
26345
26346
26347
26348
26349
26350
26351
26352
26353
26354
26355
26356
26357
26358
26359
26360
26361
26362
26363
26364
26365
26366
26367
26368
26369
26370
26371
26372
26373
26374
26375
26376
26377
26378
26379
26380
26381
26382
26383
26384
26385
26386
26387
26388
26389
26390
26391
26392
26393
26394
26395
26396
26397
26398
26399
26400
26401
26402
26403
26404
26405
26406
26407
26408
26409
26410
26411
26412
26413
26414
26415
26416
26417
26418
26419
26420
26421
26422
26423
26424
26425
26426
26427
26428
26429
26430
26431
26432
26433
26434
26435
26436
26437
26438
26439
26440
26441
26442
26443
26444
26445
26446
26447
26448
26449
26450
26451
26452
26453
26454
26455
26456
26457
26458
26459
26460
26461
26462
26463
26464
26465
26466
26467
26468
26469
26470
26471
26472
26473
26474
26475
26476
26477
26478
26479
26480
26481
26482
26483
26484
26485
26486
26487
26488
26489
26490
26491
26492
26493
26494
26495
26496
26497
26498
26499
26500
26501
26502
26503
26504
26505
26506
26507
26508
26509
26510
26511
26512
26513
26514
26515
26516
26517
26518
26519
26520
26521
26522
26523
26524
26525
26526
26527
26528
26529
26530
26531
26532
26533
26534
26535
26536
26537
26538
26539
26540
26541
26542
26543
26544
26545
26546
26547
26548
26549
26550
26551
26552
26553
26554
26555
26556
26557
26558
26559
26560
26561
26562
26563
26564
26565
26566
26567
26568
26569
26570
26571
26572
26573
26574
26575
26576
26577
26578
26579
26580
26581
26582
26583
26584
26585
26586
26587
26588
26589
26590
26591
26592
26593
26594
26595
26596
26597
26598
26599
26600
26601
26602
26603
26604
26605
26606
26607
26608
26609
26610
26611
26612
26613
26614
26615
26616
26617
26618
26619
26620
26621
26622
26623
26624
26625
26626
26627
26628
26629
26630
26631
26632
26633
26634
26635
26636
26637
26638
26639
26640
26641
26642
26643
26644
26645
26646
26647
26648
26649
26650
26651
26652
26653
26654
26655
26656
26657
26658
26659
26660
26661
26662
26663
26664
26665
26666
26667
26668
26669
26670
26671
26672
26673
26674
26675
26676
26677
26678
26679
26680
26681
26682
26683
26684
26685
26686
26687
26688
26689
26690
26691
26692
26693
26694
26695
26696
26697
26698
26699
26700
26701
26702
26703
26704
26705
26706
26707
26708
26709
26710
26711
26712
26713
26714
26715
26716
26717
26718
26719
26720
26721
26722
26723
26724
26725
26726
26727
26728
26729
26730
26731
26732
26733
26734
26735
26736
26737
26738
26739
26740
26741
26742
26743
26744
26745
26746
26747
26748
26749
26750
26751
26752
26753
26754
26755
26756
26757
26758
26759
26760
26761
26762
26763
26764
26765
26766
26767
26768
26769
26770
26771
26772
26773
26774
26775
26776
26777
26778
26779
26780
26781
26782
26783
26784
26785
26786
26787
26788
26789
26790
26791
26792
26793
26794
26795
26796
26797
26798
26799
26800
26801
26802
26803
26804
26805
26806
26807
26808
26809
26810
26811
26812
26813
26814
26815
26816
26817
26818
26819
26820
26821
26822
26823
26824
26825
26826
26827
26828
26829
26830
26831
26832
26833
26834
26835
26836
26837
26838
26839
26840
26841
26842
26843
26844
26845
26846
26847
26848
26849
26850
26851
26852
26853
26854
26855
26856
26857
26858
26859
26860
26861
26862
26863
26864
26865
26866
26867
26868
26869
26870
26871
26872
26873
26874
26875
26876
26877
26878
26879
26880
26881
26882
26883
26884
26885
26886
26887
26888
26889
26890
26891
26892
26893
26894
26895
26896
26897
26898
26899
26900
26901
26902
26903
26904
26905
26906
26907
26908
26909
26910
26911
26912
26913
26914
26915
26916
26917
26918
26919
26920
26921
26922
26923
26924
26925
26926
26927
26928
26929
26930
26931
26932
26933
26934
26935
26936
26937
26938
26939
26940
26941
26942
26943
26944
26945
26946
26947
26948
26949
26950
26951
26952
26953
26954
26955
26956
26957
26958
26959
26960
26961
26962
26963
26964
26965
26966
26967
26968
26969
26970
26971
26972
26973
26974
26975
26976
26977
26978
26979
26980
26981
26982
26983
26984
26985
26986
26987
26988
26989
26990
26991
26992
26993
26994
26995
26996
26997
26998
26999
27000
27001
27002
27003
27004
27005
27006
27007
27008
27009
27010
27011
27012
27013
27014
27015
27016
27017
27018
27019
27020
27021
27022
27023
27024
27025
27026
27027
27028
27029
27030
27031
27032
27033
27034
27035
27036
27037
27038
27039
27040
27041
27042
27043
27044
27045
27046
27047
27048
27049
27050
27051
27052
27053
27054
27055
27056
27057
27058
27059
27060
27061
27062
27063
27064
27065
27066
27067
27068
27069
27070
27071
27072
27073
27074
27075
27076
27077
27078
27079
27080
27081
27082
27083
27084
27085
27086
27087
27088
27089
27090
27091
27092
27093
27094
27095
27096
27097
27098
27099
27100
27101
27102
27103
27104
27105
27106
27107
27108
27109
27110
27111
27112
27113
27114
27115
27116
27117
27118
27119
27120
27121
27122
27123
27124
27125
27126
27127
27128
27129
27130
27131
27132
27133
27134
27135
27136
27137
27138
27139
27140
27141
27142
27143
27144
27145
27146
27147
27148
27149
27150
27151
27152
27153
27154
27155
27156
27157
27158
27159
27160
27161
27162
27163
27164
27165
27166
27167
27168
27169
27170
27171
27172
27173
27174
27175
27176
27177
27178
27179
27180
27181
27182
27183
27184
27185
27186
27187
27188
27189
27190
27191
27192
27193
27194
27195
27196
27197
27198
27199
27200
27201
27202
27203
27204
27205
27206
27207
27208
27209
27210
27211
27212
27213
27214
27215
27216
27217
27218
27219
27220
27221
27222
27223
27224
27225
27226
27227
27228
27229
27230
27231
27232
27233
27234
27235
27236
27237
27238
27239
27240
27241
27242
27243
27244
27245
27246
27247
27248
27249
27250
27251
27252
27253
27254
27255
27256
27257
27258
27259
27260
27261
27262
27263
27264
27265
27266
27267
27268
27269
27270
27271
27272
27273
27274
27275
27276
27277
27278
27279
27280
27281
27282
27283
27284
27285
27286
27287
27288
27289
27290
27291
27292
27293
27294
27295
27296
27297
27298
27299
27300
27301
27302
27303
27304
27305
27306
27307
27308
27309
27310
27311
27312
27313
27314
27315
27316
27317
27318
27319
27320
27321
27322
27323
27324
27325
27326
27327
27328
27329
27330
27331
27332
27333
27334
27335
27336
27337
27338
27339
27340
27341
27342
27343
27344
27345
27346
27347
27348
27349
27350
27351
27352
27353
27354
27355
27356
27357
27358
27359
27360
27361
27362
27363
27364
27365
27366
27367
27368
27369
27370
27371
27372
27373
27374
27375
27376
27377
27378
27379
27380
27381
27382
27383
27384
27385
27386
27387
27388
27389
27390
27391
27392
27393
27394
27395
27396
27397
27398
27399
27400
27401
27402
27403
27404
27405
27406
27407
27408
27409
27410
27411
27412
27413
27414
27415
27416
27417
27418
27419
27420
27421
27422
27423
27424
27425
27426
27427
27428
27429
27430
27431
27432
27433
27434
27435
27436
27437
27438
27439
27440
27441
27442
27443
27444
27445
27446
27447
27448
27449
27450
27451
27452
27453
27454
27455
27456
27457
27458
27459
27460
27461
27462
27463
27464
27465
27466
27467
27468
27469
27470
27471
27472
27473
27474
27475
27476
27477
27478
27479
27480
27481
27482
27483
27484
27485
27486
27487
27488
27489
27490
27491
27492
27493
27494
27495
27496
27497
27498
27499
27500
27501
27502
27503
27504
27505
27506
27507
27508
27509
27510
27511
27512
27513
27514
27515
27516
27517
27518
27519
27520
27521
27522
27523
27524
27525
27526
27527
27528
27529
27530
27531
27532
27533
27534
27535
27536
27537
27538
27539
27540
27541
27542
27543
27544
27545
27546
27547
27548
27549
27550
27551
27552
27553
27554
27555
27556
27557
27558
27559
27560
27561
27562
27563
27564
27565
27566
27567
27568
27569
27570
27571
27572
27573
27574
27575
27576
27577
27578
27579
27580
27581
27582
27583
27584
27585
27586
27587
27588
27589
27590
27591
27592
27593
27594
27595
27596
27597
27598
27599
27600
27601
27602
27603
27604
27605
27606
27607
27608
27609
27610
27611
27612
27613
27614
27615
27616
27617
27618
27619
27620
27621
27622
27623
27624
27625
27626
27627
27628
27629
27630
27631
27632
27633
27634
27635
27636
27637
27638
27639
27640
27641
27642
27643
27644
27645
27646
27647
27648
27649
27650
27651
27652
27653
27654
27655
27656
27657
27658
27659
27660
27661
27662
27663
27664
27665
27666
27667
27668
27669
27670
27671
27672
27673
27674
27675
27676
27677
27678
27679
27680
27681
27682
27683
27684
27685
27686
27687
27688
27689
27690
27691
27692
27693
27694
27695
27696
27697
27698
27699
27700
27701
27702
27703
27704
27705
27706
27707
27708
27709
27710
27711
27712
27713
27714
27715
27716
27717
27718
27719
27720
27721
27722
27723
27724
27725
27726
27727
27728
27729
27730
27731
27732
27733
27734
27735
27736
27737
27738
27739
27740
27741
27742
27743
27744
27745
27746
27747
27748
27749
27750
27751
27752
27753
27754
27755
27756
27757
27758
27759
27760
27761
27762
27763
27764
27765
27766
27767
27768
27769
27770
27771
27772
27773
27774
27775
27776
27777
27778
27779
27780
27781
27782
27783
27784
27785
27786
27787
27788
27789
27790
27791
27792
27793
27794
27795
27796
27797
27798
27799
27800
27801
27802
27803
27804
27805
27806
27807
27808
27809
27810
27811
27812
27813
27814
27815
27816
27817
27818
27819
27820
27821
27822
27823
27824
27825
27826
27827
27828
27829
27830
27831
27832
27833
27834
27835
27836
27837
27838
27839
27840
27841
27842
27843
27844
27845
27846
27847
27848
27849
27850
27851
27852
27853
27854
27855
27856
27857
27858
27859
27860
27861
27862
27863
27864
27865
27866
27867
27868
27869
27870
27871
27872
27873
27874
27875
27876
27877
27878
27879
27880
27881
27882
27883
27884
27885
27886
27887
27888
27889
27890
27891
27892
27893
27894
27895
27896
27897
27898
27899
27900
27901
27902
27903
27904
27905
27906
27907
27908
27909
27910
27911
27912
27913
27914
27915
27916
27917
27918
27919
27920
27921
27922
27923
27924
27925
27926
27927
27928
27929
27930
27931
27932
27933
27934
27935
27936
27937
27938
27939
27940
27941
27942
27943
27944
27945
27946
27947
27948
27949
27950
27951
27952
27953
27954
27955
27956
27957
27958
27959
27960
27961
27962
27963
27964
27965
27966
27967
27968
27969
27970
27971
27972
27973
27974
27975
27976
27977
27978
27979
27980
27981
27982
27983
27984
27985
27986
27987
27988
27989
27990
27991
27992
27993
27994
27995
27996
27997
27998
27999
28000
28001
28002
28003
28004
28005
28006
28007
28008
28009
28010
28011
28012
28013
28014
28015
28016
28017
28018
28019
28020
28021
28022
28023
28024
28025
28026
28027
28028
28029
28030
28031
28032
28033
28034
28035
28036
28037
28038
28039
28040
28041
28042
28043
28044
28045
28046
28047
28048
28049
28050
28051
28052
28053
28054
28055
28056
28057
28058
28059
28060
28061
28062
28063
28064
28065
28066
28067
28068
28069
28070
28071
28072
28073
28074
28075
28076
28077
28078
28079
28080
28081
28082
28083
28084
28085
28086
28087
28088
28089
28090
28091
28092
28093
28094
28095
28096
28097
28098
28099
28100
28101
28102
28103
28104
28105
28106
28107
28108
28109
28110
28111
28112
28113
28114
28115
28116
28117
28118
28119
28120
28121
28122
28123
28124
28125
28126
28127
28128
28129
28130
28131
28132
28133
28134
28135
28136
28137
28138
28139
28140
28141
28142
28143
28144
28145
28146
28147
28148
28149
28150
28151
28152
28153
28154
28155
28156
28157
28158
28159
28160
28161
28162
28163
28164
28165
28166
28167
28168
28169
28170
28171
28172
28173
28174
28175
28176
28177
28178
28179
28180
28181
28182
28183
28184
28185
28186
28187
28188
28189
28190
28191
28192
28193
28194
28195
28196
28197
28198
28199
28200
28201
28202
28203
28204
28205
28206
28207
28208
28209
28210
28211
28212
28213
28214
28215
28216
28217
28218
28219
28220
28221
28222
28223
28224
28225
28226
28227
28228
28229
28230
28231
28232
28233
28234
28235
28236
28237
28238
28239
28240
28241
28242
28243
28244
28245
28246
28247
28248
28249
28250
28251
28252
28253
28254
28255
28256
28257
28258
28259
28260
28261
28262
28263
28264
28265
28266
28267
28268
28269
28270
28271
28272
28273
28274
28275
28276
28277
28278
28279
28280
28281
28282
28283
28284
28285
28286
28287
28288
28289
28290
28291
28292
28293
28294
28295
28296
28297
28298
28299
28300
28301
28302
28303
28304
28305
28306
28307
28308
28309
28310
28311
28312
28313
28314
28315
28316
28317
28318
28319
28320
28321
28322
28323
28324
28325
28326
28327
28328
28329
28330
28331
28332
28333
28334
28335
28336
28337
28338
28339
28340
28341
28342
28343
28344
28345
28346
28347
28348
28349
28350
28351
28352
28353
28354
28355
28356
28357
28358
28359
28360
28361
28362
28363
28364
28365
28366
28367
28368
28369
28370
28371
28372
28373
28374
28375
28376
28377
28378
28379
28380
28381
28382
28383
28384
28385
28386
28387
28388
28389
28390
28391
28392
28393
28394
28395
28396
28397
28398
28399
28400
28401
28402
28403
28404
28405
28406
28407
28408
28409
28410
28411
28412
28413
28414
28415
28416
28417
28418
28419
28420
28421
28422
28423
28424
28425
28426
28427
28428
28429
28430
28431
28432
28433
28434
28435
28436
28437
28438
28439
28440
28441
28442
28443
28444
28445
28446
28447
28448
28449
28450
28451
28452
28453
28454
28455
28456
28457
28458
28459
28460
28461
28462
28463
28464
28465
28466
28467
28468
28469
28470
28471
28472
28473
28474
28475
28476
28477
28478
28479
28480
28481
28482
28483
28484
28485
28486
28487
28488
28489
28490
28491
28492
28493
28494
28495
28496
28497
28498
28499
28500
28501
28502
28503
28504
28505
28506
28507
28508
28509
28510
28511
28512
28513
28514
28515
28516
28517
28518
28519
28520
28521
28522
28523
28524
28525
28526
28527
28528
28529
28530
28531
28532
28533
28534
28535
28536
28537
28538
28539
28540
28541
28542
28543
28544
28545
28546
28547
28548
28549
28550
28551
28552
28553
28554
28555
28556
28557
28558
28559
28560
28561
28562
28563
28564
28565
28566
28567
28568
28569
28570
28571
28572
28573
28574
28575
28576
28577
28578
28579
28580
28581
28582
28583
28584
28585
28586
28587
28588
28589
28590
28591
28592
28593
28594
28595
28596
28597
28598
28599
28600
28601
28602
28603
28604
28605
28606
28607
28608
28609
28610
28611
28612
28613
28614
28615
28616
28617
28618
28619
28620
28621
28622
28623
28624
28625
28626
28627
28628
28629
28630
28631
28632
28633
28634
28635
28636
28637
28638
28639
28640
28641
28642
28643
28644
28645
28646
28647
28648
28649
28650
28651
28652
28653
28654
28655
28656
28657
28658
28659
28660
28661
28662
28663
28664
28665
28666
28667
28668
28669
28670
28671
28672
28673
28674
28675
28676
28677
28678
28679
28680
28681
28682
28683
28684
28685
28686
28687
28688
28689
28690
28691
28692
28693
28694
28695
28696
28697
28698
28699
28700
28701
28702
28703
28704
28705
28706
28707
28708
28709
28710
28711
28712
28713
28714
28715
28716
28717
28718
28719
28720
28721
28722
28723
28724
28725
28726
28727
28728
28729
28730
28731
28732
28733
28734
28735
28736
28737
28738
28739
28740
28741
28742
28743
28744
28745
28746
28747
28748
28749
28750
28751
28752
28753
28754
28755
28756
28757
28758
28759
28760
28761
28762
28763
28764
28765
28766
28767
28768
28769
28770
28771
28772
28773
28774
28775
28776
28777
28778
28779
28780
28781
28782
28783
28784
28785
28786
28787
28788
28789
28790
28791
28792
28793
28794
28795
28796
28797
28798
28799
28800
28801
28802
28803
28804
28805
28806
28807
28808
28809
28810
28811
28812
28813
28814
28815
28816
28817
28818
28819
28820
28821
28822
28823
28824
28825
28826
28827
28828
28829
28830
28831
28832
28833
28834
28835
28836
28837
28838
28839
28840
28841
28842
28843
28844
28845
28846
28847
28848
28849
28850
28851
28852
28853
28854
28855
28856
28857
28858
28859
28860
28861
28862
28863
28864
28865
28866
28867
28868
28869
28870
28871
28872
28873
28874
28875
28876
28877
28878
28879
28880
28881
28882
28883
28884
28885
28886
28887
28888
28889
28890
28891
28892
28893
28894
28895
28896
28897
28898
28899
28900
28901
28902
28903
28904
28905
28906
28907
28908
28909
28910
28911
28912
28913
28914
28915
28916
28917
28918
28919
28920
28921
28922
28923
28924
28925
28926
28927
28928
28929
28930
28931
28932
28933
28934
28935
28936
28937
28938
28939
28940
28941
28942
28943
28944
28945
28946
28947
28948
28949
28950
28951
28952
28953
28954
28955
28956
28957
28958
28959
28960
28961
28962
28963
28964
28965
28966
28967
28968
28969
28970
28971
28972
28973
28974
28975
28976
28977
28978
28979
28980
28981
28982
28983
28984
28985
28986
28987
28988
28989
28990
28991
28992
28993
28994
28995
28996
28997
28998
28999
29000
29001
29002
29003
29004
29005
29006
29007
29008
29009
29010
29011
29012
29013
29014
29015
29016
29017
29018
29019
29020
29021
29022
29023
29024
29025
29026
29027
29028
29029
29030
29031
29032
29033
29034
29035
29036
29037
29038
29039
29040
29041
29042
29043
29044
29045
29046
29047
29048
29049
29050
29051
29052
29053
29054
29055
29056
29057
29058
29059
29060
29061
29062
29063
29064
29065
29066
29067
29068
29069
29070
29071
29072
29073
29074
29075
29076
29077
29078
29079
29080
29081
29082
29083
29084
29085
29086
29087
29088
29089
29090
29091
29092
29093
29094
29095
29096
29097
29098
29099
29100
29101
29102
29103
29104
29105
29106
29107
29108
29109
29110
29111
29112
29113
29114
29115
29116
29117
29118
29119
29120
29121
29122
29123
29124
29125
29126
29127
29128
29129
29130
29131
29132
29133
29134
29135
29136
29137
29138
29139
29140
29141
29142
29143
29144
29145
29146
29147
29148
29149
29150
29151
29152
29153
29154
29155
29156
29157
29158
29159
29160
29161
29162
29163
29164
29165
29166
29167
29168
29169
29170
29171
29172
29173
29174
29175
29176
29177
29178
29179
29180
29181
29182
29183
29184
29185
29186
29187
29188
29189
29190
29191
29192
29193
29194
29195
29196
29197
29198
29199
29200
29201
29202
29203
29204
29205
29206
29207
29208
29209
29210
29211
29212
29213
29214
29215
29216
29217
29218
29219
29220
29221
29222
29223
29224
29225
29226
29227
29228
29229
29230
29231
29232
29233
29234
29235
29236
29237
29238
29239
29240
29241
29242
29243
29244
29245
29246
29247
29248
29249
29250
29251
29252
29253
29254
29255
29256
29257
29258
29259
29260
29261
29262
29263
29264
29265
29266
29267
29268
29269
29270
29271
29272
29273
29274
29275
29276
29277
29278
29279
29280
29281
29282
29283
29284
29285
29286
29287
29288
29289
29290
29291
29292
29293
29294
29295
29296
29297
29298
29299
29300
29301
29302
29303
29304
29305
29306
29307
29308
29309
29310
29311
29312
29313
29314
29315
29316
29317
29318
29319
29320
29321
29322
29323
29324
29325
29326
29327
29328
29329
29330
29331
29332
29333
29334
29335
29336
29337
29338
29339
29340
29341
29342
29343
29344
29345
29346
29347
29348
29349
29350
29351
29352
29353
29354
29355
29356
29357
29358
29359
29360
29361
29362
29363
29364
29365
29366
29367
29368
29369
29370
29371
29372
29373
29374
29375
29376
29377
29378
29379
29380
29381
29382
29383
29384
29385
29386
29387
29388
29389
29390
29391
29392
29393
29394
29395
29396
29397
29398
29399
29400
29401
29402
29403
29404
29405
29406
29407
29408
29409
29410
29411
29412
29413
29414
29415
29416
29417
29418
29419
29420
29421
29422
29423
29424
29425
29426
29427
29428
29429
29430
29431
29432
29433
29434
29435
29436
29437
29438
29439
29440
29441
29442
29443
29444
29445
29446
29447
29448
29449
29450
29451
29452
29453
29454
29455
29456
29457
29458
29459
29460
29461
29462
29463
29464
29465
29466
29467
29468
29469
29470
29471
29472
29473
29474
29475
29476
29477
29478
29479
29480
29481
29482
29483
29484
29485
29486
29487
29488
29489
29490
29491
29492
29493
29494
29495
29496
29497
29498
29499
29500
29501
29502
29503
29504
29505
29506
29507
29508
29509
29510
29511
29512
29513
29514
29515
29516
29517
29518
29519
29520
29521
29522
29523
29524
29525
29526
29527
29528
29529
29530
29531
29532
29533
29534
29535
29536
29537
29538
29539
29540
29541
29542
29543
29544
29545
29546
29547
29548
29549
29550
29551
29552
29553
29554
29555
29556
29557
29558
29559
29560
29561
29562
29563
29564
29565
29566
29567
29568
29569
29570
29571
29572
29573
29574
29575
29576
29577
29578
29579
29580
29581
29582
29583
29584
29585
29586
29587
29588
29589
29590
29591
29592
29593
29594
29595
29596
29597
29598
29599
29600
29601
29602
29603
29604
29605
29606
29607
29608
29609
29610
29611
29612
29613
29614
29615
29616
29617
29618
29619
29620
29621
29622
29623
29624
29625
29626
29627
29628
29629
29630
29631
29632
29633
29634
29635
29636
29637
29638
29639
29640
29641
29642
29643
29644
29645
29646
29647
29648
29649
29650
29651
29652
29653
29654
29655
29656
29657
29658
29659
29660
29661
29662
29663
29664
29665
29666
29667
29668
29669
29670
29671
29672
29673
29674
29675
29676
29677
29678
29679
29680
29681
29682
29683
29684
29685
29686
29687
29688
29689
29690
29691
29692
29693
29694
29695
29696
29697
29698
29699
29700
29701
29702
29703
29704
29705
29706
29707
29708
29709
29710
29711
29712
29713
29714
29715
29716
29717
29718
29719
29720
29721
29722
29723
29724
29725
29726
29727
29728
29729
29730
29731
29732
29733
29734
29735
29736
29737
29738
29739
29740
29741
29742
29743
29744
29745
29746
29747
29748
29749
29750
29751
29752
29753
29754
29755
29756
29757
29758
29759
29760
29761
29762
29763
29764
29765
29766
29767
29768
29769
29770
29771
29772
29773
29774
29775
29776
29777
29778
29779
29780
29781
29782
29783
29784
29785
29786
29787
29788
29789
29790
29791
29792
29793
29794
29795
29796
29797
29798
29799
29800
29801
29802
29803
29804
29805
29806
29807
29808
29809
29810
29811
29812
29813
29814
29815
29816
29817
29818
29819
29820
29821
29822
29823
29824
29825
29826
29827
29828
29829
29830
29831
29832
29833
29834
29835
29836
29837
29838
29839
29840
29841
29842
29843
29844
29845
29846
29847
29848
29849
29850
29851
29852
29853
29854
29855
29856
29857
29858
29859
29860
29861
29862
29863
29864
29865
29866
29867
29868
29869
29870
29871
29872
29873
29874
29875
29876
29877
29878
29879
29880
29881
29882
29883
29884
29885
29886
29887
29888
29889
29890
29891
29892
29893
29894
29895
29896
29897
29898
29899
29900
29901
29902
29903
29904
29905
29906
29907
29908
29909
29910
29911
29912
29913
29914
29915
29916
29917
29918
29919
29920
29921
29922
29923
29924
29925
29926
29927
29928
29929
29930
29931
29932
29933
29934
29935
29936
29937
29938
29939
29940
29941
29942
29943
29944
29945
29946
29947
29948
29949
29950
29951
29952
29953
29954
29955
29956
29957
29958
29959
29960
29961
29962
29963
29964
29965
29966
29967
29968
29969
29970
29971
29972
29973
29974
29975
29976
29977
29978
29979
29980
29981
29982
29983
29984
29985
29986
29987
29988
29989
29990
29991
29992
29993
29994
29995
29996
29997
29998
29999
30000
30001
30002
30003
30004
30005
30006
30007
30008
30009
30010
30011
30012
30013
30014
30015
30016
30017
30018
30019
30020
30021
30022
30023
30024
30025
30026
30027
30028
30029
30030
30031
30032
30033
30034
30035
30036
30037
30038
30039
30040
30041
30042
30043
30044
30045
30046
30047
30048
30049
30050
30051
30052
30053
30054
30055
30056
30057
30058
30059
30060
30061
30062
30063
30064
30065
30066
30067
30068
30069
30070
30071
30072
30073
30074
30075
30076
30077
30078
30079
30080
30081
30082
30083
30084
30085
30086
30087
30088
30089
30090
30091
30092
30093
30094
30095
30096
30097
30098
30099
30100
30101
30102
30103
30104
30105
30106
30107
30108
30109
30110
30111
30112
30113
30114
30115
30116
30117
30118
30119
30120
30121
30122
30123
30124
30125
30126
30127
30128
30129
30130
30131
30132
30133
30134
30135
30136
30137
30138
30139
30140
30141
30142
30143
30144
30145
30146
30147
30148
30149
30150
30151
30152
30153
30154
30155
30156
30157
30158
30159
30160
30161
30162
30163
30164
30165
30166
30167
30168
30169
30170
30171
30172
30173
30174
30175
30176
30177
30178
30179
30180
30181
30182
30183
30184
30185
30186
30187
30188
30189
30190
30191
30192
30193
30194
30195
30196
30197
30198
30199
30200
30201
30202
30203
30204
30205
30206
30207
30208
30209
30210
30211
30212
30213
30214
30215
30216
30217
30218
30219
30220
30221
30222
30223
30224
30225
30226
30227
30228
30229
30230
30231
30232
30233
30234
30235
30236
30237
30238
30239
30240
30241
30242
30243
30244
30245
30246
30247
30248
30249
30250
30251
30252
30253
30254
30255
30256
30257
30258
30259
30260
30261
30262
30263
30264
30265
30266
30267
30268
30269
30270
30271
30272
30273
30274
30275
30276
30277
30278
30279
30280
30281
30282
30283
30284
30285
30286
30287
30288
30289
30290
30291
30292
30293
30294
30295
30296
30297
30298
30299
30300
30301
30302
30303
30304
30305
30306
30307
30308
30309
30310
30311
30312
30313
30314
30315
30316
30317
30318
30319
30320
30321
30322
30323
30324
30325
30326
30327
30328
30329
30330
30331
30332
30333
30334
30335
30336
30337
30338
30339
30340
30341
30342
30343
30344
30345
30346
30347
30348
30349
30350
30351
30352
30353
30354
30355
30356
30357
30358
30359
30360
30361
30362
30363
30364
30365
30366
30367
30368
30369
30370
30371
30372
30373
30374
30375
30376
30377
30378
30379
30380
30381
30382
30383
30384
30385
30386
30387
30388
30389
30390
30391
30392
30393
30394
30395
30396
30397
30398
30399
30400
30401
30402
30403
30404
30405
30406
30407
30408
30409
30410
30411
30412
30413
30414
30415
30416
30417
30418
30419
30420
30421
30422
30423
30424
30425
30426
30427
30428
30429
30430
30431
30432
30433
30434
30435
30436
30437
30438
30439
30440
30441
30442
30443
30444
30445
30446
30447
30448
30449
30450
30451
30452
30453
30454
30455
30456
30457
30458
30459
30460
30461
30462
30463
30464
30465
30466
30467
30468
30469
30470
30471
30472
30473
30474
30475
30476
30477
30478
30479
30480
30481
30482
30483
30484
30485
30486
30487
30488
30489
30490
30491
30492
30493
30494
30495
30496
30497
30498
30499
30500
30501
30502
30503
30504
30505
30506
30507
30508
30509
30510
30511
30512
30513
30514
30515
30516
30517
30518
30519
30520
30521
30522
30523
30524
30525
30526
30527
30528
30529
30530
30531
30532
30533
30534
30535
30536
30537
30538
30539
30540
30541
30542
30543
30544
30545
30546
30547
30548
30549
30550
30551
30552
30553
30554
30555
30556
30557
30558
30559
30560
30561
30562
30563
30564
30565
30566
30567
30568
30569
30570
30571
30572
30573
30574
30575
30576
30577
30578
30579
30580
30581
30582
30583
30584
30585
30586
30587
30588
30589
30590
30591
30592
30593
30594
30595
30596
30597
30598
30599
30600
30601
30602
30603
30604
30605
30606
30607
30608
30609
30610
30611
30612
30613
30614
30615
30616
30617
30618
30619
30620
30621
30622
30623
30624
30625
30626
30627
30628
30629
30630
30631
30632
30633
30634
30635
30636
30637
30638
30639
30640
30641
30642
30643
30644
30645
30646
30647
30648
30649
30650
30651
30652
30653
30654
30655
30656
30657
30658
30659
30660
30661
30662
30663
30664
30665
30666
30667
30668
30669
30670
30671
30672
30673
30674
30675
30676
30677
30678
30679
30680
30681
30682
30683
30684
30685
30686
30687
30688
30689
30690
30691
30692
30693
30694
30695
30696
30697
30698
30699
30700
30701
30702
30703
30704
30705
30706
30707
30708
30709
30710
|
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2006-2022 Oracle and/or its affiliates.
This file is part of VirtualBox base platform packages, as
available from https://www.virtualbox.org.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation, in version 3 of the
License.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, see <https://www.gnu.org/licenses>.
SPDX-License-Identifier: GPL-3.0-only
-->
<!--
This is the master declaration for VirtualBox's Main API,
represented by COM/XPCOM and web service interfaces.
From this document, the build system generates several files
via XSLT that are then used during the build process.
Below is the list of XSL templates that operate on this file and
output files they generate. These XSL templates must be updated
whenever the schema of this file changes:
1. src/VBox/Main/idl/midl.xsl =>
out/<platform>/bin/sdk/idl/VirtualBox.idl
(MS COM interface definition file for Main API)
2. src/VBox/Main/idl/xpidl.xsl =>
out/<platform>/bin/sdk/idl/VirtualBox_XPCOM.idl
(XPCOM interface definition file for Main API)
3. src/VBox/Main/idl/doxygen.xsl =>
out/<platform>/obj/src/VBox/Main/VirtualBox.idl
(pseudo-IDL for Doxygen to generate the official Main API
documentation)
4. src/VBox/Main/webservice/*.xsl =>
a bunch of WSDL and C++ files
(VirtualBox web service sources and SOAP mappers;
see src/VBox/Main/webservice/Makefile.kmk for details)
5. src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl =>
out/<platform>/obj/src/VBox/Frontends/VirtualBox/VirtualBox/include/COMWrappers.h
(smart Qt-based C++ wrapper classes for COM interfaces
of the Main API)
6. src/VBox/Installer/win32/VirtualBox_TypeLib.xsl =>
out/<platform>/obj/src/VBox/Installer/win32/VirtualBox_TypeLib.wxi
(Main API TypeLib block for the WiX installer)
7. src/VBox/Runtime/common/err/errmsgvboxcom.xsl =>
out/<platform>/obj/Runtime/errmsgvboxcomdata.h
(<result> extraction for the %Rhrc format specifier)
Note! SlickEdit users can use the 'xml_validate' command on the SlickEdit
command line to verify the document against the DTD. Uncomment the
DOCTYPE below first (java doesn't seem to like it).
-->
<!DOCTYPE idl SYSTEM "VirtualBox.dtd">
<idl>
<desc>
Welcome to the <b>VirtualBox Main API documentation</b>. This documentation
describes the so-called <i>VirtualBox Main API</i> which comprises all public
COM interfaces and components provided by the VirtualBox server and by the
VirtualBox client library.
VirtualBox employs a client-server design, meaning that whenever any part of
VirtualBox is running -- be it the Qt GUI, the VBoxManage command-line
interface or any virtual machine --, a dedicated server process named
VBoxSVC runs in the background. This allows multiple processes working with
VirtualBox to cooperate without conflicts. These processes communicate to each
other using inter-process communication facilities provided by the COM
implementation of the host computer.
On Windows platforms, the VirtualBox Main API uses Microsoft COM, a native COM
implementation. On all other platforms, Mozilla XPCOM, an open-source COM
implementation, is used.
All the parts that a typical VirtualBox user interacts with (the Qt GUI
and the VBoxManage command-line interface) are technically
front-ends to the Main API and only use the interfaces that are documented
in this Main API documentation. This ensures that, with any given release
version of VirtualBox, all capabilities of the product that could be useful
to an external client program are always exposed by way of this API.
The VirtualBox Main API (also called the <i>VirtualBox COM library</i>)
contains two public component classes:
<tt>%VirtualBox.VirtualBox</tt> and <tt>%VirtualBox.Session</tt>, which
implement IVirtualBox and ISession interfaces respectively. These two classes
are of supreme importance and will be needed in order for any front-end
program to do anything useful. It is recommended to read the documentation of
the mentioned interfaces first.
The <tt>%VirtualBox.VirtualBox</tt> class is a singleton. This means that
there can be only one object of this class on the local machine at any given
time. This object is a parent of many other objects in the VirtualBox COM
library and lives in the VBoxSVC process. In fact, when you create an instance
of the <tt>VirtualBox.VirtualBox</tt>, the COM subsystem checks if the VBoxSVC
process is already running, starts it if not, and returns you a reference to
the <tt>VirtualBox</tt> object created in this process. When the last reference
to this object is released, the VBoxSVC process ends (with a 5 second delay to
protect from too frequent restarts).
The <tt>%VirtualBox.Session</tt> class is a regular component. You can create
as many <tt>Session</tt> objects as you need but all of them will live in a
process which issues the object instantiation call. <tt>Session</tt> objects
represent virtual machine sessions which are used to configure virtual
machines and control their execution.
The naming of methods and attributes is very clearly defined: they all start
with a lowercase letter (except if they start with an acronym), and are using
CamelCase style otherwise. This naming only applies to the IDL description,
and is modified by the various language bindings (some convert the first
character to upper case, some not). See the SDK reference for more details
about how to call a method or attribute from a specific programming language.
</desc>
<if target="midl">
<cpp line="enum {"/>
<cpp line=" kTypeLibraryMajorVersion = 1,"/>
<cpp line=" kTypeLibraryMinorVersion = 3"/>
<cpp line="};"/>
</if>
<if target="xpidl">
<!-- NS_IMPL_THREADSAFE_ISUPPORTSxx_CI macros are placed here, for convenience -->
<cpp>
/* currently, nsISupportsImpl.h lacks the below-like macros */
#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI NS_IMPL_QUERY_INTERFACE1_CI
#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI NS_IMPL_QUERY_INTERFACE2_CI
#define NS_IMPL_THREADSAFE_QUERY_INTERFACE3_CI NS_IMPL_QUERY_INTERFACE3_CI
#define NS_IMPL_THREADSAFE_QUERY_INTERFACE4_CI NS_IMPL_QUERY_INTERFACE4_CI
#define NS_IMPL_THREADSAFE_QUERY_INTERFACE5_CI NS_IMPL_QUERY_INTERFACE5_CI
#define NS_IMPL_THREADSAFE_QUERY_INTERFACE6_CI NS_IMPL_QUERY_INTERFACE6_CI
#define NS_IMPL_THREADSAFE_QUERY_INTERFACE7_CI NS_IMPL_QUERY_INTERFACE7_CI
#define NS_IMPL_THREADSAFE_QUERY_INTERFACE8_CI NS_IMPL_QUERY_INTERFACE8_CI
#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
# define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
NS_IMPL_THREADSAFE_ADDREF(_class) \
NS_IMPL_THREADSAFE_RELEASE(_class) \
NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI(_class, _interface) \
NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
#endif
#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
# define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
NS_IMPL_THREADSAFE_ADDREF(_class) \
NS_IMPL_THREADSAFE_RELEASE(_class) \
NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
#endif
#ifndef NS_IMPL_THREADSAFE_ISUPPORTS3_CI
# define NS_IMPL_THREADSAFE_ISUPPORTS3_CI(_class, _i1, _i2, _i3) \
NS_IMPL_THREADSAFE_ADDREF(_class) \
NS_IMPL_THREADSAFE_RELEASE(_class) \
NS_IMPL_THREADSAFE_QUERY_INTERFACE3_CI(_class, _i1, _i2, _i3) \
NS_IMPL_CI_INTERFACE_GETTER3(_class, _i1, _i2, _i3)
#endif
#ifndef NS_IMPL_THREADSAFE_ISUPPORTS4_CI
# define NS_IMPL_THREADSAFE_ISUPPORTS4_CI(_class, _i1, _i2, _i3, _i4) \
NS_IMPL_THREADSAFE_ADDREF(_class) \
NS_IMPL_THREADSAFE_RELEASE(_class) \
NS_IMPL_THREADSAFE_QUERY_INTERFACE4_CI(_class, _i1, _i2, _i3, _i4) \
NS_IMPL_CI_INTERFACE_GETTER4(_class, _i1, _i2, _i3, _i4)
#endif
#ifndef NS_IMPL_THREADSAFE_ISUPPORTS5_CI
# define NS_IMPL_THREADSAFE_ISUPPORTS5_CI(_class, _i1, _i2, _i3, _i4, _i5) \
NS_IMPL_THREADSAFE_ADDREF(_class) \
NS_IMPL_THREADSAFE_RELEASE(_class) \
NS_IMPL_THREADSAFE_QUERY_INTERFACE5_CI(_class, _i1, _i2, _i3, _i4, _i5) \
NS_IMPL_CI_INTERFACE_GETTER5(_class, _i1, _i2, _i3, _i4, _i5)
#endif
#ifndef NS_IMPL_THREADSAFE_ISUPPORTS6_CI
# define NS_IMPL_THREADSAFE_ISUPPORTS6_CI(_class, _i1, _i2, _i3, _i4, _i5, _i6) \
NS_IMPL_THREADSAFE_ADDREF(_class) \
NS_IMPL_THREADSAFE_RELEASE(_class) \
NS_IMPL_THREADSAFE_QUERY_INTERFACE6_CI(_class, _i1, _i2, _i3, _i4, _i5, _i6) \
NS_IMPL_CI_INTERFACE_GETTER6(_class, _i1, _i2, _i3, _i4, _i5, _i6)
#endif
#ifndef NS_IMPL_THREADSAFE_ISUPPORTS7_CI
# define NS_IMPL_THREADSAFE_ISUPPORTS7_CI(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7) \
NS_IMPL_THREADSAFE_ADDREF(_class) \
NS_IMPL_THREADSAFE_RELEASE(_class) \
NS_IMPL_THREADSAFE_QUERY_INTERFACE7_CI(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7) \
NS_IMPL_CI_INTERFACE_GETTER7(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7)
#endif
#ifndef NS_IMPL_THREADSAFE_ISUPPORTS8_CI
# define NS_IMPL_THREADSAFE_ISUPPORTS8_CI(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7, _i8) \
NS_IMPL_THREADSAFE_ADDREF(_class) \
NS_IMPL_THREADSAFE_RELEASE(_class) \
NS_IMPL_THREADSAFE_QUERY_INTERFACE8_CI(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7, _i8) \
NS_IMPL_CI_INTERFACE_GETTER8(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7, _i8)
#endif
#ifndef NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
# define NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
NS_INTERFACE_MAP_BEGIN(_class) \
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
NS_IMPL_QUERY_CLASSINFO(_class) \
NS_INTERFACE_MAP_END
#endif
#ifndef NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
# define NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
_i2, _ic2) \
NS_INTERFACE_MAP_BEGIN(_class) \
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
NS_IMPL_QUERY_CLASSINFO(_class) \
NS_INTERFACE_MAP_END
#endif
#ifndef NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI
# define NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI(_class, _i1, _ic1, \
_i2, _ic2, _i3, _ic3) \
NS_INTERFACE_MAP_BEGIN(_class) \
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i3, _ic3) \
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
NS_IMPL_QUERY_CLASSINFO(_class) \
NS_INTERFACE_MAP_END
#endif
#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
#define NS_IMPL_THREADSAFE_QUERY_INTERFACE3_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI
#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI
# define NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI(_class, _i1, _ic1) \
NS_IMPL_THREADSAFE_ADDREF(_class) \
NS_IMPL_THREADSAFE_RELEASE(_class) \
NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
NS_IMPL_CI_INTERFACE_GETTER1(_class, _i1)
#endif
#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI
# define NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI(_class, _i1, _ic1, \
_i2, _ic2) \
NS_IMPL_THREADSAFE_ADDREF(_class) \
NS_IMPL_THREADSAFE_RELEASE(_class) \
NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
_i2, _ic2) \
NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
#endif
#ifndef NS_IMPL_THREADSAFE_ISUPPORTS3_AMBIGUOUS_CI
# define NS_IMPL_THREADSAFE_ISUPPORTS3_AMBIGUOUS_CI(_class, _i1, _ic1, \
_i2, _ic2, _i3, _ic3) \
NS_IMPL_THREADSAFE_ADDREF(_class) \
NS_IMPL_THREADSAFE_RELEASE(_class) \
NS_IMPL_THREADSAFE_QUERY_INTERFACE3_AMBIGUOUS_CI(_class, _i1, _ic1, \
_i2, _ic2, _i3, _ic3) \
NS_IMPL_CI_INTERFACE_GETTER3(_class, _i1, _i2, _i3)
#endif
</cpp>
</if>
<!--
Note!! Don't forget to update the python bindings (++) when changing the
UUID or version!!
-->
<library
name="VirtualBox"
uuid="d7569351-1750-46f0-936e-bd127d5bc264"
version="1.3"
>
<application
name="VirtualBox"
uuid="819B4D85-9CEE-493C-B6FC-64FFE759B3C9"
supportsErrorInfo="yes"
>
<!--
// COM result codes for VirtualBox
/////////////////////////////////////////////////////////////////////////
-->
<descGroup id="VirtualBox_COM_result_codes" title="VirtualBox COM result codes">
<desc>
This section describes all VirtualBox-specific COM result codes that may
be returned by methods of VirtualBox COM interfaces in addition to
standard COM result codes.
Note that along with the result code, every VirtualBox method returns
extended error information through the IVirtualBoxErrorInfo interface on
failure. This interface is a preferred way to present the error to the end
user because it contains a human readable description of the error. Raw
result codes, both standard and described in this section, are intended to
be used by programs to analyze the reason of a failure and select an
appropriate course of action without involving the end user (for example,
retry the operation later or make a different call).
The standard COM result codes that may originate from our methods include:
<dl>
<dt><tt>E_INVALIDARG</tt></dt>
<dd>
Returned when the value of the method's argument is not within the range
of valid values. This should not be confused with situations when the
value is within the range but simply doesn't suit the current object
state and there is a possibility that it will be accepted later (in such
cases VirtualBox-specific codes are returned, for example,
<link to="VBOX_E_OBJECT_NOT_FOUND"/>).
</dd>
<dt><tt>E_POINTER</tt></dt>
<dd>
Returned if a memory pointer for the output argument is invalid (for
example, @c null). When pointers representing input arguments (such
as strings) are invalid, E_INVALIDARG is returned.
</dd>
<dt><tt>E_ACCESSDENIED</tt></dt>
<dd>
Returned when the called object is not ready. Since the lifetime of a
public COM object cannot be fully controlled by the implementation,
VirtualBox maintains the readiness state for all objects it creates and
returns this code in response to any method call on the object that was
deactivated by VirtualBox and is not functioning any more.
</dd>
<dt><tt>E_OUTOFMEMORY</tt></dt>
<dd>
Returned when a memory allocation operation fails.
</dd>
</dl>
</desc>
</descGroup>
<!--
Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
everything in <result>/<desc> after (and including) the first dot, so express
the matter of the error code in the first sentence and keep it short.
-->
<result name="VBOX_E_OBJECT_NOT_FOUND" value="0x80BB0001">
<desc>
Object corresponding to the supplied arguments does not exist.
</desc>
</result>
<result name="VBOX_E_INVALID_VM_STATE" value="0x80BB0002">
<desc>
Current virtual machine state prevents the operation.
</desc>
</result>
<result name="VBOX_E_VM_ERROR" value="0x80BB0003">
<desc>
Virtual machine error occurred attempting the operation.
</desc>
</result>
<result name="VBOX_E_FILE_ERROR" value="0x80BB0004">
<desc>
File not accessible or erroneous file contents.
</desc>
</result>
<result name="VBOX_E_IPRT_ERROR" value="0x80BB0005">
<desc>
Runtime subsystem error.
</desc>
</result>
<result name="VBOX_E_PDM_ERROR" value="0x80BB0006">
<desc>
Pluggable Device Manager error.
</desc>
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE" value="0x80BB0007">
<desc>
Current object state prohibits operation.
</desc>
</result>
<result name="VBOX_E_HOST_ERROR" value="0x80BB0008">
<desc>
Host operating system related error.
</desc>
</result>
<result name="VBOX_E_NOT_SUPPORTED" value="0x80BB0009">
<desc>
Requested operation is not supported.
</desc>
</result>
<result name="VBOX_E_XML_ERROR" value="0x80BB000A">
<desc>
Invalid XML found.
</desc>
</result>
<result name="VBOX_E_INVALID_SESSION_STATE" value="0x80BB000B">
<desc>
Current session state prohibits operation.
</desc>
</result>
<result name="VBOX_E_OBJECT_IN_USE" value="0x80BB000C">
<desc>
Object being in use prohibits operation.
</desc>
</result>
<result name="VBOX_E_PASSWORD_INCORRECT" value="0x80BB000D">
<desc>
A provided password was incorrect.
</desc>
</result>
<result name="VBOX_E_MAXIMUM_REACHED" value="0x80BB000E">
<desc>
A maximum has been reached.
</desc>
</result>
<result name="VBOX_E_GSTCTL_GUEST_ERROR" value="0x80BB000F">
<desc>
Guest Control reported an error from the guest side.
</desc>
</result>
<result name="VBOX_E_TIMEOUT" value="0x80BB0010">
<desc>
The operation ran into an explicitly requested timeout.
</desc>
</result>
<result name="VBOX_E_DND_ERROR" value="0x80BB0011">
<desc>
A drag and drop error has occurred.
</desc>
</result>
<!--
Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
everything in <result>/<desc> after (and including) the first dot, so express
the matter of the error code in the first sentence and keep it short.
-->
<descGroup/>
<!--
// all common enums
/////////////////////////////////////////////////////////////////////////
-->
<enum
name="SettingsVersion"
uuid="b4cc23c2-96f2-419d-830b-bd13c1135dfb"
>
<desc>
Settings version of VirtualBox settings files. This is written to
the "version" attribute of the root "VirtualBox" element in the settings
file XML and indicates which VirtualBox version wrote the file.
</desc>
<const name="Null" value="0">
<desc>Null value, indicates invalid version.</desc>
</const>
<const name="v1_0" value="1">
<desc>Legacy settings version, not currently supported.</desc>
</const>
<const name="v1_1" value="2">
<desc>Legacy settings version, not currently supported.</desc>
</const>
<const name="v1_2" value="3">
<desc>Legacy settings version, not currently supported.</desc>
</const>
<const name="v1_3pre" value="4">
<desc>Legacy settings version, not currently supported.</desc>
</const>
<const name="v1_3" value="5">
<desc>Settings version "1.3", written by VirtualBox 2.0.12.</desc>
<!--
Machine XML: Capitalization of Uart, Lpt elements and many attributes changed.
-->
</const>
<const name="v1_4" value="6">
<desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
<!--
VirtualBox.xml: big DiskRegistry -> MediaRegistry revamp, various HardDisk types merged
(was VirtualDiskImage, VMDKImage, VHDImage, ISCSIHardDisk, CustomHardDisk, DiffHardDisk)
-->
</const>
<const name="v1_5" value="7">
<desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
<!--
2008-09-04: 2.0.0 released
2008-11-20: settings version 1.5 introduced
2008-12-17: 2.1.0 released
Machine changes:
guest OS identifiers changed;
Machine/Hardware/Display/MonitorCount renamed to monitorCount;
Machine/Hardware/Display/Accelerate3D renamed to accelerate3D;
Machine/Hardware/CPU/CPUCount/@count changed to CPU/@count
-->
</const>
<const name="v1_6" value="8">
<desc>Settings version "1.6", written by VirtualBox 2.1.4 (at least).</desc>
<!--
2008-12-17: 2.1.0 released
2008-12-19: settings version 1.6 introduced (is in 2.1 branch)
2009-04-08: 2.2.0 released
Machine changes: remove all Machine/Hardware/Network/Adapter/HostInterface[@TAPSetup or @TAPTerminate]/ attributes (done)
-->
</const>
<const name="v1_7" value="9">
<desc>Settings version "1.7", written by VirtualBox 2.2.x and 3.0.x.</desc>
<!--
2008-12-17: 2.1.0 released
2009-03-11: settings version 1.7 introduced (is in 2.2 branch)
2009-04-08: 2.2.0 released
VirtualBox.xml additions: NetserviceRegistry with DHCPServers (done)
Machine changes: HardDiskAttachments is now StorageControllers (done)
-->
</const>
<const name="v1_8" value="10">
<desc>Intermediate settings version "1.8", understood by VirtualBox 3.1.x.</desc>
<!--
Machine additions: Display/@accelerate2DVideo (done)
-->
</const>
<const name="v1_9" value="11">
<desc>Settings version "1.9", written by VirtualBox 3.1.x.</desc>
<!--
The big storage controller / DVD / Floppy rework (done)
-->
</const>
<const name="v1_10" value="12">
<desc>Settings version "1.10", written by VirtualBox 3.2.x.</desc>
<!--
Machine changes: RTC localOrUTC (done)
CPU hot-plug support
-->
</const>
<const name="v1_11" value="13">
<desc>Settings version "1.11", written by VirtualBox 4.0.x.</desc>
<!--
Machine changes: HD Audio controller, per-machine disk registries,
/@format attribute for DVD and floppy images.
-->
</const>
<const name="v1_12" value="14">
<desc>Settings version "1.12", written by VirtualBox 4.1.x.</desc>
<!--
Machine changes: raw PCI device attachment;
NetworkAdapter changes: bandwidth group.
-->
</const>
<const name="v1_13" value="15">
<desc>Settings version "1.13", written by VirtualBox 4.2.x.</desc>
<!--
Machine changes: tracing config, groups, autostart;
NetworkAdapter changes: unit for bandwidth group limits.
-->
</const>
<const name="v1_14" value="16">
<desc>Settings version "1.14", written by VirtualBox 4.3.x.</desc>
<!--
Machine changes: default frontend, USB rework.
-->
</const>
<const name="v1_15" value="17">
<desc>Settings version "1.15", written by VirtualBox 5.0.x.</desc>
<!--
Machine changes: hot-plug flag for storage devices.
-->
</const>
<const name="v1_16" value="18">
<desc>Settings version "1.16", written by VirtualBox 5.1.x.</desc>
<!--
Machine changes: NVMe storage controller, paravirt debug options, CPU
profile and BIOS/CPU APIC settings.
VirtualBox.xml: Add support for additional USB device sources (e.g. USB/IP)
-->
</const>
<const name="v1_17" value="19">
<desc>Settings version "1.17", written by VirtualBox 6.0.x.</desc>
<!--
Machine changes: nested hardware virtualization, hardware
virtualization using native API, shared folder automount point,
UART type selection and VM process priority.
-->
</const>
<const name="v1_18" value="20">
<desc>Settings version "1.18", written by VirtualBox 6.1.x.</desc>
<!--
Machine changes: virtio-scsi storage controller, NVRAM device.
-->
</const>
<const name="v1_19" value="21">
<desc>Settings version "1.19", written by VirtualBox 7.0.x.</desc>
<!--
VirtualBox.xml additions: HostOnlyNetworks in NetserviceRegistry
Machine changes: IOMMU device, HostOnlyNetwork mode for
NetworkAdapter, full VM encryption.
-->
</const>
<const name="Future" value="99999">
<desc>Settings version greater than "1.19", written by a future VirtualBox version.</desc>
</const>
</enum>
<enum
name="AccessMode"
uuid="1da0007c-ddf7-4be8-bcac-d84a1558785f"
>
<desc>
Access mode for opening files.
</desc>
<const name="ReadOnly" value="1"/>
<const name="ReadWrite" value="2"/>
</enum>
<enum
name="MachineState"
uuid="00bc01b5-00a4-48db-000a-9061008357aa"
>
<desc>
Virtual machine execution state.
This enumeration represents possible values of the <link
to="IMachine::state"/> attribute.
Below is the basic virtual machine state diagram. It shows how the state
changes during virtual machine execution. The text in square braces shows
a method of the IConsole or IMachine interface that performs the given state
transition.
<pre>
+---------[powerDown()] <- Stuck <--[failure]-+
V |
+-> PoweredOff --+-->[powerUp()]--> Starting --+ | +-----[resume()]-----+
| | | | V |
| Aborted <----+ +--> Running --[pause()]--> Paused
| | ^ | ^ |
| AbortedSaved <-----------[failure]-----<----+ | | | |
| | | | | | |
| +-------------+ | | | | |
| V | | | | |
| Saved --------[powerUp()]-----> Restoring -+ | | | |
| ^ | | | |
| | +-----------------------------------------+-|-------------------+ +
| | | | |
| | +- OnlineSnapshotting <--[takeSnapshot()]<--+---------------------+
| | | |
| +-------- Saving <--------[saveState()]<----------+---------------------+
| | |
+-------------- Stopping -------[powerDown()]<----------+---------------------+
</pre>
Note that states to the right of PoweredOff, Aborted, AbortedSaved, and
Saved in the above diagram are called <i>online VM states</i>. These
states represent the virtual machine which is being executed in a
dedicated process (usually with a GUI window attached to it where you can
see the activity of the virtual machine and interact with it). There are
two special pseudo-states, FirstOnline and LastOnline, that can be used
in relational expressions to detect if the given machine state is online
or not:
<pre>
if (machine.GetState() >= MachineState_FirstOnline &&
machine.GetState() <= MachineState_LastOnline)
{
...the machine is being executed...
}
</pre>
When the virtual machine is in one of the online VM states (that is, being
executed), only a few machine settings can be modified. Methods working
with such settings contain an explicit note about that. An attempt to
change any other setting or perform a modifying operation during this time
will result in the @c VBOX_E_INVALID_VM_STATE error.
All online states except Running, Paused and Stuck are transitional: they
represent temporary conditions of the virtual machine that will last as
long as the operation that initiated such a condition.
The Stuck state is a special case. It means that execution of the machine
has reached the "Guru Meditation" condition. This condition indicates an
internal VMM (virtual machine manager) failure which may happen as a
result of either an unhandled low-level virtual hardware exception or one
of the recompiler exceptions (such as the <i>too-many-traps</i>
condition).
Note also that any online VM state may transit to the Aborted state. This
happens if the process that is executing the virtual machine terminates
unexpectedly (for example, crashes). Other than that, the Aborted state is
equivalent to PoweredOff.
There are also a few additional state diagrams that do not deal with
virtual machine execution and therefore are shown separately. The states
shown on these diagrams are called <i>offline VM states</i> (this includes
PoweredOff, Aborted, AbortedSaved and Saved too).
The first diagram shows what happens when a lengthy setup operation is
being executed (such as <link to="IMachine::attachDevice"/>).
<pre>
+----------------------------------(same state as before the call)------+
| |
+-> PoweredOff --+ |
| | |
|-> Aborted -----+-->[lengthy VM configuration call] --> SettingUp -----+
| |
+-> Saved -------+
</pre>
The next two diagrams demonstrate the process of taking a snapshot of a
powered off virtual machine, restoring the state to that as of a snapshot
or deleting a snapshot, respectively.
<pre>
+----------------------------------(same state as before the call)------+
| |
+-> PoweredOff --+ |
| +-->[takeSnapshot()] ------------------> Snapshotting -+
+-> Aborted -----+
+-> PoweredOff --+
| |
| Aborted -----+-->[restoreSnapshot() ]-------> RestoringSnapshot -+
| | [deleteSnapshot() ]-------> DeletingSnapshot --+
+-> Saved -------+ |
| |
+---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
</pre>
<note internal="yes">
For whoever decides to touch this enum: In order to keep the
comparisons involving FirstOnline and LastOnline pseudo-states valid,
the numeric values of these states must be correspondingly updated if
needed: for any online VM state, the condition
<tt>FirstOnline <= state <= LastOnline</tt> must be
@c true. The same relates to transient states for which
the condition <tt>FirstOnline <= state <= LastOnline</tt> must be
@c true.
</note>
</desc>
<const name="Null" value="0">
<desc>Null value (never used by the API).</desc>
</const>
<const name="PoweredOff" value="1">
<desc>
The machine is not running and has no saved execution state; it has
either never been started or been shut down successfully.
</desc>
</const>
<const name="Saved" value="2">
<desc>
The machine is not currently running, but the execution state of the machine
has been saved to an external file when it was running, from where
it can be resumed.
</desc>
</const>
<const name="Teleported" value="3">
<desc>
The machine was teleported to a different host (or process) and then
powered off. Take care when powering it on again may corrupt resources
it shares with the teleportation target (e.g. disk and network).
</desc>
</const>
<const name="Aborted" value="4">
<desc>
The process running the machine has terminated abnormally. This may
indicate a crash of the VM process in host execution context, or
the VM process has been terminated externally.
</desc>
</const>
<const name="AbortedSaved" value="5">
<desc>
A machine in the @c Saved stated has terminated abnormally before
reaching the @c Running state. Similar to the @c Aborted state,
this may indicate a crash of the VM process in host execution
context, or the VM process has been terminated externally.
</desc>
</const>
<const name="Running" value="6">
<desc>
The machine is currently being executed.
<note internal="yes">
For whoever decides to touch this enum: In order to keep the
comparisons in the old source code valid, this state must immediately
precede the Paused state.
@todo Lift this spectacularly wonderful restriction.
</note>
</desc>
</const>
<const name="Paused" value="7">
<desc>
Execution of the machine has been paused.
<note internal="yes">
For whoever decides to touch this enum: In order to keep the
comparisons in the old source code valid, this state must immediately
follow the Running state.
@todo Lift this spectacularly wonderful restriction.
</note>
</desc>
</const>
<const name="Stuck" value="8">
<desc>
Execution of the machine has reached the "Guru Meditation"
condition. This indicates a severe error in the hypervisor itself.
<note internal="yes">
bird: Why this uncool name? Could we rename it to "GuruMeditation" or
"Guru", perhaps? Or are there some other VMM states that are
intended to be lumped in here as well?
</note>
</desc>
</const>
<const name="Teleporting" value="9">
<desc>
The machine is about to be teleported to a different host or process.
It is possible to pause a machine in this state, but it will go to the
@c TeleportingPausedVM state and it will not be
possible to resume it again unless the teleportation fails.
</desc>
</const>
<const name="LiveSnapshotting" value="10">
<desc>
A live snapshot is being taken. The machine is running normally, but
some of the runtime configuration options are inaccessible. Also, if
paused while in this state it will transition to
@c OnlineSnapshotting and it will not be resume the
execution until the snapshot operation has completed.
</desc>
</const>
<const name="Starting" value="11">
<desc>
Machine is being started after powering it on from a
zero execution state.
</desc>
</const>
<const name="Stopping" value="12">
<desc>
Machine is being normally stopped powering it off, or after the guest OS
has initiated a shutdown sequence.
</desc>
</const>
<const name="Saving" value="13">
<desc>
Machine is saving its execution state to a file.
</desc>
</const>
<const name="Restoring" value="14">
<desc>
Execution state of the machine is being restored from a file
after powering it on from either the @c Saved or @c AbortedSaved
execution state.
</desc>
</const>
<const name="TeleportingPausedVM" value="15">
<desc>
The machine is being teleported to another host or process, but it is
not running. This is the paused variant of the
@c Teleporting state.
</desc>
</const>
<const name="TeleportingIn" value="16">
<desc>
Teleporting the machine state in from another host or process.
</desc>
</const>
<const name="DeletingSnapshotOnline" value="17">
<desc>
Like @c DeletingSnapshot, but the merging of media is ongoing in
the background while the machine is running.
</desc>
</const>
<const name="DeletingSnapshotPaused" value="18">
<desc>
Like @c DeletingSnapshotOnline, but the machine was paused when the
merging of differencing media was started.
</desc>
</const>
<const name="OnlineSnapshotting" value="19">
<desc>
Like @c LiveSnapshotting, but the machine was paused when the
merging of differencing media was started.
</desc>
</const>
<const name="RestoringSnapshot" value="20">
<desc>
A machine snapshot is being restored; this typically does not take long.
</desc>
</const>
<const name="DeletingSnapshot" value="21">
<desc>
A machine snapshot is being deleted; this can take a long time since this
may require merging differencing media. This value indicates that the
machine is not running while the snapshot is being deleted.
</desc>
</const>
<const name="SettingUp" value="22">
<desc>
Lengthy setup operation is in progress.
</desc>
</const>
<const name="Snapshotting" value="23">
<desc>
Taking an (offline) snapshot.
</desc>
</const>
<const name="FirstOnline" value="6" wsmap="suppress"> <!-- Running -->
<desc>
Pseudo-state: first online state (for use in relational expressions).
</desc>
</const>
<const name="LastOnline" value="19" wsmap="suppress"> <!-- OnlineSnapshotting -->
<desc>
Pseudo-state: last online state (for use in relational expressions).
</desc>
</const>
<const name="FirstTransient" value="9" wsmap="suppress"> <!-- Teleporting -->
<desc>
Pseudo-state: first transient state (for use in relational expressions).
</desc>
</const>
<const name="LastTransient" value="23" wsmap="suppress"> <!-- Snapshotting -->
<desc>
Pseudo-state: last transient state (for use in relational expressions).
</desc>
</const>
</enum>
<enum
name="SessionState"
uuid="cf2700c0-ea4b-47ae-9725-7810114b94d8"
>
<desc>
Session state. This enumeration represents possible values of
<link to="IMachine::sessionState"/> and <link to="ISession::state"/>
attributes.
</desc>
<const name="Null" value="0">
<desc>Null value (never used by the API).</desc>
</const>
<const name="Unlocked" value="1">
<desc>
In <link to="IMachine::sessionState"/>, this means that the machine
is not locked for any sessions.
In <link to="ISession::state"/>, this means that no machine is
currently locked for this session.
</desc>
</const>
<const name="Locked" value="2">
<desc>
In <link to="IMachine::sessionState"/>, this means that the machine
is currently locked for a session, whose process identifier can
then be found in the <link to="IMachine::sessionPID" /> attribute.
In <link to="ISession::state"/>, this means that a machine is
currently locked for this session, and the mutable machine object
can be found in the <link to="ISession::machine"/> attribute
(see <link to="IMachine::lockMachine" /> for details).
</desc>
</const>
<const name="Spawning" value="3">
<desc>
A new process is being spawned for the machine as a result of
<link to="IMachine::launchVMProcess"/> call. This state also occurs
as a short transient state during an <link to="IMachine::lockMachine"/>
call.
</desc>
</const>
<const name="Unlocking" value="4">
<desc>
The session is being unlocked.
</desc>
</const>
</enum>
<enum
name="CPUArchitecture"
uuid="4a2c9915-12f1-43b2-bb84-e4bd4d5ca227"
>
<desc>Basic CPU architecture types.</desc>
<const name="Any" value="0">
<desc>Matches any CPU architecture.</desc>
</const>
<const name="x86" value="1">
<desc>32-bit (and 16-bit) x86.</desc>
</const>
<const name="AMD64" value="2">
<desc>64-bit x86. (Also known as x86-64 or x64.)</desc>
</const>
</enum>
<enum
name="CPUPropertyType"
uuid="3fcfe589-ca66-468f-e313-656f9d0b2eb6"
>
<desc>
Virtual CPU property type. This enumeration represents possible values of the
IMachine get- and setCPUProperty methods.
</desc>
<const name="Null" value="0">
<desc>Null value (never used by the API).</desc>
</const>
<const name="PAE" value="1">
<desc>
This setting determines whether VirtualBox will expose the Physical Address
Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
is not available, it will not be reported.
</desc>
</const>
<const name="LongMode" value="2">
<desc>
This setting determines whether VirtualBox will advertise long mode
(i.e. 64-bit guest support) and let the guest enter it.
</desc>
</const>
<const name="TripleFaultReset" value="3">
<desc>
This setting determines whether a triple fault within a guest will
trigger an internal error condition and stop the VM (default) or reset
the virtual CPU/VM and continue execution.
</desc>
</const>
<const name="APIC" value="4">
<desc>
This setting determines whether an APIC is part of the virtual CPU.
This feature can only be turned off when the X2APIC feature is off.
</desc>
</const>
<const name="X2APIC" value="5">
<desc>
This setting determines whether an x2APIC is part of the virtual CPU.
Since this feature implies that the APIC feature is present, it
automatically enables the APIC feature when set.
</desc>
</const>
<const name="IBPBOnVMExit" value="6">
<desc>
If set, force an indirect branch prediction barrier on VM exits if the
host CPU supports it. This setting will significantly slow down workloads
causing many VM exits, so it is only recommended for situation where there
is a real need to be paranoid.
</desc>
</const>
<const name="IBPBOnVMEntry" value="7">
<desc>
If set, force an indirect branch prediction barrier on VM entry if the
host CPU supports it. This setting will significantly slow down workloads
causing many VM exits, so it is only recommended for situation where there
is a real need to be paranoid.
</desc>
</const>
<const name="HWVirt" value="8">
<desc>
Enabled the hardware virtualization (AMD-V/VT-x) feature on the guest CPU.
This requires hardware virtualization on the host CPU.
</desc>
</const>
<const name="SpecCtrl" value="9">
<desc>
If set, the speculation control CPUID bits and MSRs, when available on the
host, are exposed to the guest. Depending on the host CPU and operating
system, this may significantly slow down workloads causing many VM exits.
</desc>
</const>
<const name="SpecCtrlByHost" value="10">
<desc>
If set, the speculation controls are managed by the host. This is intended
for guests which do not set the speculation controls themselves.
Note! This has not yet been implemented beyond leaving everything to the host OS.
</desc>
</const>
<const name="L1DFlushOnEMTScheduling" value="11">
<desc>
If set and the host is affected by CVE-2018-3646, flushes the level 1 data
cache when the EMT is scheduled to do ring-0 guest execution. There could
be a small performance penalty for certain typs of workloads.
For security reasons this setting will be enabled by default.
</desc>
</const>
<const name="L1DFlushOnVMEntry" value="12">
<desc>
If set and the host is affected by CVE-2018-3646, flushes the level 1 data
on every VM entry. This setting may significantly slow down workloads
causing many VM exits, so it is only recommended for situation where there
is a real need to be paranoid.
</desc>
</const>
<const name="MDSClearOnEMTScheduling" value="13">
<desc>
If set and the host is affected by CVE-2018-12126, CVE-2018-12127, or
CVE-2018-12130, clears the relevant MDS buffers when the EMT is scheduled
to do ring-0 guest execution. There could be a small performance penalty
for certain typs of workloads. For security reasons this setting will be
enabled by default.
</desc>
</const>
<const name="MDSClearOnVMEntry" value="14">
<desc>
If set and the host is affected by CVE-2018-12126, CVE-2018-12127, or
CVE-2018-12130, clears the relevant MDS buffers on every VM entry. This
setting may slow down workloads causing many VM exits, so it is only
recommended for situation where there is a real need to be paranoid.
</desc>
</const>
</enum>
<enum
name="HWVirtExPropertyType"
uuid="00069d9c-00b5-460c-00dd-64250024f7aa"
>
<desc>
Hardware virtualization property type. This enumeration represents possible values
for the <link to="IMachine::getHWVirtExProperty"/> and
<link to="IMachine::setHWVirtExProperty"/> methods.
</desc>
<const name="Null" value="0">
<desc>Null value (never used by the API).</desc>
</const>
<const name="Enabled" value="1">
<desc>
Whether hardware virtualization (VT-x/AMD-V) is enabled at all. If
such extensions are not available, they will not be used.
</desc>
</const>
<const name="VPID" value="2">
<desc>
Whether VT-x VPID is enabled. If this extension is not available, it will not be used.
</desc>
</const>
<const name="NestedPaging" value="3">
<desc>
Whether Nested Paging is enabled. If this extension is not available, it will not be used.
</desc>
</const>
<const name="UnrestrictedExecution" value="4">
<desc>
Whether VT-x unrestricted execution is enabled. If this feature is not available, it will not be used.
</desc>
</const>
<const name="LargePages" value="5">
<desc>
Whether large page allocation is enabled; requires nested paging and a 64-bit host.
</desc>
</const>
<const name="Force" value="6">
<desc>
Whether the VM should fail to start if hardware virtualization (VT-x/AMD-V) cannot be used. If
not set, there will be an automatic fallback to software virtualization.
</desc>
</const>
<const name="UseNativeApi" value="7">
<desc>
Use the native hypervisor API instead of the VirtualBox one (HM) for VT-X/AMD-V. This is
ignored if <link to="HWVirtExPropertyType_Enabled"/> isn't set.
</desc>
</const>
<const name="VirtVmsaveVmload" value="8">
<desc>
Whether AMD-V Virtualized VMSAVE/VMLOAD is enabled. If this feature is not available, it will not
be used.
</desc>
</const>
</enum>
<enum
name="ParavirtProvider"
uuid="696453ec-3742-4a05-bead-658ccbf2c944"
>
<desc>
The paravirtualized guest interface provider. This enumeration represents possible
values for the <link to="IMachine::paravirtProvider"/> attribute.
</desc>
<const name="None" value="0">
<desc>No provider is used.</desc>
</const>
<const name="Default" value="1">
<desc>A default provider is automatically chosen according to the guest OS type.</desc>
</const>
<const name="Legacy" value="2">
<desc>Used for VMs which didn't used to have any provider settings. Usually
interpreted as @c None for most VMs.</desc>
</const>
<const name="Minimal" value="3">
<desc>A minimal set of features to expose to the paravirtualized guest.</desc>
</const>
<const name="HyperV" value="4">
<desc>Microsoft Hyper-V.</desc>
</const>
<const name="KVM" value="5">
<desc>Linux KVM.</desc>
</const>
</enum>
<enum
name="LockType"
uuid="678aaf14-2815-4c3e-b20a-e86ed0216498"
>
<desc>
Used with <link to="IMachine::lockMachine" />.
</desc>
<const name="Null" value="0">
<desc>Placeholder value, do not use when obtaining a lock.</desc>
</const>
<const name="Shared" value="1">
<desc>Request only a shared lock for remote-controlling the machine.
Such a lock allows changing certain VM settings which can be safely
modified for a running VM.</desc>
</const>
<const name="Write" value="2">
<desc>Lock the machine for writing. This requests an exclusive lock, i.e.
there cannot be any other API client holding any type of lock for this
VM concurrently. Remember that a VM process counts as an API client
which implicitly holds the equivalent of a shared lock during the
entire VM runtime.</desc>
</const>
<const name="VM" value="3">
<desc>Lock the machine for writing, and create objects necessary for
running a VM in this process.</desc>
</const>
</enum>
<enum
name="SessionType"
uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
>
<desc>
Session type. This enumeration represents possible values of the
<link to="ISession::type"/> attribute.
</desc>
<const name="Null" value="0">
<desc>Null value (never used by the API).</desc>
</const>
<const name="WriteLock" value="1">
<desc>
Session has acquired an exclusive write lock on a machine
using <link to="IMachine::lockMachine"/>.
</desc>
</const>
<const name="Remote" value="2">
<desc>
Session has launched a VM process using
<link to="IMachine::launchVMProcess"/>
</desc>
</const>
<const name="Shared" value="3">
<desc>
Session has obtained a link to another session using
<link to="IMachine::lockMachine"/>
</desc>
</const>
</enum>
<enum
name="DeviceType"
uuid="cb977be1-d1fb-41f8-ad7e-951736c6cb3e"
>
<desc>
Device type.
</desc>
<const name="Null" value="0">
<desc>
Null value, may also mean "no device" (not allowed for
<link to="IConsole::getDeviceActivity"/>).
</desc>
</const>
<const name="Floppy" value="1">
<desc>Floppy device.</desc>
</const>
<const name="DVD" value="2">
<desc>CD/DVD-ROM device.</desc>
</const>
<const name="HardDisk" value="3">
<desc>Hard disk device.</desc>
</const>
<const name="Network" value="4">
<desc>Network device.</desc>
</const>
<const name="USB" value="5">
<desc>USB device.</desc>
</const>
<const name="SharedFolder" value="6">
<desc>Shared folder device.</desc>
</const>
<const name="Graphics3D" value="7">
<desc>Graphics device 3D activity.</desc>
</const>
</enum>
<enum
name="DeviceActivity"
uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
>
<desc>
Device activity for <link to="IConsole::getDeviceActivity"/>.
</desc>
<const name="Null" value="0"/>
<const name="Idle" value="1"/>
<const name="Reading" value="2"/>
<const name="Writing" value="3"/>
</enum>
<enum
name="ClipboardMode"
uuid="33364716-4008-4701-8f14-be0fa3d62950"
>
<desc>
Host-Guest clipboard interchange mode.
</desc>
<const name="Disabled" value="0"/>
<const name="HostToGuest" value="1"/>
<const name="GuestToHost" value="2"/>
<const name="Bidirectional" value="3"/>
</enum>
<enum
name="DnDMode"
uuid="07af8800-f936-4b33-9172-cd400e83c148"
>
<desc>
Drag and drop interchange mode.
</desc>
<const name="Disabled" value="0"/>
<const name="HostToGuest" value="1"/>
<const name="GuestToHost" value="2"/>
<const name="Bidirectional" value="3"/>
</enum>
<enum
name="Scope"
uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
>
<desc>
Scope of the operation.
A generic enumeration used in various methods to define the action or
argument scope.
</desc>
<const name="Global" value="0"/>
<const name="Machine" value="1"/>
<const name="Session" value="2"/>
</enum>
<enum
name="BIOSBootMenuMode"
uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
>
<desc>
BIOS boot menu mode.
</desc>
<const name="Disabled" value="0"/>
<const name="MenuOnly" value="1"/>
<const name="MessageAndMenu" value="2"/>
</enum>
<enum
name="APICMode"
uuid="c6884ba5-3cc4-4a92-a7f6-4410f9fd894e"
>
<desc>
BIOS APIC initialization mode. If the hardware does not support the
mode then the code falls back to a lower mode.
</desc>
<const name="Disabled" value="0"/>
<const name="APIC" value="1"/>
<const name="X2APIC" value="2"/>
</enum>
<enum
name="ProcessorFeature"
uuid="0064dece-000e-4963-00f8-eb9b00674c8a"
>
<desc>
CPU features.
</desc>
<const name="HWVirtEx" value="0"/>
<const name="PAE" value="1"/>
<const name="LongMode" value="2"/>
<const name="NestedPaging" value="3"/>
<const name="UnrestrictedGuest" value="4"/>
<const name="NestedHWVirt" value="5"/>
<const name="VirtVmsaveVmload" value="6"/>
</enum>
<enum
name="FirmwareType"
uuid="b903f264-c230-483e-ac74-2b37ce60d371"
>
<desc>
Firmware type.
</desc>
<const name="BIOS" value="1">
<desc>BIOS Firmware.</desc>
</const>
<const name="EFI" value="2">
<desc>EFI Firmware, bitness detected basing on OS type.</desc>
</const>
<const name="EFI32" value="3">
<desc>EFI firmware, 32-bit.</desc>
</const>
<const name="EFI64" value="4">
<desc>EFI firmware, 64-bit.</desc>
</const>
<const name="EFIDUAL" value="5">
<desc>EFI firmware, combined 32 and 64-bit.</desc>
</const>
</enum>
<enum
name="PointingHIDType"
uuid="b3fd8215-6870-4e61-b6d9-2998fa625de0"
>
<desc>
Type of pointing device used in a virtual machine.
</desc>
<const name="None" value="1">
<desc>No mouse.</desc>
</const>
<const name="PS2Mouse" value="2">
<desc>PS/2 auxiliary device, a.k.a. mouse.</desc>
</const>
<const name="USBMouse" value="3">
<desc>USB mouse (relative pointer).</desc>
</const>
<const name="USBTablet" value="4">
<desc>
USB tablet (absolute pointer). Also enables a relative USB mouse in
addition.
</desc>
</const>
<const name="ComboMouse" value="5">
<desc>
Combined device, working as PS/2 or USB mouse, depending on guest
behavior. Using this device can have negative performance implications.
</desc>
</const>
<const name="USBMultiTouch" value="6">
<desc>
USB multi-touch device, just touchscreen. It is a specific mode of the
USB tablet and also enables the mouse device.
</desc>
</const>
<const name="USBMultiTouchScreenPlusPad" value="7">
<desc>
USB multi-touch device, touchscreen plus touchpad. It also enables the
mouse device.
</desc>
</const>
</enum>
<enum
name="KeyboardHIDType"
uuid="383e43d7-5c7c-4ec8-9cb8-eda1bccd6699"
>
<desc>
Type of keyboard device used in a virtual machine.
</desc>
<const name="None" value="1">
<desc>No keyboard.</desc>
</const>
<const name="PS2Keyboard" value="2">
<desc>PS/2 keyboard.</desc>
</const>
<const name="USBKeyboard" value="3">
<desc>USB keyboard.</desc>
</const>
<const name="ComboKeyboard" value="4">
<desc>Combined device, working as PS/2 or USB keyboard, depending on guest behavior.
Using of such device can have negative performance implications.</desc>
</const>
</enum>
<enum
name="BitmapFormat"
uuid="afb2bf39-8b1e-4f9f-8948-d1b887f83eb0"
>
<desc>
Format of a bitmap. Generic values for formats used by
the source bitmap, the screen shot or image update APIs.
</desc>
<const name="Opaque" value="0">
<desc>
Unknown buffer format (the user may not assume any particular format of
the buffer).
</desc>
</const>
<const name="BGR" value="0x20524742">
<desc>
Generic BGR format without alpha channel.
Pixel layout depends on the number of bits per pixel:
<ul>
<li>
<b>32</b> - bits 31:24 undefined, bits 23:16 R, bits 15:8 G, bits 7:0 B.
</li>
<li>
<b>16</b> - bits 15:11 R, bits 10:5 G, bits 4:0 B.
</li>
</ul>
</desc>
</const>
<const name="BGR0" value="0x30524742">
<desc>
4 bytes per pixel: B, G, R, 0.
</desc>
</const>
<const name="BGRA" value="0x41524742">
<desc>
4 bytes per pixel: B, G, R, A.
</desc>
</const>
<const name="RGBA" value="0x41424752">
<desc>
4 bytes per pixel: R, G, B, A.
</desc>
</const>
<const name="PNG" value="0x20474E50">
<desc>
PNG image.
</desc>
</const>
<const name="JPEG" value="0x4745504A">
<desc>
JPEG image.
</desc>
</const>
</enum>
<enum
name="PartitioningType"
uuid="64c4c806-8908-4c0b-9a51-2d7a0151321f"
>
<desc>
The type of the disk partition.
</desc>
<const name="MBR" value="0"/>
<const name="GPT" value="1"/>
</enum>
<enum
name="PartitionType"
uuid="84a6629c-8e9c-474c-adbb-21995671597f"
>
<desc></desc>
<!-- MBR partition IDs using the same value: -->
<const name="Empty" value="0"><desc>Empty partition entry</desc></const>
<const name="FAT12" value="1"> <desc>FAT12 if partition size less than 65536 sectors</desc></const>
<const name="FAT16" value="4"> <desc>FAT16 if partition size less than 65536 sectors</desc></const>
<const name="FAT" value="6"> <desc>FAT12 or FAT16 if partition size greater or equal than 65536 sectors</desc></const>
<const name="IFS" value="7"> <desc>NT and OS/2 installable file system, e.g. NTFS, exFAT, HPFS.</desc></const>
<const name="FAT32CHS" value="11"> <desc>The FAT32 with CHS addressing.</desc></const>
<const name="FAT32LBA" value="12"> <desc>The FAT32 with LBA addressing.</desc></const>
<const name="FAT16B" value="14"> <desc>The FAT16 with LBA addressing.</desc></const>
<const name="Extended" value="15"> <desc>The extended partition with LBA addressing.</desc></const>
<const name="WindowsRE" value="39"> <desc>Windows Recovery Environment (RE) partition (hidden NTFS partition).</desc></const>
<const name="LinuxSwapOld" value="66"> <desc>The linux swap partition (old versions).</desc></const>
<const name="LinuxOld" value="67"> <desc>The linux native partition (old versions).</desc></const>
<const name="DragonFlyBSDSlice" value="108"><desc>The BSD slice.</desc></const>
<const name="LinuxSwap" value="130"><desc>The linux swap partition.</desc></const>
<const name="Linux" value="131"><desc>The linux native partition.</desc></const>
<const name="LinuxExtended" value="133"><desc>The linux extended partition.</desc></const>
<const name="LinuxLVM" value="142"><desc>The linux LVM partition.</desc></const>
<const name="BSDSlice" value="165"><desc>The BSD slice.</desc></const>
<const name="AppleUFS" value="168"><desc>The Apple UFS partition.</desc></const>
<const name="AppleHFS" value="175"><desc>The Apple HFS partition.</desc></const>
<const name="Solaris" value="191"><desc>The Apple HFS partition.</desc></const>
<const name="GPT" value="238"><desc>The GPT protective MBR partition.</desc></const>
<const name="EFI" value="239"><desc>The EFI system partition.</desc></const>
<!-- Dummy value: -->
<const name="Unknown" value="256"><desc>Unknown partition type.</desc></const>
<!-- GPT partition types: -->
<const name="MBR" value="257"><desc>MBR partition scheme.</desc></const>
<const name="iFFS" value="258"><desc>Intel Fast Flash (iFFS) partition.</desc></const>
<const name="SonyBoot" value="259"><desc>Sony boot partition.</desc></const>
<const name="LenovoBoot" value="260"><desc>Lenovo boot partition.</desc></const>
<const name="WindowsMSR" value="270"><desc>Microsoft Reserved Partition (MSR).</desc></const>
<const name="WindowsBasicData" value="271"><desc>Windows Basic data partition</desc></const>
<const name="WindowsLDMMeta" value="272"><desc>Windows Logical Disk Manager (LDM) metadata partition.</desc></const>
<const name="WindowsLDMData" value="273"><desc>Windows Logical Disk Manager data partition.</desc></const>
<const name="WindowsRecovery" value="274"><desc>Windows Recovery Environment.</desc></const>
<const name="WindowsStorageSpaces" value="276"><desc>Windows Storage Spaces partition.</desc></const>
<const name="WindowsStorageReplica" value="277"><desc>Windows Storage Replica partition.</desc></const>
<const name="IBMGPFS" value="275"><desc>IBM General Parallel File System (GPFS) partition.</desc></const>
<const name="LinuxData" value="300"><desc>Linux filesystem data.</desc></const>
<const name="LinuxRAID" value="301"><desc>Linux RAID partition.</desc></const>
<const name="LinuxRootX86" value="302"><desc>Linux root partition for x86.</desc></const>
<const name="LinuxRootAMD64" value="303"><desc>Linux root partition for AMD64.</desc></const>
<const name="LinuxRootARM32" value="304"><desc>Linux root partition for ARM32.</desc></const>
<const name="LinuxRootARM64" value="305"><desc>Linux root partition for ARM64 / AArch64.</desc></const>
<const name="LinuxHome" value="306"><desc>Linux /home partition.</desc></const>
<const name="LinuxSrv" value="307"><desc>Linux /srv partition.</desc></const>
<const name="LinuxPlainDmCrypt" value="308"><desc>Linux plain dm-crypt partition.</desc></const>
<const name="LinuxLUKS" value="309"><desc>Linux unitified key setup (LUKS) partition.</desc></const>
<const name="LinuxReserved" value="310"><desc>Linux reserved partition.</desc></const>
<const name="FreeBSDBoot" value="330"><desc>FreeBSD boot partition.</desc></const>
<const name="FreeBSDData" value="331"><desc>FreeBSD data partition.</desc></const>
<const name="FreeBSDSwap" value="332"><desc>FreeBSD swap partition.</desc></const>
<const name="FreeBSDUFS" value="333"><desc>FreeBSD unix file system (UFS) partition.</desc></const>
<const name="FreeBSDVinum" value="334"><desc>FreeBSD Vinum volume manager partition.</desc></const>
<const name="FreeBSDZFS" value="335"><desc>FreeBSD ZFS partition.</desc></const>
<const name="FreeBSDUnknown" value="359"><desc>Unknown FreeBSD partition.</desc></const>
<const name="AppleHFSPlus" value="360"><desc>Apple hierarchical file system plus (HFS+) partition.</desc></const>
<const name="AppleAPFS" value="361"><desc>Apple APFS/FileFault container partition.</desc></const>
<const name="AppleRAID" value="362"><desc>Apple RAID partition.</desc></const>
<const name="AppleRAIDOffline" value="363"><desc>Apple RAID partition, offline.</desc></const>
<const name="AppleBoot" value="364"><desc>Apple boot partition.</desc></const>
<const name="AppleLabel" value="365"><desc>Apple label.</desc></const>
<const name="AppleTvRecovery" value="366"><desc>Apple TV recovery partition.</desc></const>
<const name="AppleCoreStorage" value="367"><desc>Apple Core Storage Containe.</desc></const>
<const name="SoftRAIDStatus" value="370"><desc>SoftRAID status.</desc></const>
<const name="SoftRAIDScratch" value="371"><desc>SoftRAID scratch.</desc></const>
<const name="SoftRAIDVolume" value="372"><desc>SoftRAID volume.</desc></const>
<const name="SoftRAIDCache" value="373"><desc>SoftRAID cache.</desc></const>
<const name="AppleUnknown" value="389"><desc>Unknown Apple partition.</desc></const>
<const name="SolarisBoot" value="390"><desc>Solaris boot partition.</desc></const>
<const name="SolarisRoot" value="391"><desc>Solaris root partition.</desc></const>
<const name="SolarisSwap" value="392"><desc>Solaris swap partition.</desc></const>
<const name="SolarisBackup" value="393"><desc>Solaris backup partition.</desc></const>
<const name="SolarisUsr" value="394"><desc>Solaris /usr partition.</desc></const>
<const name="SolarisVar" value="395"><desc>Solaris /var partition.</desc></const>
<const name="SolarisHome" value="396"><desc>Solaris /home partition.</desc></const>
<const name="SolarisAltSector" value="397"><desc>Solaris alternate sector.</desc></const>
<const name="SolarisReserved" value="398"><desc>Solaris reserved partition.</desc></const>
<const name="SolarisUnknown" value="419"><desc>Unknown Solaris partition.</desc></const>
<const name="NetBSDSwap" value="420"><desc>NetBSD swap partition.</desc></const>
<const name="NetBSDFFS" value="421"><desc>NetBSD fast file system (FFS) partition.</desc></const>
<const name="NetBSDLFS" value="422"><desc>NetBSD log structured file system (LFS) partition.</desc></const>
<const name="NetBSDRAID" value="423"><desc>NetBSD RAID partition.</desc></const>
<const name="NetBSDConcatenated" value="424"><desc>NetBSD concatenated partition.</desc></const>
<const name="NetBSDEncrypted" value="425"><desc>NetBSD encrypted partition.</desc></const>
<const name="NetBSDUnknown" value="449"><desc>Unknown NetBSD partition.</desc></const>
<const name="ChromeOSKernel" value="450"><desc>Chrome OS kernel partition.</desc></const>
<const name="ChromeOSRootFS" value="451"><desc>Chrome OS root file system partition.</desc></const>
<const name="ChromeOSFuture" value="452"><desc>Chrome OS partition reserved for future.</desc></const>
<const name="ContLnxUsr" value="480"><desc>Container Linux /usr partition.</desc></const>
<const name="ContLnxRoot" value="481"><desc>Container Linux resizable root filesystem partition.</desc></const>
<const name="ContLnxReserved" value="482"><desc>Container Linux OEM customization partition.</desc></const>
<const name="ContLnxRootRAID" value="483"><desc>Container Linux root filesystem on RAID partition.</desc></const>
<const name="HaikuBFS" value="510"><desc>Haiku BFS</desc></const>
<const name="MidntBSDBoot" value="540"><desc>MidnightBSD boot partition.</desc></const>
<const name="MidntBSDData" value="541"><desc>MidnightBSD data partition.</desc></const>
<const name="MidntBSDSwap" value="542"><desc>MidnightBSD swap partition.</desc></const>
<const name="MidntBSDUFS" value="543"><desc>MidnightBSD unix file system (UFS) partition.</desc></const>
<const name="MidntBSDVium" value="544"><desc>MidnightBSD Vinum volume manager partition.</desc></const>
<const name="MidntBSDZFS" value="545"><desc>MidnightBSD ZFS partition.</desc></const>
<const name="MidntBSDUnknown" value="569"><desc>Unknown MidnightBSD partition.</desc></const>
<const name="OpenBSDData" value="570"><desc>OpenBSD data partition.</desc></const>
<const name="QNXPowerSafeFS" value="600"><desc>QNX power-safe file system partition.</desc></const>
<const name="Plan9" value="630"><desc>Plan 9 partition.</desc></const>
<const name="VMWareVMKCore" value="660"><desc>VMWare ESX coredump partition.</desc></const>
<const name="VMWareVMFS" value="661"><desc>VMWare ESX virtual machine file system (VMFS) partition.</desc></const>
<const name="VMWareReserved" value="662"><desc>VMWare ESX reserved partition.</desc></const>
<const name="VMWareUnknown" value="689"><desc>Unknown VMWare partition.</desc></const>
<const name="AndroidX86Bootloader" value="690"><desc>Android x86 bootloader partition.</desc></const>
<const name="AndroidX86Bootloader2" value="691"><desc>Android x86 bootloader2 partition.</desc></const>
<const name="AndroidX86Boot" value="692"><desc>Android x86 boot partition.</desc></const>
<const name="AndroidX86Recovery" value="693"><desc>Android x86 recovery partition.</desc></const>
<const name="AndroidX86Misc" value="694"><desc>Android x86 misc partition.</desc></const>
<const name="AndroidX86Metadata" value="695"><desc>Android x86 metadata partition.</desc></const>
<const name="AndroidX86System" value="696"><desc>Android x86 system partition.</desc></const>
<const name="AndroidX86Cache" value="697"><desc>Android x86 cache partition.</desc></const>
<const name="AndroidX86Data" value="698"><desc>Android x86 data partition.</desc></const>
<const name="AndroidX86Persistent" value="699"><desc>Android x86 persistent data partition.</desc></const>
<const name="AndroidX86Vendor" value="700"><desc>Android x86 vendor partition.</desc></const>
<const name="AndroidX86Config" value="701"><desc>Android x86 config partition.</desc></const>
<const name="AndroidX86Factory" value="702"><desc>Android x86 factory partition.</desc></const>
<const name="AndroidX86FactoryAlt" value="703"><desc>Android x86 alternative factory partition.</desc></const>
<const name="AndroidX86Fastboot" value="704"><desc>Android x86 fastboot partition.</desc></const>
<const name="AndroidX86OEM" value="705"><desc>Android x86 OEM partition.</desc></const>
<const name="AndroidARMMeta" value="720"><desc>Android ARM meta partition.</desc></const>
<const name="AndroidARMExt" value="721"><desc>Android ARM EXT partition.</desc></const>
<const name="ONIEBoot" value="750"><desc>Open Network Install Environment (ONIE) boot partition.</desc></const>
<const name="ONIEConfig" value="751"><desc>Open Network Install Environment (ONIE) config partition.</desc></const>
<const name="PowerPCPrep" value="780"><desc>PowerPC PReP boot partition.</desc></const>
<const name="XDGShrBootConfig" value="810"><desc>freedesktop.org shared boot loader configuration partition.</desc></const>
<const name="CephBlock" value="830"><desc>Ceph block partition.</desc></const>
<const name="CephBlockDB" value="831"><desc>Ceph block DB partition.</desc></const>
<const name="CephBlockDBDmc" value="832"><desc>Ceph dm-crypt block DB partition.</desc></const>
<const name="CephBlockDBDmcLUKS" value="833"><desc>Ceph dm-crypt Linux unitified key setup (LUKS) block DB partition.</desc></const>
<const name="CephBlockDmc" value="834"><desc>Ceph dm-crypt block partition.</desc></const>
<const name="CephBlockDmcLUKS" value="835"><desc>Ceph dm-crypt Linux unitified key setup (LUKS) block partition.</desc></const>
<const name="CephBlockWALog" value="836"><desc>Ceph block write-ahead log partition.</desc></const>
<const name="CephBlockWALogDmc" value="837"><desc>Ceph dm-crypt block write-ahead log partition.</desc></const>
<const name="CephBlockWALogDmcLUKS" value="838"><desc>Ceph dm-crypt Linux unitified key setup (LUKS) block write-ahead log partition.</desc></const>
<const name="CephDisk" value="839"><desc>Ceph disk in creation partition.</desc></const>
<const name="CephDiskDmc" value="840"><desc>Ceph dm-crypt disk in creation partition.</desc></const>
<const name="CephJournal" value="841"><desc>Ceph Journal partition.</desc></const>
<const name="CephJournalDmc" value="842"><desc>Ceph dm-crypt journal partition.</desc></const>
<const name="CephJournalDmcLUKS" value="843"><desc>Ceph dm-crypt Linux unitified key setup (LUKS) journal partition.</desc></const>
<const name="CephLockbox" value="844"><desc>Ceph Lockbox for dm-crypt keys partition.</desc></const>
<const name="CephMultipathBlock1" value="845"><desc>Ceph multipath block 1 partition.</desc></const>
<const name="CephMultipathBlock2" value="846"><desc>Ceph multipath block 2 partition.</desc></const>
<const name="CephMultipathBlockDB" value="847"><desc>Ceph multipath block DB partition.</desc></const>
<const name="CephMultipathBLockWALog" value="848"><desc>Ceph multipath block write-ahead log partition.</desc></const>
<const name="CephMultipathJournal" value="849"><desc>Ceph multipath journal partition.</desc></const>
<const name="CephMultipathOSD" value="851"><desc>Ceph multipath object storage deamon (OSD) partition.</desc></const>
<const name="CephOSD" value="852"><desc>Ceph object storage deamon (OSD) partition.</desc></const>
<const name="CephOSDDmc" value="853"><desc>Ceph dm-crypt object storage deamon (OSD) partition.</desc></const>
<const name="CephOSDDmcLUKS" value="854"><desc>Ceph dm-crypt Linux unitified key setup (LUKS) object storage deamon (OSD) partition.</desc></const>
</enum>
<!--
// IVirtualBoxErrorInfo
/////////////////////////////////////////////////////////////////////////
-->
<interface
name="IVirtualBoxErrorInfo" extends="$errorinfo"
uuid="c1bcc6d5-7966-481d-ab0b-d0ed73e28135"
supportsErrorInfo="no"
wsmap="managed"
rest="managed"
>
<desc>
The IVirtualBoxErrorInfo interface represents extended error information.
Extended error information can be set by VirtualBox components after
unsuccessful or partially successful method invocation. This information
can be retrieved by the calling party as an IVirtualBoxErrorInfo object
and then shown to the client in addition to the plain 32-bit result code.
In MS COM, this interface extends the IErrorInfo interface,
in XPCOM, it extends the nsIException interface. In both cases,
it provides a set of common attributes to retrieve error
information.
Sometimes invocation of some component's method may involve methods of
other components that may also fail (independently of this method's
failure), or a series of non-fatal errors may precede a fatal error that
causes method failure. In cases like that, it may be desirable to preserve
information about all errors happened during method invocation and deliver
it to the caller. The <link to="#next"/> attribute is intended
specifically for this purpose and allows to represent a chain of errors
through a single IVirtualBoxErrorInfo object set after method invocation.
<note>errors are stored to a chain in the reverse order, i.e. the
initial error object you query right after method invocation is the last
error set by the callee, the object it points to in the @a next attribute
is the previous error and so on, up to the first error (which is the last
in the chain).</note>
</desc>
<attribute name="resultCode" type="long" readonly="yes">
<desc>
Result code of the error.
Usually, it will be the same as the result code returned
by the method that provided this error information, but not
always. For example, on Win32, CoCreateInstance() will most
likely return E_NOINTERFACE upon unsuccessful component
instantiation attempt, but not the value the component factory
returned. Value is typed 'long', not 'result',
to make interface usable from scripting languages.
<note>
In MS COM, there is no equivalent.
In XPCOM, it is the same as nsIException::result.
</note>
</desc>
</attribute>
<attribute name="resultDetail" type="long" readonly="yes">
<desc>
Optional result data of this error. This will vary depending on the
actual error usage. By default this attribute is not being used.
</desc>
</attribute>
<attribute name="interfaceID" type="uuid" mod="string" readonly="yes">
<desc>
UUID of the interface that defined the error.
<note>
In MS COM, it is the same as IErrorInfo::GetGUID, except for the
data type.
In XPCOM, there is no equivalent.
</note>
</desc>
</attribute>
<attribute name="component" type="wstring" readonly="yes">
<desc>
Name of the component that generated the error.
<note>
In MS COM, it is the same as IErrorInfo::GetSource.
In XPCOM, there is no equivalent.
</note>
</desc>
</attribute>
<attribute name="text" type="wstring" readonly="yes">
<desc>
Text description of the error.
<note>
In MS COM, it is the same as IErrorInfo::GetDescription.
In XPCOM, it is the same as nsIException::message.
</note>
</desc>
</attribute>
<attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
<desc>
Next error object if there is any, or @c null otherwise.
<note>
In MS COM, there is no equivalent.
In XPCOM, it is the same as nsIException::inner.
</note>
</desc>
</attribute>
</interface>
<!--
// INATNetwork
/////////////////////////////////////////////////////////////////////////
-->
<interface name="INATNetwork" extends="$unknown"
uuid="4fdebbf0-be30-49c0-b315-e9749e1bded1"
wsmap="managed"
rest="managed"
reservedMethods="2" reservedAttributes="8"
>
<attribute name="networkName" type="wstring">
<desc>
TBD: the idea, technically we can start any number of the NAT networks,
but we should expect that at some point we will get collisions because of
port-forwanding rules. so perhaps we should support only single instance of NAT
network.
</desc>
</attribute>
<attribute name="enabled" type="boolean"/>
<attribute name="network" type="wstring">
<desc>
This is CIDR IPv4 string. Specifying it user defines IPv4 addresses
of gateway (low address + 1) and DHCP server (= low address + 2).
Note: If there are defined IPv4 port-forward rules update of network
will be ignored (because new assignment could break existing rules).
</desc>
</attribute>
<attribute name="gateway" type="wstring" readonly="yes">
<desc>
This attribute is read-only. It's recalculated on changing
network attribute (low address of network + 1).
</desc>
</attribute>
<attribute name="IPv6Enabled" type="boolean">
<desc>
This attribute define whether gateway will support IPv6 or not.
</desc>
</attribute>
<attribute name="IPv6Prefix" type="wstring">
<desc>
This a CIDR IPv6 defining prefix for link-local addresses
autoconfiguration within network. Note: ignored if attribute
IPv6Enabled is false.
</desc>
</attribute>
<attribute name="advertiseDefaultIPv6RouteEnabled" type="boolean" dtracename="advertiseDefaultIPv6Route"/>
<attribute name="needDhcpServer" type="boolean"/>
<attribute name="eventSource" type="IEventSource" readonly="yes"/>
<attribute name="portForwardRules4" type="wstring" readonly="yes" safearray="yes">
<desc>Array of NAT port-forwarding rules in string representation,
in the following format:
"name:protocolid:[host ip]:host port:[guest ip]:guest port".
</desc>
</attribute>
<attribute name="localMappings" type="wstring" readonly="yes" safearray="yes">
<desc>Array of mappings (address,offset),e.g. ("127.0.1.1=4") maps 127.0.1.1 to networkid + 4.
</desc>
</attribute>
<method name="addLocalMapping">
<rest request="post" path="/natnetworks/{networkid}/configuration/"/>
<desc>
</desc>
<param name="hostid" type="wstring" dir="in"/>
<param name="offset" type="long" dir="in"/>
</method>
<attribute name="loopbackIp6" type="long">
<desc>Offset in ipv6 network from network id for address mapped into loopback6 interface of the host.
</desc>
</attribute>
<attribute name="portForwardRules6" type="wstring" readonly="yes" safearray="yes">
<desc>Array of NAT port-forwarding rules in string representation, in the
following format: "name:protocolid:[host ip]:host port:[guest ip]:guest port".
</desc>
</attribute>
<method name="addPortForwardRule">
<rest request="post" path="/natnetworks/{networkid}/configuration/"/>
<param name="isIpv6" type="boolean" dir="in"/>
<param name="ruleName" type="wstring" dir="in"/>
<param name="proto" type="NATProtocol" dir="in">
<desc>Protocol handled with the rule.</desc>
</param>
<param name="hostIP" type="wstring" dir="in">
<desc>IP of the host interface to which the rule should apply.
An empty ip address is acceptable, in which case the NAT engine
binds the handling socket to any interface.
</desc>
</param>
<param name="hostPort" type="unsigned short" dir="in">
<desc>The port number to listen on.</desc>
</param>
<param name="guestIP" type="wstring" dir="in">
<desc>The IP address of the guest which the NAT engine will forward
matching packets to. An empty IP address is not acceptable.</desc>
</param>
<param name="guestPort" type="unsigned short" dir="in">
<desc>The port number to forward.</desc>
</param>
</method>
<method name="removePortForwardRule">
<rest request="post" path="/natnetworks/{networkid}/configuration/"/>
<param name="isIpv6" type="boolean" dir="in"/>
<param name="ruleName" type="wstring" dir="in"/>
</method>
<method name="start">
<rest request="post" path="/natnetworks/{networkid}/actions/"/>
</method>
<method name="stop">
<rest request="post" path="/natnetworks/{networkid}/actions/"/>
</method>
</interface>
<!--
// ICloudNetwork
/////////////////////////////////////////////////////////////////////////
-->
<interface name="ICloudNetwork" extends="$unknown"
uuid="d8e3496e-735f-4fde-8a54-427d49409b5f"
wsmap="managed"
rest="managed"
reservedMethods="4" reservedAttributes="12"
>
<attribute name="networkName" type="wstring">
<desc>
TBD: User-friendly, descriptive name of cloud subnet. For example, domain
names of subnet and vcn, separated by dot.
</desc>
</attribute>
<attribute name="enabled" type="boolean"/>
<attribute name="provider" type="wstring">
<desc>
Cloud provider short name.
</desc>
</attribute>
<attribute name="profile" type="wstring">
<desc>
Cloud profile name.
</desc>
</attribute>
<attribute name="networkId" type="wstring">
<desc>
Cloud network id.
</desc>
</attribute>
</interface>
<!--
// IHostOnlyNetwork
/////////////////////////////////////////////////////////////////////////
-->
<interface name="IHostOnlyNetwork" extends="$unknown"
uuid="6eb5de7d-9a67-4fde-83be-f768084d03b5"
wsmap="managed"
rest="managed"
reservedMethods="4" reservedAttributes="8"
>
<attribute name="networkName" type="wstring">
<desc>
TBD: User-friendly, descriptive name of host-only network. For example,
"Host-only network 192.168.56.0".
</desc>
</attribute>
<attribute name="enabled" type="boolean"/>
<attribute name="networkMask" type="wstring">
<desc>
specifies network mask
</desc>
</attribute>
<attribute name="hostIP" type="wstring" readonly="yes">
<desc>
host IP address, which usually is the lower IP address of DHCP range.
</desc>
</attribute>
<attribute name="lowerIP" type="wstring">
<desc>
specifies from IP address in DHCP address range
</desc>
</attribute>
<attribute name="upperIP" type="wstring">
<desc>
specifies to IP address in DHCP address range
</desc>
</attribute>
<attribute name="id" type="uuid" mod="string">
<desc>
Host-only network ID.
</desc>
</attribute>
</interface>
<!--
// IDHCPServer and associates
/////////////////////////////////////////////////////////////////////////
-->
<enum
name="DHCPOption"
uuid="00f5b10f-0021-4513-00f7-5bf4000982bf">
<!-- Names should exactly match those given in DhcpOptions.h.
Everything must be documented properly.
Note! We use these descriptions in the VBoxManage man page / manual.
When making changes remember to regenerate the man page bits:
kmk -C doc/manual dhcpoptions
-->
<const name="SubnetMask" value="1"><desc>IPv4 netmask. Set to <link to="IDHCPServer::networkMask"/> by default.</desc></const>
<const name="TimeOffset" value="2"><desc>UTC offset in seconds (32-bit decimal value).</desc></const>
<const name="Routers" value="3"><desc>Space separated list of IPv4 router addresses.</desc></const>
<const name="TimeServers" value="4"><desc>Space separated list of IPv4 time server (RFC 868) addresses.</desc></const>
<const name="NameServers" value="5"><desc>Space separated list of IPv4 name server (IEN 116) addresses.</desc></const>
<const name="DomainNameServers" value="6"><desc>Space separated list of IPv4 DNS addresses.</desc></const>
<const name="LogServers" value="7"><desc>Space separated list of IPv4 log server addresses.</desc></const>
<const name="CookieServers" value="8"><desc>Space separated list of IPv4 cookie server (RFC 865) addresses.</desc></const>
<const name="LPRServers" value="9"><desc>Space separated list of IPv4 line printer server (RFC 1179) addresses.</desc></const>
<const name="ImpressServers" value="10"><desc>Space separated list of IPv4 imagen impress server addresses.</desc></const>
<const name="ResourseLocationServers" value="11"><desc>Space separated list of IPv4 resource location (RFC 887) addresses.</desc></const>
<const name="HostName" value="12"><desc>The client name. See RFC 1035 for character limits. </desc></const>
<const name="BootFileSize" value="13"><desc>Number of 512 byte blocks making up the boot file (16-bit decimal value).</desc></const>
<const name="MeritDumpFile" value="14"><desc>Client core file.</desc></const>
<const name="DomainName" value="15"><desc>Domain name for the client.</desc></const>
<const name="SwapServer" value="16"><desc>IPv4 address of the swap server that the client should use.</desc></const>
<const name="RootPath" value="17"><desc>The path to the root disk the client should use.</desc></const>
<const name="ExtensionPath" value="18"><desc>Path to a file containing additional DHCP options (RFC2123).</desc></const>
<const name="IPForwarding" value="19"><desc>Whether IP forwarding should be enabled by the client (boolean).</desc></const>
<const name="OptNonLocalSourceRouting" value="20"><desc>Whether non-local datagrams should be forwarded by the client (boolean)</desc></const>
<const name="PolicyFilter" value="21"><desc>List of IPv4 addresses and masks paris controlling non-local source routing.</desc></const>
<const name="MaxDgramReassemblySize" value="22"><desc>The maximum datagram size the client should reassemble (16-bit decimal value).</desc></const>
<const name="DefaultIPTTL" value="23"><desc>The default time-to-leave on outgoing (IP) datagrams (8-bit decimal value).</desc></const>
<const name="PathMTUAgingTimeout" value="24"><desc>RFC1191 path MTU discovery timeout value in seconds (32-bit decimal value).</desc></const>
<const name="PathMTUPlateauTable" value="25"><desc>RFC1191 path MTU discovery size table, sorted in ascending order (list of 16-bit decimal values).</desc></const>
<const name="InterfaceMTU" value="26"><desc>The MTU size for the interface (16-bit decimal value).</desc></const>
<const name="AllSubnetsAreLocal" value="27"><desc>Indicates whether the MTU size is the same for all subnets (boolean).</desc></const>
<const name="BroadcastAddress" value="28"><desc>Broadcast address (RFC1122) for the client to use (IPv4 address).</desc></const>
<const name="PerformMaskDiscovery" value="29"><desc>Whether to perform subnet mask discovery via ICMP (boolean).</desc></const>
<const name="MaskSupplier" value="30"><desc>Whether to respond to subnet mask requests via ICMP (boolean).</desc></const>
<const name="PerformRouterDiscovery" value="31"><desc>Whether to perform router discovery (RFC1256) (boolean).</desc></const>
<const name="RouterSolicitationAddress" value="32"><desc>Where to send router solicitation requests (RFC1256) (IPv4 address).</desc></const>
<const name="StaticRoute" value="33"><desc>List of network and router address pairs addresses.</desc></const>
<const name="TrailerEncapsulation" value="34"><desc>Whether to negotiate the use of trailers for ARP (RTF893) (boolean).</desc></const>
<const name="ARPCacheTimeout" value="35"><desc>The timeout in seconds for ARP cache entries (32-bit decimal value).</desc></const>
<const name="EthernetEncapsulation" value="36"><desc>Whether to use IEEE 802.3 (RTF1042) rather than of v2 (RFC894) ethernet encapsulation (boolean).</desc></const>
<const name="TCPDefaultTTL" value="37"><desc>Default time-to-live for TCP sends (non-zero 8-bit decimal value).</desc></const>
<const name="TCPKeepaliveInterval" value="38"><desc>The interface in seconds between TCP keepalive messages (32-bit decimal value).</desc></const>
<const name="TCPKeepaliveGarbage" value="39"><desc>Whether to include a byte of garbage in TCP keepalive messages for backward compatibility (boolean).</desc></const>
<const name="NISDomain" value="40"><desc>The NIS (Sun Network Information Services) domain name (string).</desc></const>
<const name="NISServers" value="41"><desc>Space separated list of IPv4 NIS server addresses.</desc></const>
<const name="NTPServers" value="42"><desc>Space separated list of IPv4 NTP (RFC1035) server addresses.</desc></const>
<const name="VendorSpecificInfo" value="43"><desc>Vendor specific information. Only accessible using <link to="DHCPOptionEncoding_Hex"/>.</desc></const>
<const name="NetBIOSNameServers" value="44"><desc>Space separated list of IPv4 NetBIOS name server (NBNS) addresses (RFC1001,RFC1002).</desc></const>
<const name="NetBIOSDatagramServers" value="45"><desc>Space separated list of IPv4 NetBIOS datagram distribution server (NBDD) addresses (RFC1001,RFC1002).</desc></const>
<const name="NetBIOSNodeType" value="46"><desc>NetBIOS node type (RFC1001,RFC1002): 1=B-node, 2=P-node, 4=M-node, and 8=H-node (8-bit decimal value).</desc></const>
<const name="NetBIOSScope" value="47"><desc>NetBIOS scope (RFC1001,RFC1002). Only accessible using <link to="DHCPOptionEncoding_Hex"/>.</desc></const>
<const name="XWindowsFontServers" value="48"><desc>Space separated list of IPv4 X windows font server addresses.</desc></const>
<const name="XWindowsDisplayManager" value="49"><desc>Space separated list of IPv4 X windows display manager addresses.</desc></const>
<!-- Options 50 thru 59 are considered DHCP internal and currently not settable. -->
<const name="NetWareIPDomainName" value="62"><desc>Netware IP domain name (RFC2242) (string).</desc></const>
<const name="NetWareIPInformation" value="63"><desc>Netware IP information (RFC2242). Only accessible using <link to="DHCPOptionEncoding_Hex"/>.</desc></const>
<const name="NISPlusDomain" value="64"><desc>The NIS+ domain name (string).</desc></const>
<const name="NISPlusServers" value="65"><desc>Space separated list of IPv4 NIS+ server addresses.</desc></const>
<const name="TFTPServerName" value="66"><desc>TFTP server name (string).</desc></const>
<const name="BootfileName" value="67"><desc>Bootfile name (string).</desc></const>
<const name="MobileIPHomeAgents" value="68"><desc>Space separated list of IPv4 mobile IP agent addresses.</desc></const>
<const name="SMTPServers" value="69"><desc>Space separated list of IPv4 simple mail transport protocol (SMPT) server addresses.</desc></const>
<const name="POP3Servers" value="70"><desc>Space separated list of IPv4 post office protocol 3 (POP3) server addresses.</desc></const>
<const name="NNTPServers" value="71"><desc>Space separated list of IPv4 network news transport protocol (NTTP) server addresses.</desc></const>
<const name="WWWServers" value="72"><desc>Space separated list of default IPv4 world wide web (WWW) server addresses.</desc></const>
<const name="FingerServers" value="73"><desc>Space separated list of default IPv4 finger server addresses.</desc></const>
<const name="IRCServers" value="74"><desc>Space separated list of default IPv4 internet relay chat (IRC) server addresses.</desc></const>
<const name="StreetTalkServers" value="75"><desc>Space separated list of IPv4 StreetTalk server addresses.</desc></const>
<const name="STDAServers" value="76"><desc>Space separated list of IPv4 StreetTalk directory assistance (STDA) server addresses.</desc></const>
<!-- 77 is client only -->
<const name="SLPDirectoryAgent" value="78"><desc>Addresses of one or more service location protocol (SLP) directory agent, and an indicator of whether their use is mandatory. Only accessible using <link to="DHCPOptionEncoding_Hex"/>.</desc></const>
<const name="SLPServiceScope" value="79"><desc>List of service scopes for the service location protocol (SLP) and whether using the list is mandator. Only accessible using <link to="DHCPOptionEncoding_Hex"/>.</desc></const>
<!-- 80 is client only -->
<const name="DomainSearch" value="119"><desc>Domain search list, see RFC3397 and section 4.1.4 in RFC1035 for encoding. Only accessible using <link to="DHCPOptionEncoding_Hex"/>.</desc></const>
</enum>
<enum
name="DHCPOptionEncoding"
uuid="84b6d460-2838-4682-c0d6-ef5b573ef28a">
<const name="Normal" value="0">
<desc>Value format is specific to the option and generally user friendly.</desc>
</const>
<const name="Hex" value="1">
<desc>Value format is a series of hex bytes (<tt>09314f3200fe</tt>),
optionally colons as byte separators (<tt>9:31:4f:32::fe</tt>).</desc>
</const>
</enum>
<enum
name="DHCPConfigScope"
uuid="469c42e4-b9ec-43f2-bdcb-9e9d1eb434ae">
<const name="Global" value="0"><desc><link to="IDHCPServer::globalConfig"/></desc></const>
<const name="Group" value="1"><desc><link to="IDHCPServer::groupConfigs"/></desc></const>
<const name="MachineNIC" value="2"><desc><link to="IDHCPServer::individualConfigs"/></desc></const>
<const name="MAC" value="3"><desc><link to="IDHCPServer::individualConfigs"/></desc></const>
</enum>
<enum
name="DHCPGroupConditionType"
uuid="2cb9280f-ada2-4194-dee8-bfb8ad77119d"
>
<const name="MAC" value="0"><desc>MAC address</desc></const>
<const name="MACWildcard" value="1"><desc>MAC address wildcard pattern.</desc></const>
<const name="vendorClassID" value="2"><desc>Vendor class ID</desc></const>
<const name="vendorClassIDWildcard" value="3"><desc>Vendor class ID wildcard pattern.</desc></const>
<const name="userClassID" value="4"><desc>User class ID</desc></const>
<const name="userClassIDWildcard" value="5"><desc>User class ID wildcard pattern.</desc></const>
</enum>
<interface
name="IDHCPServer" extends="$unknown"
uuid="cadef0a2-a1a9-4ac2-8e80-c049af69dac8"
wsmap="managed"
rest="managed"
reservedMethods="0" reservedAttributes="3"
>
<desc>
The IDHCPServer interface represents the VirtualBox DHCP server configuration.
To enumerate all the DHCP servers on the host, use the
<link to="IVirtualBox::DHCPServers"/> attribute.
</desc>
<!-- We want to keep our "real" servers updated about configuration changes -->
<attribute name="eventSource" type="IEventSource" readonly="yes"/>
<attribute name="enabled" type="boolean">
<desc>
specifies if the DHCP server is enabled
</desc>
</attribute>
<attribute name="IPAddress" type="wstring" readonly="yes">
<desc>
specifies server IP
</desc>
</attribute>
<attribute name="networkMask" type="wstring" readonly="yes">
<desc>
specifies server network mask
</desc>
</attribute>
<attribute name="networkName" type="wstring" readonly="yes">
<desc>
specifies internal network name the server is used for
</desc>
</attribute>
<attribute name="lowerIP" type="wstring" readonly="yes">
<desc>
specifies from IP address in server address range
</desc>
</attribute>
<attribute name="upperIP" type="wstring" readonly="yes">
<desc>
specifies to IP address in server address range
</desc>
</attribute>
<attribute name="globalConfig" type="IDHCPGlobalConfig" readonly="yes">
<desc>Global configuration that applies to all clients.</desc>
</attribute>
<attribute name="groupConfigs" type="IDHCPGroupConfig" safearray="yes" readonly="yes">
<desc>Configuration groups that applies to selected clients, selection is flexible.</desc>
</attribute>
<attribute name="individualConfigs" type="IDHCPIndividualConfig" safearray="yes" readonly="yes">
<desc>Individual NIC configurations either by MAC address or VM + NIC number.</desc>
</attribute>
<!-- VM-slot settings
It's corresponds to dhcpd.conf entries, like:
host ncd1 { hardware ethernet 0:c0:c3:11:90:23; }
- in Main we can match (vm name, slot) to ethernet address
that why it's easy to configure dhcp server in such way,
then ask user to to enter valid name,
- mac address might change because of adapter type (e1k <-> pcnet) or because
of import/export
- it's easy to provide vm-name.rom in boot filename VM with network boot.
XXX: do we need classic getOptionValueByMAC?
XML: O-o-oh, this settings are per VM, so perhaps they should be stored in
VM configuration files. And we haven't got the attachment type for
NATNetwork.
-->
<method name="setConfiguration">
<rest request="post" path="/dhcpservers/{serverid}/configuration/"/>
<desc>
configures the server
<result name="E_INVALIDARG">
invalid configuration supplied
</result>
</desc>
<param name="IPAddress" type="wstring" dir="in">
<desc>
server IP address
</desc>
</param>
<param name="networkMask" type="wstring" dir="in">
<desc>
server network mask
</desc>
</param>
<param name="FromIPAddress" type="wstring" dir="in">
<desc>
server From IP address for address range
</desc>
</param>
<param name="ToIPAddress" type="wstring" dir="in">
<desc>
server To IP address for address range
</desc>
</param>
</method>
<method name="start">
<rest request="post" path="/dhcpservers/{serverid}/actions/"/>
<desc>
Starts DHCP server process.
<result name="E_FAIL">
Failed to start the process.
</result>
</desc>
<param name="trunkName" type="wstring" dir="in">
<desc>
Name of internal network trunk.
</desc>
</param>
<param name="trunkType" type="wstring" dir="in">
<desc>
Type of internal network trunk.
</desc>
</param>
</method>
<method name="stop">
<rest request="post" path="/dhcpservers/{serverid}/actions/"/>
<desc>
Stops DHCP server process.
<result name="E_FAIL">
Failed to stop the process.
</result>
</desc>
</method>
<method name="restart">
<rest request="post" path="/dhcpservers/{serverid}/actions/"/>
<desc>
Restart running DHCP server process.
<result name="E_FAIL">
Failed to restart the process.
</result>
</desc>
</method>
<method name="findLeaseByMAC">
<desc>
Queries the persistent lease database by MAC address.
This is handy if the host wants to connect to a server running inside
a VM on a host only network.
<result name="VBOX_E_OBJECT_NOT_FOUND">If MAC address not in the database.</result>
<result name="VBOX_E_FILE_ERROR">If not able to read the lease database file.</result>
</desc>
<param name="mac" type="wstring" dir="in">
<desc>The MAC address to look up.</desc>
</param>
<param name="type" type="long" dir="in">
<desc>Reserved, MBZ.</desc>
</param>
<param name="address" type="wstring" dir="out">
<desc>The assigned address.</desc>
</param>
<param name="state" type="wstring" dir="out">
<desc>The lease state.</desc>
</param>
<param name="issued" type="long long" dir="out">
<desc>Timestamp of when the lease was issued, in seconds since 1970-01-01 UTC.</desc>
</param>
<param name="expire" type="long long" dir="out">
<desc>Timestamp of when the lease expires/expired, in seconds since 1970-01-01 UTC.</desc>
</param>
</method>
<method name="getConfig">
<rest request="get" path="/dhcpservers/{serverid}/configuration/"/>
<desc>
Gets or adds a configuration.
</desc>
<param name="scope" dir="in" type="DHCPConfigScope">
<desc>The kind of configuration being sought or added.</desc>
</param>
<param name="name" dir="in" type="wstring">
<desc>
Meaning depends on the @a scope:
- Ignored when the @a scope is <link to="DHCPConfigScope_Global"/>.
- A VM name or UUID for <link to="DHCPConfigScope_MachineNIC"/>.
- A MAC address for <link to="DHCPConfigScope_MAC"/>.
- A group name for <link to="DHCPConfigScope_Group"/>.
</desc>
</param>
<param name="slot" dir="in" type="unsigned long">
<desc>The NIC slot when @a scope is set to <link to="DHCPConfigScope_MachineNIC"/>,
must be zero for all other scope values.
</desc>
</param>
<param name="mayAdd" dir="in" type="boolean">
<desc>
Set to @c TRUE if the configuration should be added if not found.
If set to @c FALSE the method will fail with VBOX_E_OBJECT_NOT_FOUND.
</desc>
</param>
<param name="config" dir="return" type="IDHCPConfig">
<desc>The requested configuration.</desc>
</param>
</method>
<!-- @todo Add variant of queryLeaseByMac that goes by VM name and optionally slot. -->
<!-- @todo Add lease database attribute (readonly) -->
</interface>
<interface
name="IDHCPConfig" extends="$unknown"
uuid="00f4a8dc-0002-4b81-0077-1dcb004571ba"
wsmap="managed"
rest="managed"
reservedMethods="8" reservedAttributes="16"
>
<desc>
The DHCP server has several configuration levels: global, group and
individual MAC. This interface implements the settings common to
each level.
</desc>
<attribute name="scope" type="DHCPConfigScope" readonly="yes">
<desc>
Indicates the kind of config this is (mostly for IDHCPIndividualConfig).
</desc>
</attribute>
<attribute name="minLeaseTime" type="unsigned long">
<desc>The minimum lease time in seconds, ignored if zero.</desc>
</attribute>
<attribute name="defaultLeaseTime" type="unsigned long">
<desc>The default lease time in seconds, ignored if zero.</desc>
</attribute>
<attribute name="maxLeaseTime" type="unsigned long">
<desc>The maximum lease time in seconds, ignored if zero.</desc>
</attribute>
<attribute name="forcedOptions" type="DHCPOption" safearray="yes">
<desc>List of DHCP options which should be forced upon the clients in this
config scope when they are available, whether the clients asks for them
or not.</desc>
</attribute>
<attribute name="suppressedOptions" type="DHCPOption" safearray="yes">
<desc>List of DHCP options which should not be sent to the clients in
this config scope. This is intended for cases where one client or a
group of clients shouldn't see one or more (typically global) options.</desc>
</attribute>
<method name="setOption">
<desc>
Sets a DHCP option.
</desc>
<param name="option" dir="in" type="DHCPOption">
<desc>The DHCP option.</desc>
</param>
<param name="encoding" dir="in" type="DHCPOptionEncoding">
<desc>The value encoding.</desc>
</param>
<param name="value" dir="in" type="wstring">
<desc>The DHCP option value. The exact format depends on the DHCP
@a option value and @a encoding, see see <link to="DHCPOption"/>
for the <link to="DHCPOptionEncoding_Normal"/> format.
</desc>
</param>
</method>
<method name="removeOption">
<desc>Removes the given DHCP option.</desc>
<param name="option" dir="in" type="DHCPOption"/>
</method>
<method name="removeAllOptions">
<desc>
Removes all the options.
One exception here is the DhcpOpt_SubnetMask option in the global scope
that is linked to the <link to="IDHCPServer::networkMask"/> attribute
and therefore cannot be removed.
</desc>
</method>
<method name="getOption">
<desc>Gets the value of a single DHCP option.</desc>
<param name="option" dir="in" type="DHCPOption">
<desc>The DHCP option being sought.</desc>
</param>
<param name="encoding" dir="out" type="DHCPOptionEncoding">
<desc>The value encoding.</desc>
</param>
<param name="value" dir="return" type="wstring">
<desc>The value of the requested DHCP option. The exact format depends on
the DHCP @a option value and the @a encoding, see <link to="DHCPOption"/>
for the <link to="DHCPOptionEncoding_Normal"/> format.
</desc>
</param>
</method>
<method name="getAllOptions">
<desc>Gets all DHCP options and their values</desc>
<param name="options" dir="out" type="DHCPOption" safearray="yes">
<desc>Array containing the DHCP option numbers.</desc>
</param>
<param name="encodings" dir="out" type="DHCPOptionEncoding" safearray="yes">
<desc>Array of value encodings that runs parallel to @a options.</desc>
</param>
<param name="values" dir="return" type="wstring" safearray="yes">
<desc>Array of values that runs parallel to @a options and @a encodings. The
format depends on both of those.
</desc>
</param>
</method>
<method name="remove">
<desc>
Remove this group or individual configuration.
Will of course not work on global configurations.
</desc>
</method>
</interface>
<interface
name="IDHCPGlobalConfig" extends="IDHCPConfig"
uuid="46735de7-f4c4-4020-a185-0d2881bcfa8b"
wsmap="managed"
rest="managed"
reservedMethods="4" reservedAttributes="4"
>
<desc>
The global DHCP server configuration, see <link to="IDHCPServer::globalConfig"/>.
</desc>
</interface>
<interface
name="IDHCPGroupCondition" extends="$unknown"
uuid="5ca9e537-5a1d-43f1-6f27-6a0db298a9a8"
wsmap="managed"
rest="managed"
reservedMethods="3" reservedAttributes="3"
>
<attribute name="inclusive" type="boolean">
<desc>Whether this is an inclusive or exclusive group membership condition</desc>
</attribute>
<attribute name="type" type="DHCPGroupConditionType">
<desc>Defines how the <link to="IDHCPGroupCondition::value"/> is interpreted.</desc>
</attribute>
<attribute name="value" type="wstring">
<desc>The condition value.</desc>
</attribute>
<method name="remove">
<desc>Remove this condition from the group.</desc>
</method>
</interface>
<interface
name="IDHCPGroupConfig" extends="IDHCPConfig"
uuid="537707f7-ebf9-4d5c-7aea-877bfc4256ba"
wsmap="managed"
rest="managed"
reservedMethods="8" reservedAttributes="8"
>
<desc>
A configuration that applies to a group of NICs.
</desc>
<attribute name="name" type="wstring">
<desc>The group name.</desc>
</attribute>
<attribute name="conditions" type="IDHCPGroupCondition" safearray="yes" readonly="yes">
<desc>
Group membership conditions.
Add new conditions by calling <link to="IDHCPGroupConfig::addCondition"/>
and use <link to="IDHCPGroupCondition::remove"/> to remove.
</desc>
</attribute>
<method name="addCondition">
<desc>Adds a new condition.</desc>
<param name="inclusive" dir="in" type="boolean"/>
<param name="type" dir="in" type="DHCPGroupConditionType"/>
<param name="value" dir="in" type="wstring"/>
<param name="condition" dir="return" type="IDHCPGroupCondition"/>
</method>
<method name="removeAllConditions">
<desc>Removes all conditions.</desc>
</method>
</interface>
<interface
name="IDHCPIndividualConfig" extends="IDHCPConfig"
uuid="c40c2b86-73a5-46cc-8227-93fe57d006a6"
wsmap="managed"
rest="managed"
reservedMethods="8" reservedAttributes="8"
>
<desc>
Configuration for a single NIC, either given directly by MAC address or by
VM + adaptor slot number.
</desc>
<attribute name="MACAddress" type="wstring" readonly="yes">
<desc>
The MAC address. If a <link to="DHCPConfigScope_MachineNIC"/> config, this
will be queried via the VM ID.
</desc>
</attribute>
<attribute name="machineId" type="uuid" mod="string" readonly="yes">
<desc>
The virtual machine ID if a <link to="DHCPConfigScope_MachineNIC"/> config,
null UUID for <link to="DHCPConfigScope_MAC"/>.
</desc>
</attribute>
<attribute name="slot" type="unsigned long" readonly="yes">
<desc>The NIC slot number of the VM if a <link to="DHCPConfigScope_MachineNIC"/> config.</desc>
</attribute>
<attribute name="fixedAddress" type="wstring">
<desc>Fixed IPv4 address assignment, dynamic if empty.</desc>
</attribute>
</interface>
<interface
name="IVirtualBox" extends="$unknown"
uuid="7682d5eb-f00e-44f1-8ca2-99d08b1cd607"
wsmap="managed"
rest="managed"
wrap-gen-hook="yes"
reservedMethods="8" reservedAttributes="12"
>
<desc>
The IVirtualBox interface represents the main interface exposed by the
product that provides virtual machine management.
An instance of IVirtualBox is required for the product to do anything
useful. Even though the interface does not expose this, internally,
IVirtualBox is implemented as a singleton and actually lives in the
process of the VirtualBox server (VBoxSVC.exe). This makes sure that
IVirtualBox can track the state of all virtual machines on a particular
host, regardless of which frontend started them.
To enumerate all the virtual machines on the host, use the
<link to="IVirtualBox::machines"/> attribute.
Error information handling is a bit special with IVirtualBox: creating
an instance will always succeed. The return of the actual error
code/information is postponed to any attribute or method call. The
reason for this is that COM likes to mutilate the error code and lose
the detailed error information returned by instance creation.
</desc>
<attribute name="version" type="wstring" readonly="yes">
<desc>
A string representing the version number of the product. The
format is 3 integer numbers divided by dots (e.g. 1.0.1). The
last number represents the build number and will frequently change.
This may be followed by a _ALPHA[0-9]*, _BETA[0-9]* or _RC[0-9]* tag
in prerelease builds. Non-Oracle builds may (/shall) also have a
publisher tag, at the end. The publisher tag starts with an underscore
just like the prerelease build type tag.
</desc>
</attribute>
<attribute name="versionNormalized" type="wstring" readonly="yes">
<desc>
A string representing the version number of the product,
without the publisher information (but still with other tags).
See <link to="#version" />.
</desc>
</attribute>
<attribute name="revision" type="unsigned long" readonly="yes">
<desc>
The internal build revision number of the product.
</desc>
</attribute>
<attribute name="packageType" type="wstring" readonly="yes">
<desc>
A string representing the package type of this product. The
format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
this.
</desc>
</attribute>
<attribute name="APIVersion" type="wstring" readonly="yes">
<desc>
A string representing the VirtualBox API version number. The format is
2 integer numbers divided by an underscore (e.g. 1_0). After the
first public release of packages with a particular API version the
API will not be changed in an incompatible way. Note that this
guarantee does not apply to development builds, and also there is no
guarantee that this version is identical to the first two integer
numbers of the package version.
</desc>
</attribute>
<attribute name="APIRevision" type="long long" readonly="yes">
<desc>
This is mainly intended for the VBox Validation Kit so it can fluently
deal with incompatible API changes and new functionality during
development (i.e. on trunk).
The high 7 bits (62:56) is the major version number, the next 8 bits
(55:48) are the minor version number, the next 8 bits (47:40) are the
build number, and the rest (39:0) is the API revision number.
The API revision number is manually increased on trunk when making
incompatible changes that the validation kit or others needs to be able
to detect and cope with dynamically. It can also be used to indicate
the presence of new features on both trunk and branches.
</desc>
</attribute>
<attribute name="homeFolder" type="wstring" readonly="yes">
<desc>
Full path to the directory where the global settings file,
<tt>VirtualBox.xml</tt>, is stored.
In this version of VirtualBox, the value of this property is
always <tt><user_dir>/.VirtualBox</tt> (where
<tt><user_dir></tt> is the path to the user directory,
as determined by the host OS), and cannot be changed.
This path is also used as the base to resolve relative paths in
places where relative paths are allowed (unless otherwise
expressly indicated).
</desc>
</attribute>
<attribute name="settingsFilePath" type="wstring" readonly="yes">
<desc>
Full name of the global settings file.
The value of this property corresponds to the value of
<link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
</desc>
</attribute>
<attribute name="host" type="IHost" readonly="yes">
<desc>Associated host object.</desc>
</attribute>
<attribute name="systemProperties" type="ISystemProperties" readonly="yes">
<desc>Associated system information object.</desc>
</attribute>
<attribute name="machines" type="IMachine" readonly="yes" safearray="yes">
<desc>
Array of machine objects registered within this VirtualBox instance.
</desc>
</attribute>
<attribute name="machineGroups" type="wstring" readonly="yes" safearray="yes">
<desc>
Array of all machine group names which are used by the machines which
are accessible. Each group is only listed once, however they are listed
in no particular order and there is no guarantee that there are no gaps
in the group hierarchy (i.e. <tt>"/"</tt>, <tt>"/group/subgroup"</tt>
is a valid result).
</desc>
</attribute>
<attribute name="hardDisks" type="IMedium" readonly="yes" safearray="yes">
<desc>
Array of medium objects known to this VirtualBox installation.
This array contains only base media. All differencing
media of the given base medium can be enumerated using
<link to="IMedium::children"/>.
</desc>
</attribute>
<attribute name="DVDImages" type="IMedium" readonly="yes" safearray="yes">
<desc>
Array of CD/DVD image objects currently in use by this VirtualBox instance.
</desc>
</attribute>
<attribute name="floppyImages" type="IMedium" readonly="yes" safearray="yes">
<desc>
Array of floppy image objects currently in use by this VirtualBox instance.
</desc>
</attribute>
<attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
<attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
<attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
<desc>
Collection of global shared folders. Global shared folders are
available to all virtual machines.
New shared folders are added to the collection using
<link to="#createSharedFolder"/>. Existing shared folders can be
removed using <link to="#removeSharedFolder"/>.
<note>
In the current version of the product, global shared folders are not
implemented and therefore this collection is always empty.
</note>
</desc>
</attribute>
<attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
<desc>
Associated performance collector object.
</desc>
</attribute>
<attribute name="DHCPServers" type="IDHCPServer" safearray="yes" readonly="yes">
<desc>
DHCP servers.
</desc>
</attribute>
<!-- Array of NAT networks -->
<attribute name="NATNetworks" type="INATNetwork" safearray="yes" readonly="yes"/>
<attribute name="eventSource" type="IEventSource" readonly="yes">
<desc>
Event source for VirtualBox events.
</desc>
</attribute>
<attribute name="extensionPackManager" type="IExtPackManager" readonly="yes">
<desc>
The extension pack manager.
</desc>
</attribute>
<attribute name="internalNetworks" type="wstring" safearray="yes" readonly="yes">
<desc>
Names of all internal networks.
</desc>
</attribute>
<attribute name="hostOnlyNetworks" type="IHostOnlyNetwork" safearray="yes" readonly="yes">
<desc>
Names of all host-only networks.
</desc>
</attribute>
<attribute name="genericNetworkDrivers" type="wstring" safearray="yes" readonly="yes">
<desc>
Names of all generic network drivers.
</desc>
</attribute>
<attribute name="cloudNetworks" type="ICloudNetwork" safearray="yes" readonly="yes">
<desc>
Names of all configured cloud networks.
</desc>
</attribute>
<attribute name="cloudProviderManager" type="ICloudProviderManager" readonly="yes">
<desc>
The cloud provider manager (singleton).
</desc>
</attribute>
<method name="composeMachineFilename">
<rest request="get" path="/server/methods/"/>
<desc>
Returns a recommended full path of the settings file name for a new virtual
machine.
This API serves two purposes:
<ul>
<li>It gets called by <link to="#createMachine" /> if @c null or
empty string (which is recommended) is specified for the
@a settingsFile argument there, which means that API should use
a recommended default file name.</li>
<li>It can be called manually by a client software before creating a machine,
e.g. if that client wants to pre-create the machine directory to create
virtual hard disks in that directory together with the new machine
settings file. In that case, the file name should be stripped from the
full settings file path returned by this function to obtain the
machine directory.</li>
</ul>
See <link to="IMachine::name"/> and <link to="#createMachine"/> for more
details about the machine name.
@a groupName defines which additional subdirectory levels should be
included. It must be either a valid group name or @c null or empty
string which designates that the machine will not be related to a
machine group.
If @a baseFolder is a @c null or empty string (which is recommended), the
default machine settings folder
(see <link to="ISystemProperties::defaultMachineFolder" />) will be used as
a base folder for the created machine, resulting in a file name like
"/home/user/VirtualBox VMs/name/name.vbox". Otherwise the given base folder
will be used.
This method does not access the host disks. In particular, it does not check
for whether a machine with this name already exists.
</desc>
<param name="name" type="wstring" dir="in">
<desc>Suggested machine name.</desc>
</param>
<param name="group" type="wstring" dir="in">
<desc>Machine group name for the new machine or machine group. It is
used to determine the right subdirectory.</desc>
</param>
<param name="createFlags" type="wstring" dir="in">
<desc>Machine creation flags, see <link to="#createMachine" /> (optional).</desc>
</param>
<param name="baseFolder" type="wstring" dir="in">
<desc>Base machine folder (optional).</desc>
</param>
<param name="file" type="wstring" dir="return">
<desc>Fully qualified path where the machine would be created.</desc>
</param>
</method>
<method name="createMachine">
<rest name="create" request="post" path="/vms/"/>
<desc>
Creates a new virtual machine by creating a machine settings file at
the given location.
VirtualBox machine settings files use a custom XML dialect. Starting
with VirtualBox 4.0, a ".vbox" extension is recommended, but not enforced,
and machine files can be created at arbitrary locations.
However, it is recommended that machines are created in the default
machine folder (e.g. "/home/user/VirtualBox VMs/name/name.vbox"; see
<link to="ISystemProperties::defaultMachineFolder" />). If you specify
@c null or empty string (which is recommended) for the @a settingsFile
argument, <link to="#composeMachineFilename" /> is called automatically
to have such a recommended name composed based on the machine name
given in the @a name argument and the primary group.
If the resulting settings file already exists, this method will fail,
unless the forceOverwrite flag is set.
The new machine is created unregistered, with the initial configuration
set according to the specified guest OS type. A typical sequence of
actions to create a new virtual machine is as follows:
<ol>
<li>
Call this method to have a new machine created. The returned machine
object will be "mutable" allowing to change any machine property.
</li>
<li>
Configure the machine using the appropriate attributes and methods.
</li>
<li>
Call <link to="IMachine::saveSettings" /> to write the settings
to the machine's XML settings file. The configuration of the newly
created machine will not be saved to disk until this method is
called.
</li>
<li>
Call <link to="#registerMachine" /> to add the machine to the list
of machines known to VirtualBox.
</li>
</ol>
The specified guest OS type identifier must match an ID of one of known
guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
array.
<note>
<link to="IMachine::settingsModified"/> will return
@c false for the created machine, until any of machine settings
are changed.
</note>
<note>
There is no way to change the name of the settings file or
subfolder of the created machine directly.
</note>
<result name="VBOX_E_OBJECT_NOT_FOUND">
@a osTypeId is invalid.
</result>
<result name="VBOX_E_FILE_ERROR">
Resulting settings file name is invalid or the settings file already
exists or could not be created due to an I/O error.
</result>
<result name="E_INVALIDARG">
@a name is empty or @c null.
</result>
</desc>
<param name="settingsFile" type="wstring" dir="in">
<desc>Fully qualified path where the settings file should be created,
empty string or @c null for a default folder and file based on the
@a name argument and the primary group.
(see <link to="#composeMachineFilename" />).</desc>
</param>
<param name="name" type="wstring" dir="in">
<desc>Machine name.</desc>
</param>
<param name="groups" type="wstring" safearray="yes" dir="in">
<desc>Array of group names. @c null or an empty array have the same
meaning as an array with just the empty string or <tt>"/"</tt>, i.e.
create a machine without group association.</desc>
</param>
<param name="osTypeId" type="wstring" dir="in">
<desc>Guest OS Type ID.</desc>
</param>
<param name="flags" type="wstring" dir="in">
<desc>
Additional property parameters, passed as a comma-separated list of
"name=value" type entries. The following ones are recognized:
<tt>forceOverwrite=1</tt> to overwrite an existing machine settings
file, <tt>UUID=<uuid></tt> to specify a machine UUID and
<tt>directoryIncludesUUID=1</tt> to switch to a special VM directory
naming scheme which should not be used unless necessary.
</desc>
</param>
<param name="cipher" type="wstring" dir="in">
<desc>
The cipher. It should be empty if encryption is not required.
</desc>
</param>
<param name="passwordId" type="wstring" dir="in">
<desc>
The password id. It should be empty if encryption is not required.
</desc>
</param>
<param name="password" type="wstring" dir="in">
<desc>
The password. It should be empty if encryption is not required.
</desc>
</param>
<param name="machine" type="IMachine" dir="return">
<desc>Created machine object.</desc>
</param>
</method>
<method name="openMachine">
<rest name="open" request="post" path="/vms/{vmid}/actions/"/>
<desc>
Opens a virtual machine from the existing settings file.
The opened machine remains unregistered until you call
<link to="#registerMachine"/>.
The specified settings file name must be fully qualified.
The file must exist and be a valid machine XML settings file
whose contents will be used to construct the machine object.
<note>
If the VM is encrypted and password is incorrect
the method returns success allowing you to register the
encrypted machine but it remains in inaccessible state. You
can check <link to="IMachine::accessible"/> and
<link to="IMachine::accessError"/> properties to determine the
real machine state.
</note>
<note>
<link to="IMachine::settingsModified"/> will return
@c false for the opened machine, until any of machine settings
are changed.
</note>
<result name="VBOX_E_FILE_ERROR">
Settings file name invalid, not found or sharing violation.
</result>
</desc>
<param name="settingsFile" type="wstring" dir="in">
<desc>
Name of the machine settings file.
</desc>
</param>
<param name="password" type="wstring" dir="in">
<desc>
The password. If the machine is not encrypted the parameter is
ignored.
</desc>
</param>
<param name="machine" type="IMachine" dir="return">
<desc>Opened machine object.</desc>
</param>
</method>
<method name="registerMachine">
<rest name="register" request="post" path="/vms/{vmid}/actions/"/>
<desc>
Registers the machine previously created using
<link to="#createMachine"/> or opened using
<link to="#openMachine"/> within this VirtualBox installation. After
successful method invocation, the
<link to="IMachineRegisteredEvent"/> event is fired.
<note>
This method implicitly calls <link to="IMachine::saveSettings"/>
to save all current machine settings before registering it.
</note>
<result name="VBOX_E_OBJECT_NOT_FOUND">
No matching virtual machine found.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Virtual machine was not created within this VirtualBox instance.
</result>
</desc>
<param name="machine" type="IMachine" dir="in"/>
</method>
<method name="findMachine" const="yes">
<rest name="find" request="get" path="/vms/{vmid}/"/>
<desc>
Attempts to find a virtual machine given its name or UUID.
<note>Inaccessible machines cannot be found by name, only by UUID, because their name
cannot safely be determined.</note>
<result name="VBOX_E_OBJECT_NOT_FOUND">
Could not find registered machine matching @a nameOrId.
</result>
</desc>
<param name="nameOrId" type="wstring" dir="in">
<desc>What to search for. This can either be the UUID or the name of a virtual machine.</desc>
</param>
<param name="machine" type="IMachine" dir="return">
<desc>Machine object, if found.</desc>
</param>
</method>
<method name="getMachinesByGroups">
<rest request="get" path="/server/methods/"/>
<desc>
Gets all machine references which are in one of the specified groups.
</desc>
<param name="groups" type="wstring" dir="in" safearray="yes">
<desc>What groups to match. The usual group list rules apply, i.e.
passing an empty list will match VMs in the toplevel group, likewise
the empty string.</desc>
</param>
<param name="machines" type="IMachine" dir="return" safearray="yes">
<desc>All machines which matched.</desc>
</param>
</method>
<method name="getMachineStates">
<rest request="get" path="/server/methods/"/>
<desc>
Gets the state of several machines in a single operation.
</desc>
<param name="machines" type="IMachine" dir="in" safearray="yes">
<desc>Array with the machine references.</desc>
</param>
<param name="states" type="MachineState" dir="return" safearray="yes">
<desc>Machine states, corresponding to the machines.</desc>
</param>
</method>
<method name="createAppliance">
<rest name="create" request="post" path="/appliances/"/>
<desc>
Creates a new appliance object, which represents an appliance in the Open Virtual Machine
Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
</desc>
<param name="appliance" type="IAppliance" dir="return">
<desc>New appliance.</desc>
</param>
</method>
<method name="createUnattendedInstaller">
<rest request="post" path="/server/methods/"/>
<desc>
Creates a new <link to="IUnattended"/> guest installation object. This can be used to
analyze an installation ISO to create and configure a new machine for it to be installed
on. It can also be used to (re)install an existing machine.
</desc>
<param name="unattended" type="IUnattended" dir="return">
<desc>New unattended object.</desc>
</param>
</method>
<method name="createMedium">
<rest name="create" request="post" path="/mediums/"/>
<desc>
Creates a new base medium object that will use the given storage
format and location for medium data.
The actual storage unit is not created by this method. In order to
do it, and before you are able to attach the created medium to
virtual machines, you must call one of the following methods to
allocate a format-specific storage unit at the specified location:
<ul>
<li><link to="IMedium::createBaseStorage"/></li>
<li><link to="IMedium::createDiffStorage"/></li>
</ul>
Some medium attributes, such as <link to="IMedium::id"/>, may
remain uninitialized until the medium storage unit is successfully
created by one of the above methods.
Depending on the given device type, the file at the storage location
must be in one of the media formats understood by VirtualBox:
<ul>
<li>With a "HardDisk" device type, the file must be a hard disk image
in one of the formats supported by VirtualBox (see
<link to="ISystemProperties::mediumFormats" />).
After the storage unit is successfully created and this method succeeds,
if the medium is a base medium, it
will be added to the <link to="#hardDisks"/> array attribute. </li>
<li>With a "DVD" device type, the file must be an ISO 9960 CD/DVD image.
After this method succeeds, the medium will be added to the
<link to="#DVDImages"/> array attribute.</li>
<li>With a "Floppy" device type, the file must be an RAW floppy image.
After this method succeeds, the medium will be added to the
<link to="#floppyImages"/> array attribute.</li>
</ul>
The list of all storage formats supported by this VirtualBox
installation can be obtained using
<link to="ISystemProperties::mediumFormats"/>. If the @a format
attribute is empty or @c null then the default storage format
specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
be used for disks r creating a storage unit of the medium.
Note that the format of the location string is storage format specific.
See <link to="IMedium::location"/> and IMedium for more details.
<result name="VBOX_E_OBJECT_NOT_FOUND">
@a format identifier is invalid. See
<link to="ISystemProperties::mediumFormats"/>.
</result>
<result name="VBOX_E_FILE_ERROR">
@a location is a not valid file name (for file-based formats only).
</result>
</desc>
<param name="format" type="wstring" dir="in">
<desc>
Identifier of the storage format to use for the new medium.
</desc>
</param>
<param name="location" type="wstring" dir="in">
<desc>
Location of the storage unit for the new medium.
</desc>
</param>
<param name="accessMode" type="AccessMode" dir="in">
<desc>Whether to open the image in read/write or read-only mode. For
a "DVD" device type, this is ignored and read-only mode is always assumed.</desc>
</param>
<param name="aDeviceTypeType" type="DeviceType" dir="in">
<desc>
Must be one of "HardDisk", "DVD" or "Floppy".
</desc>
</param>
<param name="medium" type="IMedium" dir="return">
<desc>Created medium object.</desc>
</param>
</method>
<method name="openMedium">
<rest request="post" path="/server/methods/"/>
<desc>
Finds existing media or opens a medium from an existing storage location.
Once a medium has been opened, it can be passed to other VirtualBox
methods, in particular to <link to="IMachine::attachDevice" />.
Depending on the given device type, the file at the storage location
must be in one of the media formats understood by VirtualBox:
<ul>
<li>With a "HardDisk" device type, the file must be a hard disk image
in one of the formats supported by VirtualBox (see
<link to="ISystemProperties::mediumFormats" />).
After this method succeeds, if the medium is a base medium, it
will be added to the <link to="#hardDisks"/> array attribute. </li>
<li>With a "DVD" device type, the file must be an ISO 9960 CD/DVD image.
After this method succeeds, the medium will be added to the
<link to="#DVDImages"/> array attribute.</li>
<li>With a "Floppy" device type, the file must be an RAW floppy image.
After this method succeeds, the medium will be added to the
<link to="#floppyImages"/> array attribute.</li>
</ul>
After having been opened, the medium can be re-found by this method
and can be attached to virtual machines. See <link to="IMedium" /> for
more details.
The UUID of the newly opened medium will either be retrieved from the
storage location, if the format supports it (e.g. for hard disk images),
or a new UUID will be randomly generated (e.g. for ISO and RAW files).
If for some reason you need to change the medium's UUID, use
<link to="IMedium::setIds" />.
If a differencing hard disk medium is to be opened by this method, the
operation will succeed only if its parent medium and all ancestors,
if any, are already known to this VirtualBox installation (for example,
were opened by this method before).
This method attempts to guess the storage format of the specified medium
by reading medium data at the specified location.
If @a accessMode is ReadWrite (which it should be for hard disks and floppies),
the image is opened for read/write access and must have according permissions,
as VirtualBox may actually write status information into the disk's metadata
sections.
Note that write access is required for all typical hard disk usage in VirtualBox,
since VirtualBox may need to write metadata such as a UUID into the image.
The only exception is opening a source image temporarily for copying and
cloning (see <link to="IMedium::cloneTo" /> when the image will be closed
again soon.
The format of the location string is storage format specific. See
<link to="IMedium::location"/> and IMedium for more details.
<result name="VBOX_E_FILE_ERROR">
Invalid medium storage file location or could not find the medium
at the specified location.
</result>
<result name="VBOX_E_IPRT_ERROR">
Could not get medium storage format.
</result>
<result name="E_INVALIDARG">
Invalid medium storage format.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Medium has already been added to a media registry.
</result>
</desc>
<param name="location" type="wstring" dir="in">
<desc>
Location of the storage unit that contains medium data in one of
the supported storage formats.
</desc>
</param>
<param name="deviceType" type="DeviceType" dir="in">
<desc>
Must be one of "HardDisk", "DVD" or "Floppy".
</desc>
</param>
<param name="accessMode" type="AccessMode" dir="in">
<desc>Whether to open the image in read/write or read-only mode. For
a "DVD" device type, this is ignored and read-only mode is always assumed.</desc>
</param>
<param name="forceNewUuid" type="boolean" dir="in">
<desc>Allows the caller to request a completely new medium UUID for
the image which is to be opened. Useful if one intends to open an exact
copy of a previously opened image, as this would normally fail due to
the duplicate UUID.</desc>
</param>
<param name="medium" type="IMedium" dir="return">
<desc>Opened medium object.</desc>
</param>
</method>
<method name="getGuestOSType">
<rest request="get" path="/server/methods/"/>
<desc>
Returns an object describing the specified guest OS type.
The requested guest OS type is specified using a string which is a
mnemonic identifier of the guest operating system, such as
<tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
particular virtual machine can be read or set using the
<link to="IMachine::OSTypeId"/> attribute.
The <link to="IVirtualBox::guestOSTypes"/> collection contains all
available guest OS type objects. Each object has an
<link to="IGuestOSType::id"/> attribute which contains an identifier of
the guest OS this object describes.
While this function returns an error for unknown guest OS types, they
can be still used without serious problems (if one accepts the fact
that there is no default VM config information).
<result name="E_INVALIDARG">
@a id is not a valid Guest OS type.
</result>
</desc>
<param name="id" type="wstring" dir="in">
<desc>Guest OS type ID string.</desc>
</param>
<param name="type" type="IGuestOSType" dir="return">
<desc>Guest OS type object.</desc>
</param>
</method>
<method name="createSharedFolder">
<rest name="create" request="post" path="/sharedfolders/"/>
<desc>
Creates a new global shared folder by associating the given logical
name with the given host path, adds it to the collection of shared
folders and starts sharing it. Refer to the description of
<link to="ISharedFolder"/> to read more about logical names.
<note>
In the current implementation, this operation is not
implemented.
</note>
</desc>
<param name="name" type="wstring" dir="in">
<desc>Unique logical name of the shared folder.</desc>
</param>
<param name="hostPath" type="wstring" dir="in">
<desc>Full path to the shared folder in the host file system.</desc>
</param>
<param name="writable" type="boolean" dir="in">
<desc>Whether the share is writable or readonly</desc>
</param>
<param name="automount" type="boolean" dir="in">
<desc>Whether the share gets automatically mounted by the guest
or not.</desc>
</param>
<param name="autoMountPoint" type="wstring" dir="in">
<desc>Where the guest should automatically mount the folder, if possible.
For Windows and OS/2 guests this should be a drive letter, while other
guests it should be a absolute directory.
</desc>
</param>
</method>
<method name="removeSharedFolder">
<rest name="remove" request="delete" path="/sharedfolders/"/>
<desc>
Removes the global shared folder with the given name previously
created by <link to="#createSharedFolder"/> from the collection of
shared folders and stops sharing it.
<note>
In the current implementation, this operation is not
implemented.
</note>
</desc>
<param name="name" type="wstring" dir="in">
<desc>Logical name of the shared folder to remove.</desc>
</param>
</method>
<method name="getExtraDataKeys">
<rest request="get" path="/server/methods/"/>
<desc>
Returns an array representing the global extra data keys which currently
have values defined.
</desc>
<param name="keys" type="wstring" dir="return" safearray="yes">
<desc>Array of extra data keys.</desc>
</param>
</method>
<method name="getExtraData">
<rest request="get" path="/server/methods/"/>
<desc>
Returns associated global extra data.
If the requested data @a key does not exist, this function will
succeed and return an empty string in the @a value argument.
<result name="VBOX_E_FILE_ERROR">
Settings file not accessible.
</result>
<result name="VBOX_E_XML_ERROR">
Could not parse the settings file.
</result>
</desc>
<param name="key" type="wstring" dir="in">
<desc>Name of the data key to get.</desc>
</param>
<param name="value" type="wstring" dir="return">
<desc>Value of the requested data key.</desc>
</param>
</method>
<method name="setExtraData">
<rest request="put" path="/server/methods/"/>
<desc>
Sets associated global extra data.
If you pass @c null or an empty string as a key @a value, the given
@a key will be deleted.
<note>
Key must contain printable (non-control) UTF-8 characters only.
</note>
<note>
Before performing the actual data change, this method will ask all
registered event listeners using the
<link to="IExtraDataCanChangeEvent"/>
notification for a permission. If one of the listeners refuses the
new value, the change will not be performed.
</note>
<note>
On success, the
<link to="IExtraDataChangedEvent"/> notification
is called to inform all registered listeners about a successful data
change.
</note>
<result name="VBOX_E_FILE_ERROR">
Settings file not accessible.
</result>
<result name="VBOX_E_XML_ERROR">
Could not parse the settings file.
</result>
<result name="E_ACCESSDENIED">
Modification request refused.
</result>
<result name="E_INVALIDARG">
Key contains invalid characters.
</result>
</desc>
<param name="key" type="wstring" dir="in">
<desc>Name of the data key to set.</desc>
</param>
<param name="value" type="wstring" dir="in">
<desc>Value to assign to the key.</desc>
</param>
</method>
<method name="setSettingsSecret">
<desc>
Unlocks the secret data by passing the unlock password to the
server. The server will cache the password for that machine.
<result name="VBOX_E_INVALID_VM_STATE">
Virtual machine is not mutable.
</result>
</desc>
<param name="password" type="wstring" dir="in">
<desc>
The cipher key.
</desc>
</param>
</method>
<!--method name="createDHCPServerForInterface">
<desc>
Creates a DHCP server settings to be used for the given interface
<result name="E_INVALIDARG">
Host network interface @a name already exists.
</result>
</desc>
<param name="interface" type="IHostNetworkInterface" dir="in">
<desc>Network Interface</desc>
</param>
<param name="server" type="IDHCPServer" dir="out">
<desc>DHCP server settings</desc>
</param>
</method-->
<method name="createDHCPServer">
<rest name="create" request="post" path="/dhcpservers/"/>
<desc>
Creates a DHCP server settings to be used for the given internal network name
<result name="E_INVALIDARG">
Host network interface @a name already exists.
</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>server name</desc>
</param>
<param name="server" type="IDHCPServer" dir="return">
<desc>DHCP server settings</desc>
</param>
</method>
<method name="findDHCPServerByNetworkName">
<rest name="find" request="get" path="/dhcpservers/"/>
<desc>
Searches a DHCP server settings to be used for the given internal network name
<result name="E_INVALIDARG">
Host network interface @a name already exists.
</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>server name</desc>
</param>
<param name="server" type="IDHCPServer" dir="return">
<desc>DHCP server settings</desc>
</param>
</method>
<!--method name="findDHCPServerForInterface">
<desc>
Searches a DHCP server settings to be used for the given interface
<result name="E_INVALIDARG">
Host network interface @a name already exists.
</result>
</desc>
<param name="interface" type="IHostNetworkInterface" dir="in">
<desc>Network Interface</desc>
</param>
<param name="server" type="IDHCPServer" dir="out">
<desc>DHCP server settings</desc>
</param>
</method-->
<method name="removeDHCPServer">
<rest name="remove" request="delete" path="/dhcpservers/"/>
<desc>
Removes the DHCP server settings
<result name="E_INVALIDARG">
Host network interface @a name already exists.
</result>
</desc>
<param name="server" type="IDHCPServer" dir="in">
<desc>DHCP server settings to be removed</desc>
</param>
</method>
<!-- bunch of methods to create NAT -->
<method name="createNATNetwork">
<!-- Here we create a record in NAT network array with name
and gateway/network parameters this information should
be enough for VBoxNetNAT and VBoxNetDHCP for
servicing the guests.
-->
<rest name="create" request="post" path="/natnetworks/"/>
<param name="networkName" type="wstring" dir="in"/>
<param name="network" type="INATNetwork" dir="return"/>
</method>
<!--
Returns the NATNetwork by name, e.g. for adding port forward rule or deletion.
-->
<method name="findNATNetworkByName">
<rest name="find" request="get" path="/natnetworks/"/>
<param name="networkName" type="wstring" dir="in"/>
<param name="network" type="INATNetwork" dir="return"/>
</method>
<!--
Deletes given NAT network.
-->
<method name="removeNATNetwork">
<rest name="remove" request="delete" path="/natnetworks/"/>
<param name="network" type="INATNetwork" dir="in"/>
</method>
<!-- bunch of methods to manage host-only networks -->
<!--
Here we create a record in cloud network array with specified name.
-->
<method name="createHostOnlyNetwork">
<rest name="create" request="post" path="/hostonlynetworks/"/>
<param name="networkName" type="wstring" dir="in"/>
<param name="network" type="IHostOnlyNetwork" dir="return"/>
</method>
<!--
Returns the host-only network by name.
-->
<method name="findHostOnlyNetworkByName">
<param name="networkName" type="wstring" dir="in"/>
<param name="network" type="IHostOnlyNetwork" dir="return"/>
</method>
<!--
Returns the host-only network by id.
-->
<method name="findHostOnlyNetworkById">
<rest name="find" request="get" path="/hostonlynetworks/"/>
<desc>
Searches through all host networks for one with
the given GUID.
<note>
The method returns an error if the given GUID does not
correspond to any host network.
</note>
</desc>
<param name="id" type="uuid" mod="string" dir="in">
<desc>GUID of the host-only network to search for.</desc>
</param>
<param name="network" type="IHostOnlyNetwork" dir="return">
<desc>Found host-only network object.</desc>
</param>
</method>
<!--
Deletes given host-only network.
-->
<method name="removeHostOnlyNetwork">
<rest name="remove" request="delete" path="/hostonlynetworks/"/>
<param name="network" type="IHostOnlyNetwork" dir="in"/>
</method>
<!-- bunch of methods to manage cloud networks -->
<method name="createCloudNetwork">
<!-- Here we create a record in cloud network array with specified name.
-->
<rest name="create" request="post" path="/cloudnetworks/"/>
<param name="networkName" type="wstring" dir="in"/>
<param name="network" type="ICloudNetwork" dir="return"/>
</method>
<!--
Returns the cloud network by name.
-->
<method name="findCloudNetworkByName">
<rest name="find" request="get" path="/cloudnetworks/"/>
<param name="networkName" type="wstring" dir="in"/>
<param name="network" type="ICloudNetwork" dir="return"/>
</method>
<!--
Deletes given cloud network.
-->
<method name="removeCloudNetwork">
<rest name="remove" request="delete" path="/cloudnetworks/"/>
<param name="network" type="ICloudNetwork" dir="in"/>
</method>
<method name="checkFirmwarePresent">
<rest request="get" path="/server/methods/"/>
<desc>
Check if this VirtualBox installation has a firmware
of the given type available, either system-wide or per-user.
Optionally, this may return a hint where this firmware can be
downloaded from.
</desc>
<param name="firmwareType" type="FirmwareType" dir="in">
<desc>
Type of firmware to check.
</desc>
</param>
<param name="version" type="wstring" dir="in">
<desc>Expected version number, usually empty string (presently ignored).</desc>
</param>
<param name="url" type="wstring" dir="out">
<desc>
Suggested URL to download this firmware from.
</desc>
</param>
<param name="file" type="wstring" dir="out">
<desc>
Filename of firmware, only valid if result == TRUE.
</desc>
</param>
<param name="result" type="boolean" dir="return">
<desc>If firmware of this type and version is available.</desc>
</param>
</method>
<method name="findProgressById">
<rest name="find" request="get" path="/progresses/{progressid}/"/>
<desc>
Searches through all progress objects known to VBoxSVC for an
instance with the given GUID.
<note>
The method returns an error if the given GUID does not
correspond to any currently known progress object.
</note>
</desc>
<param name="id" type="uuid" mod="string" dir="in">
<desc>GUID of the progress object to search for.</desc>
</param>
<param name="progressObject" type="IProgress" dir="return">
<desc>Found progress object.</desc>
</param>
</method>
</interface>
<!--
// IVFSExplorer
/////////////////////////////////////////////////////////////////////////
-->
<enum
name="VFSType"
uuid="813999ba-b949-48a8-9230-aadc6285e2f2"
>
<desc>
Virtual file systems supported by VFSExplorer.
</desc>
<const name="File" value="1" />
<const name="Cloud" value="2" />
<const name="S3" value="3" />
<const name="WebDav" value="4" />
</enum>
<interface
name="IVFSExplorer" extends="$unknown"
uuid="fb220201-2fd3-47e2-a5dc-2c2431d833cc"
wsmap="managed"
>
<desc>
The VFSExplorer interface unifies access to different file system
types. This includes local file systems as well remote file systems like
S3. For a list of supported types see <link to="VFSType" />.
An instance of this is returned by <link to="IAppliance::createVFSExplorer" />.
</desc>
<attribute name="path" type="wstring" readonly="yes">
<desc>Returns the current path in the virtual file system.</desc>
</attribute>
<attribute name="type" type="VFSType" readonly="yes">
<desc>Returns the file system type which is currently in use.</desc>
</attribute>
<method name="update">
<desc>Updates the internal list of files/directories from the
current directory level. Use <link to="#entryList" /> to get the full list
after a call to this method.</desc>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="cd">
<desc>Change the current directory level.</desc>
<param name="dir" type="wstring" dir="in">
<desc>The name of the directory to go in.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="cdUp">
<desc>Go one directory upwards from the current directory level.</desc>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="entryList">
<desc>Returns a list of files/directories after a call to <link
to="#update" />. The user is responsible for keeping this internal
list up do date.</desc>
<param name="names" type="wstring" safearray="yes" dir="out">
<desc>The list of names for the entries.</desc>
</param>
<param name="types" type="unsigned long" safearray="yes" dir="out">
<desc>The list of types for the entries. <link to="FsObjType"/></desc>
</param>
<param name="sizes" type="long long" safearray="yes" dir="out">
<desc>The list of sizes (in bytes) for the entries.</desc>
</param>
<param name="modes" type="unsigned long" safearray="yes" dir="out">
<desc>The list of file modes (in octal form) for the entries.</desc>
</param>
</method>
<method name="exists">
<desc>Checks if the given file list exists in the current directory
level.</desc>
<param name="names" type="wstring" safearray="yes" dir="in">
<desc>The names to check.</desc>
</param>
<param name="exists" type="wstring" safearray="yes" dir="return">
<desc>The names which exist.</desc>
</param>
</method>
<method name="remove">
<desc>Deletes the given files in the current directory level.</desc>
<param name="names" type="wstring" safearray="yes" dir="in">
<desc>The names to remove.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
</interface>
<enum
name="ImportOptions"
uuid="0a981523-3b20-4004-8ee3-dfd322202ace"
>
<desc>
Import options, used with <link to="IAppliance::importMachines" />.
</desc>
<const name="KeepAllMACs" value="1">
<desc>Don't generate new MAC addresses of the attached network adapters.</desc>
</const>
<const name="KeepNATMACs" value="2">
<desc>Don't generate new MAC addresses of the attached network adapters when they are using NAT.</desc>
</const>
<const name="ImportToVDI" value="3">
<desc>Import all disks to VDI format</desc>
</const>
</enum>
<enum
name="ExportOptions"
uuid="8f45eb08-fd34-41ee-af95-a880bdee5554"
>
<desc>
Export options, used with <link to="IAppliance::write" />.
</desc>
<const name="CreateManifest" value="1">
<desc>Write the optional manifest file (.mf) which is used for integrity
checks prior import.</desc>
</const>
<const name="ExportDVDImages" value="2">
<desc>Export DVD images. Default is not to export them as it is rarely
needed for typical VMs.</desc>
</const>
<const name="StripAllMACs" value="3">
<desc>Do not export any MAC address information. Default is to keep them
to avoid losing information which can cause trouble after import, at the
price of risking duplicate MAC addresses, if the import options are used
to keep them.</desc>
</const>
<const name="StripAllNonNATMACs" value="4">
<desc>Do not export any MAC address information, except for adapters
using NAT. Default is to keep them to avoid losing information which can
cause trouble after import, at the price of risking duplicate MAC
addresses, if the import options are used to keep them.</desc>
</const>
</enum>
<enum
name="CertificateVersion"
uuid="9e232a99-51d0-4dbd-96a0-ffac4bc3e2a8"
>
<desc>
X.509 certificate version numbers.
</desc>
<const name="V1" value="1"/>
<const name="V2" value="2"/>
<const name="V3" value="3"/>
<const name="Unknown" value="99"/>
</enum>
<!--
// ICertificate
/////////////////////////////////////////////////////////////////////////
-->
<interface
name="ICertificate" extends="$unknown"
uuid="392f1de4-80e1-4a8a-93a1-67c5f92a838a"
wsmap="managed"
rest="managed"
reservedAttributes="12" reservedMethods="2"
>
<desc>
X.509 certificate details.
</desc>
<attribute name="versionNumber" type="CertificateVersion" readonly="yes">
<desc>Certificate version number.</desc>
</attribute>
<attribute name="serialNumber" type="wstring" readonly="yes">
<desc>Certificate serial number.</desc>
</attribute>
<attribute name="signatureAlgorithmOID" type="wstring" readonly="yes">
<desc>The dotted OID of the signature algorithm.</desc>
</attribute>
<attribute name="signatureAlgorithmName" type="wstring" readonly="yes">
<desc>The signature algorithm name if known (if known).</desc>
</attribute>
<attribute name="issuerName" type="wstring" readonly="yes" safearray="yes">
<desc>Issuer name. Each member of the array is on the format
COMPONENT=NAME, e.g. "C=DE", "ST=Example", "L=For Instance", "O=Beispiel GmbH",
"CN=beispiel.example.org".
</desc>
</attribute>
<attribute name="subjectName" type="wstring" readonly="yes" safearray="yes">
<desc>Subject name. Same format as issuerName.</desc>
</attribute>
<attribute name="friendlyName" type="wstring" readonly="yes">
<desc>Friendly subject name or similar.</desc>
</attribute>
<attribute name="validityPeriodNotBefore" type="wstring" readonly="yes">
<desc>Certificate not valid before ISO timestamp.</desc>
</attribute>
<attribute name="validityPeriodNotAfter" type="wstring" readonly="yes">
<desc>Certificate not valid after ISO timestamp.</desc>
</attribute>
<attribute name="publicKeyAlgorithmOID" type="wstring" readonly="yes">
<desc>The dotted OID of the public key algorithm.</desc>
</attribute>
<attribute name="publicKeyAlgorithm" type="wstring" readonly="yes">
<desc>The public key algorithm name (if known).</desc>
</attribute>
<attribute name="subjectPublicKey" type="octet" safearray="yes" readonly="yes">
<desc>The raw public key bytes.</desc>
</attribute>
<attribute name="issuerUniqueIdentifier" type="wstring" readonly="yes">
<desc>Unique identifier of the issuer (empty string if not present).</desc>
</attribute>
<attribute name="subjectUniqueIdentifier" type="wstring" readonly="yes">
<desc>Unique identifier of this certificate (empty string if not present).</desc>
</attribute>
<attribute name="certificateAuthority" type="boolean" readonly="yes">
<desc>Whether this certificate is a certificate authority. Will return E_FAIL
if this attribute is not present.
</desc>
</attribute>
<attribute name="keyUsage" type="unsigned long" readonly="yes">
<desc>Key usage mask. Will return 0 if not present.</desc>
</attribute>
<attribute name="extendedKeyUsage" type="wstring" safearray="yes" readonly="yes">
<desc>Array of dotted extended key usage OIDs. Empty array if not present.</desc>
</attribute>
<attribute name="rawCertData" type="octet" safearray="yes" readonly="yes">
<desc>The raw certificate bytes.</desc>
</attribute>
<attribute name="selfSigned" type="boolean" readonly="yes">
<desc>Set if self signed certificate.</desc>
</attribute>
<!-- The following is subject to the parent object views. -->
<attribute name="trusted" type="boolean" readonly="yes">
<desc>Set if the certificate is trusted (by the parent object).</desc>
</attribute>
<attribute name="expired" type="boolean" readonly="yes"> <!-- isCurrentlyExpired is clearer than isCurrentlyValid. -->
<desc>Set if the certificate has expired (relevant to the parent object)/</desc>
</attribute>
<method name="isCurrentlyExpired">
<desc>
Tests if the certificate has expired at the present time according to
the X.509 validity of the certificate.</desc>
<param name="result" type="boolean" dir="return" />
</method>
<method name="queryInfo">
<desc>Way to extend the interface.</desc>
<param name="what" type="long" dir="in"/>
<param name="result" type="wstring" dir="return" />
</method>
</interface>
<!--
// IAppliance
/////////////////////////////////////////////////////////////////////////
-->
<interface
name="IAppliance" extends="$unknown"
uuid="86a98347-7619-41aa-aece-b21ac5c1a7e6"
wsmap="managed"
rest="managed"
reservedMethods="7" reservedAttributes="8"
>
<desc>
Represents a platform-independent appliance in OVF format. An instance of this is returned
by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
virtual machines within an appliance with VirtualBox.
The OVF standard suggests two different physical file formats:
<ol>
<li>If the appliance is distributed as a set of files, there must be at least one XML descriptor
file that conforms to the OVF standard and carries an <tt>.ovf</tt> file extension. If
this descriptor file references other files such as disk images, as OVF appliances typically
do, those additional files must be in the same directory as the descriptor file.
</li>
<li>If the appliance is distributed as a single file, it must be in TAR format and have the
<tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
files and optionally other files.
At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
be added with a later version.
</li>
</ol>
<b>Importing</b> an OVF appliance into VirtualBox as instances of
<link to="IMachine" /> involves the following sequence of API calls:
<ol>
<li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
</li>
<li>On the new object, call <link to="#read" /> with the full path of the OVF file you
would like to import. So long as this file is syntactically valid, this will succeed
and fill the appliance object with the parsed data from the OVF file.
</li>
<li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
contents of the IAppliance attributes accordingly. These can be inspected by a
VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
instances of <link to="IVirtualSystemDescription" /> which represent the virtual
systems (machines) in the OVF, which in turn describe the virtual hardware prescribed
by the OVF (network and hardware adapters, virtual disk images, memory size and so on).
The GUI can then give the user the option to confirm and/or change these suggestions.
</li>
<li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
virtual system (machine) to override the suggestions made by the <link to="#interpret" /> routine.
</li>
<li>Finally, call <link to="#importMachines" /> to create virtual machines in
VirtualBox as instances of <link to="IMachine" /> that match the information in the
virtual system descriptions. After this call succeeded, the UUIDs of the machines created
can be found in the <link to="#machines" /> array attribute.
</li>
</ol>
<b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
<ol>
<li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
an empty IAppliance object.
</li>
<li>For each machine you would like to export, call <link to="IMachine::exportTo" />
with the IAppliance object you just created. Each such call creates one instance of
<link to="IVirtualSystemDescription" /> inside the appliance.
</li>
<li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
virtual system (machine) to override the suggestions made by the <link to="IMachine::exportTo"/> routine.
</li>
<li>Finally, call <link to="#write" /> with a path specification to have the OVF
file written.</li>
</ol>
</desc>
<attribute name="path" type="wstring" readonly="yes">
<desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
<link to="#write" /> (for export).
This attribute is empty until one of these methods has been called.
</desc>
</attribute>
<attribute name="disks" type="wstring" readonly="yes" safearray="yes">
<desc>
Array of virtual disk definitions. One such description exists for each
disk definition in the OVF; each string array item represents one such piece of
disk information, with the information fields separated by tab (\\t) characters.
The caller should be prepared for additional fields being appended to
this string in future versions of VirtualBox and therefore check for
the number of tabs in the strings returned.
In the current version, the following eight fields are returned per string
in the array:
<ol>
<li>Disk ID (unique string identifier given to disk)</li>
<li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
<li>Populated size (optional unsigned integer indicating the current size of the
disk; can be approximate; -1 if unspecified)</li>
<li>Format (string identifying the disk format, typically
"http://www.vmware.com/specifications/vmdk.html#sparse")</li>
<li>Reference (where to find the disk image, typically a file name; if empty,
then the disk should be created on import)</li>
<li>Image size (optional unsigned integer indicating the size of the image,
which need not necessarily be the same as the values specified above, since
the image may be compressed or sparse; -1 if not specified)</li>
<li>Chunk size (optional unsigned integer if the image is split into chunks;
presently unsupported and always -1)</li>
<li>Compression (optional string equaling "gzip" if the image is gzip-compressed)</li>
</ol>
</desc>
</attribute>
<attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
<desc> Array of virtual system descriptions. One such description is created
for each virtual system (machine) found in the OVF.
This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::exportTo" />
(for export) has been called.
</desc>
</attribute>
<attribute name="machines" type="wstring" readonly="yes" safearray="yes">
<desc>
Contains the UUIDs of the machines created from the information in this appliances. This is only
relevant for the import case, and will only contain data after a call to <link to="#importMachines" />
succeeded.
</desc>
</attribute>
<attribute name="certificate" type="ICertificate" readonly="yes">
<desc>
The X.509 signing certificate, if the imported OVF was signed, @c null
if not signed. This is available after calling <link to="#read"/>.
</desc>
</attribute>
<method name="read">
<rest request="post" path="/appliances/{applianceid}/actions/"/>
<desc>
Reads an OVF file into the appliance object.
This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
mere fact that this method returns successfully does not mean that VirtualBox supports all
features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
</desc>
<param name="file" type="wstring" dir="in">
<desc>
Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
on whether the appliance is distributed as a set of files or as a single file, respectively).
</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="interpret">
<rest request="post" path="/appliances/{applianceid}/actions/"/>
<desc>
Interprets the OVF data that was read when the appliance was constructed. After
calling this method, one can inspect the
<link to="#virtualSystemDescriptions" /> array attribute, which will then contain
one <link to="IVirtualSystemDescription" /> for each virtual machine found in
the appliance.
Calling this method is the second step of importing an appliance into VirtualBox;
see <link to="IAppliance" /> for an overview.
After calling this method, one should call <link to="#getWarnings" /> to find out
if problems were encountered during the processing which might later lead to
errors.
</desc>
</method>
<method name="importMachines">
<rest request="post" path="/appliances/{applianceid}/actions/"/>
<desc>
Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
and other interfaces that match the information contained in the appliance as
closely as possible, as represented by the import instructions in the
<link to="#virtualSystemDescriptions" /> array.
Calling this method is the final step of importing an appliance into VirtualBox;
see <link to="IAppliance" /> for an overview.
Since importing the appliance will most probably involve copying and converting
disk images, which can take a long time, this method operates asynchronously and
returns an IProgress object to allow the caller to monitor the progress.
After the import succeeded, the UUIDs of the IMachine instances created can be
retrieved from the <link to="#machines" /> array attribute.
</desc>
<param name="options" type="ImportOptions" dir="in" safearray="yes">
<desc>Options for the importing operation.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="createVFSExplorer">
<desc>Returns a <link to="IVFSExplorer" /> object for the given URI.</desc>
<param name="URI" type="wstring" dir="in">
<desc>The URI describing the file system to use.</desc>
</param>
<param name="explorer" type="IVFSExplorer" dir="return">
<desc></desc>
</param>
</method>
<method name="write">
<rest request="post" path="/appliances/{applianceid}/actions/"/>
<desc>
Writes the contents of the appliance exports into a new OVF file.
Calling this method is the final step of exporting an appliance from VirtualBox;
see <link to="IAppliance" /> for an overview.
Since exporting the appliance will most probably involve copying and converting
disk images, which can take a long time, this method operates asynchronously and
returns an IProgress object to allow the caller to monitor the progress.
</desc>
<param name="format" type="wstring" dir="in">
<desc>
Output format, as a string. Currently supported formats are "ovf-0.9", "ovf-1.0",
"ovf-2.0" and "opc-1.0"; future versions of VirtualBox may support additional formats.
The "opc-1.0" format is for creating tarballs for the Oracle Public Cloud.
</desc>
</param>
<param name="options" type="ExportOptions" dir="in" safearray="yes">
<desc>Options for the exporting operation.</desc>
</param>
<param name="path" type="wstring" dir="in">
<desc>
Name of appliance file to create. There are certain restrictions with regard
to the file name suffix. If the format parameter is "opc-1.0" a <tt>.tar.gz</tt>
suffix is required. Otherwise the suffix must either be <tt>.ovf</tt> or
<tt>.ova</tt>, depending on whether the appliance is distributed as a set of
files or as a single file, respectively.
</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="getWarnings">
<rest request="get" path="/appliances/{applianceid}/configuration/"/>
<desc>Returns textual warnings which occurred during execution of <link to="#interpret" />.</desc>
<param name="warnings" type="wstring" dir="return" safearray="yes">
<desc></desc>
</param>
</method>
<method name="getPasswordIds">
<rest request="get" path="/appliances/{applianceid}/configuration/"/>
<desc>
Returns a list of password identifiers which must be supplied to import or export
encrypted virtual machines.
</desc>
<param name="identifiers" type="wstring" dir="return" safearray="yes">
<desc>The list of password identifiers required for export on success.</desc>
</param>
</method>
<method name="getMediumIdsForPasswordId">
<rest request="get" path="/appliances/{applianceid}/configuration/"/>
<desc>
Returns a list of medium identifiers which use the given password identifier.
</desc>
<param name="passwordId" type="wstring" dir="in">
<desc>The password identifier to get the medium identifiers for.</desc>
</param>
<param name="identifiers" type="uuid" mod="string" dir="return" safearray="yes">
<desc>The list of medium identifiers returned on success.</desc>
</param>
</method>
<method name="addPasswords">
<rest request="post" path="/appliances/{applianceid}/configuration/"/>
<desc>
Adds a list of passwords required to import or export encrypted virtual
machines.
</desc>
<param name="identifiers" type="wstring" dir="in" safearray="yes">
<desc>List of identifiers.</desc>
</param>
<param name="passwords" type="wstring" dir="in" safearray="yes">
<desc>List of matching passwords.</desc>
</param>
</method>
<method name="createVirtualSystemDescriptions">
<rest request="post" path="/appliances/{applianceid}/configuration/"/>
<desc>Creates a number of <link to="IVirtualSystemDescription" /> objects and store them
in the <link to="#virtualSystemDescriptions" /> array.
</desc>
<param name="requested" type="unsigned long" dir="in">
<desc>Requested number of new virtual system description objects</desc>
</param>
<param name="created" type="unsigned long" dir="return">
<desc>Actually created number of virtual system description objects</desc>
</param>
</method>
</interface>
<enum
name="VirtualSystemDescriptionType"
uuid="247f8b6f-1042-4c15-8910-3e3c64395eb7"
>
<desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
a configuration value.</desc>
<const name="Ignore" value="1" />
<const name="OS" value="2" />
<const name="Name" value="3" />
<const name="Product" value="4" />
<const name="Vendor" value="5" />
<const name="Version" value="6" />
<const name="ProductUrl" value="7" />
<const name="VendorUrl" value="8" />
<const name="Description" value="9" />
<const name="License" value="10" />
<const name="Miscellaneous" value="11" />
<const name="CPU" value="12" />
<const name="Memory" value="13" />
<const name="HardDiskControllerIDE" value="14" />
<const name="HardDiskControllerSATA" value="15" />
<const name="HardDiskControllerSCSI" value="16" />
<const name="HardDiskControllerSAS" value="17" />
<const name="HardDiskImage" value="18" />
<const name="Floppy" value="19" />
<const name="CDROM" value="20" />
<const name="NetworkAdapter" value="21" />
<const name="USBController" value="22" />
<const name="SoundCard" value="23" />
<const name="SettingsFile" value="24">
<desc>Optional, may be unset by the API caller. If this is changed by the
API caller it defines the absolute path of the VM settings file and
therefore also the VM folder with highest priority.</desc>
</const>
<const name="BaseFolder" value="25">
<desc>Optional, may be unset by the API caller. If set (and
<link to="VirtualSystemDescriptionType_SettingsFile"/> is not changed),
defines the VM base folder (taking the primary group into account if
also set).</desc>
</const>
<const name="PrimaryGroup" value="26">
<desc>Optional, empty by default and may be unset by the API caller.
Defines the primary group of the VM after import. May influence the
selection of the VM folder. Additional groups may be configured later
using <link to="IMachine::groups"/>, after importing.</desc>
</const>
<const name="CloudInstanceShape" value="27" />
<const name="CloudDomain" value="28" />
<const name="CloudBootDiskSize" value="29" />
<const name="CloudBucket" value="30" />
<const name="CloudOCIVCN" value="31" />
<const name="CloudPublicIP" value="32" />
<const name="CloudProfileName" value="33" />
<const name="CloudOCISubnet" value="34" />
<const name="CloudKeepObject" value="35" />
<const name="CloudLaunchInstance" value="36" />
<const name="CloudInstanceId" value="37" />
<const name="CloudImageId" value="38" />
<const name="CloudInstanceState" value="39" />
<const name="CloudImageState" value="40" />
<const name="CloudInstanceDisplayName" value="41" />
<const name="CloudImageDisplayName" value="42" />
<const name="CloudOCILaunchMode" value="43" />
<const name="CloudPrivateIP" value="44" />
<const name="CloudBootVolumeId" value="45" />
<const name="CloudOCIVCNCompartment" value="46" />
<const name="CloudOCISubnetCompartment" value="47" />
<const name="CloudPublicSSHKey" value="48" />
<const name="BootingFirmware" value="49" />
<const name="CloudInitScriptPath" value="50" />
<const name="CloudCompartmentId" value="51" />
<const name="CloudShapeCpus" value="52" />
<const name="CloudShapeMemory" value="53" />
<const name="HardDiskControllerVirtioSCSI" value="60" />
</enum>
<enum
name="VirtualSystemDescriptionValueType"
uuid="56d9403f-3425-4118-9919-36f2a9b8c77c"
>
<desc>Used with <link to="IVirtualSystemDescription::getValuesByType" /> to describe the value
type to fetch.</desc>
<const name="Reference" value="1" />
<const name="Original" value="2" />
<const name="Auto" value="3" />
<const name="ExtraConfig" value="4" />
</enum>
<interface
name="IVirtualSystemDescription" extends="$unknown"
uuid="01510f40-c196-4d26-b8db-4c8c389f1f82"
wsmap="managed"
rest="managed"
reservedMethods="4" reservedAttributes="4"
>
<desc>
Represents one virtual system (machine) in an appliance. This interface is used in
the <link to="IAppliance::virtualSystemDescriptions" /> array. After
<link to="IAppliance::interpret" /> has been called, that array contains information
about how the virtual systems described in the OVF should best be imported into
VirtualBox virtual machines. See <link to="IAppliance" /> for the steps required to
import an OVF into VirtualBox.
</desc>
<attribute name="count" type="unsigned long" readonly="yes">
<desc>Return the number of virtual system description entries.</desc>
</attribute>
<method name="getDescription">
<desc>Returns information about the virtual system as arrays of instruction items. In each array, the
items with the same indices correspond and jointly represent an import instruction for VirtualBox.
The list below identifies the value sets that are possible depending on the
<link to="VirtualSystemDescriptionType" /> enum value in the array item in @a aTypes[]. In each case,
the array item with the same index in @a OVFValues[] will contain the original value as contained
in the OVF file (just for informational purposes), and the corresponding item in @a aVBoxValues[]
will contain a suggested value to be used for VirtualBox. Depending on the description type,
the @a aExtraConfigValues[] array item may also be used.
<ul>
<li>
"OS": the guest operating system type. There must be exactly one such array item on import. The
corresponding item in @a aVBoxValues[] contains the suggested guest operating system for VirtualBox.
This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
item in @a OVFValues[] will contain a numerical value that described the operating system in the OVF.
</li>
<li>
"Name": the name to give to the new virtual machine. There can be at most one such array item;
if none is present on import, then an automatic name will be created from the operating system
type. The corresponding item im @a OVFValues[] will contain the suggested virtual machine name
from the OVF file, and @a aVBoxValues[] will contain a suggestion for a unique VirtualBox
<link to="IMachine" /> name that does not exist yet.
</li>
<li>
"Description": an arbitrary description.
</li>
<li>
"License": the EULA section from the OVF, if present. It is the responsibility of the calling
code to display such a license for agreement; the Main API does not enforce any such policy.
</li>
<li>
Miscellaneous: reserved for future use.
</li>
<li>
"CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
</li>
<li>
"Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
is present on import, then VirtualBox will set a meaningful default based on the operating system
type.
</li>
<li>
"HardDiskControllerIDE": an IDE hard disk controller. There can be at most two such items.
An optional value in @a OVFValues[] and @a aVBoxValues[] can be "PIIX3" or "PIIX4" to specify
the type of IDE controller; this corresponds to the ResourceSubType element which VirtualBox
writes into the OVF.
The matching item in the @a aRefs[] array will contain an integer that items of the "Harddisk"
type can use to specify which hard disk controller a virtual disk should be connected to.
Note that in OVF, an IDE controller has two channels, corresponding to "master" and "slave"
in traditional terminology, whereas the IDE storage controller that VirtualBox supports in
its virtual machines supports four channels (primary master, primary slave, secondary master,
secondary slave) and thus maps to two IDE controllers in the OVF sense.
</li>
<li>
"HardDiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
has no value in @a OVFValues[] or @a aVBoxValues[].
The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
</li>
<li>
"HardDiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
The items in @a OVFValues[] and @a aVBoxValues[] will either be "LsiLogic", "BusLogic" or
"LsiLogicSas". (Note that in OVF, the LsiLogicSas controller is treated as a SCSI controller
whereas VirtualBox considers it a class of storage controllers of its own; see
<link to="StorageControllerType" />).
The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
</li>
<li>
"HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
The array item in @a OVFValues[] will contain the file specification from the OVF file (without
a path since the image file should be in the same location as the OVF file itself), whereas the
item in @a aVBoxValues[] will contain a qualified path specification to where VirtualBox uses the
hard disk image. This means that on import the image will be copied and converted from the
"ovf" location to the "vbox" location; on export, this will be handled the other way round.
The matching item in the @a aExtraConfigValues[] array must contain a string of the following
format: "controller=<index>;channel=<c>"
In this string, <index> must be an integer specifying the hard disk controller to connect
the image to. That number must be the index of an array item with one of the hard disk controller
types (HardDiskControllerSCSI, HardDiskControllerSATA, HardDiskControllerIDE).
In addition, <c> must specify the channel to use on that controller. For IDE controllers,
this can be 0 or 1 for master or slave, respectively. For compatibility with VirtualBox versions
before 3.2, the values 2 and 3 (for secondary master and secondary slave) are also supported, but
no longer exported. For SATA and SCSI controllers, the channel can range from 0-29.
</li>
<li>
"CDROM": a virtual CD-ROM drive. The matching item in @a aExtraConfigValue[] contains the same
attachment information as with "HardDiskImage" items.
</li>
<li>
"CDROM": a virtual floppy drive. The matching item in @a aExtraConfigValue[] contains the same
attachment information as with "HardDiskImage" items.
</li>
<li>
"NetworkAdapter": a network adapter. The array item in @a aVBoxValues[] will specify the hardware
for the network adapter, whereas the array item in @a aExtraConfigValues[] will have a string
of the "type=<X>" format, where <X> must be either "NAT" or "Bridged".
</li>
<li>
"USBController": a USB controller. There can be at most one such item. If, and only if, such an
item is present, USB support will be enabled for the new virtual machine.
</li>
<li>
"SoundCard": a sound card. There can be at most one such item. If and only if such an item is
present, sound support will be enabled for the new virtual machine. Note that the virtual
machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
may be different from the virtual soundcard expected by the appliance.
</li>
</ul>
</desc>
<param name="types" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
<desc></desc>
</param>
<param name="refs" type="wstring" dir="out" safearray="yes">
<desc></desc>
</param>
<param name="OVFValues" type="wstring" dir="out" safearray="yes">
<desc></desc>
</param>
<param name="VBoxValues" type="wstring" dir="out" safearray="yes">
<desc></desc>
</param>
<param name="extraConfigValues" type="wstring" dir="out" safearray="yes">
<desc></desc>
</param>
</method>
<method name="getDescriptionByType">
<desc>This is the same as <link to="#getDescription" /> except that you can specify which types
should be returned.</desc>
<param name="type" type="VirtualSystemDescriptionType" dir="in">
<desc></desc>
</param>
<param name="types" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
<desc></desc>
</param>
<param name="refs" type="wstring" dir="out" safearray="yes">
<desc></desc>
</param>
<param name="OVFValues" type="wstring" dir="out" safearray="yes">
<desc></desc>
</param>
<param name="VBoxValues" type="wstring" dir="out" safearray="yes">
<desc></desc>
</param>
<param name="extraConfigValues" type="wstring" dir="out" safearray="yes">
<desc></desc>
</param>
</method>
<method name="removeDescriptionByType">
<desc>Delete all records which are equal to the passed type from the list</desc>
<param name="type" type="VirtualSystemDescriptionType" dir="in">
<desc></desc>
</param>
</method>
<method name="getValuesByType">
<desc>This is the same as <link to="#getDescriptionByType" /> except that you can specify which
value types should be returned. See <link to="VirtualSystemDescriptionValueType" /> for possible
values.</desc>
<param name="type" type="VirtualSystemDescriptionType" dir="in">
<desc></desc>
</param>
<param name="which" type="VirtualSystemDescriptionValueType" dir="in">
<desc></desc>
</param>
<param name="values" type="wstring" dir="return" safearray="yes">
<desc></desc>
</param>
</method>
<method name="setFinalValues">
<desc>
This method allows the appliance's user to change the configuration for the virtual
system descriptions. For each array item returned from <link to="#getDescription" />,
you must pass in one boolean value and one configuration value.
Each item in the boolean array determines whether the particular configuration item
should be enabled.
You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
and SoundCard.
For the "vbox" and "extra configuration" values, if you pass in the same arrays
as returned in the aVBoxValues and aExtraConfigValues arrays from <link to="#getDescription"/>,
the configuration remains unchanged. Please see the documentation for <link to="#getDescription"/>
for valid configuration values for the individual array item types. If the
corresponding item in the aEnabled array is @c false, the configuration value is ignored.
</desc>
<param name="enabled" type="boolean" dir="in" safearray="yes">
<desc></desc>
</param>
<param name="VBoxValues" type="wstring" dir="in" safearray="yes">
<desc></desc>
</param>
<param name="extraConfigValues" type="wstring" dir="in" safearray="yes">
<desc></desc>
</param>
</method>
<method name="addDescription">
<desc>
This method adds an additional description entry to the stack of already
available descriptions for this virtual system. This is handy for writing
values which aren't directly supported by VirtualBox. One example would
be the License type of <link to="VirtualSystemDescriptionType" />.
</desc>
<param name="type" type="VirtualSystemDescriptionType" dir="in">
<desc></desc>
</param>
<param name="VBoxValue" type="wstring" dir="in">
<desc></desc>
</param>
<param name="extraConfigValue" type="wstring" dir="in">
<desc></desc>
</param>
</method>
</interface>
<!--
// IUnattended
/////////////////////////////////////////////////////////////////////////
-->
<interface
name="IUnattended" extends="$unknown"
uuid="6f89464f-7773-436a-a4df-592e4e537fa0"
wsmap="managed"
rest="managed"
reservedMethods="4" reservedAttributes="16"
>
<desc>
The IUnattended interface represents the pipeline for preparing
the Guest OS for fully automated install.
The typical workflow is:
<ol>
<li>Call <link to="IVirtualBox::createUnattendedInstaller"/> to create the object</li>
<li>Set <link to="IUnattended::isoPath"/> and call <link to="IUnattended::detectIsoOS"/></li>
<li>Create, configure and register a machine according to <link to="IUnattended::detectedOSTypeId"/>
and the other detectedOS* attributes.</li>
<li>Set <link to="IUnattended::machine"/> to the new IMachine instance.</li>
<li>Set the other IUnattended attributes as desired.</li>
<li>Call <link to="IUnattended::prepare"/> for the object to check the
attribute values and create an internal installer instance.</li>
<li>Call <link to="IUnattended::constructMedia"/> to create additional
media files (ISO/floppy) needed.</li>
<li>Call <link to="IUnattended::reconfigureVM"/> to reconfigure the VM
with the installation ISO, additional media files and whatnot </li>
<li>Optionally call <link to="IUnattended::done"/> to destroy the internal
installer and allow restarting from the second step.</li>
</ol>
Note! Step two is currently not implemented.
</desc>
<attribute name="isoPath" type="wstring">
<desc>
Guest operating system ISO image
</desc>
</attribute>
<attribute name="machine" type="IMachine">
<desc>
The associated machine object.
This must be set before <link to="IUnattended::prepare"/> is called.
The VM must be registered.
</desc>
</attribute>
<attribute name="user" type="wstring">
<desc>
Assign an user login name.
</desc>
</attribute>
<attribute name="password" type="wstring">
<desc>
Assign a password to the user. The password is the same for both
normal user and for Administrator / 'root' accounts.
</desc>
</attribute>
<attribute name="fullUserName" type="wstring">
<desc>
The full name of the user. This is optional and defaults to
<link to="IUnattended::user"/>. Please note that not all guests picks
up this attribute.
</desc>
</attribute>
<attribute name="productKey" type="wstring">
<desc>
Any key which is used as authorization of access to install genuine OS
</desc>
</attribute>
<attribute name="additionsIsoPath" type="wstring">
<desc>
Guest Additions ISO image path. This defaults to
<link to="ISystemProperties::defaultAdditionsISO"/> when the Unattended
object is instantiated.
This property is ignored when <link to="IUnattended::installGuestAdditions"/> is false.
</desc>
</attribute>
<attribute name="installGuestAdditions" type="boolean">
<desc>
Indicates whether the Guest Additions should be installed or not.
Setting this to false does not affect additions shipped with the linux
distribution, only the installation of additions pointed to by
<link to="IUnattended::additionsIsoPath"/>.
</desc>
</attribute>
<attribute name="validationKitIsoPath" type="wstring">
<desc>
VirtualBox ValidationKit ISO image path. This is used when
<link to="IUnattended::installTestExecService"/> is set to true.
</desc>
</attribute>
<attribute name="installTestExecService" type="boolean">
<desc>
Indicates whether the test execution service (TXS) from the VBox
ValidationKit should be installed.
The TXS binary will be taken from the ISO indicated by
<link to="IUnattended::validationKitIsoPath"/>.
</desc>
</attribute>
<attribute name="timeZone" type="wstring">
<desc>
The guest time zone specifier.
This is unfortunately guest OS specific.
Windows XP and earlier takes the index number from this table:
https://support.microsoft.com/en-gb/help/973627/microsoft-time-zone-index-values
Windows Vista and later takes the time zone string from this table:
https://technet.microsoft.com/en-us/library/cc749073(v=ws.10).aspx
Linux usually takes the TZ string from this table:
https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
The default is currently UTC/GMT, but this may change to be same as
the host later.
TODO: Investigate automatic mapping between linux and the two windows
time zone formats.
TODO: Take default from host (this requires mapping).
</desc>
</attribute>
<attribute name="locale" type="wstring">
<desc>
The 5 letter locale identifier, no codesets or such.
The format is two lower case language letters (ISO 639-1), underscore ('_'),
and two upper case country letters (ISO 3166-1 alpha-2). For instance
'en_US', 'de_DE', or 'ny_NO'.
The default is taken from the host if possible, with 'en_US' as fallback.
</desc>
</attribute>
<attribute name="language" type="wstring">
<desc>
This is more or less a Windows specific setting for choosing the UI language
setting of the installer.
The value should be from the list available via <link to="IUnattended::detectedOSLanguages"/>.
The typical format is {language-code}-{COUNTRY} but windows may also use
{16-bit code}:{32-bit code} or insert another component between the language
and country codes. We consider the format guest OS specific.
Note that it is crucial that this is correctly specified for Windows
installations. If an unsupported value is given the installer will ask
for an installation language and wait for user input. Best to leave it
to the default value.
The default is the first one from <link to="IUnattended::detectedOSLanguages"/>.
</desc>
</attribute>
<attribute name="country" type="wstring">
<desc>
The 2 upper case letter country identifier, ISO 3166-1 alpha-2.
This is used for mirrors and such.
The default is taken from the host when possible, falling back on
<link to="IUnattended::locale"/>.
</desc>
</attribute>
<attribute name="proxy" type="wstring">
<desc>
Proxy incantation to pass on to the guest OS installer.
This is important to get right if the guest OS installer is of the type
that goes online to fetch the packages (e.g. debian-*-netinst.iso) or
to fetch updates during the install process.
Format: [schema=]schema://[login[:password]@]proxy[:port][;...]
The default is taken from the host proxy configuration (once implemented).
</desc>
</attribute>
<attribute name="packageSelectionAdjustments" type="wstring">
<desc>
Guest OS specific package selection adjustments.
This is a semicolon separated list of keywords, and later maybe guest OS
package specifiers. Currently the 'minimal' is the only recognized value,
and this only works with a selection of linux installers.
</desc>
</attribute>
<attribute name="hostname" type="wstring">
<desc>
The fully qualified guest hostname.
This defaults to machine-name + ".myguest.virtualbox.org", though it may
change to the host domain name later.
</desc>
</attribute>
<attribute name="auxiliaryBasePath" type="wstring">
<desc>
The path + basename for auxiliary files generated by the unattended
installation. This defaults to the VM folder + Unattended + VM UUID.
The files which gets generated depends on the OS being installed. When
installing Windows there is currently only a auxiliaryBasePath + "floppy.img"
being created. But for linux, a "cdrom.viso" and one or more configuration
files are generate generated.
</desc>
</attribute>
<attribute name="imageIndex" type="unsigned long">
<desc>
The image index on installation CD/DVD used to install. This index should be
one of the indices of <link to="IUnattended::detectedImageIndices"/>.
Changing this after ISO detection may cause
<link to="IUnattended::detectedOSTypeId"/>, <link to="IUnattended::detectedOSVersion"/>,
<link to="IUnattended::detectedOSFlavor"/>, <link to="IUnattended::detectedOSLanguages"/>,
and <link to="IUnattended::detectedOSHints"/> to be updated with values
specific to the selected image.
Used only with Windows installation CD/DVD:
https://technet.microsoft.com/en-us/library/cc766022%28v=ws.10%29.aspx
</desc>
</attribute>
<attribute name="scriptTemplatePath" type="wstring">
<desc>
The unattended installation script template file.
The template default is based on the guest OS type and is determined by the
internal installer when when <link to="IUnattended::prepare"/> is invoked.
Most users will want the defaults.
After <link to="IUnattended::prepare"/> is called, it can be read to see
which file is being used.
</desc>
</attribute>
<attribute name="postInstallScriptTemplatePath" type="wstring">
<desc>
The post installation (shell/batch) script template file.
The template default is based on the guest OS type and is determined by the
internal installer when when <link to="IUnattended::prepare"/> is invoked.
Most users will want the defaults.
After <link to="IUnattended::prepare"/> is called, it can be read to see
which file is being used.
</desc>
</attribute>
<attribute name="postInstallCommand" type="wstring">
<desc>
Custom post installation command.
Exactly what is expected as input here depends on the guest OS installer
and the post installation script template (see
<link to="IUnattended::postInstallScriptTemplatePath"/>).
Most users will not need to set this attribute.
</desc>
</attribute>
<attribute name="extraInstallKernelParameters" type="wstring">
<desc>
Extra kernel arguments passed to the install kernel of some guests.
This is currently only picked up by linux guests. The exact parameters
are specific to the guest OS being installed of course.
After <link to="IUnattended::prepare"/> is called, it can be read to see
which parameters are being used.
</desc>
</attribute>
<attribute name="detectedOSTypeId" type="wstring" readonly="yes">
<desc>
The detected OS type ID (<link to="IGuestOSType::id"/>).
Set by <link to="IUnattended::detectIsoOS"/> or <link to="IUnattended::prepare"/>.
Not yet implemented.
</desc>
</attribute>
<attribute name="detectedOSVersion" type="wstring" readonly="yes">
<desc>
The detected OS version string.
Set by <link to="IUnattended::detectIsoOS"/> or <link to="IUnattended::prepare"/>.
Not yet implemented.
</desc>
</attribute>
<attribute name="detectedOSFlavor" type="wstring" readonly="yes">
<desc>
The detected OS flavor (e.g. server, desktop, etc)
Set by <link to="IUnattended::detectIsoOS"/> or <link to="IUnattended::prepare"/>.
Not yet implemented.
</desc>
</attribute>
<attribute name="detectedOSLanguages" type="wstring" readonly="yes">
<desc>
The space separated list of (Windows) installation UI languages we detected (lang.ini).
The language specifier format is specific to the guest OS. They are
used to set <link to="IUnattended::language"/>.
Set by <link to="IUnattended::detectIsoOS"/> or <link to="IUnattended::prepare"/>.
Partially implemented.
</desc>
</attribute>
<attribute name="detectedOSHints" type="wstring" readonly="yes">
<desc>
Space separated list of other stuff detected about the OS and the
installation ISO.
Set by <link to="IUnattended::detectIsoOS"/> or <link to="IUnattended::prepare"/>.
Not yet implemented.
</desc>
</attribute>
<attribute name="detectedImageNames" type="wstring" readonly="yes" safearray="yes">
<desc>
A list of names of the images detected from install.wim file of a Windows Vista
or later ISO. This array is parallel to <link to="IUnattended::detectedImageIndices"/>.
This will be empty for older Windows ISOs and non-Windows ISOs.
</desc>
</attribute>
<attribute name="detectedImageIndices" type="unsigned long" readonly="yes" safearray="yes">
<desc>
A list of image indexes detected from install.wim file of a Windows ISO. This array
is parallel to <link to="IUnattended::detectedImageNames"/>. <link to="IUnattended::imageIndex"/>
should be set to one of these indices for Vista and later Windows ISOs.
</desc>
</attribute>
<attribute name="isUnattendedInstallSupported" type="boolean" readonly="yes">
<desc>
Checks the detected OS type and version against a set of rules and returns
whether unattended install is supported or not. Note that failing detecting
OS type from the ISO causes this attribute to be false by default.
</desc>
</attribute>
<attribute name="avoidUpdatesOverNetwork" type="boolean">
<desc>
When set to true installation is configured to abstain from
using network to update/get data. Especially useful when network
is not available (as in our test boxes).
</desc>
</attribute>
<method name="detectIsoOS">
<desc>
Detects the OS on the ISO given by <link to="IUnattended::isoPath"/> and sets
<link to="IUnattended::detectedOSTypeId"/>, <link to="IUnattended::detectedOSVersion"/>
<link to="IUnattended::detectedOSFlavor"/>, <link to="IUnattended::detectedOSLanguages"/>,
<link to="IUnattended::detectedOSHints"/>, <link to="IUnattended::detectedImageNames"/>,
and <link to="IUnattended::detectedImageIndices"/>,
Not really yet implemented.
</desc>
</method>
<method name="prepare">
<desc>
Prepare for running the unattended process of installation.
This will perform <link to="IUnattended::detectIsoOS"/> if not yet called on the
current <link to="IUnattended::isoPath"/> value. It may then may cause
<link to="IUnattended::detectedOSTypeId"/>, <link to="IUnattended::detectedOSVersion"/>,
<link to="IUnattended::detectedOSFlavor"/>, <link to="IUnattended::detectedOSLanguages"/>,
and <link to="IUnattended::detectedOSHints"/> to be updated with values
specific to the image selected by <link to="IUnattended::imageIndex"/> if the ISO
contains images.
This method will then instantiate the installer based on the detected guest type
(see <link to="IUnattended::detectedOSTypeId"/>).
</desc>
</method>
<method name="constructMedia">
<desc>
Constructors the necessary ISO/VISO/Floppy images, with unattended scripts
and all necessary bits on them.
</desc>
</method>
<method name="reconfigureVM">
<desc>
Reconfigures the machine to start the installation.
This involves mounting the ISOs and floppy images created by
<link to="IUnattended::constructMedia"/>, attaching new DVD and floppy
drives as necessary, and possibly modifying the boot order.
</desc>
</method>
<method name="done">
<desc>
Done - time to start the VM.
This deletes the internal installer instance that <link to="IUnattended::prepare"/>
created. Before done() is called, it is not possible to start over again
from <link to="IUnattended::prepare"/>.
</desc>
</method>
</interface>
<!--
// IMachine
/////////////////////////////////////////////////////////////////////////
-->
<interface
name="IInternalMachineControl" extends="$unknown"
uuid="EA05E40C-CB31-423B-B3B7-A5B19300F40C"
internal="yes"
wsmap="suppress"
>
<method name="updateState">
<desc>
Updates the VM state.
<note>
This operation will also update the settings file with the correct
information about the saved state file and delete this file from disk
when appropriate.
</note>
</desc>
<param name="state" type="MachineState" dir="in"/>
</method>
<method name="beginPowerUp">
<desc>
Tells VBoxSVC that <link to="IConsole::powerUp"/> is under ways and
gives it the progress object that should be part of any pending
<link to="IMachine::launchVMProcess"/> operations. The progress
object may be called back to reflect an early cancelation, so some care
have to be taken with respect to any cancelation callbacks. The console
object will call <link to="IInternalMachineControl::endPowerUp"/>
to signal the completion of the progress object.
</desc>
<param name="progress" type="IProgress" dir="in" />
</method>
<method name="endPowerUp">
<desc>
Tells VBoxSVC that <link to="IConsole::powerUp"/> has completed.
This method may query status information from the progress object it
received in <link to="IInternalMachineControl::beginPowerUp"/> and copy
it over to any in-progress <link to="IMachine::launchVMProcess"/>
call in order to complete that progress object.
</desc>
<param name="result" type="long" dir="in"/>
</method>
<method name="beginPoweringDown">
<desc>
Called by the VM process to inform the server it wants to
stop the VM execution and power down.
</desc>
<param name="progress" type="IProgress" dir="out">
<desc>
Progress object created by VBoxSVC to wait until
the VM is powered down.
</desc>
</param>
</method>
<method name="endPoweringDown">
<desc>
Called by the VM process to inform the server that powering
down previously requested by #beginPoweringDown is either
successfully finished or there was a failure.
<result name="VBOX_E_FILE_ERROR">
Settings file not accessible.
</result>
<result name="VBOX_E_XML_ERROR">
Could not parse the settings file.
</result>
</desc>
<param name="result" type="long" dir="in">
<desc>@c S_OK to indicate success.
</desc>
</param>
<param name="errMsg" type="wstring" dir="in">
<desc>@c human readable error message in case of failure.
</desc>
</param>
</method>
<method name="runUSBDeviceFilters">
<desc>
Asks the server to run USB devices filters of the associated
machine against the given USB device and tell if there is
a match.
<note>
Intended to be used only for remote USB devices. Local
ones don't require to call this method (this is done
implicitly by the Host and USBProxyService).
</note>
</desc>
<param name="device" type="IUSBDevice" dir="in"/>
<param name="matched" type="boolean" dir="out"/>
<param name="maskedInterfaces" type="unsigned long" dir="out"/>
</method>
<method name="captureUSBDevice">
<desc>
Requests a capture of the given host USB device.
When the request is completed, the VM process will
get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
notification.
</desc>
<param name="id" type="uuid" mod="string" dir="in"/>
<param name="captureFilename" type="wstring" dir="in"/>
</method>
<method name="detachUSBDevice">
<desc>
Notification that a VM is going to detach (@a done = @c false) or has
already detached (@a done = @c true) the given USB device.
When the @a done = @c true request is completed, the VM process will
get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
notification.
<note>
In the @a done = @c true case, the server must run its own filters
and filters of all VMs but this one on the detached device
as if it were just attached to the host computer.
</note>
</desc>
<param name="id" type="uuid" mod="string" dir="in"/>
<param name="done" type="boolean" dir="in"/>
</method>
<method name="autoCaptureUSBDevices">
<desc>
Requests a capture all matching USB devices attached to the host.
When the request is completed, the VM process will
get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
notification per every captured device.
</desc>
</method>
<method name="detachAllUSBDevices">
<desc>
Notification that a VM that is being powered down. The done
parameter indicates whether which stage of the power down
we're at. When @a done = @c false the VM is announcing its
intentions, while when @a done = @c true the VM is reporting
what it has done.
<note>
In the @a done = @c true case, the server must run its own filters
and filters of all VMs but this one on all detach devices as
if they were just attached to the host computer.
</note>
</desc>
<param name="done" type="boolean" dir="in"/>
</method>
<method name="onSessionEnd">
<desc>
Triggered by the given session object when the session is about
to close normally.
</desc>
<param name="session" type="ISession" dir="in">
<desc>Session that is being closed</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>
Used to wait until the corresponding machine is actually
dissociated from the given session on the server.
Returned only when this session is a direct one.
</desc>
</param>
</method>
<method name="finishOnlineMergeMedium">
<desc>
Gets called by <link to="IInternalSessionControl::onlineMergeMedium"/>.
All necessary state information is available at the called object.
</desc>
</method>
<method name="pullGuestProperties">
<desc>
Get the list of the guest properties matching a set of patterns along
with their values, timestamps and flags and give responsibility for
managing properties to the console.
</desc>
<param name="names" type="wstring" dir="out" safearray="yes">
<desc>
The names of the properties returned.
</desc>
</param>
<param name="values" type="wstring" dir="out" safearray="yes">
<desc>
The values of the properties returned. The array entries match the
corresponding entries in the @a name array.
</desc>
</param>
<param name="timestamps" type="long long" dir="out" safearray="yes">
<desc>
The timestamps of the properties returned. The array entries match
the corresponding entries in the @a name array.
</desc>
</param>
<param name="flags" type="wstring" dir="out" safearray="yes">
<desc>
The flags of the properties returned. The array entries match the
corresponding entries in the @a name array.
</desc>
</param>
</method>
<method name="pushGuestProperty">
<desc>
Update a single guest property in IMachine.
</desc>
<param name="name" type="wstring" dir="in">
<desc>
The name of the property to be updated.
</desc>
</param>
<param name="value" type="wstring" dir="in">
<desc>
The value of the property.
</desc>
</param>
<param name="timestamp" type="long long" dir="in">
<desc>
The timestamp of the property.
</desc>
</param>
<param name="flags" type="wstring" dir="in">
<desc>
The flags of the property.
</desc>
</param>
<param name="fWasDeleted" type="boolean" dir="in">
<desc>
The flag which indicates if property was deleted.
</desc>
</param>
</method>
<method name="lockMedia">
<desc>
Locks all media attached to the machine for writing and parents of
attached differencing media (if any) for reading. This operation is
atomic so that if it fails no media is actually locked.
This method is intended to be called when the machine is in Starting or
Restoring state. The locked media will be automatically unlocked when
the machine is powered off or crashed.
</desc>
</method>
<method name="unlockMedia">
<desc>
Unlocks all media previously locked using
<link to="IInternalMachineControl::lockMedia"/>.
This method is intended to be used with teleportation so that it is
possible to teleport between processes on the same machine.
</desc>
</method>
<method name="ejectMedium">
<desc>
Tells VBoxSVC that the guest has ejected the medium associated with
the medium attachment.
</desc>
<param name="attachment" type="IMediumAttachment" dir="in">
<desc>
The medium attachment where the eject happened.
</desc>
</param>
<param name="newAttachment" type="IMediumAttachment" dir="return">
<desc>
A new reference to the medium attachment, as the config change can
result in the creation of a new instance.
</desc>
</param>
</method>
<method name="reportVmStatistics">
<desc>
Passes statistics collected by VM (including guest statistics) to VBoxSVC.
</desc>
<param name="validStats" type="unsigned long" dir="in">
<desc>
Mask defining which parameters are valid. For example: 0x11 means
that cpuIdle and XXX are valid. Other parameters should be ignored.
</desc>
</param>
<param name="cpuUser" type="unsigned long" dir="in">
<desc>Percentage of processor time spent in user mode as seen by the guest.</desc>
</param>
<param name="cpuKernel" type="unsigned long" dir="in">
<desc>Percentage of processor time spent in kernel mode as seen by the guest.</desc>
</param>
<param name="cpuIdle" type="unsigned long" dir="in">
<desc>Percentage of processor time spent idling as seen by the guest.</desc>
</param>
<param name="memTotal" type="unsigned long" dir="in">
<desc>Total amount of physical guest RAM.</desc>
</param>
<param name="memFree" type="unsigned long" dir="in">
<desc>Free amount of physical guest RAM.</desc>
</param>
<param name="memBalloon" type="unsigned long" dir="in">
<desc>Amount of ballooned physical guest RAM.</desc>
</param>
<param name="memShared" type="unsigned long" dir="in">
<desc>Amount of shared physical guest RAM.</desc>
</param>
<param name="memCache" type="unsigned long" dir="in">
<desc>Total amount of guest (disk) cache memory.</desc>
</param>
<param name="pagedTotal" type="unsigned long" dir="in">
<desc>Total amount of space in the page file.</desc>
</param>
<param name="memAllocTotal" type="unsigned long" dir="in">
<desc>Total amount of memory allocated by the hypervisor.</desc>
</param>
<param name="memFreeTotal" type="unsigned long" dir="in">
<desc>Total amount of free memory available in the hypervisor.</desc>
</param>
<param name="memBalloonTotal" type="unsigned long" dir="in">
<desc>Total amount of memory ballooned by the hypervisor.</desc>
</param>
<param name="memSharedTotal" type="unsigned long" dir="in">
<desc>Total amount of shared memory in the hypervisor.</desc>
</param>
<param name="vmNetRx" type="unsigned long" dir="in">
<desc>Network receive rate for VM.</desc>
</param>
<param name="vmNetTx" type="unsigned long" dir="in">
<desc>Network transmit rate for VM.</desc>
</param>
</method>
<method name="authenticateExternal">
<desc>
Verify credentials using the external auth library.
</desc>
<param name="authParams" type="wstring" dir="in" safearray="yes">
<desc>
The auth parameters, credentials, etc.
</desc>
</param>
<param name="result" type="wstring" dir="out">
<desc>
The authentification result.
</desc>
</param>
</method>
</interface>
<interface
name="IGraphicsAdapter" extends="$unknown"
uuid="f692806f-febe-4049-b476-1292a8e45b09"
wsmap="managed"
rest="managed"
reservedMethods="4" reservedAttributes="8"
>
<desc>
The IGraphicsAdapter interface represents the graphics adapter
of the virtual machine.
</desc>
<attribute name="graphicsControllerType" type="GraphicsControllerType">
<desc>Graphics controller type.</desc>
</attribute>
<attribute name="VRAMSize" type="unsigned long">
<desc>Video memory size in megabytes.</desc>
</attribute>
<attribute name="accelerate3DEnabled" type="boolean" default="false">
<desc>
This setting determines whether VirtualBox allows this machine to make
use of the 3D graphics support available on the host.</desc>
</attribute>
<attribute name="accelerate2DVideoEnabled" type="boolean" default="false">
<desc>
This setting determines whether VirtualBox allows this machine to make
use of the 2D video acceleration support available on the host.</desc>
</attribute>
<attribute name="monitorCount" type="unsigned long">
<desc>
Number of virtual monitors.
<note>
Only effective on Windows XP and later guests with
Guest Additions installed.
</note>
</desc>
</attribute>
</interface>
<interface
name="IBIOSSettings" extends="$unknown"
uuid="a0a7f210-b857-4468-be26-c29f36a84345"
wsmap="managed"
rest="managed"
reservedMethods="2" reservedAttributes="8"
>
<desc>
The IBIOSSettings interface represents BIOS settings of the virtual
machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
</desc>
<attribute name="logoFadeIn" type="boolean">
<desc>Fade in flag for BIOS logo animation.</desc>
</attribute>
<attribute name="logoFadeOut" type="boolean">
<desc>Fade out flag for BIOS logo animation.</desc>
</attribute>
<attribute name="logoDisplayTime" type="unsigned long">
<desc>BIOS logo display time in milliseconds (0 = default).</desc>
</attribute>
<attribute name="logoImagePath" type="wstring">
<desc>
Local file system path for external BIOS splash image. Empty string
means the default image is shown on boot.
</desc>
</attribute>
<attribute name="bootMenuMode" type="BIOSBootMenuMode">
<desc>Mode of the BIOS boot device menu.</desc>
</attribute>
<attribute name="ACPIEnabled" type="boolean">
<desc>ACPI support flag.</desc>
</attribute>
<attribute name="IOAPICEnabled" type="boolean">
<desc>
I/O-APIC support flag. If set, VirtualBox will provide an I/O-APIC
and support IRQs above 15.
</desc>
</attribute>
<attribute name="APICMode" type="APICMode">
<desc>
APIC mode to set up by the firmware.
</desc>
</attribute>
<attribute name="timeOffset" type="long long">
<desc>
Offset in milliseconds from the host system time. This allows for
guests running with a different system date/time than the host.
It is equivalent to setting the system date/time in the BIOS except
it is not an absolute value but a relative one. Guest Additions
time synchronization honors this offset.
</desc>
</attribute>
<attribute name="PXEDebugEnabled" type="boolean">
<desc>
PXE debug logging flag. If set, VirtualBox will write extensive
PXE trace information to the release log.
</desc>
</attribute>
<attribute name="SMBIOSUuidLittleEndian" type="boolean">
<desc>
Flag to control whether the SMBIOS system UUID is presented in little endian
form to the guest as mandated by the SMBIOS spec chapter 7.2.1.
Before VirtualBox version 6.1 it was always presented in big endian form
and to retain the old behavior this flag was introduced so it can be changed.
VMs created with VBox 6.1 will default to true for this flag.
</desc>
</attribute>
</interface>
<enum
name="TpmType"
uuid="c669b9f7-a547-42b6-8464-636aa53401eb"
>
<desc>
TPM type enumeration.
</desc>
<const name="None" value="0">
<desc>No TPM present in the virtual machine.</desc>
</const>
<const name="v1_2" value="1">
<desc>A TPM compliant to the 1.2 TCG specification is emulated.</desc>
</const>
<const name="v2_0" value="2">
<desc>A TPM compliant to the 2.0 TCG specification is emulated.</desc>
</const>
<const name="Host" value="3">
<desc>The host TPM is passed through, might not be available on all host platforms.</desc>
</const>
<const name="Swtpm" value="4">
<desc>The VM will attach to an external software TPM emulation compliant to swtpm.</desc>
</const>
</enum>
<interface
name="ITrustedPlatformModule" extends="$unknown"
uuid="cf11d345-0241-4ea9-ac4c-c69ed3d674e3"
wsmap="managed"
reservedMethods="2" reservedAttributes="8"
>
<desc>
The ITrustedPlatformModule interface represents the settings of the virtual
machine's trusted platform module. This is used only in the <link to="IMachine::trustedPlatformModule"/> attribute.
</desc>
<attribute name="type" type="TpmType">
<desc>
Type of TPM configured for the virtual machine.
</desc>
</attribute>
<attribute name="location" type="wstring">
<desc>
Location of the TPM. This is only used for the TpmType_Swtpm type of TPM
where the location denotes a <b>hostname:port</b> where to connect to.
</desc>
</attribute>
</interface>
<enum
name="RecordingDestination"
uuid="11E3F06B-DEC1-48B9-BDC4-1E618D72893C"
>
<desc>
Recording destination enumeration.
</desc>
<const name="None" value="0">
<desc>No destination.</desc>
</const>
<const name="File" value="1">
<desc>Destination is a regular file.</desc>
</const>
</enum>
<enum
name="RecordingFeature"
uuid="A7DDC6A5-DAA8-4485-B860-E9F2E98A7794"
>
<desc>
Recording feature flags. More than one flag may be set.
</desc>
<const name="None" value="0x0">
<desc>No feature set.</desc>
</const>
<const name="Video" value="0x1">
<desc>Video recording.</desc>
</const>
<const name="Audio" value="0x2">
<desc>Audio recording.</desc>
</const>
</enum>
<enum
name="RecordingAudioCodec"
uuid="16c42be8-1713-4717-a8b9-c65a6549fbcd"
>
<desc>
Recording audio codec enumeration.
</desc>
<const name="None" value="0">
<desc>No codec set.</desc>
</const>
<const name="WavPCM" value="1">
<desc>WAV format, linear PCM, uncompressed.</desc>
</const>
<const name="MP3" value="2">
<desc>MPEG-2 Audio Layer III.</desc>
</const>
<const name="OggVorbis" value="3">
<desc>Ogg Vorbis.</desc>
</const>
<const name="Opus" value="4">
<desc>Opus Audio.</desc>
</const>
<const name="Other" value="5">
<desc>Other codec.</desc>
</const>
</enum>
<enum
name="RecordingCodecDeadline"
uuid="53627ae1-31cf-4303-9cd5-0c22fd2637cf"
>
<desc>
Recording codec deadline.
How (and if at all) this deadline is being implemented depends on the codec being used.
</desc>
<const name="Default" value="0">
<desc>Default deadline.</desc>
</const>
<const name="Realtime" value="1">
<desc>Realtime quality, often resulting in poor / basic quality.</desc>
</const>
<const name="Good" value="2">
<desc>Balance between realtime and best deadline.</desc>
</const>
<const name="Best" value="3">
<desc>Best quality, slowest.</desc>
</const>
</enum>
<enum
name="RecordingVideoCodec"
uuid="93791063-3e8c-4310-987c-ddb43ff03ffe"
>
<desc>
Recording video codec enumeration.
</desc>
<const name="None" value="0">
<desc>No codec set.</desc>
</const>
<const name="MJPEG" value="1">
<desc>Motion JPEG.</desc>
</const>
<const name="H262" value="2">
<desc>MPEG-2, Part 2.</desc>
</const>
<const name="H264" value="3">
<desc>Advanced Video Coding (AVC), MPEG-4 Part 10.</desc>
</const>
<const name="H265" value="4">
<desc>High Efficiency Video Coding (HEVC), MPEG-H Part 2.</desc>
</const>
<const name="H266" value="5">
<desc>Versatile Video Coding (VVC), MPEG-I Part 3.</desc>
</const>
<const name="VP8" value="6">
<desc>VP8 codec.</desc>
</const>
<const name="VP9" value="7">
<desc>VP9 codec.</desc>
</const>
<const name="AV1" value="8">
<desc>AOMedia Video 1 codec.</desc>
</const>
<const name="Other" value="9">
<desc>Other codec.</desc>
</const>
</enum>
<enum
name="RecordingVideoScalingMode"
uuid="0dd1127d-4f62-4b82-beee-91086a9f1d24"
>
<desc>
Recording video scaling method enumeration.
</desc>
<const name="None" value="0">
<desc>No scaling performed.
The image wil be cropped when the source is bigger than the target size.</desc>
</const>
<const name="NearestNeighbor" value="1">
<desc>Performs scaling via nearest-neighbor interpolation.
Not yet implemented.</desc>
</const>
<const name="Bilinear" value="2">
<desc>Performs scaling via bilinear interpolation.
Not yet implemented.</desc>
</const>
<const name="Bicubic" value="3">
<desc>Performs scaling via bicubic interpolation.
Not yet implemented.</desc>
</const>
</enum>
<enum
name="RecordingRateControlMode"
uuid="d07a33ac-b4ea-4917-942d-c03be14fbe2f"
>
<desc>
Recording video rate control mode enumeration.
<note>Not all codecs may support all rate control modes.</note>
</desc>
<const name="ABR" value="0">
<desc>Average bit rate (ABR). Constrained to a certain size.</desc>
</const>
<const name="CBR" value="1">
<desc>Constant bit rate (CBR). Constrained to a certain size.</desc>
</const>
<const name="VBR" value="2">
<desc>Variable bit rate (VBR). Constrained to a certain quality.</desc>
</const>
</enum>
<interface
name="IRecordingScreenSettings" extends="$unknown"
uuid="c1844087-ec6b-488d-afbb-c90f6452a04b"
wsmap="managed"
rest="managed"
>
<desc>
The IRecordingScreenSettings interface represents recording settings of a
single virtual screen. This is used only in the <link to="IRecordingSettings" />
interface.
</desc>
<method name="isFeatureEnabled">
<desc>Returns whether a particular recording feature is enabled for this
screen or not.</desc>
<param name="feature" type="RecordingFeature" dir="in">
<desc>Feature to check for.</desc>
</param>
<param name="enabled" type="boolean" dir="return">
<desc>@c true if the feature is enabled, @c false if not.</desc>
</param>
</method>
<attribute name="id" type="unsigned long" readonly="yes">
<desc>
This attribute contains the screen ID bound to these settings.
</desc>
</attribute>
<attribute name="enabled" type="boolean" default="false">
<desc>
This setting determines whether this screen is enabled while recording.
</desc>
</attribute>
<attribute name="features" type="RecordingFeature" safearray="yes">
<desc>This setting determines all enabled recording features for this
screen.</desc>
</attribute>
<attribute name="destination" type="RecordingDestination">
<desc>This setting determines the recording destination for this
screen.</desc>
</attribute>
<attribute name="filename" type="wstring">
<desc>
This setting determines the filename VirtualBox uses to save
the recorded content. This setting cannot be changed while video
recording is enabled.
<note>
When setting this attribute, the specified path has to be
absolute (full path). When reading this attribute, a full path is
always returned.
</note>
</desc>
</attribute>
<attribute name="maxTime" type="unsigned long" default="0">
<desc>
This setting defines the maximum amount of time in seconds
to record. Recording will stop as soon as the defined time
interval has elapsed. If this value is zero, recording will not be
limited by time. This setting cannot be changed while recording is
enabled.
</desc>
</attribute>
<attribute name="maxFileSize" type="unsigned long" default="0">
<desc>
This setting determines the maximal number of recording file
size in MB. Recording will stop as soon as the file size has
reached the defined value. If this value is zero, recording
will not be limited by the file size. This setting cannot be changed
while recording is enabled.
</desc>
</attribute>
<attribute name="options" type="wstring">
<desc>
This setting contains any additional recording options required in
comma-separated key=value format, which are currently not represented
via own attribtues. Consider these options as experimental and mostly
for codec-specific settings, and are subject to change. This setting
cannot be changed while recording is enabled.
</desc>
</attribute>
<attribute name="audioCodec" type="RecordingAudioCodec">
<desc>
Determines the audio codec to use for encoding the
recorded audio data. This setting cannot be changed while recording is
enabled.
<note>
Only the Opus codec is supported currently.
</note>
</desc>
</attribute>
<attribute name="audioRateControlMode" type="RecordingRateControlMode">
<desc>
Determines the audio rate control mode. This setting cannot be changed
while recording is enabled.
</desc>
</attribute>
<attribute name="audioDeadline" type="RecordingCodecDeadline" default="Default">
<desc>
Determines the audio deadline to use.
This setting cannot be changed while recording is enabled.
</desc>
</attribute>
<attribute name="audioHz" type="unsigned long" default="22050">
<desc>
Determines the Hertz (Hz) rate of the recorded audio data. This setting
cannot be changed while recording is enabled.
</desc>
</attribute>
<attribute name="audioBits" type="unsigned long" default="16">
<desc>
Determines the bits per sample of the recorded audio data. This setting
cannot be changed while recording is enabled.
</desc>
</attribute>
<attribute name="audioChannels" type="unsigned long" default="2">
<desc>
Determines the audio channels of the recorded audio data.
Specifiy 2 for stereo or 1 for mono. More than stereo (2) channels
are not supported at the moment. This setting cannot be changed while
recording is enabled.
</desc>
</attribute>
<attribute name="videoCodec" type="RecordingVideoCodec">
<desc>
Determines the video codec to use for encoding the recorded video data.
This setting cannot be changed while recording is enabled.
<note>
Only the VP8 codec is supported currently.
</note>
</desc>
</attribute>
<attribute name="videoDeadline" type="RecordingCodecDeadline" default="Default">
<desc>
Determines the video deadline to use.
This setting cannot be changed while recording is enabled.
</desc>
</attribute>
<attribute name="videoWidth" type="unsigned long" default="1024">
<desc>
Determines the horizontal resolution of the recorded video data. This
setting cannot be changed while recording is enabled.
</desc>
</attribute>
<attribute name="videoHeight" type="unsigned long" default="768">
<desc>
Determines the vertical resolution of the recorded video data. This
setting cannot be changed while recording is enabled.
</desc>
</attribute>
<attribute name="videoRate" type="unsigned long" default="512">
<desc>
Determines the bitrate in kilobits per second. Increasing this value
makes the video look better for the cost of an increased file size or
transfer rate. This setting cannot be changed while recording is enabled.
</desc>
</attribute>
<attribute name="videoRateControlMode" type="RecordingRateControlMode">
<desc>
Determines the video rate control mode. This setting cannot be changed
while recording is enabled.
</desc>
</attribute>
<attribute name="videoFPS" type="unsigned long" default="25">
<desc>
Determines the maximum number of frames per second (FPS). Frames with
a higher frequency will be skipped. Reducing this value increases the
number of skipped frames and reduces the file size or transfer rate.
This setting cannot be changed while recording is enabled.
</desc>
</attribute>
<attribute name="videoScalingMode" type="RecordingVideoScalingMode">
<desc>
Determines the video scaling mode to use.
This setting cannot be changed while recording is enabled.
</desc>
</attribute>
</interface>
<interface
name="IRecordingSettings" extends="$unknown"
uuid="D88F2A5A-47C7-4A3F-AAE1-1B516817DB41"
wsmap="managed"
rest="managed"
>
<desc>
The IRecordingSettings interface represents recording settings of the virtual
machine. This is used only in the <link to="IMachine::recordingSettings" />
attribute.
</desc>
<method name="getScreenSettings">
<desc>Returns the recording settings for a particular screen.</desc>
<param name="screenId" type="unsigned long" dir="in">
<desc>Screen ID to retrieve recording screen settings for.</desc>
</param>
<param name="recordScreenSettings" type="IRecordingScreenSettings" dir="return">
<desc>Recording screen settings for the requested screen.</desc>
</param>
</method>
<attribute name="enabled" type="boolean" default="false">
<desc>
This setting determines whether VirtualBox uses recording to record a
VM session.</desc>
</attribute>
<attribute name="screens" type="IRecordingScreenSettings" readonly="yes" safearray="yes">
<desc>
This setting returns an array for recording settings of all configured
virtual screens.</desc>
</attribute>
</interface>
<interface
name="IPCIAddress" extends="$unknown"
uuid="c984d15f-e191-400b-840e-970f3dad7296"
wsmap="managed"
rest="managed"
>
<desc>
Address on the PCI bus.
</desc>
<attribute name="bus" type="short">
<desc>
Bus number.
</desc>
</attribute>
<attribute name="device" type="short">
<desc>
Device number.
</desc>
</attribute>
<attribute name="devFunction" type="short">
<desc>
Device function number.
</desc>
</attribute>
<method name="asLong">
<desc>
Convert PCI address into long.
</desc>
<param name="result" type="long" dir="return" />
</method>
<method name="fromLong">
<desc>
Make PCI address from long.
</desc>
<param name="number" type="long" dir="in" />
</method>
</interface>
<interface
name="IPCIDeviceAttachment" extends="$unknown"
uuid="91f33d6f-e621-4f70-a77e-15f0e3c714d5"
wsmap="struct"
rest="managed"
>
<desc>
Information about PCI attachments.
</desc>
<attribute name="name" type="wstring" readonly="yes">
<desc>
Device name.
</desc>
</attribute>
<attribute name="isPhysicalDevice" type="boolean" readonly="yes">
<desc>
If this is physical or virtual device.
</desc>
</attribute>
<attribute name="hostAddress" type="long" readonly="yes">
<desc>
Address of device on the host, applicable only to host devices.
</desc>
</attribute>
<attribute name="guestAddress" type="long" readonly="yes">
<desc>
Address of device in the guest.
</desc>
</attribute>
</interface>
<enum
name="SignatureType"
uuid="6f6e67ef-9a32-4084-af84-5702679f882a"
>
<desc>
UEFI signature type enumeration.
</desc>
<const name="X509" value="0">
<desc>X.509 certificate.</desc>
</const>
<const name="Sha256" value="1">
<desc>SHA256 hash.</desc>
</const>
</enum>
<enum
name="UefiVariableAttributes"
uuid="cda505ec-b444-4aef-b55c-b687717bdac5"
>
<desc>
Possible variable attributes. More than one flag may be set.
<see><link to="IUefiVariableStore"/></see>
</desc>
<const name="None" value="0">
<desc>No attributes set.</desc>
</const>
<const name="NonVolatile" value="0x01">
<desc>Variable is stored in non volatile storage.</desc>
</const>
<const name="BootServiceAccess" value="0x02">
<desc>Variable can be accessed from the boot services.</desc>
</const>
<const name="RuntimeAccess" value="0x04">
<desc>Variable can be accessed from the runtime.</desc>
</const>
<const name="HwErrorRecord" value="0x08">
<desc>Variable contains a hardware error record.</desc>
</const>
<const name="AuthWriteAccess" value="0x100">
<desc>Writing to this variable requires an authenticated source.</desc>
</const>
<const name="AuthTimeBasedWriteAccess" value="0x200">
<desc>Variable was written with a time based authentication.</desc>
</const>
<const name="AuthAppendWrite" value="0x400">
<desc>The variable can be appended only.</desc>
</const>
</enum>
<interface
name="IUefiVariableStore" extends="$unknown"
uuid="d134c6b6-4479-430d-bb73-68a452ba3e67"
wsmap="managed"
reservedMethods="10" reservedAttributes="5"
>
<desc>
The IUefiVariableStore interface allows inspecting and manipulating the content
of an existing UEFI variable store in a NVRAM file. This is used only in the
<link to="INvramStore::uefiVariableStore" /> attribute.
</desc>
<attribute name="secureBootEnabled" type="boolean">
<desc>Flag whether secure boot is currently enabled for the VM.</desc>
</attribute>
<method name="addVariable">
<desc>Adds a new variable to the non volatile storage area.</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of the variable.</desc>
</param>
<param name="owner" type="uuid" mod="string" dir="in">
<desc>UUID of the variable owner.</desc>
</param>
<param name="attributes" type="UefiVariableAttributes" safearray="yes" dir="in">
<desc>Attributes of the variable.</desc>
</param>
<param name="data" type="octet" dir="in" safearray="yes">
<desc>The variable data.</desc>
</param>
</method>
<method name="deleteVariable">
<desc>Deletes the given variable from the non volatile storage area.</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of the variable.</desc>
</param>
<param name="owner" type="uuid" mod="string" dir="in">
<desc>UUID of the variable owner.</desc>
</param>
</method>
<method name="changeVariable">
<desc>Changes the data of the given variable.</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of the variable.</desc>
</param>
<param name="data" type="octet" dir="in" safearray="yes">
<desc>The new variable data.</desc>
</param>
</method>
<method name="queryVariableByName">
<desc>Queries the variable content variable by the given name.</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of the variable to look for.</desc>
</param>
<param name="owner" type="uuid" mod="string" dir="out">
<desc>UUID of the variable owner returned on success.</desc>
</param>
<param name="attributes" type="UefiVariableAttributes" safearray="yes" dir="out">
<desc>Attributes of the variable.</desc>
</param>
<param name="data" type="octet" dir="out" safearray="yes">
<desc>The variable data returned on success.</desc>
</param>
</method>
<method name="queryVariables">
<desc>
Queries all variables in the non volatile storage and returns their names.
</desc>
<param name="names" type="wstring" dir="out" safearray="yes">
<desc>The variable names returned on success.</desc>
</param>
<param name="owners" type="uuid" mod="string" dir="out" safearray="yes">
<desc>UUID of the variable owners returned on success.</desc>
</param>
</method>
<method name="enrollOraclePlatformKey">
<desc>
Enroll the default platform key from Oracle for enabling Secure Boot.
</desc>
</method>
<method name="enrollPlatformKey">
<desc>
Convenience method to enroll a new platform key (PK) for enabling Secure Boot.
</desc>
<param name="platformKey" type="octet" safearray="yes" dir="in">
<desc>The platform key (PK) to enroll.</desc>
</param>
<param name="owner" type="uuid" mod="string" dir="in">
<desc>UUID of the PK owner.</desc>
</param>
</method>
<method name="addKek">
<desc>
Convenience method to add a new Key Encryption Key (KEK) for Secure Boot.
</desc>
<param name="keyEncryptionKey" type="octet" safearray="yes" dir="in">
<desc>The Key Encryption Key (KEK) to add.</desc>
</param>
<param name="owner" type="uuid" mod="string" dir="in">
<desc>UUID of the KEK owner.</desc>
</param>
<param name="signatureType" type="SignatureType" dir="in">
<desc>Type of the signature.</desc>
</param>
</method>
<method name="addSignatureToDb">
<desc>
Convenience method to add a new entry to the signature database.
</desc>
<param name="signature" type="octet" safearray="yes" dir="in">
<desc>The signature to add.</desc>
</param>
<param name="owner" type="uuid" mod="string" dir="in">
<desc>UUID of the signature owner.</desc>
</param>
<param name="signatureType" type="SignatureType" dir="in">
<desc>Type of the signature.</desc>
</param>
</method>
<method name="addSignatureToDbx">
<desc>
Convenience method to add a new entry to the forbidden signature database.
</desc>
<param name="signature" type="octet" safearray="yes" dir="in">
<desc>The signature to add.</desc>
</param>
<param name="owner" type="uuid" mod="string" dir="in">
<desc>UUID of the signature owner.</desc>
</param>
<param name="signatureType" type="SignatureType" dir="in">
<desc>Type of the signature.</desc>
</param>
</method>
<method name="enrollDefaultMsSignatures">
<desc>
Convenience method to enroll the standard Microsoft KEK and signatures
in the signature databases.
</desc>
</method>
</interface>
<interface
name="INvramStore" extends="$unknown"
uuid="5bfd8965-b81b-469f-8649-f717ce97a5d5"
wsmap="managed"
>
<desc>
Provides access to the NVRAM store collecting all permanent states from different sources
(UEFI, TPM, etc.).
</desc>
<attribute name="nonVolatileStorageFile" type="wstring" readonly="yes">
<desc>
The location of the file storing the non-volatile memory content when
the VM is powered off. The file does not always exist.
</desc>
</attribute>
<attribute name="uefiVariableStore" type="IUefiVariableStore" readonly="yes">
<desc>Object to manipulate the data in an existing UEFI variable store.</desc>
</attribute>
<attribute name="keyId" type="wstring" readonly="yes">
<desc>
Key Id of the password used for encrypting the NVRAM file.
Internal use only for now.
</desc>
</attribute>
<attribute name="keyStore" type="wstring" readonly="yes">
<desc>
Key store used for encrypting the NVRAM file.
Internal use only for now.
</desc>
</attribute>
<method name="initUefiVariableStore">
<desc>Initializes the UEFI variable store.</desc>
<param name="size" type="unsigned long" dir="in">
<desc>
Size in bytes of the UEFI variable store. Must be 0 for now to initialize to the
default size.
</desc>
</param>
</method>
</interface>
<enum
name="GraphicsControllerType"
uuid="3e009bb0-2b57-4283-a39b-4c363d4f0808"
>
<desc>Graphics controller type, used with <link to="IGraphicsAdapter::graphicsControllerType" />.
</desc>
<const name="Null" value="0">
<desc>Reserved value, invalid.</desc>
</const>
<const name="VBoxVGA" value="1">
<desc>VirtualBox VGA device.</desc>
</const>
<const name="VMSVGA" value="2">
<desc>VMware SVGA II device.</desc>
</const>
<const name="VBoxSVGA" value="3">
<desc>VirtualBox VGA device with VMware SVGA II extensions.</desc>
</const>
</enum>
<enum
name="CleanupMode"
uuid="67897c50-7cca-47a9-83f6-ce8fd8eb5441"
>
<desc>Cleanup mode, used with <link to="IMachine::unregister" />.
</desc>
<const name="UnregisterOnly" value="1">
<desc>Unregister only the machine, but neither delete snapshots nor detach media.</desc>
</const>
<const name="DetachAllReturnNone" value="2">
<desc>Delete all snapshots and detach all media but return none; this will keep all media registered.</desc>
</const>
<const name="DetachAllReturnHardDisksOnly" value="3">
<desc>Delete all snapshots, detach all media and return hard disks for closing, but not removable media.</desc>
</const>
<const name="Full" value="4">
<desc>Delete all snapshots, detach all media and return all media for closing.</desc>
</const>
<const name="DetachAllReturnHardDisksAndVMRemovable" value="5">
<desc>Delete all snapshots, detach all media and return hard disks and removable locating in the folder of the machine to be deleted and referenced only to this machine, for closing.</desc>
</const>
</enum>
<enum
name="CloneMode"
uuid="A7A159FE-5096-4B8D-8C3C-D033CB0B35A8"
>
<desc>
Clone mode, used with <link to="IMachine::cloneTo" />.
</desc>
<const name="MachineState" value="1">
<desc>Clone the state of the selected machine.</desc>
</const>
<const name="MachineAndChildStates" value="2">
<desc>Clone the state of the selected machine and its child snapshots if present.</desc>
</const>
<const name="AllStates" value="3">
<desc>Clone all states (including all snapshots) of the machine, regardless of the machine object used.</desc>
</const>
</enum>
<enum
name="CloneOptions"
uuid="22243f8e-96ab-497c-8cf0-f40a566c630b"
>
<desc>
Clone options, used with <link to="IMachine::cloneTo" />.
</desc>
<const name="Link" value="1">
<desc>Create a clone VM where all virtual disks are linked to the original VM.</desc>
</const>
<const name="KeepAllMACs" value="2">
<desc>Don't generate new MAC addresses of the attached network adapters.</desc>
</const>
<const name="KeepNATMACs" value="3">
<desc>Don't generate new MAC addresses of the attached network adapters when they are using NAT.</desc>
</const>
<const name="KeepDiskNames" value="4">
<desc>Don't change the disk names.</desc>
</const>
<const name="KeepHwUUIDs" value="5">
<desc>Don't change UUID of the machine hardware.</desc>
</const>
</enum>
<enum
name="AutostopType"
uuid="6bb96740-cf34-470d-aab2-2cd48ea2e10e"
>
<desc>
Autostop types, used with <link to="IMachine::autostopType" />.
</desc>
<const name="Disabled" value="1">
<desc>Stopping the VM during system shutdown is disabled.</desc>
</const>
<const name="SaveState" value="2">
<desc>The state of the VM will be saved when the system shuts down.</desc>
</const>
<const name="PowerOff" value="3">
<desc>The VM is powered off when the system shuts down.</desc>
</const>
<const name="AcpiShutdown" value="4">
<desc>An ACPI shutdown event is generated.</desc>
</const>
</enum>
<enum
name="VMProcPriority"
uuid="6fa72dd5-19b7-46ba-bc52-f223c98c7d80"
>
<desc>
Virtual machine process priorities.
</desc>
<const name="Invalid" value="0">
<desc>Invalid priority, do not use.</desc>
</const>
<const name="Default" value="1">
<desc>Default process priority determined by the OS.</desc>
</const>
<const name="Flat" value="2">
<desc>
Assumes a scheduling policy which puts the process at the default
priority and with all threads at the same priority
</desc>
</const>
<const name="Low" value="3">
<desc>
Assumes a scheduling policy which puts the process mostly below the
default priority of the host OS.
</desc>
</const>
<const name="Normal" value="5">
<desc>
Assume a scheduling policy which shares the CPU resources fairly with
other processes running with the default priority of the host OS.
</desc>
</const>
<const name="High" value="6">
<desc>
Assumes a scheduling policy which puts the task above the default
priority of the host OS. This policy might easily cause other tasks
in the system to starve.
</desc>
</const>
</enum>
<enum
name="IommuType"
uuid="f47339cb-b94e-48fe-b507-2900103d7b9f"
>
<desc>
The IOMMU type. This enumeration represents possible
values for the <link to="IMachine::iommuType"/> attribute.
</desc>
<const name="None" value="0">
<desc>No IOMMU is present.</desc>
</const>
<const name="Automatic" value="1">
<desc>No IOMMU is present.</desc>
</const>
<const name="AMD" value="2">
<desc>An AMD IOMMU.</desc>
</const>
<const name="Intel" value="3">
<desc>An Intel IOMMU.</desc>
</const>
</enum>
<interface
name="IMachine" extends="$unknown"
uuid="300763af-5d6b-46e6-aa96-273eac15538a"
wsmap="managed"
rest="managed"
wrap-hint-server-addinterfaces="IInternalMachineControl"
wrap-hint-server="manualaddinterfaces"
reservedMethods="8" reservedAttributes="16"
>
<!-- Note! This interface is not compatible between 5.0 and 5.1 as it had too many
methods/attributes for midl and the reservedAttributes had to be
decreased. Max methods+attributes is 256, so in 6.0 this interface must
be refactored a little! In the mean time, take from reservedMethods and
reservedAttributes and update the UUID like always. -->
<desc>
The IMachine interface represents a virtual machine, or guest, created
in VirtualBox.
This interface is used in two contexts. First of all, a collection of
objects implementing this interface is stored in the
<link to="IVirtualBox::machines"/> attribute which lists all the virtual
machines that are currently registered with this VirtualBox
installation. Also, once a session has been opened for the given virtual
machine (e.g. the virtual machine is running), the machine object
associated with the open session can be queried from the session object;
see <link to="ISession"/> for details.
The main role of this interface is to expose the settings of the virtual
machine and provide methods to change various aspects of the virtual
machine's configuration. For machine objects stored in the
<link to="IVirtualBox::machines"/> collection, all attributes are
read-only unless explicitly stated otherwise in individual attribute
and method descriptions.
In order to change a machine setting, a session for this machine must be
opened using one of the <link to="IMachine::lockMachine" /> or
<link to="IMachine::launchVMProcess"/> methods. After the
machine has been successfully locked for a session, a mutable machine object
needs to be queried from the session object and then the desired settings
changes can be applied to the returned object using IMachine attributes and
methods. See the <link to="ISession"/> interface description for more
information about sessions.
Note that IMachine does not provide methods to control virtual machine
execution (such as start the machine, or power it down) -- these methods
are grouped in a separate interface called <link to="IConsole" />.
<see><link to="ISession"/>, <link to="IConsole"/></see>
</desc>
<attribute name="parent" type="IVirtualBox" readonly="yes" wrap-hint-server="limitedcaller" rest="suppress">
<desc>Associated parent object.</desc>
</attribute>
<attribute name="icon" type="octet" safearray="yes">
<desc>Overridden VM Icon details.</desc>
</attribute>
<attribute name="accessible" type="boolean" readonly="yes" wrap-hint-server="limitedcaller">
<desc>
Whether this virtual machine is currently accessible or not.
A machine is always deemed accessible unless it is registered <i>and</i>
its settings file cannot be read or parsed (either because the file itself
is unavailable or has invalid XML contents).
Every time this property is read, the accessibility state of
this machine is re-evaluated. If the returned value is @c false,
the <link to="#accessError"/> property may be used to get the
detailed error information describing the reason of
inaccessibility, including XML error messages.
When the machine is inaccessible, only the following properties
can be used on it:
<ul>
<li><link to="#parent"/></li>
<li><link to="#id"/></li>
<li><link to="#settingsFilePath"/></li>
<li><link to="#accessible"/></li>
<li><link to="#accessError"/></li>
</ul>
An attempt to access any other property or method will return
an error.
The only possible action you can perform on an inaccessible
machine is to unregister it using the
<link to="IMachine::unregister"/> call (or, to check
for the accessibility state once more by querying this
property).
<note>
In the current implementation, once this property returns
@c true, the machine will never become inaccessible
later, even if its settings file cannot be successfully
read/written any more (at least, until the VirtualBox
server is restarted). This limitation may be removed in
future releases.
</note>
</desc>
</attribute>
<attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes" wrap-hint-server="limitedcaller">
<desc>
Error information describing the reason of machine
inaccessibility.
Reading this property is only valid after the last call to
<link to="#accessible"/> returned @c false (i.e. the
machine is currently inaccessible). Otherwise, a @c null
IVirtualBoxErrorInfo object will be returned.
</desc>
</attribute>
<attribute name="name" type="wstring">
<desc>
Name of the virtual machine.
Besides being used for human-readable identification purposes
everywhere in VirtualBox, the virtual machine name is also used
as a name of the machine's settings file and as a name of the
subdirectory this settings file resides in. Thus, every time you
change the value of this property, the settings file will be
renamed once you call <link to="#saveSettings"/> to confirm the
change. The containing subdirectory will be also renamed, but
only if it has exactly the same name as the settings file
itself prior to changing this property (for backward compatibility
with previous API releases). The above implies the following
limitations:
<ul>
<li>The machine name cannot be empty.</li>
<li>The machine name can contain only characters that are valid
file name characters according to the rules of the file
system used to store VirtualBox configuration.</li>
<li>You cannot have two or more machines with the same name
if they use the same subdirectory for storing the machine
settings files.</li>
<li>You cannot change the name of the machine if it is running,
or if any file in the directory containing the settings file
is being used by another running machine or by any other
process in the host operating system at a time when
<link to="#saveSettings"/> is called.
</li>
</ul>
If any of the above limitations are hit, <link to="#saveSettings"/>
will return an appropriate error message explaining the exact
reason and the changes you made to this machine will not be saved.
Starting with VirtualBox 4.0, a ".vbox" extension of the settings
file is recommended, but not enforced. (Previous versions always
used a generic ".xml" extension.)
</desc>
</attribute>
<attribute name="description" type="wstring">
<desc>
Description of the virtual machine.
The description attribute can contain any text and is
typically used to describe the hardware and software
configuration of the virtual machine in detail (i.e. network
settings, versions of the installed software and so on).
</desc>
</attribute>
<attribute name="id" type="uuid" mod="string" readonly="yes" wrap-hint-server="limitedcaller">
<desc>UUID of the virtual machine.</desc>
</attribute>
<attribute name="groups" type="wstring" safearray="yes">
<desc>
Array of machine group names of which this machine is a member.
<tt>""</tt> and <tt>"/"</tt> are synonyms for the toplevel group. Each
group is only listed once, however they are listed in no particular
order and there is no guarantee that there are no gaps in the group
hierarchy (i.e. <tt>"/group"</tt>,
<tt>"/group/subgroup/subsubgroup"</tt> is a valid result).
</desc>
</attribute>
<attribute name="OSTypeId" type="wstring">
<desc>
User-defined identifier of the Guest OS type.
You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
an IGuestOSType object representing details about the given
Guest OS type. All Guest OS types are considered valid, even those
which are not known to <link to="IVirtualBox::getGuestOSType"/>.
<note>
This value may differ from the value returned by
<link to="IGuest::OSTypeId"/> if Guest Additions are
installed to the guest OS.
</note>
</desc>
</attribute>
<attribute name="hardwareVersion" type="wstring">
<desc>Hardware version identifier. Internal use only for now.</desc>
</attribute>
<attribute name="hardwareUUID" type="uuid" mod="string">
<desc>
The UUID presented to the guest via memory tables, hardware and guest
properties. For most VMs this is the same as the @a id, but for VMs
which have been cloned or teleported it may be the same as the source
VM. The latter is because the guest shouldn't notice that it was
cloned or teleported.
</desc>
</attribute>
<attribute name="CPUCount" type="unsigned long">
<desc>Number of virtual CPUs in the VM.</desc>
</attribute>
<attribute name="CPUHotPlugEnabled" type="boolean">
<desc>
This setting determines whether VirtualBox allows CPU
hotplugging for this machine.</desc>
</attribute>
<attribute name="CPUExecutionCap" type="unsigned long">
<desc>
Means to limit the number of CPU cycles a guest can use. The unit
is percentage of host CPU cycles per second. The valid range
is 1 - 100. 100 (the default) implies no limit.
</desc>
</attribute>
<attribute name="CPUIDPortabilityLevel" type="unsigned long">
<desc>Virtual CPUID portability level, the higher number the fewer newer
or vendor specific CPU feature is reported to the guest (via the CPUID
instruction). The default level of zero (0) means that all virtualized
features supported by the host is pass thru to the guest. While the
three (3) is currently the level supressing the most features.
Exactly which of the CPUID features are left out by the VMM at which
level is subject to change with each major version.
</desc>
</attribute>
<attribute name="memorySize" type="unsigned long">
<desc>System memory size in megabytes.</desc>
</attribute>
<attribute name="memoryBalloonSize" type="unsigned long">
<desc>Memory balloon size in megabytes.</desc>
</attribute>
<attribute name="pageFusionEnabled" type="boolean">
<desc>
This setting determines whether VirtualBox allows page
fusion for this machine (64-bit hosts only).
</desc>
</attribute>
<attribute name="graphicsAdapter" type="IGraphicsAdapter" readonly="yes">
<desc>Graphics adapter object.</desc>
</attribute>
<attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
<desc>Object containing all BIOS settings.</desc>
</attribute>
<attribute name="trustedPlatformModule" type="ITrustedPlatformModule" readonly="yes">
<desc>Object containing all TPM settings.</desc>
</attribute>
<attribute name="nonVolatileStore" type="INvramStore" readonly="yes">
<desc>Object to manipulate data in the non volatile storage file.</desc>
</attribute>
<attribute name="recordingSettings" type="IRecordingSettings" readonly="yes">
<desc>Object containing all recording settings.</desc>
</attribute>
<attribute name="firmwareType" type="FirmwareType">
<desc>Type of firmware (such as legacy BIOS or EFI), used for initial
bootstrap in this VM.</desc>
</attribute>
<attribute name="pointingHIDType" type="PointingHIDType">
<desc>Type of pointing HID (such as mouse or tablet) used in this VM.
The default is typically "PS2Mouse" but can vary depending on the
requirements of the guest operating system.</desc>
</attribute>
<attribute name="keyboardHIDType" type="KeyboardHIDType">
<desc>Type of keyboard HID used in this VM.
The default is typically "PS2Keyboard" but can vary depending on the
requirements of the guest operating system.</desc>
</attribute>
<attribute name="HPETEnabled" type="boolean">
<desc>This attribute controls if High Precision Event Timer (HPET) is
enabled in this VM. Use this property if you want to provide guests
with additional time source, or if guest requires HPET to function correctly.
Default is false.</desc>
</attribute>
<attribute name="chipsetType" type="ChipsetType">
<desc>Chipset type used in this VM.</desc>
</attribute>
<attribute name="iommuType" type="IommuType">
<desc>IOMMU type used in this VM.</desc>
</attribute>
<attribute name="snapshotFolder" type="wstring">
<desc>
Full path to the directory used to store snapshot data
(differencing media and saved state files) of this machine.
The initial value of this property is
<tt><</tt><link to="#settingsFilePath">
path_to_settings_file</link><tt>>/<</tt>
<link to="#id">machine_uuid</link>
<tt>></tt>.
Currently, it is an error to try to change this property on
a machine that has snapshots (because this would require to
move possibly large files to a different location).
A separate method will be available for this purpose later.
<note>
Setting this property to @c null or to an empty string will restore
the initial value.
</note>
<note>
When setting this property, the specified path can be
absolute (full path) or relative to the directory where the
<link to="#settingsFilePath">machine settings file</link>
is located. When reading this property, a full path is
always returned.
</note>
<note>
The specified path may not exist, it will be created
when necessary.
</note>
</desc>
</attribute>
<attribute name="VRDEServer" type="IVRDEServer" readonly="yes">
<desc>VirtualBox Remote Desktop Extension (VRDE) server object.</desc>
</attribute>
<attribute name="emulatedUSBCardReaderEnabled" type="boolean" default="false"/>
<attribute name="mediumAttachments" type="IMediumAttachment" readonly="yes" safearray="yes">
<desc>Array of media attached to this machine.</desc>
</attribute>
<attribute name="USBControllers" type="IUSBController" readonly="yes" safearray="yes">
<desc>
Array of USB controllers attached to this machine.
<note>
If USB functionality is not available in the given edition of
VirtualBox, this method will set the result code to @c E_NOTIMPL.
</note>
</desc>
</attribute>
<attribute name="USBDeviceFilters" type="IUSBDeviceFilters" readonly="yes">
<desc>
Associated USB device filters object.
<note>
If USB functionality is not available in the given edition of
VirtualBox, this method will set the result code to @c E_NOTIMPL.
</note>
</desc>
</attribute>
<attribute name="audioSettings" type="IAudioSettings" readonly="yes">
<desc>
The machine's audio settings.
</desc>
</attribute>
<attribute name="storageControllers" type="IStorageController" readonly="yes" safearray="yes">
<desc>Array of storage controllers attached to this machine.</desc>
</attribute>
<attribute name="settingsFilePath" type="wstring" readonly="yes" wrap-hint-server="limitedcaller">
<desc>
Full name of the file containing machine settings data.
</desc>
</attribute>
<attribute name="settingsAuxFilePath" type="wstring" readonly="yes" wrap-hint-server="limitedcaller" rest="suppress">
<desc>
Full name of the file containing auxiliary machine settings data.
</desc>
</attribute>
<attribute name="settingsModified" type="boolean" readonly="yes" rest="suppress">
<desc>
Whether the settings of this machine have been modified
(but neither yet saved nor discarded).
<note>
Reading this property is only valid on instances returned
by <link to="ISession::machine"/> and on new machines
created by <link to="IVirtualBox::createMachine"/> or opened
by <link to="IVirtualBox::openMachine"/> but not
yet registered, or on unregistered machines after calling
<link to="IMachine::unregister"/>. For all other
cases, the settings can never be modified.
</note>
<note>
For newly created unregistered machines, the value of this
property is always @c true until <link to="#saveSettings"/>
is called (no matter if any machine settings have been
changed after the creation or not). For opened machines
the value is set to @c false (and then follows to normal rules).
</note>
</desc>
</attribute>
<attribute name="sessionState" type="SessionState" readonly="yes">
<desc>Current session state for this machine.</desc>
</attribute>
<attribute name="sessionName" type="wstring" readonly="yes">
<desc>
Name of the session. If <link to="#sessionState"/> is
Spawning or Locked, this attribute contains the
same value as passed to the
<link to="IMachine::launchVMProcess"/> method in the
@a name parameter. If the session was established with
<link to="IMachine::lockMachine" />, it is the name of the session
(if set, otherwise empty string). If
<link to="#sessionState"/> is SessionClosed, the value of this
attribute is an empty string.
</desc>
</attribute>
<attribute name="sessionPID" type="unsigned long" readonly="yes">
<desc>
Identifier of the session process. This attribute contains the
platform-dependent identifier of the process whose session was
used with <link to="IMachine::lockMachine" /> call. The returned
value is only valid if <link to="#sessionState"/> is Locked or
Unlocking by the time this property is read.
</desc>
</attribute>
<attribute name="state" type="MachineState" readonly="yes">
<desc>Current execution state of this machine.</desc>
</attribute>
<attribute name="lastStateChange" type="long long" readonly="yes">
<desc>
Timestamp of the last execution state change,
in milliseconds since 1970-01-01 UTC.
</desc>
</attribute>
<attribute name="stateFilePath" type="wstring" readonly="yes">
<desc>
Full path to the file that stores the execution state of
the machine when it is in either the <link to="MachineState_Saved"/>
or <link to="MachineState_AbortedSaved"/> state.
<note>
When the machine is not in the Saved or AbortedSaved state, this
attribute is an empty string.
</note>
</desc>
</attribute>
<attribute name="logFolder" type="wstring" readonly="yes">
<desc>
Full path to the folder that stores a set of rotated log files
recorded during machine execution. The most recent log file is
named <tt>VBox.log</tt>, the previous log file is
named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
in the current version).
</desc>
</attribute>
<attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
<desc>
Current snapshot of this machine. This is @c null if the machine
currently has no snapshots. If it is not @c null, then it was
set by one of <link to="#takeSnapshot" />, <link to="#deleteSnapshot" />
or <link to="#restoreSnapshot" />, depending on which was called last.
See <link to="ISnapshot"/> for details.
</desc>
</attribute>
<attribute name="snapshotCount" type="unsigned long" readonly="yes">
<desc>
Number of snapshots taken on this machine. Zero means the
machine doesn't have any snapshots.
</desc>
</attribute>
<attribute name="currentStateModified" type="boolean" readonly="yes">
<desc>
Returns @c true if the current state of the machine is not
identical to the state stored in the current snapshot.
The current state is identical to the current snapshot only
directly after one of the following calls are made:
<ul>
<li><link to="#restoreSnapshot"/>
</li>
<li><link to="#takeSnapshot"/> (issued on a "powered off" or "saved"
machine, for which <link to="#settingsModified"/> returns @c false)
</li>
</ul>
The current state remains identical until one of the following
happens:
<ul>
<li>settings of the machine are changed</li>
<li>the saved state is deleted</li>
<li>the current snapshot is deleted</li>
<li>an attempt to execute the machine is made</li>
</ul>
<note>
For machines that don't have snapshots, this property is
always @c false.
</note>
</desc>
</attribute>
<attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
<desc>
Collection of shared folders for this machine (permanent shared
folders). These folders are shared automatically at machine startup
and available only to the guest OS installed within this machine.
New shared folders are added to the collection using
<link to="#createSharedFolder"/>. Existing shared folders can be
removed using <link to="#removeSharedFolder"/>.
</desc>
</attribute>
<attribute name="clipboardMode" type="ClipboardMode">
<desc>
Synchronization mode between the host OS clipboard
and the guest OS clipboard.
</desc>
</attribute>
<attribute name="clipboardFileTransfersEnabled" type="boolean">
<desc>
Sets or retrieves whether clipboard file transfers are allowed or not.
When set to @a true, clipboard file transfers between supported
host and guest OSes are allowed.
</desc>
</attribute>
<attribute name="dnDMode" type="DnDMode">
<desc>
Sets or retrieves the current drag'n drop mode.
</desc>
</attribute>
<attribute name="teleporterEnabled" type="boolean">
<desc>
When set to @a true, the virtual machine becomes a target teleporter
the next time it is powered on. This can only set to @a true when the
VM is in the @a PoweredOff or @a Aborted state.
<!-- This property is automatically set to @a false when the VM is powered
on. (bird: This doesn't work yet ) -->
</desc>
</attribute>
<attribute name="teleporterPort" type="unsigned long">
<desc>
The TCP port the target teleporter will listen for incoming
teleportations on.
0 means the port is automatically selected upon power on. The actual
value can be read from this property while the machine is waiting for
incoming teleportations.
</desc>
</attribute>
<attribute name="teleporterAddress" type="wstring">
<desc>
The address the target teleporter will listen on. If set to an empty
string, it will listen on all addresses.
</desc>
</attribute>
<attribute name="teleporterPassword" type="wstring">
<desc>
The password to check for on the target teleporter. This is just a
very basic measure to prevent simple hacks and operators accidentally
beaming a virtual machine to the wrong place.
Note that you SET a plain text password while reading back a HASHED
password. Setting a hashed password is currently not supported.
</desc>
</attribute>
<attribute name="paravirtProvider" type="ParavirtProvider">
<desc>
The paravirtualized guest interface provider.
</desc>
</attribute>
<attribute name="RTCUseUTC" type="boolean">
<desc>
When set to @a true, the RTC device of the virtual machine will run
in UTC time, otherwise in local time. Especially Unix guests prefer
the time in UTC.
</desc>
</attribute>
<attribute name="IOCacheEnabled" type="boolean">
<desc>
When set to @a true, the builtin I/O cache of the virtual machine
will be enabled.
</desc>
</attribute>
<attribute name="IOCacheSize" type="unsigned long">
<desc>
Maximum size of the I/O cache in MB.
</desc>
</attribute>
<attribute name="PCIDeviceAssignments" type="IPCIDeviceAttachment" readonly="yes" safearray="yes">
<desc>Array of PCI devices assigned to this machine, to get list of all
PCI devices attached to the machine use
<link to="IConsole::attachedPCIDevices"/> attribute, as this attribute
is intended to list only devices additional to what described in
virtual hardware config. Usually, this list keeps host's physical
devices assigned to the particular machine.
</desc>
</attribute>
<attribute name="bandwidthControl" type="IBandwidthControl" readonly="yes">
<desc>
Bandwidth control manager.
</desc>
</attribute>
<attribute name="tracingEnabled" type="boolean">
<desc>
Enables the tracing facility in the VMM (including PDM devices +
drivers). The VMM will consume about 0.5MB of more memory when
enabled and there may be some extra overhead from tracepoints that are
always enabled.
</desc>
</attribute>
<attribute name="tracingConfig" type="wstring">
<desc>
Tracepoint configuration to apply at startup when
<link to="IMachine::tracingEnabled" /> is true. The string specifies
a space separated of tracepoint group names to enable. The special
group 'all' enables all tracepoints. Check DBGFR3TracingConfig for
more details on available tracepoint groups and such.
Note that on hosts supporting DTrace (or similar), a lot of the
tracepoints may be implemented exclusively as DTrace probes. So, the
effect of the same config may differ between Solaris and Windows for
example.
</desc>
</attribute>
<attribute name="allowTracingToAccessVM" type="boolean">
<desc>
Enables tracepoints in PDM devices and drivers to use the VMCPU or VM
structures when firing off trace points. This is especially useful
with DTrace tracepoints, as it allows you to use the VMCPU or VM
pointer to obtain useful information such as guest register state.
This is disabled by default because devices and drivers normally has no
business accessing the VMCPU or VM structures, and are therefore unable
to get any pointers to these.
</desc>
</attribute>
<attribute name="autostartEnabled" type="boolean">
<desc>
Enables autostart of the VM during system boot.
</desc>
</attribute>
<attribute name="autostartDelay" type="unsigned long">
<desc>
Number of seconds to wait until the VM should be started during system boot.
</desc>
</attribute>
<attribute name="autostopType" type="AutostopType">
<desc>
Action type to do when the system is shutting down.
</desc>
</attribute>
<attribute name="defaultFrontend" type="wstring">
<desc>
Selects which VM frontend should be used by default when launching
this VM through the <link to="IMachine::launchVMProcess" /> method.
Empty or @c null strings do not define a particular default, it is up
to <link to="IMachine::launchVMProcess" /> to select one. See the
description of <link to="IMachine::launchVMProcess" /> for the valid
frontend types.
This per-VM setting overrides the default defined by
<link to="ISystemProperties::defaultFrontend" /> attribute, and is
overridden by a frontend type passed to
<link to="IMachine::launchVMProcess" />.
</desc>
</attribute>
<attribute name="USBProxyAvailable" type="boolean" readonly="yes">
<desc>
Returns whether there is an USB proxy available.
</desc>
</attribute>
<attribute name="VMProcessPriority" type="VMProcPriority">
<desc>
Sets the priority of the VM process. It is a VM setting which can
be changed both before starting the VM and at runtime.
The default value is 'Default', which selects the default
process priority.
<result name="E_NOTIMPL">
This attribute is currently not implemented.
</result>
</desc>
</attribute>
<attribute name="paravirtDebug" type="wstring">
<desc>
Debug parameters for the paravirtualized guest interface provider.
</desc>
</attribute>
<attribute name="CPUProfile" type="wstring">
<desc>
Experimental feature to select the guest CPU profile. The default
is "host", which indicates the host CPU. All other names are subject
to change.
Use the <link to="ISystemProperties::getCPUProfiles" /> method to get
currently available CPU profiles.
</desc>
</attribute>
<attribute name="stateKeyId" type="wstring" readonly="yes">
<desc>
Key Id of the password used for encrypting the state file.
Internal use only for now.
</desc>
</attribute>
<attribute name="stateKeyStore" type="wstring" readonly="yes">
<desc>
Key store used for encrypting the state file.
Internal use only for now.
</desc>
</attribute>
<attribute name="logKeyId" type="wstring" readonly="yes">
<desc>
Key Id of the password used for encrypting the log files.
Internal use only for now.
</desc>
</attribute>
<attribute name="logKeyStore" type="wstring" readonly="yes">
<desc>
Key store used for encrypting the log files.
Internal use only for now.
</desc>
</attribute>
<attribute name="guestDebugControl" type="IGuestDebugControl" readonly="yes">
<desc>
Guest debugging configuration.
</desc>
</attribute>
<method name="lockMachine">
<rest name="lock" request="post" path="/vms/{vmid}/actions/"/>
<desc>
Locks the machine for the given session to enable the caller
to make changes to the machine or start the VM or control
VM execution.
There are two ways to lock a machine for such uses:
<ul>
<li>If you want to make changes to the machine settings,
you must obtain an exclusive write lock on the machine
by setting @a lockType to @c Write.
This will only succeed if no other process has locked
the machine to prevent conflicting changes. Only after
an exclusive write lock has been obtained using this method, one
can change all VM settings or execute the VM in the process
space of the session object. (Note that the latter is only of
interest if you actually want to write a new front-end for
virtual machines; but this API gets called internally by
the existing front-ends such as VBoxHeadless and the VirtualBox
GUI to acquire a write lock on the machine that they are running.)
On success, write-locking the machine for a session creates
a second copy of the IMachine object. It is this second object
upon which changes can be made; in VirtualBox terminology, the
second copy is "mutable". It is only this second, mutable machine
object upon which you can call methods that change the
machine state. After having called this method, you can
obtain this second, mutable machine object using the
<link to="ISession::machine" /> attribute.
</li>
<li>If you only want to check the machine state or control
machine execution without actually changing machine
settings (e.g. to get access to VM statistics or take
a snapshot or save the machine state), then set the
@a lockType argument to @c Shared.
If no other session has obtained a lock, you will obtain an
exclusive write lock as described above. However, if another
session has already obtained such a lock, then a link to that
existing session will be established which allows you
to control that existing session.
To find out which type of lock was obtained, you can
inspect <link to="ISession::type" />, which will have been
set to either @c WriteLock or @c Shared.
</li>
</ul>
In either case, you can get access to the <link to="IConsole" />
object which controls VM execution.
Also in all of the above cases, one must always call
<link to="ISession::unlockMachine" /> to release the lock on the machine, or
the machine's state will eventually be set to "Aborted".
To change settings on a machine, the following sequence is typically
performed:
<ol>
<li>Call this method to obtain an exclusive write lock for the current session.</li>
<li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
<li>Change the settings of the machine by invoking IMachine methods.</li>
<li>Call <link to="IMachine::saveSettings" />.</li>
<li>Release the write lock by calling <link to="ISession::unlockMachine"/>.</li>
</ol>
<result name="E_UNEXPECTED">
Virtual machine not registered.
</result>
<result name="E_ACCESSDENIED">
Process not started by <link to="IMachine::launchVMProcess"/>.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Session already open or being opened.
</result>
<result name="VBOX_E_VM_ERROR">
Failed to assign machine to session.
</result>
</desc>
<param name="session" type="ISession" dir="in">
<desc>
Session object for which the machine will be locked.
</desc>
</param>
<param name="lockType" type="LockType" dir="in">
<desc>
If set to @c Write, then attempt to acquire an exclusive write lock or fail.
If set to @c Shared, then either acquire an exclusive write lock or establish
a link to an existing session.
</desc>
</param>
</method>
<method name="launchVMProcess">
<rest name="launch" request="post" path="/vms/{vmid}/actions/"/>
<desc>
Spawns a new process that will execute the virtual machine and obtains a shared
lock on the machine for the calling session.
If launching the VM succeeds, the new VM process will create its own session
and write-lock the machine for it, preventing conflicting changes from other
processes. If the machine is already locked (because it is already running or
because another session has a write lock), launching the VM process will therefore
fail. Reversely, future attempts to obtain a write lock will also fail while the
machine is running.
The caller's session object remains separate from the session opened by the new
VM process. It receives its own <link to="IConsole" /> object which can be used
to control machine execution, but it cannot be used to change all VM settings
which would be available after a <link to="#lockMachine" /> call.
The caller must eventually release the session's shared lock by calling
<link to="ISession::unlockMachine" /> on the local session object once this call
has returned. However, the session's state (see <link to="ISession::state" />)
will not return to "Unlocked" until the remote session has also unlocked
the machine (i.e. the machine has stopped running).
Launching a VM process can take some time (a new VM is started in a new process,
for which memory and other resources need to be set up). Because of this,
an <link to="IProgress" /> object is returned to allow the caller to wait
for this asynchronous operation to be completed. Until then, the caller's
session object remains in the "Unlocked" state, and its <link to="ISession::machine" />
and <link to="ISession::console" /> attributes cannot be accessed.
It is recommended to use <link to="IProgress::waitForCompletion" /> or
similar calls to wait for completion. Completion is signalled when the VM
is powered on. If launching the VM fails, error messages can be queried
via the progress object, if available.
The progress object will have at least 2 sub-operations. The first
operation covers the period up to the new VM process calls powerUp.
The subsequent operations mirror the <link to="IConsole::powerUp"/>
progress object. Because <link to="IConsole::powerUp"/> may require
some extra sub-operations, the <link to="IProgress::operationCount"/>
may change at the completion of operation.
For details on the teleportation progress operation, see
<link to="IConsole::powerUp"/>.
The @a environmentChanges argument is a list of strings where every string contains
environment variable in the putenv style, i.e. "VAR=VALUE" for setting/replacing
and "VAR" for unsetting. These environment variables will be applied to the environment
of the VirtualBox server process. If an environment variable exists both in the server
process and in this list, the value from this list takes precedence over the
server's variable. If the value of the environment variable is omitted, this variable
will be removed from the resulting environment. If the list is empty, the server
environment is inherited by the started process as is.
<result name="E_UNEXPECTED">
Virtual machine not registered.
</result>
<result name="E_INVALIDARG">
Invalid session type @a type.
</result>
<result name="VBOX_E_OBJECT_NOT_FOUND">
No machine matching @a machineId found.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Session already open or being opened.
</result>
<result name="VBOX_E_IPRT_ERROR">
Launching process for machine failed.
</result>
<result name="VBOX_E_VM_ERROR">
Failed to assign machine to session.
</result>
</desc>
<param name="session" type="ISession" dir="in">
<desc>
Client session object to which the VM process will be connected (this
must be in "Unlocked" state).
</desc>
</param>
<param name="name" type="wstring" dir="in">
<desc>
Front-end to use for the new VM process. The following are currently supported:
<ul>
<li><tt>"gui"</tt>: VirtualBox Qt GUI front-end</li>
<li><tt>"headless"</tt>: VBoxHeadless (VRDE Server) front-end</li>
<li><tt>"sdl"</tt>: VirtualBox SDL front-end</li>
<li><tt>"emergencystop"</tt>: reserved value, used for aborting
the currently running VM or session owner. In this case the
@a session parameter may be @c null (if it is non-null it isn't
used in any way), and the @a progress return value will be always
@c null. The operation completes immediately.</li>
<li><tt>""</tt>: use the per-VM default frontend if set, otherwise
the global default defined in the system properties. If neither
are set, the API will launch a <tt>"gui"</tt> session, which may
fail if there is no windowing environment available. See
<link to="IMachine::defaultFrontend"/> and
<link to="ISystemProperties::defaultFrontend"/>.</li>
</ul>
</desc>
</param>
<param name="environmentChanges" type="wstring" safearray="yes" dir="in">
<desc>
The list of putenv-style changes to the VM process environment.
</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="setBootOrder">
<rest name="bootorder" request="post" path="/vms/{vmid}/configuration/"/>
<desc>
Puts the given device to the specified position in
the boot order.
To indicate that no device is associated with the given position,
<link to="DeviceType_Null"/> should be used.
@todo setHardDiskBootOrder(), setNetworkBootOrder()
<result name="E_INVALIDARG">
Boot @a position out of range.
</result>
<result name="E_NOTIMPL">
Booting from USB @a device currently not supported.
</result>
</desc>
<param name="position" type="unsigned long" dir="in">
<desc>
Position in the boot order (@c 1 to the total number of
devices the machine can boot from, as returned by
<link to="ISystemProperties::maxBootPosition"/>).
</desc>
</param>
<param name="device" type="DeviceType" dir="in">
<desc>
The type of the device used to boot at the given position.
</desc>
</param>
</method>
<method name="getBootOrder" const="yes">
<rest name="bootorder" request="get" path="/vms/{vmid}/configuration/"/>
<desc>
Returns the device type that occupies the specified
position in the boot order.
@todo [remove?]
If the machine can have more than one device of the returned type
(such as hard disks), then a separate method should be used to
retrieve the individual device that occupies the given position.
If here are no devices at the given position, then
<link to="DeviceType_Null"/> is returned.
@todo getHardDiskBootOrder(), getNetworkBootOrder()
<result name="E_INVALIDARG">
Boot @a position out of range.
</result>
</desc>
<param name="position" type="unsigned long" dir="in">
<desc>
Position in the boot order (@c 1 to the total number of
devices the machine can boot from, as returned by
<link to="ISystemProperties::maxBootPosition"/>).
</desc>
</param>
<param name="device" type="DeviceType" dir="return">
<desc>
Device at the given position.
</desc>
</param>
</method>
<method name="attachDevice">
<rest request="post" path="/vms/{vmid}/configuration/"/>
<desc>
Attaches a device and optionally mounts a medium to the given storage
controller (<link to="IStorageController" />, identified by @a name),
at the indicated port and device.
This method is intended for managing storage devices in general while a
machine is powered off. It can be used to attach and detach fixed
and removable media. The following kind of media can be attached
to a machine:
<ul>
<li>For fixed and removable media, you can pass in a medium that was
previously opened using <link to="IVirtualBox::openMedium" />.
</li>
<li>Only for storage devices supporting removable media (such as
DVDs and floppies), you can also specify a null pointer to
indicate an empty drive or one of the medium objects listed
in the <link to="IHost::DVDDrives" /> and <link to="IHost::floppyDrives"/>
arrays to indicate a host drive.
For removable devices, you can also use <link to="IMachine::mountMedium"/>
to change the media while the machine is running.
</li>
</ul>
In a VM's default configuration of virtual machines, the secondary
master of the IDE controller is used for a CD/DVD drive.
After calling this returns successfully, a new instance of
<link to="IMediumAttachment"/> will appear in the machine's list of medium
attachments (see <link to="IMachine::mediumAttachments"/>).
See <link to="IMedium"/> and <link to="IMediumAttachment"/> for more
information about attaching media.
The specified device slot must not have a device attached to it,
or this method will fail.
<note>
You cannot attach a device to a newly created machine until
this machine's settings are saved to disk using
<link to="#saveSettings"/>.
</note>
<note>
If the medium is being attached indirectly, a new differencing medium
will implicitly be created for it and attached instead. If the
changes made to the machine settings (including this indirect
attachment) are later cancelled using <link to="#discardSettings"/>,
this implicitly created differencing medium will implicitly
be deleted.
</note>
<result name="E_INVALIDARG">
SATA device, SATA port, IDE port or IDE slot out of range, or
file or UUID not found.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Machine must be registered before media can be attached.
</result>
<result name="VBOX_E_INVALID_VM_STATE">
Invalid machine state.
</result>
<result name="VBOX_E_OBJECT_IN_USE">
A medium is already attached to this or another virtual machine.
</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of the storage controller to attach the device to.</desc>
</param>
<param name="controllerPort" type="long" dir="in">
<desc>Port to attach the device to. For an IDE controller, 0 specifies
the primary controller and 1 specifies the secondary controller.
For a SCSI controller, this must range from 0 to 15; for a SATA controller,
from 0 to 29; for an SAS controller, from 0 to 7.</desc>
</param>
<param name="device" type="long" dir="in">
<desc>Device slot in the given port to attach the device to. This is only
relevant for IDE controllers, for which 0 specifies the master device and
1 specifies the slave device. For all other controller types, this must
be 0.</desc>
</param>
<param name="type" type="DeviceType" dir="in">
<desc>Device type of the attached device. For media opened by
<link to="IVirtualBox::openMedium" />, this must match the device type
specified there.</desc>
</param>
<param name="medium" type="IMedium" dir="in">
<desc>Medium to mount or @c null for an empty drive.</desc>
</param>
</method>
<method name="attachDeviceWithoutMedium">
<rest request="post" path="/vms/{vmid}/configuration/"/>
<desc>
Attaches a device and optionally mounts a medium to the given storage
controller (<link to="IStorageController" />, identified by @a name),
at the indicated port and device.
This method is intended for managing storage devices in general while a
machine is powered off. It can be used to attach and detach fixed
and removable media. The following kind of media can be attached
to a machine:
<ul>
<li>
For fixed and removable media, you can pass in a medium that was
previously opened using <link to="IVirtualBox::openMedium" />.
</li>
<li>Only for storage devices supporting removable media (such as
DVDs and floppies) with an empty drive or one of the medium objects listed
in the <link to="IHost::DVDDrives" /> and <link to="IHost::floppyDrives"/>
arrays to indicate a host drive.
For removable devices, you can also use <link to="IMachine::mountMedium"/>
to change the media while the machine is running.
</li>
</ul>
In a VM's default configuration of virtual machines, the secondary
master of the IDE controller is used for a CD/DVD drive.
<link to="IMediumAttachment"/> will appear in the machine's list of medium
attachments (see <link to="IMachine::mediumAttachments"/>).
See <link to="IMedium"/> and <link to="IMediumAttachment"/> for more
information about attaching media.
The specified device slot must not have a device attached to it,
or this method will fail.
<note>
You cannot attach a device to a newly created machine until
this machine's settings are saved to disk using
<link to="#saveSettings"/>.
</note>
<note>
If the medium is being attached indirectly, a new differencing medium
will implicitly be created for it and attached instead. If the
changes made to the machine settings (including this indirect
attachment) are later cancelled using <link to="#discardSettings"/>,
this implicitly created differencing medium will implicitly
be deleted.
</note>
<result name="E_INVALIDARG">
SATA device, SATA port, IDE port or IDE slot out of range, or
file or UUID not found.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Machine must be registered before media can be attached.
</result>
<result name="VBOX_E_INVALID_VM_STATE">
Invalid machine state.
</result>
<result name="VBOX_E_OBJECT_IN_USE">
A medium is already attached to this or another virtual machine.
</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of the storage controller to attach the device to.</desc>
</param>
<param name="controllerPort" type="long" dir="in">
<desc>Port to attach the device to. For an IDE controller, 0 specifies
the primary controller and 1 specifies the secondary controller.
For a SCSI controller, this must range from 0 to 15; for a SATA controller,
from 0 to 29; for an SAS controller, from 0 to 7.</desc>
</param>
<param name="device" type="long" dir="in">
<desc>Device slot in the given port to attach the device to. This is only
relevant for IDE controllers, for which 0 specifies the master device and
1 specifies the slave device. For all other controller types, this must
be 0.</desc>
</param>
<param name="type" type="DeviceType" dir="in">
<desc>Device type of the attached device. For media opened by
<link to="IVirtualBox::openMedium" />, this must match the device type
specified there.</desc>
</param>
</method>
<method name="detachDevice">
<rest request="post" path="/vms/{vmid}/configuration/"/>
<desc>
Detaches the device attached to a device slot of the specified bus.
Detaching the device from the virtual machine is deferred. This means
that the medium remains associated with the machine when this method
returns and gets actually de-associated only after a successful
<link to="#saveSettings"/> call. See <link to="IMedium"/>
for more detailed information about attaching media.
<note>
You cannot detach a device from a running machine.
</note>
<note>
Detaching differencing media implicitly created by <link
to="#attachDevice"/> for the indirect attachment using this
method will <b>not</b> implicitly delete them. The
<link to="IMedium::deleteStorage"/> operation should be
explicitly performed by the caller after the medium is successfully
detached and the settings are saved with
<link to="#saveSettings"/>, if it is the desired action.
</note>
<result name="VBOX_E_INVALID_VM_STATE">
Attempt to detach medium from a running virtual machine.
</result>
<result name="VBOX_E_OBJECT_NOT_FOUND">
No medium attached to given slot/bus.
</result>
<result name="VBOX_E_NOT_SUPPORTED">
Medium format does not support storage deletion (only for implicitly
created differencing media, should not happen).
</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of the storage controller to detach the medium from.</desc>
</param>
<param name="controllerPort" type="long" dir="in">
<desc>Port number to detach the medium from.</desc>
</param>
<param name="device" type="long" dir="in">
<desc>Device slot number to detach the medium from.</desc>
</param>
</method>
<method name="passthroughDevice">
<rest request="post" path="/vms/{vmid}/configuration/"/>
<desc>
Sets the passthrough mode of an existing DVD device. Changing the
setting while the VM is running is forbidden. The setting is only used
if at VM start the device is configured as a host DVD drive, in all
other cases it is ignored. The device must already exist; see
<link to="IMachine::attachDevice"/> for how to attach a new device.
The @a controllerPort and @a device parameters specify the device slot and
have have the same meaning as with <link to="IMachine::attachDevice" />.
<result name="E_INVALIDARG">
SATA device, SATA port, IDE port or IDE slot out of range.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Attempt to modify an unregistered virtual machine.
</result>
<result name="VBOX_E_INVALID_VM_STATE">
Invalid machine state.
</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of the storage controller.</desc>
</param>
<param name="controllerPort" type="long" dir="in">
<desc>Storage controller port.</desc>
</param>
<param name="device" type="long" dir="in">
<desc>Device slot in the given port.</desc>
</param>
<param name="passthrough" type="boolean" dir="in">
<desc>New value for the passthrough setting.</desc>
</param>
</method>
<method name="temporaryEjectDevice">
<rest request="post" path="/vms/{vmid}/configuration/"/>
<desc>
Sets the behavior for guest-triggered medium eject. In some situations
it is desirable that such ejects update the VM configuration, and in
others the eject should keep the VM configuration. The device must
already exist; see <link to="IMachine::attachDevice"/> for how to
attach a new device.
The @a controllerPort and @a device parameters specify the device slot and
have have the same meaning as with <link to="IMachine::attachDevice" />.
<result name="E_INVALIDARG">
SATA device, SATA port, IDE port or IDE slot out of range.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Attempt to modify an unregistered virtual machine.
</result>
<result name="VBOX_E_INVALID_VM_STATE">
Invalid machine state.
</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of the storage controller.</desc>
</param>
<param name="controllerPort" type="long" dir="in">
<desc>Storage controller port.</desc>
</param>
<param name="device" type="long" dir="in">
<desc>Device slot in the given port.</desc>
</param>
<param name="temporaryEject" type="boolean" dir="in">
<desc>New value for the eject behavior.</desc>
</param>
</method>
<method name="nonRotationalDevice">
<rest request="post" path="/vms/{vmid}/configuration/"/>
<desc>
Sets a flag in the device information which indicates that the medium
is not based on rotational technology, i.e. that the access times are
more or less independent of the position on the medium. This may or may
not be supported by a particular drive, and is silently ignored in the
latter case. At the moment only hard disks (which is a misnomer in this
context) accept this setting. Changing the setting while the VM is
running is forbidden. The device must already exist; see
<link to="IMachine::attachDevice"/> for how to attach a new device.
The @a controllerPort and @a device parameters specify the device slot and
have have the same meaning as with <link to="IMachine::attachDevice" />.
<result name="E_INVALIDARG">
SATA device, SATA port, IDE port or IDE slot out of range.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Attempt to modify an unregistered virtual machine.
</result>
<result name="VBOX_E_INVALID_VM_STATE">
Invalid machine state.
</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of the storage controller.</desc>
</param>
<param name="controllerPort" type="long" dir="in">
<desc>Storage controller port.</desc>
</param>
<param name="device" type="long" dir="in">
<desc>Device slot in the given port.</desc>
</param>
<param name="nonRotational" type="boolean" dir="in">
<desc>New value for the non-rotational device flag.</desc>
</param>
</method>
<method name="setAutoDiscardForDevice">
<rest request="post" path="/vms/{vmid}/configuration/"/>
<desc>
Sets a flag in the device information which indicates that the medium
supports discarding unused blocks (called trimming for SATA or unmap
for SCSI devices) .This may or may not be supported by a particular drive,
and is silently ignored in the latter case. At the moment only hard disks
(which is a misnomer in this context) accept this setting. Changing the
setting while the VM is running is forbidden. The device must already
exist; see <link to="IMachine::attachDevice"/> for how to attach a new
device.
The @a controllerPort and @a device parameters specify the device slot and
have have the same meaning as with <link to="IMachine::attachDevice" />.
<result name="E_INVALIDARG">
SATA device, SATA port, SCSI port out of range.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Attempt to modify an unregistered virtual machine.
</result>
<result name="VBOX_E_INVALID_VM_STATE">
Invalid machine state.
</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of the storage controller.</desc>
</param>
<param name="controllerPort" type="long" dir="in">
<desc>Storage controller port.</desc>
</param>
<param name="device" type="long" dir="in">
<desc>Device slot in the given port.</desc>
</param>
<param name="discard" type="boolean" dir="in">
<desc>New value for the discard device flag.</desc>
</param>
</method>
<method name="setHotPluggableForDevice">
<rest request="post" path="/vms/{vmid}/configuration/"/>
<desc>
Sets a flag in the device information which indicates that the attached
device is hot pluggable or not. This may or may not be supported by a
particular controller and/or drive, and is silently ignored in the
latter case. Changing the setting while the VM is running is forbidden.
The device must already exist; see <link to="IMachine::attachDevice"/>
for how to attach a new device.
The @a controllerPort and @a device parameters specify the device slot and
have have the same meaning as with <link to="IMachine::attachDevice" />.
<result name="E_INVALIDARG">
SATA device, SATA port, IDE port or IDE slot out of range.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Attempt to modify an unregistered virtual machine.
</result>
<result name="VBOX_E_INVALID_VM_STATE">
Invalid machine state.
</result>
<result name="VBOX_E_NOT_SUPPORTED">
Controller doesn't support hot plugging.
</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of the storage controller.</desc>
</param>
<param name="controllerPort" type="long" dir="in">
<desc>Storage controller port.</desc>
</param>
<param name="device" type="long" dir="in">
<desc>Device slot in the given port.</desc>
</param>
<param name="hotPluggable" type="boolean" dir="in">
<desc>New value for the hot-pluggable device flag.</desc>
</param>
</method>
<method name="setBandwidthGroupForDevice">
<rest request="post" path="/vms/{vmid}/configuration/"/>
<desc>
Sets the bandwidth group of an existing storage device.
The device must already exist; see <link to="IMachine::attachDevice"/>
for how to attach a new device.
The @a controllerPort and @a device parameters specify the device slot and
have have the same meaning as with <link to="IMachine::attachDevice" />.
<result name="E_INVALIDARG">
SATA device, SATA port, IDE port or IDE slot out of range.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Attempt to modify an unregistered virtual machine.
</result>
<result name="VBOX_E_INVALID_VM_STATE">
Invalid machine state.
</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of the storage controller.</desc>
</param>
<param name="controllerPort" type="long" dir="in">
<desc>Storage controller port.</desc>
</param>
<param name="device" type="long" dir="in">
<desc>Device slot in the given port.</desc>
</param>
<param name="bandwidthGroup" type="IBandwidthGroup" dir="in">
<desc>New value for the bandwidth group or @c null for no group.</desc>
</param>
</method>
<method name="setNoBandwidthGroupForDevice">
<rest request="post" path="/vms/{vmid}/configuration/"/>
<desc>
Sets no bandwidth group for an existing storage device.
The device must already exist; see <link to="IMachine::attachDevice"/>
for how to attach a new device.
The @a controllerPort and @a device parameters specify the device slot and
have have the same meaning as with <link to="IMachine::attachDevice" />.
<result name="E_INVALIDARG">
SATA device, SATA port, IDE port or IDE slot out of range.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Attempt to modify an unregistered virtual machine.
</result>
<result name="VBOX_E_INVALID_VM_STATE">
Invalid machine state.
</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of the storage controller.</desc>
</param>
<param name="controllerPort" type="long" dir="in">
<desc>Storage controller port.</desc>
</param>
<param name="device" type="long" dir="in">
<desc>Device slot in the given port.</desc>
</param>
</method>
<method name="unmountMedium">
<rest name="unmount" request="post" path="/vms/{vmid}/mediums/{mediumid}/actions/"/>
<desc>
Unmounts any currently mounted medium (<link to="IMedium" />,
identified by the given UUID @a id) to the given storage controller
(<link to="IStorageController" />, identified by @a name),
at the indicated port and device. The device must already exist;
This method is intended only for managing removable media, where the
device is fixed but media is changeable at runtime (such as DVDs
and floppies). It cannot be used for fixed media such as hard disks.
The @a controllerPort and @a device parameters specify the device slot
and have have the same meaning as with
<link to="IMachine::attachDevice" />.
The specified device slot must have a medium mounted, which will be
unmounted. If there is no mounted medium it will do nothing.
See <link to="IMedium"/> for more detailed information about
attaching/unmounting media.
<result name="E_INVALIDARG">
SATA device, SATA port, IDE port or IDE slot out of range.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Attempt to unmount medium that is not removable - not DVD or floppy.
</result>
<result name="VBOX_E_INVALID_VM_STATE">
Invalid machine state.
</result>
<result name="VBOX_E_OBJECT_IN_USE">
Medium already attached to this or another virtual machine.
</result>
<result name="VBOX_E_OBJECT_NOT_FOUND">
Medium not attached to specified port, device, controller.
</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of the storage controller to unmount the medium from.</desc>
</param>
<param name="controllerPort" type="long" dir="in">
<desc>Port to unmount the medium from.</desc>
</param>
<param name="device" type="long" dir="in">
<desc>Device slot in the given port to unmount the medium from.</desc>
</param>
<param name="force" type="boolean" dir="in">
<desc>Allows to force unmount of a medium which is locked by
the device slot in the given port medium is attached to.</desc>
</param>
</method>
<method name="mountMedium">
<rest name="mount" request="post" path="/vms/{vmid}/mediums/{mediumid}/actions/"/>
<desc>
Mounts a medium (<link to="IMedium" />, identified
by the given UUID @a id) to the given storage controller
(<link to="IStorageController" />, identified by @a name),
at the indicated port and device. The device must already exist;
see <link to="IMachine::attachDevice"/> for how to attach a new device.
This method is intended only for managing removable media, where the
device is fixed but media is changeable at runtime (such as DVDs
and floppies). It cannot be used for fixed media such as hard disks.
The @a controllerPort and @a device parameters specify the device slot and
have have the same meaning as with <link to="IMachine::attachDevice" />.
The specified device slot can have a medium mounted, which will be
unmounted first. Specifying a zero UUID (or an empty string) for
@a medium does just an unmount.
See <link to="IMedium"/> for more detailed information about
attaching media.
<result name="E_INVALIDARG">
SATA device, SATA port, IDE port or IDE slot out of range.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Attempt to attach medium to an unregistered virtual machine.
</result>
<result name="VBOX_E_INVALID_VM_STATE">
Invalid machine state.
</result>
<result name="VBOX_E_OBJECT_IN_USE">
Medium already attached to this or another virtual machine.
</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of the storage controller to attach the medium to.</desc>
</param>
<param name="controllerPort" type="long" dir="in">
<desc>Port to attach the medium to.</desc>
</param>
<param name="device" type="long" dir="in">
<desc>Device slot in the given port to attach the medium to.</desc>
</param>
<param name="medium" type="IMedium" dir="in">
<desc>Medium to mount or @c null for an empty drive.</desc>
</param>
<param name="force" type="boolean" dir="in">
<desc>Allows to force unmount/mount of a medium which is locked by
the device slot in the given port to attach the medium to.</desc>
</param>
</method>
<method name="getMedium" const="yes">
<rest name="find" request="get" path="/vms/{vmid}/mediums/{mediumid}/"/>
<desc>
Returns the virtual medium attached to a device slot of the specified
bus.
Note that if the medium was indirectly attached by
<link to="#mountMedium"/> to the given device slot then this
method will return not the same object as passed to the
<link to="#mountMedium"/> call. See <link to="IMedium"/> for
more detailed information about mounting a medium.
<result name="VBOX_E_OBJECT_NOT_FOUND">
No medium attached to given slot/bus.
</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of the storage controller the medium is attached to.</desc>
</param>
<param name="controllerPort" type="long" dir="in">
<desc>Port to query.</desc>
</param>
<param name="device" type="long" dir="in">
<desc>Device slot in the given port to query.</desc>
</param>
<param name="medium" type="IMedium" dir="return">
<desc>Attached medium object.</desc>
</param>
</method>
<method name="getMediumAttachmentsOfController" const="yes">
<rest request="get" path="/vms/{vmid}/configuration/"/>
<desc>
Returns an array of medium attachments which are attached to the
the controller with the given name.
<result name="VBOX_E_OBJECT_NOT_FOUND">
A storage controller with given name doesn't exist.
</result>
</desc>
<param name="name" type="wstring" dir="in"/>
<param name="mediumAttachments" type="IMediumAttachment" safearray="yes" dir="return"/>
</method>
<method name="getMediumAttachment" const="yes">
<rest request="get" path="/vms/{vmid}/configuration/"/>
<desc>
Returns a medium attachment which corresponds to the controller with
the given name, on the given port and device slot.
<result name="VBOX_E_OBJECT_NOT_FOUND">
No attachment exists for the given controller/port/device combination.
</result>
</desc>
<param name="name" type="wstring" dir="in"/>
<param name="controllerPort" type="long" dir="in"/>
<param name="device" type="long" dir="in"/>
<param name="attachment" type="IMediumAttachment" dir="return"/>
</method>
<method name="attachHostPCIDevice">
<rest request="post" path="/vms/{vmid}/configuration/"/>
<desc>
Attaches host PCI device with the given (host) PCI address to the
PCI bus of the virtual machine. Please note, that this operation
is two phase, as real attachment will happen when VM will start,
and most information will be delivered as IHostPCIDevicePlugEvent
on IVirtualBox event source.
<see><link to="IHostPCIDevicePlugEvent"/></see>
<result name="VBOX_E_INVALID_VM_STATE">
Virtual machine state is not stopped (PCI hotplug not yet implemented).
</result>
<result name="VBOX_E_PDM_ERROR">
Virtual machine does not have a PCI controller allowing attachment of physical devices.
</result>
<result name="VBOX_E_NOT_SUPPORTED">
Hardware or host OS doesn't allow PCI device passthrough.
</result>
</desc>
<param name="hostAddress" type="long" dir="in">
<desc>Address of the host PCI device.</desc>
</param>
<param name="desiredGuestAddress" type="long" dir="in">
<desc>Desired position of this device on guest PCI bus.</desc>
</param>
<param name="tryToUnbind" type="boolean" dir="in">
<desc>If VMM shall try to unbind existing drivers from the
device before attaching it to the guest.</desc>
</param>
</method>
<method name="detachHostPCIDevice">
<rest request="post" path="/vms/{vmid}/configuration/"/>
<desc>
Detach host PCI device from the virtual machine.
Also HostPCIDevicePlugEvent on IVirtualBox event source
will be delivered. As currently we don't support hot device
unplug, IHostPCIDevicePlugEvent event is delivered immediately.
<see><link to="IHostPCIDevicePlugEvent"/></see>
<result name="VBOX_E_INVALID_VM_STATE">
Virtual machine state is not stopped (PCI hotplug not yet implemented).
</result>
<result name="VBOX_E_OBJECT_NOT_FOUND">
This host device is not attached to this machine.
</result>
<result name="VBOX_E_PDM_ERROR">
Virtual machine does not have a PCI controller allowing attachment of physical devices.
</result>
<result name="VBOX_E_NOT_SUPPORTED">
Hardware or host OS doesn't allow PCI device passthrough.
</result>
</desc>
<param name="hostAddress" type="long" dir="in">
<desc>Address of the host PCI device.</desc>
</param>
</method>
<method name="getNetworkAdapter" const="yes">
<rest request="get" path="/vms/{vmid}/configuration/"/>
<desc>
Returns the network adapter associated with the given slot.
Slots are numbered sequentially, starting with zero. The total
number of adapters per machine is defined by the
<link to="ISystemProperties::getMaxNetworkAdapters"/> property,
so the maximum slot number is one less than that property's value.
<result name="E_INVALIDARG">
Invalid @a slot number.
</result>
</desc>
<param name="slot" type="unsigned long" dir="in"/>
<param name="adapter" type="INetworkAdapter" dir="return"/>
</method>
<method name="addStorageController">
<rest request="post" path="/vms/{vmid}/configuration/"/>
<desc>
Adds a new storage controller (SCSI, SAS or SATA controller) to the
machine and returns it as an instance of
<link to="IStorageController" />.
@a name identifies the controller for subsequent calls such as
<link to="#getStorageControllerByName" />,
<link to="#getStorageControllerByInstance" />,
<link to="#removeStorageController" />,
<link to="#attachDevice" /> or <link to="#mountMedium" />.
After the controller has been added, you can set its exact
type by setting the <link to="IStorageController::controllerType" />.
<result name="VBOX_E_OBJECT_IN_USE">
A storage controller with given name exists already.
</result>
<result name="E_INVALIDARG">
Invalid @a controllerType.
</result>
</desc>
<param name="name" type="wstring" dir="in"/>
<param name="connectionType" type="StorageBus" dir="in"/>
<param name="controller" type="IStorageController" dir="return"/>
</method>
<method name="getStorageControllerByName" const="yes">
<rest request="get" path="/vms/{vmid}/configuration/"/>
<desc>
Returns a storage controller with the given name.
<result name="VBOX_E_OBJECT_NOT_FOUND">
A storage controller with given name doesn't exist.
</result>
</desc>
<param name="name" type="wstring" dir="in"/>
<param name="storageController" type="IStorageController" dir="return"/>
</method>
<method name="getStorageControllerByInstance" const="yes">
<rest request="get" path="/vms/{vmid}/configuration/"/>
<desc>
Returns a storage controller of a specific storage bus
with the given instance number.
<result name="VBOX_E_OBJECT_NOT_FOUND">
A storage controller with given instance number doesn't exist.
</result>
</desc>
<param name="connectionType" type="StorageBus" dir="in"/>
<param name="instance" type="unsigned long" dir="in"/>
<param name="storageController" type="IStorageController" dir="return"/>
</method>
<method name="removeStorageController">
<rest request="post" path="/vms/{vmid}/configuration/"/>
<desc>
Removes a storage controller from the machine with all devices attached to it.
<result name="VBOX_E_OBJECT_NOT_FOUND">
A storage controller with given name doesn't exist.
</result>
<result name="VBOX_E_NOT_SUPPORTED">
Medium format does not support storage deletion (only for implicitly
created differencing media, should not happen).
</result>
</desc>
<param name="name" type="wstring" dir="in"/>
</method>
<method name="setStorageControllerBootable">
<rest request="post" path="/vms/{vmid}/configuration/"/>
<desc>
Sets the bootable flag of the storage controller with the given name.
<result name="VBOX_E_OBJECT_NOT_FOUND">
A storage controller with given name doesn't exist.
</result>
<result name="VBOX_E_OBJECT_IN_USE">
Another storage controller is marked as bootable already.
</result>
</desc>
<param name="name" type="wstring" dir="in"/>
<param name="bootable" type="boolean" dir="in"/>
</method>
<method name="addUSBController">
<rest request="post" path="/vms/{vmid}/configuration/"/>
<desc>
Adds a new USB controller to the machine and returns it as an instance of
<link to="IUSBController" />.
<result name="VBOX_E_OBJECT_IN_USE">
A USB controller with given type exists already.
</result>
<result name="E_INVALIDARG">
Invalid @a controllerType.
</result>
</desc>
<param name="name" type="wstring" dir="in"/>
<param name="type" type="USBControllerType" dir="in"/>
<param name="controller" type="IUSBController" dir="return"/>
</method>
<method name="removeUSBController">
<rest request="post" path="/vms/{vmid}/configuration/"/>
<desc>
Removes a USB controller from the machine.
<result name="VBOX_E_OBJECT_NOT_FOUND">
A USB controller with given type doesn't exist.
</result>
</desc>
<param name="name" type="wstring" dir="in"/>
</method>
<method name="getUSBControllerByName" const="yes">
<rest request="get" path="/vms/{vmid}/configuration/"/>
<desc>
Returns a USB controller with the given type.
<result name="VBOX_E_OBJECT_NOT_FOUND">
A USB controller with given name doesn't exist.
</result>
</desc>
<param name="name" type="wstring" dir="in"/>
<param name="controller" type="IUSBController" dir="return"/>
</method>
<method name="getUSBControllerCountByType" const="yes">
<rest request="get" path="/vms/{vmid}/configuration/"/>
<desc>
Returns the number of USB controllers of the given type attached to the VM.
</desc>
<param name="type" type="USBControllerType" dir="in"/>
<param name="controllers" type="unsigned long" dir="return"/>
</method>
<method name="getSerialPort" const="yes">
<rest request="get" path="/vms/{vmid}/configuration/"/>
<desc>
Returns the serial port associated with the given slot.
Slots are numbered sequentially, starting with zero. The total
number of serial ports per machine is defined by the
<link to="ISystemProperties::serialPortCount"/> property,
so the maximum slot number is one less than that property's value.
<result name="E_INVALIDARG">
Invalid @a slot number.
</result>
</desc>
<param name="slot" type="unsigned long" dir="in"/>
<param name="port" type="ISerialPort" dir="return"/>
</method>
<method name="getParallelPort" const="yes">
<rest request="get" path="/vms/{vmid}/configuration/"/>
<desc>
Returns the parallel port associated with the given slot.
Slots are numbered sequentially, starting with zero. The total
number of parallel ports per machine is defined by the
<link to="ISystemProperties::parallelPortCount"/> property,
so the maximum slot number is one less than that property's value.
<result name="E_INVALIDARG">
Invalid @a slot number.
</result>
</desc>
<param name="slot" type="unsigned long" dir="in"/>
<param name="port" type="IParallelPort" dir="return"/>
</method>
<method name="getExtraDataKeys">
<rest request="get" path="/vms/{vmid}/configuration/"/>
<desc>
Returns an array representing the machine-specific extra data keys
which currently have values defined.
</desc>
<param name="keys" type="wstring" dir="return" safearray="yes">
<desc>Array of extra data keys.</desc>
</param>
</method>
<method name="getExtraData">
<rest request="get" path="/vms/{vmid}/configuration/"/>
<desc>
Returns associated machine-specific extra data.
If the requested data @a key does not exist, this function will
succeed and return an empty string in the @a value argument.
<result name="VBOX_E_FILE_ERROR">
Settings file not accessible.
</result>
<result name="VBOX_E_XML_ERROR">
Could not parse the settings file.
</result>
</desc>
<param name="key" type="wstring" dir="in">
<desc>Name of the data key to get.</desc>
</param>
<param name="value" type="wstring" dir="return">
<desc>Value of the requested data key.</desc>
</param>
</method>
<method name="setExtraData">
<rest request="post" path="/vms/{vmid}/configuration/"/>
<desc>
Sets associated machine-specific extra data.
If you pass @c null or an empty string as a key @a value, the given
@a key will be deleted.
<note>
Key must contain printable (non-control) UTF-8 characters only.
</note>
<note>
Before performing the actual data change, this method will ask all
registered event listeners using the
<link to="IExtraDataCanChangeEvent"/>
notification for a permission. If one of the listeners refuses the
new value, the change will not be performed.
</note>
<note>
On success, the
<link to="IExtraDataChangedEvent"/> notification
is called to inform all registered listeners about a successful data
change.
</note>
<note>
This method can be called outside the machine session and therefore
it's a caller's responsibility to handle possible race conditions
when several clients change the same key at the same time.
</note>
<result name="VBOX_E_FILE_ERROR">
Settings file not accessible.
</result>
<result name="VBOX_E_XML_ERROR">
Could not parse the settings file.
</result>
<result name="E_INVALIDARG">
Key contains invalid characters.
</result>
</desc>
<param name="key" type="wstring" dir="in">
<desc>Name of the data key to set.</desc>
</param>
<param name="value" type="wstring" dir="in">
<desc>Value to assign to the key.</desc>
</param>
</method>
<method name="getCPUProperty" const="yes">
<rest request="get" path="/vms/{vmid}/configuration/"/>
<desc>
Returns the virtual CPU boolean value of the specified property.
<result name="E_INVALIDARG">
Invalid property.
</result>
</desc>
<param name="property" type="CPUPropertyType" dir="in">
<desc>
Property type to query.
</desc>
</param>
<param name="value" type="boolean" dir="return">
<desc>
Property value.
</desc>
</param>
</method>
<method name="setCPUProperty">
<rest request="post" path="/vms/{vmid}/configuration/"/>
<desc>
Sets the virtual CPU boolean value of the specified property.
<result name="E_INVALIDARG">
Invalid property.
</result>
</desc>
<param name="property" type="CPUPropertyType" dir="in">
<desc>
Property type to query.
</desc>
</param>
<param name="value" type="boolean" dir="in">
<desc>
Property value.
</desc>
</param>
</method>
<method name="getCPUIDLeafByOrdinal" const="yes">
<desc>
Used to enumerate CPUID information override values.
<result name="E_INVALIDARG">
Invalid ordinal number is out of range.
</result>
</desc>
<param name="ordinal" type="unsigned long" dir="in">
<desc>
The ordinal number of the leaf to get.
</desc>
</param>
<param name="idx" type="unsigned long" dir="out">
<desc>
CPUID leaf index.
</desc>
</param>
<param name="idxSub" type="unsigned long" dir="out">
<desc>
CPUID leaf sub-index.
</desc>
</param>
<param name="valEax" type="unsigned long" dir="out">
<desc>
CPUID leaf value for register eax.
</desc>
</param>
<param name="valEbx" type="unsigned long" dir="out">
<desc>
CPUID leaf value for register ebx.
</desc>
</param>
<param name="valEcx" type="unsigned long" dir="out">
<desc>
CPUID leaf value for register ecx.
</desc>
</param>
<param name="valEdx" type="unsigned long" dir="out">
<desc>
CPUID leaf value for register edx.
</desc>
</param>
</method>
<method name="getCPUIDLeaf" const="yes">
<desc>
Returns the virtual CPU cpuid information for the specified leaf.
Currently supported index values for cpuid:
Standard CPUID leaves: 0 - 0x1f
Extended CPUID leaves: 0x80000000 - 0x8000001f
VIA CPUID leaves: 0xc0000000 - 0xc000000f
See the Intel, AMD and VIA programmer's manuals for detailed information
about the CPUID instruction and its leaves.
<result name="E_INVALIDARG">
Invalid index.
</result>
</desc>
<param name="idx" type="unsigned long" dir="in">
<desc>
CPUID leaf index.
</desc>
</param>
<param name="idxSub" type="unsigned long" dir="in">
<desc>
CPUID leaf sub-index (ECX). Set to 0xffffffff (or 0) if not applicable.
</desc>
</param>
<param name="valEax" type="unsigned long" dir="out">
<desc>
CPUID leaf value for register eax.
</desc>
</param>
<param name="valEbx" type="unsigned long" dir="out">
<desc>
CPUID leaf value for register ebx.
</desc>
</param>
<param name="valEcx" type="unsigned long" dir="out">
<desc>
CPUID leaf value for register ecx.
</desc>
</param>
<param name="valEdx" type="unsigned long" dir="out">
<desc>
CPUID leaf value for register edx.
</desc>
</param>
</method>
<method name="setCPUIDLeaf">
<desc>
Sets the virtual CPU cpuid information for the specified leaf. Note that these values
are not passed unmodified. VirtualBox clears features that it doesn't support.
Currently supported index values for cpuid:
Standard CPUID leaves: 0 - 0x1f
Extended CPUID leaves: 0x80000000 - 0x8000001f
VIA CPUID leaves: 0xc0000000 - 0xc000000f
The subleaf index is only applicable to certain leaves (see manuals as this is
subject to change).
See the Intel, AMD and VIA programmer's manuals for detailed information
about the cpuid instruction and its leaves.
Do not use this method unless you know exactly what you're doing. Misuse can lead to
random crashes inside VMs.
<result name="E_INVALIDARG">
Invalid index.
</result>
</desc>
<param name="idx" type="unsigned long" dir="in">
<desc>
CPUID leaf index.
</desc>
</param>
<param name="idxSub" type="unsigned long" dir="in">
<desc>
CPUID leaf sub-index (ECX). Set to 0xffffffff (or 0) if not applicable.
The 0xffffffff causes it to remove all other subleaves before adding one
with sub-index 0.
</desc>
</param>
<param name="valEax" type="unsigned long" dir="in">
<desc>
CPUID leaf value for register eax.
</desc>
</param>
<param name="valEbx" type="unsigned long" dir="in">
<desc>
CPUID leaf value for register ebx.
</desc>
</param>
<param name="valEcx" type="unsigned long" dir="in">
<desc>
CPUID leaf value for register ecx.
</desc>
</param>
<param name="valEdx" type="unsigned long" dir="in">
<desc>
CPUID leaf value for register edx.
</desc>
</param>
</method>
<method name="removeCPUIDLeaf">
<desc>
Removes the virtual CPU cpuid leaf for the specified index
<result name="E_INVALIDARG">
Invalid index.
</result>
</desc>
<param name="idx" type="unsigned long" dir="in">
<desc>
CPUID leaf index.
</desc>
</param>
<param name="idxSub" type="unsigned long" dir="in">
<desc>
CPUID leaf sub-index (ECX). Set to 0xffffffff (or 0) if not applicable.
The 0xffffffff value works like a wildcard.
</desc>
</param>
</method>
<method name="removeAllCPUIDLeaves">
<desc>
Removes all the virtual CPU cpuid leaves
</desc>
</method>
<method name="getHWVirtExProperty" const="yes">
<rest request="get" path="/vms/{vmid}/configuration/"/>
<desc>
Returns the value of the specified hardware virtualization boolean property.
<result name="E_INVALIDARG">
Invalid property.
</result>
</desc>
<param name="property" type="HWVirtExPropertyType" dir="in">
<desc>
Property type to query.
</desc>
</param>
<param name="value" type="boolean" dir="return">
<desc>
Property value.
</desc>
</param>
</method>
<method name="setHWVirtExProperty">
<rest request="post" path="/vms/{vmid}/configuration/"/>
<desc>
Sets a new value for the specified hardware virtualization boolean property.
<result name="E_INVALIDARG">
Invalid property.
</result>
</desc>
<param name="property" type="HWVirtExPropertyType" dir="in">
<desc>
Property type to set.
</desc>
</param>
<param name="value" type="boolean" dir="in">
<desc>
New property value.
</desc>
</param>
</method>
<method name="setSettingsFilePath">
<rest request="post" path="/vms/{vmid}/configuration/"/>
<desc>
Currently, it is an error to change this property on any machine.
Later this will allow setting a new path for the settings file, with
automatic relocation of all files (including snapshots and disk images)
which are inside the base directory. This operation is only allowed
when there are no pending unsaved settings.
<note>
Setting this property to @c null or to an empty string is forbidden.
When setting this property, the specified path must be absolute.
The specified path may not exist, it will be created when necessary.
</note>
<result name="E_NOTIMPL">
The operation is not implemented yet.
</result>
</desc>
<param name="settingsFilePath" type="wstring" dir="in">
<desc>New settings file path, will be used to determine the new
location for the attached media if it is in the same directory or
below as the original settings file.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="saveSettings">
<rest request="post" path="/vms/{vmid}/configuration/"/>
<desc>
Saves any changes to machine settings made since the session
has been opened or a new machine has been created, or since the
last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
For registered machines, new settings become visible to all
other VirtualBox clients after successful invocation of this
method.
<note>
The method sends <link to="IMachineDataChangedEvent"/>
notification event after the configuration has been successfully
saved (only for registered machines).
</note>
<note>
Calling this method is only valid on instances returned
by <link to="ISession::machine"/> and on new machines
created by <link to="IVirtualBox::createMachine"/> but not
yet registered, or on unregistered machines after calling
<link to="IMachine::unregister"/>.
</note>
<result name="VBOX_E_FILE_ERROR">
Settings file not accessible.
</result>
<result name="VBOX_E_XML_ERROR">
Could not parse the settings file.
</result>
<result name="E_ACCESSDENIED">
Modification request refused.
</result>
</desc>
</method>
<method name="discardSettings">
<rest request="post" path="/vms/{vmid}/configuration/"/>
<desc>
Discards any changes to the machine settings made since the session
has been opened or since the last call to <link to="#saveSettings"/>
or <link to="#discardSettings"/>.
<note>
Calling this method is only valid on instances returned
by <link to="ISession::machine"/> and on new machines
created by <link to="IVirtualBox::createMachine"/> or
opened by <link to="IVirtualBox::openMachine"/> but not
yet registered, or on unregistered machines after calling
<link to="IMachine::unregister"/>.
</note>
<result name="VBOX_E_INVALID_VM_STATE">
Virtual machine is not mutable.
</result>
</desc>
</method>
<method name="unregister" wrap-hint-server="limitedcaller,passcaller">
<rest request="post" path="/vms/{vmid}/actions/"/>
<desc>
Unregisters a machine previously registered with
<link to="IVirtualBox::registerMachine"/> and optionally do additional
cleanup before the machine is unregistered.
This method does not delete any files. It only changes the machine configuration and
the list of registered machines in the VirtualBox object. To delete the files which
belonged to the machine, including the XML file of the machine itself, call
<link to="#deleteConfig"/>, optionally with the array of IMedium objects which was returned
from this method.
How thoroughly this method cleans up the machine configuration before unregistering
the machine depends on the @a cleanupMode argument.
<ul>
<li>With "UnregisterOnly", the machine will only be unregistered, but no additional
cleanup will be performed. The call will fail if the machine has any snapshots or
any media attached (see <link to="IMediumAttachment" />). It is the responsibility
of the caller to delete all such configuration in this mode. In this mode, the API
behaves like the former @c IVirtualBox::unregisterMachine() API which it replaces.</li>
<li>With "DetachAllReturnNone", the call will succeed even if the machine is in "Saved"
state or if it has snapshots or media attached. All media attached to the current machine
state or in snapshots will be detached. No medium objects will be returned;
all of the machine's media will remain open.</li>
<li>With "DetachAllReturnHardDisksOnly", the call will behave like with "DetachAllReturnNone",
except that all the hard disk medium objects which were detached from the machine will
be returned as an array. This allows for quickly passing them to the <link to="#deleteConfig" />
API for closing and deletion.</li>
<li>With "Full", the call will behave like with "DetachAllReturnHardDisksOnly", except
that all media will be returned in the array, including removable media like DVDs and
floppies. This might be useful if the user wants to inspect in detail which media were
attached to the machine. Be careful when passing the media array to <link to="#deleteConfig" />
in that case because users will typically want to preserve ISO and RAW image files.</li>
</ul>
A typical implementation will use "DetachAllReturnHardDisksOnly" and then pass the
resulting IMedium array to <link to="#deleteConfig"/>. This way, the machine is completely
deleted with all its saved states and hard disk images, but images for removable
drives (such as ISO and RAW files) will remain on disk.
This API does not verify whether the media files returned in the array are still
attached to other machines (i.e. shared between several machines). If such a shared
image is passed to <link to="#deleteConfig" /> however, closing the image will fail there
and the image will be silently skipped.
This API may, however, move media from this machine's media registry to other media
registries (see <link to="IMedium" /> for details on media registries). For machines
created with VirtualBox 4.0 or later, if media from this machine's media registry
are also attached to another machine (shared attachments), each such medium will be
moved to another machine's registry. This is because without this machine's media
registry, the other machine cannot find its media any more and would become inaccessible.
This API implicitly calls <link to="#saveSettings"/> to save all current machine settings
before unregistering it. It may also silently call <link to="#saveSettings"/> on other machines
if media are moved to other machines' media registries.
After successful method invocation, the <link to="IMachineRegisteredEvent"/> event
is fired.
The call will fail if the machine is currently locked (see <link to="ISession" />).
<note>
If the given machine is inaccessible (see <link to="#accessible"/>), it
will be unregistered and fully uninitialized right afterwards. As a result,
the returned machine object will be unusable and an attempt to call
<b>any</b> method will return the "Object not ready" error.
</note>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Machine is currently locked for a session.
</result>
</desc>
<param name="cleanupMode" type="CleanupMode" dir="in">
<desc>How to clean up after the machine has been unregistered.</desc>
</param>
<param name="media" type="IMedium" safearray="yes" dir="return">
<desc>List of media detached from the machine, depending on the @a cleanupMode parameter.</desc>
</param>
</method>
<method name="deleteConfig">
<rest name="remove" request="delete" path="/vms/{vmid}/"/>
<desc>
Deletes the files associated with this machine from disk. If medium objects are passed
in with the @a aMedia argument, they are closed and, if closing was successful, their
storage files are deleted as well. For convenience, this array of media files can be
the same as the one returned from a previous <link to="#unregister" /> call.
This method must only be called on machines which are either write-locked (i.e. on instances
returned by <link to="ISession::machine"/>) or on unregistered machines (i.e. not yet
registered machines created by <link to="IVirtualBox::createMachine"/> or opened by
<link to="IVirtualBox::openMachine"/>, or after having called <link to="#unregister"/>).
The following files will be deleted by this method:
<ul>
<li>If <link to="#unregister" /> had been previously called with a @a cleanupMode
argument other than "UnregisterOnly", this will delete all saved state files that
the machine had in use; possibly one if the machine was in either the "Saved" or
"AbortedSaved" state and one for each online snapshot that the machine had.</li>
<li>On each medium object passed in the @a aMedia array, this will call
<link to="IMedium::close" />. If that succeeds, this will attempt to delete the
medium's storage on disk. Since the <link to="IMedium::close"/> call will fail if the medium is still
in use, e.g. because it is still attached to a second machine; in that case the
storage will not be deleted.</li>
<li>Finally, the machine's own XML file will be deleted.</li>
</ul>
Since deleting large disk image files can be a time-consuming I/O operation, this
method operates asynchronously and returns an IProgress object to allow the caller
to monitor the progress. There will be one sub-operation for each file that is
being deleted (saved state or medium storage file).
<note>
<link to="#settingsModified"/> will return @c true after this
method successfully returns.
</note>
<result name="VBOX_E_INVALID_VM_STATE">
Machine is registered but not write-locked.
</result>
<result name="VBOX_E_IPRT_ERROR">
Could not delete the settings file.
</result>
</desc>
<param name="media" type="IMedium" safearray="yes" dir="in">
<desc>List of media to be closed and whose storage files will be deleted.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="exportTo">
<rest name="export" request="post" path="/vms/{vmid}/actions/"/>
<desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
steps required to export VirtualBox machines to OVF.
</desc>
<param name="appliance" type="IAppliance" dir="in">
<desc>Appliance to export this machine to.</desc>
</param>
<param name="location" type="wstring" dir="in">
<desc>The target location.</desc>
</param>
<param name="description" type="IVirtualSystemDescription" dir="return">
<desc>VirtualSystemDescription object which is created for this machine.</desc>
</param>
</method>
<method name="findSnapshot">
<rest request="get" path="/vms/{vmid}/configuration/"/>
<desc>
Returns a snapshot of this machine with the given name or UUID.
Returns a snapshot of this machine with the given UUID.
A @c null argument can be used to obtain the first snapshot
taken on this machine. To traverse the whole tree of snapshots
starting from the root, inspect the root snapshot's
<link to="ISnapshot::children" /> attribute and recurse over those children.
<result name="VBOX_E_OBJECT_NOT_FOUND">
Virtual machine has no snapshots or snapshot not found.
</result>
</desc>
<param name="nameOrId" type="wstring" dir="in">
<desc>What to search for. Name or UUID of the snapshot to find</desc>
</param>
<param name="snapshot" type="ISnapshot" dir="return">
<desc>Snapshot object with the given name.</desc>
</param>
</method>
<method name="createSharedFolder">
<rest request="post" path="/vms/{vmid}/methods/"/>
<desc>
Creates a new permanent shared folder by associating the given logical
name with the given host path, adds it to the collection of shared
folders and starts sharing it. Refer to the description of
<link to="ISharedFolder"/> to read more about logical names.
<result name="VBOX_E_OBJECT_IN_USE">
Shared folder already exists.
</result>
<result name="VBOX_E_FILE_ERROR">
Shared folder @a hostPath not accessible.
</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>Unique logical name of the shared folder.</desc>
</param>
<param name="hostPath" type="wstring" dir="in">
<desc>Full path to the shared folder in the host file system.</desc>
</param>
<param name="writable" type="boolean" dir="in">
<desc>Whether the share is writable or read-only.</desc>
</param>
<param name="automount" type="boolean" dir="in">
<desc>Whether the share gets automatically mounted by the guest
or not.</desc>
</param>
<param name="autoMountPoint" type="wstring" dir="in">
<desc>Where the guest should automatically mount the folder, if possible.
For Windows and OS/2 guests this should be a drive letter, while other
guests it should be a absolute directory.
</desc>
</param>
</method>
<method name="removeSharedFolder">
<rest request="delete" path="/vms/{vmid}/methods/"/>
<desc>
Removes the permanent shared folder with the given name previously
created by <link to="#createSharedFolder"/> from the collection of
shared folders and stops sharing it.
<result name="VBOX_E_INVALID_VM_STATE">
Virtual machine is not mutable.
</result>
<result name="VBOX_E_OBJECT_NOT_FOUND">
Shared folder @a name does not exist.
</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>Logical name of the shared folder to remove.</desc>
</param>
</method>
<method name="canShowConsoleWindow">
<desc>
Returns @c true if the VM console process can activate the
console window and bring it to foreground on the desktop of
the host PC.
<note>
This method will fail if a session for this machine is not
currently open.
</note>
<result name="VBOX_E_INVALID_VM_STATE">
Machine session is not open.
</result>
</desc>
<param name="canShow" type="boolean" dir="return">
<desc>
@c true if the console window can be shown and @c false otherwise.
</desc>
</param>
</method>
<method name="showConsoleWindow">
<desc>
Activates the console window and brings it to foreground on
the desktop of the host PC. Many modern window managers on
many platforms implement some sort of focus stealing
prevention logic, so that it may be impossible to activate
a window without the help of the currently active
application. In this case, this method will return a non-zero
identifier that represents the top-level window of the VM
console process. The caller, if it represents a currently
active process, is responsible to use this identifier (in a
platform-dependent manner) to perform actual window
activation.
<note>
This method will fail if a session for this machine is not
currently open.
</note>
<result name="VBOX_E_INVALID_VM_STATE">
Machine session is not open.
</result>
</desc>
<param name="winId" type="long long" dir="return">
<desc>
Platform-dependent identifier of the top-level VM console
window, or zero if this method has performed all actions
necessary to implement the <i>show window</i> semantics for
the given platform and/or VirtualBox front-end.
</desc>
</param>
</method>
<method name="getGuestProperty" const="yes">
<rest name="Property" request="get" path="/vms/{vmid}/guest/"/>
<desc>
Reads an entry from the machine's guest property store.
<result name="VBOX_E_INVALID_VM_STATE">
Machine session is not open.
</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>
The name of the property to read.
</desc>
</param>
<param name="value" type="wstring" dir="out">
<desc>
The value of the property. If the property does not exist then this
will be empty.
</desc>
</param>
<param name="timestamp" type="long long" dir="out">
<desc>
The time at which the property was last modified, as seen by the
server process.
</desc>
</param>
<param name="flags" type="wstring" dir="out">
<desc>
Additional property parameters, passed as a comma-separated list of
"name=value" type entries.
</desc>
</param>
</method>
<method name="getGuestPropertyValue" const="yes">
<desc>
Reads a value from the machine's guest property store.
<result name="VBOX_E_INVALID_VM_STATE">
Machine session is not open.
</result>
</desc>
<param name="property" type="wstring" dir="in">
<desc>
The name of the property to read.
</desc>
</param>
<param name="value" type="wstring" dir="return">
<desc>
The value of the property. If the property does not exist then this
will be empty.
</desc>
</param>
</method>
<method name="getGuestPropertyTimestamp" const="yes">
<desc>
Reads a property timestamp from the machine's guest property store.
<result name="VBOX_E_INVALID_VM_STATE">
Machine session is not open.
</result>
</desc>
<param name="property" type="wstring" dir="in">
<desc>
The name of the property to read.
</desc>
</param>
<param name="value" type="long long" dir="return">
<desc>
The timestamp. If the property does not exist then this will be
empty.
</desc>
</param>
</method>
<method name="setGuestProperty">
<rest name="Property" request="patch" path="/vms/{vmid}/guest/"/>
<desc>
Sets, changes or deletes an entry in the machine's guest property
store.
<result name="E_ACCESSDENIED">
Property cannot be changed.
</result>
<result name="E_INVALIDARG">
Invalid @a flags.
</result>
<result name="VBOX_E_INVALID_VM_STATE">
Virtual machine is not mutable or session not open.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Cannot set transient property when machine not running.
</result>
</desc>
<param name="property" type="wstring" dir="in">
<desc>
The name of the property to set, change or delete.
</desc>
</param>
<param name="value" type="wstring" dir="in">
<desc>
The new value of the property to set, change or delete. If the
property does not yet exist and value is non-empty, it will be
created. If the value is @c null or empty, the property will be
deleted if it exists.
</desc>
</param>
<param name="flags" type="wstring" dir="in">
<desc>
Additional property parameters, passed as a comma-separated list of
"name=value" type entries.
</desc>
</param>
</method>
<method name="setGuestPropertyValue">
<desc>
Sets or changes a value in the machine's guest property
store. The flags field will be left unchanged or created empty for a
new property.
<result name="E_ACCESSDENIED">
Property cannot be changed.
</result>
<result name="VBOX_E_INVALID_VM_STATE">
Virtual machine is not mutable or session not open.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Cannot set transient property when machine not running.
</result>
</desc>
<param name="property" type="wstring" dir="in">
<desc>
The name of the property to set or change.
</desc>
</param>
<param name="value" type="wstring" dir="in">
<desc>
The new value of the property to set or change. If the
property does not yet exist and value is non-empty, it will be
created.
</desc>
</param>
</method>
<method name="deleteGuestProperty" const="yes">
<rest name="Property" request="delete" path="/vms/{vmid}/guest/"/>
<desc>
Deletes an entry from the machine's guest property store.
<result name="VBOX_E_INVALID_VM_STATE">
Machine session is not open.
</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>
The name of the property to delete.
</desc>
</param>
</method>
<method name="enumerateGuestProperties" const="yes">
<desc>
Return a list of the guest properties matching a set of patterns along
with their values, timestamps and flags.
</desc>
<param name="patterns" type="wstring" dir="in">
<desc>
The patterns to match the properties against, separated by '|'
characters. If this is empty or @c null, all properties will match.
</desc>
</param>
<param name="names" type="wstring" dir="out" safearray="yes">
<desc>
The names of the properties returned.
</desc>
</param>
<param name="values" type="wstring" dir="out" safearray="yes">
<desc>
The values of the properties returned. The array entries match the
corresponding entries in the @a name array.
</desc>
</param>
<param name="timestamps" type="long long" dir="out" safearray="yes">
<desc>
The timestamps of the properties returned. The array entries match
the corresponding entries in the @a name array.
</desc>
</param>
<param name="flags" type="wstring" dir="out" safearray="yes">
<desc>
The flags of the properties returned. The array entries match the
corresponding entries in the @a name array.
</desc>
</param>
</method>
<method name="querySavedGuestScreenInfo" const="yes">
<desc>
Returns the guest dimensions from the saved state.
</desc>
<param name="screenId" type="unsigned long" dir="in">
<desc>
Saved guest screen to query info from.
</desc>
</param>
<param name="originX" type="unsigned long" dir="out">
<desc>
The X position of the guest monitor top left corner.
</desc>
</param>
<param name="originY" type="unsigned long" dir="out">
<desc>
The Y position of the guest monitor top left corner.
</desc>
</param>
<param name="width" type="unsigned long" dir="out">
<desc>
Guest width at the time of the saved state was taken.
</desc>
</param>
<param name="height" type="unsigned long" dir="out">
<desc>
Guest height at the time of the saved state was taken.
</desc>
</param>
<param name="enabled" type="boolean" dir="out">
<desc>
Whether the monitor is enabled in the guest.
</desc>
</param>
</method>
<method name="readSavedThumbnailToArray">
<desc>
Thumbnail is retrieved to an array of bytes in the requested format.
</desc>
<param name="screenId" type="unsigned long" dir="in">
<desc>
Saved guest screen to read from.
</desc>
</param>
<param name="bitmapFormat" type="BitmapFormat" dir="in">
<desc>
The requested format.
</desc>
</param>
<param name="width" type="unsigned long" dir="out">
<desc>
Bitmap width.
</desc>
</param>
<param name="height" type="unsigned long" dir="out">
<desc>
Bitmap height.
</desc>
</param>
<param name="data" type="octet" safearray="yes" dir="return">
<desc>
Array with resulting bitmap data.
</desc>
</param>
</method>
<method name="querySavedScreenshotInfo">
<desc>
Returns available formats and size of the screenshot from saved state.
</desc>
<param name="screenId" type="unsigned long" dir="in">
<desc>
Saved guest screen to query info from.
</desc>
</param>
<param name="width" type="unsigned long" dir="out">
<desc>
Image width.
</desc>
</param>
<param name="height" type="unsigned long" dir="out">
<desc>
Image height.
</desc>
</param>
<param name="bitmapFormats" type="BitmapFormat" safearray="yes" dir="return">
<desc>
Formats supported by readSavedScreenshotToArray.
</desc>
</param>
</method>
<method name="readSavedScreenshotToArray">
<desc>
Screenshot in requested format is retrieved to an array of bytes.
</desc>
<param name="screenId" type="unsigned long" dir="in">
<desc>
Saved guest screen to read from.
</desc>
</param>
<param name="bitmapFormat" type="BitmapFormat" dir="in">
<desc>
The requested format.
</desc>
</param>
<param name="width" type="unsigned long" dir="out">
<desc>
Image width.
</desc>
</param>
<param name="height" type="unsigned long" dir="out">
<desc>
Image height.
</desc>
</param>
<param name="data" type="octet" dir="return" safearray="yes">
<desc>
Array with resulting image data.
</desc>
</param>
</method>
<method name="hotPlugCPU">
<rest request="post" path="/vms/{vmid}/configuration/"/>
<desc>
Plugs a CPU into the machine.
</desc>
<param name="cpu" type="unsigned long" dir="in">
<desc>
The CPU id to insert.
</desc>
</param>
</method>
<method name="hotUnplugCPU">
<rest request="post" path="/vms/{vmid}/configuration/"/>
<desc>
Removes a CPU from the machine.
</desc>
<param name="cpu" type="unsigned long" dir="in">
<desc>
The CPU id to remove.
</desc>
</param>
</method>
<method name="getCPUStatus">
<rest request="get" path="/vms/{vmid}/configuration/"/>
<desc>
Returns the current status of the given CPU.
</desc>
<param name="cpu" type="unsigned long" dir="in">
<desc>
The CPU id to check for.
</desc>
</param>
<param name="attached" type="boolean" dir="return">
<desc>
Status of the CPU.
</desc>
</param>
</method>
<method name="getEffectiveParavirtProvider" const="yes">
<rest request="get" path="/vms/{vmid}/configuration/"/>
<desc>
Returns the effective paravirtualization provider for this VM.
</desc>
<param name="paravirtProvider" type="ParavirtProvider" dir="return">
<desc>
The effective paravirtualization provider for this VM.
</desc>
</param>
</method>
<method name="queryLogFilename">
<rest request="get" path="/vms/{vmid}/logs/"/>
<desc>
Queries for the VM log file name of an given index. Returns an empty
string if a log file with that index doesn't exists.
</desc>
<param name="idx" type="unsigned long" dir="in">
<desc>
Which log file name to query. 0=current log file.
</desc>
</param>
<param name="filename" type="wstring" dir="return">
<desc>
On return the full path to the log file or an empty string on error.
</desc>
</param>
</method>
<method name="readLog">
<desc>
Reads the VM log file. The chunk size is limited, so even if you
ask for a big piece there might be less data returned.
</desc>
<param name="idx" type="unsigned long" dir="in">
<desc>
Which log file to read. 0=current log file.
</desc>
</param>
<param name="offset" type="long long" dir="in">
<desc>
Offset in the log file.
</desc>
</param>
<param name="size" type="long long" dir="in">
<desc>
Chunk size to read in the log file.
</desc>
</param>
<param name="data" type="octet" dir="return" safearray="yes">
<desc>
Data read from the log file. A data size of 0 means end of file
if the requested chunk size was not 0. This is the unprocessed
file data, i.e. the line ending style depends on the platform of
the system the server is running on.
</desc>
</param>
</method>
<method name="cloneTo">
<rest name="clone" request="put" path="/vms/{vmid}/actions/"/>
<desc>
Creates a clone of this machine, either as a full clone (which means
creating independent copies of the hard disk media, save states and so
on), or as a linked clone (which uses its own differencing media,
sharing the parent media with the source machine).
The target machine object must have been created previously with <link
to="IVirtualBox::createMachine"/>, and all the settings will be
transferred except the VM name and the hardware UUID. You can set the
VM name and the new hardware UUID when creating the target machine. The
network MAC addresses are newly created for all enabled network
adapters. You can change that behaviour with the options parameter.
The operation is performed asynchronously, so the machine object will
be not be usable until the @a progress object signals completion.
<result name="E_INVALIDARG">
@a target is @c null.
</result>
</desc>
<param name="target" type="IMachine" dir="in">
<desc>Target machine object.</desc>
</param>
<param name="mode" type="CloneMode" dir="in">
<desc>Which states should be cloned.</desc>
</param>
<param name="options" type="CloneOptions" dir="in" safearray="yes">
<desc>Options for the cloning operation.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="moveTo">
<rest name="move" request="post" path="/vms/{vmid}/actions/"/>
<desc>
Move machine on to new place/folder
</desc>
<param name="folder" type="wstring" dir="in">
<desc>Target folder where machine is moved. May be the same folder
where the VM already is located or the empty string, in which
case the machine is kept in this location and the disk images
and other files which are stored elsewhere are moved.</desc>
</param>
<param name="type" type="wstring" dir="in">
<desc>Type of moving.
Possible values:
basic - Only the files which belong solely to this machine
are moved from the original machine's folder to
a new folder.
</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="saveState">
<rest name="save" request="post" path="/vms/{vmid}/actions/"/>
<desc>
Saves the current execution state of a running virtual machine
and stops its execution.
After this operation completes, the machine will go to the
Saved state. The next time it is powered up this state will
be restored and the machine will continue its execution from
the place where it was saved.
This operation differs from taking a snapshot to the effect
that it doesn't create new differencing media. Also, once
the machine is powered up from the state saved using this method,
the saved state is deleted, so it will be impossible to return
to this state later.
<note>
On success, this method implicitly calls
<link to="#saveSettings"/> to save all current machine
settings (including runtime changes to the DVD medium, etc.).
Together with the impossibility to change any VM settings when it is
in the Saved state, this guarantees adequate hardware
configuration of the machine when it is restored from the saved
state file.
</note>
<note>
The machine must be in the Running or Paused state, otherwise
the operation will fail.
</note>
<result name="VBOX_E_INVALID_VM_STATE">
Virtual machine state neither Running nor Paused.
</result>
<result name="VBOX_E_FILE_ERROR">
Failed to create directory for saved state file.
</result>
<see><link to="#takeSnapshot"/></see>
</desc>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="adoptSavedState">
<desc>
Associates the given saved state file to the virtual machine.
On success, the machine will go to the Saved state. The next time it is
powered up it will be restored from the adopted saved state and
continue execution from the place where the saved state file was
created.
The specified saved state file path may be absolute or relative to the
folder the VM normally saves the state to (usually,
<link to="#snapshotFolder"/>).
<note>
It's a caller's responsibility to make sure the given saved state
file is compatible with the settings of this virtual machine that
represent its virtual hardware (memory size, storage disk configuration
etc.). If there is a mismatch, the behavior of the virtual machine
is undefined.
</note>
<result name="VBOX_E_INVALID_VM_STATE">
Virtual machine state neither PoweredOff nor Aborted.
</result>
</desc>
<param name="savedStateFile" type="wstring" dir="in">
<desc>Path to the saved state file to adopt.</desc>
</param>
</method>
<method name="discardSavedState">
<rest request="post" path="/vms/{vmid}/actions/"/>
<desc>
Forcibly resets the machine to "Powered Off" state if it is
currently in the "Saved" state previously created by <link to="#saveState"/>)
or in the "AbortedSaved" state. The next time the machine is powered up
a clean boot will occur.
<note>
This operation is equivalent to resetting or powering off
the machine without doing a proper shutdown of the guest
operating system; as with resetting a running phyiscal
computer, it can can lead to data loss.
</note>
If @a fRemoveFile is @c true, the file in the machine directory
into which the machine state was saved is also deleted. If
this is @c false, then the state can be recovered and later
re-inserted into a machine using <link to="#adoptSavedState" />.
The location of the file can be found in the
<link to="#stateFilePath" /> attribute.
<result name="VBOX_E_INVALID_VM_STATE">
Virtual machine not in either the Saved or AbortedSaved state.
</result>
</desc>
<param name="fRemoveFile" type="boolean" dir="in" >
<desc>Whether to also remove the saved state file.</desc>
</param>
</method>
<method name="takeSnapshot">
<rest request="put" path="/vms/{vmid}/actions/"/>
<desc>
Saves the current execution state
and all settings of the machine and creates differencing images
for all normal (non-independent) media.
See <link to="ISnapshot" /> for an introduction to snapshots.
This method can be called for a PoweredOff, Saved (see
<link to="#saveState"/>), AbortedSaved, Running or
Paused virtual machine. When the machine is PoweredOff, an
offline snapshot is created. When the machine is Running a live
snapshot is created, and an online snapshot is created when Paused.
The taken snapshot is always based on the
<link to="#currentSnapshot">current snapshot</link>
of the associated virtual machine and becomes a new current snapshot.
<note>
This method implicitly calls <link to="#saveSettings"/> to
save all current machine settings before taking an offline snapshot.
</note>
<result name="VBOX_E_INVALID_VM_STATE">
Virtual machine currently changing state.
</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>Short name for the snapshot.</desc>
</param>
<param name="description" type="wstring" dir="in">
<desc>Optional description of the snapshot.</desc>
</param>
<param name="pause" type="boolean" dir="in">
<desc>Whether the VM should be paused while taking the snapshot. Only
relevant when the VM is running, and distinguishes between online
(@c true) and live (@c false) snapshots. When the VM is not running
the result is always an offline snapshot.</desc>
</param>
<param name="id" type="uuid" mod="string" dir="out">
<desc>UUID of the snapshot which will be created. Useful for follow-up
operations after the snapshot has been created.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="deleteSnapshot">
<rest request="delete" path="/vms/{vmid}/actions/"/>
<desc>
Starts deleting the specified snapshot asynchronously.
See <link to="ISnapshot" /> for an introduction to snapshots.
The execution state and settings of the associated machine stored in
the snapshot will be deleted. The contents of all differencing media of
this snapshot will be merged with the contents of their dependent child
media to keep the medium chain valid (in other words, all changes
represented by media being deleted will be propagated to their child
medium). After that, this snapshot's differencing medium will be
deleted. The parent of this snapshot will become a new parent for all
its child snapshots.
If the deleted snapshot is the current one, its parent snapshot will
become a new current snapshot. The current machine state is not directly
affected in this case, except that currently attached differencing
media based on media of the deleted snapshot will be also merged as
described above.
If the deleted snapshot is the first or current snapshot, then the
respective IMachine attributes will be adjusted. Deleting the current
snapshot will also implicitly call <link to="#saveSettings"/>
to make all current machine settings permanent.
Deleting a snapshot has the following preconditions:
<ul>
<li>Child media of all normal media of the deleted snapshot
must be accessible (see <link to="IMedium::state"/>) for this
operation to succeed. If only one running VM refers to all images
which participates in merging the operation can be performed while
the VM is running. Otherwise all virtual machines whose media are
directly or indirectly based on the media of deleted snapshot must
be powered off. In any case, online snapshot deleting usually is
slower than the same operation without any running VM.</li>
<li>You cannot delete the snapshot if a medium attached to it has
more than one child medium (differencing images) because otherwise
merging would be impossible. This might be the case if there is
more than one child snapshot or differencing images were created
for other reason (e.g. implicitly because of multiple machine
attachments).</li>
</ul>
The virtual machine's <link to="#state">state</link> is
changed to "DeletingSnapshot", "DeletingSnapshotOnline" or
"DeletingSnapshotPaused" while this operation is in progress.
<note>
Merging medium contents can be very time and disk space
consuming, if these media are big in size and have many
children. However, if the snapshot being deleted is the last
(head) snapshot on the branch, the operation will be rather
quick.
</note>
<result name="VBOX_E_INVALID_VM_STATE">
The running virtual machine prevents deleting this snapshot. This
happens only in very specific situations, usually snapshots can be
deleted without trouble while a VM is running. The error message
text explains the reason for the failure.
</result>
</desc>
<param name="id" type="uuid" mod="string" dir="in">
<desc>UUID of the snapshot to delete.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="deleteSnapshotAndAllChildren">
<rest request="post" path="/vms/{vmid}/actions/"/>
<desc>
Starts deleting the specified snapshot and all its children
asynchronously. See <link to="ISnapshot" /> for an introduction to
snapshots. The conditions and many details are the same as with
<link to="#deleteSnapshot"/>.
This operation is very fast if the snapshot subtree does not include
the current state. It is still significantly faster than deleting the
snapshots one by one if the current state is in the subtree and there
are more than one snapshots from current state to the snapshot which
marks the subtree, since it eliminates the incremental image merging.
<note>This API method is right now not implemented!</note>
<result name="VBOX_E_INVALID_VM_STATE">
The running virtual machine prevents deleting this snapshot. This
happens only in very specific situations, usually snapshots can be
deleted without trouble while a VM is running. The error message
text explains the reason for the failure.
</result>
<result name="E_NOTIMPL">
The method is not implemented yet.
</result>
</desc>
<param name="id" type="uuid" mod="string" dir="in">
<desc>UUID of the snapshot to delete, including all its children.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="deleteSnapshotRange">
<rest request="post" path="/vms/{vmid}/actions/"/>
<desc>
Starts deleting the specified snapshot range. This is limited to
linear snapshot lists, which means there may not be any other child
snapshots other than the direct sequence between the start and end
snapshot. If the start and end snapshot point to the same snapshot this
method is completely equivalent to <link to="#deleteSnapshot"/>. See
<link to="ISnapshot" /> for an introduction to snapshots. The
conditions and many details are the same as with
<link to="#deleteSnapshot"/>.
This operation is generally faster than deleting snapshots one by one
and often also needs less extra disk space before freeing up disk space
by deleting the removed disk images corresponding to the snapshot.
<note>This API method is right now not implemented!</note>
<result name="VBOX_E_INVALID_VM_STATE">
The running virtual machine prevents deleting this snapshot. This
happens only in very specific situations, usually snapshots can be
deleted without trouble while a VM is running. The error message
text explains the reason for the failure.
</result>
<result name="E_NOTIMPL">
The method is not implemented yet.
</result>
</desc>
<param name="startId" type="uuid" mod="string" dir="in">
<desc>UUID of the first snapshot to delete.</desc>
</param>
<param name="endId" type="uuid" mod="string" dir="in">
<desc>UUID of the last snapshot to delete.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="restoreSnapshot">
<rest request="post" path="/vms/{vmid}/actions/"/>
<desc>
Starts resetting the machine's current state to the state contained
in the given snapshot, asynchronously. All current settings of the
machine will be reset and changes stored in differencing media
will be lost.
See <link to="ISnapshot" /> for an introduction to snapshots.
After this operation is successfully completed, new empty differencing
media are created for all normal media of the machine.
If the given snapshot is an online snapshot, the machine will go to
the <link to="MachineState_Saved">Saved</link> state, so that the
next time it is powered on, the execution state will be restored
from the state of the snapshot.
<note>
The machine must not be running, otherwise the operation will fail.
</note>
<note>
If the machine is in the <link to="MachineState_Saved">Saved</link>
state prior to this operation, the saved state file will be implicitly
deleted (as if <link to="IMachine::discardSavedState"/> were
called).
</note>
<result name="VBOX_E_INVALID_VM_STATE">
Virtual machine is running.
</result>
</desc>
<param name="snapshot" type="ISnapshot" dir="in">
<desc>The snapshot to restore the VM state from.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="applyDefaults">
<rest request="post" path="/vms/{vmid}/configuration/"/>
<desc>
Applies the defaults for the configured guest OS type. This is
primarily for getting sane settings straight after creating a
new VM, but it can also be applied later.
<note>
This is primarily a shortcut, centralizing the tedious job of
getting the recommended settings and translating them into
settings updates. The settings are made at the end of the call,
but not saved.
</note>
<result name="E_FAIL">
General error.
</result>
<result name="VBOX_E_INVALID_VM_STATE">
The machine is in invalid state.
</result>
<result name="VBOX_E_OBJECT_IN_USE">
Some of the applied objects already exist. The method has been
called to already configured machine.
</result>
</desc>
<param name="flags" type="wstring" dir="in">
<desc>
Additional flags, to be defined later.
</desc>
</param>
</method>
<method name="changeEncryption" wrap-hint-server="limitedcaller">
<desc>
Starts encryption of this VM. This means that the stored data of the VM is encrypted.
Please note that the results can be either returned straight away,
or later as the result of the background operation via the object
returned via the @a progress parameter.
<result name="VBOX_E_NOT_SUPPORTED">
Encryption is not supported for various reasons e.g. unsupported cipher.
</result>
</desc>
<param name="currentPassword" type="wstring" dir="in">
<desc>
The current password the VM is protected with. Use an empty string to indicate
that the VM isn't encrypted.
</desc>
</param>
<param name="cipher" type="wstring" dir="in">
<desc>
The cipher to use for encryption. An empty string indicates no encryption for the
result.
</desc>
</param>
<param name="newPassword" type="wstring" dir="in">
<desc>
The new password the VM should be protected with. An empty password and password ID
will result in the VM being encrypted with the current password.
</desc>
</param>
<param name="newPasswordId" type="wstring" dir="in">
<desc>The ID of the new password when unlocking the VM.</desc>
</param>
<param name="force" type="boolean" dir="in">
<desc>
Force reencryption of the data if just password is changed.
Otherwise, if data already encrypted and cipher doesn't changed
only the password is changed.
</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="getEncryptionSettings" const="yes" wrap-hint-server="limitedcaller">
<desc>
Returns the encryption settings for this VM.
<result name="VBOX_E_NOT_SUPPORTED">
Encryption is not configured for this VM.
</result>
</desc>
<param name="cipher" type="wstring" dir="out">
<desc>The cipher used for encryption.</desc>
</param>
<param name="passwordId" type="wstring" dir="out">
<desc>The ID of the password when unlocking the VM.</desc>
</param>
</method>
<method name="checkEncryptionPassword" const="yes" wrap-hint-server="limitedcaller">
<desc>
Checks whether the supplied password is correct for the VM.
<result name="VBOX_E_NOT_SUPPORTED">
Encryption is not configured for this VM.
</result>
<result name="VBOX_E_PASSWORD_INCORRECT">
The given password is incorrect.
</result>
</desc>
<param name="password" type="wstring" dir="in">
<desc>The password to check.</desc>
</param>
</method>
<method name="addEncryptionPassword" wrap-hint-server="limitedcaller">
<desc>
Adds a password used for encryption. Updates the accesibility
state if password used the VM encryption.
<result name="VBOX_E_PASSWORD_INCORRECT">
The password provided wasn't correct for the VM using the provided
ID.
</result>
</desc>
<param name="id" type="wstring" dir="in">
<desc>
The identifier used for the password. Must match the identifier
used when the encrypted VM was created.
</desc>
</param>
<param name="password" type="wstring" dir="in">
<desc>The password.</desc>
</param>
</method>
<method name="addEncryptionPasswords" wrap-hint-server="limitedcaller">
<desc>
Adds passwords used for encryption. Updates the accesibility
state if the list contains password used the VM encryption.
<result name="VBOX_E_PASSWORD_INCORRECT">
The password provided wasn't correct for the VM using the provided
ID.
</result>
<result name="E_INVALIDARG">
Id and passwords arrays have different size.
</result>
</desc>
<param name="ids" type="wstring" dir="in" safearray="yes">
<desc>
List of identifiers for the passwords. Must match the identifier
used when the encrypted VM was created.
</desc>
</param>
<param name="passwords" type="wstring" dir="in" safearray="yes">
<desc>List of passwords.</desc>
</param>
</method>
<method name="removeEncryptionPassword" wrap-hint-server="limitedcaller,passcaller">
<desc>
Removes a password used for the VM encryption/decryption.
The password can be removed only if the VM is powered off.
Removing the password causes the VM goes to the inaccessible
state and the password must be provided again.
<note>
If machine becomes inaccessible all passwords are purged.
One has to add required passwords again using either
<link to="IMachine::addEncryptionPassword"/> or
<link to="IMachine::addEncryptionPasswords"/> methods.
</note>
</desc>
<result name="VBOX_E_INVALID_VM_STATE">
The VM is not in proper state e.g powered on.
</result>
<param name="id" type="wstring" dir="in">
<desc>
The identifier used for the password. Must match the identifier
used when the encrypted VM was created.
</desc>
</param>
</method>
<method name="clearAllEncryptionPasswords" wrap-hint-server="limitedcaller,passcaller">
<desc>
Clears all provided VM passwords.
The passwords can be removed only if the VM is powered off.
Removing the passwords causes the VM goes to the inaccessible
state and the password must be provided again.
</desc>
<result name="VBOX_E_INVALID_VM_STATE">
The VM is not in proper state e.g powered on.
</result>
</method>
</interface>
<interface
name="IEmulatedUSB" extends="$unknown"
uuid="6e253ee8-477a-2497-6759-88b8292a5af0"
wsmap="managed"
reservedMethods="4" reservedAttributes="4"
>
<desc>
Manages emulated USB devices.
</desc>
<method name="webcamAttach">
<desc>
Attaches the emulated USB webcam to the VM, which will use a host video capture device.
</desc>
<param name="path" type="wstring" dir="in">
<desc>The host path of the capture device to use.</desc>
</param>
<param name="settings" type="wstring" dir="in">
<desc>Optional settings.</desc>
</param>
</method>
<method name="webcamDetach">
<desc>
Detaches the emulated USB webcam from the VM
</desc>
<param name="path" type="wstring" dir="in">
<desc>The host path of the capture device to detach.</desc>
</param>
</method>
<attribute name="webcams" type="wstring" safearray="yes" readonly="yes">
<desc>Lists attached virtual webcams.</desc>
</attribute>
</interface>
<!--
// IConsole
/////////////////////////////////////////////////////////////////////////
-->
<interface
name="IVRDEServerInfo" extends="$unknown"
uuid="c39ef4d6-7532-45e8-96da-eb5986ae76e4"
wsmap="struct"
rest="managed"
reservedAttributes="8"
>
<desc>
Contains information about the remote desktop (VRDE) server capabilities and status.
This is used in the <link to="IConsole::VRDEServerInfo" /> attribute.
</desc>
<attribute name="active" type="boolean" readonly="yes">
<desc>
Whether the remote desktop connection is active.
</desc>
</attribute>
<attribute name="port" type="long" readonly="yes">
<desc>
VRDE server port number. If this property is equal to <tt>0</tt>, then
the VRDE server failed to start, usually because there are no free IP
ports to bind to. If this property is equal to <tt>-1</tt>, then the VRDE
server has not yet been started.
</desc>
</attribute>
<attribute name="numberOfClients" type="unsigned long" readonly="yes">
<desc>
How many times a client connected.
</desc>
</attribute>
<attribute name="beginTime" type="long long" readonly="yes">
<desc>
When the last connection was established, in milliseconds since 1970-01-01 UTC.
</desc>
</attribute>
<attribute name="endTime" type="long long" readonly="yes">
<desc>
When the last connection was terminated or the current time, if
connection is still active, in milliseconds since 1970-01-01 UTC.
</desc>
</attribute>
<attribute name="bytesSent" type="long long" readonly="yes">
<desc>
How many bytes were sent in last or current, if still active, connection.
</desc>
</attribute>
<attribute name="bytesSentTotal" type="long long" readonly="yes">
<desc>
How many bytes were sent in all connections.
</desc>
</attribute>
<attribute name="bytesReceived" type="long long" readonly="yes">
<desc>
How many bytes were received in last or current, if still active, connection.
</desc>
</attribute>
<attribute name="bytesReceivedTotal" type="long long" readonly="yes">
<desc>
How many bytes were received in all connections.
</desc>
</attribute>
<attribute name="user" type="wstring" readonly="yes">
<desc>
Login user name supplied by the client.
</desc>
</attribute>
<attribute name="domain" type="wstring" readonly="yes">
<desc>
Login domain name supplied by the client.
</desc>
</attribute>
<attribute name="clientName" type="wstring" readonly="yes">
<desc>
The client name supplied by the client.
</desc>
</attribute>
<attribute name="clientIP" type="wstring" readonly="yes">
<desc>
The IP address of the client.
</desc>
</attribute>
<attribute name="clientVersion" type="unsigned long" readonly="yes">
<desc>
The client software version number.
</desc>
</attribute>
<attribute name="encryptionStyle" type="unsigned long" readonly="yes">
<desc>
Public key exchange method used when connection was established.
Values: 0 - RDP4 public key exchange scheme.
1 - X509 certificates were sent to client.
</desc>
</attribute>
</interface>
<interface
name="IConsole" extends="$unknown"
uuid="6ac83d89-6ee7-4e33-8ae6-b257b2e81be8"
wsmap="managed"
rest="managed"
reservedMethods="8" reservedAttributes="8"
>
<desc>
The IConsole interface represents an interface to control virtual
machine execution.
A console object gets created when a machine has been locked for a
particular session (client process) using <link to="IMachine::lockMachine" />
or <link to="IMachine::launchVMProcess"/>. The console object can
then be found in the session's <link to="ISession::console" /> attribute.
Methods of the IConsole interface allow the caller to query the current
virtual machine execution state, pause the machine or power it down, save
the machine state or take a snapshot, attach and detach removable media
and so on.
<see><link to="ISession"/></see>
</desc>
<attribute name="machine" type="IMachine" readonly="yes" rest="uuid">
<desc>
Machine object for this console session.
<note>
This is a convenience property, it has the same value as
<link to="ISession::machine"/> of the corresponding session
object.
</note>
</desc>
</attribute>
<attribute name="state" type="MachineState" readonly="yes">
<desc>
Current execution state of the machine.
<note>
This property always returns the same value as the corresponding
property of the IMachine object for this console session.
For the process that owns (executes) the VM, this is the
preferable way of querying the VM state, because no IPC
calls are made.
</note>
</desc>
</attribute>
<attribute name="guest" type="IGuest" readonly="yes">
<desc>Guest object.</desc>
</attribute>
<attribute name="keyboard" type="IKeyboard" readonly="yes">
<desc>
Virtual keyboard object.
<note>
If the machine is not running, any attempt to use
the returned object will result in an error.
</note>
</desc>
</attribute>
<attribute name="mouse" type="IMouse" readonly="yes">
<desc>
Virtual mouse object.
<note>
If the machine is not running, any attempt to use
the returned object will result in an error.
</note>
</desc>
</attribute>
<attribute name="display" type="IDisplay" readonly="yes">
<desc>Virtual display object.
<note>
If the machine is not running, any attempt to use
the returned object will result in an error.
</note>
</desc>
</attribute>
<attribute name="debugger" type="IMachineDebugger" readonly="yes">
<desc>Debugging interface.</desc>
</attribute>
<attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
<desc>
Collection of USB devices currently attached to the virtual
USB controller.
<note>
The collection is empty if the machine is not running.
</note>
</desc>
</attribute>
<attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
<desc>
List of USB devices currently attached to the remote VRDE client.
Once a new device is physically attached to the remote host computer,
it appears in this list and remains there until detached.
</desc>
</attribute>
<attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
<desc>
Collection of shared folders for the current session. These folders
are called transient shared folders because they are available to the
guest OS running inside the associated virtual machine only for the
duration of the session (as opposed to
<link to="IMachine::sharedFolders"/> which represent permanent shared
folders). When the session is closed (e.g. the machine is powered down),
these folders are automatically discarded.
New shared folders are added to the collection using
<link to="#createSharedFolder"/>. Existing shared folders can be
removed using <link to="#removeSharedFolder"/>.
</desc>
</attribute>
<attribute name="VRDEServerInfo" type="IVRDEServerInfo" readonly="yes">
<desc>
Interface that provides information on Remote Desktop Extension (VRDE) connection.
</desc>
</attribute>
<attribute name="eventSource" type="IEventSource" readonly="yes">
<desc>
Event source for console events.
</desc>
</attribute>
<attribute name="attachedPCIDevices" type="IPCIDeviceAttachment" readonly="yes" safearray="yes">
<desc>Array of PCI devices attached to this machine.</desc>
</attribute>
<attribute name="useHostClipboard" type="boolean">
<desc>
Whether the guest clipboard should be connected to the host one or
whether it should only be allowed access to the VRDE clipboard. This
setting may not affect existing guest clipboard connections which
are already connected to the host clipboard.
</desc>
</attribute>
<attribute name="emulatedUSB" type="IEmulatedUSB" readonly="yes">
<desc>
Interface that manages emulated USB devices.
</desc>
</attribute>
<method name="powerUp">
<rest request="post" path="/vms/{vmid}/console/actions/"/>
<desc>
Starts the virtual machine execution using the current machine
state (that is, its current execution state, current settings and
current storage devices).
<note>
This method is only useful for front-ends that want to actually
execute virtual machines in their own process (like the VirtualBox
or VBoxSDL front-ends). Unless you are intending to write such a
front-end, do not call this method. If you simply want to
start virtual machine execution using one of the existing front-ends
(for example the VirtualBox GUI or headless server), use
<link to="IMachine::launchVMProcess"/> instead; these
front-ends will power up the machine automatically for you.
</note>
If the machine is powered off or aborted, the execution will
start from the beginning (as if the real hardware were just
powered on).
If the machine is in the <link to="MachineState_Saved"/> state or the
<link to="MachineState_AbortedSaved"/> state it will continue its
execution from the point where the state was saved.
If the machine <link to="IMachine::teleporterEnabled"/> property is
enabled on the machine being powered up, the machine will wait for an
incoming teleportation in the <link to="MachineState_TeleportingIn"/>
state. The returned progress object will have at least three
operations where the last three are defined as: (1) powering up and
starting TCP server, (2) waiting for incoming teleportations, and
(3) perform teleportation. These operations will be reflected as the
last three operations of the progress objected returned by
<link to="IMachine::launchVMProcess"/> as well.
<see><link to="IMachine::saveState"/></see>
<result name="VBOX_E_INVALID_VM_STATE">
Virtual machine already running.
</result>
<result name="VBOX_E_HOST_ERROR">
Host interface does not exist or name not set.
</result>
<result name="VBOX_E_FILE_ERROR">
Invalid saved state file.
</result>
</desc>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="powerUpPaused">
<rest request="post" path="/vms/{vmid}/console/actions/"/>
<desc>
Identical to powerUp except that the VM will enter the
<link to="MachineState_Paused"/> state, instead of
<link to="MachineState_Running"/>.
<see><link to="#powerUp"/></see>
<result name="VBOX_E_INVALID_VM_STATE">
Virtual machine already running.
</result>
<result name="VBOX_E_HOST_ERROR">
Host interface does not exist or name not set.
</result>
<result name="VBOX_E_FILE_ERROR">
Invalid saved state file.
</result>
</desc>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="powerDown">
<rest request="post" path="/vms/{vmid}/console/actions/"/>
<desc>
Initiates the power down procedure to stop the virtual machine
execution.
The completion of the power down procedure is tracked using the returned
IProgress object. After the operation is complete, the machine will go
to the PoweredOff state.
<result name="VBOX_E_INVALID_VM_STATE">
Virtual machine must be Running, Paused or Stuck to be powered down.
</result>
</desc>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="reset">
<rest request="post" path="/vms/{vmid}/console/actions/"/>
<desc>Resets the virtual machine.
<result name="VBOX_E_INVALID_VM_STATE">
Virtual machine not in Running state.
</result>
<result name="VBOX_E_VM_ERROR">
Virtual machine error in reset operation.
</result>
</desc>
</method>
<method name="pause">
<rest request="post" path="/vms/{vmid}/console/actions/"/>
<desc>Pauses the virtual machine execution.
<result name="VBOX_E_INVALID_VM_STATE">
Virtual machine not in Running state.
</result>
<result name="VBOX_E_VM_ERROR">
Virtual machine error in suspend operation.
</result>
</desc>
</method>
<method name="resume">
<rest request="post" path="/vms/{vmid}/console/actions/"/>
<desc>Resumes the virtual machine execution.
<result name="VBOX_E_INVALID_VM_STATE">
Virtual machine not in Paused state.
</result>
<result name="VBOX_E_VM_ERROR">
Virtual machine error in resume operation.
</result>
</desc>
</method>
<method name="powerButton">
<rest request="post" path="/vms/{vmid}/console/actions/"/>
<desc>Sends the ACPI power button event to the guest.
<result name="VBOX_E_INVALID_VM_STATE">
Virtual machine not in Running state.
</result>
<result name="VBOX_E_PDM_ERROR">
Controlled power off failed.
</result>
</desc>
</method>
<method name="sleepButton">
<rest request="post" path="/vms/{vmid}/console/actions/"/>
<desc>Sends the ACPI sleep button event to the guest.
<result name="VBOX_E_INVALID_VM_STATE">
Virtual machine not in Running state.
</result>
<result name="VBOX_E_PDM_ERROR">
Sending sleep button event failed.
</result>
</desc>
</method>
<method name="getPowerButtonHandled">
<desc>Checks if the last power button event was handled by guest.
<result name="VBOX_E_PDM_ERROR">
Checking if the event was handled by the guest OS failed.
</result>
</desc>
<param name="handled" type="boolean" dir="return"/>
</method>
<method name="getGuestEnteredACPIMode">
<desc>Checks if the guest entered the ACPI mode G0 (working) or
G1 (sleeping). If this method returns @c false, the guest will
most likely not respond to external ACPI events.
<result name="VBOX_E_INVALID_VM_STATE">
Virtual machine not in Running state.
</result>
</desc>
<param name="entered" type="boolean" dir="return"/>
</method>
<method name="getDeviceActivity">
<desc>
Gets the current activity type of given devices or device groups.
<result name="E_INVALIDARG">
Invalid device type.
</result>
</desc>
<param name="type" type="DeviceType" safearray="yes" dir="in"/>
<param name="activity" type="DeviceActivity" safearray="yes" dir="return"/>
</method>
<method name="attachUSBDevice">
<rest request="post" path="/vms/{vmid}/configuration/"/>
<desc>
Attaches a host USB device with the given UUID to the
USB controller of the virtual machine.
The device needs to be in one of the following states:
<link to="USBDeviceState_Busy"/>,
<link to="USBDeviceState_Available"/> or
<link to="USBDeviceState_Held"/>,
otherwise an error is immediately returned.
When the device state is
<link to="USBDeviceState_Busy">Busy</link>, an error may also
be returned if the host computer refuses to release it for some reason.
<see><link to="IUSBDeviceFilters::deviceFilters"/>,
<link to="USBDeviceState"/></see>
<result name="VBOX_E_INVALID_VM_STATE">
Virtual machine state neither Running nor Paused.
</result>
<result name="VBOX_E_PDM_ERROR">
Virtual machine does not have a USB controller.
</result>
</desc>
<param name="id" type="uuid" mod="string" dir="in">
<desc>UUID of the host USB device to attach.</desc>
</param>
<param name="captureFilename" type="wstring" dir="in">
<desc>Filename to capture the USB traffic to.</desc>
</param>
</method>
<method name="detachUSBDevice">
<rest request="post" path="/vms/{vmid}/configuration/"/>
<desc>
Detaches an USB device with the given UUID from the USB controller
of the virtual machine.
After this method succeeds, the VirtualBox server re-initiates
all USB filters as if the device were just physically attached
to the host, but filters of this machine are ignored to avoid
a possible automatic re-attachment.
<see><link to="IUSBDeviceFilters::deviceFilters"/>,
<link to="USBDeviceState"/></see>
<result name="VBOX_E_PDM_ERROR">
Virtual machine does not have a USB controller.
</result>
<result name="E_INVALIDARG">
USB device not attached to this virtual machine.
</result>
</desc>
<param name="id" type="uuid" mod="string" dir="in">
<desc>UUID of the USB device to detach.</desc>
</param>
<param name="device" type="IUSBDevice" dir="return">
<desc>Detached USB device.</desc>
</param>
</method>
<method name="findUSBDeviceByAddress">
<rest request="get" path="/vms/{vmid}/configuration/"/>
<desc>
Searches for a USB device with the given host address.
<result name="VBOX_E_OBJECT_NOT_FOUND">
Given @c name does not correspond to any USB device.
</result>
<see><link to="IUSBDevice::address"/></see>
</desc>
<param name="name" type="wstring" dir="in">
<desc>
Address of the USB device (as assigned by the host) to
search for.
</desc>
</param>
<param name="device" type="IUSBDevice" dir="return">
<desc>Found USB device object.</desc>
</param>
</method>
<method name="findUSBDeviceById">
<rest request="get" path="/vms/{vmid}/configuration/"/>
<desc>
Searches for a USB device with the given UUID.
<result name="VBOX_E_OBJECT_NOT_FOUND">
Given @c id does not correspond to any USB device.
</result>
<see><link to="IUSBDevice::id"/></see>
</desc>
<param name="id" type="uuid" mod="string" dir="in">
<desc>UUID of the USB device to search for.</desc>
</param>
<param name="device" type="IUSBDevice" dir="return">
<desc>Found USB device object.</desc>
</param>
</method>
<method name="createSharedFolder">
<rest request="post" path="/vms/{vmid}/console/methods/"/>
<desc>
Creates a transient new shared folder by associating the given logical
name with the given host path, adds it to the collection of shared
folders and starts sharing it. Refer to the description of
<link to="ISharedFolder"/> to read more about logical names.
<result name="VBOX_E_INVALID_VM_STATE">
Virtual machine is in the Saved or AbortedSaved state or currently changing state.
</result>
<result name="VBOX_E_FILE_ERROR">
Shared folder already exists or not accessible.
</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>Unique logical name of the shared folder.</desc>
</param>
<param name="hostPath" type="wstring" dir="in">
<desc>Full path to the shared folder in the host file system.</desc>
</param>
<param name="writable" type="boolean" dir="in">
<desc>Whether the share is writable or readonly</desc>
</param>
<param name="automount" type="boolean" dir="in">
<desc>Whether the share gets automatically mounted by the guest
or not.</desc>
</param>
<param name="autoMountPoint" type="wstring" dir="in">
<desc>Where the guest should automatically mount the folder, if possible.
For Windows and OS/2 guests this should be a drive letter, while other
guests it should be a absolute directory.
</desc>
</param>
</method>
<method name="removeSharedFolder">
<rest request="post" path="/vms/{vmid}/console/methods/"/>
<desc>
Removes a transient shared folder with the given name previously
created by <link to="#createSharedFolder"/> from the collection of
shared folders and stops sharing it.
<result name="VBOX_E_INVALID_VM_STATE">
Virtual machine is in the Saved or AbortedSaved state or currently changing state.
</result>
<result name="VBOX_E_FILE_ERROR">
Shared folder does not exists.
</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>Logical name of the shared folder to remove.</desc>
</param>
</method>
<method name="teleport">
<desc>
Teleport the VM to a different host machine or process.
@todo Explain the details.
<result name="VBOX_E_INVALID_VM_STATE">
Virtual machine not running or paused.
</result>
</desc>
<param name="hostname" type="wstring" dir="in">
<desc>The name or IP of the host to teleport to.</desc>
</param>
<param name="tcpport" type="unsigned long" dir="in">
<desc>The TCP port to connect to (1..65535).</desc>
</param>
<param name="password" type="wstring" dir="in">
<desc>The password.</desc>
</param>
<param name="maxDowntime" type="unsigned long" dir="in">
<desc>
The maximum allowed downtime given as milliseconds. 0 is not a valid
value. Recommended value: 250 ms.
The higher the value is, the greater the chance for a successful
teleportation. A small value may easily result in the teleportation
process taking hours and eventually fail.
<note>
The current implementation treats this a guideline, not as an
absolute rule.
</note>
</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="addEncryptionPassword">
<rest request="post" path="/vms/{vmid}/console/methods/"/>
<desc>
Adds a password used for encryption/decryption.
<result name="VBOX_E_PASSWORD_INCORRECT">
The password provided wasn't correct for at least one disk using the provided
ID.
</result>
</desc>
<param name="id" type="wstring" dir="in">
<desc>
The identifier used for the password. Must match the identifier
used when the encrypted medium was created.
</desc>
</param>
<param name="password" type="wstring" dir="in">
<desc>The password.</desc>
</param>
<param name="clearOnSuspend" type="boolean" dir="in">
<desc>
Flag whether to clear the password on VM suspend (due to a suspending host
for example). The password must be supplied again before the VM can resume.
</desc>
</param>
</method>
<method name="addEncryptionPasswords">
<rest request="post" path="/vms/{vmid}/console/methods/"/>
<desc>
Adds a password used for encryption/decryption.
<result name="VBOX_E_PASSWORD_INCORRECT">
The password provided wasn't correct for at least one disk using the provided
ID.
</result>
</desc>
<param name="ids" type="wstring" dir="in" safearray="yes">
<desc>
List of identifiers for the passwords. Must match the identifier
used when the encrypted medium was created.
</desc>
</param>
<param name="passwords" type="wstring" dir="in" safearray="yes">
<desc>List of passwords.</desc>
</param>
<param name="clearOnSuspend" type="boolean" dir="in">
<desc>
Flag whether to clear the given passwords on VM suspend (due to a suspending host
for example). The passwords must be supplied again before the VM can resume.
</desc>
</param>
</method>
<method name="removeEncryptionPassword">
<rest request="post" path="/vms/{vmid}/console/methods/"/>
<desc>
Removes a password used for hard disk encryption/decryption from
the running VM. As soon as the medium requiring this password
is accessed the VM is paused with an error and the password must be
provided again.
</desc>
<param name="id" type="wstring" dir="in">
<desc>
The identifier used for the password. Must match the identifier
used when the encrypted medium was created.
</desc>
</param>
</method>
<method name="clearAllEncryptionPasswords">
<rest request="post" path="/vms/{vmid}/console/methods/"/>
<desc>Clears all provided supplied encryption passwords.</desc>
</method>
</interface>
<!--
// IHost
/////////////////////////////////////////////////////////////////////////
-->
<enum
name="HostNetworkInterfaceMediumType"
uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
>
<!-- Must match NETIFTYPE in netif.h exactly. -->
<desc>
Type of encapsulation. Ethernet encapsulation includes both wired and
wireless Ethernet connections.
<see><link to="IHostNetworkInterface"/></see>
</desc>
<const name="Unknown" value="0">
<desc>
The type of interface cannot be determined.
</desc>
</const>
<const name="Ethernet" value="1">
<desc>
Ethernet frame encapsulation.
</desc>
</const>
<const name="PPP" value="2">
<desc>
Point-to-point protocol encapsulation.
</desc>
</const>
<const name="SLIP" value="3">
<desc>
Serial line IP encapsulation.
</desc>
</const>
</enum>
<enum
name="HostNetworkInterfaceStatus"
uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
>
<!-- Must match NETIFSTATUS in netif.h exactly. -->
<desc>
Current status of the interface.
<see><link to="IHostNetworkInterface"/></see>
</desc>
<const name="Unknown" value="0">
<desc>
The state of interface cannot be determined.
</desc>
</const>
<const name="Up" value="1">
<desc>
The interface is fully operational.
</desc>
</const>
<const name="Down" value="2">
<desc>
The interface is not functioning.
</desc>
</const>
</enum>
<enum
name="HostNetworkInterfaceType"
uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
>
<desc>
Network interface type.
</desc>
<const name="Bridged" value="1"/>
<const name="HostOnly" value="2"/>
</enum>
<interface
name="IHostNetworkInterface" extends="$unknown"
uuid="455f8c45-44a0-a470-ba20-27890b96dba9"
wsmap="managed"
rest="managed"
reservedMethods="2" reservedAttributes="4"
>
<desc>
Represents one of host's network interfaces. IP V6 address and network
mask are strings of 32 hexadecimal digits grouped by four. Groups are
separated by colons.
For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
</desc>
<attribute name="name" type="wstring" readonly="yes">
<desc>Returns the host network interface name.</desc>
</attribute>
<attribute name="shortName" type="wstring" readonly="yes">
<desc>Returns the host network interface short name.</desc>
</attribute>
<attribute name="id" type="uuid" mod="string" readonly="yes">
<desc>Returns the interface UUID.</desc>
</attribute>
<attribute name="networkName" type="wstring" readonly="yes">
<desc>Returns the name of a virtual network the interface gets attached to.</desc>
</attribute>
<attribute name="DHCPEnabled" type="boolean" readonly="yes">
<desc>Specifies whether the DHCP is enabled for the interface.</desc>
</attribute>
<attribute name="IPAddress" type="wstring" readonly="yes">
<desc>Returns the IP V4 address of the interface.</desc>
</attribute>
<attribute name="networkMask" type="wstring" readonly="yes">
<desc>Returns the network mask of the interface.</desc>
</attribute>
<attribute name="IPV6Supported" type="boolean" readonly="yes">
<desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
</attribute>
<attribute name="IPV6Address" type="wstring" readonly="yes">
<desc>Returns the IP V6 address of the interface.</desc>
</attribute>
<attribute name="IPV6NetworkMaskPrefixLength" type="unsigned long" readonly="yes">
<desc>Returns the length IP V6 network mask prefix of the interface.</desc>
</attribute>
<attribute name="hardwareAddress" type="wstring" readonly="yes">
<desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
</attribute>
<attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
<desc>Type of protocol encapsulation used.</desc>
</attribute>
<attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
<desc>Status of the interface.</desc>
</attribute>
<attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
<desc>specifies the host interface type.</desc>
</attribute>
<attribute name="wireless" type="boolean" readonly="yes">
<desc>Specifies whether the interface is wireless.</desc>
</attribute>
<method name="enableStaticIPConfig">
<desc>sets and enables the static IP V4 configuration for the given interface.</desc>
<param name="IPAddress" type="wstring" dir="in">
<desc>
IP address.
</desc>
</param>
<param name="networkMask" type="wstring" dir="in">
<desc>
network mask.
</desc>
</param>
</method>
<method name="enableStaticIPConfigV6">
<desc>sets and enables the static IP V6 configuration for the given interface.</desc>
<param name="IPV6Address" type="wstring" dir="in">
<desc>
IP address.
</desc>
</param>
<param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
<desc>
network mask.
</desc>
</param>
</method>
<method name="enableDynamicIPConfig">
<desc>enables the dynamic IP configuration.</desc>
</method>
<method name="DHCPRediscover">
<desc>refreshes the IP configuration for DHCP-enabled interface.</desc>
</method>
</interface>
<interface
name="IHostVideoInputDevice" extends="$unknown"
uuid="e8c25d4d-ac97-4c16-b3e2-81bd8a57cc27"
wsmap="managed"
rest="managed"
reservedAttributes="4"
>
<desc>
Represents one of host's video capture devices, for example a webcam.
</desc>
<attribute name="name" type="wstring" readonly="yes">
<desc>User friendly name.</desc>
</attribute>
<attribute name="path" type="wstring" readonly="yes">
<desc>The host path of the device.</desc>
</attribute>
<attribute name="alias" type="wstring" readonly="yes">
<desc>An alias which can be used for <link to="IEmulatedUSB::webcamAttach"/></desc>
</attribute>
</interface>
<enum
name="UpdateChannel"
uuid="9f1562a5-e47a-496b-a818-66776f06ce40"
>
<const name="Invalid" value="0">
<desc>No channel specified. Do not use this.</desc>
</const>
<const name="Stable" value="1">
<desc>All stable releases (maintenance and minor releases within the same major release).</desc>
</const>
<const name="All" value="2">
<desc>All stable releases, including major versions.</desc>
</const>
<const name="WithBetas" value="3">
<desc>All stable and major releases, including beta versions.</desc>
</const>
<const name="WithTesting" value="4">
<desc>All stable, major and beta releases, including testing versions.</desc>
</const>
</enum>
<enum
name="UpdateSeverity"
uuid="359a5fee-8a06-4306-8068-2f2dd5cde06f"
>
<const name="Invalid" value="0">
<desc>No severity specified. Do not use this.</desc>
</const>
<const name="Critical" value="1">
<desc>Update contains critical patches.</desc>
</const>
<const name="Major" value="2">
<desc>Update contains a major version.</desc>
</const>
<const name="Minor" value="3">
<desc>Update contains a minor version.</desc>
</const>
<const name="Testing" value="4">
<desc>Update contains a testing version. Use with caution!</desc>
</const>
</enum>
<enum
name="UpdateState"
uuid="6623e363-c892-45f8-80cb-4e8ffd9b4e60"
>
<const name="Invalid" value="0">
<desc>Invalid / not set update state.</desc>
</const>
<const name="Available" value="1">
<desc>An uppdate is available.</desc>
</const>
<const name="NotAvailable" value="2">
<desc>No update available.</desc>
</const>
<const name="Downloading" value="3">
<desc>Update is being downloaded currently.</desc>
</const>
<const name="Downloaded" value="4">
<desc>Update has been successfully downloaded.</desc>
</const>
<const name="Installing" value="5">
<desc>Update is being installed currently.</desc>
</const>
<const name="Installed" value="6">
<desc>Update has been successfully installed.</desc>
</const>
<const name="UserInteraction" value="7">
<desc>Update requires user interaction to continue.</desc>
</const>
<const name="Canceled" value="8">
<desc>Update has been canceled.</desc>
</const>
<const name="Maintenance" value="9">
<desc>Update service currently is in maintenance mode.</desc>
</const>
<const name="Error" value="10">
<desc>An error occurred while updating.</desc>
</const>
</enum>
<interface
name="IUpdateAgent" extends="$unknown"
uuid="c4b1b5f4-8cdf-4923-9ef6-b92476a84109"
wsmap="managed"
reservedMethods="2" reservedAttributes="4"
>
<desc>
Abstract parent interface for handling updateable software components.
</desc>
<method name="checkFor">
<!-- Initially named just "check", but older xcode versions on the Mac have trouble naming interface
functions like this and thus failing to build, sigh. -->
<desc>
Checks for an update.
</desc>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track operation completion.</desc>
</param>
</method>
<method name="download">
<desc>
Downloads the update.
</desc>
<result name="VBOX_E_NOT_SUPPORTED">
Downloading update not supported.
</result>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track operation completion.</desc>
</param>
</method>
<method name="install">
<desc>
Installs the update.
</desc>
<result name="VBOX_E_NOT_SUPPORTED">
Installing update not supported.
</result>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track operation completion.</desc>
</param>
</method>
<method name="rollback">
<desc>
Rolls back installing the update.
</desc>
<result name="VBOX_E_NOT_SUPPORTED">
Rolling back update not supported.
</result>
</method>
<attribute name="name" type="wstring" readonly="yes">
<desc>
Name of the update component.
</desc>
</attribute>
<attribute name="eventSource" type="IEventSource" readonly="yes">
<desc>
Event source for update agent events.
</desc>
</attribute>
<attribute name="order" type="unsigned long" readonly="yes">
<desc>
Order hint the update component needs to run at, in conjunction with other update components.
</desc>
<result name="0">
No order preferred / disabled.
</result>
<note>
Lower numbers mean higher priority. 0 means no order or disabled.
</note>
</attribute>
<attribute name="dependsOn" type="wstring" readonly="yes" safearray="yes">
<desc>
Array of other update component names this component depends on before being able to get installed.
</desc>
<note>
Ordered entries, highest priority first. No dependencies when array is empty.
Dependency entries also can contain a minimum version number after the update component name, separated by an "@",
e.g. "Guest Additions@7.1.0_BETA2".
</note>
</attribute>
<attribute name="version" type="wstring" readonly="yes">
<result name="VBOX_E_INVALID_OBJECT_STATE">
Result not available yet.
</result>
<desc>
Version the update contains.
</desc>
</attribute>
<attribute name="downloadUrl" type="wstring" readonly="yes">
<result name="VBOX_E_INVALID_OBJECT_STATE">
Result not available yet.
</result>
<desc>
Download URL of the update.
</desc>
</attribute>
<attribute name="webUrl" type="wstring" readonly="yes">
<result name="VBOX_E_INVALID_OBJECT_STATE">
Result not available yet.
</result>
<desc>
Web URL of the update.
</desc>
</attribute>
<attribute name="releaseNotes" type="wstring" readonly="yes">
<result name="VBOX_E_INVALID_OBJECT_STATE">
Result not available yet.
</result>
<desc>
Release notes of the update.
</desc>
</attribute>
<attribute name="enabled" type="boolean" readonly="no">
<desc>
Enables or disables the update component.
</desc>
</attribute>
<attribute name="hidden" type="boolean" readonly="yes">
<desc>
Whether the update component shall be hidden from the user or not.
</desc>
</attribute>
<attribute name="state" type="UpdateState" readonly="yes">
<desc>
Returns the current update state.
</desc>
</attribute>
<attribute name="checkFrequency" type="unsigned long" readonly="no">
<desc>
The update check frequency (in seconds).
</desc>
</attribute>
<attribute name="channel" type="UpdateChannel" readonly="no">
<desc>
Update channel to use for checking for updates.
</desc>
</attribute>
<attribute name="repositoryURL" type="wstring" readonly="no">
<desc>
Update repository URL to use for retrieving the update.
</desc>
<note>
Only repositories with the https:// URL scheme are allowed.
</note>
</attribute>
<attribute name="lastCheckDate" type="wstring" readonly="yes">
<desc>
Date of last update check.
</desc>
<note>
In ISO 8601 format (e.g. 2020-05-11T21:13:39.348416000Z).
</note>
</attribute>
<attribute name="checkCount" type="unsigned long" readonly="yes">
<desc>
How many times the update check has happened already.
</desc>
</attribute>
<attribute name="isCheckNeeded" type="boolean" readonly="yes">
<desc>
Returns @c TRUE if an update check is needed, or @c FALSE if not.
<note>Compares the system's current date with the last
update check date and currently set check frequency.</note>
</desc>
</attribute>
<attribute name="supportedChannels" type="UpdateChannel" safearray="yes" readonly="yes">
<desc>
Returns a safe array of all supported update channels this agents offers.
</desc>
</attribute>
</interface>
<interface
name="IHostUpdateAgent" extends="IUpdateAgent"
uuid="d782dba7-cd4f-4ace-951a-58321c23e258"
wsmap="managed"
reservedMethods="2" reservedAttributes="4"
>
<desc>
Implementation of the <link to="IUpdateAgent" /> object
for VirtualBox host updates.
</desc>
<note>
If no proxy is explicitly set, the proxy settings from <link to="ISystemProperties" /> will be used.
</note>
<attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/>
</interface>
<interface
name="IHostDrivePartition" extends="$unknown"
uuid="4f529a14-ace3-407c-9c49-066e8e8027f0"
wsmap="struct"
rest="managed"
>
<desc>
The IHostDrivePartition interface represents the partition of the host drive.
To enumerate all available drives partitions in the host, use the
<link to="IHost::hostDrives"/> attribute.
</desc>
<attribute name="number" type="unsigned long" readonly="yes">
<desc>
The number of the partition. Represents the system number of the
partition, e.g. /dev/sdX in the linux, where X is the number
returned.
</desc>
</attribute>
<attribute name="size" type="long long" readonly="yes">
<desc>
The partition size in bytes.
</desc>
</attribute>
<attribute name="start" type="long long" readonly="yes">
<desc>
The start byte offset of this partition in bytes relative to the
beginning of the hard disk.
</desc>
</attribute>
<attribute name="type" type="PartitionType" readonly="yes">
<desc>
A translation of <link to="IHostDrivePartition::typeMBR"/> and
<link to="IHostDrivePartition::typeUuid"/> when possible, otherwise
set to <link to="PartitionType_Unknown" />.
</desc>
</attribute>
<attribute name="active" type="boolean" readonly="yes">
<desc>
The partition is bootable when TRUE.
</desc>
</attribute>
<!-- MBR: -->
<attribute name="typeMBR" type="unsigned long" readonly="yes">
<desc>
The raw MBR partition type, 0 for non-MBR disks.
</desc>
</attribute>
<attribute name="startCylinder" type="unsigned long" readonly="yes">
<desc>
The cylinder (0..1023) of the first sector in the partition on an MBR disk, zero for not an MBR disk.
</desc>
</attribute>
<attribute name="startHead" type="unsigned long" readonly="yes">
<desc>
The head (0..255) of the first sector in the partition on an MBR disk, zero for not an MBR disk.
</desc>
</attribute>
<attribute name="startSector" type="unsigned long" readonly="yes">
<desc>
The sector (0..63) of the first sector in the partition on an MBR disk, zero for not an MBR disk.
</desc>
</attribute>
<attribute name="endCylinder" type="unsigned long" readonly="yes">
<desc>
The cylinder (0..1023) of the last sector (inclusive) in the partition on an MBR disk, zero for not an MBR disk.
</desc>
</attribute>
<attribute name="endHead" type="unsigned long" readonly="yes">
<desc>
The head (0..255) of the last sector (inclusive) in the partition on an MBR disk, zero for not an MBR disk.
</desc>
</attribute>
<attribute name="endSector" type="unsigned long" readonly="yes">
<desc>
The sector (1..63) of the last sector (inclusive) in the partition on an MBR disk, zero for not an MBR disk.
</desc>
</attribute>
<!-- GPT: -->
<attribute name="typeUuid" type="uuid" mod="string" readonly="yes">
<!-- @todo r=bird: Not sure about the casing here. typeUUID Klaus? -->
<desc>
The partition type when GUID partitioning scheme is used, NULL UUID value for not a GPT disks.
</desc>
</attribute>
<attribute name="uuid" type="uuid" mod="string" readonly="yes">
<desc>
The GUID of the partition when GUID partitioning scheme is used, NULL UUID value for not a GPT disks.
</desc>
</attribute>
<attribute name="name" type="wstring" readonly="yes">
<desc>
The name of the partition if GPT partitioning is used, empty if not a GPT disk.
</desc>
</attribute>
</interface>
<interface
name="IHostDrive" extends="$unknown"
uuid="70e2e0c3-332c-4d72-b822-2db16e2cb31b"
wsmap="managed"
rest="managed"
>
<desc>
The IHostDrive interface represents the drive of the physical machine.
It is not a complete medium description and, therefore, it is not IMedium
based. The interface is used to get information about a host drive and
its partitioning.
<note>
The object operates in limited mode if the user cannot open the drive
and parse the partition table. In limited mode on the
<link to="IHostDrive::drivePath" /> and <link to="IHostDrive::model" />
attributes can be accessed, the rest will fail with E_ACCESSDENIED.
</note>
</desc>
<attribute name="drivePath" type="wstring" readonly="yes" wrap-hint-server="limitedcaller">
<desc>
The path of the drive. Platform dependent.
</desc>
</attribute>
<attribute name="partitioningType" type="PartitioningType" readonly="yes">
<desc>
The scheme of the partitions the disk has.
</desc>
</attribute>
<attribute name="uuid" type="uuid" mod="string" readonly="yes">
<desc>
The GUID of the disk.
</desc>
</attribute>
<attribute name="sectorSize" type="unsigned long" readonly="yes">
<desc>
The size of the sector in bytes.
</desc>
</attribute>
<attribute name="size" type="long long" readonly="yes">
<desc>
The size of the disk in bytes.
</desc>
</attribute>
<attribute name="model" type="wstring" readonly="yes" wrap-hint-server="limitedcaller">
<desc>
The model string of the drive if available.
</desc>
</attribute>
<attribute name="partitions" type="IHostDrivePartition" readonly="yes" safearray="yes">
<desc>List of partitions available on the host drive.</desc>
</attribute>
</interface>
<interface
name="IHost" extends="$unknown"
uuid="e54f6256-97a7-4947-8a78-10c013ddf4b8"
wsmap="managed"
rest="managed"
reservedMethods="6" reservedAttributes="12"
>
<desc>
The IHost interface represents the physical machine that this VirtualBox
installation runs on.
An object implementing this interface is returned by the
<link to="IVirtualBox::host" /> attribute. This interface contains
read-only information about the host's physical hardware (such as what
processors and disks are available, what the host operating system is,
and so on) and also allows for manipulating some of the host's hardware,
such as global USB device filters and host interface networking.
</desc>
<attribute name="DVDDrives" type="IMedium" readonly="yes" safearray="yes">
<desc>List of DVD drives available on the host.</desc>
</attribute>
<attribute name="floppyDrives" type="IMedium" readonly="yes" safearray="yes">
<desc>List of floppy drives available on the host.</desc>
</attribute>
<attribute name="audioDevices" type="IHostAudioDevice" readonly="yes" safearray="yes">
<desc>List of audio devices currently available on the host.
<result name="E_NOTIMPL">
This attribute is not implemented yet.
</result>
</desc>
</attribute>
<attribute name="USBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
<desc>
List of USB devices currently attached to the host.
Once a new device is physically attached to the host computer,
it appears in this list and remains there until detached.
<note>
If USB functionality is not available in the given edition of
VirtualBox, this method will set the result code to @c E_NOTIMPL.
</note>
</desc>
</attribute>
<attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
<desc>
List of USB device filters in action.
When a new device is physically attached to the host computer,
filters from this list are applied to it (in order they are stored
in the list). The first matched filter will determine the
<link to="IHostUSBDeviceFilter::action">action</link>
performed on the device.
Unless the device is ignored by these filters, filters of all
currently running virtual machines
(<link to="IUSBDeviceFilters::deviceFilters"/>) are applied to it.
<note>
If USB functionality is not available in the given edition of
VirtualBox, this method will set the result code to @c E_NOTIMPL.
</note>
<see><link to="IHostUSBDeviceFilter"/>,
<link to="USBDeviceState"/></see>
</desc>
</attribute>
<attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
<desc>List of host network interfaces currently defined on the host.</desc>
</attribute>
<attribute name="nameServers" type="wstring" safearray="yes" readonly="yes">
<desc> The list of nameservers registered in host's name resolving system.</desc>
</attribute>
<attribute name="domainName" type="wstring" readonly="yes">
<desc>Domain name used for name resolving.</desc>
</attribute>
<attribute name="searchStrings" type="wstring" safearray="yes" readonly="yes">
<desc>Search string registered for name resolving.</desc>
</attribute>
<attribute name="processorCount" type="unsigned long" readonly="yes">
<desc>Number of (logical) CPUs installed in the host system.</desc>
</attribute>
<attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
<desc>Number of (logical) CPUs online in the host system.</desc>
</attribute>
<attribute name="processorCoreCount" type="unsigned long" readonly="yes">
<desc>Number of physical processor cores installed in the host system.</desc>
</attribute>
<attribute name="processorOnlineCoreCount" type="unsigned long" readonly="yes">
<desc>Number of physical processor cores online in the host system.</desc>
</attribute>
<attribute name="hostDrives" type="IHostDrive" readonly="yes" safearray="yes">
<desc>List of the host drive available to use in the VirtualBox.</desc>
</attribute>
<method name="getProcessorSpeed">
<desc>Query the (approximate) maximum speed of a specified host CPU in
Megahertz.
</desc>
<param name="cpuId" type="unsigned long" dir="in">
<desc>
Identifier of the CPU.
</desc>
</param>
<param name="speed" type="unsigned long" dir="return">
<desc>
Speed value. 0 is returned if value is not known or @a cpuId is
invalid.
</desc>
</param>
</method>
<method name="getProcessorFeature">
<desc>Query whether a CPU feature is supported or not.</desc>
<param name="feature" type="ProcessorFeature" dir="in">
<desc>
CPU Feature identifier.
</desc>
</param>
<param name="supported" type="boolean" dir="return">
<desc>
Feature is supported or not.
</desc>
</param>
</method>
<method name="getProcessorDescription">
<desc>Query the model string of a specified host CPU.
</desc>
<param name="cpuId" type="unsigned long" dir="in">
<desc>
Identifier of the CPU.
<note>
The current implementation might not necessarily return the
description for this exact CPU.
</note>
</desc>
</param>
<param name="description" type="wstring" dir="return">
<desc>
Model string. An empty string is returned if value is not known or
@a cpuId is invalid.
</desc>
</param>
</method>
<method name="getProcessorCPUIDLeaf">
<desc>
Returns the CPU cpuid information for the specified leaf.
</desc>
<param name="cpuId" type="unsigned long" dir="in">
<desc>
Identifier of the CPU. The CPU most be online.
<note>
The current implementation might not necessarily return the
description for this exact CPU.
</note>
</desc>
</param>
<param name="leaf" type="unsigned long" dir="in">
<desc>
CPUID leaf index (eax).
</desc>
</param>
<param name="subLeaf" type="unsigned long" dir="in">
<desc>
CPUID leaf sub index (ecx). This currently only applies to cache
information on Intel CPUs. Use 0 if retrieving values for
<link to="IMachine::setCPUIDLeaf"/>.
</desc>
</param>
<param name="valEax" type="unsigned long" dir="out">
<desc>
CPUID leaf value for register eax.
</desc>
</param>
<param name="valEbx" type="unsigned long" dir="out">
<desc>
CPUID leaf value for register ebx.
</desc>
</param>
<param name="valEcx" type="unsigned long" dir="out">
<desc>
CPUID leaf value for register ecx.
</desc>
</param>
<param name="valEdx" type="unsigned long" dir="out">
<desc>
CPUID leaf value for register edx.
</desc>
</param>
</method>
<attribute name="memorySize" type="unsigned long" readonly="yes">
<desc>Amount of system memory in megabytes installed in the host system.</desc>
</attribute>
<attribute name="memoryAvailable" type="unsigned long" readonly="yes">
<desc>Available system memory in the host system.</desc>
</attribute>
<attribute name="operatingSystem" type="wstring" readonly="yes">
<desc>Name of the host system's operating system.</desc>
</attribute>
<attribute name="OSVersion" type="wstring" readonly="yes">
<desc>Host operating system's version string.</desc>
</attribute>
<attribute name="UTCTime" type="long long" readonly="yes">
<desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
</attribute>
<attribute name="acceleration3DAvailable" type="boolean" readonly="yes">
<desc>Returns @c true when the host supports 3D hardware acceleration.</desc>
</attribute>
<method name="createHostOnlyNetworkInterface">
<desc>
Creates a new adapter for Host Only Networking.
<result name="E_INVALIDARG">
Host network interface @a name already exists.
</result>
</desc>
<param name="hostInterface" type="IHostNetworkInterface" dir="out">
<desc>
Created host interface object.
</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
<method name="removeHostOnlyNetworkInterface">
<desc>
Removes the given Host Only Networking interface.
<result name="VBOX_E_OBJECT_NOT_FOUND">
No host network interface matching @a id found.
</result>
</desc>
<param name="id" type="uuid" mod="string" dir="in">
<desc>
Adapter GUID.
</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
<method name="createUSBDeviceFilter">
<desc>
Creates a new USB device filter. All attributes except
the filter name are set to empty (any match),
<i>active</i> is @c false (the filter is not active).
The created filter can be added to the list of filters using
<link to="#insertUSBDeviceFilter"/>.
<see><link to="#USBDeviceFilters"/></see>
</desc>
<param name="name" type="wstring" dir="in">
<desc>
Filter name. See <link to="IUSBDeviceFilter::name"/> for more information.
</desc>
</param>
<param name="filter" type="IHostUSBDeviceFilter" dir="return">
<desc>Created filter object.</desc>
</param>
</method>
<method name="insertUSBDeviceFilter">
<desc>
Inserts the given USB device to the specified position
in the list of filters.
Positions are numbered starting from @c 0. If the specified
position is equal to or greater than the number of elements in
the list, the filter is added at the end of the collection.
<note>
Duplicates are not allowed, so an attempt to insert a
filter already in the list is an error.
</note>
<note>
If USB functionality is not available in the given edition of
VirtualBox, this method will set the result code to @c E_NOTIMPL.
</note>
<see><link to="#USBDeviceFilters"/></see>
<result name="VBOX_E_INVALID_OBJECT_STATE">
USB device filter is not created within this VirtualBox instance.
</result>
<result name="E_INVALIDARG">
USB device filter already in list.
</result>
</desc>
<param name="position" type="unsigned long" dir="in">
<desc>Position to insert the filter to.</desc>
</param>
<param name="filter" type="IHostUSBDeviceFilter" dir="in">
<desc>USB device filter to insert.</desc>
</param>
</method>
<method name="removeUSBDeviceFilter">
<desc>
Removes a USB device filter from the specified position in the
list of filters.
Positions are numbered starting from @c 0. Specifying a
position equal to or greater than the number of elements in
the list will produce an error.
<note>
If USB functionality is not available in the given edition of
VirtualBox, this method will set the result code to @c E_NOTIMPL.
</note>
<see><link to="#USBDeviceFilters"/></see>
<result name="E_INVALIDARG">
USB device filter list empty or invalid @a position.
</result>
</desc>
<param name="position" type="unsigned long" dir="in">
<desc>Position to remove the filter from.</desc>
</param>
</method>
<method name="findHostDVDDrive">
<desc>
Searches for a host DVD drive with the given @c name.
<result name="VBOX_E_OBJECT_NOT_FOUND">
Given @c name does not correspond to any host drive.
</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of the host drive to search for</desc>
</param>
<param name="drive" type="IMedium" dir="return">
<desc>Found host drive object</desc>
</param>
</method>
<method name="findHostFloppyDrive">
<desc>
Searches for a host floppy drive with the given @c name.
<result name="VBOX_E_OBJECT_NOT_FOUND">
Given @c name does not correspond to any host floppy drive.
</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of the host floppy drive to search for</desc>
</param>
<param name="drive" type="IMedium" dir="return">
<desc>Found host floppy drive object</desc>
</param>
</method>
<method name="findHostNetworkInterfaceByName">
<desc>
Searches through all host network interfaces for an interface with
the given @c name.
<note>
The method returns an error if the given @c name does not
correspond to any host network interface.
</note>
</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of the host network interface to search for.</desc>
</param>
<param name="networkInterface" type="IHostNetworkInterface" dir="return">
<desc>Found host network interface object.</desc>
</param>
</method>
<method name="findHostNetworkInterfaceById">
<desc>
Searches through all host network interfaces for an interface with
the given GUID.
<note>
The method returns an error if the given GUID does not
correspond to any host network interface.
</note>
</desc>
<param name="id" type="uuid" mod="string" dir="in">
<desc>GUID of the host network interface to search for.</desc>
</param>
<param name="networkInterface" type="IHostNetworkInterface" dir="return">
<desc>Found host network interface object.</desc>
</param>
</method>
<method name="findHostNetworkInterfacesOfType">
<desc>
Searches through all host network interfaces and returns a list of interfaces of the specified type
</desc>
<param name="type" type="HostNetworkInterfaceType" dir="in">
<desc>type of the host network interfaces to search for.</desc>
</param>
<param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
<desc>Found host network interface objects.</desc>
</param>
</method>
<method name="findUSBDeviceById">
<desc>
Searches for a USB device with the given UUID.
<result name="VBOX_E_OBJECT_NOT_FOUND">
Given @c id does not correspond to any USB device.
</result>
<see><link to="IUSBDevice::id"/></see>
</desc>
<param name="id" type="uuid" mod="string" dir="in">
<desc>UUID of the USB device to search for.</desc>
</param>
<param name="device" type="IHostUSBDevice" dir="return">
<desc>Found USB device object.</desc>
</param>
</method>
<method name="findUSBDeviceByAddress">
<desc>
Searches for a USB device with the given host address.
<result name="VBOX_E_OBJECT_NOT_FOUND">
Given @c name does not correspond to any USB device.
</result>
<see><link to="IUSBDevice::address"/></see>
</desc>
<param name="name" type="wstring" dir="in">
<desc>
Address of the USB device (as assigned by the host) to
search for.
</desc>
</param>
<param name="device" type="IHostUSBDevice" dir="return">
<desc>Found USB device object.</desc>
</param>
</method>
<method name="generateMACAddress">
<desc>
Generates a valid Ethernet MAC address, 12 hexadecimal characters.
</desc>
<param name="address" type="wstring" dir="return">
<desc>New Ethernet MAC address.</desc>
</param>
</method>
<attribute name="videoInputDevices" type="IHostVideoInputDevice" safearray="yes" readonly="yes">
<desc>List of currently available host video capture devices.</desc>
</attribute>
<method name="addUSBDeviceSource">
<desc>
Adds a new USB device source.
</desc>
<param name="backend" type="wstring" dir="in">
<desc>The backend to use as the new device source.</desc>
</param>
<param name="id" type="wstring" dir="in">
<desc>Unique ID to identify the source.</desc>
</param>
<param name="address" type="wstring" dir="in">
<desc>
Address to use, the format is dependent on the backend.
For USB/IP backends for example the notation is host[:port].
</desc>
</param>
<param name="propertyNames" type="wstring" safearray="yes" dir="in">
<desc>Array of property names for more detailed configuration. Not used at the moment.</desc>
</param>
<param name="propertyValues" type="wstring" safearray="yes" dir="in">
<desc>Array of property values for more detailed configuration. Not used at the moment.</desc>
</param>
</method>
<method name="removeUSBDeviceSource">
<desc>
Removes a previously added USB device source.
</desc>
<param name="id" type="wstring" dir="in">
<desc>The identifier used when the source was added.</desc>
</param>
</method>
<attribute name="updateHost" type="IUpdateAgent" readonly="yes">
<desc>Checks for new VirtualBox host versions.</desc>
</attribute>
<attribute name="updateExtPack" type="IUpdateAgent" readonly="yes">
<desc>Checks for new VirtualBox Extension Pack versions.</desc>
</attribute>
<attribute name="updateGuestAdditions" type="IUpdateAgent" readonly="yes">
<desc>Checks for new Guest Additions versions.</desc>
</attribute>
</interface>
<!--
// ICPUProfile
/////////////////////////////////////////////////////////////////////////
-->
<interface
name="ICPUProfile"
extends="$unknown"
uuid="b7fda727-7a08-46ee-8dd8-f8d7308b519c"
wsmap="managed"
rest="managed"
reservedMethods="4" reservedAttributes="8"
>
<desc>CPU profile. Immutable.</desc>
<attribute name="name" type="wstring" readonly="yes">
<desc>The name.</desc>
</attribute>
<attribute name="fullName" type="wstring" readonly="yes">
<desc>The full name.</desc>
</attribute>
<attribute name="architecture" type="CPUArchitecture" readonly="yes">
<desc>The CPU architecture.</desc>
</attribute>
</interface>
<!--
// ISystemProperties
/////////////////////////////////////////////////////////////////////////
-->
<enum name="ProxyMode" uuid="885264b3-b517-40fc-ce46-36e3bae895a4">
<desc> Proxy setting: System (default), NoProxy and Manual. <link to="ISystemProperties::proxyMode"/></desc>
<const name="System" value="0">
<desc>Use the system proxy settings as far as possible.</desc>
</const>
<const name="NoProxy" value="1">
<desc>Direct connection to the Internet.</desc>
</const>
<const name="Manual" value="2">
<desc>Use the manual proxy from <link to="ISystemProperties::proxyURL"/>.</desc>
</const>
</enum>
<interface
name="ISystemProperties"
extends="$unknown"
uuid="aac6c7cb-a371-4c58-ab51-0616896b2f2c"
wsmap="managed"
rest="managed"
reservedMethods="4" reservedAttributes="16"
>
<desc>
The ISystemProperties interface represents global properties of the given
VirtualBox installation.
These properties define limits and default values for various attributes
and parameters. Most of the properties are read-only, but some can be
changed by a user.
</desc>
<attribute name="minGuestRAM" type="unsigned long" readonly="yes">
<desc>Minimum guest system memory in Megabytes.</desc>
</attribute>
<attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
<desc>Maximum guest system memory in Megabytes.</desc>
</attribute>
<attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
<desc>Minimum guest video memory in Megabytes.</desc>
</attribute>
<attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
<desc>Maximum guest video memory in Megabytes.</desc>
</attribute>
<attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
<desc>Minimum CPU count.</desc>
</attribute>
<attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
<desc>Maximum CPU count.</desc>
</attribute>
<attribute name="maxGuestMonitors" type="unsigned long" readonly="yes">
<desc>Maximum of monitors which could be connected.</desc>
</attribute>
<attribute name="infoVDSize" type="long long" readonly="yes">
<desc>Maximum size of a virtual disk image in bytes. Informational value,
does not reflect the limits of any virtual disk image format.</desc>
</attribute>
<attribute name="serialPortCount" type="unsigned long" readonly="yes">
<desc>
Maximum number of serial ports associated with every
<link to="IMachine"/> instance.
</desc>
</attribute>
<attribute name="parallelPortCount" type="unsigned long" readonly="yes">
<desc>
Maximum number of parallel ports associated with every
<link to="IMachine"/> instance.
</desc>
</attribute>
<attribute name="maxBootPosition" type="unsigned long" readonly="yes">
<desc>
Maximum device position in the boot order. This value corresponds
to the total number of devices a machine can boot from, to make it
possible to include all possible devices to the boot list.
<see><link to="IMachine::setBootOrder"/></see>
</desc>
</attribute>
<attribute name="rawModeSupported" type="boolean" readonly="yes">
<desc>
Indicates whether VirtualBox was built with raw-mode support.
When this reads as False, the <link to="HWVirtExPropertyType_Enabled"/>
setting will be ignored and assumed to be True.
</desc>
</attribute>
<attribute name="exclusiveHwVirt" type="boolean">
<desc>
Exclusive use of hardware virtualization by VirtualBox. When enabled,
VirtualBox assumes it can obtain full and exclusive access to the VT-x
or AMD-V feature of the host. To share hardware virtualization with
other hypervisors, this property must be disabled.
<note>This is ignored on OS X, the kernel mediates hardware
access there.</note>
</desc>
</attribute>
<attribute name="defaultMachineFolder" type="wstring">
<desc>
Full path to the default directory used to create new or open
existing machines when a machine settings file name contains no
path.
Starting with VirtualBox 4.0, by default, this attribute contains
the full path of folder named "VirtualBox VMs" in the user's
home directory, which depends on the host platform.
When setting this attribute, a full path must be specified.
Setting this property to @c null or an empty string or the
special value "Machines" (for compatibility reasons) will restore
that default value.
If the folder specified herein does not exist, it will be created
automatically as needed.
<see>
<link to="IVirtualBox::createMachine"/>,
<link to="IVirtualBox::openMachine"/>
</see>
</desc>
</attribute>
<attribute name="loggingLevel" type="wstring">
<desc>
Specifies the logging level in current use by VirtualBox.
</desc>
</attribute>
<attribute name="mediumFormats" type="IMediumFormat" safearray="yes" readonly="yes">
<desc>
List of all medium storage formats supported by this VirtualBox
installation.
Keep in mind that the medium format identifier
(<link to="IMediumFormat::id"/>) used in other API calls like
<link to="IVirtualBox::createMedium"/> to refer to a particular
medium format is a case-insensitive string. This means that, for
example, all of the following strings:
<pre>
"VDI"
"vdi"
"VdI"</pre>
refer to the same medium format.
Note that the virtual medium framework is backend-based, therefore
the list of supported formats depends on what backends are currently
installed.
<see><link to="IMediumFormat"/></see>
</desc>
</attribute>
<attribute name="defaultHardDiskFormat" type="wstring">
<desc>
Identifier of the default medium format used by VirtualBox.
The medium format set by this attribute is used by VirtualBox
when the medium format was not specified explicitly. One example is
<link to="IVirtualBox::createMedium"/> with the empty
format argument. A more complex example is implicit creation of
differencing media when taking a snapshot of a virtual machine:
this operation will try to use a format of the parent medium first
and if this format does not support differencing media the default
format specified by this argument will be used.
The list of supported medium formats may be obtained by the
<link to="#mediumFormats"/> call. Note that the default medium
format must have a capability to create differencing media;
otherwise operations that create media implicitly may fail
unexpectedly.
The initial value of this property is <tt>"VDI"</tt> in the current
version of the VirtualBox product, but may change in the future.
<note>
Setting this property to @c null or empty string will restore the
initial value.
</note>
<see>
<link to="#mediumFormats"/>,
<link to="IMediumFormat::id"/>,
<link to="IVirtualBox::createMedium"/>
</see>
</desc>
</attribute>
<attribute name="freeDiskSpaceWarning" type="long long">
<desc>Issue a warning if the free disk space is below (or in some disk
intensive operation is expected to go below) the given size in
bytes.</desc>
</attribute>
<attribute name="freeDiskSpacePercentWarning" type="unsigned long">
<desc>Issue a warning if the free disk space is below (or in some disk
intensive operation is expected to go below) the given percentage.</desc>
</attribute>
<attribute name="freeDiskSpaceError" type="long long">
<desc>Issue an error if the free disk space is below (or in some disk
intensive operation is expected to go below) the given size in
bytes.</desc>
</attribute>
<attribute name="freeDiskSpacePercentError" type="unsigned long">
<desc>Issue an error if the free disk space is below (or in some disk
intensive operation is expected to go below) the given percentage.</desc>
</attribute>
<attribute name="VRDEAuthLibrary" type="wstring">
<desc>
Library that provides authentication for Remote Desktop clients. The library
is used if a virtual machine's authentication type is set to "external"
in the VM RemoteDisplay configuration.
The system library extension (".DLL" or ".so") must be omitted.
A full path can be specified; if not, then the library must reside on the
system's default library path.
The default value of this property is <tt>"VBoxAuth"</tt>. There is a library
of that name in one of the default VirtualBox library directories.
For details about VirtualBox authentication libraries and how to implement
them, please refer to the VirtualBox manual.
<note>
Setting this property to @c null or empty string will restore the
initial value.
</note>
</desc>
</attribute>
<attribute name="webServiceAuthLibrary" type="wstring">
<desc>
Library that provides authentication for webservice clients. The library
is used if a virtual machine's authentication type is set to "external"
in the VM RemoteDisplay configuration and will be called from
within the <link to="IWebsessionManager::logon" /> implementation.
As opposed to <link to="ISystemProperties::VRDEAuthLibrary" />,
there is no per-VM setting for this, as the webservice is a global
resource (if it is running). Only for this setting (for the webservice),
setting this value to a literal <tt>"null"</tt> string disables authentication,
meaning that <link to="IWebsessionManager::logon" /> will always succeed,
no matter what user name and password are supplied.
The initial value of this property is <tt>"VBoxAuth"</tt>,
meaning that the webservice will use the same authentication
library that is used by default for VRDE (again, see
<link to="ISystemProperties::VRDEAuthLibrary" />).
The format and calling convention of authentication libraries
is the same for the webservice as it is for VRDE.
<note>
Setting this property to @c null or empty string will restore the
initial value.
</note>
</desc>
</attribute>
<attribute name="defaultVRDEExtPack" type="wstring">
<desc>
The name of the extension pack providing the default VRDE.
This attribute is for choosing between multiple extension packs
providing VRDE. If only one is installed, it will automatically be the
default one. The attribute value can be empty if no VRDE extension
pack is installed.
For details about VirtualBox Remote Desktop Extension and how to
implement one, please refer to the VirtualBox SDK.
</desc>
</attribute>
<attribute name="defaultCryptoExtPack" type="wstring">
<desc>
The name of the extension pack providing the default cryptographic support
for full VM encryption.
This attribute is for choosing between multiple extension packs
providing cryptographic support. If only one is installed, it will automatically be the
default one. The attribute value can be empty if no cryptographic extension
pack is installed.
</desc>
</attribute>
<attribute name="logHistoryCount" type="unsigned long">
<desc>
This value specifies how many old release log files are kept.
</desc>
</attribute>
<attribute name="defaultAudioDriver" type="AudioDriverType" readonly="yes">
<desc>This value hold the default audio driver for the current
system.</desc>
</attribute>
<attribute name="autostartDatabasePath" type="wstring">
<desc>
The path to the autostart database. Depending on the host this might
be a filesystem path or something else.
</desc>
</attribute>
<attribute name="defaultAdditionsISO" type="wstring">
<desc>
The path to the default Guest Additions ISO image. Can be empty if
the location is not known in this installation.
</desc>
</attribute>
<attribute name="defaultFrontend" type="wstring">
<desc>
Selects which VM frontend should be used by default when launching
a VM through the <link to="IMachine::launchVMProcess" /> method.
Empty or @c null strings do not define a particular default, it is up
to <link to="IMachine::launchVMProcess" /> to select one. See the
description of <link to="IMachine::launchVMProcess" /> for the valid
frontend types.
This global setting is overridden by the per-VM attribute
<link to="IMachine::defaultFrontend" /> or a frontend type
passed to <link to="IMachine::launchVMProcess" />.
</desc>
</attribute>
<attribute name="screenShotFormats" type="BitmapFormat" safearray="yes" readonly="yes">
<desc>
Supported bitmap formats which can be used with takeScreenShot
and takeScreenShotToArray methods.
</desc>
</attribute>
<attribute name="proxyMode" type="ProxyMode">
<desc> The proxy mode setting: System, NoProxy or Manual.</desc>
</attribute>
<attribute name="proxyURL" type="wstring">
<desc>
Proxy server URL for the <link to="ProxyMode_Manual" /> proxy mode.
The format is: [{type}"://"][{userid}[:{password}]@]{server}[":"{port}]
Valid types are: http (default), https, socks4, socks4a, socks5, socks5h and direct.
Please note that these are proxy types defining how the proxy operates rather than
how to proxy any similarly named protocol (i.e. don't confuse a http-proxy with
proxying the http protocol, as a http-proxy usually can proxy https and other protocols too).
The port number defaults to 80 for http, 443 for https and 1080 for the socks ones.
<note>The password is currently stored as plain text! Use the <link to="ProxyMode_System" />
mode if you consider the proxy password to be sensitive.</note>
An empty string will cause the behavior to be identical to <link to="ProxyMode_System" />.
For compatibility with libproxy, an URL starting with "direct://" will cause
<link to="ProxyMode_NoProxy" /> behavior.
</desc>
</attribute>
<attribute name="supportedParavirtProviders" type="ParavirtProvider" safearray="yes" readonly="yes">
<desc>
Returns an array of officially supported values for enum <link to="ParavirtProvider"/>,
in the sense of what is e.g. worth offering in the VirtualBox GUI.
</desc>
</attribute>
<attribute name="supportedClipboardModes" type="ClipboardMode" safearray="yes" readonly="yes">
<desc>
Returns an array of officially supported values for enum <link to="ClipboardMode"/>,
in the sense of what is e.g. worth offering in the VirtualBox GUI.
</desc>
</attribute>
<attribute name="supportedDnDModes" type="DnDMode" safearray="yes" readonly="yes">
<desc>
Returns an array of officially supported values for enum <link to="DnDMode"/>,
in the sense of what is e.g. worth offering in the VirtualBox GUI.
</desc>
</attribute>
<attribute name="supportedFirmwareTypes" type="FirmwareType" safearray="yes" readonly="yes">
<desc>
Returns an array of officially supported values for enum <link to="FirmwareType"/>,
in the sense of what is e.g. worth offering in the VirtualBox GUI.
</desc>
</attribute>
<attribute name="supportedPointingHIDTypes" type="PointingHIDType" safearray="yes" readonly="yes">
<desc>
Returns an array of officially supported values for enum <link to="PointingHIDType"/>,
in the sense of what is e.g. worth offering in the VirtualBox GUI.
</desc>
</attribute>
<attribute name="supportedKeyboardHIDTypes" type="KeyboardHIDType" safearray="yes" readonly="yes">
<desc>
Returns an array of officially supported values for enum <link to="KeyboardHIDType"/>,
in the sense of what is e.g. worth offering in the VirtualBox GUI.
</desc>
</attribute>
<attribute name="supportedVFSTypes" type="VFSType" safearray="yes" readonly="yes">
<desc>
Returns an array of officially supported values for enum <link to="VFSType"/>,
in the sense of what is e.g. worth offering in the VirtualBox GUI.
</desc>
</attribute>
<attribute name="supportedImportOptions" type="ImportOptions" safearray="yes" readonly="yes">
<desc>
Returns an array of officially supported values for enum <link to="ImportOptions"/>,
in the sense of what is e.g. worth offering in the VirtualBox GUI.
</desc>
</attribute>
<attribute name="supportedExportOptions" type="ExportOptions" safearray="yes" readonly="yes">
<desc>
Returns an array of officially supported values for enum <link to="ExportOptions"/>,
in the sense of what is e.g. worth offering in the VirtualBox GUI.
</desc>
</attribute>
<attribute name="supportedRecordingFeatures" type="RecordingFeature" safearray="yes" readonly="yes">
<desc>
Returns an array of officially supported values for enum <link to="RecordingFeature"/>,
in the sense of what is e.g. worth offering in the VirtualBox GUI.
</desc>
</attribute>
<attribute name="supportedRecordingAudioCodecs" type="RecordingAudioCodec" safearray="yes" readonly="yes">
<desc>
Returns an array of officially supported values for enum <link to="RecordingAudioCodec"/>,
in the sense of what is e.g. worth offering in the VirtualBox GUI.
</desc>
</attribute>
<attribute name="supportedRecordingVideoCodecs" type="RecordingVideoCodec" safearray="yes" readonly="yes">
<desc>
Returns an array of officially supported values for enum <link to="RecordingVideoCodec"/>,
in the sense of what is e.g. worth offering in the VirtualBox GUI.
</desc>
</attribute>
<attribute name="supportedRecordingVSModes" type="RecordingVideoScalingMode" safearray="yes" readonly="yes">
<desc>
Returns an array of officially supported values for enum <link to="RecordingVideoScalingMode"/>,
in the sense of what is e.g. worth offering in the VirtualBox GUI.
</desc>
</attribute>
<attribute name="supportedRecordingARCModes" type="RecordingRateControlMode" safearray="yes" readonly="yes">
<desc>
Returns an array of officially supported audio codec values for enum <link to="RecordingRateControlMode"/>,
in the sense of what is e.g. worth offering in the VirtualBox GUI.
</desc>
</attribute>
<attribute name="supportedRecordingVRCModes" type="RecordingRateControlMode" safearray="yes" readonly="yes">
<desc>
Returns an array of officially supported video codec values for enum <link to="RecordingRateControlMode"/>,
in the sense of what is e.g. worth offering in the VirtualBox GUI.
</desc>
</attribute>
<attribute name="supportedGraphicsControllerTypes" type="GraphicsControllerType" safearray="yes" readonly="yes">
<desc>
Returns an array of officially supported values for enum <link to="GraphicsControllerType"/>,
in the sense of what is e.g. worth offering in the VirtualBox GUI.
</desc>
</attribute>
<attribute name="supportedCloneOptions" type="CloneOptions" safearray="yes" readonly="yes">
<desc>
Returns an array of officially supported values for enum <link to="CloneOptions"/>,
in the sense of what is e.g. worth offering in the VirtualBox GUI.
</desc>
</attribute>
<attribute name="supportedAutostopTypes" type="AutostopType" safearray="yes" readonly="yes">
<desc>
Returns an array of officially supported values for enum <link to="AutostopType"/>,
in the sense of what is e.g. worth offering in the VirtualBox GUI.
</desc>
</attribute>
<attribute name="supportedVMProcPriorities" type="VMProcPriority" safearray="yes" readonly="yes">
<desc>
Returns an array of officially supported values for enum <link to="VMProcPriority"/>,
in the sense of what is e.g. worth offering in the VirtualBox GUI.
</desc>
</attribute>
<attribute name="supportedNetworkAttachmentTypes" type="NetworkAttachmentType" safearray="yes" readonly="yes">
<desc>
Returns an array of officially supported values for enum <link to="NetworkAttachmentType"/>,
in the sense of what is e.g. worth offering in the VirtualBox GUI.
</desc>
</attribute>
<attribute name="supportedNetworkAdapterTypes" type="NetworkAdapterType" safearray="yes" readonly="yes">
<desc>
Returns an array of officially supported values for enum <link to="NetworkAdapterType"/>,
in the sense of what is e.g. worth offering in the VirtualBox GUI.
</desc>
</attribute>
<attribute name="supportedPortModes" type="PortMode" safearray="yes" readonly="yes">
<desc>
Returns an array of officially supported values for enum <link to="PortMode"/>,
in the sense of what is e.g. worth offering in the VirtualBox GUI.
</desc>
</attribute>
<attribute name="supportedUartTypes" type="UartType" safearray="yes" readonly="yes">
<desc>
Returns an array of officially supported values for enum <link to="UartType"/>,
in the sense of what is e.g. worth offering in the VirtualBox GUI.
</desc>
</attribute>
<attribute name="supportedUSBControllerTypes" type="USBControllerType" safearray="yes" readonly="yes">
<desc>
Returns an array of officially supported values for enum <link to="USBControllerType"/>,
in the sense of what is e.g. worth offering in the VirtualBox GUI.
</desc>
</attribute>
<attribute name="supportedAudioDriverTypes" type="AudioDriverType" safearray="yes" readonly="yes">
<desc>
Returns an array of officially supported values for enum <link to="AudioDriverType"/>,
in the sense of what is e.g. worth offering in the VirtualBox GUI.
</desc>
</attribute>
<attribute name="supportedAudioControllerTypes" type="AudioControllerType" safearray="yes" readonly="yes">
<desc>
Returns an array of officially supported values for enum <link to="AudioControllerType"/>,
in the sense of what is e.g. worth offering in the VirtualBox GUI.
</desc>
</attribute>
<attribute name="supportedStorageBuses" type="StorageBus" safearray="yes" readonly="yes">
<desc>
Returns an array of officially supported values for enum <link to="StorageBus"/>,
in the sense of what is e.g. worth offering in the VirtualBox GUI.
</desc>
</attribute>
<attribute name="supportedStorageControllerTypes" type="StorageControllerType" safearray="yes" readonly="yes">
<desc>
Returns an array of officially supported values for enum <link to="StorageControllerType"/>,
in the sense of what is e.g. worth offering in the VirtualBox GUI.
</desc>
</attribute>
<attribute name="supportedChipsetTypes" type="ChipsetType" safearray="yes" readonly="yes">
<desc>
Returns an array of officially supported values for enum <link to="ChipsetType"/>,
in the sense of what is e.g. worth offering in the VirtualBox GUI.
</desc>
</attribute>
<attribute name="supportedIommuTypes" type="IommuType" safearray="yes" readonly="yes">
<desc>
Returns an array of officially supported values for enum <link to="IommuType"/>,
in the sense of what is e.g. worth offering in the VirtualBox GUI.
</desc>
</attribute>
<attribute name="supportedTpmTypes" type="TpmType" safearray="yes" readonly="yes">
<desc>
Returns an array of officially supported values for enum <link to="TpmType"/>,
in the sense of what is e.g. worth offering in the VirtualBox GUI.
</desc>
</attribute>
<attribute name="languageId" type="wstring">
<desc>
The API language ID used to translate messages to client.
</desc>
</attribute>
<method name="getMaxNetworkAdapters">
<desc>
Maximum total number of network adapters associated with every
<link to="IMachine"/> instance.
</desc>
<param name="chipset" type="ChipsetType" dir="in">
<desc>The chipset type to get the value for.</desc>
</param>
<param name="maxNetworkAdapters" type="unsigned long" dir="return">
<desc>The maximum total number of network adapters allowed.</desc>
</param>
</method>
<method name="getMaxNetworkAdaptersOfType">
<desc>
Maximum number of network adapters of a given attachment type,
associated with every <link to="IMachine"/> instance.
</desc>
<param name="chipset" type="ChipsetType" dir="in">
<desc>The chipset type to get the value for.</desc>
</param>
<param name="type" type="NetworkAttachmentType" dir="in">
<desc>Type of attachment.</desc>
</param>
<param name="maxNetworkAdapters" type="unsigned long" dir="return">
<desc>The maximum number of network adapters allowed for
particular chipset and attachment type.</desc>
</param>
</method>
<method name="getMaxDevicesPerPortForStorageBus">
<desc>Returns the maximum number of devices which can be attached to a port
for the given storage bus.</desc>
<param name="bus" type="StorageBus" dir="in">
<desc>The storage bus type to get the value for.</desc>
</param>
<param name="maxDevicesPerPort" type="unsigned long" dir="return">
<desc>The maximum number of devices which can be attached to the port for the given
storage bus.</desc>
</param>
</method>
<method name="getMinPortCountForStorageBus">
<desc>Returns the minimum number of ports the given storage bus supports.</desc>
<param name="bus" type="StorageBus" dir="in">
<desc>The storage bus type to get the value for.</desc>
</param>
<param name="minPortCount" type="unsigned long" dir="return">
<desc>The minimum number of ports for the given storage bus.</desc>
</param>
</method>
<method name="getMaxPortCountForStorageBus">
<desc>Returns the maximum number of ports the given storage bus supports.</desc>
<param name="bus" type="StorageBus" dir="in">
<desc>The storage bus type to get the value for.</desc>
</param>
<param name="maxPortCount" type="unsigned long" dir="return">
<desc>The maximum number of ports for the given storage bus.</desc>
</param>
</method>
<method name="getMaxInstancesOfStorageBus">
<desc>Returns the maximum number of storage bus instances which
can be configured for each VM. This corresponds to the number of
storage controllers one can have. Value may depend on chipset type
used.</desc>
<param name="chipset" type="ChipsetType" dir="in">
<desc>The chipset type to get the value for.</desc>
</param>
<param name="bus" type="StorageBus" dir="in">
<desc>The storage bus type to get the value for.</desc>
</param>
<param name="maxInstances" type="unsigned long" dir="return">
<desc>The maximum number of instances for the given storage bus.</desc>
</param>
</method>
<method name="getDeviceTypesForStorageBus">
<desc>Returns list of all the supported device types
(<link to="DeviceType"/>) for the given type of storage
bus.</desc>
<param name="bus" type="StorageBus" dir="in">
<desc>The storage bus type to get the value for.</desc>
</param>
<param name="deviceTypes" type="DeviceType" safearray="yes" dir="return">
<desc>The list of all supported device types for the given storage bus.</desc>
</param>
</method>
<method name="getStorageBusForStorageControllerType">
<desc>Returns the <link to="StorageBus"/> enum value
for a given storage controller type.</desc>
<param name="storageControllerType" type="StorageControllerType" dir="in">
<desc>The storage controller type to get the value for.</desc>
</param>
<param name="storageBus" type="StorageBus" dir="return">
<desc>The storage bus which is applicable.</desc>
</param>
</method>
<method name="getStorageControllerTypesForStorageBus">
<desc>Returns the possible <link to="StorageControllerType"/> enum values
for a given storage bus.</desc>
<param name="storageBus" type="StorageBus" dir="in">
<desc>The storage bus type to get the values for.</desc>
</param>
<param name="storageControllerType" type="StorageControllerType" safearray="yes" dir="return">
<desc>The enum values (sorted by what should be a sensible decreasing
importance of the type) which are valid.</desc>
</param>
</method>
<method name="getDefaultIoCacheSettingForStorageController" dtracename="getDefaultStorageCtrlCacheSetting">
<desc>Returns the default I/O cache setting for the
given storage controller</desc>
<param name="controllerType" type="StorageControllerType" dir="in">
<desc>The storage controller type to get the setting for.</desc>
</param>
<param name="enabled" type="boolean" dir="return">
<desc>Returned flag indicating the default value</desc>
</param>
</method>
<method name="getStorageControllerHotplugCapable">
<desc>Returns whether the given storage controller supports
hot-plugging devices.</desc>
<param name="controllerType" type="StorageControllerType" dir="in">
<desc>The storage controller to check the setting for.</desc>
</param>
<param name="hotplugCapable" type="boolean" dir="return">
<desc>Returned flag indicating whether the controller is hotplug capable</desc>
</param>
</method>
<method name="getMaxInstancesOfUSBControllerType">
<desc>Returns the maximum number of USB controller instances which
can be configured for each VM. This corresponds to the number of
USB controllers one can have. Value may depend on chipset type
used.</desc>
<param name="chipset" type="ChipsetType" dir="in">
<desc>The chipset type to get the value for.</desc>
</param>
<param name="type" type="USBControllerType" dir="in">
<desc>The USB controller type to get the value for.</desc>
</param>
<param name="maxInstances" type="unsigned long" dir="return">
<desc>The maximum number of instances for the given USB controller type.</desc>
</param>
</method>
<method name="getCPUProfiles">
<desc>Returns CPU profiles matching the given criteria.</desc>
<param name="architecture" type="CPUArchitecture" dir="in">
<desc>The architecture to get profiles for. Required.</desc>
</param>
<param name="namePattern" type="wstring" dir="in">
<desc>Name pattern. Simple wildcard matching using asterisk (*) and
question mark (?).</desc>
</param>
<param name="profiles" type="ICPUProfile" safearray="yes" dir="return">
<desc>The matching CPU profiles.</desc>
</param>
</method>
</interface>
<!--
// IGuest
/////////////////////////////////////////////////////////////////////////
-->
<interface
name="IGuestOSType" extends="$unknown"
uuid="966303d0-36a8-4180-8971-18650b0d1055"
wsmap="struct"
rest="managed"
reservedAttributes="16"
>
<desc>
</desc>
<attribute name="familyId" type="wstring" readonly="yes">
<desc>Guest OS family identifier string.</desc>
</attribute>
<attribute name="familyDescription" type="wstring" readonly="yes">
<desc>Human readable description of the guest OS family.</desc>
</attribute>
<attribute name="id" type="wstring" readonly="yes">
<desc>Guest OS identifier string.</desc>
</attribute>
<attribute name="description" type="wstring" readonly="yes">
<desc>Human readable description of the guest OS.</desc>
</attribute>
<attribute name="is64Bit" type="boolean" readonly="yes">
<desc>Returns @c true if the given OS is 64-bit</desc>
</attribute>
<attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
<desc>Returns @c true if I/O-APIC recommended for this OS type.</desc>
</attribute>
<attribute name="recommendedVirtEx" type="boolean" readonly="yes">
<desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
</attribute>
<attribute name="recommendedRAM" type="unsigned long" readonly="yes">
<desc>Recommended RAM size in Megabytes.</desc>
</attribute>
<attribute name="recommendedGraphicsController" type="GraphicsControllerType" readonly="yes">
<desc>Recommended graphics controller type.</desc>
</attribute>
<attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
<desc>Recommended video RAM size in Megabytes.</desc>
</attribute>
<attribute name="recommended2DVideoAcceleration" type="boolean" readonly="yes">
<desc>Returns @c true if 2D video acceleration is recommended for this OS type.</desc>
</attribute>
<attribute name="recommended3DAcceleration" type="boolean" readonly="yes">
<desc>Returns @c true if 3D acceleration is recommended for this OS type.</desc>
</attribute>
<attribute name="recommendedHDD" type="long long" readonly="yes">
<desc>Recommended hard disk size in bytes.</desc>
</attribute>
<attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
<desc>Returns recommended network adapter for this OS type.</desc>
</attribute>
<attribute name="recommendedPAE" type="boolean" readonly="yes">
<desc>Returns @c true if using PAE is recommended for this OS type.</desc>
</attribute>
<attribute name="recommendedDVDStorageController" type="StorageControllerType" readonly="yes">
<desc>Recommended storage controller type for DVD/CD drives.</desc>
</attribute>
<attribute name="recommendedDVDStorageBus" type="StorageBus" readonly="yes">
<desc>Recommended storage bus type for DVD/CD drives.</desc>
</attribute>
<attribute name="recommendedHDStorageController" type="StorageControllerType" readonly="yes">
<desc>Recommended storage controller type for HD drives.</desc>
</attribute>
<attribute name="recommendedHDStorageBus" type="StorageBus" readonly="yes">
<desc>Recommended storage bus type for HD drives.</desc>
</attribute>
<attribute name="recommendedFirmware" type="FirmwareType" readonly="yes">
<desc>Recommended firmware type.</desc>
</attribute>
<attribute name="recommendedUSBHID" type="boolean" readonly="yes">
<desc>Returns @c true if using USB Human Interface Devices, such as keyboard and mouse recommended.</desc>
</attribute>
<attribute name="recommendedHPET" type="boolean" readonly="yes">
<desc>Returns @c true if using HPET is recommended for this OS type.</desc>
</attribute>
<attribute name="recommendedUSBTablet" type="boolean" readonly="yes">
<desc>Returns @c true if using a USB Tablet is recommended.</desc>
</attribute>
<attribute name="recommendedRTCUseUTC" type="boolean" readonly="yes">
<desc>Returns @c true if the RTC of this VM should be set to UTC</desc>
</attribute>
<attribute name="recommendedChipset" type="ChipsetType" readonly="yes">
<desc>Recommended chipset type.</desc>
</attribute>
<attribute name="recommendedIommuType" type="IommuType" readonly="yes">
<desc>Recommended IOMMU type.</desc>
</attribute>
<attribute name="recommendedAudioController" type="AudioControllerType" readonly="yes">
<desc>Recommended audio controller type.</desc>
</attribute>
<attribute name="recommendedAudioCodec" type="AudioCodecType" readonly="yes">
<desc>Recommended audio codec type.</desc>
</attribute>
<attribute name="recommendedFloppy" type="boolean" readonly="yes">
<desc>Returns @c true a floppy drive is recommended for this OS type.</desc>
</attribute>
<attribute name="recommendedUSB" type="boolean" readonly="yes">
<desc>Returns @c true a USB controller is recommended for this OS type.</desc>
</attribute>
<attribute name="recommendedUSB3" type="boolean" readonly="yes">
<desc>Returns @c true an xHCI (USB 3) controller is recommended for this OS type.</desc>
</attribute>
<attribute name="recommendedTFReset" type="boolean" readonly="yes">
<desc>Returns @c true if using VCPU reset on triple fault is recommended for this OS type.</desc>
</attribute>
<attribute name="recommendedX2APIC" type="boolean" readonly="yes">
<desc>Returns @c true if X2APIC is recommended for this OS type.</desc>
</attribute>
<attribute name="recommendedCPUCount" type="unsigned long" readonly="yes">
<desc>Number of vCPUs recommended for this OS type.</desc>
</attribute>
<attribute name="recommendedTpmType" type="TpmType" readonly="yes">
<desc>Returns the recommended trusted platform module type for this OS type.</desc>
</attribute>
<attribute name="recommendedSecureBoot" type="boolean" readonly="yes">
<desc>Returns @c true if EFI secure boot is recommended for this OS type.</desc>
</attribute>
<attribute name="recommendedWDDMGraphics" type="boolean" readonly="yes">
<desc>Returns @c true if this OS usually has a WDDM graphics driver
from guest additions.</desc>
</attribute>
</interface>
<enum
name="AdditionsFacilityType"
uuid="c4b10d74-dd48-4ff4-9a40-785a2a389ade"
>
<desc>
Guest Additions facility IDs.
</desc>
<const name="None" value="0">
<desc>No/invalid facility.</desc>
</const>
<const name="VBoxGuestDriver" value="20">
<desc>VirtualBox base driver (VBoxGuest).</desc>
</const>
<const name="AutoLogon" value="90">
<desc>Auto-logon modules (VBoxGINA, VBoxCredProv, pam_vbox).</desc>
</const>
<const name="VBoxService" value="100">
<desc>VirtualBox system service (VBoxService).</desc>
</const>
<const name="VBoxTrayClient" value="101">
<desc>VirtualBox desktop integration (VBoxTray on Windows, VBoxClient on non-Windows).</desc>
</const>
<const name="Seamless" value="1000">
<desc>Seamless guest desktop integration.</desc>
</const>
<const name="Graphics" value="1100">
<desc>Guest graphics mode. If not enabled, seamless rendering will not work, resize hints
are not immediately acted on and guest display resizes are probably not initiated by
the Guest Additions.
</desc>
</const>
<const name="MonitorAttach" value="1101">
<desc>Guest supports monitor hotplug.
</desc>
</const>
<const name="All" value="2147483646">
<desc>All facilities selected.</desc>
</const>
</enum>
<enum
name="AdditionsFacilityClass"
uuid="446451b2-c88d-4e5d-84c9-91bc7f533f5f"
>
<desc>
Guest Additions facility classes.
</desc>
<const name="None" value="0">
<desc>No/invalid class.</desc>
</const>
<const name="Driver" value="10">
<desc>Driver.</desc>
</const>
<const name="Service" value="30">
<desc>System service.</desc>
</const>
<const name="Program" value="50">
<desc>Program.</desc>
</const>
<const name="Feature" value="100">
<desc>Feature.</desc>
</const>
<const name="ThirdParty" value="999">
<desc>Third party.</desc>
</const>
<const name="All" value="2147483646">
<desc>All facility classes selected.</desc>
</const>
</enum>
<enum
name="AdditionsFacilityStatus"
uuid="ce06f9e1-394e-4fe9-9368-5a88c567dbde"
>
<desc>
Guest Additions facility states.
</desc>
<const name="Inactive" value="0">
<desc>Facility is not active.</desc>
</const>
<const name="Paused" value="1">
<desc>Facility has been paused.</desc>
</const>
<const name="PreInit" value="20">
<desc>Facility is preparing to initialize.</desc>
</const>
<const name="Init" value="30">
<desc>Facility is initializing.</desc>
</const>
<const name="Active" value="50">
<desc>Facility is up and running.</desc>
</const>
<const name="Terminating" value="100">
<desc>Facility is shutting down.</desc>
</const>
<const name="Terminated" value="101">
<desc>Facility successfully shut down.</desc>
</const>
<const name="Failed" value="800">
<desc>Facility failed to start.</desc>
</const>
<const name="Unknown" value="999">
<desc>Facility status is unknown.</desc>
</const>
</enum>
<interface
name="IAdditionsFacility" extends="$unknown"
uuid="f2f7fae4-4a06-81fc-a916-78b2da1fa0e5"
wsmap="struct"
rest="managed"
reservedAttributes="2"
>
<desc>
Structure representing a Guest Additions facility.
</desc>
<attribute name="classType" type="AdditionsFacilityClass" readonly="yes">
<desc>The class this facility is part of.</desc>
</attribute>
<attribute name="lastUpdated" type="long long" readonly="yes">
<desc>
Timestamp of the last status update,
in milliseconds since 1970-01-01 UTC.
</desc>
</attribute>
<attribute name="name" type="wstring" readonly="yes">
<desc>The facility's friendly name.</desc>
</attribute>
<attribute name="status" type="AdditionsFacilityStatus" readonly="yes">
<desc>The current status.</desc>
</attribute>
<attribute name="type" type="AdditionsFacilityType" readonly="yes">
<desc>The facility's type ID.</desc>
</attribute>
</interface>
<enum
name="AdditionsRunLevelType"
uuid="a25417ee-a9dd-4f5b-b0dc-377860087754"
>
<desc>
Guest Additions run level type.
</desc>
<const name="None" value="0">
<desc>Guest Additions are not loaded.</desc>
</const>
<const name="System" value="1">
<desc>Guest drivers are loaded.</desc>
</const>
<const name="Userland" value="2">
<desc>Common components (such as application services) are loaded.</desc>
</const>
<const name="Desktop" value="3">
<desc>Per-user desktop components are loaded.</desc>
</const>
</enum>
<enum
name="AdditionsUpdateFlag"
uuid="726a818d-18d6-4389-94e8-3e9e6826171a"
>
<desc>
Guest Additions update flags.
</desc>
<const name="None" value="0">
<desc>No flag set.</desc>
</const>
<const name="WaitForUpdateStartOnly" value="1">
<desc>Starts the regular updating process and waits until the
actual Guest Additions update inside the guest was started.
This can be necessary due to needed interaction with the guest
OS during the installation phase.</desc>
</const>
</enum>
<enum
name="GuestShutdownFlag"
uuid="28D19C9C-5862-4930-B29A-F117712B4864"
>
<desc>
Guest shutdown flags.
</desc>
<const name="None" value="0">
<desc>No flag set.</desc>
</const>
<const name="PowerOff" value="1">
<desc>Performs a reboot after shutdown.</desc>
</const>
<const name="Reboot" value="2">
<desc>Performs a reboot after shutdown.</desc>
</const>
<const name="Force" value="4">
<desc>Force the system to shutdown/reboot regardless of objecting
application or other stuff. This flag might not be realized on
all systems.</desc>
</const>
</enum>
<enum
name="GuestSessionStatus"
uuid="ac2669da-4624-44f2-85b5-0b0bfb8d8673"
>
<desc>
Guest session status. This enumeration represents possible values of
the <link to="IGuestSession::status"/> attribute.
</desc>
<const name="Undefined" value="0">
<desc>Guest session is in an undefined state.</desc>
</const>
<const name="Starting" value="10">
<desc>Guest session is being started.</desc>
</const>
<const name="Started" value="100">
<desc>Guest session has been started.</desc>
</const>
<const name="Terminating" value="480">
<desc>Guest session is being terminated.</desc>
</const>
<const name="Terminated" value="500">
<desc>Guest session terminated normally.</desc>
</const>
<const name="TimedOutKilled" value="512">
<desc>Guest session timed out and was killed.</desc>
</const>
<const name="TimedOutAbnormally" value="513">
<desc>Guest session timed out and was not killed successfully.</desc>
</const>
<const name="Down" value="600">
<desc>Service/OS is stopping, guest session was killed.</desc>
</const>
<const name="Error" value="800">
<desc>Something went wrong.</desc>
</const>
</enum>
<enum
name="GuestSessionWaitForFlag"
uuid="bb7a372a-f635-4e11-a81a-e707f3a52ef5"
>
<desc>
Guest session waiting flags.
</desc>
<const name="None" value="0">
<desc>No waiting flags specified. Do not use this.</desc>
</const>
<const name="Start" value="1">
<desc>Wait for the guest session being started.</desc>
</const>
<const name="Terminate" value="2">
<desc>Wait for the guest session being terminated.</desc>
</const>
<const name="Status" value="4">
<desc>Wait for the next guest session status change.</desc>
</const>
</enum>
<enum
name="GuestSessionWaitResult"
uuid="c0f6a8a5-fdb6-42bf-a582-56c6f82bcd2d"
>
<desc>
Guest session waiting results. Depending on the session waiting flags (for
more information see <link to="GuestSessionWaitForFlag"/>) the waiting result
can vary based on the session's current status.
To wait for a guest session to terminate after it has been
created by <link to="IGuest::createSession"/> one would specify
GuestSessionWaitResult_Terminate.
</desc>
<const name="None" value="0">
<desc>No result was returned. Not being used.</desc>
</const>
<const name="Start" value="1">
<desc>The guest session has been started.</desc>
</const>
<const name="Terminate" value="2">
<desc>The guest session has been terminated.</desc>
</const>
<const name="Status" value="3">
<desc>
The guest session has changed its status. The status then can
be retrieved via <link to="IGuestSession::status"/>.
</desc>
</const>
<const name="Error" value="4">
<desc>Error while executing the process.</desc>
</const>
<const name="Timeout" value="5">
<desc>
The waiting operation timed out. This also will happen
when no event has been occurred matching the
current waiting flags in a <link to="IGuestSession::waitFor"/> call.
</desc>
</const>
<const name="WaitFlagNotSupported" value="6">
<desc>
A waiting flag specified in the <link to="IGuestSession::waitFor"/> call
is not supported by the guest.
</desc>
</const>
</enum>
<enum
name="GuestUserState"
uuid="b2a82b02-fd3d-4fc2-ba84-6ba5ac8be198"
>
<desc>
State a guest user has been changed to.
</desc>
<const name="Unknown" value="0">
<desc>Unknown state. Not being used.</desc>
</const>
<const name="LoggedIn" value="1">
<desc>A guest user has been successfully logged into
the guest OS.
<note>This property is not implemented yet!</note>
</desc>
</const>
<const name="LoggedOut" value="2">
<desc>A guest user has been successfully logged out
of the guest OS.
<note>This property is not implemented yet!</note>
</desc>
</const>
<const name="Locked" value="3">
<desc>A guest user has locked its account. This might
include running a password-protected screensaver
in the guest.
<note>This property is not implemented yet!</note>
</desc>
</const>
<const name="Unlocked" value="4">
<desc>A guest user has unlocked its account.
<note>This property is not implemented yet!</note>
</desc>
</const>
<const name="Disabled" value="5">
<desc>A guest user has been disabled by the guest OS.
<note>This property is not implemented yet!</note>
</desc>
</const>
<const name="Idle" value="6">
<desc>
A guest user currently is not using the guest OS.
<note>Currently only available for Windows guests since
Windows 2000 SP2.</note>
<note>On Windows guests this function currently only supports
reporting contiguous idle times up to 49.7 days per user.</note>
The event will be triggered if a guest user is not active for
at least 5 seconds. This threshold can be adjusted by either altering
VBoxService's command line in the guest to
<pre>--vminfo-user-idle-threshold <ms></pre>
, or by setting the per-VM guest property
<pre>/VirtualBox/GuestAdd/VBoxService/--vminfo-user-idle-threshold <ms></pre>
with the RDONLYGUEST flag on the host. In both cases VBoxService needs
to be restarted in order to get the changes applied.
</desc>
</const>
<const name="InUse" value="7">
<desc>A guest user continued using the guest OS after
being idle.</desc>
</const>
<const name="Created" value="8">
<desc>A guest user has been successfully created.
<note>This property is not implemented yet!</note>
</desc>
</const>
<const name="Deleted" value="9">
<desc>A guest user has been successfully deleted.
<note>This property is not implemented yet!</note>
</desc>
</const>
<const name="SessionChanged" value="10">
<desc>To guest OS has changed the session of a user.
<note>This property is not implemented yet!</note>
</desc>
</const>
<const name="CredentialsChanged" value="11">
<desc>To guest OS has changed the authentication
credentials of a user. This might include changed passwords
and authentication types.
<note>This property is not implemented yet!</note>
</desc>
</const>
<const name="RoleChanged" value="12">
<desc>To guest OS has changed the role of a user permanently,
e.g. granting / denying administrative rights.
<note>This property is not implemented yet!</note>
</desc>
</const>
<const name="GroupAdded" value="13">
<desc>To guest OS has added a user to a specific
user group.
<note>This property is not implemented yet!</note>
</desc>
</const>
<const name="GroupRemoved" value="14">
<desc>To guest OS has removed a user from a specific
user group.
<note>This property is not implemented yet!</note>
</desc>
</const>
<const name="Elevated" value="15">
<desc>To guest OS temporarily has elevated a user
to perform a certain task.
<note>This property is not implemented yet!</note>
</desc>
</const>
</enum>
<enum
name="FileSeekOrigin"
uuid="ad32f789-4279-4530-979c-f16892e1c263"
>
<desc>
What a file seek (<link to="IFile::seek"/>) is relative to.
</desc>
<const name="Begin" value="0">
<desc>Seek from the beginning of the file.</desc>
</const>
<const name="Current" value="1">
<desc>Seek from the current file position.</desc>
</const>
<const name="End" value="2">
<desc>Seek relative to the end of the file. To seek to the position two
bytes from the end of the file, specify -2 as the seek offset.</desc>
</const>
</enum>
<enum
name="ProcessInputFlag"
uuid="5d38c1dd-2604-4ddf-92e5-0c0cdd3bdbd5"
>
<desc>
Guest process input flags.
</desc>
<const name="None" value="0">
<desc>No flag set.</desc>
</const>
<const name="EndOfFile" value="1">
<desc>End of file (input) reached.</desc>
</const>
</enum>
<enum
name="ProcessOutputFlag"
uuid="9979e85a-52bb-40b7-870c-57115e27e0f1"
>
<desc>
Guest process output flags for specifying which
type of output to retrieve.
</desc>
<const name="None" value="0">
<desc>No flags set. Get output from stdout.</desc>
</const>
<const name="StdErr" value="1">
<desc>Get output from stderr.</desc>
</const>
</enum>
<enum
name="ProcessWaitForFlag"
uuid="23b550c7-78e1-437e-98f0-65fd9757bcd2"
>
<desc>
Process waiting flags.
</desc>
<const name="None" value="0">
<desc>No waiting flags specified. Do not use this.</desc>
</const>
<const name="Start" value="1">
<desc>Wait for the process being started.</desc>
</const>
<const name="Terminate" value="2">
<desc>Wait for the process being terminated.</desc>
</const>
<const name="StdIn" value="4">
<desc>Wait for stdin becoming available.</desc>
</const>
<const name="StdOut" value="8">
<desc>Wait for data becoming available on stdout.</desc>
</const>
<const name="StdErr" value="16">
<desc>Wait for data becoming available on stderr.</desc>
</const>
</enum>
<enum
name="ProcessWaitResult"
uuid="40719cbe-f192-4fe9-a231-6697b3c8e2b4"
>
<desc>
Process waiting results. Depending on the process waiting flags (for
more information see <link to="ProcessWaitForFlag"/>) the waiting result
can vary based on the processes' current status.
To wait for a guest process to terminate after it has been
created by <link to="IGuestSession::processCreate"/> or <link to="IGuestSession::processCreateEx"/>
one would specify ProcessWaitFor_Terminate.
If a guest process has been started with ProcessCreateFlag_WaitForStdOut
a client can wait with ProcessWaitResult_StdOut for new data to arrive on
stdout; same applies for ProcessCreateFlag_WaitForStdErr and
ProcessWaitResult_StdErr.
</desc>
<const name="None" value="0">
<desc>No result was returned. Not being used.</desc>
</const>
<const name="Start" value="1">
<desc>The process has been started.</desc>
</const>
<const name="Terminate" value="2">
<desc>The process has been terminated.</desc>
</const>
<const name="Status" value="3">
<desc>
The process has changed its status. The status then can
be retrieved via <link to="IProcess::status"/>.
</desc>
</const>
<const name="Error" value="4">
<desc>Error while executing the process.</desc>
</const>
<const name="Timeout" value="5">
<desc>
The waiting operation timed out. Also use if the guest process has
timed out in the guest side (kill attempted).
</desc>
</const>
<const name="StdIn" value="6">
<desc>The process signalled that stdin became available for writing.</desc>
</const>
<const name="StdOut" value="7">
<desc>Data on stdout became available for reading.</desc>
</const>
<const name="StdErr" value="8">
<desc>Data on stderr became available for reading.</desc>
</const>
<const name="WaitFlagNotSupported" value="9">
<desc>
A waiting flag specified in the <link to="IProcess::waitFor"/> call
is not supported by the guest.
</desc>
</const>
</enum>
<enum
name="FileCopyFlag"
uuid="791909d7-4c64-2fa4-4303-adb10658d347"
>
<desc>
File copying flags.
</desc>
<const name="None" value="0">
<desc>No flag set.</desc>
</const>
<const name="NoReplace" value="1">
<!-- Would make more sense to not replace by default, however we the GAs
only supports replacing as of writing, so we currently have no choice. -->
<desc>
Do not replace the destination file if it exists.
</desc>
</const>
<const name="FollowLinks" value="2">
<desc>
Follow symbolic links.
</desc>
</const>
<const name="Update" value="4">
<desc>
Only copy when the source file is newer than the destination file
or when the destination file is missing.
</desc>
</const>
</enum>
<enum
name="FsObjMoveFlag"
uuid="2450a05d-80c6-4c96-9a17-94d73293ff86"
>
<desc>
File moving flags.
</desc>
<const name="None" value="0">
<desc>No flag set.</desc>
</const>
<const name="Replace" value="1">
<desc>
Replace the destination file, symlink, etc if it exists, however this
does not allow replacing any directories.
</desc>
</const>
<const name="FollowLinks" value="2">
<desc>
Follow symbolic links in the final components or not (only applied to
the given source and target paths, not to anything else).
</desc>
</const>
<const name="AllowDirectoryMoves" value="4">
<desc>
Allow moving directories accross file system boundraries. Because it
is could be a big undertaking, we require extra assurance that we
should do it when requested.
</desc>
</const>
</enum>
<enum
name="DirectoryCreateFlag"
uuid="bd721b0e-ced5-4f79-b368-249897c32a36"
>
<desc>
Directory creation flags.
</desc>
<const name="None" value="0">
<desc>No flag set.</desc>
</const>
<const name="Parents" value="1">
<desc>No error if existing, make parent directories as needed.</desc>
</const>
</enum>
<enum
name="DirectoryCopyFlag"
uuid="20108C67-B1EB-4EF6-869B-25539A47A18E"
>
<desc>
Directory copying flags.
</desc>
<const name="None" value="0">
<desc>No flag set.</desc>
</const>
<const name="CopyIntoExisting" value="1">
<desc>Allow copying into an existing destination directory.</desc>
</const>
<const name="Recursive" value="2">
<desc>Copy directories recursively.</desc>
</const>
<const name="FollowLinks" value="4">
<desc>Follow symbolic links.</desc>
</const>
<!-- Later, basically have to see what cp and xcopy offers. -->
</enum>
<enum
name="DirectoryRemoveRecFlag"
uuid="455aabf0-7692-48f6-9061-f21579b65769"
>
<desc>
Directory recursive removement flags.
</desc>
<const name="None" value="0">
<desc>No flag set.</desc>
</const>
<const name="ContentAndDir" value="1">
<desc>Delete the content of the directory and the directory itself.</desc>
</const>
<const name="ContentOnly" value="2">
<desc>Only delete the content of the directory, omit the directory it self.</desc>
</const>
</enum>
<enum
name="FsObjRenameFlag"
uuid="59bbf3a1-4e23-d7cf-05d5-ccae32080ed2"
>
<desc>
Flags for use when renaming file system objects (files, directories,
symlink, etc), see <link to="IGuestSession::fsObjRename"/>.
</desc>
<const name="NoReplace" value="0">
<desc>Do not replace any destination object.</desc>
</const>
<const name="Replace" value="1">
<desc>This will attempt to replace any destination object other except
directories. (The default is to fail if the destination exists.)</desc>
</const>
</enum>
<enum
name="ProcessCreateFlag"
uuid="C544CD2B-F02D-4886-9901-71C523DB8DC5"
>
<desc>
Guest process execution flags.
<note>The values are passed to the Guest Additions, so its not possible
to change (move) or reuse values.here. See GUEST_PROC_CREATE_FLAG_XXX
in GuestControlSvc.h.</note>
</desc>
<const name="None" value="0">
<desc>No flag set.</desc>
</const>
<const name="WaitForProcessStartOnly" value="1">
<desc>Only use the specified timeout value to wait for starting the guest process - the guest
process itself then uses an infinite timeout.</desc>
</const>
<const name="IgnoreOrphanedProcesses" value="2">
<desc>Do not report an error when executed processes are still alive when VBoxService or the guest OS is shutting down.</desc>
</const>
<const name="Hidden" value="4">
<desc>Do not show the started process according to the guest OS guidelines.</desc>
</const>
<const name="Profile" value="8">
<desc>Utilize the user's profile data when exeuting a process. Only available for Windows guests at the moment.</desc>
</const>
<const name="WaitForStdOut" value="16">
<desc>The guest process waits until all data from stdout is read out.</desc>
</const>
<const name="WaitForStdErr" value="32">
<desc>The guest process waits until all data from stderr is read out.</desc>
</const>
<const name="ExpandArguments" value="64">
<desc>Expands environment variables in process arguments.
<note>
This is not yet implemented and is currently silently ignored.
We will document the protocolVersion number for this feature once it
appears, so don't use it till then.
</note>
</desc>
</const>
<const name="UnquotedArguments" value="128">
<desc>Work around for Windows and OS/2 applications not following normal
argument quoting and escaping rules. The arguments are passed to the
application without any extra quoting, just a single space between each.
<note>Present since VirtualBox 4.3.28 and 5.0 beta 3.</note>
</desc>
</const>
</enum>
<enum
name="ProcessPriority"
uuid="ee8cac50-e232-49fe-806b-d1214d9c2e49"
>
<desc>
Process priorities.
</desc>
<const name="Invalid" value="0">
<desc>Invalid priority, do not use.</desc>
</const>
<const name="Default" value="1">
<desc>Default process priority determined by the OS.</desc>
</const>
</enum>
<enum
name="SymlinkType"
uuid="37794668-f8f1-4714-98a5-6f8fa2ed0118"
>
<desc>
Symbolic link types. This is significant when creating links on the
Windows platform, ignored elsewhere.
</desc>
<const name="Unknown" value="0">
<desc>It is not known what is being targeted.</desc>
</const>
<const name="Directory" value="1">
<desc>The link targets a directory.</desc>
</const>
<const name="File" value="2">
<desc>The link targets a file (or whatever else except directories).</desc>
</const>
</enum>
<enum
name="SymlinkReadFlag"
uuid="b7fe2b9d-790e-4b25-8adf-1ca33026931f"
>
<desc>
Symbolic link reading flags.
</desc>
<const name="None" value="0">
<desc>No flags set.</desc>
</const>
<const name="NoSymlinks" value="1">
<desc>Don't allow symbolic links as part of the path.</desc>
</const>
</enum>
<enum
name="ProcessStatus"
uuid="4d52368f-5b48-4bfe-b486-acf89139b52f"
>
<desc>
Process execution statuses.
</desc>
<const name="Undefined" value="0">
<desc>Process is in an undefined state.</desc>
</const>
<const name="Starting" value="10">
<desc>Process is being started.</desc>
</const>
<const name="Started" value="100">
<desc>Process has been started.</desc>
</const>
<const name="Paused" value="110">
<desc>Process has been paused.</desc>
</const>
<const name="Terminating" value="480">
<desc>Process is being terminated.</desc>
</const>
<const name="TerminatedNormally" value="500">
<desc>Process terminated normally.</desc>
</const>
<const name="TerminatedSignal" value="510">
<desc>Process terminated via signal.</desc>
</const>
<const name="TerminatedAbnormally" value="511">
<desc>Process terminated abnormally.</desc>
</const>
<const name="TimedOutKilled" value="512">
<desc>Process timed out and was killed.</desc>
</const>
<const name="TimedOutAbnormally" value="513">
<desc>Process timed out and was not killed successfully.</desc>
</const>
<const name="Down" value="600">
<desc>Service/OS is stopping, process was killed.</desc>
</const>
<const name="Error" value="800">
<desc>Something went wrong.</desc>
</const>
</enum>
<enum
name="ProcessInputStatus"
uuid="a4a0ef9c-29cc-4805-9803-c8215ae9da6c"
>
<desc>
Process input statuses.
</desc>
<const name="Undefined" value="0">
<desc>Undefined state.</desc>
</const>
<const name="Broken" value="1">
<desc>Input pipe is broken.</desc>
</const>
<const name="Available" value="10">
<desc>Input pipe became available for writing.</desc>
</const>
<const name="Written" value="50">
<desc>Data has been successfully written.</desc>
</const>
<const name="Overflow" value="100">
<desc>Too much input data supplied, data overflow.</desc>
</const>
</enum>
<enum
name="PathStyle"
uuid="97303a5b-42e8-0a55-d16f-d2a92c295261"
>
<desc>
The path style of a system.
(Values matches the RTPATH_STR_F_STYLE_XXX defines in iprt/path.h!)
</desc>
<const name="DOS" value="1">
<desc>DOS-style paths with forward and backward slashes, drive
letters and UNC. Known from DOS, OS/2 and Windows.</desc>
</const>
<const name="UNIX" value="2">
<desc>UNIX-style paths with forward slashes only.</desc>
</const>
<const name="Unknown" value="8">
<desc>
The path style is not known, most likely because the Guest Additions
aren't active yet.
</desc>
</const>
</enum>
<enum
name="FileAccessMode"
uuid="231a578f-47fb-ea30-3b3e-8489558227f0"
>
<desc>
File open access mode for use with <link to="IGuestSession::fileOpen"/>
and <link to="IGuestSession::fileOpenEx"/>.
</desc>
<const name="ReadOnly" value="1">
<desc>Open the file only with read access.</desc>
</const>
<const name="WriteOnly" value="2">
<desc>Open the file only with write access.</desc>
</const>
<const name="ReadWrite" value="3">
<desc>Open the file with both read and write access.</desc>
</const>
<const name="AppendOnly" value="4">
<desc>Open the file for appending only, no read or seek access.
<note>Not yet implemented.</note>
</desc>
</const>
<const name="AppendRead" value="5">
<desc>Open the file for appending and read. Writes always goes to the
end of the file while reads are done at the current or specified file
position.
<note>Not yet implemented.</note>
</desc>
</const>
</enum>
<enum
name="FileOpenAction"
uuid="12bc97e2-4fc6-a8b4-4f84-0cbf4ab970d2"
>
<desc>
What action <link to="IGuestSession::fileOpen"/> and <link to="IGuestSession::fileOpenEx"/>
should take whether the file being opened exists or not.
</desc>
<const name="OpenExisting" value="1">
<desc>Opens an existing file, fails if no file exists. (Was "oe".)</desc>
</const>
<const name="OpenOrCreate" value="2">
<desc>Opens an existing file, creates a new one if no file exists. (Was "oc".)</desc>
</const>
<const name="CreateNew" value="3">
<desc>Creates a new file is no file exists, fails if there is a file there already. (Was "ce".)</desc>
</const>
<const name="CreateOrReplace" value="4">
<desc>
Creates a new file, replace any existing file. (Was "ca".)
<note>
Currently undefined whether we will inherit mode and ACLs from the
existing file or replace them.
</note>
</desc>
</const>
<const name="OpenExistingTruncated" value="5">
<desc>Opens and truncate an existing file, fails if no file exists. (Was "ot".)</desc>
</const>
<const name="AppendOrCreate" value="99">
<desc>Opens an existing file and places the file pointer at the end of
the file, creates the file if it does not exist. This action implies
write access. (Was "oa".)
<note>
<!-- @todo r=bird: See iprt/file.h, RTFILE_O_APPEND - not an action/disposition!
Moving the file pointer to the end, is almost fine, but implying 'write' access
isn't. That is something that is exclusively reserved for the opening mode. -->
Deprecated. Only here for historical reasons. Do not use!
</note>
</desc>
</const>
</enum>
<enum
name="FileSharingMode"
uuid="f87dfe58-425b-c5ba-7d6d-22adeea25de1"
>
<desc>
File sharing mode for <link to="IGuestSession::fileOpenEx"/>.
</desc>
<const name="Read" value="1">
<desc>Only share read access to the file.</desc>
</const>
<const name="Write" value="2">
<desc>Only share write access to the file.</desc>
</const>
<const name="ReadWrite" value="3">
<desc>Share both read and write access to the file, but deny deletion.</desc>
</const>
<const name="Delete" value="4">
<desc>Only share delete access, denying read and write.</desc>
</const>
<const name="ReadDelete" value="5">
<desc>Share read and delete access to the file, denying writing.</desc>
</const>
<const name="WriteDelete" value="6">
<desc>Share write and delete access to the file, denying reading.</desc>
</const>
<const name="All" value="7">
<desc>Share all access, i.e. read, write and delete, to the file.</desc>
</const>
</enum>
<enum
name="FileOpenExFlag"
uuid="4671abd4-f70c-42aa-8542-6c169cb87a5c"
>
<desc>
Open flags for <link to="IGuestSession::fileOpenEx"/>.
</desc>
<const name="None" value="0">
<desc>No flag set.</desc>
</const>
</enum>
<enum
name="FileStatus"
uuid="8c86468b-b97b-4080-8914-e29f5b0abd2c"
>
<desc>
File statuses.
</desc>
<const name="Undefined" value="0">
<desc>File is in an undefined state.</desc>
</const>
<const name="Opening" value="10">
<desc>Guest file is opening.</desc>
</const>
<const name="Open" value="100">
<desc>Guest file has been successfully opened.</desc>
</const>
<const name="Closing" value="150">
<desc>Guest file closing.</desc>
</const>
<const name="Closed" value="200">
<desc>Guest file has been closed.</desc>
</const>
<const name="Down" value="600">
<desc>Service/OS is stopping, guest file was closed.</desc>
</const>
<const name="Error" value="800">
<desc>Something went wrong.</desc>
</const>
</enum>
<enum
name="FsObjType"
uuid="34a0d1aa-491e-e209-e150-84964d6cee5f"
>
<desc>
File system object (file) types.
</desc>
<const name="Unknown" value="1">
<desc>Used either if the object has type that is not in this enum, or
if the type has not yet been determined or set.</desc>
</const>
<const name="Fifo" value="2">
<desc>FIFO or named pipe, depending on the platform/terminology.</desc>
</const>
<const name="DevChar" value="3">
<desc>Character device.</desc>
</const>
<const name="Directory" value="4">
<desc>Directory.</desc>
</const>
<const name="DevBlock" value="5">
<desc>Block device.</desc>
</const>
<const name="File" value="6">
<desc>Regular file.</desc>
</const>
<const name="Symlink" value="7">
<desc>Symbolic link.</desc>
</const>
<const name="Socket" value="8">
<desc>Socket.</desc>
</const>
<const name="WhiteOut" value="9">
<desc>A white-out file. Found in union mounts where it is used for
hiding files after deletion, I think. </desc>
</const>
</enum>
<enum
name="DnDAction"
uuid="17609e74-778e-4d0e-8827-35f5230f287b"
>
<desc>
Possible actions of a drag'n drop operation.
</desc>
<const name="Ignore" value="0">
<desc>Do nothing.</desc>
</const>
<const name="Copy" value="1">
<desc>Copy the item to the target.</desc>
</const>
<const name="Move" value="2">
<desc>Move the item to the target.</desc>
</const>
<const name="Link" value="3">
<desc>Link the item from within the target.</desc>
</const>
</enum>
<enum
name="DirectoryOpenFlag"
uuid="5138837a-8fd2-4194-a1b0-08f7bc3949d0"
>
<desc>
Directory open flags.
</desc>
<const name="None" value="0">
<desc>No flag set.</desc>
</const>
<const name="NoSymlinks" value="1">
<desc>Don't allow symbolic links as part of the path.</desc>
</const>
<!-- r=bird: need a "NoFollowSymlinks" value here. IPRT probably needs that too. -->
</enum>
<interface
name="IDnDBase" extends="$unknown"
uuid="00727A73-000A-4C4A-006D-E7D300351186"
wsmap="managed"
reservedMethods="1" reservedAttributes="2"
>
<desc>Base abstract interface for drag'n drop.</desc>
<attribute name="formats" type="wstring" safearray="yes" readonly="yes">
<desc>Returns all supported drag'n drop formats.</desc>
</attribute>
<method name="isFormatSupported" >
<desc>
Checks if a specific drag'n drop MIME / Content-type format is supported.
</desc>
<param name="format" type="wstring" dir="in">
<desc>Format to check for.</desc>
</param>
<param name="supported" type="boolean" dir="return">
<desc>Returns @c true if the specified format is supported, @c false if not.</desc>
</param>
</method>
<method name="addFormats" >
<desc>
Adds MIME / Content-type formats to the supported formats.
</desc>
<param name="formats" type="wstring" safearray="yes" dir="in">
<desc>Collection of formats to add.</desc>
</param>
</method>
<method name="removeFormats" >
<desc>
Removes MIME / Content-type formats from the supported formats.
</desc>
<param name="formats" type="wstring" safearray="yes" dir="in">
<desc>Collection of formats to remove.</desc>
</param>
</method>
</interface>
<interface
name="IDnDSource" extends="IDnDBase"
uuid="d23a9ca3-42da-c94b-8aec-21968e08355d"
wsmap="managed"
reservedMethods="1" reservedAttributes="2"
>
<desc>Abstract interface for handling drag'n drop sources.</desc>
<method name="dragIsPending">
<desc>
Ask the source if there is any drag and drop operation pending.
If no drag and drop operation is pending currently, DnDAction_Ignore is returned.
<result name="VBOX_E_VM_ERROR">
VMM device is not available.
</result>
</desc>
<param name="screenId" type="unsigned long" dir="in">
<desc>The screen ID where the drag and drop event occurred.</desc>
</param>
<param name="formats" type="wstring" dir="out" safearray="yes">
<desc>On return the supported mime types.</desc>
</param>
<param name="allowedActions" type="DnDAction" dir="out" safearray="yes">
<desc>On return the actions which are allowed.</desc>
</param>
<param name="defaultAction" type="DnDAction" dir="return">
<desc>On return the default action to use.</desc>
</param>
</method>
<method name="drop">
<desc>
Informs the source that a drop event occurred for a pending
drag and drop operation.
<result name="VBOX_E_VM_ERROR">
VMM device is not available.
</result>
</desc>
<param name="format" type="wstring" dir="in">
<desc>The mime type the data must be in.</desc>
</param>
<param name="action" type="DnDAction" dir="in">
<desc>The action to use.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="receiveData">
<desc>
Receive the data of a previously drag and drop event from the source.
<result name="VBOX_E_VM_ERROR">
VMM device is not available.
</result>
</desc>
<param name="data" type="octet" safearray="yes" dir="return">
<desc>The actual data.</desc>
</param>
</method>
</interface>
<interface
name="IGuestDnDSource" extends="IDnDSource"
uuid="dedfb5d9-4c1b-edf7-fdf3-c1be6827dc28"
wsmap="managed"
>
<desc>
Implementation of the <link to="IDnDSource" /> object
for source drag'n drop operations on the guest.
</desc>
<attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/>
</interface>
<interface
name="IDnDTarget" extends="IDnDBase"
uuid="ff5befc3-4ba3-7903-2aa4-43988ba11554"
wsmap="managed"
reservedMethods="1" reservedAttributes="2"
>
<desc>Abstract interface for handling drag'n drop targets.</desc>
<method name="enter">
<desc>
Informs the target about a drag and drop enter event.
<result name="VBOX_E_VM_ERROR">
VMM device is not available.
</result>
</desc>
<param name="screenId" type="unsigned long" dir="in">
<desc>The screen ID where the drag and drop event occurred.</desc>
</param>
<param name="y" type="unsigned long" dir="in">
<desc>Y-position of the event.</desc>
</param>
<param name="x" type="unsigned long" dir="in">
<desc>X-position of the event.</desc>
</param>
<param name="defaultAction" type="DnDAction" dir="in">
<desc>The default action to use.</desc>
</param>
<param name="allowedActions" type="DnDAction" dir="in" safearray="yes">
<desc>The actions which are allowed.</desc>
</param>
<param name="formats" type="wstring" dir="in" safearray="yes">
<desc>The supported MIME types.</desc>
</param>
<param name="resultAction" type="DnDAction" dir="return">
<desc>The resulting action of this event.</desc>
</param>
</method>
<method name="move">
<desc>
Informs the target about a drag and drop move event.
<result name="VBOX_E_VM_ERROR">
VMM device is not available.
</result>
</desc>
<param name="screenId" type="unsigned long" dir="in">
<desc>The screen ID where the drag and drop event occurred.</desc>
</param>
<param name="x" type="unsigned long" dir="in">
<desc>X-position of the event.</desc>
</param>
<param name="y" type="unsigned long" dir="in">
<desc>Y-position of the event.</desc>
</param>
<param name="defaultAction" type="DnDAction" dir="in">
<desc>The default action to use.</desc>
</param>
<param name="allowedActions" type="DnDAction" dir="in" safearray="yes">
<desc>The actions which are allowed.</desc>
</param>
<param name="formats" type="wstring" dir="in" safearray="yes">
<desc>The supported MIME types.</desc>
</param>
<param name="resultAction" type="DnDAction" dir="return">
<desc>The resulting action of this event.</desc>
</param>
</method>
<method name="leave">
<desc>
Informs the target about a drag and drop leave event.
<result name="VBOX_E_VM_ERROR">
VMM device is not available.
</result>
</desc>
<param name="screenId" type="unsigned long" dir="in">
<desc>The screen ID where the drag and drop event occurred.</desc>
</param>
</method>
<method name="drop">
<desc>
Informs the target about a drop event.
<result name="VBOX_E_VM_ERROR">
VMM device is not available.
</result>
</desc>
<param name="screenId" type="unsigned long" dir="in">
<desc>The screen ID where the Drag and Drop event occurred.</desc>
</param>
<param name="x" type="unsigned long" dir="in">
<desc>X-position of the event.</desc>
</param>
<param name="y" type="unsigned long" dir="in">
<desc>Y-position of the event.</desc>
</param>
<param name="defaultAction" type="DnDAction" dir="in">
<desc>The default action to use.</desc>
</param>
<param name="allowedActions" type="DnDAction" dir="in" safearray="yes">
<desc>The actions which are allowed.</desc>
</param>
<param name="formats" type="wstring" dir="in" safearray="yes">
<desc>The supported MIME types.</desc>
</param>
<param name="format" type="wstring" dir="out">
<desc>The resulting format of this event.</desc>
</param>
<param name="resultAction" type="DnDAction" dir="return">
<desc>The resulting action of this event.</desc>
</param>
</method>
<method name="sendData">
<desc>
Initiates sending data to the target.
<result name="VBOX_E_VM_ERROR">
VMM device is not available.
</result>
</desc>
<param name="screenId" type="unsigned long" dir="in">
<desc>The screen ID where the drag and drop event occurred.</desc>
</param>
<param name="format" type="wstring" dir="in">
<desc>The MIME type the data is in.</desc>
</param>
<param name="data" type="octet" dir="in" safearray="yes">
<desc>The actual data.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="cancel">
<desc>
Requests cancelling the current operation. The target can veto
the request in case the operation is not cancelable at the moment.
<result name="VBOX_E_VM_ERROR">
VMM device is not available.
</result>
</desc>
<param name="veto" type="boolean" dir="return">
<desc>Whether the target has vetoed cancelling the operation.</desc>
</param>
</method>
</interface>
<interface
name="IGuestDnDTarget" extends="IDnDTarget"
uuid="50ce4b51-0ff7-46b7-a138-3c6e5ac946b4"
wsmap="managed"
>
<desc>
Implementation of the <link to="IDnDTarget" /> object
for target drag'n drop operations on the guest.
</desc>
<attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/>
</interface>
<interface
name="IGuestSession" extends="$unknown"
uuid="234f0627-866d-48c2-91a5-4c9d50f04928"
wsmap="managed"
reservedMethods="8" reservedAttributes="12"
>
<desc>
A guest session represents one impersonated user account in the guest, so
every operation will use the same credentials specified when creating
the session object via <link to="IGuest::createSession"/>.
There can be a maximum of 32 sessions at once per VM, whereas session 0
always is reserved for the root session (the root session is part of that
limit).
This root session is controlling all other guest sessions and also is
responsible for actions which require system level privileges.
Each guest session keeps track of the guest directories and files that
it opened as well as guest processes it has created. To work on guest
files or directories a guest session offers methods to open or create
such objects (see <link to="IGuestSession::fileOpen"/> or
<link to="IGuestSession::directoryOpen"/> for instance). Similarly,
there a methods for creating guest processes.
There can be up to 2048 objects (guest processes, files and directories)
a time per guest session. Exceeding the limit will result in an error (see
the corresponding functions for more).
When done with either of these objects, including the guest session itself,
use the appropriate close() method to let the object do its cleanup work.
Closing a session via <link to="IGuestSession::close" /> will try to close
all the mentioned objects above unless these objects are still used by
a client.
A set of environment variables changes is associated with each session
(<link to="IGuestSession::environmentChanges"/>). These are applied to
the base environment of the impersonated guest user when creating a new
guest process. For additional flexibility the <link to="IGuestSession::processCreate"/>
and <link to="IGuestSession::processCreateEx"/> methods allows you to
specify individual environment changes for each process you create.
With newer guest addition versions, the base environment is also made
available via <link to="IGuestSession::environmentBase"/>. (One reason
for why we record changes to a base environment instead of working
directly on an environment block is that we need to be compatible
with older Guest Additions. Another reason is that this way it is always
possible to undo all the changes you've scheduled.)
</desc>
<attribute name="user" type="wstring" readonly="yes">
<desc>Returns the user name used by this session to impersonate
users in the guest.
</desc>
</attribute>
<attribute name="domain" type="wstring" readonly="yes">
<desc>Returns the domain name used by this session to impersonate
users in the guest.
</desc>
</attribute>
<attribute name="name" type="wstring" readonly="yes">
<desc>Returns the session's friendly name.</desc>
</attribute>
<attribute name="id" type="unsigned long" readonly="yes">
<desc>Returns the internal session ID.</desc>
</attribute>
<attribute name="timeout" type="unsigned long">
<desc>
<!-- r=bird: Using 'Returns' for writable attributes is misleading. -->
Returns the session timeout (in ms).
<result name="E_NOTIMPL">
This attribute is not implemented yet.
</result>
</desc>
</attribute>
<attribute name="protocolVersion" type="unsigned long" readonly="yes">
<desc>Returns the protocol version which is used by this session to
communicate with the guest.</desc>
</attribute>
<attribute name="status" type="GuestSessionStatus" readonly="yes">
<desc>Returns the current session status.</desc>
</attribute>
<attribute name="environmentChanges" type="wstring" safearray="yes">
<desc>
The set of scheduled environment changes to the base environment of the
session. They are in putenv format, i.e. "VAR=VALUE" for setting and
"VAR" for unsetting. One entry per variable (change). The changes are
applied when creating new guest processes.
This is writable, so to undo all the scheduled changes, assign it an
empty array.
</desc>
</attribute>
<attribute name="environmentBase" type="wstring" safearray="yes" readonly="yes">
<desc>
The base environment of the session. They are on the "VAR=VALUE" form,
one array entry per variable.
<!-- @todo/TODO/FIXME: This doesn't end up in the PDF.
<result name="VBOX_E_NOT_SUPPORTED">If the Guest Additions does not
support the session base environment feature. Support for this was
introduced with protocol version XXX.</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">If the Guest Additions has
yet to report the session base environment.</result> -->
Access fails with VBOX_E_NOT_SUPPORTED if the Guest Additions does not
support the session base environment feature. Support for this was
introduced with protocol version XXXX.
Access fails with VBOX_E_INVALID_OBJECT_STATE if the Guest Additions
has yet to report the session base environment.
</desc>
</attribute>
<attribute name="processes" type="IGuestProcess" readonly="yes" safearray="yes">
<desc>
Returns all current guest processes.
</desc>
</attribute>
<attribute name="pathStyle" type="PathStyle" readonly="yes">
<desc>
The style of paths used by the guest. Handy for giving the right kind
of path specifications to <link to="IGuestSession::fileOpen"/> and similar methods.
</desc>
</attribute>
<attribute name="currentDirectory" type="wstring">
<desc>
Gets or sets the current directory of the session. Guest path style.
<result name="E_NOTIMPL">
This attribute is not implemented yet.
</result>
</desc>
</attribute>
<attribute name="userHome" type="wstring" readonly="yes">
<desc>
Returns the user's home / profile directory. Guest path style.
</desc>
</attribute>
<attribute name="userDocuments" type="wstring" readonly="yes">
<desc>
Returns the user's documents directory. Guest path style.
</desc>
</attribute>
<attribute name="directories" type="IGuestDirectory" readonly="yes" safearray="yes">
<desc>
Returns all currently opened guest directories.
</desc>
</attribute>
<attribute name="files" type="IGuestFile" readonly="yes" safearray="yes">
<desc>
Returns all currently opened guest files.
</desc>
</attribute>
<attribute name="eventSource" type="IEventSource" readonly="yes">
<desc>
Event source for guest session events.
</desc>
</attribute>
<method name="close">
<desc>
Closes this session. All opened guest directories, files and
processes which are not referenced by clients anymore will be
closed. Guest processes which fall into this category and still
are running in the guest will be terminated automatically.
</desc>
</method>
<method name="copyFromGuest">
<desc>
Copies directories and/or files from guest to the host.
This function requires several parallel arrays to be supplied, one
set for each source.
</desc>
<param name="sources" type="wstring" dir="in" safearray="yes">
<desc>Paths to directories and/or files on the guest side that should be
copied to the host. If the path ends with a path delimiter, only
the directory's content is being copied. Guest path style.</desc>
</param>
<param name="filters" type="wstring" dir="in" safearray="yes">
<desc>Array of source filters. This uses the
DOS/NT style wildcard characters '?' and '*'.</desc>
</param>
<param name="flags" type="wstring" dir="in" safearray="yes">
<desc>Array of comma-separated list of source flags.
The following flags are available:
<dl>
<dt><tt>CopyIntoExisting</tt></dt>
<dd>Allow copying into an existing destination directory.</dd>
<dt><tt>NoReplace</tt></dt>
<dd>Do not replace any existing destination files on
the destination.</dd>
<dt><tt>FollowLinks</tt></dt>
<dd>Follows (and handles) (symbolic) links.</dd>
<dt><tt>Update</tt></dt>
<dd>Only copy when the source file is newer than the destination
file or when the destination file is missing.</dd>
</dl>
</desc>
</param>
<param name="destination" type="wstring" dir="in">
<desc>Where to put the sources on the host. Host path style.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation to completion.</desc>
</param>
</method>
<method name="copyToGuest">
<desc>
Copies directories and/or files from host to the guest.
This function requires several parallel arrays to be supplied, one
set for each source.
</desc>
<param name="sources" type="wstring" dir="in" safearray="yes">
<desc>Paths to directories and/or files on the host side that should be
copied to the guest. If the path ends with a path delimiter, only
the directory's content is being copied. Host path style.</desc>
</param>
<param name="filters" type="wstring" dir="in" safearray="yes">
<desc>Array of source filters. This uses the
DOS/NT style wildcard characters '?' and '*'.</desc>
</param>
<param name="flags" type="wstring" dir="in" safearray="yes">
<desc>Array of comma-separated list of source flags.
The following flags are available:
<dl>
<dt><tt>CopyIntoExisting</tt></dt>
<dd>Allow copying into an existing destination directory.</dd>
<dt><tt>NoReplace</tt></dt>
<dd>Do not replace any existing destination files on
the destination.</dd>
<dt><tt>FollowLinks</tt></dt>
<dd>Follows (and handles) (symbolic) links.</dd>
<dt><tt>Update</tt></dt>
<dd>Only copy when the source file is newer than the destination
file or when the destination file is missing.</dd>
</dl>
</desc>
</param>
<param name="destination" type="wstring" dir="in">
<desc>Where to put the sources on the guest. Guest path style.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation to completion.</desc>
</param>
</method>
<!-- Directory related methods. -->
<method name="directoryCopy">
<desc>
Recursively copies a directory from one guest location to another.
<result name="E_NOTIMPL">
Not yet implemented.
</result>
</desc>
<param name="source" type="wstring" dir="in">
<desc>The path to the directory to copy (in the guest). Guest path style.</desc>
</param>
<param name="destination" type="wstring" dir="in">
<desc>The path to the target directory (in the guest). Unless the
<link to="DirectoryCopyFlag_CopyIntoExisting"/> flag is given, the
directory shall not already exist. Guest path style.</desc>
</param>
<param name="flags" type="DirectoryCopyFlag" dir="in" safearray="yes">
<desc>Zero or more <link to="DirectoryCopyFlag"/> values.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation to completion.</desc>
</param>
</method>
<method name="directoryCopyFromGuest">
<desc>
Recursively copies a directory from the guest to the host.
</desc>
<param name="source" type="wstring" dir="in">
<desc>Path to the directory on the guest side that should be copied to
the host. Guest path style.</desc>
</param>
<param name="destination" type="wstring" dir="in">
<desc>Where to put the directory on the host. Unless the
<link to="DirectoryCopyFlag_CopyIntoExisting"/> flag is given, the
directory shall not already exist. Host path style.</desc>
</param>
<param name="flags" type="DirectoryCopyFlag" dir="in" safearray="yes">
<desc>Zero or more <link to="DirectoryCopyFlag"/> values.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation to completion.</desc>
</param>
</method>
<method name="directoryCopyToGuest">
<desc>
Recursively copies a directory from the host to the guest.
</desc>
<param name="source" type="wstring" dir="in">
<desc>Path to the directory on the host side that should be copied to
the guest. Host path style.</desc>
</param>
<param name="destination" type="wstring" dir="in">
<desc>Where to put the file in the guest. Unless the
<link to="DirectoryCopyFlag_CopyIntoExisting"/> flag is given, the
directory shall not already exist. Guest style path.</desc>
</param>
<param name="flags" type="DirectoryCopyFlag" dir="in" safearray="yes">
<desc>Zero or more <link to="DirectoryCopyFlag"/> values.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation to completion.</desc>
</param>
</method>
<method name="directoryCreate">
<desc>
Creates a directory in the guest.
<result name="VBOX_E_IPRT_ERROR">
Error while creating the directory.
</result>
</desc>
<param name="path" type="wstring" dir="in">
<desc>Path to the directory directory to be created. Guest path style.</desc>
</param>
<param name="mode" type="unsigned long" dir="in">
<desc>
The UNIX-style access mode mask to create the directory with.
Whether/how all three access groups and associated access rights are
realized is guest OS dependent. The API does the best it can on each
OS.
</desc>
</param>
<param name="flags" type="DirectoryCreateFlag" dir="in" safearray="yes">
<desc>Zero or more <link to="DirectoryCreateFlag"/> flags.</desc>
</param>
</method>
<method name="directoryCreateTemp">
<desc>
Creates a temporary directory in the guest.
<result name="VBOX_E_NOT_SUPPORTED">
The operation is not possible as requested on this particular
guest type.
</result>
<result name="E_INVALIDARG">
Invalid argument. This includes an incorrectly formatted template,
or a non-absolute path.
</result>
<result name="VBOX_E_IPRT_ERROR">
The temporary directory could not be created. Possible reasons
include a non-existing path or an insecure path when the secure
option was requested.
</result>
</desc>
<param name="templateName" type="wstring" dir="in">
<desc>Template for the name of the directory to create. This must
contain at least one 'X' character. The first group of consecutive
'X' characters in the template will be replaced by a random
alphanumeric string to produce a unique name.</desc>
</param>
<param name="mode" type="unsigned long" dir="in">
<desc>
The UNIX-style access mode mask to create the directory with.
Whether/how all three access groups and associated access rights are
realized is guest OS dependent. The API does the best it can on each
OS.
This parameter is ignored if the @a secure parameter is set to @c true.
<note>It is strongly recommended to use 0700.</note>
</desc>
</param>
<param name="path" type="wstring" dir="in">
<desc>The path to the directory in which the temporary directory should
be created. Guest path style.</desc>
</param>
<param name="secure" type="boolean" dir="in">
<desc>
Whether to fail if the directory can not be securely created.
Currently this means that another unprivileged user cannot
manipulate the path specified or remove the temporary directory
after it has been created. Also causes the mode specified to be
ignored. May not be supported on all guest types.
</desc>
</param>
<param name="directory" type="wstring" dir="return">
<desc>On success this will contain the full path to the created
directory. Guest path style.</desc>
</param>
</method>
<method name="directoryExists">
<desc>
Checks whether a directory exists in the guest or not.
<result name="VBOX_E_IPRT_ERROR">
Error while checking existence of the directory specified.
</result>
</desc>
<param name="path" type="wstring" dir="in">
<desc>Path to the directory to check if exists. Guest path style.</desc>
</param>
<param name="followSymlinks" type="boolean" dir="in">
<desc>
If @c true, symbolic links in the final component will be followed
and the existance of the symlink target made the question for this method.
If @c false, a symbolic link in the final component will make the
method return @c false (because a symlink isn't a directory).
</desc>
</param>
<param name="exists" type="boolean" dir="return">
<desc>Returns @c true if the directory exists, @c false if not, or is not a directory.</desc>
</param>
</method>
<method name="directoryOpen">
<desc>
Opens a directory in the guest and creates a <link to="IGuestDirectory"/>
object that can be used for further operations.
<note>This method follows symbolic links by default at the moment, this
may change in the future.</note>
<note>One idiosyncrasy of the current implementation is that you will NOT
get VBOX_E_OBJECT_NOT_FOUND returned here if the directory doesn't exist.
Instead the read function will fail with VBOX_E_IPRT_ERROR. This will
be fixed soon.</note>
<result name="VBOX_E_OBJECT_NOT_FOUND">
Directory to open was not found.
</result>
<result name="VBOX_E_IPRT_ERROR">
Error while opening the directory.
</result>
<result name="VBOX_E_MAXIMUM_REACHED">
The maximum of concurrent guest directories has been reached.
</result>
</desc>
<param name="path" type="wstring" dir="in">
<desc>Path to the directory to open. Guest path style.</desc>
</param>
<param name="filter" type="wstring" dir="in">
<desc>Optional directory listing filter to apply. This uses the DOS/NT
style wildcard characters '?' and '*'.</desc>
</param>
<param name="flags" type="DirectoryOpenFlag" dir="in" safearray="yes">
<desc>Zero or more <link to="DirectoryOpenFlag"/> flags.</desc>
</param>
<param name="directory" type="IGuestDirectory" dir="return">
<desc><link to="IGuestDirectory"/> object containing the opened directory.</desc>
</param>
</method>
<method name="directoryRemove">
<desc>
Removes a guest directory if empty.
<note>Symbolic links in the final component will not be followed,
instead an not-a-directory error is reported.</note>
</desc>
<param name="path" type="wstring" dir="in">
<desc>Path to the directory that should be removed. Guest path style.</desc>
</param>
</method>
<method name="directoryRemoveRecursive">
<desc>
Removes a guest directory recursively.
<!-- Add this back when the warning can be removed:
Unless <link to="DirectoryRemoveRecFlag_ContentAndDir"/> or
<link to="DirectoryRemoveRecFlag_ContentOnly"/> is given, only the
directory structure is removed. Which means it will fail if there are
directories which are not empty in the directory tree @a path points to.
-->
<note> WARNING!! THE FLAGS ARE NOT CURRENTLY IMPLEMENTED. THE IMPLEMENTATION
WORKS AS IF FLAGS WAS SET TO <link to="DirectoryRemoveRecFlag_ContentAndDir"/>.
</note>
<note>If the final path component is a symbolic link, this method will
fail as it can only be applied to directories.</note>
</desc>
<param name="path" type="wstring" dir="in">
<desc>Path of the directory that is to be removed recursively. Guest
path style.</desc>
</param>
<param name="flags" type="DirectoryRemoveRecFlag" dir="in" safearray="yes">
<desc>Zero or more <link to="DirectoryRemoveRecFlag"/> flags.
<note>WARNING! SPECIFYING <link to="DirectoryRemoveRecFlag_ContentAndDir"/> IS
MANDATORY AT THE MOMENT!!</note>
</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion. This is not implemented
yet and therefore this method call will block until deletion is completed.</desc>
</param>
</method>
<!-- Environment related methods. -->
<method name="environmentScheduleSet">
<desc>
Schedules setting an environment variable when creating the next guest
process. This affects the <link to="IGuestSession::environmentChanges"/>
attribute.
</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of the environment variable to set. This cannot be empty
nor can it contain any equal signs.</desc>
</param>
<param name="value" type="wstring" dir="in">
<desc>Value to set the session environment variable to.</desc>
</param>
</method>
<method name="environmentScheduleUnset">
<desc>
Schedules unsetting (removing) an environment variable when creating
the next guest process. This affects the
<link to="IGuestSession::environmentChanges"/> attribute.
</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of the environment variable to unset. This cannot be empty
nor can it contain any equal signs.</desc>
</param>
</method>
<method name="environmentGetBaseVariable">
<desc>
Gets an environment variable from the session's base environment
(<link to="IGuestSession::environmentBase"/>).
<result name="VBOX_E_NOT_SUPPORTED">If the Guest Additions does not
support the session base environment feature. Support for this was
introduced with protocol version XXXX.</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">If the Guest Additions has
yet to report the session base environment.</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of the environment variable to get.This cannot be empty
nor can it contain any equal signs.</desc>
</param>
<param name="value" type="wstring" dir="return">
<desc>
The value of the variable. Empty if not found. To deal with
variables that may have empty values, use
<link to="IGuestSession::environmentDoesBaseVariableExist"/>.
</desc>
</param>
</method>
<method name="environmentDoesBaseVariableExist">
<desc>
Checks if the given environment variable exists in the session's base
environment (<link to="IGuestSession::environmentBase"/>).
<result name="VBOX_E_NOT_SUPPORTED">If the Guest Additions does not
support the session base environment feature. Support for this was
introduced with protocol version XXXX.</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">If the Guest Additions has
yet to report the session base environment.</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of the environment variable to look for. This cannot be
empty nor can it contain any equal signs.</desc>
</param>
<param name="exists" type="boolean" dir="return">
<desc>TRUE if the variable exists, FALSE if not.</desc>
</param>
</method>
<!-- File related methods. -->
<method name="fileCopy">
<desc>
Copies a file from one guest location to another.
<note>Will overwrite the destination file unless
<link to="FileCopyFlag_NoReplace"/> is specified.</note>
<result name="E_NOTIMPL">
Not yet implemented.
</result>
</desc>
<param name="source" type="wstring" dir="in">
<desc>The path to the file to copy (in the guest). Guest path style.</desc>
</param>
<param name="destination" type="wstring" dir="in">
<desc>The path to the target file (in the guest). This cannot be a
directory. Guest path style.</desc>
</param>
<param name="flags" type="FileCopyFlag" dir="in" safearray="yes">
<desc>Zero or more <link to="FileCopyFlag"/> values.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation to completion.</desc>
</param>
</method>
<method name="fileCopyFromGuest">
<desc>
Copies a file from the guest to the host.
<note>Will overwrite the destination file unless
<link to="FileCopyFlag_NoReplace"/> is specified.</note>
<result name="VBOX_E_IPRT_ERROR">
Error starting the copy operation.
</result>
</desc>
<param name="source" type="wstring" dir="in">
<desc>Path to the file on the guest side that should be copied to the
host. Guest path style.</desc>
</param>
<param name="destination" type="wstring" dir="in">
<desc>Where to put the file on the host (file, not directory). Host
path style.</desc>
</param>
<param name="flags" type="FileCopyFlag" dir="in" safearray="yes">
<desc>Zero or more <link to="FileCopyFlag"/> values.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation to completion.</desc>
</param>
</method>
<method name="fileCopyToGuest">
<desc>
Copies a file from the host to the guest.
<note>Will overwrite the destination file unless
<link to="FileCopyFlag_NoReplace"/> is specified.</note>
<result name="VBOX_E_IPRT_ERROR">
Error starting the copy operation.
</result>
</desc>
<param name="source" type="wstring" dir="in">
<desc>Path to the file on the host side that should be copied to the
guest. Host path style.</desc>
</param>
<param name="destination" type="wstring" dir="in">
<desc>Where to put the file in the guest (file, not directory). Guest
style path.</desc>
</param>
<param name="flags" type="FileCopyFlag" dir="in" safearray="yes">
<desc>Zero or more <link to="FileCopyFlag"/> values.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation to completion.</desc>
</param>
</method>
<method name="fileCreateTemp">
<desc>
Creates a temporary file in the guest.
<result name="VBOX_E_NOT_SUPPORTED">
The operation is not possible as requested on this particular
guest OS.
</result>
<result name="E_INVALIDARG">
Invalid argument. This includes an incorrectly formatted template,
or a non-absolute path.
</result>
<result name="VBOX_E_IPRT_ERROR">
The temporary file could not be created. Possible reasons include
a non-existing path or an insecure path when the secure
option was requested.
</result>
</desc>
<param name="templateName" type="wstring" dir="in">
<desc>Template for the name of the file to create. This must contain
at least one 'X' character. The first group of consecutive 'X'
characters in the template will be replaced by a random
alphanumeric string to produce a unique name.
</desc>
</param>
<param name="mode" type="unsigned long" dir="in">
<desc>
The UNIX-style access mode mask to create the file with.
Whether/how all three access groups and associated access rights are
realized is guest OS dependent. The API does the best it can on each
OS.
This parameter is ignore if the @a secure parameter is set to @c true.
<note>It is strongly recommended to use 0600.</note>
</desc>
</param>
<param name="path" type="wstring" dir="in">
<desc>The path to the directory in which the temporary file should be
created.</desc>
</param>
<param name="secure" type="boolean" dir="in">
<desc>Whether to fail if the file can not be securely created.
Currently this means that another unprivileged user cannot
manipulate the path specified or remove the temporary file after
it has been created. Also causes the mode specified to be ignored.
May not be supported on all guest types.</desc>
</param>
<param name="file" type="IGuestFile" dir="return">
<desc>On success this will contain an open file object for the new
temporary file.
</desc>
</param>
</method>
<method name="fileExists">
<desc>
Checks whether a regular file exists in the guest or not.
<result name="VBOX_E_IPRT_ERROR">
Error while checking existence of the file specified.
</result>
</desc>
<param name="path" type="wstring" dir="in">
<desc>Path to the alleged regular file. Guest path style.</desc>
</param>
<param name="followSymlinks" type="boolean" dir="in">
<desc>
If @c true, symbolic links in the final component will be followed
and the existance of the symlink target made the question for this method.
If @c false, a symbolic link in the final component will make the
method return @c false (because a symlink isn't a regular file).
</desc>
</param>
<param name="exists" type="boolean" dir="return">
<desc>Returns @c true if the file exists, @c false if not. @c false is
also return if this @a path does not point to a file object.</desc>
</param>
</method>
<method name="fileOpen">
<desc>
Opens a file and creates a <link to="IGuestFile"/> object that
can be used for further operations.
<result name="VBOX_E_OBJECT_NOT_FOUND">
File to open was not found.
</result>
<result name="VBOX_E_IPRT_ERROR">
Error while opening the file.
</result>
<result name="VBOX_E_MAXIMUM_REACHED">
The maximum of concurrent guest files has been reached.
</result>
</desc>
<param name="path" type="wstring" dir="in">
<desc>Path to file to open. Guest path style.</desc>
</param>
<param name="accessMode" type="FileAccessMode" dir="in">
<desc>The file access mode (read, write and/or append).
See <link to="FileAccessMode"/> for details.</desc>
</param>
<param name="openAction" type="FileOpenAction" dir="in">
<desc>What action to take depending on whether the file exists or not.
See <link to="FileOpenAction"/> for details.</desc>
</param>
<param name="creationMode" type="unsigned long" dir="in">
<desc>
The UNIX-style access mode mask to create the file with if @a openAction
requested the file to be created (otherwise ignored). Whether/how all
three access groups and associated access rights are realized is guest
OS dependent. The API does the best it can on each OS.
</desc>
</param>
<param name="file" type="IGuestFile" dir="return">
<desc><link to="IGuestFile"/> object representing the opened file.</desc>
</param>
</method>
<method name="fileOpenEx">
<desc>
Opens a file and creates a <link to="IGuestFile"/> object that
can be used for further operations, extended version.
<result name="VBOX_E_OBJECT_NOT_FOUND">
File to open was not found.
</result>
<result name="VBOX_E_IPRT_ERROR">
Error while opening the file.
</result>
</desc>
<param name="path" type="wstring" dir="in">
<desc>Path to file to open. Guest path style.</desc>
</param>
<param name="accessMode" type="FileAccessMode" dir="in">
<desc>The file access mode (read, write and/or append).
See <link to="FileAccessMode"/> for details.</desc>
</param>
<param name="openAction" type="FileOpenAction" dir="in">
<desc>What action to take depending on whether the file exists or not.
See <link to="FileOpenAction"/> for details.</desc>
</param>
<param name="sharingMode" type="FileSharingMode" dir="in">
<desc>The file sharing mode in the guest. This parameter is currently
ignore for all guest OSes. It will in the future be implemented for
Windows, OS/2 and maybe Solaris guests only, the others will ignore it.
Use <link to="FileSharingMode_All"/>.
</desc>
</param>
<param name="creationMode" type="unsigned long" dir="in">
<desc>
The UNIX-style access mode mask to create the file with if @a openAction
requested the file to be created (otherwise ignored). Whether/how all
three access groups and associated access rights are realized is guest
OS dependent. The API does the best it can on each OS.
</desc>
</param>
<param name="flags" type="FileOpenExFlag" dir="in" safearray="yes">
<desc>Zero or more <link to="FileOpenExFlag"/> values. </desc>
</param>
<param name="file" type="IGuestFile" dir="return">
<desc><link to="IGuestFile"/> object representing the opened file.</desc>
</param>
</method>
<method name="fileQuerySize">
<desc>
Queries the size of a regular file in the guest.
<result name="VBOX_E_OBJECT_NOT_FOUND">
File to was not found.
</result>
<result name="VBOX_E_IPRT_ERROR">
Error querying file size.
</result>
</desc>
<param name="path" type="wstring" dir="in">
<desc>Path to the file which size is requested. Guest path style.</desc>
</param>
<param name="followSymlinks" type="boolean" dir="in">
<desc>
It @c true, symbolic links in the final path component will be
followed to their target, and the size of the target is returned.
If @c false, symbolic links in the final path component will make
the method call fail (symblink is not a regular file).
</desc>
</param>
<param name="size" type="long long" dir="return">
<desc>Queried file size.</desc>
</param>
</method>
<!-- File System Object Level -->
<method name="fsObjExists">
<desc>
Checks whether a file system object (file, directory, etc) exists in
the guest or not.
<result name="VBOX_E_IPRT_ERROR">
Error while checking existence of the file specified.
</result>
</desc>
<param name="path" type="wstring" dir="in">
<desc>Path to the file system object to check the existance of. Guest
path style.</desc>
</param>
<param name="followSymlinks" type="boolean" dir="in">
<desc>
If @c true, symbolic links in the final component will be followed
and the method will instead check if the target exists.
If @c false, symbolic links in the final component will satisfy the
method and it will return @c true in @a exists.
</desc>
</param>
<param name="exists" type="boolean" dir="return">
<desc>Returns @c true if the file exists, @c false if not.</desc>
</param>
</method>
<method name="fsObjQueryInfo">
<desc>
Queries information about a file system object (file, directory, etc)
in the guest.
<result name="VBOX_E_OBJECT_NOT_FOUND">
The file system object was not found.
</result>
<result name="VBOX_E_IPRT_ERROR">
Error while querying information.
</result>
</desc>
<param name="path" type="wstring" dir="in">
<desc>Path to the file system object to gather information about.
Guest path style.</desc>
</param>
<param name="followSymlinks" type="boolean" dir="in">
<desc>
Information about symbolic links is returned if @c false. Otherwise,
symbolic links are followed and the returned information concerns
itself with the symlink target if @c true.
</desc>
</param>
<param name="info" type="IGuestFsObjInfo" dir="return">
<desc><link to="IGuestFsObjInfo"/> object containing the information.</desc>
</param>
</method>
<method name="fsObjRemove">
<desc>
Removes a file system object (file, symlink, etc) in the guest. Will
not work on directories, use <link to="IGuestSession::directoryRemove"/>
to remove directories.
<note>This method will remove symbolic links in the final path
component, not follow them.</note>
<result name="E_NOTIMPL">
The method has not been implemented yet.
</result>
<result name="VBOX_E_OBJECT_NOT_FOUND">
The file system object was not found.
</result>
<result name="VBOX_E_IPRT_ERROR">
For most other errors. We know this is unhelpful, will fix shortly...
</result>
</desc>
<param name="path" type="wstring" dir="in">
<desc>Path to the file system object to remove. Guest style path.</desc>
</param>
</method>
<method name="fsObjRemoveArray">
<desc>
Removes multiple file system objects (files, directories, symlinks, etc)
in the guest. Use with caution.
<note>This method is not implemented yet and will return E_NOTIMPL.</note>
<note>This method will remove symbolic links in the final path
component, not follow them.</note>
<result name="E_NOTIMPL">
The method has not been implemented yet.
</result>
</desc>
<param name="path" type="wstring" dir="in" safearray="yes">
<desc>Array of paths to the file system objects to remove. Guest style path.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation to completion.</desc>
</param>
</method>
<method name="fsObjRename">
<desc>
Renames a file system object (file, directory, symlink, etc) in the
guest.
<result name="VBOX_E_OBJECT_NOT_FOUND">
The file system object was not found.
</result>
<result name="VBOX_E_IPRT_ERROR">
For most other errors. We know this is unhelpful, will fix shortly...
</result>
</desc>
<param name="oldPath" type="wstring" dir="in">
<desc>The current path to the object. Guest path style.</desc>
</param>
<param name="newPath" type="wstring" dir="in">
<desc>The new path to the object. Guest path style.</desc>
</param>
<param name="flags" type="FsObjRenameFlag" dir="in" safearray="yes">
<desc>Zero or more <link to="FsObjRenameFlag"/> values.</desc>
</param>
</method>
<method name="fsObjMove">
<desc>
Moves a file system object (file, directory, symlink, etc) from one
guest location to another.
This differs from <link to="IGuestSession::fsObjRename"/> in that it
can move accross file system boundraries. In that case it will
perform a copy and then delete the original. For directories, this
can take a while and is subject to races.
<result name="E_NOTIMPL">
Not yet implemented.
</result>
</desc>
<param name="source" type="wstring" dir="in">
<desc>Path to the file to move. Guest path style.</desc>
</param>
<param name="destination" type="wstring" dir="in">
<desc>Where to move the file to (file, not directory). Guest path
style.</desc>
</param>
<param name="flags" type="FsObjMoveFlag" dir="in" safearray="yes">
<desc>Zero or more <link to="FsObjMoveFlag"/> values.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation to completion.</desc>
</param>
</method>
<method name="fsObjMoveArray">
<desc>
Moves file system objects (files, directories, symlinks, etc) from one
guest location to another.
<result name="E_NOTIMPL">
Not yet implemented.
</result>
</desc>
<param name="source" type="wstring" dir="in" safearray="yes">
<desc>Array of paths to the file system objects to move. Guest style path.</desc>
</param>
<param name="destination" type="wstring" dir="in">
<desc>Where to move the file system objects to (directory). Guest path
style.</desc>
</param>
<param name="flags" type="FsObjMoveFlag" dir="in" safearray="yes">
<desc>Zero or more <link to="FsObjMoveFlag"/> values.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation to completion.</desc>
</param>
</method>
<method name="fsObjCopyArray">
<desc>
Copies file system objects (files, directories, symlinks, etc) from one
guest location to another.
<result name="E_NOTIMPL">
Not yet implemented.
</result>
</desc>
<param name="source" type="wstring" dir="in" safearray="yes">
<desc>Array of paths to the file system objects to copy. Guest style path.</desc>
</param>
<param name="destination" type="wstring" dir="in">
<desc>Where to copy the file system objects to (directory). Guest path
style.</desc>
</param>
<param name="flags" type="FileCopyFlag" dir="in" safearray="yes">
<desc>Zero or more <link to="FileCopyFlag"/> values.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation to completion.</desc>
</param>
</method>
<method name="fsObjSetACL">
<desc>
Sets the access control list (ACL) of a file system object (file,
directory, etc) in the guest.
<result name="E_NOTIMPL">
The method is not implemented yet.
</result>
</desc>
<param name="path" type="wstring" dir="in">
<desc>Full path of the file system object which ACL to set.</desc>
</param>
<param name="followSymlinks" type="boolean" dir="in">
<desc>
If @c true symbolic links in the final component will be followed,
otherwise, if @c false, the method will work directly on a symbolic
link in the final component.
</desc>
</param>
<param name="acl" type="wstring" dir="in">
<desc>The ACL specification string. To-be-defined.</desc>
</param>
<param name="mode" type="unsigned long" dir="in">
<desc>UNIX-style mode mask to use if @a acl is empty. As mention in
<link to="IGuestSession::directoryCreate"/> this is realized on
a best effort basis and the exact behavior depends on the Guest OS.
</desc>
</param>
</method>
<method name="fsQueryFreeSpace">
<desc>
Returns the free space (in bytes) of a given path.
<result name="E_NOTIMPL">
The method is not implemented yet.
</result>
</desc>
<param name="path" type="wstring" dir="in">
<desc>Full path to return the free space for.</desc>
</param>
<param name="freeSpace" type="long long" dir="return">
<desc>Free space (in bytes).</desc>
</param>
</method>
<method name="fsQueryInfo">
<desc>
Returns file system information for a given path.
<result name="E_NOTIMPL">
The method is not implemented yet.
</result>
</desc>
<param name="path" type="wstring" dir="in">
<desc>Full path to return file system information for.</desc>
</param>
<param name="info" type="IGuestFsInfo" dir="return">
<desc>IGuestFsInfo object containing the information.</desc>
</param>
</method>
<!-- Process methods -->
<method name="processCreate">
<desc>
Creates a new process running in the guest. The new process will be
started asynchronously, meaning on return of this function it is not
be guaranteed that the guest process is in a started state. To wait for
successful startup, use the <link to="IProcess::waitFor"/> call.
<note>
Starting at VirtualBox 4.2 guest process execution by is default limited
to serve up to 255 guest processes at a time. If all 255 guest processes
are active and running, creating a new guest process will result in an
error.
If ProcessCreateFlag_WaitForStdOut and/or ProcessCreateFlag_WaitForStdErr
are set, the guest process will not enter the terminated state until
all data from the specified streams have been read read.
</note>
<result name="VBOX_E_IPRT_ERROR">
Error creating guest process.
</result>
<result name="VBOX_E_MAXIMUM_REACHED">
The maximum of concurrent guest processes has been reached.
</result>
</desc>
<param name="executable" type="wstring" dir="in">
<desc>
Full path to the file to execute in the guest. The file has to
exists in the guest VM with executable right to the session user in
order to succeed. If empty/null, the first entry in the
@a arguments array will be used instead (i.e. argv[0]).
</desc>
</param>
<param name="arguments" type="wstring" dir="in" safearray="yes">
<desc>Array of arguments passed to the new process.
<note>
Starting with VirtualBox 5.0 this array starts with argument 0
instead of argument 1 as in previous versions. Whether the zeroth
argument can be passed to the guest depends on the VBoxService
version running there. If you depend on this, check that the
<link to="IGuestSession::protocolVersion"/> is 3 or higher.
</note>
</desc>
</param>
<param name="environmentChanges" type="wstring" dir="in" safearray="yes">
<desc>
Set of environment changes to complement
<link to="IGuestSession::environmentChanges"/>. Takes precedence
over the session ones. The changes are in putenv format, i.e.
"VAR=VALUE" for setting and "VAR" for unsetting.
The changes are applied to the base environment of the impersonated
guest user (<link to="IGuestSession::environmentBase"/>) when
creating the process. (This is done on the guest side of things in
order to be compatible with older Guest Additions. That is one of
the motivations for not passing in the whole environment here.)
</desc>
</param>
<param name="flags" type="ProcessCreateFlag" dir="in" safearray="yes">
<desc>
Process creation flags;
see <link to="ProcessCreateFlag"/> for more information.
</desc>
</param>
<param name="timeoutMS" type="unsigned long" dir="in">
<desc>
Timeout (in ms) for limiting the guest process' running time.
Pass 0 for an infinite timeout. On timeout the guest process will be
killed and its status will be put to an appropriate value. See
<link to="ProcessStatus"/> for more information.
</desc>
</param>
<param name="guestProcess" type="IGuestProcess" dir="return">
<desc>Guest process object of the newly created process.</desc>
</param>
</method>
<method name="processCreateEx">
<desc>
Creates a new process running in the guest with the extended options
for setting the process priority and affinity.
See <link to="IGuestSession::processCreate"/> for more information.
</desc>
<param name="executable" type="wstring" dir="in">
<desc>
Full path to the file to execute in the guest. The file has to
exists in the guest VM with executable right to the session user in
order to succeed. If empty/null, the first entry in the
@a arguments array will be used instead (i.e. argv[0]).
</desc>
</param>
<param name="arguments" type="wstring" dir="in" safearray="yes">
<desc>Array of arguments passed to the new process.
<note>
Starting with VirtualBox 5.0 this array starts with argument 0
instead of argument 1 as in previous versions. Whether the zeroth
argument can be passed to the guest depends on the VBoxService
version running there. If you depend on this, check that the
<link to="IGuestSession::protocolVersion"/> is 3 or higher.
</note>
</desc>
</param>
<param name="environmentChanges" type="wstring" dir="in" safearray="yes">
<desc>
Set of environment changes to complement
<link to="IGuestSession::environmentChanges"/>. Takes precedence
over the session ones. The changes are in putenv format, i.e.
"VAR=VALUE" for setting and "VAR" for unsetting.
The changes are applied to the base environment of the impersonated
guest user (<link to="IGuestSession::environmentBase"/>) when
creating the process. (This is done on the guest side of things in
order to be compatible with older Guest Additions. That is one of
the motivations for not passing in the whole environment here.)
</desc>
</param>
<param name="flags" type="ProcessCreateFlag" dir="in" safearray="yes">
<desc>
Process creation flags, see <link to="ProcessCreateFlag"/> for
detailed description of available flags.
</desc>
</param>
<param name="timeoutMS" type="unsigned long" dir="in">
<desc>
Timeout (in ms) for limiting the guest process' running time.
Pass 0 for an infinite timeout. On timeout the guest process will be
killed and its status will be put to an appropriate value. See
<link to="ProcessStatus"/> for more information.
</desc>
</param>
<param name="priority" type="ProcessPriority" dir="in">
<desc>
Process priority to use for execution, see <link to="ProcessPriority"/>
for available priority levels.
<note>This is silently ignored if not supported by Guest Additions.</note>
</desc>
</param>
<param name="affinity" type="long" dir="in" safearray="yes">
<desc>
Processor affinity to set for the new process. This is a list of
guest CPU numbers the process is allowed to run on.
<note>
This is silently ignored if the guest does not support setting the
affinity of processes, or if the Guest Additions does not implemet
this feature.
</note>
</desc>
</param>
<param name="guestProcess" type="IGuestProcess" dir="return">
<desc>Guest process object of the newly created process.</desc>
</param>
</method>
<method name="processGet">
<desc>
Gets a certain guest process by its process ID (PID).
</desc>
<param name="pid" type="unsigned long" dir="in">
<desc>Process ID (PID) to get guest process for.</desc>
</param>
<param name="guestProcess" type="IGuestProcess" dir="return">
<desc>Guest process of specified process ID (PID).</desc>
</param>
</method>
<!-- Symbolic link methods -->
<method name="symlinkCreate">
<desc>
Creates a symbolic link in the guest.
<result name="E_NOTIMPL">
The method is not implemented yet.
</result>
</desc>
<param name="symlink" type="wstring" dir="in">
<desc>Path to the symbolic link that should be created. Guest path
style.</desc>
</param>
<param name="target" type="wstring" dir="in">
<desc>
The path to the symbolic link target. If not an absolute, this will
be relative to the @a symlink location at access time. Guest path
style.
</desc>
</param>
<param name="type" type="SymlinkType" dir="in">
<desc>
The symbolic link type (mainly for Windows). See <link to="SymlinkType"/>
for more information.
</desc>
</param>
</method>
<method name="symlinkExists">
<desc>
Checks whether a symbolic link exists in the guest.
<result name="E_NOTIMPL">
The method is not implemented yet.
</result>
</desc>
<param name="symlink" type="wstring" dir="in">
<desc>Path to the alleged symbolic link. Guest path style.</desc>
</param>
<param name="exists" type="boolean" dir="return">
<desc>
Returns @c true if the symbolic link exists. Returns @c false if it
does not exist, if the file system object identified by the path is
not a symbolic link, or if the object type is inaccessible to the
user, or if the @a symlink argument is empty.
</desc>
</param>
</method>
<method name="symlinkRead">
<desc>
Reads the target value of a symbolic link in the guest.
<result name="E_NOTIMPL">
The method is not implemented yet.
</result>
</desc>
<param name="symlink" type="wstring" dir="in">
<desc>Path to the symbolic link to read.</desc>
</param>
<param name="flags" type="SymlinkReadFlag" dir="in" safearray="yes">
<desc>Zero or more <link to="SymlinkReadFlag"/> values.</desc>
</param>
<param name="target" type="wstring" dir="return">
<desc>Target value of the symbolic link. Guest path style.</desc>
</param>
</method>
<!-- Session wait methods -->
<method name="waitFor">
<desc>
Waits for one or more events to happen.
</desc>
<param name="waitFor" type="unsigned long" dir="in">
<desc>
Specifies what to wait for;
see <link to="GuestSessionWaitForFlag"/> for more information.
</desc>
</param>
<param name="timeoutMS" type="unsigned long" dir="in">
<desc>
Timeout (in ms) to wait for the operation to complete.
Pass 0 for an infinite timeout.
</desc>
</param>
<param name="reason" type="GuestSessionWaitResult" dir="return">
<desc>
The overall wait result;
see <link to="GuestSessionWaitResult"/> for more information.
</desc>
</param>
</method>
<method name="waitForArray">
<desc>
Waits for one or more events to happen.
Scriptable version of <link to="#waitFor" />.
</desc>
<param name="waitFor" type="GuestSessionWaitForFlag" dir="in" safearray="yes">
<desc>
Specifies what to wait for;
see <link to="GuestSessionWaitForFlag"/> for more information.
</desc>
</param>
<param name="timeoutMS" type="unsigned long" dir="in">
<desc>
Timeout (in ms) to wait for the operation to complete.
Pass 0 for an infinite timeout.
</desc>
</param>
<param name="reason" type="GuestSessionWaitResult" dir="return">
<desc>
The overall wait result;
see <link to="GuestSessionWaitResult"/> for more information.
</desc>
</param>
</method>
</interface>
<interface
name="IProcess" extends="$unknown"
uuid="bc68370c-8a02-45f3-a07d-a67aa72756aa"
wsmap="managed"
reservedMethods="4" reservedAttributes="8"
>
<desc>
Abstract parent interface for processes handled by VirtualBox.
</desc>
<attribute name="arguments" type="wstring" readonly="yes" safearray="yes">
<desc>
The arguments this process is using for execution.
</desc>
</attribute>
<attribute name="environment" type="wstring" readonly="yes" safearray="yes">
<desc>
The initial process environment. Not yet implemented.
</desc>
</attribute>
<attribute name="eventSource" type="IEventSource" readonly="yes">
<desc>
Event source for process events.
</desc>
</attribute>
<attribute name="executablePath" type="wstring" readonly="yes">
<desc>Full path of the actual executable image.</desc>
</attribute>
<attribute name="exitCode" type="long" readonly="yes">
<desc>
The exit code. Only available when the process has been
terminated normally.
</desc>
</attribute>
<attribute name="name" type="wstring" readonly="yes">
<desc>
The friendly name of this process.
</desc>
</attribute>
<attribute name="PID" type="unsigned long" readonly="yes">
<desc>
The process ID (PID).
</desc>
</attribute>
<attribute name="status" type="ProcessStatus" readonly="yes">
<desc>
The current process status; see <link to="ProcessStatus"/>
for more information.
</desc>
</attribute>
<method name="waitFor">
<desc>
Waits for one or more events to happen.
</desc>
<param name="waitFor" type="unsigned long" dir="in">
<desc>
Specifies what to wait for;
see <link to="ProcessWaitForFlag"/> for more information.
</desc>
</param>
<param name="timeoutMS" type="unsigned long" dir="in">
<desc>
Timeout (in ms) to wait for the operation to complete.
Pass 0 for an infinite timeout.
</desc>
</param>
<param name="reason" type="ProcessWaitResult" dir="return">
<desc>
The overall wait result;
see <link to="ProcessWaitResult"/> for more information.
</desc>
</param>
</method>
<method name="waitForArray">
<desc>
Waits for one or more events to happen.
Scriptable version of <link to="#waitFor" />.
</desc>
<param name="waitFor" type="ProcessWaitForFlag" dir="in" safearray="yes">
<desc>
Specifies what to wait for;
see <link to="ProcessWaitForFlag"/> for more information.
</desc>
</param>
<param name="timeoutMS" type="unsigned long" dir="in">
<desc>
Timeout (in ms) to wait for the operation to complete.
Pass 0 for an infinite timeout.
</desc>
</param>
<param name="reason" type="ProcessWaitResult" dir="return">
<desc>
The overall wait result;
see <link to="ProcessWaitResult"/> for more information.
</desc>
</param>
</method>
<method name="read">
<desc>
Reads data from a running process.
</desc>
<param name="handle" type="unsigned long" dir="in">
<desc>Handle to read from. Usually 0 is stdin.</desc>
</param>
<param name="toRead" type="unsigned long" dir="in">
<desc>Number of bytes to read.</desc>
</param>
<param name="timeoutMS" type="unsigned long" dir="in">
<desc>
Timeout (in ms) to wait for the operation to complete.
Pass 0 for an infinite timeout.
</desc>
</param>
<param name="data" type="octet" dir="return" safearray="yes">
<desc>Array of data read.</desc>
</param>
</method>
<method name="write">
<desc>
Writes data to a running process.
</desc>
<param name="handle" type="unsigned long" dir="in">
<desc>Handle to write to. Usually 0 is stdin, 1 is stdout and 2 is stderr.</desc>
</param>
<param name="flags" type="unsigned long" dir="in">
<desc>
A combination of <link to="ProcessInputFlag"/> flags.
</desc>
</param>
<param name="data" type="octet" dir="in" safearray="yes">
<desc>
Array of bytes to write. The size of the array also specifies
how much to write.
</desc>
</param>
<param name="timeoutMS" type="unsigned long" dir="in">
<desc>
Timeout (in ms) to wait for the operation to complete.
Pass 0 for an infinite timeout.
</desc>
</param>
<param name="written" type="unsigned long" dir="return">
<desc>How many bytes were written.</desc>
</param>
</method>
<method name="writeArray">
<desc>
Writes data to a running process.
Scriptable version of <link to="#write" />.
</desc>
<param name="handle" type="unsigned long" dir="in">
<desc>Handle to write to. Usually 0 is stdin, 1 is stdout and 2 is stderr.</desc>
</param>
<param name="flags" type="ProcessInputFlag" dir="in" safearray="yes">
<desc>
A combination of <link to="ProcessInputFlag"/> flags.
</desc>
</param>
<param name="data" type="octet" dir="in" safearray="yes">
<desc>
Array of bytes to write. The size of the array also specifies
how much to write.
</desc>
</param>
<param name="timeoutMS" type="unsigned long" dir="in">
<desc>
Timeout (in ms) to wait for the operation to complete.
Pass 0 for an infinite timeout.
</desc>
</param>
<param name="written" type="unsigned long" dir="return">
<desc>How may bytes were written.</desc>
</param>
</method>
<method name="terminate">
<desc>
Terminates (kills) a running process.
<note>It can take up to 30 seconds to get a guest process killed. In
case a guest process could not be killed an appropriate error is
returned.</note>
</desc>
</method>
</interface>
<interface
name="IGuestProcess" extends="IProcess"
uuid="35cf4b3f-4453-4f3e-c9b8-5686939c80b6"
wsmap="managed"
>
<desc>
Implementation of the <link to="IProcess" /> object
for processes the host has started in the guest.
</desc>
<attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/>
</interface>
<interface
name="IDirectory" extends="$unknown"
uuid="758d7eac-e4b1-486a-8f2e-747ae346c3e9"
wsmap="managed"
reservedMethods="4" reservedAttributes="8"
>
<desc>
Abstract parent interface for directories handled by VirtualBox.
</desc>
<attribute name="directoryName" type="wstring" readonly="yes">
<desc>The path specified when opening the directory.</desc>
</attribute>
<attribute name="filter" type="wstring" readonly="yes">
<desc>Directory listing filter to (specified when opening the directory).</desc>
</attribute>
<method name="close">
<desc>
Closes this directory. After closing operations like reading the next
directory entry will not be possible anymore.
</desc>
</method>
<method name="read">
<desc>
Reads the next directory entry of this directory.
<result name="VBOX_E_OBJECT_NOT_FOUND">
No more directory entries to read.
</result>
</desc>
<param name="objInfo" type="IFsObjInfo" dir="return">
<desc>Object information of the current directory entry read. Also see
<link to="IFsObjInfo"/>.</desc>
</param>
</method>
<!-- Would be useful to add queryInfo() and setACL() here later, but at
present IPRT isn't doing a race free job with the former and doesn't
have the latter. So, let it be for now. -->
</interface>
<interface
name="IGuestDirectory" extends="IDirectory"
uuid="cc830458-4974-a19c-4dc6-cc98c2269626"
wsmap="managed"
>
<desc>
Implementation of the <link to="IDirectory" /> object
for directories in the guest.
</desc>
<attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/>
</interface>
<interface
name="IFile" extends="$unknown"
uuid="59a235ac-2f1a-4d6c-81fc-e3fa843f49ae"
wsmap="managed"
reservedMethods="4" reservedAttributes="8"
>
<desc>
Abstract parent interface for files handled by VirtualBox.
</desc>
<attribute name="eventSource" type="IEventSource" readonly="yes">
<desc>
Event source for file events.
</desc>
</attribute>
<attribute name="id" type="unsigned long" readonly="yes">
<desc>
The ID VirtualBox internally assigned to the open file.
</desc>
</attribute>
<attribute name="initialSize" type="long long" readonly="yes">
<desc>
The initial size in bytes when opened.
</desc>
</attribute>
<attribute name="offset" type="long long" readonly="yes">
<desc>
The current file position.
The file current position always applies to the <link to="IFile::read"/>
method, which updates it upon return. Same goes for the <link to="IFile::write"/>
method except when <link to="IFile::accessMode"/> is <link to="FileAccessMode_AppendOnly"/>
or <link to="FileAccessMode_AppendRead"/>, where it will always write
to the end of the file and will leave this attribute unchanged.
The <link to="IFile::seek"/> is used to change this attribute without
transfering any file data like read and write does.
<note> This will not always be correct with older Guest Additions
(version 5.2.30 and earlier, as well as versions 6.0.0 thru 6.0.8)
after a calling <link to="IFile::readAt"/> or <link to="IFile::writeAt"/>,
or after calling <link to="IFile::write"/> on a file in append mode.
The correct file offset can be obtained using <link to="IFile::seek"/>.</note>
</desc>
</attribute>
<attribute name="status" type="FileStatus" readonly="yes">
<desc>
Current file status.
</desc>
</attribute>
<!-- The following attributes just remembers the fileOpen parameters for you.
Nice for introspection and probably doesn't cost us much. -->
<attribute name="filename" type="wstring" readonly="yes">
<desc>Full path of the actual file name of this file.
<!-- r=bird: The 'actual' file name is too tough, we cannot guarentee
that on unix guests. Seeing how IGuestDirectory did things,
I'm questioning the 'Full path' part too. Not urgent to check. -->
</desc>
</attribute>
<attribute name="creationMode" type="unsigned long" readonly="yes">
<desc>The UNIX-style creation mode specified when opening the file.</desc>
</attribute>
<attribute name="openAction" type="FileOpenAction" readonly="yes">
<desc>The opening action specified when opening the file.</desc>
</attribute>
<attribute name="accessMode" type="FileAccessMode" readonly="yes">
<desc>The file access mode.</desc>
</attribute>
<method name="close">
<desc>
Closes this file. After closing operations like reading data,
writing data or querying information will not be possible anymore.
</desc>
</method>
<method name="queryInfo">
<desc>
Queries information about this file.
</desc>
<param name="objInfo" type="IFsObjInfo" dir="return">
<desc>Object information of this file. Also see
<link to="IFsObjInfo"/>.</desc>
</param>
</method>
<method name="querySize">
<!-- Can also be gotten via seek(Current, 0), but this is easier to us.
This is a query method both to match IGuestSession::fileQuerySize to
highlight that it is a value that is not cacheable as others may be
changing the file concurrently (imagine reading /var/log/messages). -->
<desc>
Queries the current file size.
</desc>
<param name="size" type="long long" dir="return">
<desc>Queried file size.</desc>
</param>
</method>
<method name="read">
<desc>
Reads data from this file.
The file current position (<link to="IFile::offset"/>) is updated on success.
</desc>
<param name="toRead" type="unsigned long" dir="in">
<desc>Number of bytes to read.</desc>
</param>
<param name="timeoutMS" type="unsigned long" dir="in">
<desc>
Timeout (in ms) to wait for the operation to complete.
Pass 0 for an infinite timeout.
</desc>
</param>
<param name="data" type="octet" dir="return" safearray="yes">
<desc>Array of data read.</desc>
</param>
</method>
<method name="readAt">
<desc>
Reads data from an offset of this file.
The file current position (<link to="IFile::offset"/>) is updated on success.
</desc>
<param name="offset" type="long long" dir="in">
<desc>Offset in bytes to start reading.</desc>
</param>
<param name="toRead" type="unsigned long" dir="in">
<desc>Number of bytes to read.</desc>
</param>
<param name="timeoutMS" type="unsigned long" dir="in">
<desc>
Timeout (in ms) to wait for the operation to complete.
Pass 0 for an infinite timeout.
</desc>
</param>
<param name="data" type="octet" dir="return" safearray="yes">
<desc>Array of data read.</desc>
</param>
</method>
<method name="seek">
<desc>
Changes the current file position of this file.
The file current position always applies to the <link to="IFile::read"/>
method. Same for the <link to="IFile::write"/> method it except when
the <link to="IFile::accessMode"/> is <link to="FileAccessMode_AppendOnly"/>
or <link to="FileAccessMode_AppendRead"/>.
</desc>
<param name="offset" type="long long" dir="in">
<desc>Offset to seek relative to the position specified by @a whence.</desc>
</param>
<param name="whence" type="FileSeekOrigin" dir="in">
<desc>
One of the <link to="FileSeekOrigin"/> seek starting points.
</desc>
</param>
<param name="newOffset" type="long long" dir="return">
<desc>The new file offset after the seek operation.</desc>
</param>
</method>
<method name="setACL">
<desc>
Sets the ACL of this file.
<result name="E_NOTIMPL">
The method is not implemented yet.
</result>
</desc>
<param name="acl" type="wstring" dir="in">
<desc>The ACL specification string. To-be-defined.</desc>
</param>
<param name="mode" type="unsigned long" dir="in">
<desc>UNIX-style mode mask to use if @a acl is empty. As mention in
<link to="IGuestSession::directoryCreate"/> this is realized on
a best effort basis and the exact behavior depends on the Guest OS.
</desc>
</param>
</method>
<method name="setSize">
<desc>
Changes the file size.
</desc>
<param name="size" type="long long" dir="in">
<desc>The new file size.</desc>
</param>
</method>
<method name="write">
<desc>
Writes bytes to this file.
The file current position (<link to="IFile::offset"/>) is updated on success.
</desc>
<param name="data" type="octet" dir="in" safearray="yes">
<desc>
Array of bytes to write. The size of the array also specifies
how much to write.
</desc>
</param>
<param name="timeoutMS" type="unsigned long" dir="in">
<desc>
Timeout (in ms) to wait for the operation to complete.
Pass 0 for an infinite timeout.
</desc>
</param>
<param name="written" type="unsigned long" dir="return">
<desc>How many bytes were written.</desc>
</param>
</method>
<method name="writeAt">
<desc>
Writes bytes at a certain offset to this file.
The file current position (<link to="IFile::offset"/>) is updated on success.
</desc>
<param name="offset" type="long long" dir="in">
<desc>Offset in bytes to start writing. If the file was opened with the
<link to="IFile::accessMode"/> set to <link to="FileAccessMode_AppendOnly"/>
or <link to="FileAccessMode_AppendRead"/>, the offset is ignored and the
write always goes to the end of the file.</desc>
</param>
<param name="data" type="octet" dir="in" safearray="yes">
<desc>
Array of bytes to write. The size of the array also specifies
how much to write.
</desc>
</param>
<param name="timeoutMS" type="unsigned long" dir="in">
<desc>
Timeout (in ms) to wait for the operation to complete.
Pass 0 for an infinite timeout.
</desc>
</param>
<param name="written" type="unsigned long" dir="return">
<desc>How many bytes were written.</desc>
</param>
</method>
</interface>
<interface
name="IGuestFile" extends="IFile"
uuid="92f21dc0-44de-1653-b717-2ebf0ca9b664"
wsmap="managed"
>
<desc>
Implementation of the <link to="IFile" /> object
for files in the guest.
</desc>
<attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/>
</interface>
<interface
name="IFsInfo" extends="$unknown"
uuid="3db2ab1a-6cf7-42f1-8bf5-e1c0553e0b30"
wsmap="managed"
reservedAttributes="8"
>
<desc>
Abstract parent interface for VirtualBox file system information.
This can be information about a host or guest file system, for example.
</desc>
<attribute name="freeSize" type="long long" readonly="yes">
<desc>
Remaining free space (in bytes) of the filesystem.
</desc>
</attribute>
<attribute name="totalSize" type="long long" readonly="yes">
<desc>
Total space (in bytes) of the filesystem.
</desc>
</attribute>
<attribute name="blockSize" type="unsigned long" readonly="yes">
<desc>
Block size (in bytes) of the filesystem.
</desc>
</attribute>
<attribute name="sectorSize" type="unsigned long" readonly="yes">
<desc>
Sector size (in bytes) of the filesystem.
</desc>
</attribute>
<attribute name="serialNumber" type="unsigned long" readonly="yes">
<desc>
Serial number of the filesystem.
</desc>
</attribute>
<attribute name="isRemote" type="boolean" readonly="yes">
<desc>
@c TRUE if the filesystem is remote, @c FALSE if the filesystem is local.
</desc>
</attribute>
<attribute name="isCaseSensitive" type="boolean" readonly="yes">
<desc>
@c TRUE if the filesystem is case sensitive, @c FALSE if the filesystem is case insensitive.
</desc>
</attribute>
<attribute name="isReadOnly" type="boolean" readonly="yes">
<desc>
@c TRUE if the filesystem is mounted read only, @c FALSE if the filesystem is mounted read write.
</desc>
</attribute>
<attribute name="isCompressed" type="boolean" readonly="yes">
<desc>
@c TRUE if the filesystem is compressed, @c FALSE if it isn't or we don't know.
</desc>
</attribute>
<attribute name="supportsFileCompression" type="boolean" readonly="yes">
<desc>
@c TRUE if the filesystem compresses of individual files, @c FALSE if it doesn't or we don't know.
</desc>
</attribute>
<attribute name="maxComponent" type="unsigned long" readonly="yes">
<desc>
The maximum size of a filesystem object name.
</desc>
</attribute>
<attribute name="type" type="wstring" readonly="yes">
<desc>
Name of the filesystem.
</desc>
</attribute>
<attribute name="label" type="wstring" readonly="yes">
<desc>
Label of the filesystem.
</desc>
</attribute>
<attribute name="mountPoint" type="wstring" readonly="yes">
<desc>
Mount point of the filesystem.
</desc>
</attribute>
</interface>
<interface
name="IFsObjInfo" extends="$unknown"
uuid="081fc833-c6fa-430e-6020-6a505d086387"
wsmap="managed"
reservedAttributes="8"
>
<desc>
Abstract parent interface for VirtualBox file system object information.
This can be information about a file or a directory, for example.
</desc>
<attribute name="name" type="wstring" readonly="yes">
<desc>
The object's name.
</desc>
</attribute>
<attribute name="type" type="FsObjType" readonly="yes">
<desc>
The object type. See <link to="FsObjType" /> for more.
</desc>
</attribute>
<attribute name="fileAttributes" type="wstring" readonly="yes">
<desc>
File attributes. Not implemented yet.
</desc>
</attribute>
<attribute name="objectSize" type="long long" readonly="yes">
<desc>
The logical size (st_size). For normal files this is the size of the file.
For symbolic links, this is the length of the path name contained in the
symbolic link. For other objects this fields needs to be specified.
</desc>
</attribute>
<attribute name="allocatedSize" type="long long" readonly="yes">
<desc>
Disk allocation size (st_blocks * DEV_BSIZE).
</desc>
</attribute>
<!-- Time attributes: -->
<attribute name="accessTime" type="long long" readonly="yes">
<desc>
Time of last access (st_atime).
</desc>
</attribute>
<attribute name="birthTime" type="long long" readonly="yes">
<desc>
Time of file birth (st_birthtime).
</desc>
</attribute>
<attribute name="changeTime" type="long long" readonly="yes">
<desc>
Time of last status change (st_ctime).
</desc>
</attribute>
<attribute name="modificationTime" type="long long" readonly="yes">
<desc>
Time of last data modification (st_mtime).
</desc>
</attribute>
<!-- Ownership attributes: -->
<attribute name="UID" type="long" readonly="yes">
<desc>
The user owning the filesystem object (st_uid). This is -1 if not available.
</desc>
</attribute>
<attribute name="userName" type="wstring" readonly="yes">
<desc>
The user name.
</desc>
</attribute>
<attribute name="GID" type="long" readonly="yes">
<desc>
The group the filesystem object is assigned (st_gid). This is -1 if not available.
</desc>
</attribute>
<attribute name="groupName" type="wstring" readonly="yes">
<desc>
The group name.
</desc>
</attribute>
<!-- More esoteric attributes: -->
<attribute name="nodeId" type="long long" readonly="yes">
<desc>
The unique identifier (within the filesystem) of this filesystem object (st_ino).
This is zero if not availalbe.
</desc>
</attribute>
<attribute name="nodeIdDevice" type="unsigned long" readonly="yes">
<desc>
The device number of the device which this filesystem object resides on (st_dev).
</desc>
</attribute>
<attribute name="hardLinks" type="unsigned long" readonly="yes">
<desc>
Number of hard links to this filesystem object (st_nlink).
</desc>
</attribute>
<attribute name="deviceNumber" type="unsigned long" readonly="yes">
<desc>
The device number of a character or block device type object (st_rdev).
</desc>
</attribute>
<attribute name="generationId" type="unsigned long" readonly="yes">
<desc>
The current generation number (st_gen).
</desc>
</attribute>
<attribute name="userFlags" type="unsigned long" readonly="yes">
<desc>
User flags (st_flags).
</desc>
</attribute>
</interface>
<interface
name="IGuestFsInfo" extends="IFsInfo"
uuid="726eaca9-091e-41b4-bca6-355efe864107"
wsmap="managed"
>
<desc>
Represents the guest implementation of the
<link to="IFsInfo" /> object.
</desc>
<attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/>
</interface>
<interface
name="IGuestFsObjInfo" extends="IFsObjInfo"
uuid="6620db85-44e0-ca69-e9e0-d4907ceccbe5"
wsmap="managed"
>
<desc>
Represents the guest implementation of the
<link to="IFsObjInfo" /> object.
</desc>
<attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/>
</interface>
<interface
name="IGuest" extends="$unknown"
uuid="00892186-A4AF-4627-B21F-FC561CE4473C"
wsmap="managed"
reservedMethods="8" reservedAttributes="16"
>
<desc>
The IGuest interface represents information about the operating system
running inside the virtual machine. Used in
<link to="IConsole::guest"/>.
IGuest provides information about the guest operating system, whether
Guest Additions are installed and other OS-specific virtual machine
properties.
</desc>
<attribute name="OSTypeId" type="wstring" readonly="yes">
<desc>
Identifier of the Guest OS type as reported by the Guest
Additions.
You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
an IGuestOSType object representing details about the given
Guest OS type.
<note>
If Guest Additions are not installed, this value will be
the same as <link to="IMachine::OSTypeId"/>.
</note>
</desc>
</attribute>
<attribute name="additionsRunLevel" type="AdditionsRunLevelType" readonly="yes">
<desc>
Current run level of the installed Guest Additions.
</desc>
</attribute>
<attribute name="additionsVersion" type="wstring" readonly="yes">
<desc>
Version of the installed Guest Additions in the same format as
<link to="IVirtualBox::version"/>.
</desc>
</attribute>
<attribute name="additionsRevision" type="unsigned long" readonly="yes">
<desc>
The internal build revision number of the installed Guest Additions.
See also <link to="IVirtualBox::revision"/>.
</desc>
</attribute>
<attribute name="dnDSource" type="IGuestDnDSource" readonly="yes">
<desc>
Retrieves the drag'n drop source implementation for the guest side, that
is, handling and retrieving drag'n drop data from the guest.
</desc>
</attribute>
<attribute name="dnDTarget" type="IGuestDnDTarget" readonly="yes">
<desc>
Retrieves the drag'n drop source implementation for the host side. This
will allow the host to handle and initiate a drag'n drop operation to copy
data from the host to the guest.
</desc>
</attribute>
<attribute name="eventSource" type="IEventSource" readonly="yes">
<desc>
Event source for guest events.
</desc>
</attribute>
<attribute name="facilities" type="IAdditionsFacility" readonly="yes" safearray="yes">
<desc>
Returns a collection of current known facilities. Only returns facilities where
a status is known, e.g. facilities with an unknown status will not be returned.
</desc>
</attribute>
<attribute name="sessions" type="IGuestSession" readonly="yes" safearray="yes">
<desc>Returns a collection of all opened guest sessions.</desc>
</attribute>
<attribute name="memoryBalloonSize" type="unsigned long">
<desc>Guest system memory balloon size in megabytes (transient property).</desc>
</attribute>
<attribute name="statisticsUpdateInterval" type="unsigned long">
<desc>Interval to update guest statistics in seconds.</desc>
</attribute>
<method name="internalGetStatistics">
<desc>
Internal method; do not use as it might change at any time.
</desc>
<param name="cpuUser" type="unsigned long" dir="out">
<desc>Percentage of processor time spent in user mode as seen by the guest.</desc>
</param>
<param name="cpuKernel" type="unsigned long" dir="out">
<desc>Percentage of processor time spent in kernel mode as seen by the guest.</desc>
</param>
<param name="cpuIdle" type="unsigned long" dir="out">
<desc>Percentage of processor time spent idling as seen by the guest.</desc>
</param>
<param name="memTotal" type="unsigned long" dir="out">
<desc>Total amount of physical guest RAM.</desc>
</param>
<param name="memFree" type="unsigned long" dir="out">
<desc>Free amount of physical guest RAM.</desc>
</param>
<param name="memBalloon" type="unsigned long" dir="out">
<desc>Amount of ballooned physical guest RAM.</desc>
</param>
<param name="memShared" type="unsigned long" dir="out">
<desc>Amount of shared physical guest RAM.</desc>
</param>
<param name="memCache" type="unsigned long" dir="out">
<desc>Total amount of guest (disk) cache memory.</desc>
</param>
<param name="pagedTotal" type="unsigned long" dir="out">
<desc>Total amount of space in the page file.</desc>
</param>
<param name="memAllocTotal" type="unsigned long" dir="out">
<desc>Total amount of memory allocated by the hypervisor.</desc>
</param>
<param name="memFreeTotal" type="unsigned long" dir="out">
<desc>Total amount of free memory available in the hypervisor.</desc>
</param>
<param name="memBalloonTotal" type="unsigned long" dir="out">
<desc>Total amount of memory ballooned by the hypervisor.</desc>
</param>
<param name="memSharedTotal" type="unsigned long" dir="out">
<desc>Total amount of shared memory in the hypervisor.</desc>
</param>
</method>
<method name="getFacilityStatus">
<desc>
Get the current status of a Guest Additions facility.
</desc>
<param name="facility" type="AdditionsFacilityType" dir="in">
<desc>Facility to check status for.</desc>
</param>
<param name="timestamp" type="long long" dir="out">
<desc>Timestamp (in ms) of last status update seen by the host.</desc>
</param>
<param name="status" type="AdditionsFacilityStatus" dir="return">
<desc>The current (latest) facility status.</desc>
</param>
</method>
<method name="getAdditionsStatus">
<desc>
Retrieve the current status of a certain Guest Additions run level.
<result name="VBOX_E_NOT_SUPPORTED">
Wrong status level specified.
</result>
</desc>
<param name="level" type="AdditionsRunLevelType" dir="in">
<desc>Status level to check</desc>
</param>
<param name="active" type="boolean" dir="return">
<desc>Flag whether the status level has been reached or not</desc>
</param>
</method>
<method name="setCredentials">
<desc>
Store login credentials that can be queried by guest operating
systems with Additions installed. The credentials are transient
to the session and the guest may also choose to erase them. Note
that the caller cannot determine whether the guest operating system
has queried or made use of the credentials.
<result name="VBOX_E_VM_ERROR">
VMM device is not available.
</result>
</desc>
<param name="userName" type="wstring" dir="in">
<desc>User name string, can be empty</desc>
</param>
<param name="password" type="wstring" dir="in">
<desc>Password string, can be empty</desc>
</param>
<param name="domain" type="wstring" dir="in">
<desc>Domain name (guest logon scheme specific), can be empty</desc>
</param>
<param name="allowInteractiveLogon" type="boolean" dir="in">
<desc>
Flag whether the guest should alternatively allow the user to
interactively specify different credentials. This flag might
not be supported by all versions of the Additions.
</desc>
</param>
</method>
<method name="createSession">
<desc>
Creates a new guest session for controlling the guest. The new session
will be started asynchronously, meaning on return of this function it is
not guaranteed that the guest session is in a started and/or usable state.
To wait for successful startup, use the <link to="IGuestSession::waitFor"/>
call.
A guest session represents one impersonated user account in the guest, so
every operation will use the same credentials specified when creating
the session object via <link to="IGuest::createSession"/>. Anonymous
sessions, that is, sessions without specifying a valid
user account in the guest are not allowed reasons of security.
There can be a maximum of 32 sessions at once per VM. An error will
be returned if this has been reached.
For more information please consult <link to="IGuestSession"/>
<result name="VBOX_E_IPRT_ERROR">
Error creating guest session.
</result>
<result name="VBOX_E_MAXIMUM_REACHED">
The maximum of concurrent guest sessions has been reached.
</result>
</desc>
<param name="user" type="wstring" dir="in">
<desc>
User name this session will be using to control the guest; has to exist
and have the appropriate rights to execute programs in the VM. Must not
be empty.
</desc>
</param>
<param name="password" type="wstring" dir="in">
<desc>
Password of the user account to be used. Empty passwords are allowed.
</desc>
</param>
<param name="domain" type="wstring" dir="in">
<desc>
Domain name of the user account to be used if the guest is part of
a domain. Optional. This feature is not implemented yet.
</desc>
</param>
<param name="sessionName" type="wstring" dir="in">
<desc>
The session's friendly name. Optional, can be empty.
</desc>
</param>
<param name="guestSession" type="IGuestSession" dir="return">
<desc>
The newly created session object.
</desc>
</param>
</method>
<method name="findSession">
<desc>
Finds guest sessions by their friendly name and returns an interface
array with all found guest sessions.
</desc>
<param name="sessionName" type="wstring" dir="in">
<desc>
The session's friendly name to find. Wildcards like ? and * are allowed.
</desc>
</param>
<param name="sessions" type="IGuestSession" safearray="yes" dir="return">
<desc>
Array with all guest sessions found matching the name specified.
</desc>
</param>
</method>
<method name="shutdown">
<desc>
Shuts down (and optionally halts and/or reboots) the guest.
Needs supported Guest Additions installed.
<result name="VBOX_E_NOT_SUPPORTED">
Guest OS is not supported for shutting down, or the
already installed Guest Additions are not supported.
</result>
<result name="VBOX_E_IPRT_ERROR">
Error while shutting down.
</result>
</desc>
<param name="flags" type="GuestShutdownFlag" dir="in" safearray="yes">
<desc>
<link to="GuestShutdownFlag"/> flags.
</desc>
</param>
</method>
<method name="updateGuestAdditions">
<desc>
Automatically updates already installed Guest Additions in a VM.
At the moment only Windows and Linux guests are supported.
Because the VirtualBox Guest Additions drivers are not WHQL-certified
yet there might be warning dialogs during the actual Guest Additions
update. These need to be confirmed manually in order to continue the
installation process. This applies to Windows 2000 and Windows XP guests
and therefore these guests can't be updated in a fully automated fashion
without user interaction. However, to start a Guest Additions update for
the mentioned Windows versions anyway, the flag
AdditionsUpdateFlag_WaitForUpdateStartOnly can be specified. See
<link to="AdditionsUpdateFlag"/> for more information.
The guest needs to be restarted in order to make use of the updated
Guest Additions.
<result name="VBOX_E_NOT_SUPPORTED">
Guest OS is not supported for automated Guest Additions updates or the
already installed Guest Additions are not ready yet.
</result>
<result name="VBOX_E_IPRT_ERROR">
Error while updating.
</result>
</desc>
<param name="source" type="wstring" dir="in">
<desc>
Path to the Guest Additions .ISO file to use for the update.
</desc>
</param>
<param name="arguments" type="wstring" dir="in" safearray="yes">
<desc>
Optional command line arguments to use for the Guest Additions
installer. Useful for retrofitting features which weren't installed
before in the guest.
</desc>
</param>
<param name="flags" type="AdditionsUpdateFlag" dir="in" safearray="yes">
<desc>
<link to="AdditionsUpdateFlag"/> flags.
</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
</interface>
<!--
// IProgress
/////////////////////////////////////////////////////////////////////////
-->
<interface
name="IProgress" extends="$unknown"
uuid="d7b98d2b-30e8-447e-99cb-e31becae6ae4"
wsmap="managed"
rest="managed"
wrap-hint-server-addinterfaces="IInternalProgressControl"
reservedMethods="8" reservedAttributes="12"
>
<desc>
The IProgress interface is used to track and control
asynchronous tasks within VirtualBox.
An instance of this is returned every time VirtualBox starts
an asynchronous task (in other words, a separate thread) which
continues to run after a method call returns. For example,
<link to="IMachine::saveState" />, which saves the state of
a running virtual machine, can take a long time to complete.
To be able to display a progress bar, a user interface such as
the VirtualBox graphical user interface can use the IProgress
object returned by that method.
Note that IProgress is a "read-only" interface in the sense
that only the VirtualBox internals behind the Main API can
create and manipulate progress objects, whereas client code
can only use the IProgress object to monitor a task's
progress and, if <link to="#cancelable" /> is @c true,
cancel the task by calling <link to="#cancel" />.
A task represented by IProgress consists of either one or
several sub-operations that run sequentially, one by one (see
<link to="#operation" /> and <link to="#operationCount" />).
Every operation is identified by a number (starting from 0)
and has a separate description.
You can find the individual percentage of completion of the current
operation in <link to="#operationPercent" /> and the
percentage of completion of the task as a whole
in <link to="#percent" />.
Similarly, you can wait for the completion of a particular
operation via <link to="#waitForOperationCompletion" /> or
for the completion of the whole task via
<link to="#waitForCompletion" />.
</desc>
<attribute name="id" type="uuid" mod="string" readonly="yes">
<desc>ID of the task.</desc>
</attribute>
<attribute name="description" type="wstring" readonly="yes">
<desc>Description of the task.</desc>
</attribute>
<attribute name="initiator" type="$unknown" readonly="yes">
<desc>Initiator of the task.</desc>
</attribute>
<attribute name="cancelable" type="boolean" readonly="yes">
<desc>Whether the task can be interrupted.</desc>
</attribute>
<attribute name="percent" type="unsigned long" readonly="yes">
<desc>
Current progress value of the task as a whole, in percent.
This value depends on how many operations are already complete.
Returns 100 if <link to="#completed" /> is @c true.
</desc>
</attribute>
<attribute name="timeRemaining" type="long" readonly="yes">
<desc>
Estimated remaining time until the task completes, in
seconds. Returns 0 once the task has completed; returns -1
if the remaining time cannot be computed, in particular if
the current progress is 0.
Even if a value is returned, the estimate will be unreliable
for low progress values. It will become more reliable as the
task progresses; it is not recommended to display an ETA
before at least 20% of a task have completed.
</desc>
</attribute>
<attribute name="completed" type="boolean" readonly="yes">
<desc>Whether the task has been completed.</desc>
</attribute>
<attribute name="canceled" type="boolean" readonly="yes">
<desc>Whether the task has been canceled.</desc>
</attribute>
<attribute name="resultCode" type="long" readonly="yes">
<desc>
Result code of the progress task.
Valid only if <link to="#completed"/> is @c true.
</desc>
</attribute>
<attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
<desc>
Extended information about the unsuccessful result of the
progress operation. May be @c null if no extended information
is available.
Valid only if <link to="#completed"/> is @c true and
<link to="#resultCode"/> indicates a failure.
</desc>
</attribute>
<attribute name="operationCount" type="unsigned long" readonly="yes">
<desc>
Number of sub-operations this task is divided into.
Every task consists of at least one suboperation.
</desc>
</attribute>
<attribute name="operation" type="unsigned long" readonly="yes">
<desc>Number of the sub-operation being currently executed.</desc>
</attribute>
<attribute name="operationDescription" type="wstring" readonly="yes">
<desc>
Description of the sub-operation being currently executed.
</desc>
</attribute>
<attribute name="operationPercent" type="unsigned long" readonly="yes">
<desc>Progress value of the current sub-operation only, in percent.</desc>
</attribute>
<attribute name="operationWeight" type="unsigned long" readonly="yes">
<desc>Weight value of the current sub-operation only.</desc>
</attribute>
<attribute name="timeout" type="unsigned long">
<desc>
When non-zero, this specifies the number of milliseconds after which
the operation will automatically be canceled. This can only be set on
cancelable objects.
</desc>
</attribute>
<attribute name="eventSource" type="IEventSource" readonly="yes" rest="suppress"/>
<method name="waitForCompletion">
<rest request="post" path="/progresses/{progressid}/actions/"/>
<desc>
Waits until the task is done (including all sub-operations)
with a given timeout in milliseconds; specify -1 for an indefinite wait.
Note that the VirtualBox/XPCOM/COM/native event queues of the calling
thread are not processed while waiting. Neglecting event queues may
have dire consequences (degrade performance, resource hogs,
deadlocks, etc.), this is specially so for the main thread on
platforms using XPCOM. Callers are advised wait for short periods
and service their event queues between calls, or to create a worker
thread to do the waiting.
<result name="VBOX_E_IPRT_ERROR">
Failed to wait for task completion.
</result>
</desc>
<param name="timeout" type="long" dir="in">
<desc>
Maximum time in milliseconds to wait or -1 to wait indefinitely.
</desc>
</param>
</method>
<method name="waitForOperationCompletion">
<rest request="post" path="/progresses/{progressid}/actions/"/>
<desc>
Waits until the given operation is done with a given timeout in
milliseconds; specify -1 for an indefinite wait.
See <link to="#waitForCompletion"> for event queue considerations.</link>
<result name="VBOX_E_IPRT_ERROR">
Failed to wait for operation completion.
</result>
</desc>
<param name="operation" type="unsigned long" dir="in">
<desc>
Number of the operation to wait for.
Must be less than <link to="#operationCount"/>.
</desc>
</param>
<param name="timeout" type="long" dir="in">
<desc>
Maximum time in milliseconds to wait or -1 to wait indefinitely.
</desc>
</param>
</method>
<method name="cancel">
<rest request="post" path="/progresses/{progressid}/actions/"/>
<desc>
Cancels the task.
<note>
If <link to="#cancelable"/> is @c false, then this method will fail.
</note>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Operation cannot be canceled.
</result>
</desc>
</method>
</interface>
<interface
name="IInternalProgressControl" extends="$unknown"
uuid="41a033b8-cc87-4f6e-a0e9-47bb7f2d4be5"
internal="yes"
wsmap="suppress"
reservedMethods="8" reservedAttributes="8"
>
<method name="setCurrentOperationProgress">
<desc>Internal method, not to be called externally.</desc>
<param name="percent" type="unsigned long" dir="in" />
</method>
<method name="waitForOtherProgressCompletion">
<desc>
Internal method, not to be called externally.
Waits until the other task is completed (including all sub-operations)
and forward all changes from the other progress to this progress. This
means sub-operation number, description, percent and so on.
The caller is responsible for having at least the same count of
sub-operations in this progress object as there are in the other
progress object.
If the other progress object supports cancel and this object gets any
cancel request (when here enabled as well), it will be forwarded to
the other progress object.
Error information is automatically preserved (by transferring it to
the current thread's error information). If the caller wants to set it
as the completion state of this progress it needs to be done separately.
<result name="VBOX_E_TIMEOUT">
Waiting time has expired.
</result>
</desc>
<param name="progressOther" type="IProgress" dir="in">
<desc>Other progress object to be "cloned".</desc>
</param>
<param name="timeoutMS" type="unsigned long" dir="in">
<desc>Timeout (in ms). Pass 0 for an infinite timeout.</desc>
</param>
</method>
<method name="setNextOperation">
<desc>Internal method, not to be called externally.</desc>
<param name="nextOperationDescription" type="wstring" dir="in" />
<param name="nextOperationsWeight" type="unsigned long" dir="in" />
</method>
<method name="notifyPointOfNoReturn">
<desc>Internal method, not to be called externally.</desc>
</method>
<method name="notifyComplete">
<desc>Internal method, not to be called externally.</desc>
<param name="resultCode" type="long" dir="in" />
<param name="errorInfo" type="IVirtualBoxErrorInfo" dir="in" />
</method>
</interface>
<!--
// ISnapshot
/////////////////////////////////////////////////////////////////////////
-->
<interface
name="ISnapshot" extends="$unknown"
uuid="6cc49055-dad4-4496-85cf-3f76bcb3b5fa"
wsmap="managed"
rest="managed"
reservedMethods="4" reservedAttributes="8"
>
<desc>
The ISnapshot interface represents a snapshot of the virtual
machine.
Together with the differencing media that are created
when a snapshot is taken, a machine can be brought back to
the exact state it was in when the snapshot was taken.
The ISnapshot interface has no methods, only attributes; snapshots
are controlled through methods of the <link to="IMachine" /> interface
which also manage the media associated with the snapshot.
The following operations exist:
<ul>
<li><link to="IMachine::takeSnapshot"/> creates a new snapshot
by creating new, empty differencing images for the machine's
media and saving the VM settings and (if the VM is running)
the current VM state in the snapshot.
The differencing images will then receive all data written to
the machine's media, while their parent (base) images
remain unmodified after the snapshot has been taken (see
<link to="IMedium" /> for details about differencing images).
This simplifies restoring a machine to the state of a snapshot:
only the differencing images need to be deleted.
The current machine state is not changed by taking a snapshot
except that <link to="IMachine::currentSnapshot" /> is set to
the newly created snapshot, which is also added to the machine's
snapshots tree.
</li>
<li><link to="IMachine::restoreSnapshot"/> resets a machine to
the state of a previous snapshot by deleting the differencing
image of each of the machine's media and setting the machine's
settings and state to the state that was saved in the snapshot (if any).
This destroys the machine's current state. After calling this,
<link to="IMachine::currentSnapshot" /> points to the snapshot
that was restored.
</li>
<li><link to="IMachine::deleteSnapshot"/> deletes a snapshot
without affecting the current machine state.
This does not change the current machine state, but instead frees the
resources allocated when the snapshot was taken: the settings and machine
state file are deleted (if any), and the snapshot's differencing image for
each of the machine's media gets merged with its parent image.
Neither the current machine state nor other snapshots are affected
by this operation, except that parent media will be modified
to contain the disk data associated with the snapshot being deleted.
When deleting the current snapshot, the <link to="IMachine::currentSnapshot" />
attribute is set to the current snapshot's parent or @c null if it
has no parent. Otherwise the attribute is unchanged.
</li>
</ul>
Each snapshot contains a copy of virtual machine's settings (hardware
configuration etc.). This copy is contained in an immutable (read-only)
instance of <link to="IMachine" /> which is available from the snapshot's
<link to="#machine" /> attribute. When restoring the snapshot, these
settings are copied back to the original machine.
In addition, if the machine was running when the
snapshot was taken (<link to="IMachine::state"/> is <link to="MachineState_Running"/>),
the current VM state is saved in the snapshot (similarly to what happens
when a VM's state is saved). The snapshot is then said to be <i>online</i>
because when restoring it, the VM will be running.
If the machine was in the <link to="MachineState_Saved">Saved</link> or
<link to="MachineState_AbortedSaved">AbortedSaved</link> state, the snapshot
receives a copy of the execution state file (<link to="IMachine::stateFilePath"/>).
Otherwise, if the machine was not running (<link to="MachineState_PoweredOff"/>
or <link to="MachineState_Aborted"/>), the snapshot is <i>offline</i>;
it then contains a so-called "zero execution state", representing a
machine that is powered off.
</desc>
<attribute name="id" type="uuid" mod="string" readonly="yes">
<desc>UUID of the snapshot.</desc>
</attribute>
<attribute name="name" type="wstring">
<desc>Short name of the snapshot.
<note>Setting this attribute causes <link to="IMachine::saveSettings" /> to
be called implicitly.</note>
</desc>
</attribute>
<attribute name="description" type="wstring">
<desc>Optional description of the snapshot.
<note>Setting this attribute causes <link to="IMachine::saveSettings" /> to
be called implicitly.</note>
</desc>
</attribute>
<attribute name="timeStamp" type="long long" readonly="yes">
<desc>
Timestamp of the snapshot, in milliseconds since 1970-01-01 UTC.
</desc>
</attribute>
<attribute name="online" type="boolean" readonly="yes">
<desc>
@c true if this snapshot is an online snapshot and @c false otherwise.
When this attribute is @c true, the
<link to="IMachine::stateFilePath"/> attribute of the
<link to="#machine"/> object associated with this snapshot
will point to the saved state file. Otherwise, it will be
an empty string.
</desc>
</attribute>
<attribute name="machine" type="IMachine" readonly="yes" rest="uuid">
<desc>
Virtual machine this snapshot is taken on. This object
stores all settings the machine had when taking this snapshot.
<note>
The returned machine object is immutable, i.e. no
any settings can be changed.
</note>
</desc>
</attribute>
<attribute name="parent" type="ISnapshot" readonly="yes" rest="uuid">
<desc>
Parent snapshot (a snapshot this one is based on), or
@c null if the snapshot has no parent (i.e. is the first snapshot).
</desc>
</attribute>
<attribute name="children" type="ISnapshot" readonly="yes" safearray="yes" rest="uuid">
<desc>
Child snapshots (all snapshots having this one as a parent).
By inspecting this attribute starting with a machine's root snapshot
(which can be obtained by calling <link to="IMachine::findSnapshot" />
with a @c null UUID), a machine's snapshots tree can be iterated over.
</desc>
</attribute>
<attribute name="childrenCount" type="unsigned long" readonly="yes">
<desc>
Returns the number of direct children of this snapshot.
</desc>
</attribute>
</interface>
<!--
// IMedium
/////////////////////////////////////////////////////////////////////////
-->
<enum
name="MediumState"
uuid="ef41e980-e012-43cd-9dea-479d4ef14d13"
>
<desc>
Virtual medium state.
<see><link to="IMedium"/></see>
</desc>
<const name="NotCreated" value="0">
<desc>
Associated medium storage does not exist (either was not created yet or
was deleted).
</desc>
</const>
<const name="Created" value="1">
<desc>
Associated storage exists and accessible; this gets set if the
accessibility check performed by <link to="IMedium::refreshState" />
was successful.
</desc>
</const>
<const name="LockedRead" value="2">
<desc>
Medium is locked for reading (see <link to="IMedium::lockRead"/>),
no data modification is possible.
</desc>
</const>
<const name="LockedWrite" value="3">
<desc>
Medium is locked for writing (see <link to="IMedium::lockWrite"/>),
no concurrent data reading or modification is possible.
</desc>
</const>
<const name="Inaccessible" value="4">
<desc>
Medium accessibility check (see <link to="IMedium::refreshState" />) has
not yet been performed, or else, associated medium storage is not
accessible. In the first case, <link to="IMedium::lastAccessError"/>
is empty, in the second case, it describes the error that occurred.
</desc>
</const>
<const name="Creating" value="5">
<desc>
Associated medium storage is being created.
</desc>
</const>
<const name="Deleting" value="6">
<desc>
Associated medium storage is being deleted.
</desc>
</const>
</enum>
<enum
name="MediumType"
uuid="fe663fb5-c244-4e1b-9d81-c628b417dd04"
>
<desc>
Virtual medium type. For each <link to="IMedium" />, this defines how the medium is
attached to a virtual machine (see <link to="IMediumAttachment" />) and what happens
when a snapshot (see <link to="ISnapshot" />) is taken of a virtual machine which has
the medium attached. At the moment DVD and floppy media are always of type "writethrough".
</desc>
<const name="Normal" value="0">
<desc>
Normal medium (attached directly or indirectly, preserved
when taking snapshots).
</desc>
</const>
<const name="Immutable" value="1">
<desc>
Immutable medium (attached indirectly, changes are wiped out
the next time the virtual machine is started).
</desc>
</const>
<const name="Writethrough" value="2">
<desc>
Write through medium (attached directly, ignored when
taking snapshots).
</desc>
</const>
<const name="Shareable" value="3">
<desc>
Allow using this medium concurrently by several machines.
<note>Present since VirtualBox 3.2.0, and accepted since 3.2.8.</note>
</desc>
</const>
<const name="Readonly" value="4">
<desc>
A readonly medium, which can of course be used by several machines.
<note>Present and accepted since VirtualBox 4.0.</note>
</desc>
</const>
<const name="MultiAttach" value="5">
<desc>
A medium which is indirectly attached, so that one base medium can
be used for several VMs which have their own differencing medium to
store their modifications. In some sense a variant of Immutable
with unset AutoReset flag in each differencing medium.
<note>Present and accepted since VirtualBox 4.0.</note>
</desc>
</const>
</enum>
<enum
name="MediumVariant"
uuid="0282e97f-4ef3-4411-a8e0-47c384803cb6"
>
<desc>
Virtual medium image variant. More than one flag may be set.
<see><link to="IMedium"/></see>
</desc>
<const name="Standard" value="0">
<desc>
No particular variant requested, results in using the backend default.
</desc>
</const>
<const name="VmdkSplit2G" value="0x01">
<desc>
VMDK image split in chunks of less than 2GByte.
</desc>
</const>
<const name="VmdkRawDisk" value="0x02">
<desc>
VMDK image representing a raw disk.
</desc>
</const>
<const name="VmdkStreamOptimized" value="0x04">
<desc>
VMDK streamOptimized image. Special import/export format which is
read-only/append-only.
</desc>
</const>
<const name="VmdkESX" value="0x08">
<desc>
VMDK format variant used on ESX products.
</desc>
</const>
<const name="VdiZeroExpand" value="0x100">
<desc>
Fill new blocks with zeroes while expanding image file.
</desc>
</const>
<const name="Fixed" value="0x10000">
<desc>
Fixed image. Only allowed for base images.
</desc>
</const>
<const name="Diff" value="0x20000">
<desc>
Differencing image. Only allowed for child images.
</desc>
</const>
<const name="Formatted" value="0x20000000">
<desc>
Special flag which requests formatting the disk image. Right now
supported for floppy images only.
</desc>
</const>
<const name="NoCreateDir" value="0x40000000">
<desc>
Special flag which suppresses automatic creation of the subdirectory.
Only used when passing the medium variant as an input parameter.
</desc>
</const>
</enum>
<interface
name="IMediumAttachment" extends="$unknown"
uuid="8d095cb0-0126-43e0-b05d-326e74abb356"
wsmap="struct"
rest="managed"
reservedAttributes="8"
>
<desc>
The IMediumAttachment interface links storage media to virtual machines.
For each medium (<link to="IMedium"/>) which has been attached to a
storage controller (<link to="IStorageController"/>) of a machine
(<link to="IMachine"/>) via the <link to="IMachine::attachDevice" />
method, one instance of IMediumAttachment is added to the machine's
<link to="IMachine::mediumAttachments"/> array attribute.
Each medium attachment specifies the storage controller as well as a
port and device number and the IMedium instance representing a virtual
hard disk or floppy or DVD image.
For removable media (DVDs or floppies), there are two additional
options. For one, the IMedium instance can be @c null to represent
an empty drive with no media inserted (see <link to="IMachine::mountMedium" />);
secondly, the medium can be one of the pseudo-media for host drives
listed in <link to="IHost::DVDDrives"/> or <link to="IHost::floppyDrives"/>.
<h3>Attaching Hard Disks</h3>
Hard disks are attached to virtual machines using the
<link to="IMachine::attachDevice"/> method and detached using the
<link to="IMachine::detachDevice"/> method. Depending on a medium's
type (see <link to="IMedium::type" />), hard disks are attached either
<i>directly</i> or <i>indirectly</i>.
When a hard disk is being attached directly, it is associated with the
virtual machine and used for hard disk operations when the machine is
running. When a hard disk is being attached indirectly, a new differencing
hard disk linked to it is implicitly created and this differencing hard
disk is associated with the machine and used for hard disk operations.
This also means that if <link to="IMachine::attachDevice"/> performs
a direct attachment then the same hard disk will be returned in response
to the subsequent <link to="IMachine::getMedium"/> call; however if
an indirect attachment is performed then
<link to="IMachine::getMedium"/> will return the implicitly created
differencing hard disk, not the original one passed to <link
to="IMachine::attachDevice"/>. In detail:
<ul>
<li><b>Normal base</b> hard disks that do not have children (i.e.
differencing hard disks linked to them) and that are not already
attached to virtual machines in snapshots are attached <b>directly</b>.
Otherwise, they are attached <b>indirectly</b> because having
dependent children or being part of the snapshot makes it impossible
to modify hard disk contents without breaking the integrity of the
dependent party. The <link to="IMedium::readOnly"/> attribute allows to
quickly determine the kind of the attachment for the given hard
disk. Note that if a normal base hard disk is to be indirectly
attached to a virtual machine with snapshots then a special
procedure called <i>smart attachment</i> is performed (see below).</li>
<li><b>Normal differencing</b> hard disks are like normal base hard disks:
they are attached <b>directly</b> if they do not have children and are
not attached to virtual machines in snapshots, and <b>indirectly</b>
otherwise. Note that the smart attachment procedure is never performed
for differencing hard disks.</li>
<li><b>Immutable</b> hard disks are always attached <b>indirectly</b> because
they are designed to be non-writable. If an immutable hard disk is
attached to a virtual machine with snapshots then a special
procedure called smart attachment is performed (see below).</li>
<li><b>Writethrough</b> hard disks are always attached <b>directly</b>,
also as designed. This also means that writethrough hard disks cannot
have other hard disks linked to them at all.</li>
<li><b>Shareable</b> hard disks are always attached <b>directly</b>,
also as designed. This also means that shareable hard disks cannot
have other hard disks linked to them at all. They behave almost
like writethrough hard disks, except that shareable hard disks can
be attached to several virtual machines which are running, allowing
concurrent accesses. You need special cluster software running in
the virtual machines to make use of such disks.</li>
</ul>
Note that the same hard disk, regardless of its type, may be attached to
more than one virtual machine at a time. In this case, the machine that is
started first gains exclusive access to the hard disk and attempts to
start other machines having this hard disk attached will fail until the
first machine is powered down.
Detaching hard disks is performed in a <i>deferred</i> fashion. This means
that the given hard disk remains associated with the given machine after a
successful <link to="IMachine::detachDevice"/> call until
<link to="IMachine::saveSettings"/> is called to save all changes to
machine settings to disk. This deferring is necessary to guarantee that
the hard disk configuration may be restored at any time by a call to
<link to="IMachine::discardSettings"/> before the settings
are saved (committed).
Note that if <link to="IMachine::discardSettings"/> is called after
indirectly attaching some hard disks to the machine but before a call to
<link to="IMachine::saveSettings"/> is made, it will implicitly delete
all differencing hard disks implicitly created by
<link to="IMachine::attachDevice"/> for these indirect attachments.
Such implicitly created hard disks will also be immediately deleted when
detached explicitly using the <link to="IMachine::detachDevice"/>
call if it is made before <link to="IMachine::saveSettings"/>. This
implicit deletion is safe because newly created differencing hard
disks do not contain any user data.
However, keep in mind that detaching differencing hard disks that were
implicitly created by <link to="IMachine::attachDevice"/>
before the last <link to="IMachine::saveSettings"/> call will
<b>not</b> implicitly delete them as they may already contain some data
(for example, as a result of virtual machine execution). If these hard
disks are no more necessary, the caller can always delete them explicitly
using <link to="IMedium::deleteStorage"/> after they are actually de-associated
from this machine by the <link to="IMachine::saveSettings"/> call.
<h3>Smart Attachment</h3>
When normal base or immutable hard disks are indirectly attached to a
virtual machine then some additional steps are performed to make sure the
virtual machine will have the most recent "view" of the hard disk being
attached. These steps include walking through the machine's snapshots
starting from the current one and going through ancestors up to the first
snapshot. Hard disks attached to the virtual machine in all
of the encountered snapshots are checked whether they are descendants of
the given normal base or immutable hard disk. The first found child (which
is the differencing hard disk) will be used instead of the normal base or
immutable hard disk as a parent for creating a new differencing hard disk
that will be actually attached to the machine. And only if no descendants
are found or if the virtual machine does not have any snapshots then the
normal base or immutable hard disk will be used itself as a parent for
this differencing hard disk.
It is easier to explain what smart attachment does using the
following example:
<pre>
BEFORE attaching B.vdi: AFTER attaching B.vdi:
Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
Snapshot 4 (none) Snapshot 4 (none)
CurState (none) CurState (D3->D2.vdi)
NOT
...
CurState (D3->B.vdi)
</pre>
The first column is the virtual machine configuration before the base hard
disk <tt>B.vdi</tt> is attached, the second column shows the machine after
this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
mean that the hard disk that is actually attached to the machine is a
differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
another hard disk, <tt>B.vdi</tt>.
As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
from the machine before taking Snapshot 4. Later, after Snapshot 4 was
taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
it cannot be attached directly and needs an indirect attachment (i.e.
implicit creation of a new differencing hard disk). Due to the smart
attachment procedure, the new differencing hard disk
(<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
<tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
<tt>B.vdi</tt> existing for this snapshot branch of the given virtual
machine.
Note that if there is more than one descendant hard disk of the given base
hard disk found in a snapshot, and there is an exact device, channel and
bus match, then this exact match will be used. Otherwise, the youngest
descendant will be picked up.
There is one more important aspect of the smart attachment procedure which
is not related to snapshots at all. Before walking through the snapshots
as described above, the backup copy of the current list of hard disk
attachment is searched for descendants. This backup copy is created when
the hard disk configuration is changed for the first time after the last
<link to="IMachine::saveSettings"/> call and used by
<link to="IMachine::discardSettings"/> to undo the recent hard disk
changes. When such a descendant is found in this backup copy, it will be
simply re-attached back, without creating a new differencing hard disk for
it. This optimization is necessary to make it possible to re-attach the
base or immutable hard disk to a different bus, channel or device slot
without losing the contents of the differencing hard disk actually
attached to the machine in place of it.
</desc>
<attribute name="machine" type="IMachine" readonly="yes" rest="uuid">
<desc>Machine object for this medium attachment.</desc>
</attribute>
<attribute name="medium" type="IMedium" readonly="yes" rest="uuid">
<desc>Medium object associated with this attachment; it
can be @c null for removable devices.</desc>
</attribute>
<attribute name="controller" type="wstring" readonly="yes">
<desc>Name of the storage controller of this attachment; this
refers to one of the controllers in <link to="IMachine::storageControllers" />
by name.</desc>
</attribute>
<attribute name="port" type="long" readonly="yes">
<desc>Port number of this attachment.
See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
</desc>
</attribute>
<attribute name="device" type="long" readonly="yes">
<desc>Device slot number of this attachment.
See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
</desc>
</attribute>
<attribute name="type" type="DeviceType" readonly="yes">
<desc>Device type of this attachment.</desc>
</attribute>
<attribute name="passthrough" type="boolean" readonly="yes">
<desc>Pass I/O requests through to a device on the host.</desc>
</attribute>
<attribute name="temporaryEject" type="boolean" readonly="yes">
<desc>Whether guest-triggered eject results in unmounting the medium.</desc>
</attribute>
<attribute name="isEjected" type="boolean" readonly="yes">
<desc>Signals that the removable medium has been ejected. This is not
necessarily equivalent to having a @c null medium association.</desc>
</attribute>
<attribute name="nonRotational" type="boolean" readonly="yes">
<desc>Whether the associated medium is non-rotational.</desc>
</attribute>
<attribute name="discard" type="boolean" readonly="yes">
<desc>Whether the associated medium supports discarding unused blocks.</desc>
</attribute>
<attribute name="hotPluggable" type="boolean" readonly="yes">
<desc>Whether this attachment is hot pluggable or not.</desc>
</attribute>
<attribute name="bandwidthGroup" type="IBandwidthGroup" readonly="yes">
<desc>The bandwidth group this medium attachment is assigned to.</desc>
</attribute>
</interface>
<interface
name="IMedium" extends="$unknown"
uuid="ad47ad09-787b-44ab-b343-a082a3f2dfb1"
wsmap="managed"
rest="managed"
reservedMethods="7" reservedAttributes="12"
>
<desc>
The IMedium interface represents virtual storage for a machine's
hard disks, CD/DVD or floppy drives. It will typically represent
a disk image on the host, for example a VDI or VMDK file representing
a virtual hard disk, or an ISO or RAW file representing virtual
removable media, but can also point to a network location (e.g.
for iSCSI targets).
Instances of IMedium are connected to virtual machines by way of medium
attachments, which link the storage medium to a particular device slot
of a storage controller of the virtual machine.
In the VirtualBox API, virtual storage is therefore always represented
by the following chain of object links:
<ul>
<li><link to="IMachine::storageControllers"/> contains an array of
storage controllers (IDE, SATA, SCSI, SAS or a floppy controller;
these are instances of <link to="IStorageController"/>).</li>
<li><link to="IMachine::mediumAttachments"/> contains an array of
medium attachments (instances of <link to="IMediumAttachment"/>
created by <link to="IMachine::attachDevice" />),
each containing a storage controller from the above array, a
port/device specification, and an instance of IMedium representing
the medium storage (image file).
For removable media, the storage medium is optional; a medium
attachment with no medium represents a CD/DVD or floppy drive
with no medium inserted. By contrast, hard disk attachments
will always have an IMedium object attached.</li>
<li>Each IMedium in turn points to a storage unit (such as a file
on the host computer or a network resource) that holds actual
data. This location is represented by the <link to="#location"/>
attribute.</li>
</ul>
Existing media are opened using <link to="IVirtualBox::openMedium"/>;
new hard disk media can be created with the VirtualBox API using the
<link to="IVirtualBox::createMedium"/> method. Differencing hard
disks (see below) are usually implicitly created by VirtualBox as
needed, but may also be created explicitly using <link to="#createDiffStorage"/>.
VirtualBox cannot create CD/DVD or floppy images (ISO and RAW files); these
should be created with external tools and then opened from within VirtualBox.
Only for CD/DVDs and floppies, an IMedium instance can also represent a host
drive. In that case the <link to="#id" /> attribute contains the UUID of
one of the drives in <link to="IHost::DVDDrives" /> or <link to="IHost::floppyDrives" />.
<h3>Media registries</h3>
When a medium has been opened or created using one of the aforementioned
APIs, it becomes "known" to VirtualBox. Known media can be attached
to virtual machines and re-found through <link to="IVirtualBox::openMedium"/>.
They also appear in the global
<link to="IVirtualBox::hardDisks" />,
<link to="IVirtualBox::DVDImages" /> and
<link to="IVirtualBox::floppyImages" /> arrays.
Prior to VirtualBox 4.0, opening a medium added it to a global media registry
in the VirtualBox.xml file, which was shared between all machines and made
transporting machines and their media from one host to another difficult.
Starting with VirtualBox 4.0, media are only added to a registry when they are
<i>attached</i> to a machine using <link to="IMachine::attachDevice" />. For
backwards compatibility, which registry a medium is added to depends on which
VirtualBox version created a machine:
<ul>
<li>If the medium has first been attached to a machine which was created by
VirtualBox 4.0 or later, it is added to that machine's media registry in
the machine XML settings file. This way all information about a machine's
media attachments is contained in a single file and can be transported
easily.</li>
<li>For older media attachments (i.e. if the medium was first attached to a
machine which was created with a VirtualBox version before 4.0), media
continue to be registered in the global VirtualBox settings file, for
backwards compatibility.</li>
</ul>
See <link to="IVirtualBox::openMedium" /> for more information.
Media are removed from media registries by the <link to="IMedium::close"/>,
<link to="#deleteStorage"/> and <link to="#mergeTo"/> methods.
<h3>Accessibility checks</h3>
VirtualBox defers media accessibility checks until the <link to="#refreshState" />
method is called explicitly on a medium. This is done to make the VirtualBox object
ready for serving requests as fast as possible and let the end-user
application decide if it needs to check media accessibility right away or not.
As a result, when VirtualBox starts up (e.g. the VirtualBox
object gets created for the first time), all known media are in the
"Inaccessible" state, but the value of the <link to="#lastAccessError"/>
attribute is an empty string because no actual accessibility check has
been made yet.
After calling <link to="#refreshState" />, a medium is considered
<i>accessible</i> if its storage unit can be read. In that case, the
<link to="#state"/> attribute has a value of "Created". If the storage
unit cannot be read (for example, because it is located on a disconnected
network resource, or was accidentally deleted outside VirtualBox),
the medium is considered <i>inaccessible</i>, which is indicated by the
"Inaccessible" state. The exact reason why the medium is inaccessible can be
obtained by reading the <link to="#lastAccessError"/> attribute.
<h3>Medium types</h3>
There are five types of medium behavior which are stored in the
<link to="#type"/> attribute (see <link to="MediumType" />) and
which define the medium's behavior with attachments and snapshots.
All media can be also divided in two groups: <i>base</i> media and
<i>differencing</i> media. A base medium contains all sectors of the
medium data in its own storage and therefore can be used independently.
In contrast, a differencing medium is a "delta" to some other medium and
contains only those sectors which differ from that other medium, which is
then called a <i>parent</i>. The differencing medium is said to be
<i>linked to</i> that parent. The parent may be itself a differencing
medium, thus forming a chain of linked media. The last element in that
chain must always be a base medium. Note that several differencing
media may be linked to the same parent medium.
Differencing media can be distinguished from base media by querying the
<link to="#parent"/> attribute: base media do not have parents they would
depend on, so the value of this attribute is always @c null for them.
Using this attribute, it is possible to walk up the medium tree (from the
child medium to its parent). It is also possible to walk down the tree
using the <link to="#children"/> attribute.
Note that the type of all differencing media is "normal"; all other
values are meaningless for them. Base media may be of any type.
<h3>Automatic composition of the file name part</h3>
Another extension to the <link to="IMedium::location"/> attribute is that
there is a possibility to cause VirtualBox to compose a unique value for
the file name part of the location using the UUID of the hard disk. This
applies only to hard disks in <link to="MediumState_NotCreated"/> state,
e.g. before the storage unit is created, and works as follows. You set the
value of the <link to="IMedium::location"/> attribute to a location
specification which only contains the path specification but not the file
name part and ends with either a forward slash or a backslash character.
In response, VirtualBox will generate a new UUID for the hard disk and
compose the file name using the following pattern:
<pre>
<path>/{<uuid>}.<ext>
</pre>
where <tt><path></tt> is the supplied path specification,
<tt><uuid></tt> is the newly generated UUID and <tt><ext></tt>
is the default extension for the storage format of this hard disk. After
that, you may call any of the methods that create a new hard disk storage
unit and they will use the generated UUID and file name.
</desc>
<attribute name="id" type="uuid" mod="string" readonly="yes">
<desc>
UUID of the medium. For a newly created medium, this value is a randomly
generated UUID.
<note>
For media in one of MediumState_NotCreated, MediumState_Creating or
MediumState_Deleting states, the value of this property is undefined
and will most likely be an empty UUID.
</note>
</desc>
</attribute>
<attribute name="description" type="wstring" wrap-hint-server="passcaller">
<desc>
Optional description of the medium. For a newly created medium the value
of this attribute is an empty string.
Medium types that don't support this attribute will return E_NOTIMPL in
attempt to get or set this attribute's value.
<note>
For some storage types, reading this attribute may return an outdated
(last known) value when <link to="#state"/> is <link
to="MediumState_Inaccessible"/> or <link
to="MediumState_LockedWrite"/> because the value of this attribute is
stored within the storage unit itself. Also note that changing the
attribute value is not possible in such case, as well as when the
medium is the <link to="MediumState_LockedRead"/> state.
</note>
</desc>
</attribute>
<attribute name="state" type="MediumState" readonly="yes">
<desc>
Returns the current medium state, which is the last state set by
the accessibility check performed by <link to="#refreshState"/>.
If that method has not yet been called on the medium, the state
is "Inaccessible"; as opposed to truly inaccessible media, the
value of <link to="#lastAccessError"/> will be an empty string in
that case.
<note>As of version 3.1, this no longer performs an accessibility check
automatically; call <link to="#refreshState"/> for that.
</note>
</desc>
</attribute>
<attribute name="variant" type="MediumVariant" safearray="yes" readonly="yes">
<desc>
Returns the storage format variant information for this medium
as an array of the flags described at <link to="MediumVariant" />.
Before <link to="#refreshState"/> is called this method returns
an undefined value.
</desc>
</attribute>
<attribute name="location" type="wstring">
<desc>
Location of the storage unit holding medium data.
The format of the location string is medium type specific. For medium
types using regular files in a host's file system, the location
string is the full file name.
</desc>
</attribute>
<attribute name="name" type="wstring" readonly="yes">
<desc>
Name of the storage unit holding medium data.
The returned string is a short version of the <link to="#location"/>
attribute that is suitable for representing the medium in situations
where the full location specification is too long (such as lists
and comboboxes in GUI frontends). This string is also used by frontends
to sort the media list alphabetically when needed.
For example, for locations that are regular files in the host's file
system, the value of this attribute is just the file name (+ extension),
without the path specification.
Note that as opposed to the <link to="#location"/> attribute, the name
attribute will not necessary be unique for a list of media of the
given type and format.
</desc>
</attribute>
<attribute name="deviceType" type="DeviceType" readonly="yes">
<desc>Kind of device (DVD/Floppy/HardDisk) which is applicable to this
medium.</desc>
</attribute>
<attribute name="hostDrive" type="boolean" readonly="yes">
<desc>True if this corresponds to a drive on the host.</desc>
</attribute>
<attribute name="size" type="long long" readonly="yes">
<desc>
Physical size of the storage unit used to hold medium data (in bytes).
<note>
For media whose <link to="#state"/> is <link
to="MediumState_Inaccessible"/>, the value of this property is the
last known size. For <link to="MediumState_NotCreated"/> media,
the returned value is zero.
</note>
</desc>
</attribute>
<attribute name="format" type="wstring" readonly="yes">
<desc>
Storage format of this medium.
The value of this attribute is a string that specifies a backend used
to store medium data. The storage format is defined when you create a
new medium or automatically detected when you open an existing medium,
and cannot be changed later.
The list of all storage formats supported by this VirtualBox
installation can be obtained using
<link to="ISystemProperties::mediumFormats"/>.
</desc>
</attribute>
<attribute name="mediumFormat" type="IMediumFormat" readonly="yes">
<desc>
Storage medium format object corresponding to this medium.
The value of this attribute is a reference to the medium format object
that specifies the backend properties used to store medium data. The
storage format is defined when you create a new medium or automatically
detected when you open an existing medium, and cannot be changed later.
<note>@c null is returned if there is no associated medium format
object. This can e.g. happen for medium objects representing host
drives and other special medium objects.</note>
</desc>
</attribute>
<attribute name="type" type="MediumType" wrap-hint-server="passcaller">
<desc>
Type (role) of this medium.
The following constraints apply when changing the value of this
attribute:
<ul>
<li>If a medium is attached to a virtual machine (either in the
current state or in one of the snapshots), its type cannot be
changed.
</li>
<li>As long as the medium has children, its type cannot be set
to <link to="MediumType_Writethrough"/>.
</li>
<li>The type of all differencing media is
<link to="MediumType_Normal"/> and cannot be changed.
</li>
</ul>
The type of a newly created or opened medium is set to
<link to="MediumType_Normal"/>, except for DVD and floppy media,
which have a type of <link to="MediumType_Writethrough"/>.
</desc>
</attribute>
<attribute name="allowedTypes" type="MediumType" safearray="yes" readonly="yes">
<desc>
Returns which medium types can selected for this medium.
<result name="E_NOTIMPL">
This attribute is not implemented at the moment.
</result>
</desc>
</attribute>
<attribute name="parent" type="IMedium" readonly="yes" wrap-hint-server="passcaller" rest="uuid">
<desc>
Parent of this medium (the medium this medium is directly based
on).
Only differencing media have parents. For base (non-differencing)
media, @c null is returned.
</desc>
</attribute>
<attribute name="children" type="IMedium" safearray="yes" readonly="yes" wrap-hint-server="passcaller" rest="uuid">
<desc>
Children of this medium (all differencing media directly based
on this medium). A @c null array is returned if this medium
does not have any children.
</desc>
</attribute>
<attribute name="base" type="IMedium" readonly="yes" wrap-hint-server="passcaller" rest="uuid">
<desc>
Base medium of this medium.
If this is a differencing medium, its base medium is the medium
the given medium branch starts from. For all other types of media, this
property returns the medium object itself (i.e. the same object this
property is read on).
</desc>
</attribute>
<attribute name="readOnly" type="boolean" readonly="yes" wrap-hint-server="passcaller">
<desc>
Returns @c true if this medium is read-only and @c false otherwise.
A medium is considered to be read-only when its contents cannot be
modified without breaking the integrity of other parties that depend on
this medium such as its child media or snapshots of virtual machines
where this medium is attached to these machines. If there are no
children and no such snapshots then there is no dependency and the
medium is not read-only.
The value of this attribute can be used to determine the kind of the
attachment that will take place when attaching this medium to a
virtual machine. If the value is @c false then the medium will
be attached directly. If the value is @c true then the medium
will be attached indirectly by creating a new differencing child
medium for that. See the interface description for more information.
Note that all <link to="MediumType_Immutable">Immutable</link> media
are always read-only while all
<link to="MediumType_Writethrough">Writethrough</link> media are
always not.
<note>
The read-only condition represented by this attribute is related to
the medium type and usage, not to the current
<link to="IMedium::state">medium state</link> and not to the read-only
state of the storage unit.
</note>
</desc>
</attribute>
<attribute name="logicalSize" type="long long" readonly="yes">
<desc>
Logical size of this medium (in bytes), as reported to the
guest OS running inside the virtual machine this medium is
attached to. The logical size is defined when the medium is created
and cannot be changed later.
<note>
For media whose state is <link to="#state"/> is <link
to="MediumState_Inaccessible"/>, the value of this property is the
last known logical size. For <link to="MediumState_NotCreated"/>
media, the returned value is zero.
</note>
</desc>
</attribute>
<attribute name="autoReset" type="boolean">
<desc>
Whether this differencing medium will be automatically reset each
time a virtual machine it is attached to is powered up. This
attribute is automatically set to @c true for the last
differencing image of an "immutable" medium (see
<link to="MediumType" />).
See <link to="#reset"/> for more information about resetting
differencing media.
<note>
Reading this property on a base (non-differencing) medium will
always @c false. Changing the value of this property in this
case is not supported.
</note>
<result name="VBOX_E_NOT_SUPPORTED">
This is not a differencing medium (when changing the attribute
value).
</result>
</desc>
</attribute>
<attribute name="lastAccessError" type="wstring" readonly="yes">
<desc>
Text message that represents the result of the last accessibility
check performed by <link to="#refreshState"/>.
An empty string is returned if the last accessibility check
was successful or has not yet been called. As a result, if
<link to="#state" /> is "Inaccessible" and this attribute is empty,
then <link to="#refreshState"/> has yet to be called; this is the
default value of media after VirtualBox initialization.
A non-empty string indicates a failure and should normally describe
a reason of the failure (for example, a file read error).
</desc>
</attribute>
<attribute name="machineIds" type="uuid" mod="string" safearray="yes" readonly="yes">
<desc>
Array of UUIDs of all machines this medium is attached to.
A @c null array is returned if this medium is not attached to any
machine or to any machine's snapshot.
<note>
The returned array will include a machine even if this medium is not
attached to that machine in the current state but attached to it in
one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
details.
</note>
</desc>
</attribute>
<method name="setIds" wrap-hint-server="passcaller">
<rest request="post" path="/mediums/{mediumid}/configuration/"/>
<desc>
Changes the UUID and parent UUID for a hard disk medium.
</desc>
<param name="setImageId" type="boolean" dir="in">
<desc>
Select whether a new image UUID is set or not.
</desc>
</param>
<param name="imageId" type="uuid" mod="string" dir="in">
<desc>
New UUID for the image. If an empty string is passed, then a new
UUID is automatically created, provided that @a setImageId is @c true.
Specifying a zero UUID is not allowed.
</desc>
</param>
<param name="setParentId" type="boolean" dir="in">
<desc>
Select whether a new parent UUID is set or not.
</desc>
</param>
<param name="parentId" type="uuid" mod="string" dir="in">
<desc>
New parent UUID for the image. If an empty string is passed, then a
new UUID is automatically created, provided @a setParentId is
@c true. A zero UUID is valid.
</desc>
</param>
<result name="E_INVALIDARG">
Invalid parameter combination.
</result>
<result name="VBOX_E_NOT_SUPPORTED">
Medium is not a hard disk medium.
</result>
</method>
<method name="refreshState" wrap-hint-server="passcaller">
<rest request="post" path="/mediums/{mediumid}/configuration/"/>
<desc>
If the current medium state (see <link to="MediumState"/>) is one of
"Created", "Inaccessible" or "LockedRead", then this performs an
accessibility check on the medium and sets the value of the <link to="#state"/>
attribute accordingly; that value is also returned for convenience.
For all other state values, this does not perform a refresh but returns
the state only.
The refresh, if performed, may take a long time (several seconds or even
minutes, depending on the storage unit location and format) because it performs an
accessibility check of the storage unit. This check may cause a significant
delay if the storage unit of the given medium is, for example, a file located
on a network share which is not currently accessible due to connectivity
problems. In that case, the call will not return until a timeout
interval defined by the host OS for this operation expires. For this reason,
it is recommended to never read this attribute on the main UI thread to avoid
making the UI unresponsive.
If the last known state of the medium is "Created" and the accessibility
check fails, then the state would be set to "Inaccessible", and
<link to="#lastAccessError"/> may be used to get more details about the
failure. If the state of the medium is "LockedRead", then it remains the
same, and a non-empty value of <link to="#lastAccessError"/> will
indicate a failed accessibility check in this case.
Note that not all medium states are applicable to all medium types.
</desc>
<param name="state" type="MediumState" dir="return">
<desc>
New medium state.
</desc>
</param>
</method>
<method name="getSnapshotIds">
<rest request="get" path="/mediums/{mediumid}/configuration/"/>
<desc>
Returns an array of UUIDs of all snapshots of the given machine where
this medium is attached to.
If the medium is attached to the machine in the current state, then the
first element in the array will always be the ID of the queried machine
(i.e. the value equal to the @c machineId argument), followed by
snapshot IDs (if any).
If the medium is not attached to the machine in the current state, then
the array will contain only snapshot IDs.
The returned array may be @c null if this medium is not attached
to the given machine at all, neither in the current state nor in one of
the snapshots.
</desc>
<param name="machineId" type="uuid" mod="string" dir="in">
<desc>
UUID of the machine to query.
</desc>
</param>
<param name="snapshotIds" type="uuid" mod="string" safearray="yes" dir="return">
<desc>
Array of snapshot UUIDs of the given machine using this medium.
</desc>
</param>
</method>
<method name="lockRead">
<rest request="post" path="/mediums/{mediumid}/configuration/"/>
<desc>
Locks this medium for reading.
A read lock is shared: many clients can simultaneously lock the
same medium for reading unless it is already locked for writing (see
<link to="#lockWrite"/>) in which case an error is returned.
When the medium is locked for reading, it cannot be modified
from within VirtualBox. This means that any method that changes
the properties of this medium or contents of the storage unit
will return an error (unless explicitly stated otherwise). That
includes an attempt to start a virtual machine that wants to
write to the medium.
When the virtual machine is started up, it locks for reading all
media it uses in read-only mode. If some medium cannot be locked
for reading, the startup procedure will fail.
A medium is typically locked for reading while it is used by a running
virtual machine but has a depending differencing image that receives
the actual write operations. This way one base medium can have
multiple child differencing images which can be written to
simultaneously. Read-only media such as DVD and floppy images are
also locked for reading only (so they can be in use by multiple
machines simultaneously).
A medium is also locked for reading when it is the source of a
write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
The medium locked for reading must be unlocked by abandoning the
returned token object, see <link to="IToken"/>. Calls to
<link to="#lockRead"/> can be nested and the lock is actually released
when all callers have abandoned the token.
This method sets the medium state (see <link to="#state"/>) to
"LockedRead" on success. The medium's previous state must be
one of "Created", "Inaccessible" or "LockedRead".
Locking an inaccessible medium is not an error; this method performs
a logical lock that prevents modifications of this medium through
the VirtualBox API, not a physical file-system lock of the underlying
storage unit.
This method returns the current state of the medium
<i>before</i> the operation.
<result name="VBOX_E_INVALID_OBJECT_STATE">
Invalid medium state (e.g. not created, locked, inaccessible,
creating, deleting).
</result>
</desc>
<param name="token" type="IToken" dir="return">
<desc>
Token object, when this is released (reference count reaches 0) then
the lock count is decreased. The lock is released when the lock count
reaches 0.
</desc>
</param>
</method>
<method name="lockWrite">
<rest request="post" path="/mediums/{mediumid}/configuration/"/>
<desc>
Locks this medium for writing.
A write lock, as opposed to <link to="#lockRead"/>, is
exclusive: there may be only one client holding a write lock,
and there may be no read locks while the write lock is held.
As a result, read-locking fails if a write lock is held, and
write-locking fails if either a read or another write lock is held.
When a medium is locked for writing, it cannot be modified
from within VirtualBox, and it is not guaranteed that the values
of its properties are up-to-date. Any method that changes the
properties of this medium or contents of the storage unit will
return an error (unless explicitly stated otherwise).
When a virtual machine is started up, it locks for writing all
media it uses to write data to. If any medium could not be locked
for writing, the startup procedure will fail. If a medium has
differencing images, then while the machine is running, only
the last ("leaf") differencing image is locked for writing,
whereas its parents are locked for reading only.
A medium is also locked for writing when it is the target of a
write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
The medium locked for writing must be unlocked by abandoning the
returned token object, see <link to="IToken"/>. Write locks
<i>cannot</i> be nested.
This method sets the medium state (see <link to="#state"/>) to
"LockedWrite" on success. The medium's previous state must be
either "Created" or "Inaccessible".
Locking an inaccessible medium is not an error; this method performs
a logical lock that prevents modifications of this medium through
the VirtualBox API, not a physical file-system lock of the underlying
storage unit.
<result name="VBOX_E_INVALID_OBJECT_STATE">
Invalid medium state (e.g. not created, locked, inaccessible,
creating, deleting).
</result>
</desc>
<param name="token" type="IToken" dir="return">
<desc>
Token object, when this is released (reference count reaches 0) then
the lock is released.
</desc>
</param>
</method>
<method name="close" wrap-hint-server="passcaller">
<rest request="post" path="/mediums/{mediumid}/actions/"/>
<desc>
Closes this medium.
The medium must not be attached to any known virtual machine
and must not have any known child media, otherwise the
operation will fail.
When the medium is successfully closed, it is removed from
the list of registered media, but its storage unit is not
deleted. In particular, this means that this medium can
later be opened again using the <link to="IVirtualBox::openMedium"/>
call.
Note that after this method successfully returns, the given medium
object becomes uninitialized. This means that any attempt
to call any of its methods or attributes will fail with the
<tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
<result name="VBOX_E_INVALID_OBJECT_STATE">
Invalid medium state (other than not created, created or
inaccessible).
</result>
<result name="VBOX_E_OBJECT_IN_USE">
Medium attached to virtual machine.
</result>
<result name="VBOX_E_FILE_ERROR">
Settings file not accessible.
</result>
<result name="VBOX_E_XML_ERROR">
Could not parse the settings file.
</result>
</desc>
</method>
<!-- property methods -->
<method name="getProperty" const="yes">
<rest request="get" path="/mediums/{mediumid}/configuration/"/>
<desc>
Returns the value of the custom medium property with the given name.
The list of all properties supported by the given medium format can
be obtained with <link to="IMediumFormat::describeProperties"/>.
<note>If this method returns an empty string in @a value, the requested
property is supported but currently not assigned any value.</note>
<result name="VBOX_E_OBJECT_NOT_FOUND">
Requested property does not exist (not supported by the format).
</result>
<result name="E_INVALIDARG">@a name is @c null or empty.</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of the property to get.</desc>
</param>
<param name="value" type="wstring" dir="return">
<desc>Current property value.</desc>
</param>
</method>
<method name="setProperty">
<rest request="post" path="/mediums/{mediumid}/configuration/"/>
<desc>
Sets the value of the custom medium property with the given name.
The list of all properties supported by the given medium format can
be obtained with <link to="IMediumFormat::describeProperties"/>.
<note>Setting the property value to @c null or an empty string is
equivalent to deleting the existing value. A default value (if it is
defined for this property) will be used by the format backend in this
case.</note>
<result name="VBOX_E_OBJECT_NOT_FOUND">
Requested property does not exist (not supported by the format).
</result>
<result name="E_INVALIDARG">@a name is @c null or empty.</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of the property to set.</desc>
</param>
<param name="value" type="wstring" dir="in">
<desc>Property value to set.</desc>
</param>
</method>
<method name="getProperties" const="yes">
<rest request="get" path="/mediums/{mediumid}/configuration/"/>
<desc>
Returns values for a group of properties in one call.
The names of the properties to get are specified using the @a names
argument which is a list of comma-separated property names or
an empty string if all properties are to be returned.
<note>Currently the value of this argument is ignored and the method
always returns all existing properties.</note>
The list of all properties supported by the given medium format can
be obtained with <link to="IMediumFormat::describeProperties"/>.
The method returns two arrays, the array of property names corresponding
to the @a names argument and the current values of these properties.
Both arrays have the same number of elements with each element at the
given index in the first array corresponds to an element at the same
index in the second array.
For properties that do not have assigned values, an empty string is
returned at the appropriate index in the @a returnValues array.
</desc>
<param name="names" type="wstring" dir="in">
<desc>
Names of properties to get.
</desc>
</param>
<param name="returnNames" type="wstring" safearray="yes" dir="out">
<desc>Names of returned properties.</desc>
</param>
<param name="returnValues" type="wstring" safearray="yes" dir="return">
<desc>Values of returned properties.</desc>
</param>
</method>
<method name="setProperties">
<rest request="post" path="/mediums/{mediumid}/configuration/"/>
<desc>
Sets values for a group of properties in one call.
The names of the properties to set are passed in the @a names
array along with the new values for them in the @a values array. Both
arrays have the same number of elements with each element at the given
index in the first array corresponding to an element at the same index
in the second array.
If there is at least one property name in @a names that is not valid,
the method will fail before changing the values of any other properties
from the @a names array.
Using this method over <link to="#setProperty"/> is preferred if you
need to set several properties at once since it is more efficient.
The list of all properties supported by the given medium format can
be obtained with <link to="IMediumFormat::describeProperties"/>.
Setting the property value to @c null or an empty string is equivalent
to deleting the existing value. A default value (if it is defined for
this property) will be used by the format backend in this case.
</desc>
<param name="names" type="wstring" safearray="yes" dir="in">
<desc>Names of properties to set.</desc>
</param>
<param name="values" type="wstring" safearray="yes" dir="in">
<desc>Values of properties to set.</desc>
</param>
</method>
<!-- storage methods -->
<method name="createBaseStorage">
<rest request="post" path="/mediums/{mediumid}/actions/"/>
<desc>
Starts creating a hard disk storage unit (fixed/dynamic, according
to the variant flags) in the background. The previous storage unit
created for this object, if any, must first be deleted using
<link to="#deleteStorage"/>, otherwise the operation will fail.
Before the operation starts, the medium is placed in
<link to="MediumState_Creating"/> state. If the create operation
fails, the medium will be placed back in <link to="MediumState_NotCreated"/>
state.
After the returned progress object reports that the operation has
successfully completed, the medium state will be set to <link
to="MediumState_Created"/>, the medium will be remembered by this
VirtualBox installation and may be attached to virtual machines.
<result name="VBOX_E_NOT_SUPPORTED">
The variant of storage creation operation is not supported. See <link
to="IMediumFormat::capabilities"/>.
</result>
</desc>
<param name="logicalSize" type="long long" dir="in">
<desc>Maximum logical size of the medium in bytes.</desc>
</param>
<param name="variant" type="MediumVariant" safearray="yes" dir="in">
<desc>Exact image variant which should be created (as a combination of
<link to="MediumVariant" /> flags).</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="deleteStorage">
<rest request="post" path="/mediums/{mediumid}/actions/"/>
<desc>
Starts deleting the storage unit of this medium.
The medium must not be attached to any known virtual machine and must
not have any known child media, otherwise the operation will fail.
It will also fail if there is no storage unit to delete or if deletion
is already in progress, or if the medium is being in use (locked for
read or for write) or inaccessible. Therefore, the only valid state for
this operation to succeed is <link to="MediumState_Created"/>.
Before the operation starts, the medium is placed in
<link to="MediumState_Deleting"/> state and gets removed from the list
of remembered hard disks (media registry). If the delete operation
fails, the medium will be remembered again and placed back to
<link to="MediumState_Created"/> state.
After the returned progress object reports that the operation is
complete, the medium state will be set to
<link to="MediumState_NotCreated"/> and you will be able to use one of
the storage creation methods to create it again.
<see><link to="#close"/></see>
<result name="VBOX_E_OBJECT_IN_USE">
Medium is attached to a virtual machine.
</result>
<result name="VBOX_E_NOT_SUPPORTED">
Storage deletion is not allowed because neither of storage creation
operations are supported. See
<link to="IMediumFormat::capabilities"/>.
</result>
<note>
If the deletion operation fails, it is not guaranteed that the storage
unit still exists. You may check the <link to="IMedium::state"/> value
to answer this question.
</note>
</desc>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<!-- diff methods -->
<method name="createDiffStorage" wrap-hint-server="passcaller">
<rest request="post" path="/mediums/{mediumid}/actions/"/>
<desc>
Starts creating an empty differencing storage unit based on this
medium in the format and at the location defined by the @a target
argument.
The target medium must be in <link to="MediumState_NotCreated"/>
state (i.e. must not have an existing storage unit). Upon successful
completion, this operation will set the type of the target medium to
<link to="MediumType_Normal"/> and create a storage unit necessary to
represent the differencing medium data in the given format (according
to the storage format of the target object).
After the returned progress object reports that the operation is
successfully complete, the target medium gets remembered by this
VirtualBox installation and may be attached to virtual machines.
<note>
The medium will be set to <link to="MediumState_LockedRead"/>
state for the duration of this operation.
</note>
<result name="VBOX_E_OBJECT_IN_USE">
Medium not in @c NotCreated state.
</result>
</desc>
<param name="target" type="IMedium" dir="in">
<desc>Target medium.</desc>
</param>
<param name="variant" type="MediumVariant" safearray="yes" dir="in">
<desc>Exact image variant which should be created (as a combination of
<link to="MediumVariant" /> flags).</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="mergeTo">
<rest request="post" path="/mediums/{mediumid}/actions/"/>
<desc>
Starts merging the contents of this medium and all intermediate
differencing media in the chain to the given target medium.
The target medium must be either a descendant of this medium or
its ancestor (otherwise this method will immediately return a failure).
It follows that there are two logical directions of the merge operation:
from ancestor to descendant (<i>forward merge</i>) and from descendant to
ancestor (<i>backward merge</i>). Let us consider the following medium
chain:
<pre>Base <- Diff_1 <- Diff_2</pre>
Here, calling this method on the <tt>Base</tt> medium object with
<tt>Diff_2</tt> as an argument will be a forward merge; calling it on
<tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
merge. Note that in both cases the contents of the resulting medium
will be the same, the only difference is the medium object that takes
the result of the merge operation. In case of the forward merge in the
above example, the result will be written to <tt>Diff_2</tt>; in case of
the backward merge, the result will be written to <tt>Base</tt>. In
other words, the result of the operation is always stored in the target
medium.
Upon successful operation completion, the storage units of all media in
the chain between this (source) medium and the target medium, including
the source medium itself, will be automatically deleted and the
relevant medium objects (including this medium) will become
uninitialized. This means that any attempt to call any of
their methods or attributes will fail with the
<tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> media.
Note that <tt>Diff_2</tt> in this case will become a base medium
itself since it will no longer be based on any other medium.
Considering the above, all of the following conditions must be met in
order for the merge operation to succeed:
<ul>
<li>
Neither this (source) medium nor any intermediate
differencing medium in the chain between it and the target
medium is attached to any virtual machine.
</li>
<li>
Neither the source medium nor the target medium is an
<link to="MediumType_Immutable"/> medium.
</li>
<li>
The part of the medium tree from the source medium to the
target medium is a linear chain, i.e. all medium in this
chain have exactly one child which is the next medium in this
chain. The only exception from this rule is the target medium in
the forward merge operation; it is allowed to have any number of
child media because the merge operation will not change its
logical contents (as it is seen by the guest OS or by children).
</li>
<li>
None of the involved media are in
<link to="MediumState_LockedRead"/> or
<link to="MediumState_LockedWrite"/> state.
</li>
</ul>
<note>
This (source) medium and all intermediates will be placed to <link
to="MediumState_Deleting"/> state and the target medium will be
placed to <link to="MediumState_LockedWrite"/> state and for the
duration of this operation.
</note>
</desc>
<param name="target" type="IMedium" dir="in">
<desc>Target medium.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<!-- clone method -->
<method name="cloneTo">
<rest request="post" path="/mediums/{mediumid}/actions/"/>
<desc>
Starts creating a clone of this medium in the format and at the
location defined by the @a target argument.
The target medium must be either in <link to="MediumState_NotCreated"/>
state (i.e. must not have an existing storage unit) or in
<link to="MediumState_Created"/> state (i.e. created and not locked, and
big enough to hold the data or else the copy will be partial). Upon
successful completion, the cloned medium will contain exactly the
same sector data as the medium being cloned, except that in the
first case a new UUID for the clone will be randomly generated, and in
the second case the UUID will remain unchanged.
The @a parent argument defines which medium will be the parent
of the clone. Passing a @c null reference indicates that the clone will
be a base image, i.e. completely independent. It is possible to specify
an arbitrary medium for this parameter, including the parent of the
medium which is being cloned. Even cloning to a child of the source
medium is possible. Note that when cloning to an existing image, the
@a parent argument is ignored.
After the returned progress object reports that the operation is
successfully complete, the target medium gets remembered by this
VirtualBox installation and may be attached to virtual machines.
<note>
This medium will be placed to <link to="MediumState_LockedRead"/>
state for the duration of this operation.
</note>
<result name="E_NOTIMPL">
The specified cloning variant is not supported at the moment.
</result>
</desc>
<param name="target" type="IMedium" dir="in">
<desc>Target medium.</desc>
</param>
<param name="variant" type="MediumVariant" safearray="yes" dir="in">
<desc>Exact image variant which should be created (as a combination of
<link to="MediumVariant" /> flags).</desc>
</param>
<param name="parent" type="IMedium" dir="in">
<desc>Parent of the cloned medium.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="cloneToBase">
<rest request="post" path="/mediums/{mediumid}/actions/"/>
<desc>
Starts creating a clone of this medium in the format and at the
location defined by the @a target argument.
The target medium must be either in <link to="MediumState_NotCreated"/>
state (i.e. must not have an existing storage unit) or in
<link to="MediumState_Created"/> state (i.e. created and not locked, and
big enough to hold the data or else the copy will be partial). Upon
successful completion, the cloned medium will contain exactly the
same sector data as the medium being cloned, except that in the
first case a new UUID for the clone will be randomly generated, and in
the second case the UUID will remain unchanged.
The @a parent argument defines which medium will be the parent
of the clone. In this case the clone will be a base image, i.e.
completely independent. It is possible to specify an arbitrary
medium for this parameter, including the parent of the
medium which is being cloned. Even cloning to a child of the source
medium is possible. Note that when cloning to an existing image, the
@a parent argument is ignored.
After the returned progress object reports that the operation is
successfully complete, the target medium gets remembered by this
VirtualBox installation and may be attached to virtual machines.
<note>
This medium will be placed to <link to="MediumState_LockedRead"/>
state for the duration of this operation.
</note>
<result name="E_NOTIMPL">
The specified cloning variant is not supported at the moment.
</result>
</desc>
<param name="target" type="IMedium" dir="in">
<desc>Target medium.</desc>
</param>
<param name="variant" type="MediumVariant" safearray="yes" dir="in">
<desc><link to="MediumVariant" /> flags).</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<!-- other methods -->
<method name="moveTo" wrap-hint-server="passcaller">
<rest request="post" path="/mediums/{mediumid}/actions/"/>
<desc>
Changes the location of this medium. Some medium types may support
changing the storage unit location by simply changing the value of the
associated property. In this case the operation is performed
immediately, and @a progress is returning a @c null reference.
Otherwise on success there is a progress object returned, which
signals progress and completion of the operation. This distinction is
necessary because for some formats the operation is very fast, while
for others it can be very slow (moving the image file by copying all
data), and in the former case it'd be a waste of resources to create
a progress object which will immediately signal completion.
When setting a location for a medium which corresponds to a/several
regular file(s) in the host's file system, the given file name may be
either relative to the <link to="IVirtualBox::homeFolder">VirtualBox
home folder</link> or absolute. Note that if the given location
specification does not contain the file extension part then a proper
default extension will be automatically appended by the implementation
depending on the medium type.
<result name="E_NOTIMPL">
The operation is not implemented yet.
</result>
<result name="VBOX_E_NOT_SUPPORTED">
Medium format does not support changing the location.
</result>
</desc>
<param name="location" type="wstring" dir="in">
<desc>New location.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="compact">
<rest request="post" path="/mediums/{mediumid}/actions/"/>
<desc>
Starts compacting of this medium. This means that the medium is
transformed into a possibly more compact storage representation.
This potentially creates temporary images, which can require a
substantial amount of additional disk space.
This medium will be placed to <link to="MediumState_LockedWrite"/>
state and all its parent media (if any) will be placed to
<link to="MediumState_LockedRead"/> state for the duration of this
operation.
Please note that the results can be either returned straight away,
or later as the result of the background operation via the object
returned via the @a progress parameter.
<result name="VBOX_E_NOT_SUPPORTED">
Medium format does not support compacting (but potentially
needs it).
</result>
</desc>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="resize">
<rest request="post" path="/mediums/{mediumid}/actions/"/>
<desc>
Starts resizing this medium. This means that the nominal size of the
medium is set to the new value. Both increasing and decreasing the
size is possible, and there are no safety checks, since VirtualBox
does not make any assumptions about the medium contents.
Resizing usually needs additional disk space, and possibly also
some temporary disk space. Note that resize does not create a full
temporary copy of the medium, so the additional disk space requirement
is usually much lower than using the clone operation.
This medium will be placed to <link to="MediumState_LockedWrite"/>
state for the duration of this operation.
Please note that the results can be either returned straight away,
or later as the result of the background operation via the object
returned via the @a progress parameter.
<result name="VBOX_E_NOT_SUPPORTED">
Medium format does not support resizing.
</result>
</desc>
<param name="logicalSize" type="long long" dir="in">
<desc>New nominal capacity of the medium in bytes.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="reset" wrap-hint-server="passcaller">
<rest request="post" path="/mediums/{mediumid}/actions/"/>
<desc>
Starts erasing the contents of this differencing medium.
This operation will reset the differencing medium to its initial
state when it does not contain any sector data and any read operation is
redirected to its parent medium. This automatically gets called
during VM power-up for every medium whose <link to="#autoReset" />
attribute is @c true.
The medium will be write-locked for the duration of this operation (see
<link to="#lockWrite" />).
<result name="VBOX_E_NOT_SUPPORTED">
This is not a differencing medium.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Medium is not in <link to="MediumState_Created"/> or
<link to="MediumState_Inaccessible"/> state.
</result>
</desc>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="changeEncryption">
<rest request="post" path="/mediums/{mediumid}/actions/"/>
<desc>
Starts encryption of this medium. This means that the stored data in the
medium is encrypted.
This medium will be placed to <link to="MediumState_LockedWrite"/>
state.
Please note that the results can be either returned straight away,
or later as the result of the background operation via the object
returned via the @a progress parameter.
<result name="VBOX_E_NOT_SUPPORTED">
Encryption is not supported for this medium because it is attached to more than one VM
or has children.
</result>
</desc>
<param name="currentPassword" type="wstring" dir="in">
<desc>
The current password the medium is protected with. Use an empty string to indicate
that the medium isn't encrypted.
</desc>
</param>
<param name="cipher" type="wstring" dir="in">
<desc>
The cipher to use for encryption. An empty string indicates no encryption for the
result.
</desc>
</param>
<param name="newPassword" type="wstring" dir="in">
<desc>
The new password the medium should be protected with. An empty password and password ID
will result in the medium being encrypted with the current password.
</desc>
</param>
<param name="newPasswordId" type="wstring" dir="in">
<desc>The ID of the new password when unlocking the medium.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="getEncryptionSettings" const="yes" wrap-hint-server="passcaller">
<rest request="get" path="/mediums/{mediumid}/configuration/"/>
<desc>
Returns the encryption settings for this medium.
<result name="VBOX_E_NOT_SUPPORTED">
Encryption is not configured for this medium.
</result>
</desc>
<param name="cipher" type="wstring" dir="out">
<desc>The cipher used for encryption.</desc>
</param>
<param name="passwordId" type="wstring" dir="return">
<desc>The ID of the password when unlocking the medium.</desc>
</param>
</method>
<method name="checkEncryptionPassword" const="yes">
<rest request="get" path="/mediums/{mediumid}/configuration/"/>
<desc>
Checks whether the supplied password is correct for the medium.
<result name="VBOX_E_NOT_SUPPORTED">
Encryption is not configured for this medium.
</result>
<result name="VBOX_E_PASSWORD_INCORRECT">
The given password is incorrect.
</result>
</desc>
<param name="password" type="wstring" dir="in">
<desc>The password to check.</desc>
</param>
</method>
<method name="openForIO">
<desc>
Open the medium for I/O.
</desc>
<param name="writable" type="boolean" dir="in">
<desc>Set this to open the medium for both reading and writing. When
not set the medium is opened readonly.</desc>
</param>
<param name="password" type="wstring" dir="in">
<desc>Password for accessing an encrypted medium. Must be empty if not encrypted.</desc>
</param>
<param name="mediumIO" type="IMediumIO" dir="return">
<desc>Medium I/O object.</desc>
</param>
</method>
<method name="resizeAndCloneTo">
<rest request="post" path="/mediums/{mediumid}/actions/"/>
<desc>
This is a helper function that combines the functionality of
<link to="IMedium::cloneTo"/> and <link to="IMedium::resize"/>. The target medium will take the
contents of the calling medium.
<result name="E_NOTIMPL">
The specified cloning variant is not supported at the moment.
</result>
<note>
Method will be moved to appropriate location at the next major API release.
</note>
</desc>
<param name="target" type="IMedium" dir="in">
<desc>Target medium.</desc>
</param>
<param name="logicalSize" type="long long" dir="in">
<desc>New nominal capacity of the medium in bytes.</desc>
</param>
<param name="variant" type="MediumVariant" safearray="yes" dir="in">
<desc>Exact image variant which should be created (as a combination of
<link to="MediumVariant" /> flags).</desc>
</param>
<param name="parent" type="IMedium" dir="in">
<desc>Parent of the cloned medium.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
</interface>
<!--
// IMediumFormat
/////////////////////////////////////////////////////////////////////////
-->
<enum
name="DataType"
uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
>
<const name="Int32" value="0"/>
<const name="Int8" value="1"/>
<const name="String" value="2"/>
</enum>
<enum
name="DataFlags"
uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
>
<const name="None" value="0x00"/>
<const name="Mandatory" value="0x01"/>
<const name="Expert" value="0x02"/>
<const name="Array" value="0x04"/>
<const name="FlagMask" value="0x07"/>
</enum>
<enum
name="MediumFormatCapabilities"
uuid="7342ba79-7ce0-4d94-8f86-5ed5a185d9bd"
>
<desc>
Medium format capability flags.
</desc>
<const name="Uuid" value="0x01">
<desc>
Supports UUIDs as expected by VirtualBox code.
</desc>
</const>
<const name="CreateFixed" value="0x02">
<desc>
Supports creating fixed size images, allocating all space instantly.
</desc>
</const>
<const name="CreateDynamic" value="0x04">
<desc>
Supports creating dynamically growing images, allocating space on
demand.
</desc>
</const>
<const name="CreateSplit2G" value="0x08">
<desc>
Supports creating images split in chunks of a bit less than 2 GBytes.
</desc>
</const>
<const name="Differencing" value="0x10">
<desc>
Supports being used as a format for differencing media (see <link
to="IMedium::createDiffStorage"/>).
</desc>
</const>
<const name="Asynchronous" value="0x20">
<desc>
Supports asynchronous I/O operations for at least some configurations.
</desc>
</const>
<const name="File" value="0x40">
<desc>
The format backend operates on files (the <link to="IMedium::location"/>
attribute of the medium specifies a file used to store medium
data; for a list of supported file extensions see
<link to="IMediumFormat::describeFileExtensions"/>).
</desc>
</const>
<const name="Properties" value="0x80">
<desc>
The format backend uses the property interface to configure the storage
location and properties (the <link to="IMediumFormat::describeProperties"/>
method is used to get access to properties supported by the given medium format).
</desc>
</const>
<const name="TcpNetworking" value="0x100">
<desc>
The format backend uses the TCP networking interface for network access.
</desc>
</const>
<const name="VFS" value="0x200">
<desc>
The format backend supports virtual filesystem functionality.
</desc>
</const>
<const name="Discard" value="0x400">
<desc>
The format backend supports discarding blocks.
</desc>
</const>
<const name="Preferred" value="0x800">
<desc>
Indicates that this is a frequently used format backend.
</desc>
</const>
<const name="CapabilityMask" value="0xFFF"/>
</enum>
<interface
name="IMediumFormat" extends="$unknown"
uuid="11be93c7-a862-4dc9-8c89-bf4ba74a886a"
wsmap="managed"
rest="managed"
reservedMethods="2" reservedAttributes="4"
>
<desc>
The IMediumFormat interface represents a medium format.
Each medium format has an associated backend which is used to handle
media stored in this format. This interface provides information
about the properties of the associated backend.
Each medium format is identified by a string represented by the
<link to="#id"/> attribute. This string is used in calls like
<link to="IVirtualBox::createMedium"/> to specify the desired
format.
The list of all supported medium formats can be obtained using
<link to="ISystemProperties::mediumFormats"/>.
<see><link to="IMedium"/></see>
</desc>
<attribute name="id" type="wstring" readonly="yes">
<desc>
Identifier of this format.
The format identifier is a non-@c null non-empty ASCII string. Note that
this string is case-insensitive. This means that, for example, all of
the following strings:
<pre>
"VDI"
"vdi"
"VdI"</pre>
refer to the same medium format.
This string is used in methods of other interfaces where it is necessary
to specify a medium format, such as
<link to="IVirtualBox::createMedium"/>.
</desc>
</attribute>
<attribute name="name" type="wstring" readonly="yes">
<desc>
Human readable description of this format.
Mainly for use in file open dialogs.
</desc>
</attribute>
<attribute name="capabilities" type="MediumFormatCapabilities" safearray="yes" readonly="yes">
<desc>
Capabilities of the format as an array of the flags.
For the meaning of individual capability flags see
<link to="MediumFormatCapabilities"/>.
</desc>
</attribute>
<method name="describeFileExtensions" const="yes">
<desc>
Returns two arrays describing the supported file extensions.
The first array contains the supported extensions and the seconds one
the type each extension supports. Both have the same size.
Note that some backends do not work on files, so this array may be
empty.
<see><link to="IMediumFormat::capabilities"/></see>
</desc>
<param name="extensions" type="wstring" safearray="yes" dir="out">
<desc>The array of supported extensions.</desc>
</param>
<param name="types" type="DeviceType" safearray="yes" dir="out">
<desc>The array which indicates the device type for every given extension.</desc>
</param>
</method>
<method name="describeProperties" const="yes">
<desc>
Returns several arrays describing the properties supported by this
format.
An element with the given index in each array describes one
property. Thus, the number of elements in each returned array is the
same and corresponds to the number of supported properties.
The returned arrays are filled in only if the
<link to="MediumFormatCapabilities_Properties"/> flag is set.
All arguments must be non-@c null.
<see><link to="DataType"/>, <link to="DataFlags"/></see>
</desc>
<param name="names" type="wstring" safearray="yes" dir="out">
<desc>Array of property names.</desc>
</param>
<param name="descriptions" type="wstring" safearray="yes" dir="out">
<desc>Array of property descriptions.</desc>
</param>
<param name="types" type="DataType" safearray="yes" dir="out">
<desc>Array of property types.</desc>
</param>
<param name="flags" type="unsigned long" safearray="yes" dir="out">
<desc>Array of property flags.</desc>
</param>
<param name="defaults" type="wstring" safearray="yes" dir="out">
<desc>Array of default property values.</desc>
</param>
</method>
</interface>
<!--
// IDataStream
/////////////////////////////////////////////////////////////////////////
-->
<interface
name="IDataStream" extends="$unknown"
uuid="a338ed20-58d9-43ae-8b03-c1fd7088ef15"
wsmap="managed"
reservedMethods="4" reservedAttributes="8"
>
<desc>
The IDataStream interface is used to retrieve a data stream. It is
returned by <link to="IMediumIO::convertToStream"/>.
</desc>
<attribute name="readSize" type="unsigned long" readonly="yes">
<desc>Recommended size of a read. Requesting a larger read may be
possible in certain situations, but it is not guaranteed.</desc>
</attribute>
<method name="read">
<desc>
Read data from the stream.
<result name="VBOX_E_TIMEOUT">
Waiting time has expired.
</result>
</desc>
<param name="size" type="unsigned long" dir="in">
<desc>How many bytes to try read.</desc>
</param>
<param name="timeoutMS" type="unsigned long" dir="in">
<desc>
Timeout (in ms) for limiting the wait time for data to be available.
Pass 0 for an infinite timeout.
</desc>
</param>
<param name="data" type="octet" dir="return" safearray="yes">
<desc>Array of data read. This may be shorter than the specified size.
Returning a zero-sized array indicates the end of the stream, if the
status is successful.</desc>
</param>
</method>
</interface>
<!--
// IMediumIO
/////////////////////////////////////////////////////////////////////////
-->
<enum
name="PartitionTableType"
uuid="360066eb-d19e-4fa1-57ef-fed434fbe2a9"
>
<desc>
Partition table types.
</desc>
<const name="MBR" value="1"/>
<const name="GPT" value="2"/>
</enum>
<interface
name="IMediumIO" extends="$unknown"
uuid="e4b301a9-5f86-4d65-ad1b-87ca284fb1c8"
wsmap="managed"
reservedMethods="4" reservedAttributes="8"
>
<desc>
The IMediumIO interface is used to access and modify the content of a
medium. It is returned by <link to="IMedium::openForIO"/>.
</desc>
<attribute name="medium" type="IMedium" readonly="yes">
<desc>The open medium.</desc>
</attribute>
<attribute name="writable" type="boolean" readonly="yes">
<desc>Whether the medium can be written to. (It can always be read from.)</desc>
</attribute>
<attribute name="explorer" type="IVFSExplorer" readonly="yes">
<desc>
Returns the virtual file system explorer for the medium.
This will attempt to recognize the format of the medium content and
present it as a virtual directory structure to the API user.
A FAT floppy image will be represented will a single root subdir 'fat12'
that gives access to the file system content.
A ISO-9660 image will have one subdir in the root for each format present
in the image, so the API user can select which data view to access (iso9660,
rockridge, joliet, udf, hfs, ...).
A partitioned harddisk image will have subdirs for each partition. The
the filesystem content of each partition can be accessed thru the subdirs
if we have a file system interpreter for it. There will also be raw files
for each subdirectory, to provide a simple way of accessing raw partition
data from an API client.
Please note that the explorer may show inconsistent information if
the API user modifies the raw image content after it was opened.
</desc>
</attribute>
<method name="read">
<desc>
Read data from the medium.
</desc>
<param name="offset" type="long long" dir="in">
<desc>The byte offset into the medium to start reading at.</desc>
</param>
<param name="size" type="unsigned long" dir="in">
<desc>How many bytes to try read.</desc>
</param>
<param name="data" type="octet" dir="return" safearray="yes">
<desc>Array of data read. This may be shorter than the specified size.</desc>
</param>
</method>
<method name="write">
<desc>
Write data to the medium.
</desc>
<param name="offset" type="long long" dir="in">
<desc>The byte offset into the medium to start reading at.</desc>
</param>
<param name="data" type="octet" dir="in" safearray="yes">
<desc>Array of data to write.</desc>
</param>
<param name="written" type="unsigned long" dir="return">
<desc>How many bytes were actually written.</desc>
</param>
</method>
<method name="formatFAT">
<desc>
Formats the medium as FAT. Generally only useful for floppy images as
no partition table will be created.
</desc>
<param name="quick" type="boolean" dir="in">
<desc>Quick format it when set.</desc>
</param>
</method>
<method name="initializePartitionTable">
<desc>
Writes an empty partition table to the disk.
</desc>
<param name="format" type="PartitionTableType" dir="in">
<desc>The partition table format.</desc>
</param>
<param name="wholeDiskInOneEntry" type="boolean" dir="in">
<desc>
When @c true a partition table entry for the whole disk is created.
Otherwise the partition table is empty.
</desc>
</param>
</method>
<method name="convertToStream">
<desc>
Converts the currently opened image into a stream of the specified
image type/variant. It is sufficient to open the image in read-only
mode. Only few types and variants are supported due to the inherent
restrictions of the output style.
<result name="VBOX_E_NOT_SUPPORTED">
The requested format/variant combination cannot handle stream output.
</result>
<result name="VBOX_E_FILE_ERROR">
An error occurred during the conversion.
</result>
</desc>
<param name="format" type="wstring" dir="in">
<desc>Identifier of the storage format to use for output.</desc>
</param>
<param name="variant" type="MediumVariant" safearray="yes" dir="in">
<desc>The partition table format.</desc>
</param>
<param name="bufferSize" type="unsigned long" dir="in">
<desc>
Requested buffer size (in bytes) for efficient conversion. Sizes
which are too small or too large are silently truncated to suitable
values. Tens to hundreds of Megabytes are a good choice.
</desc>
</param>
<param name="stream" type="IDataStream" dir="out">
<desc>Data stream object for reading the target image.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="close">
<desc>
Explictly close the medium I/O rather than waiting for garbage
collection and the destructor.
This will wait for any pending reads and writes to complete and then
close down the I/O access without regard for open explorer instances or
anything like that.
</desc>
</method>
</interface>
<!--
// IToken
/////////////////////////////////////////////////////////////////////////
-->
<interface
name="IToken" extends="$unknown"
uuid="20479eaf-d8ed-44cf-85ac-c83a26c95a4d"
wsmap="managed"
rest="managed"
reservedMethods="1" reservedAttributes="2"
>
<desc>
The IToken interface represents a token passed to an API client, which
triggers cleanup actions when it is explicitly released by calling the
<link to="#abandon"/> method (preferred, as it is accurately defined
when the release happens), or when the object reference count drops
to 0. The latter way is implicitly used when an API client crashes,
however the discovery that there was a crash can take rather long,
depending on the platform (COM needs 6 minutes). So better don't rely
on the crash behavior too much.
</desc>
<method name="abandon" wrap-hint-server="passcaller">
<desc>Releases this token. Cannot be undone in any way, and makes the
token object unusable (even the <link to="#dummy"/> method will return
an error), ready for releasing. It is a more defined way than just
letting the reference count drop to 0, because the latter (depending
on the platform) can trigger asynchronous cleanup activity.
</desc>
</method>
<method name="dummy">
<desc>Purely a NOOP. Useful when using proxy type API bindings (e.g. the
webservice) which manage objects on behalf of the actual client, using
an object reference expiration time based garbage collector.
</desc>
</method>
</interface>
<!--
// IKeyboard
/////////////////////////////////////////////////////////////////////////
-->
<enum
name="KeyboardLED"
uuid="ef29ea38-409b-49c7-a817-c858d426dfba"
>
<desc>
Keyboard LED indicators.
</desc>
<const name="NumLock" value="0x01"/>
<const name="CapsLock" value="0x02"/>
<const name="ScrollLock" value="0x04"/>
</enum>
<interface
name="IKeyboard" extends="$unknown"
uuid="755e6bdf-1640-41f9-bd74-3ef5fd653250"
wsmap="managed"
rest="managed"
reservedMethods="4" reservedAttributes="4"
>
<desc>
The IKeyboard interface represents the virtual machine's keyboard. Used
in <link to="IConsole::keyboard"/>.
Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
to the virtual machine.
</desc>
<attribute name="keyboardLEDs" type="KeyboardLED" safearray="yes" readonly="yes">
<desc>
Current status of the guest keyboard LEDs.
</desc>
</attribute>
<method name="putScancode">
<desc>Sends a scancode to the keyboard.
<result name="VBOX_E_IPRT_ERROR">
Could not send scan code to virtual keyboard.
</result>
</desc>
<param name="scancode" type="long" dir="in"/>
</method>
<method name="putScancodes">
<desc>Sends an array of scancodes to the keyboard.
<result name="VBOX_E_IPRT_ERROR">
Could not send all scan codes to virtual keyboard.
</result>
</desc>
<param name="scancodes" type="long" dir="in" safearray="yes"/>
<param name="codesStored" type="unsigned long" dir="return"/>
</method>
<method name="putCAD">
<desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
function is nothing special, it is just a convenience function
calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
<result name="VBOX_E_IPRT_ERROR">
Could not send all scan codes to virtual keyboard.
</result>
</desc>
</method>
<method name="releaseKeys">
<desc>Causes the virtual keyboard to release any keys which are
currently pressed. Useful when host and guest keyboard may be out
of sync.
<result name="VBOX_E_IPRT_ERROR">
Could not release some or all keys.
</result>
</desc>
</method>
<method name="putUsageCode">
<desc>Sends a USB HID usage code and page to the keyboard. The
keyRelease flag is set when the key is being released.
<result name="VBOX_E_IPRT_ERROR">
Could not send usage code to virtual keyboard.
</result>
</desc>
<param name="usageCode" type="long" dir="in"/>
<param name="usagePage" type="long" dir="in"/>
<param name="keyRelease" type="boolean" dir="in"/>
</method>
<attribute name="eventSource" type="IEventSource" readonly="yes">
<desc>
Event source for keyboard events.
</desc>
</attribute>
</interface>
<!--
// IMouse
/////////////////////////////////////////////////////////////////////////
-->
<enum
name="MouseButtonState"
uuid="9ee094b8-b28a-4d56-a166-973cb588d7f8"
>
<desc>
Mouse button state.
</desc>
<const name="LeftButton" value="0x01"/>
<const name="RightButton" value="0x02"/>
<const name="MiddleButton" value="0x04"/>
<const name="WheelUp" value="0x08"/>
<const name="WheelDown" value="0x10"/>
<const name="XButton1" value="0x20"/>
<const name="XButton2" value="0x40"/>
<const name="MouseStateMask" value="0x7F"/>
</enum>
<enum
name="TouchContactState"
uuid="3f942686-2506-421c-927c-90d4b45f4a38"
>
<desc>
Touch event contact state.
</desc>
<const name="None" value="0x00">
<desc>The touch has finished.</desc>
</const>
<const name="InContact" value="0x01">
<desc>Whether the touch is really touching the device.</desc>
</const>
<const name="InRange" value="0x02">
<desc>
Whether the touch is close enough to the device to be detected.
</desc>
</const>
<const name="ContactStateMask" value="0x03"/>
</enum>
<interface
name="IMousePointerShape" extends="$unknown"
uuid="1e775ea3-9070-4f9c-b0d5-53054496dbe0"
wsmap="managed"
rest="managed"
reservedAttributes="4"
>
<desc>
The guest mouse pointer description.
</desc>
<attribute name="visible" type="boolean" readonly="yes">
<desc>
Flag whether the pointer is visible.
</desc>
</attribute>
<attribute name="alpha" type="boolean" readonly="yes">
<desc>
Flag whether the pointer has an alpha channel.
</desc>
</attribute>
<attribute name="hotX" type="unsigned long" readonly="yes">
<desc>
The pointer hot spot X coordinate.
</desc>
</attribute>
<attribute name="hotY" type="unsigned long" readonly="yes">
<desc>
The pointer hot spot Y coordinate.
</desc>
</attribute>
<attribute name="width" type="unsigned long" readonly="yes">
<desc>
Width of the pointer shape in pixels.
</desc>
</attribute>
<attribute name="height" type="unsigned long" readonly="yes">
<desc>
Height of the pointer shape in pixels.
</desc>
</attribute>
<attribute name="shape" type="octet" safearray="yes" readonly="yes">
<desc>
Shape bitmaps.
The @a shape buffer contains a 1bpp (bits per pixel) AND mask
followed by a 32bpp XOR (color) mask.
For pointers without alpha channel the XOR mask pixels are
32 bit values: (lsb)BGR0(msb). For pointers with alpha channel
the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
An AND mask is provided for pointers with alpha channel, so if the
client does not support alpha, the pointer could be
displayed as a normal color pointer.
The AND mask is a 1bpp bitmap with byte aligned scanlines. The
size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
height</tt>. The padding bits at the end of each scanline are
undefined.
The XOR mask follows the AND mask on the next 4-byte aligned
offset: <tt>uint8_t *pu8Xor = pu8And + (cbAnd + 3) & ~3</tt>.
Bytes in the gap between the AND and the XOR mask are undefined.
The XOR mask scanlines have no gap between them and the size of
the XOR mask is: <tt>cbXor = width * 4 * height</tt>.
<note>
If @a shape size is 0, then the shape is not known or did not change.
This can happen if only the pointer visibility is changed.
</note>
</desc>
</attribute>
</interface>
<interface
name="IMouse" extends="$unknown"
uuid="25360a74-55e5-4f14-ac2a-f5cf8e62e4af"
wsmap="managed"
rest="managed"
reservedMethods="4" reservedAttributes="4"
>
<desc>
The IMouse interface represents the virtual machine's mouse. Used in
<link to="IConsole::mouse"/>.
Through this interface, the virtual machine's virtual mouse can be
controlled.
</desc>
<attribute name="absoluteSupported" type="boolean" readonly="yes">
<desc>
Whether the guest OS supports absolute mouse pointer positioning
or not.
<note>
You can use the <link to="IMouseCapabilityChangedEvent"/>
event to be instantly informed about changes of this attribute
during virtual machine execution.
</note>
<see><link to="#putMouseEventAbsolute"/></see>
</desc>
</attribute>
<attribute name="relativeSupported" type="boolean" readonly="yes">
<desc>
Whether the guest OS supports relative mouse pointer positioning
or not.
<note>
You can use the <link to="IMouseCapabilityChangedEvent"/>
event to be instantly informed about changes of this attribute
during virtual machine execution.
</note>
<see><link to="#putMouseEvent"/></see>
</desc>
</attribute>
<attribute name="touchScreenSupported" type="boolean" readonly="yes">
<desc>
Whether the guest OS has enabled the multi-touch reporting device,
touchscreen variant.
<note>
You can use the <link to="IMouseCapabilityChangedEvent"/>
event to be instantly informed about changes of this attribute
during virtual machine execution.
</note>
<see><link to="#putMouseEvent"/></see>
</desc>
</attribute>
<attribute name="touchPadSupported" type="boolean" readonly="yes">
<desc>
Whether the guest OS has enabled the multi-touch reporting device,
touchpad variant.
<note>
You can use the <link to="IMouseCapabilityChangedEvent"/>
event to be instantly informed about changes of this attribute
during virtual machine execution.
</note>
<see><link to="#putMouseEvent"/></see>
</desc>
</attribute>
<attribute name="needsHostCursor" type="boolean" readonly="yes">
<desc>
Whether the guest OS can currently switch to drawing it's own mouse
cursor on demand.
<note>
You can use the <link to="IMouseCapabilityChangedEvent"/>
event to be instantly informed about changes of this attribute
during virtual machine execution.
</note>
<see><link to="#putMouseEvent"/></see>
</desc>
</attribute>
<attribute name="pointerShape" type="IMousePointerShape" readonly="yes">
<desc>
The current mouse pointer used by the guest.
</desc>
</attribute>
<method name="putMouseEvent">
<desc>
Initiates a mouse event using relative pointer movements
along x and y axis.
<result name="E_ACCESSDENIED">
Console not powered up.
</result>
<result name="VBOX_E_IPRT_ERROR">
Could not send mouse event to virtual mouse.
</result>
</desc>
<param name="dx" type="long" dir="in">
<desc>
Amount of pixels the mouse should move to the right.
Negative values move the mouse to the left.
</desc>
</param>
<param name="dy" type="long" dir="in">
<desc>
Amount of pixels the mouse should move downwards.
Negative values move the mouse upwards.
</desc>
</param>
<param name="dz" type="long" dir="in">
<desc>
Amount of mouse wheel moves.
Positive values describe clockwise wheel rotations,
negative values describe counterclockwise rotations.
</desc>
</param>
<param name="dw" type="long" dir="in">
<desc>
Amount of horizontal mouse wheel moves.
Positive values describe a movement to the left,
negative values describe a movement to the right.
</desc>
</param>
<param name="buttonState" type="long" dir="in">
<desc>
The current state of mouse buttons. Every bit represents
a mouse button as follows:
<dl>
<dt>Bit 0 (<tt>0x01</tt>)</dt><dd>left mouse button</dd>
<dt>Bit 1 (<tt>0x02</tt>)</dt><dd>right mouse button</dd>
<dt>Bit 2 (<tt>0x04</tt>)</dt><dd>middle mouse button</dd>
</dl>
A value of @c 1 means the corresponding button is pressed.
otherwise it is released.
</desc>
</param>
</method>
<method name="putMouseEventAbsolute">
<desc>
Positions the mouse pointer using absolute x and y coordinates.
These coordinates are expressed in pixels and
start from <tt>[1,1]</tt> which corresponds to the top left
corner of the virtual display. The values <tt>[-1,-1]</tt> and
<tt>[0x7fffffff,0x7fffffff]</tt> have special meanings as
respectively "no data" (to signal that the host wishes to report
absolute pointer data in future) and "out of range" (the host
pointer is outside of all guest windows).
<result name="E_ACCESSDENIED">
Console not powered up.
</result>
<result name="VBOX_E_IPRT_ERROR">
Could not send mouse event to virtual mouse.
</result>
<note>
This method will have effect only if absolute mouse
positioning is supported by the guest OS.
</note>
<see><link to="#absoluteSupported"/></see>
</desc>
<param name="x" type="long" dir="in">
<desc>
X coordinate of the pointer in pixels, starting from @c 1.
</desc>
</param>
<param name="y" type="long" dir="in">
<desc>
Y coordinate of the pointer in pixels, starting from @c 1.
</desc>
</param>
<param name="dz" type="long" dir="in">
<desc>
Amount of mouse wheel moves.
Positive values describe clockwise wheel rotations,
negative values describe counterclockwise rotations.
</desc>
</param>
<param name="dw" type="long" dir="in">
<desc>
Amount of horizontal mouse wheel moves.
Positive values describe a movement to the left,
negative values describe a movement to the right.
</desc>
</param>
<param name="buttonState" type="long" dir="in">
<desc>
The current state of mouse buttons. Every bit represents
a mouse button as follows:
<dl>
<dt>Bit 0 (<tt>0x01</tt>)</dt><dd>left mouse button</dd>
<dt>Bit 1 (<tt>0x02</tt>)</dt><dd>right mouse button</dd>
<dt>Bit 2 (<tt>0x04</tt>)</dt><dd>middle mouse button</dd>
</dl>
A value of @c 1 means the corresponding button is pressed.
otherwise it is released.
</desc>
</param>
</method>
<method name="putEventMultiTouch">
<desc>
Sends a multi-touch pointer event. For touchscreen events the
coordinates are expressed in pixels and start from <tt>[1,1]</tt> which
corresponds to the top left corner of the virtual display, for
touchpad events the coordinates are normalized to the range 0..0xffff.
<result name="E_ACCESSDENIED">
Console not powered up.
</result>
<result name="VBOX_E_IPRT_ERROR">
Could not send event to virtual device.
</result>
<note>
The guest may not understand or may choose to ignore this event.
</note>
<see><link to="#touchScreenSupported"/> and <link to="#touchPadSupported"/></see>
</desc>
<param name="count" type="long" dir="in">
<desc>
Number of contacts in the event.
</desc>
</param>
<param name="contacts" type="long long" dir="in" safearray="yes">
<desc>
Each array element contains packed information about one contact.
Bits 0..15: X coordinate in pixels or normalized X position.
Bits 16..31: Y coordinate in pixels or normalized Y position.
Bits 32..39: contact identifier.
Bit 40: "in contact" flag, which indicates that there is a contact with the touch surface.
Bit 41: "in range" flag, the contact is close enough to the touch surface.
All other bits are reserved for future use and must be set to 0.
</desc>
</param>
<param name="isTouchScreen" type="boolean" dir="in">
<desc>
Distinguishes between touchscreen and touchpad events.
</desc>
</param>
<param name="scanTime" type="unsigned long" dir="in">
<desc>
Timestamp of the event in milliseconds. Only relative time between events is important.
</desc>
</param>
</method>
<method name="putEventMultiTouchString">
<desc>
<see><link to="#putEventMultiTouch"/></see>
</desc>
<param name="count" type="long" dir="in">
<desc>
<see><link to="#putEventMultiTouch"/></see>
</desc>
</param>
<param name="contacts" type="wstring" dir="in">
<desc>
Contains information about all contacts:
"id1,x1,y1,inContact1,inRange1;...;idN,xN,yN,inContactN,inRangeN".
For example for two contacts: "0,10,20,1,1;1,30,40,1,1"
</desc>
</param>
<param name="isTouchScreen" type="boolean" dir="in">
<desc>
Distinguishes between touchscreen and touchpad events.
</desc>
</param>
<param name="scanTime" type="unsigned long" dir="in">
<desc>
<see><link to="#putEventMultiTouch"/></see>
</desc>
</param>
</method>
<attribute name="eventSource" type="IEventSource" readonly="yes">
<desc>
Event source for mouse events.
</desc>
</attribute>
</interface>
<!--
// IDisplay
/////////////////////////////////////////////////////////////////////////
-->
<interface
name="IDisplaySourceBitmap" extends="$unknown"
uuid="5094f67a-8084-11e9-b185-dbe296e54799"
wsmap="suppress"
rest="managed"
>
<attribute name="screenId" type="unsigned long" readonly="yes"/>
<method name="queryBitmapInfo">
<desc>Information about the screen bitmap.</desc>
<param name="address" type="octet" mod="ptr" dir="out"/>
<param name="width" type="unsigned long" dir="out"/>
<param name="height" type="unsigned long" dir="out"/>
<param name="bitsPerPixel" type="unsigned long" dir="out"/>
<param name="bytesPerLine" type="unsigned long" dir="out"/>
<param name="bitmapFormat" type="BitmapFormat" dir="out"/>
</method>
</interface>
<enum
name="FramebufferCapabilities"
uuid="cc395839-30fa-4ca5-ae65-e6360e3edd7a"
>
<desc>
Framebuffer capability flags.
</desc>
<const name="UpdateImage" value="0x01">
<desc>
Requires NotifyUpdateImage. NotifyUpdate must not be called.
</desc>
</const>
<const name="VHWA" value="0x02">
<desc>
Supports VHWA interface. If set, then
IFramebuffer::processVHWACommand can be called. <!-- no link, otherwise trouble with javadoc -->
</desc>
</const>
<const name="VisibleRegion" value="0x04">
<desc>
Supports visible region. If set, then
IFramebuffer::setVisibleRegion can be called. <!-- no link, otherwise trouble with javadoc -->
</desc>
</const>
<const name="RenderCursor" value="0x08">
<desc>
This framebuffer implementation can render a pointer cursor itself. Unless the
MoveCursor capability is also set the cursor will always be rendered at the
location of (and usually using) the host pointer.
</desc>
</const>
<const name="MoveCursor" value="0x10">
<desc>
Supports rendering a pointer cursor anywhere within the guest screen. Implies
RenderCursor.
</desc>
</const>
</enum>
<interface
name="IFramebuffer" extends="$unknown"
uuid="1e8d3f27-b45c-48ae-8b36-d35e83d207aa"
wsmap="managed"
>
<attribute name="width" type="unsigned long" readonly="yes">
<desc>Frame buffer width, in pixels.</desc>
</attribute>
<attribute name="height" type="unsigned long" readonly="yes">
<desc>Frame buffer height, in pixels.</desc>
</attribute>
<attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
<desc>
Color depth, in bits per pixel.
</desc>
</attribute>
<attribute name="bytesPerLine" type="unsigned long" readonly="yes">
<desc>
Scan line size, in bytes.
</desc>
</attribute>
<attribute name="pixelFormat" type="BitmapFormat" readonly="yes">
<desc>
Frame buffer pixel format. It's one of the values defined by <link
to="BitmapFormat"/>.
<note>
This attribute must never (and will never) return <link
to="BitmapFormat_Opaque"/> -- the format of the frame
buffer must be always known.
</note>
</desc>
</attribute>
<attribute name="heightReduction" type="unsigned long" readonly="yes">
<desc>
Hint from the frame buffer about how much of the standard
screen height it wants to use for itself. This information is
exposed to the guest through the VESA BIOS and VMMDev interface
so that it can use it for determining its video mode table. It
is not guaranteed that the guest respects the value.
</desc>
</attribute>
<attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
<desc>
An alpha-blended overlay which is superposed over the frame buffer.
The initial purpose is to allow the display of icons providing
information about the VM state, including disk activity, in front
ends which do not have other means of doing that. The overlay is
designed to controlled exclusively by IDisplay. It has no locking
of its own, and any changes made to it are not guaranteed to be
visible until the affected portion of IFramebuffer is updated. The
overlay can be created lazily the first time it is requested. This
attribute can also return @c null to signal that the overlay is not
implemented.
</desc>
</attribute>
<attribute name="winId" type="long long" readonly="yes" wsmap="suppress">
<desc>
Platform-dependent identifier of the window where context of this
frame buffer is drawn, or zero if there's no such window.
</desc>
</attribute>
<attribute name="capabilities" type="FramebufferCapabilities" safearray="yes" readonly="yes">
<desc>
Capabilities of the framebuffer instance.
For the meaning of individual capability flags see
<link to="FramebufferCapabilities"/>.
</desc>
</attribute>
<method name="notifyUpdate">
<desc>
Informs about an update.
Gets called by the display object where this buffer is
registered.
</desc>
<param name="x" type="unsigned long" dir="in">
<desc>X position of update.</desc>
</param>
<param name="y" type="unsigned long" dir="in">
<desc>Y position of update.</desc>
</param>
<param name="width" type="unsigned long" dir="in">
<desc>Width of update.</desc>
</param>
<param name="height" type="unsigned long" dir="in">
<desc>Height of update.</desc>
</param>
</method>
<method name="notifyUpdateImage">
<desc>
Informs about an update and provides 32bpp bitmap.
</desc>
<param name="x" type="unsigned long" dir="in">
<desc>X position of update.</desc>
</param>
<param name="y" type="unsigned long" dir="in">
<desc>Y position of update.</desc>
</param>
<param name="width" type="unsigned long" dir="in">
<desc>Width of update.</desc>
</param>
<param name="height" type="unsigned long" dir="in">
<desc>Height of update.</desc>
</param>
<param name="image" type="octet" dir="in" safearray="yes">
<desc>Array with 32BPP image data.</desc>
</param>
</method>
<method name="notifyChange">
<desc>
Requests a size change.
</desc>
<param name="screenId" type="unsigned long" dir="in">
<desc>
Logical guest screen number.
</desc>
</param>
<param name="xOrigin" type="unsigned long" dir="in">
<desc>Location of the screen in the guest.</desc>
</param>
<param name="yOrigin" type="unsigned long" dir="in">
<desc>Location of the screen in the guest.</desc>
</param>
<param name="width" type="unsigned long" dir="in">
<desc>Width of the guest display, in pixels.</desc>
</param>
<param name="height" type="unsigned long" dir="in">
<desc>Height of the guest display, in pixels.</desc>
</param>
</method>
<method name="videoModeSupported">
<desc>
Returns whether the frame buffer implementation is willing to
support a given video mode. In case it is not able to render
the video mode (or for some reason not willing), it should
return @c false. Usually this method is called when the guest
asks the VMM device whether a given video mode is supported
so the information returned is directly exposed to the guest.
It is important that this method returns very quickly.
</desc>
<param name="width" type="unsigned long" dir="in"/>
<param name="height" type="unsigned long" dir="in"/>
<param name="bpp" type="unsigned long" dir="in"/>
<param name="supported" type="boolean" dir="return"/>
</method>
<method name="getVisibleRegion" wsmap="suppress">
<desc>
Returns the visible region of this frame buffer.
If the @a rectangles parameter is @c null then the value of the
@a count parameter is ignored and the number of elements necessary to
describe the current visible region is returned in @a countCopied.
If @a rectangles is not @c null but @a count is less
than the required number of elements to store region data, the method
will report a failure. If @a count is equal or greater than the
required number of elements, then the actual number of elements copied
to the provided array will be returned in @a countCopied.
<note>
The address of the provided array must be in the process space of
this IFramebuffer object.
</note>
<note>
Method not yet implemented.
</note>
</desc>
<param name="rectangles" type="octet" mod="ptr" dir="in">
<desc>Pointer to the @c RTRECT array to receive region data.</desc>
</param>
<param name="count" type="unsigned long" dir="in">
<desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
</param>
<param name="countCopied" type="unsigned long" dir="return">
<desc>Number of elements copied to the @a rectangles array.</desc>
</param>
</method>
<method name="setVisibleRegion" wsmap="suppress">
<desc>
Suggests a new visible region to this frame buffer. This region
represents the area of the VM display which is a union of regions of
all top-level windows of the guest operating system running inside the
VM (if the Guest Additions for this system support this
functionality). This information may be used by the frontends to
implement the seamless desktop integration feature.
<note>
The address of the provided array must be in the process space of
this IFramebuffer object.
</note>
<note>
The IFramebuffer implementation must make a copy of the provided
array of rectangles.
</note>
<note>
Method not yet implemented.
</note>
</desc>
<param name="rectangles" type="octet" mod="ptr" dir="in">
<desc>Pointer to the @c RTRECT array.</desc>
</param>
<param name="count" type="unsigned long" dir="in">
<desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
</param>
</method>
<method name="processVHWACommand" wsmap="suppress">
<desc>
Posts a Video HW Acceleration Command to the frame buffer for processing.
The commands used for 2D video acceleration (DDraw surface creation/destroying, blitting, scaling, color conversion, overlaying, etc.)
are posted from quest to the host to be processed by the host hardware.
<note>
The address of the provided command must be in the process space of
this IFramebuffer object.
</note>
</desc>
<param name="command" type="octet" mod="ptr" dir="in">
<desc>Pointer to VBOXVHWACMD containing the command to execute.</desc>
</param>
<param name="enmCmd" type="long" dir="in">
<desc>The validated VBOXVHWACMD::enmCmd value from the command.</desc>
</param>
<param name="fromGuest" type="boolean" dir="in">
<desc>Set when the command origins from the guest, clear if host.</desc>
</param>
</method>
<method name="notify3DEvent">
<desc>
Notifies framebuffer about 3D backend event.
</desc>
<param name="type" type="unsigned long" dir="in">
<desc>event type. VBOX3D_NOTIFY_TYPE_* in VBoxVideo3D.h</desc>
</param>
<param name="data" type="octet" dir="in" safearray="yes">
<desc>event-specific data, depends on the supplied event type</desc>
</param>
</method>
</interface>
<interface
name="IFramebufferOverlay" extends="IFramebuffer"
uuid="af398a9a-6b76-4805-8fab-00a9dcf4732b"
wsmap="managed"
>
<desc>
The IFramebufferOverlay interface represents an alpha blended overlay
for displaying status icons above an IFramebuffer. It is always created
not visible, so that it must be explicitly shown. It only covers a
portion of the IFramebuffer, determined by its width, height and
co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
that order) format, and may be written to directly. Do re-read the
width though, after setting it, as it may be adjusted (increased) to
make it more suitable for the front end.
</desc>
<attribute name="x" type="unsigned long" readonly="yes">
<desc>X position of the overlay, relative to the frame buffer.</desc>
</attribute>
<attribute name="y" type="unsigned long" readonly="yes">
<desc>Y position of the overlay, relative to the frame buffer.</desc>
</attribute>
<attribute name="visible" type="boolean">
<desc>
Whether the overlay is currently visible.
</desc>
</attribute>
<attribute name="alpha" type="unsigned long">
<desc>
The global alpha value for the overlay. This may or may not be
supported by a given front end.
</desc>
</attribute>
<method name="move">
<desc>
Changes the overlay's position relative to the IFramebuffer.
</desc>
<param name="x" type="unsigned long" dir="in"/>
<param name="y" type="unsigned long" dir="in"/>
</method>
</interface>
<enum
name="GuestMonitorStatus"
uuid="6b8d3f71-39cb-459e-a916-48917ed43e19"
>
<desc>
The current status of the guest display.
</desc>
<const name="Disabled" value="0">
<desc>
The guest monitor is disabled in the guest.
</desc>
</const>
<const name="Enabled" value="1">
<desc>
The guest monitor is enabled in the guest.
</desc>
</const>
<const name="Blank" value="2">
<desc>
The guest monitor is enabled in the guest but should display nothing.
</desc>
</const>
</enum>
<enum
name="ScreenLayoutMode"
uuid="8fa1964c-8774-11e9-ae5d-1f419105e68d"
>
<desc>
How <link to="IDisplay::setScreenLayout"/> method should work.
</desc>
<const name="Apply" value="0">
<desc>
If the guest is already at desired mode then the API might avoid setting the mode.
</desc>
</const>
<const name="Reset" value="1">
<desc>
Always set the new mode even if the guest is already at desired mode.
</desc>
</const>
<const name="Attach" value="2">
<desc>
Attach new screens and always set the new mode for existing screens.
</desc>
</const>
<const name="Silent" value="3">
<desc>
Do not notify the guest of the change. Normally this is wished, but it
might not be when re-setting monitor information from the last session
(no hotplug happened, as it is still the same virtual monitor).
</desc>
</const>
</enum>
<interface
name="IGuestScreenInfo" extends="$unknown"
uuid="6b2f98f8-9641-4397-854a-040439d0114b"
wsmap="managed"
>
<attribute name="screenId" type="unsigned long" readonly="yes"/>
<attribute name="guestMonitorStatus" type="GuestMonitorStatus" readonly="yes"/>
<attribute name="primary" type="boolean" readonly="yes"/>
<attribute name="origin" type="boolean" readonly="yes"/>
<attribute name="originX" type="long" readonly="yes"/>
<attribute name="originY" type="long" readonly="yes"/>
<attribute name="width" type="unsigned long" readonly="yes"/>
<attribute name="height" type="unsigned long" readonly="yes"/>
<attribute name="bitsPerPixel" type="unsigned long" readonly="yes"/>
<attribute name="extendedInfo" type="wstring" readonly="yes"/>
</interface>
<interface
name="IDisplay" extends="$unknown"
uuid="4680b2de-8690-11e9-b83d-5719e53cf1de"
wsmap="managed"
wrap-hint-server-addinterfaces="IEventListener"
reservedMethods="8" reservedAttributes="16"
>
<desc>
The IDisplay interface represents the virtual machine's display.
The object implementing this interface is contained in each
<link to="IConsole::display"/> attribute and represents the visual
output of the virtual machine.
The virtual display supports pluggable output targets represented by the
IFramebuffer interface. Examples of the output target are a window on
the host computer or an RDP session's display on a remote computer.
</desc>
<attribute name="guestScreenLayout" type="IGuestScreenInfo" safearray="yes" readonly="yes">
<desc>
Layout of the guest screens.
</desc>
</attribute>
<method name="getScreenResolution">
<desc>
Queries certain attributes such as display width, height, color depth
and the X and Y origin for a given guest screen.
The parameters @a xOrigin and @a yOrigin return the X and Y
coordinates of the framebuffer's origin.
All return parameters are optional.</desc>
<param name="screenId" type="unsigned long" dir="in"/>
<param name="width" type="unsigned long" dir="out"/>
<param name="height" type="unsigned long" dir="out"/>
<param name="bitsPerPixel" type="unsigned long" dir="out"/>
<param name="xOrigin" type="long" dir="out"/>
<param name="yOrigin" type="long" dir="out"/>
<param name="guestMonitorStatus" type="GuestMonitorStatus" dir="out"/>
</method>
<method name="attachFramebuffer">
<desc>
Sets the graphics update target for a screen.
</desc>
<param name="screenId" type="unsigned long" dir="in"/>
<param name="framebuffer" type="IFramebuffer" dir="in"/>
<param name="id" type="uuid" mod="string" dir="return"/>
</method>
<method name="detachFramebuffer">
<desc>
Removes the graphics updates target for a screen.
</desc>
<param name="screenId" type="unsigned long" dir="in"/>
<param name="id" type="uuid" mod="string" dir="in"/>
</method>
<method name="queryFramebuffer">
<desc>
Queries the graphics updates targets for a screen.
</desc>
<param name="screenId" type="unsigned long" dir="in"/>
<param name="framebuffer" type="IFramebuffer" dir="return"/>
</method>
<method name="setVideoModeHint">
<desc>
Changes the monitor information reported by a given output of the guest
graphics device. This information can be read by the guest if suitable
drivers and driver tools are available, including but not limited to
those in the Guest Additions. The guest will receive monitor hotplug
notification when the monitor information is changed, and the
information itself will be available to the guest until the next change.
The information should not be resent if the guest does not resize in
response. The guest might have chosen to ignore the change, or the
resize might happen later when a suitable driver is started.
Specifying @c 0 for either @a width, @a height or @a bitsPerPixel
parameters means that the corresponding values should be taken from the
current video mode (i.e. left unchanged).
@todo Rename this to @a setMonitorInfo for 7.0.
<result name="E_INVALIDARG">
The @a display value is higher then the number of outputs.
</result>
</desc>
<param name="display" type="unsigned long" dir="in">
<desc>
The number of the guest output to change.
</desc>
</param>
<param name="enabled" type="boolean" dir="in">
<desc>
@c True if a monitor is connected,
@c False otherwise.
<note internal="yes">For historical reasons the Windows drivers can
and do override this setting. Call this a virtual hardware quirk.
</note>
</desc>
</param>
<param name="changeOrigin" type="boolean" dir="in">
<desc>
@c True, if the position of the guest screen is specified,
@c False otherwise.
</desc>
</param>
<param name="originX" type="long" dir="in">
<desc>
The X origin of the guest screen.
</desc>
</param>
<param name="originY" type="long" dir="in">
<desc>
The Y origin of the guest screen.
</desc>
</param>
<param name="width" type="unsigned long" dir="in">
<desc>
The width of the guest screen.
</desc>
</param>
<param name="height" type="unsigned long" dir="in">
<desc>
The height of the guest screen.
</desc>
</param>
<param name="bitsPerPixel" type="unsigned long" dir="in">
<desc>
The number of bits per pixel of the guest screen.
</desc>
</param>
<param name="notify" type="boolean" dir="in">
<desc>
Whether the guest should be notified of the change. Normally this
is wished, but it might not be when re-setting monitor information
from the last session (no hotplug happened, as it is still the same
virtual monitor). Might also be useful if several monitors are to be
changed at once, but this would not reflect physical hardware well,
and we also have @a setScreenLayout for that.
</desc>
</param>
</method>
<method name="getVideoModeHint">
<desc>
Queries the monitor information for a given guest output. See
@a setVideoModeHint. If no monitor information has been set yet by a
front-end the preferred mode values returned will be zero.
@todo Rename this to @a getMonitorInfo for 7.0.
<result name="E_INVALIDARG">
The @a display value is higher than the number of outputs.
</result>
</desc>
<param name="display" type="unsigned long" dir="in">
<desc>
The number of the guest output to query.
</desc>
</param>
<param name="enabled" type="boolean" dir="out">
<desc>
@c True if a monitor is connected,
@c False otherwise.
<note internal="yes">For historical reasons the Windows drivers can
and do override the setting requested by the host.</note>
</desc>
</param>
<param name="changeOrigin" type="boolean" dir="out">
<desc>
@c True, if the position of the guest screen was specified,
@c False otherwise.
</desc>
</param>
<param name="originX" type="long" dir="out">
<desc>
The X origin of the guest screen.
</desc>
</param>
<param name="originY" type="long" dir="out">
<desc>
The Y origin of the guest screen.
</desc>
</param>
<param name="width" type="unsigned long" dir="out">
<desc>
The width of the monitor preferred mode.
</desc>
</param>
<param name="height" type="unsigned long" dir="out">
<desc>
The height of the monitor preferred mode.
</desc>
</param>
<param name="bitsPerPixel" type="unsigned long" dir="out">
<desc>
The number of bits per pixel of the monitor preferred mode.
</desc>
</param>
</method>
<method name="setSeamlessMode">
<desc>
Enables or disables seamless guest display rendering (seamless desktop
integration) mode.
<note>
Calling this method has no effect if <link
to="IGuest::getFacilityStatus"/> with facility @c Seamless
does not return @c Active.
</note>
</desc>
<param name="enabled" type="boolean" dir="in"/>
</method>
<method name="takeScreenShot">
<desc>
Takes a screen shot of the requested size and format and copies it to the
buffer allocated by the caller and pointed to by @a address.
The buffer size must be enough for a 32 bits per pixel bitmap,
i.e. width * height * 4 bytes.
<note>This API can be used only locally by a VM process through the
COM/XPCOM C++ API as it requires pointer support. It is not
available for scripting languages, Java or any webservice clients.
Unless you are writing a new VM frontend use
<link to="#takeScreenShotToArray" />.
</note>
</desc>
<param name="screenId" type="unsigned long" dir="in"/>
<param name="address" type="octet" mod="ptr" dir="in"/>
<param name="width" type="unsigned long" dir="in"/>
<param name="height" type="unsigned long" dir="in"/>
<param name="bitmapFormat" type="BitmapFormat" dir="in"/>
</method>
<method name="takeScreenShotToArray">
<desc>
Takes a guest screen shot of the requested size and format
and returns it as an array of bytes.
</desc>
<param name="screenId" type="unsigned long" dir="in">
<desc>
The guest monitor to take screenshot from.
</desc>
</param>
<param name="width" type="unsigned long" dir="in">
<desc>
Desired image width.
</desc>
</param>
<param name="height" type="unsigned long" dir="in">
<desc>
Desired image height.
</desc>
</param>
<param name="bitmapFormat" type="BitmapFormat" dir="in">
<desc>
The requested format.
</desc>
</param>
<param name="screenData" type="octet" dir="return" safearray="yes">
<desc>
Array with resulting screen data.
</desc>
</param>
</method>
<method name="drawToScreen">
<desc>
Draws a 32-bpp image of the specified size from the given buffer
to the given point on the VM display.
<result name="E_NOTIMPL">
Feature not implemented.
</result>
<result name="VBOX_E_IPRT_ERROR">
Could not draw to screen.
</result>
</desc>
<param name="screenId" type="unsigned long" dir="in">
<desc>
Monitor to take the screenshot from.
</desc>
</param>
<param name="address" type="octet" mod="ptr" dir="in">
<desc>
Address to store the screenshot to
</desc>
</param>
<param name="x" type="unsigned long" dir="in">
<desc>
Relative to the screen top left corner.
</desc>
</param>
<param name="y" type="unsigned long" dir="in">
<desc>
Relative to the screen top left corner.
</desc>
</param>
<param name="width" type="unsigned long" dir="in">
<desc>
Desired image width.
</desc>
</param>
<param name="height" type="unsigned long" dir="in">
<desc>
Desired image height.
</desc>
</param>
</method>
<method name="invalidateAndUpdate">
<desc>
Does a full invalidation of the VM display and instructs the VM
to update it.
<result name="VBOX_E_IPRT_ERROR">
Could not invalidate and update screen.
</result>
</desc>
</method>
<method name="invalidateAndUpdateScreen">
<desc>
Redraw the specified VM screen.
</desc>
<param name="screenId" type="unsigned long" dir="in">
<desc>
The guest screen to redraw.
</desc>
</param>
</method>
<method name="completeVHWACommand">
<desc>
Signals that the Video HW Acceleration command has completed.
</desc>
<param name="command" type="octet" mod="ptr" dir="in">
<desc>Pointer to VBOXVHWACMD containing the completed command.</desc>
</param>
</method>
<method name="viewportChanged">
<desc>
Signals that framebuffer window viewport has changed.
<result name="E_INVALIDARG">
The specified viewport data is invalid.
</result>
</desc>
<param name="screenId" type="unsigned long" dir="in">
<desc>
Monitor to take the screenshot from.
</desc>
</param>
<param name="x" type="unsigned long" dir="in">
<desc>
Framebuffer x offset.
</desc>
</param>
<param name="y" type="unsigned long" dir="in">
<desc>
Framebuffer y offset.
</desc>
</param>
<param name="width" type="unsigned long" dir="in">
<desc>
Viewport width.
</desc>
</param>
<param name="height" type="unsigned long" dir="in">
<desc>
Viewport height.
</desc>
</param>
</method>
<method name="querySourceBitmap" wsmap="suppress">
<desc>
Obtains the guest screen bitmap parameters.
</desc>
<param name="screenId" type="unsigned long" dir="in"/>
<param name="displaySourceBitmap" type="IDisplaySourceBitmap" dir="out"/>
</method>
<method name="notifyScaleFactorChange">
<desc>
Notify OpenGL HGCM host service about graphics content scaling factor change.
</desc>
<param name="screenId" type="unsigned long" dir="in"/>
<param name="u32ScaleFactorWMultiplied" type="unsigned long" dir="in"/>
<param name="u32ScaleFactorHMultiplied" type="unsigned long" dir="in"/>
</method>
<method name="notifyHiDPIOutputPolicyChange">
<desc>
Notify OpenGL HGCM host service about HiDPI monitor scaling policy change.
</desc>
<param name="fUnscaledHiDPI" type="boolean" dir="in"/>
</method>
<method name="setScreenLayout">
<desc>
Set video modes for the guest screens.
</desc>
<param name="screenLayoutMode" type="ScreenLayoutMode" dir="in"/>
<param name="guestScreenInfo" type="IGuestScreenInfo" safearray="yes" dir="in"/>
</method>
<method name="detachScreens">
<desc>
Unplugs monitors from the virtual graphics card.
</desc>
<param name="screenIds" type="long" safearray="yes" dir="in"/>
</method>
<method name="createGuestScreenInfo">
<desc>
Make a IGuestScreenInfo object with the provided parameters.
</desc>
<param name="display" type="unsigned long" dir="in">
<desc>
The number of the guest display.
</desc>
</param>
<param name="status" type="GuestMonitorStatus" dir="in">
<desc>
@c True, if this guest screen is enabled,
@c False otherwise.
</desc>
</param>
<param name="primary" type="boolean" dir="in">
<desc>
Whether this guest monitor must be primary.
</desc>
</param>
<param name="changeOrigin" type="boolean" dir="in">
<desc>
@c True, if the origin of the guest screen should be changed,
@c False otherwise.
</desc>
</param>
<param name="originX" type="long" dir="in">
<desc>
The X origin of the guest screen.
</desc>
</param>
<param name="originY" type="long" dir="in">
<desc>
The Y origin of the guest screen.
</desc>
</param>
<param name="width" type="unsigned long" dir="in">
<desc>
The width of the guest screen.
</desc>
</param>
<param name="height" type="unsigned long" dir="in">
<desc>
The height of the guest screen.
</desc>
</param>
<param name="bitsPerPixel" type="unsigned long" dir="in">
<desc>
The number of bits per pixel of the guest screen.
</desc>
</param>
<param name="guestScreenInfo" type="IGuestScreenInfo" dir="return">
<desc>
The created object.
</desc>
</param>
</method>
</interface>
<!--
// INetworkAdapter
/////////////////////////////////////////////////////////////////////////
-->
<enum
name="NetworkAttachmentType"
uuid="cbfd17fa-fdc3-4d1c-97ec-4674da8d2a5d"
>
<desc>
Network attachment type.
</desc>
<const name="Null" value="0">
<desc>Null value, also means "not attached".</desc>
</const>
<const name="NAT" value="1"/>
<const name="Bridged" value="2"/>
<const name="Internal" value="3"/>
<const name="HostOnly" value="4"/>
<const name="Generic" value="5"/>
<const name="NATNetwork" value="6"/>
<const name="Cloud" value="7"/>
<const name="HostOnlyNetwork" value="8"/>
</enum>
<enum
name="NetworkAdapterType"
uuid="3c2281e4-d952-4e87-8c7d-24379cb6a81c"
>
<desc>
Network adapter type.
</desc>
<const name="Null" value="0">
<desc>Null value (never used by the API).</desc>
</const>
<const name="Am79C970A" value="1">
<desc>AMD PCNet-PCI II network card (Am79C970A).</desc>
</const>
<const name="Am79C973" value="2">
<desc>AMD PCNet-FAST III network card (Am79C973).</desc>
</const>
<const name="I82540EM" value="3">
<desc>Intel PRO/1000 MT Desktop network card (82540EM).</desc>
</const>
<const name="I82543GC" value="4">
<desc>Intel PRO/1000 T Server network card (82543GC).</desc>
</const>
<const name="I82545EM" value="5">
<desc>Intel PRO/1000 MT Server network card (82545EM).</desc>
</const>
<const name="Virtio" value="6">
<desc>Virtio network device.</desc>
</const>
<const name="Am79C960" value="7">
<desc>AMD PCnet-ISA/NE2100 network card (Am79C960).</desc>
</const>
<const name="NE2000" value="8">
<desc>Novell NE2000 network card (NE2000).</desc>
</const>
<const name="NE1000" value="9">
<desc>Novell NE1000 network card (NE1000).</desc>
</const>
<const name="WD8013" value="10">
<desc>WD/SMC EtherCard Plus 16 network card (WD8013EBT).</desc>
</const>
<const name="WD8003" value="11">
<desc>WD/SMC EtherCard Plus network card (WD8003E).</desc>
</const>
<const name="ELNK2" value="12">
<desc>3Com EtherLink II network card (3C503).</desc>
</const>
<const name="ELNK1" value="13">
<desc>3Com EtherLink network card (3C501/3C500).</desc>
</const>
</enum>
<enum
name="NetworkAdapterPromiscModePolicy"
uuid="c963768a-376f-4c85-8d84-d8ced4b7269e"
>
<desc>
The promiscuous mode policy of an interface.
</desc>
<const name="Deny" value="1">
<desc>Deny promiscuous mode requests.</desc>
</const>
<const name="AllowNetwork" value="2">
<desc>
Allow promiscuous mode, but restrict the scope it to the internal
network so that it only applies to other VMs.
</desc>
</const>
<const name="AllowAll" value="3">
<desc>
Allow promiscuous mode, include unrelated traffic going over the wire
and internally on the host.
</desc>
</const>
</enum>
<interface
name="INetworkAdapter" extends="$unknown"
uuid="dcf47a1d-ed70-4db8-9a4b-2646bd166905"
wsmap="managed"
rest="managed"
reservedMethods="4" reservedAttributes="8"
>
<desc>
Represents a virtual network adapter that is attached to a virtual machine.
Each virtual machine has a fixed number of network adapter slots with one
instance of this attached to each of them. Call
<link to="IMachine::getNetworkAdapter" /> to get the network adapter that
is attached to a given slot in a given machine.
Each network adapter can be in one of five attachment modes, which are
represented by the <link to="NetworkAttachmentType" /> enumeration;
see the <link to="#attachmentType" /> attribute.
</desc>
<attribute name="adapterType" type="NetworkAdapterType">
<desc>
Type of the virtual network adapter. Depending on this value,
VirtualBox will provide a different virtual network hardware
to the guest.
</desc>
</attribute>
<attribute name="slot" type="unsigned long" readonly="yes">
<desc>
Slot number this adapter is plugged into. Corresponds to
the value you pass to <link to="IMachine::getNetworkAdapter"/>
to obtain this instance.
</desc>
</attribute>
<attribute name="enabled" type="boolean">
<desc>
Flag whether the network adapter is present in the
guest system. If disabled, the virtual guest hardware will
not contain this network adapter. Can only be changed when
the VM is not running.
</desc>
</attribute>
<attribute name="MACAddress" type="wstring">
<desc>
Ethernet MAC address of the adapter, 12 hexadecimal characters. When
setting it to @c null or an empty string for an enabled adapter,
VirtualBox will generate a unique MAC address. Disabled adapters can
have an empty MAC address.
</desc>
</attribute>
<attribute name="attachmentType" type="NetworkAttachmentType">
<desc>
Sets/Gets network attachment type of this network adapter.
</desc>
</attribute>
<attribute name="bridgedInterface" type="wstring">
<desc>
Name of the network interface the VM should be bridged to.
</desc>
</attribute>
<attribute name="hostOnlyInterface" type="wstring">
<desc>
Name of the host only network interface the VM is attached to.
</desc>
</attribute>
<attribute name="hostOnlyNetwork" type="wstring">
<desc>
Name of the host only network the VM is attached to.
</desc>
</attribute>
<attribute name="internalNetwork" type="wstring">
<desc>
Name of the internal network the VM is attached to.
</desc>
</attribute>
<attribute name="NATNetwork" type="wstring">
<desc>
Name of the NAT network the VM is attached to.
</desc>
</attribute>
<attribute name="genericDriver" type="wstring">
<desc>
Name of the driver to use for the "Generic" network attachment type.
</desc>
</attribute>
<attribute name="cloudNetwork" type="wstring">
<desc>
Name of the cloud network the VM is attached to.
</desc>
</attribute>
<attribute name="cableConnected" type="boolean">
<desc>
Flag whether the adapter reports the cable as connected or not.
It can be used to report offline situations to a VM.
</desc>
</attribute>
<attribute name="lineSpeed" type="unsigned long">
<desc>
Line speed reported by custom drivers, in units of 1 kbps.
</desc>
</attribute>
<attribute name="promiscModePolicy" type="NetworkAdapterPromiscModePolicy">
<desc>
The promiscuous mode policy of the network adapter when attached to an
internal network, host only network or a bridge.
</desc>
</attribute>
<attribute name="traceEnabled" type="boolean">
<desc>
Flag whether network traffic from/to the network card should be traced.
Can only be toggled when the VM is turned off.
</desc>
</attribute>
<attribute name="traceFile" type="wstring">
<desc>
Filename where a network trace will be stored. If not set, VBox-pid.pcap
will be used.
</desc>
</attribute>
<attribute name="NATEngine" type="INATEngine" readonly="yes">
<desc>
Points to the NAT engine which handles the network address translation
for this interface. This is active only when the interface actually uses
NAT.
</desc>
</attribute>
<attribute name="bootPriority" type="unsigned long">
<desc>
Network boot priority of the adapter. Priority 1 is highest. If not set,
the priority is considered to be at the lowest possible setting.
</desc>
</attribute>
<attribute name="bandwidthGroup" type="IBandwidthGroup">
<desc>The bandwidth group this network adapter is assigned to.</desc>
</attribute>
<!-- property methods -->
<method name="getProperty" const="yes">
<desc>
Returns the value of the network attachment property with the given name.
If the requested data @a key does not exist, this function will
succeed and return an empty string in the @a value argument.
<result name="E_INVALIDARG">@a name is @c null or empty.</result>
</desc>
<param name="key" type="wstring" dir="in">
<desc>Name of the property to get.</desc>
</param>
<param name="value" type="wstring" dir="return">
<desc>Current property value.</desc>
</param>
</method>
<method name="setProperty">
<desc>
Sets the value of the network attachment property with the given name.
Setting the property value to @c null or an empty string is equivalent
to deleting the existing value.
<result name="E_INVALIDARG">@a name is @c null or empty.</result>
</desc>
<param name="key" type="wstring" dir="in">
<desc>Name of the property to set.</desc>
</param>
<param name="value" type="wstring" dir="in">
<desc>Property value to set.</desc>
</param>
</method>
<method name="getProperties" const="yes">
<desc>
Returns values for a group of properties in one call.
The names of the properties to get are specified using the @a names
argument which is a list of comma-separated property names or
an empty string if all properties are to be returned.
<note>Currently the value of this argument is ignored and the method
always returns all existing properties.</note>
The method returns two arrays, the array of property names corresponding
to the @a names argument and the current values of these properties.
Both arrays have the same number of elements with each element at the
given index in the first array corresponds to an element at the same
index in the second array.
</desc>
<param name="names" type="wstring" dir="in">
<desc>
Names of properties to get.
</desc>
</param>
<param name="returnNames" type="wstring" safearray="yes" dir="out">
<desc>Names of returned properties.</desc>
</param>
<param name="returnValues" type="wstring" safearray="yes" dir="return">
<desc>Values of returned properties.</desc>
</param>
</method>
</interface>
<!--
// ISerialPort
/////////////////////////////////////////////////////////////////////////
-->
<enum
name="PortMode"
uuid="7485fcfd-d603-470a-87af-26d33beb7de9"
>
<desc>
The PortMode enumeration represents possible communication modes for
the virtual serial port device.
</desc>
<const name="Disconnected" value="0">
<desc>Virtual device is not attached to any real host device.</desc>
</const>
<const name="HostPipe" value="1">
<desc>Virtual device is attached to a host pipe.</desc>
</const>
<const name="HostDevice" value="2">
<desc>Virtual device is attached to a host device.</desc>
</const>
<const name="RawFile" value="3">
<desc>Virtual device is attached to a raw file.</desc>
</const>
<const name="TCP" value="4">
<desc>Virtual device is attached to a TCP socket.</desc>
</const>
</enum>
<enum
name="UartType"
uuid="c8899d39-0b90-4265-9d02-1e38bd4d1b39"
>
<desc>
The UART type represents the emulated UART chip for the serial port device.
</desc>
<const name="U16450" value="0">
<desc>The most basic emulated UART which doesn't support FIFO operation.</desc>
</const>
<const name="U16550A" value="1">
<desc>
The successor of the 16450 UART introducing a 16 byte FIFO to reduce
operational overhead.
</desc>
</const>
<const name="U16750" value="2">
<desc>
This UART developed by Texas Instruments introduced a 64 byte FIFO
and hardware flow control.
</desc>
</const>
</enum>
<interface
name="ISerialPort" extends="$unknown"
uuid="5587d0f6-a227-4f23-8278-2f675eea1bb2"
wsmap="managed"
rest="managed"
reservedAttributes="4"
>
<desc>
The ISerialPort interface represents the virtual serial port device.
The virtual serial port device acts like an ordinary serial port
inside the virtual machine. This device communicates to the real
serial port hardware in one of two modes: host pipe or host device.
In host pipe mode, the #path attribute specifies the path to the pipe on
the host computer that represents a serial port. The #server attribute
determines if this pipe is created by the virtual machine process at
machine startup or it must already exist before starting machine
execution.
In host device mode, the #path attribute specifies the name of the
serial port device on the host computer.
There is also a third communication mode: the disconnected mode. In this
mode, the guest OS running inside the virtual machine will be able to
detect the serial port, but all port write operations will be discarded
and all port read operations will return no data.
<see><link to="IMachine::getSerialPort"/></see>
</desc>
<attribute name="slot" type="unsigned long" readonly="yes">
<desc>
Slot number this serial port is plugged into. Corresponds to
the value you pass to <link to="IMachine::getSerialPort"/>
to obtain this instance.
</desc>
</attribute>
<attribute name="enabled" type="boolean">
<desc>
Flag whether the serial port is enabled. If disabled,
the serial port will not be reported to the guest OS.
</desc>
</attribute>
<attribute name="IOBase" type="unsigned long">
<desc>Base I/O address of the serial port.</desc>
</attribute>
<attribute name="IRQ" type="unsigned long">
<desc>IRQ number of the serial port.</desc>
</attribute>
<attribute name="hostMode" type="PortMode">
<desc>
How is this port connected to the host.
<note>
Changing this attribute may fail if the conditions for
<link to="#path"/> are not met.
</note>
</desc>
</attribute>
<attribute name="server" type="boolean">
<desc>
Flag whether this serial port acts as a server (creates a new pipe on
the host) or as a client (uses the existing pipe). This attribute is
used only when <link to="#hostMode"/> is PortMode_HostPipe or PortMode_TCP.
</desc>
</attribute>
<attribute name="path" type="wstring">
<desc>
Path to the serial port's pipe on the host when <link to="ISerialPort::hostMode"/> is
PortMode_HostPipe, the host serial device name when
<link to="ISerialPort::hostMode"/> is PortMode_HostDevice or the TCP
<b>port</b> (server) or <b>hostname:port</b> (client) when
<link to="ISerialPort::hostMode"/> is PortMode_TCP.
For those cases, setting a @c null or empty string as the attribute's
value is an error. Otherwise, the value of this property is ignored.
</desc>
</attribute>
<attribute name="uartType" type="UartType">
<desc>Selects the emulated UART implementation.</desc>
</attribute>
</interface>
<!--
// IParallelPort
/////////////////////////////////////////////////////////////////////////
-->
<interface
name="IParallelPort" extends="$unknown"
uuid="788b87df-7708-444b-9eef-c116ce423d39"
wsmap="managed"
rest="managed"
reservedAttributes="4"
>
<desc>
The IParallelPort interface represents the virtual parallel port device.
The virtual parallel port device acts like an ordinary parallel port
inside the virtual machine. This device communicates to the real
parallel port hardware using the name of the parallel device on the host
computer specified in the #path attribute.
Each virtual parallel port device is assigned a base I/O address and an
IRQ number that will be reported to the guest operating system and used
to operate the given parallel port from within the virtual machine.
<see><link to="IMachine::getParallelPort"/></see>
</desc>
<attribute name="slot" type="unsigned long" readonly="yes">
<desc>
Slot number this parallel port is plugged into. Corresponds to
the value you pass to <link to="IMachine::getParallelPort"/>
to obtain this instance.
</desc>
</attribute>
<attribute name="enabled" type="boolean">
<desc>
Flag whether the parallel port is enabled. If disabled,
the parallel port will not be reported to the guest OS.
</desc>
</attribute>
<attribute name="IOBase" type="unsigned long">
<desc>Base I/O address of the parallel port.</desc>
</attribute>
<attribute name="IRQ" type="unsigned long">
<desc>IRQ number of the parallel port.</desc>
</attribute>
<attribute name="path" type="wstring">
<desc>
Host parallel device name. If this parallel port is enabled, setting a
@c null or an empty string as this attribute's value will result in
the parallel port behaving as if not connected to any device.
</desc>
</attribute>
</interface>
<!--
// IMachineDebugger
/////////////////////////////////////////////////////////////////////////
-->
<enum
name="VMExecutionEngine"
uuid="6e3f78f9-2dfe-4ed7-863d-67cad351e9d8"
>
<desc>
The main execution engine of a VM.
</desc>
<const name="NotSet" value="0">
<desc>Has not yet been set (try again later).</desc>
</const>
<const name="Emulated" value="1">
<desc>Emulated thru IEM.</desc>
</const>
<const name="HwVirt" value="2">
<desc>Hardware assisted virtualization thru HM.</desc>
</const>
<const name="NativeApi" value="3">
<desc>Hardware assisted virtualization thru native API (NEM).</desc>
</const>
</enum>
<interface
name="IMachineDebugger" extends="$unknown"
uuid="fa43579a-2272-47c4-a443-9713f19a902f"
wsmap="managed"
rest="managed"
reservedMethods="16" reservedAttributes="16"
>
<method name="dumpGuestCore">
<desc>
Takes a core dump of the guest.
See include/VBox/dbgfcorefmt.h for details on the file format.
</desc>
<param name="filename" type="wstring" dir="in">
<desc>
The name of the output file. The file must not exist.
</desc>
</param>
<param name="compression" type="wstring" dir="in">
<desc>
Reserved for future compression method indicator.
</desc>
</param>
</method>
<method name="dumpHostProcessCore">
<desc>
Takes a core dump of the VM process on the host.
This feature is not implemented in the 4.0.0 release but it may show up
in a dot release.
</desc>
<param name="filename" type="wstring" dir="in">
<desc>
The name of the output file. The file must not exist.
</desc>
</param>
<param name="compression" type="wstring" dir="in">
<desc>
Reserved for future compression method indicator.
</desc>
</param>
</method>
<method name="info">
<desc>
Interfaces with the info dumpers (DBGFInfo).
This feature is not implemented in the 4.0.0 release but it may show up
in a dot release.
</desc>
<param name="name" type="wstring" dir="in">
<desc>
The name of the info item.
</desc>
</param>
<param name="args" type="wstring" dir="in">
<desc>
Arguments to the info dumper.
</desc>
</param>
<param name="info" type="wstring" dir="return">
<desc>
The into string.
</desc>
</param>
</method>
<method name="injectNMI">
<desc>
Inject an NMI into a running VT-x/AMD-V VM.
</desc>
</method>
<method name="modifyLogGroups">
<desc>
Modifies the group settings of the debug or release logger.
</desc>
<param name="settings" type="wstring" dir="in">
<desc>
The group settings string. See iprt/log.h for details. To target the
release logger, prefix the string with "release:".
</desc>
</param>
</method>
<method name="modifyLogFlags">
<desc>
Modifies the debug or release logger flags.
</desc>
<param name="settings" type="wstring" dir="in">
<desc>
The flags settings string. See iprt/log.h for details. To target the
release logger, prefix the string with "release:".
</desc>
</param>
</method>
<method name="modifyLogDestinations">
<desc>
Modifies the debug or release logger destinations.
</desc>
<param name="settings" type="wstring" dir="in">
<desc>
The destination settings string. See iprt/log.h for details. To target the
release logger, prefix the string with "release:".
</desc>
</param>
</method>
<method name="readPhysicalMemory">
<desc>
Reads guest physical memory, no side effects (MMIO++).
This feature is not implemented in the 4.0.0 release but may show up
in a dot release.
</desc>
<param name="address" type="long long" dir="in">
<desc>The guest physical address.</desc>
</param>
<param name="size" type="unsigned long" dir="in">
<desc>The number of bytes to read.</desc>
</param>
<param name="bytes" type="octet" safearray="yes" dir="return">
<desc>The bytes read.</desc>
</param>
</method>
<method name="writePhysicalMemory">
<desc>
Writes guest physical memory, access handles (MMIO++) are ignored.
This feature is not implemented in the 4.0.0 release but may show up
in a dot release.
</desc>
<param name="address" type="long long" dir="in">
<desc>The guest physical address.</desc>
</param>
<param name="size" type="unsigned long" dir="in">
<desc>The number of bytes to read.</desc>
</param>
<param name="bytes" type="octet" safearray="yes" dir="in">
<desc>The bytes to write.</desc>
</param>
</method>
<method name="readVirtualMemory">
<desc>
Reads guest virtual memory, no side effects (MMIO++).
This feature is not implemented in the 4.0.0 release but may show up
in a dot release.
</desc>
<param name="cpuId" type="unsigned long" dir="in">
<desc>The identifier of the Virtual CPU.</desc>
</param>
<param name="address" type="long long" dir="in">
<desc>The guest virtual address.</desc>
</param>
<param name="size" type="unsigned long" dir="in">
<desc>The number of bytes to read.</desc>
</param>
<param name="bytes" type="octet" safearray="yes" dir="return">
<desc>The bytes read.</desc>
</param>
</method>
<method name="writeVirtualMemory">
<desc>
Writes guest virtual memory, access handles (MMIO++) are ignored.
This feature is not implemented in the 4.0.0 release but may show up
in a dot release.
</desc>
<param name="cpuId" type="unsigned long" dir="in">
<desc>The identifier of the Virtual CPU.</desc>
</param>
<param name="address" type="long long" dir="in">
<desc>The guest virtual address.</desc>
</param>
<param name="size" type="unsigned long" dir="in">
<desc>The number of bytes to read.</desc>
</param>
<param name="bytes" type="octet" safearray="yes" dir="in">
<desc>The bytes to write.</desc>
</param>
</method>
<method name="loadPlugIn">
<desc> Loads a DBGF plug-in. </desc>
<param name="name" type="wstring" dir="in">
<desc>The plug-in name or DLL. Special name 'all' loads all installed plug-ins.</desc>
</param>
<param name="plugInName" type="wstring" dir="return">
<desc>The name of the loaded plug-in.</desc>
</param>
</method>
<method name="unloadPlugIn">
<desc>Unloads a DBGF plug-in.</desc>
<param name="name" type="wstring" dir="in">
<desc>The plug-in name or DLL. Special name 'all' unloads all plug-ins.</desc>
</param>
</method>
<method name="detectOS">
<desc>
Tries to (re-)detect the guest OS kernel.
This feature is not implemented in the 4.0.0 release but may show up
in a dot release.
</desc>
<param name="os" type="wstring" dir="return">
<desc>
The detected OS kernel on success.
</desc>
</param>
</method>
<method name="queryOSKernelLog">
<desc>
Tries to get the kernel log (dmesg) of the guest OS.
</desc>
<param name="maxMessages" type="unsigned long" dir="in">
<desc>Max number of messages to return, counting from the end of the
log. If 0, there is no limit.</desc>
</param>
<param name="dmesg" type="wstring" dir="return">
<desc>
The kernel log.
</desc>
</param>
</method>
<method name="getRegister">
<desc>
Gets one register.
</desc>
<param name="cpuId" type="unsigned long" dir="in">
<desc>The identifier of the Virtual CPU.</desc>
</param>
<param name="name" type="wstring" dir="in">
<desc>The register name, case is ignored.</desc>
</param>
<param name="value" type="wstring" dir="return">
<desc>
The register value. This is usually a hex value (always 0x prefixed)
but other format may be used for floating point registers (TBD).
</desc>
</param>
</method>
<method name="getRegisters">
<desc>
Gets all the registers for the given CPU.
</desc>
<param name="cpuId" type="unsigned long" dir="in">
<desc>The identifier of the Virtual CPU.</desc>
</param>
<param name="names" type="wstring" dir="out" safearray="yes">
<desc>Array containing the lowercase register names.</desc>
</param>
<param name="values" type="wstring" dir="out" safearray="yes">
<desc>
Array parallel to the names holding the register values as if the
register was returned by <link to="IMachineDebugger::getRegister"/>.
</desc>
</param>
</method>
<method name="setRegister">
<desc>
Gets one register.
This feature is not implemented in the 4.0.0 release but may show up
in a dot release.
</desc>
<param name="cpuId" type="unsigned long" dir="in">
<desc>The identifier of the Virtual CPU.</desc>
</param>
<param name="name" type="wstring" dir="in">
<desc>The register name, case is ignored.</desc>
</param>
<param name="value" type="wstring" dir="in">
<desc>
The new register value. Hexadecimal, decimal and octal formattings
are supported in addition to any special formattings returned by
the getters.
</desc>
</param>
</method>
<method name="setRegisters">
<desc>
Sets zero or more registers atomically.
This feature is not implemented in the 4.0.0 release but may show up
in a dot release.
</desc>
<param name="cpuId" type="unsigned long" dir="in">
<desc>The identifier of the Virtual CPU.</desc>
</param>
<param name="names" type="wstring" dir="in" safearray="yes">
<desc>Array containing the register names, case ignored.</desc>
</param>
<param name="values" type="wstring" dir="in" safearray="yes">
<desc>
Array paralell to the names holding the register values. See
<link to="IMachineDebugger::setRegister"/> for formatting
guidelines.
</desc>
</param>
</method>
<method name="dumpGuestStack">
<desc>
Produce a simple stack dump using the current guest state.
This feature is not implemented in the 4.0.0 release but may show up
in a dot release.
</desc>
<param name="cpuId" type="unsigned long" dir="in">
<desc>The identifier of the Virtual CPU.</desc>
</param>
<param name="stack" type="wstring" dir="return">
<desc>String containing the formatted stack dump.</desc>
</param>
</method>
<method name="resetStats">
<desc>
Reset VM statistics.
</desc>
<param name="pattern" type="wstring" dir="in">
<desc>The selection pattern. A bit similar to filename globbing.
Wildchars are '*' and '?', where the asterisk matches zero or
more characters and question mark matches exactly one character.
Multiple pattern can be joined by putting '|' between them.</desc>
</param>
</method>
<method name="dumpStats">
<desc>
Dumps VM statistics.
</desc>
<param name="pattern" type="wstring" dir="in">
<desc>The selection pattern. A bit similar to filename globbing.
Wildchars are '*' and '?', where the asterisk matches zero or
more characters and question mark matches exactly one character.
Multiple pattern can be joined by putting '|' between them.</desc>
</param>
</method>
<method name="getStats">
<desc>
Get the VM statistics in a XMLish format.
</desc>
<param name="pattern" type="wstring" dir="in">
<desc>The selection pattern. A bit similar to filename globbing.
Wildchars are '*' and '?', where the asterisk matches zero or
more characters and question mark matches exactly one character.
Multiple pattern can be joined by putting '|' between them.</desc>
</param>
<param name="withDescriptions" type="boolean" dir="in">
<desc>Whether to include the descriptions.</desc>
</param>
<param name="stats" type="wstring" dir="return">
<desc>The XML document containing the statistics.</desc>
</param>
</method>
<method name="getCPULoad">
<desc>
Get the load percentages (as observed by the VMM) for all virtual CPUs
or a specific one.
</desc>
<param name="cpuId" type="unsigned long" dir="in">
<desc>The ID of the virtual CPU to retrieve stats for, pass 0x7fffffff
or higher for the average accross all CPUs.</desc>
</param>
<param name="pctExecuting" type="unsigned long" dir="out">
<desc>Percentage of the interval that the CPU(s) spend executing guest code.</desc>
</param>
<param name="pctHalted" type="unsigned long" dir="out">
<desc>Percentage of the interval that the CPU(s) spend halted.</desc>
</param>
<param name="pctOther" type="unsigned long" dir="out">
<desc>Percentage of the interval that the CPU(s) preempted by the host
scheduler, on virtualization overhead and on other tasks.</desc>
</param>
<param name="msInterval" type="long long" dir="return">
<desc>The interval the percentage was calculated over in milliseconds</desc>
</param>
</method>
<method name="takeGuestSample">
<desc>
Creates a sample report of the guest and emulated device activity.
</desc>
<param name="filename" type="wstring" dir="in">
<desc>The file to dump the report to.</desc>
</param>
<param name="usInterval" type="unsigned long" dir="in">
<desc>The sample interval.</desc>
</param>
<param name="usSampleTime" type="long long" dir="in">
<desc>The number of microseconds to sample.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>The progress object on return.</desc>
</param>
</method>
<method name="getUVMAndVMMFunctionTable" wsmap="suppress">
<desc>
Gets the user-mode VM handle, with a reference, and the VMM function table.
The VM handle must be passed to VMR3ReleaseUVM when done. This can only
be called from within the VM process, remote calls will always fail.
</desc>
<param name="magicVersion" type="long long" dir="in">
<desc>The VMMR3VTABLE_MAGIC_VERSION value of the caller. The method
will fail if this is not compatible with the VMM function table.</desc>
</param>
<param name="VMMFunctionTable" type="long long" dir="out">
<desc>The VMM function table address.</desc>
</param>
<param name="UVM" type="long long" dir="return">
<desc>The user-mode VM handle.</desc>
</param>
</method>
<attribute name="singleStep" type="boolean">
<desc>Switch for enabling single-stepping.</desc>
</attribute>
<attribute name="executeAllInIEM" type="boolean">
<desc>
Whether to execute all the code in the instruction interpreter. This
is mainly for testing the interpreter and not an execution mode
intended for general consumption.
</desc>
</attribute>
<attribute name="logEnabled" type="boolean">
<desc>Switch for enabling and disabling the debug logger.</desc>
</attribute>
<attribute name="logDbgFlags" type="wstring" readonly="yes">
<desc>The debug logger flags.</desc>
</attribute>
<attribute name="logDbgGroups" type="wstring" readonly="yes">
<desc>The debug logger's group settings.</desc>
</attribute>
<attribute name="logDbgDestinations" type="wstring" readonly="yes">
<desc>The debug logger's destination settings.</desc>
</attribute>
<attribute name="logRelFlags" type="wstring" readonly="yes">
<desc>The release logger flags.</desc>
</attribute>
<attribute name="logRelGroups" type="wstring" readonly="yes">
<desc>The release logger's group settings.</desc>
</attribute>
<attribute name="logRelDestinations" type="wstring" readonly="yes">
<desc>The relase logger's destination settings.</desc>
</attribute>
<attribute name="executionEngine" type="VMExecutionEngine" readonly="yes">
<desc>Gets the main execution engine of the VM.</desc>
</attribute>
<attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
<desc>
Flag indicating whether the VM is currently making use of the nested paging
CPU hardware virtualization extension.
</desc>
</attribute>
<attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
<desc>
Flag indicating whether the VM is currently making use of the VPID
VT-x extension.
</desc>
</attribute>
<attribute name="HWVirtExUXEnabled" type="boolean" readonly="yes">
<desc>
Flag indicating whether the VM is currently making use of the
unrestricted execution feature of VT-x.
</desc>
</attribute>
<attribute name="OSName" type="wstring" readonly="yes">
<desc>
Query the guest OS kernel name as detected by the DBGF.
This feature is not implemented in the 4.0.0 release but may show up
in a dot release.
</desc>
</attribute>
<attribute name="OSVersion" type="wstring" readonly="yes">
<desc>
Query the guest OS kernel version string as detected by the DBGF.
This feature is not implemented in the 4.0.0 release but may show up
in a dot release.
</desc>
</attribute>
<attribute name="PAEEnabled" type="boolean" readonly="yes">
<desc>
Flag indicating whether the VM is currently making use of the Physical
Address Extension CPU feature.
</desc>
</attribute>
<attribute name="virtualTimeRate" type="unsigned long">
<desc>
The rate at which the virtual time runs expressed as a percentage.
The accepted range is 2% to 20000%.
</desc>
</attribute>
<attribute name="uptime" type="long long" readonly="yes">
<desc>VM uptime in milliseconds, i.e. time in which it could have been
executing guest code. Excludes the time when the VM was paused.</desc>
</attribute>
</interface>
<!--
// IUSBDeviceFilters
/////////////////////////////////////////////////////////////////////////
-->
<interface
name="IUSBDeviceFilters" extends="$unknown"
uuid="9709db9b-3346-49d6-8f1c-41b0c4784ff2"
wsmap="managed"
rest="managed"
reservedMethods="2" reservedAttributes="2"
>
<attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
<desc>
List of USB device filters associated with the machine.
If the machine is currently running, these filters are activated
every time a new (supported) USB device is attached to the host
computer that was not ignored by global filters
(<link to="IHost::USBDeviceFilters"/>).
These filters are also activated when the machine is powered up.
They are run against a list of all currently available USB
devices (in states
<link to="USBDeviceState_Available"/>,
<link to="USBDeviceState_Busy"/>,
<link to="USBDeviceState_Held"/>) that were not previously
ignored by global filters.
If at least one filter matches the USB device in question, this
device is automatically captured (attached to) the virtual USB
controller of this machine.
<see><link to="IUSBDeviceFilter"/>, <link to="IUSBController"/></see>
</desc>
</attribute>
<method name="createDeviceFilter">
<desc>
Creates a new USB device filter. All attributes except
the filter name are set to empty (any match),
<i>active</i> is @c false (the filter is not active).
The created filter can then be added to the list of filters using
<link to="#insertDeviceFilter"/>.
<result name="VBOX_E_INVALID_VM_STATE">
The virtual machine is not mutable.
</result>
<see><link to="#deviceFilters"/></see>
</desc>
<param name="name" type="wstring" dir="in">
<desc>
Filter name. See <link to="IUSBDeviceFilter::name"/>
for more info.
</desc>
</param>
<param name="filter" type="IUSBDeviceFilter" dir="return">
<desc>Created filter object.</desc>
</param>
</method>
<method name="insertDeviceFilter">
<desc>
Inserts the given USB device to the specified position
in the list of filters.
Positions are numbered starting from <tt>0</tt>. If the specified
position is equal to or greater than the number of elements in
the list, the filter is added to the end of the collection.
<note>
Duplicates are not allowed, so an attempt to insert a
filter that is already in the collection, will return an
error.
</note>
<result name="VBOX_E_INVALID_VM_STATE">
Virtual machine is not mutable.
</result>
<result name="E_INVALIDARG">
USB device filter not created within this VirtualBox instance.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
USB device filter already in list.
</result>
<see><link to="#deviceFilters"/></see>
</desc>
<param name="position" type="unsigned long" dir="in">
<desc>Position to insert the filter to.</desc>
</param>
<param name="filter" type="IUSBDeviceFilter" dir="in">
<desc>USB device filter to insert.</desc>
</param>
</method>
<method name="removeDeviceFilter">
<desc>
Removes a USB device filter from the specified position in the
list of filters.
Positions are numbered starting from <tt>0</tt>. Specifying a
position equal to or greater than the number of elements in
the list will produce an error.
<see><link to="#deviceFilters"/></see>
<result name="VBOX_E_INVALID_VM_STATE">
Virtual machine is not mutable.
</result>
<result name="E_INVALIDARG">
USB device filter list empty or invalid @a position.
</result>
</desc>
<param name="position" type="unsigned long" dir="in">
<desc>Position to remove the filter from.</desc>
</param>
<param name="filter" type="IUSBDeviceFilter" dir="return">
<desc>Removed USB device filter.</desc>
</param>
</method>
</interface>
<!--
// IUSBController
/////////////////////////////////////////////////////////////////////////
-->
<enum
name="USBControllerType"
uuid="8fdd1c6a-5412-41da-ab07-7baed7d6e18e"
>
<desc>
The USB controller type. <link to="IUSBController::type" />.
</desc>
<const name="Null" value="0">
<desc>@c null value. Never used by the API.</desc>
</const>
<const name="OHCI" value="1"/>
<const name="EHCI" value="2"/>
<const name="XHCI" value="3"/>
<const name="Last" value="4">
<desc>Last element (invalid). Used for parameter checks.</desc>
</const>
</enum>
<interface
name="IUSBController" extends="$unknown"
uuid="ee206a6e-7ff8-4a84-bd34-0c651e118bb5"
wsmap="managed"
rest="managed"
reservedAttributes="4"
>
<attribute name="name" type="wstring">
<desc>
The USB Controller name.
</desc>
</attribute>
<attribute name="type" type="USBControllerType">
<desc>
The USB Controller type.
</desc>
</attribute>
<attribute name="USBStandard" type="unsigned short" readonly="yes">
<desc>
USB standard version which the controller implements.
This is a BCD which means that the major version is in the
high byte and minor version is in the low byte.
</desc>
</attribute>
</interface>
<!--
// IUSBDevice
/////////////////////////////////////////////////////////////////////////
-->
<enum
name="USBConnectionSpeed"
uuid="d2915840-ea26-4fb4-b72a-21eaf6b888ff"
>
<desc>
USB device/port speed state. This enumeration represents speeds at
which a USB device can communicate with the host.
The speed is a function of both the device itself and the port which
it is attached to, including hubs and cables in the path.
<note>
Due to differences in USB stack implementations on various hosts,
the reported speed may not exactly match the actual speed.
</note>
<see><link to="IHostUSBDevice"/></see>
</desc>
<const name="Null" value="0">
<desc>
@c null value. Never returned by the API.
</desc>
</const>
<const name="Low" value="1">
<desc>
Low speed, 1.5 Mbps.
</desc>
</const>
<const name="Full" value="2">
<desc>
Full speed, 12 Mbps.
</desc>
</const>
<const name="High" value="3">
<desc>
High speed, 480 Mbps.
</desc>
</const>
<const name="Super" value="4">
<desc>
SuperSpeed, 5 Gbps.
</desc>
</const>
<const name="SuperPlus" value="5">
<desc>
SuperSpeedPlus, 10 Gbps.
</desc>
</const>
</enum>
<interface
name="IUSBDevice" extends="$unknown"
uuid="6dc83c2c-81a9-4005-9d52-fc45a78bf3f5"
wsmap="managed"
rest="managed"
reservedAttributes="4"
>
<desc>
The IUSBDevice interface represents a virtual USB device attached to the
virtual machine.
A collection of objects implementing this interface is stored in the
<link to="IConsole::USBDevices"/> attribute which lists all USB devices
attached to a running virtual machine's USB controller.
</desc>
<attribute name="id" type="uuid" mod="string" readonly="yes">
<desc>
Unique USB device ID. This ID is built from #vendorId,
#productId, #revision and #serialNumber.
</desc>
</attribute>
<attribute name="vendorId" type="unsigned short" readonly="yes">
<desc>Vendor ID.</desc>
</attribute>
<attribute name="productId" type="unsigned short" readonly="yes">
<desc>Product ID.</desc>
</attribute>
<attribute name="revision" type="unsigned short" readonly="yes">
<desc>
Product revision number. This is a packed BCD represented as
unsigned short. The high byte is the integer part and the low
byte is the decimal.
</desc>
</attribute>
<attribute name="manufacturer" type="wstring" readonly="yes">
<desc>Manufacturer string.</desc>
</attribute>
<attribute name="product" type="wstring" readonly="yes">
<desc>Product string.</desc>
</attribute>
<attribute name="serialNumber" type="wstring" readonly="yes">
<desc>Serial number string.</desc>
</attribute>
<attribute name="address" type="wstring" readonly="yes">
<desc>
Host-specific address of the device, uniquely
identifying a physically connected device in the system.
Note that the address of a USB device may change across
device re-plugs and host suspend/resume cycles or reboots.
</desc>
</attribute>
<attribute name="port" type="unsigned short" readonly="yes">
<desc>
Host USB port number on the hub the device is physically
connected to.
</desc>
</attribute>
<attribute name="portPath" type="wstring" readonly="yes">
<desc>
Host-specific identifier of the port (including hub) the USB
device is physically connected to. Note that hubs may be
dynamically added and removed, and that hub enumeration may not
be consistent across host reboots.
</desc>
</attribute>
<attribute name="version" type="unsigned short" readonly="yes">
<desc>
The major USB version of the device - 1, 2 or 3.
</desc>
</attribute>
<attribute name="speed" type="USBConnectionSpeed" readonly="yes">
<desc>
The speed at which the device is currently communicating.
</desc>
</attribute>
<attribute name="remote" type="boolean" readonly="yes">
<desc>
Whether the device is physically connected to a remote VRDE
client or to a local host machine.
</desc>
</attribute>
<attribute name="deviceInfo" type="wstring" readonly="yes" safearray="yes">
<desc>
Array of device attributes as single strings.
So far the following are used:
0: The manufacturer string, if the device doesn't expose the ID one is taken
from an internal database or an empty string if none is found.
1: The product string, if the device doesn't expose the ID one is taken
from an internal database or an empty string if none is found.
</desc>
</attribute>
<attribute name="backend" type="wstring" readonly="yes">
<desc>
The backend which will be used to communicate with this device.
</desc>
</attribute>
</interface>
<!--
// IUSBDeviceFilter
/////////////////////////////////////////////////////////////////////////
-->
<interface
name="IUSBDeviceFilter" extends="$unknown"
uuid="45587218-4289-ef4e-8e6a-e5b07816b631"
wsmap="managed"
rest="managed"
reservedAttributes="8"
>
<desc>
The IUSBDeviceFilter interface represents an USB device filter used
to perform actions on a group of USB devices.
This type of filters is used by running virtual machines to
automatically capture selected USB devices once they are physically
attached to the host computer.
A USB device is matched to the given device filter if and only if all
attributes of the device match the corresponding attributes of the
filter (that is, attributes are joined together using the logical AND
operation). On the other hand, all together, filters in the list of
filters carry the semantics of the logical OR operation. So if it is
desirable to create a match like "this vendor id OR this product id",
one needs to create two filters and specify "any match" (see below)
for unused attributes.
All filter attributes used for matching are strings. Each string
is an expression representing a set of values of the corresponding
device attribute, that will match the given filter. Currently, the
following filtering expressions are supported:
<ul>
<li><i>Interval filters</i>. Used to specify valid intervals for
integer device attributes (Vendor ID, Product ID and Revision).
The format of the string is:
<tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
(starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
or decimal (otherwise) form, so that <tt>m < n</tt>. If <tt>m</tt>
is omitted before a dash (<tt>-</tt>), the minimum possible integer
is assumed; if <tt>n</tt> is omitted after a dash, the maximum
possible integer is assumed.
</li>
<li><i>Boolean filters</i>. Used to specify acceptable values for
boolean device attributes. The format of the string is:
<tt>true|false|yes|no|0|1</tt>
</li>
<li><i>Exact match</i>. Used to specify a single value for the given
device attribute. Any string that doesn't start with <tt>int:</tt>
represents the exact match. String device attributes are compared to
this string including case of symbols. Integer attributes are first
converted to a string (see individual filter attributes) and then
compared ignoring case.
</li>
<li><i>Any match</i>. Any value of the corresponding device attribute
will match the given filter. An empty or @c null string is
used to construct this type of filtering expressions.
</li>
</ul>
<note>
On the Windows host platform, interval filters are not currently
available. Also all string filter attributes
(<link to="#manufacturer"/>, <link to="#product"/>,
<link to="#serialNumber"/>) are ignored, so they behave as
<i>any match</i> no matter what string expression is specified.
</note>
<see><link to="IUSBDeviceFilters::deviceFilters"/>,
<link to="IHostUSBDeviceFilter"/></see>
</desc>
<attribute name="name" type="wstring">
<desc>
Visible name for this filter.
This name is used to visually distinguish one filter from another,
so it can neither be @c null nor an empty string.
</desc>
</attribute>
<attribute name="active" type="boolean">
<desc>Whether this filter active or has been temporarily disabled.</desc>
</attribute>
<attribute name="vendorId" type="wstring">
<desc>
<link to="IUSBDevice::vendorId">Vendor ID</link> filter.
The string representation for the <i>exact matching</i>
has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
(including leading zeroes).
</desc>
</attribute>
<attribute name="productId" type="wstring">
<desc>
<link to="IUSBDevice::productId">Product ID</link> filter.
The string representation for the <i>exact matching</i>
has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
(including leading zeroes).
</desc>
</attribute>
<attribute name="revision" type="wstring">
<desc>
<link to="IUSBDevice::productId">Product revision number</link>
filter. The string representation for the <i>exact matching</i>
has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
of the integer part of the revision, and <tt>F</tt> is the
decimal digit of its fractional part (including leading and
trailing zeros).
Note that for interval filters, it's best to use the hexadecimal
form, because the revision is stored as a 16 bit packed BCD value;
so the expression <tt>int:0x0100-0x0199</tt> will match any
revision from <tt>1.0</tt> to <tt>1.99</tt>.
</desc>
</attribute>
<attribute name="manufacturer" type="wstring">
<desc>
<link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
</desc>
</attribute>
<attribute name="product" type="wstring">
<desc>
<link to="IUSBDevice::product">Product</link> filter.
</desc>
</attribute>
<attribute name="serialNumber" type="wstring">
<desc>
<link to="IUSBDevice::serialNumber">Serial number</link> filter.
</desc>
</attribute>
<attribute name="port" type="wstring">
<desc>
<link to="IUSBDevice::port">Host USB port</link> filter.
</desc>
</attribute>
<attribute name="remote" type="wstring">
<desc>
<link to="IUSBDevice::remote">Remote state</link> filter.
<note>
This filter makes sense only for machine USB filters,
i.e. it is ignored by IHostUSBDeviceFilter objects.
</note>
</desc>
</attribute>
<attribute name="maskedInterfaces" type="unsigned long">
<desc>
This is an advanced option for hiding one or more USB interfaces
from the guest. The value is a bit mask where the bits that are set
means the corresponding USB interface should be hidden, masked off
if you like.
This feature only works on Linux hosts.
</desc>
</attribute>
</interface>
<!--
// IHostUSBDevice
/////////////////////////////////////////////////////////////////////////
-->
<enum
name="USBDeviceState"
uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
>
<desc>
USB device state. This enumeration represents all possible states
of the USB device physically attached to the host computer regarding
its state on the host computer and availability to guest computers
(all currently running virtual machines).
Once a supported USB device is attached to the host, global USB
filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
either ignore the device, or put it to USBDeviceState_Held state, or do
nothing. Unless the device is ignored by global filters, filters of all
currently running guests (<link to="IUSBDeviceFilters::deviceFilters"/>) are
activated that can put it to USBDeviceState_Captured state.
If the device was ignored by global filters, or didn't match
any filters at all (including guest ones), it is handled by the host
in a normal way. In this case, the device state is determined by
the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
or USBDeviceState_Available, depending on the current device usage.
Besides auto-capturing based on filters, the device can be manually
captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
state is USBDeviceState_Busy, USBDeviceState_Available or
USBDeviceState_Held.
<note>
Due to differences in USB stack implementations in Linux and Win32,
states USBDeviceState_Busy and USBDeviceState_Unavailable are applicable
only to the Linux version of the product. This also means that (<link
to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
device state is USBDeviceState_Held.
</note>
<see><link to="IHostUSBDevice"/>, <link to="IHostUSBDeviceFilter"/></see>
</desc>
<const name="NotSupported" value="0">
<desc>
Not supported by the VirtualBox server, not available to guests.
</desc>
</const>
<const name="Unavailable" value="1">
<desc>
Being used by the host computer exclusively,
not available to guests.
</desc>
</const>
<const name="Busy" value="2">
<desc>
Being used by the host computer, potentially available to guests.
</desc>
</const>
<const name="Available" value="3">
<desc>
Not used by the host computer, available to guests (the host computer
can also start using the device at any time).
</desc>
</const>
<const name="Held" value="4">
<desc>
Held by the VirtualBox server (ignored by the host computer),
available to guests.
</desc>
</const>
<const name="Captured" value="5">
<desc>
Captured by one of the guest computers, not available
to anybody else.
</desc>
</const>
</enum>
<interface
name="IHostUSBDevice" extends="IUSBDevice"
uuid="c19073dd-cc7b-431b-98b2-951fda8eab89"
wsmap="managed"
rest="managed"
reservedAttributes="4"
>
<desc>
The IHostUSBDevice interface represents a physical USB device attached
to the host computer.
Besides properties inherited from IUSBDevice, this interface adds the
<link to="#state"/> property that holds the current state of the USB
device.
<see><link to="IHost::USBDevices"/>,
<link to="IHost::USBDeviceFilters"/></see>
</desc>
<attribute name="state" type="USBDeviceState" readonly="yes">
<desc>
Current state of the device.
</desc>
</attribute>
<!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
</interface>
<!--
// IHostUSBDeviceFilter
/////////////////////////////////////////////////////////////////////////
-->
<enum
name="USBDeviceFilterAction"
uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
>
<desc>
Actions for host USB device filters.
<see><link to="IHostUSBDeviceFilter"/>, <link to="USBDeviceState"/></see>
</desc>
<const name="Null" value="0">
<desc>Null value (never used by the API).</desc>
</const>
<const name="Ignore" value="1">
<desc>Ignore the matched USB device.</desc>
</const>
<const name="Hold" value="2">
<desc>Hold the matched USB device.</desc>
</const>
</enum>
<interface
name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
uuid="01adb2d6-aedf-461c-be2c-99e91bdad8a1"
wsmap="managed"
rest="managed"
reservedAttributes="8"
>
<desc>
The IHostUSBDeviceFilter interface represents a global filter for a
physical USB device used by the host computer. Used indirectly in
<link to="IHost::USBDeviceFilters"/>.
Using filters of this type, the host computer determines the initial
state of the USB device after it is physically attached to the
host's USB controller.
<note>
The <link to="IUSBDeviceFilter::remote"/> attribute is ignored by this type of
filters, because it makes sense only for
<link to="IUSBDeviceFilters::deviceFilters">machine USB filters</link>.
</note>
<see><link to="IHost::USBDeviceFilters"/></see>
</desc>
<attribute name="action" type="USBDeviceFilterAction">
<desc>
Action performed by the host when an attached USB device
matches this filter.
</desc>
</attribute>
</interface>
<!--
// IUSBProxyBackend
/////////////////////////////////////////////////////////////////////////
-->
<interface
name="IUSBProxyBackend" extends="$unknown"
uuid="dfe56449-6989-4002-80cf-3607f377d40c"
wsmap="managed"
rest="managed"
reservedMethods="4" reservedAttributes="8"
>
<desc>
The USBProxyBackend interface represents a source for USB devices available
to the host for attaching to the VM.
</desc>
<attribute name="name" type="wstring" readonly="yes">
<desc>
The unique name of the proxy backend.
</desc>
</attribute>
<attribute name="type" type="wstring" readonly="yes">
<desc>
The type of the backend.
</desc>
</attribute>
</interface>
<!--
// IAudioAdapter
/////////////////////////////////////////////////////////////////////////
-->
<enum
name="AudioDriverType"
uuid="32b4acfd-79ab-4b7e-9a1c-92e99f4e000b"
>
<desc>
Host audio driver type.
</desc>
<const name="Default" value="0">
<desc>Use the default audio driver automatically determined for the host
that this VirtualBox instance is running on.
Useful for VMs which need to run on different host OSes.
</desc>
</const>
<!-- When changing the enum anyway, keep the enum grouped per platforms, starting
from oldest audio stack to newest one (if possible). -->
<const name="Null" value="1">
<desc>Null value, also means "dummy audio driver".</desc>
</const>
<const name="OSS" value="2">
<desc>Open Sound System (Linux / Unix hosts only).</desc>
</const>
<const name="ALSA" value="3">
<desc>Advanced Linux Sound Architecture (Linux hosts only).</desc>
</const>
<const name="Pulse" value="4">
<desc>PulseAudio (Linux hosts only).</desc>
</const>
<const name="WinMM" value="5">
<desc>Windows multimedia (Windows hosts only, not supported at the moment).</desc>
</const>
<const name="DirectSound" value="6">
<desc>DirectSound (Windows hosts only).</desc>
</const>
<const name="WAS" value="7">
<desc>Windows Audio Session (Windows hosts only).</desc>
</const>
<const name="CoreAudio" value="8">
<desc>CoreAudio (Mac hosts only).</desc>
</const>
<const name="MMPM" value="9">
<desc>Reserved for historical reasons.</desc>
</const>
<const name="SolAudio" value="10">
<desc>Reserved for historical reasons.</desc>
</const>
</enum>
<enum
name="AudioControllerType"
uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
>
<desc>
Virtual audio controller type.
</desc>
<const name="AC97" value="0"/>
<const name="SB16" value="1"/>
<const name="HDA" value="2"/>
</enum>
<enum
name="AudioCodecType"
uuid="7b406301-f520-420c-9805-8ce11c086370"
>
<desc>
The exact variant of audio codec hardware presented
to the guest; see <link to="IAudioAdapter::audioCodec" />.
</desc>
<const name="Null" value="0">
<desc>@c null value. Never used by the API.</desc>
</const>
<const name="SB16" value="1">
<desc>SB16; this is the only option for the SB16 device.</desc>
</const>
<const name="STAC9700" value="2">
<desc>A STAC9700 AC'97 codec.</desc>
</const>
<const name="AD1980" value="3">
<desc>An AD1980 AC'97 codec. Recommended for Linux guests.</desc>
</const>
<const name="STAC9221" value="4">
<desc>A STAC9221 HDA codec.</desc>
</const>
</enum>
<interface
name="IAudioAdapter" extends="$unknown"
uuid="5155bfd3-7ba7-45a8-b26d-c91ae3754e37"
wsmap="managed"
rest="managed"
reservedMethods="4" reservedAttributes="8"
>
<desc>
The IAudioAdapter interface represents the virtual audio adapter of
the virtual machine. Used in <link to="IAudioSettings::adapter"/>.
</desc>
<attribute name="enabled" type="boolean">
<desc>
Flag whether the audio adapter is present in the
guest system. If disabled, the virtual guest hardware will
not contain any audio adapter. Can only be changed when
the VM is not running.
</desc>
</attribute>
<attribute name="enabledIn" type="boolean">
<desc>
Flag whether the audio adapter is enabled for audio
input. Only relevant if the adapter is enabled.
</desc>
</attribute>
<attribute name="enabledOut" type="boolean">
<desc>
Flag whether the audio adapter is enabled for audio
output. Only relevant if the adapter is enabled.
</desc>
</attribute>
<attribute name="audioController" type="AudioControllerType">
<desc>
The emulated audio controller.
</desc>
</attribute>
<attribute name="audioCodec" type="AudioCodecType">
<desc>
The exact variant of audio codec hardware presented
to the guest.
For HDA and SB16, only one variant is available, but for AC'97,
there are several.
</desc>
</attribute>
<attribute name="audioDriver" type="AudioDriverType">
<desc>
Audio driver the adapter is connected to. This setting
can only be changed when the VM is not running.
</desc>
</attribute>
<attribute name="propertiesList" type="wstring" readonly="yes" safearray="yes">
<desc>
Array of names of tunable properties, which can be supported by audio driver.
</desc>
</attribute>
<method name="setProperty">
<desc>
Sets an audio specific property string.
If you pass @c null or empty string as a key @a value, the given @a key
will be deleted.
</desc>
<param name="key" type="wstring" dir="in">
<desc>Name of the key to set.</desc>
</param>
<param name="value" type="wstring" dir="in">
<desc>Value to assign to the key.</desc>
</param>
</method>
<method name="getProperty" const="yes">
<desc>
Returns an audio specific property string.
If the requested data @a key does not exist, this function will
succeed and return an empty string in the @a value argument.
</desc>
<param name="key" type="wstring" dir="in">
<desc>Name of the key to get.</desc>
</param>
<param name="value" type="wstring" dir="return">
<desc>Value of the requested key.</desc>
</param>
</method>
</interface>
<enum
name="AudioDirection"
uuid="f27d209b-040c-4ae9-beae-85f9693ca07a"
>
<desc>
Audio direction enumeration.
</desc>
<const name="Unknown" value="0">
<desc>Direction cannot be determined.</desc>
</const>
<const name="In" value="1">
<desc>Input (Recording).</desc>
</const>
<const name="Out" value="2">
<desc>Output (Playback).</desc>
</const>
<const name="Duplex" value="3">
<desc>Duplex (Recording + Playback).</desc>
</const>
</enum>
<enum
name="AudioDeviceType"
uuid="95457071-ef88-45a9-8416-fc05b08731d2"
>
<desc>
Audio device type enumeration.
</desc>
<const name="Unknown" value="0">
<desc>Device type is unknown / cannot be determined</desc>
</const>
<const name="BuiltLin" value="1">
<desc>Built-in device (cannot be removed).</desc>
</const>
<const name="ExternalUSB" value="2">
<desc>External device, connected via USB.</desc>
</const>
<const name="ExternalOther" value="3">
<desc>External device, connected via some other method.</desc>
</const>
</enum>
<enum
name="AudioDeviceState"
uuid="45c1b969-556a-4277-8570-b438d2ef5ebe"
>
<desc>
Audio device state enumeration.
</desc>
<const name="Unknown" value="0">
<desc>Device state is unknown / cannot be determined</desc>
</const>
<const name="Active" value="1">
<desc>Device is active and can be used.</desc>
</const>
<const name="Disabled" value="2">
<desc>Device is in a disabled state.</desc>
</const>
<const name="NotPresent" value="3">
<desc>Device is marked as not being present.</desc>
</const>
<const name="Unplugged" value="4">
<desc>Device has been unplugged.</desc>
</const>
</enum>
<interface
name="IHostAudioDevice" extends="$unknown"
uuid="cfde1265-3140-4048-a81f-a1e280dfbd75"
wsmap="managed"
rest="managed"
reservedMethods="4" reservedAttributes="8"
>
<desc>
Represents an audio device provided by the host OS.
</desc>
<attribute name="id" type="uuid" mod="string" readonly="yes">
<desc>
Unique device ID.
</desc>
</attribute>
<attribute name="name" type="wstring">
<desc>
Friendly name of the device.
</desc>
</attribute>
<attribute name="type" type="AudioDeviceType">
<desc>
Device type.
</desc>
</attribute>
<attribute name="usage" type="AudioDirection">
<desc>
Usage type of the device.
</desc>
</attribute>
<attribute name="defaultIn" type="boolean">
<desc>
Whether this device is being marked as the default input
device by the host OS.
</desc>
</attribute>
<attribute name="defaultOut" type="boolean">
<desc>
Whether this device is being marked as the default output
device by the host OS.
</desc>
</attribute>
<attribute name="isHotPlug" type="boolean">
<desc>
Whether this device is being marked as a hotplug device, i.e. can
be removed from the system.
</desc>
</attribute>
<attribute name="state" type="AudioDeviceState">
<desc>
Current device state.
</desc>
</attribute>
<method name="getProperty" const="yes">
<desc>
Returns an audio specific property string.
If the requested data @a key does not exist, this function will
succeed and return an empty string in the @a value argument.
</desc>
<param name="key" type="wstring" dir="in">
<desc>Name of the key to get.</desc>
</param>
<param name="value" type="wstring" dir="return">
<desc>Value of the requested key.</desc>
</param>
</method>
</interface>
<interface
name="IAudioSettings" extends="$unknown"
uuid="52f40b16-520e-473f-9428-3e69b0d915c3"
wsmap="managed"
rest="managed"
reservedMethods="4" reservedAttributes="8"
>
<desc>
The IAudioSettings interface represents the audio settings for a virtual machine.
</desc>
<method name="getHostAudioDevice">
<desc>
Returns the machine's current host audio device for the specified usage.
<result name="E_NOTIMPL">
This method is not implemented yet.
</result>
</desc>
<param name="usage" type="AudioDirection" dir="in">
<desc>Usage to retrieve audio device for.</desc>
</param>
<param name="device" type="IHostAudioDevice" dir="return">
<desc>Host audio device for the specified direction.</desc>
</param>
</method>
<method name="setHostAudioDevice">
<desc>
Sets the machine's current host audio device for the specified usage.
<result name="E_NOTIMPL">
This method is not implemented yet.
</result>
</desc>
<param name="device" type="IHostAudioDevice" dir="in">
<desc>Sets the host audio device for the specified usage.</desc>
</param>
<param name="usage" type="AudioDirection" dir="in">
<desc>Usage to set audio device for.</desc>
</param>
</method>
<attribute name="adapter" type="IAudioAdapter" readonly="yes">
<desc>Associated audio adapter, always present.</desc>
</attribute>
</interface>
<enum
name="AuthType"
uuid="7eef6ef6-98c2-4dc2-ab35-10d2b292028d"
>
<desc>
VirtualBox authentication type.
</desc>
<const name="Null" value="0">
<desc>Null value, also means "no authentication".</desc>
</const>
<const name="External" value="1"/>
<const name="Guest" value="2"/>
</enum>
<!--
// IVRDEServer
/////////////////////////////////////////////////////////////////////////
-->
<interface
name="IVRDEServer" extends="$unknown"
uuid="08e25756-08a2-41af-a05f-d7c661abaebe"
wsmap="managed"
rest="managed"
reservedMethods="2" reservedAttributes="4"
>
<attribute name="enabled" type="boolean">
<desc>Flag if VRDE server is enabled.</desc>
</attribute>
<attribute name="authType" type="AuthType">
<desc>VRDE authentication method.</desc>
</attribute>
<attribute name="authTimeout" type="unsigned long">
<desc>Timeout for guest authentication. Milliseconds.</desc>
</attribute>
<attribute name="allowMultiConnection" type="boolean">
<desc>
Flag whether multiple simultaneous connections to the VM are permitted.
Note that this will be replaced by a more powerful mechanism in the future.
</desc>
</attribute>
<attribute name="reuseSingleConnection" type="boolean">
<desc>
Flag whether the existing connection must be dropped and a new connection
must be established by the VRDE server, when a new client connects in single
connection mode.
</desc>
</attribute>
<attribute name="VRDEExtPack" type="wstring">
<desc>
The name of Extension Pack providing VRDE for this VM. Overrides
<link to="ISystemProperties::defaultVRDEExtPack"/>.
</desc>
</attribute>
<attribute name="authLibrary" type="wstring">
<desc>
Library used for authentication of RDP clients by this VM. Overrides
<link to="ISystemProperties::VRDEAuthLibrary"/>.
</desc>
</attribute>
<attribute name="VRDEProperties" type="wstring" readonly="yes" safearray="yes">
<desc>
Array of names of properties, which are supported by this VRDE server.
</desc>
</attribute>
<method name="setVRDEProperty">
<desc>
Sets a VRDE specific property string.
If you pass @c null or empty string as a key @a value, the given @a key
will be deleted.
</desc>
<param name="key" type="wstring" dir="in">
<desc>Name of the key to set.</desc>
</param>
<param name="value" type="wstring" dir="in">
<desc>Value to assign to the key.</desc>
</param>
</method>
<method name="getVRDEProperty" const="yes">
<desc>
Returns a VRDE specific property string.
If the requested data @a key does not exist, this function will
succeed and return an empty string in the @a value argument.
</desc>
<param name="key" type="wstring" dir="in">
<desc>Name of the key to get.</desc>
</param>
<param name="value" type="wstring" dir="return">
<desc>Value of the requested key.</desc>
</param>
</method>
</interface>
<!--
// ISharedFolder
/////////////////////////////////////////////////////////////////////////
-->
<interface
name="ISharedFolder" extends="$unknown"
uuid="9622225a-5409-414b-bd16-77df7ba3451e"
wsmap="managed"
rest="managed"
reservedAttributes="8"
>
<desc>
The ISharedFolder interface represents a folder in the host computer's
file system accessible from the guest OS running inside a virtual
machine using an associated logical name.
There are three types of shared folders:
<ul>
<li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
folders available to all virtual machines.</li>
<li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
VM-specific shared folders available to the given virtual machine at
startup.</li>
<li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
VM-specific shared folders created in the session context (for
example, when the virtual machine is running) and automatically
discarded when the session is closed (the VM is powered off).</li>
</ul>
Logical names of shared folders must be unique within the given scope
(global, permanent or transient). However, they do not need to be unique
across scopes. In this case, the definition of the shared folder in a
more specific scope takes precedence over definitions in all other
scopes. The order of precedence is (more specific to more general):
<ol>
<li>Transient definitions</li>
<li>Permanent definitions</li>
<li>Global definitions</li>
</ol>
For example, if MyMachine has a shared folder named
<tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
transient shared folder named <tt>C_DRIVE</tt> (that points
to <tt>C:\\\\WINDOWS</tt>) will change the definition
of <tt>C_DRIVE</tt> in the guest OS so
that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
the previous (permanent) definition of <tt>C_DRIVE</tt> that points
to <tt>C:\\</tt> if it still exists.
Note that permanent and transient shared folders of different machines
are in different name spaces, so they don't overlap and don't need to
have unique logical names.
<note>
Global shared folders are not implemented in the current version of the
product.
</note>
</desc>
<attribute name="name" type="wstring" readonly="yes">
<desc>Logical name of the shared folder.</desc>
</attribute>
<attribute name="hostPath" type="wstring" readonly="yes">
<desc>Full path to the shared folder in the host file system.</desc>
</attribute>
<attribute name="accessible" type="boolean" readonly="yes">
<desc>
Whether the folder defined by the host path is currently
accessible or not.
For example, the folder can be inaccessible if it is placed
on the network share that is not available by the time
this property is read.
</desc>
</attribute>
<attribute name="writable" type="boolean">
<desc>
Whether the folder defined by the host path is writable or
not.
</desc>
</attribute>
<attribute name="autoMount" type="boolean">
<desc>
Whether the folder gets automatically mounted by the guest or not.
</desc>
</attribute>
<attribute name="autoMountPoint" type="wstring">
<desc>
Desired mount point in the guest for automatically mounting the folder
when <link to="ISharedFolder::autoMount"/> is set. For Windows and
OS/2 guests this should be a drive letter, while other guests it should
be a absolute directory. It is possible to combine the two, e.g.
"T:/mnt/testrsrc" will be attached to "T:" by windows and OS/2 while
the unixy guests will mount it at "/mnt/testrsrc".
When empty the guest will choose a mount point. The guest may do so
too should the specified mount point be in use or otherwise unusable.
</desc>
</attribute>
<attribute name="lastAccessError" type="wstring" readonly="yes">
<desc>
Text message that represents the result of the last accessibility
check.
Accessibility checks are performed each time the <link to="#accessible"/>
attribute is read. An empty string is returned if the last
accessibility check was successful. A non-empty string indicates a
failure and should normally describe a reason of the failure (for
example, a file read error).
</desc>
</attribute>
</interface>
<!--
// ISession
/////////////////////////////////////////////////////////////////////////
-->
<enum
name="Reason"
uuid="e7e8e097-299d-4e98-8bbc-c31c2d47d0cc"
>
<desc>
Internal event reason type.
</desc>
<const name="Unspecified" value="0">
<desc>Null value, means "no known reason".</desc>
</const>
<const name="HostSuspend" value="1">
<desc>Host is being suspended (power management event).</desc>
</const>
<const name="HostResume" value="2">
<desc>Host is being resumed (power management event).</desc>
</const>
<const name="HostBatteryLow" value="3">
<desc>Host is running low on battery (power management event).</desc>
</const>
<const name="Snapshot" value="4">
<desc>A snapshot of the VM is being taken.</desc>
</const>
</enum>
<interface
name="IInternalSessionControl" extends="$unknown"
uuid="5045c372-2e8f-4d9e-ad9d-121ab1661146"
internal="yes"
wsmap="suppress"
>
<attribute name="PID" type="unsigned long" readonly="yes">
<desc>PID of the process that has created this Session object.
</desc>
</attribute>
<attribute name="remoteConsole" type="IConsole" readonly="yes">
<desc>
Returns the console object suitable for remote control.
<result name="VBOX_E_INVALID_VM_STATE">
Session state prevents operation.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Session type prevents operation.
</result>
</desc>
</attribute>
<attribute name="nominalState" type="MachineState" readonly="yes">
<desc>Returns suitable machine state for the VM execution state. Useful
for choosing a sensible machine state after a complex operation which
failed or otherwise resulted in an unclear situation.
</desc>
</attribute>
<if target="midl">
<method name="assignMachine">
<desc>
Assigns the machine object associated with this direct-type
session or informs the session that it will be a remote one
(if @a machine == @c null).
<result name="VBOX_E_INVALID_VM_STATE">
Session state prevents operation.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Session type prevents operation.
</result>
</desc>
<param name="machine" type="IMachine" dir="in"/>
<param name="lockType" type="LockType" dir="in"/>
<param name="tokenId" type="wstring" dir="in"/>
</method>
</if>
<if target="xpidl">
<method name="assignMachine">
<desc>
Assigns the machine object associated with this direct-type
session or informs the session that it will be a remote one
(if @a machine == @c null).
<result name="VBOX_E_INVALID_VM_STATE">
Session state prevents operation.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Session type prevents operation.
</result>
</desc>
<param name="machine" type="IMachine" dir="in"/>
<param name="lockType" type="LockType" dir="in"/>
<param name="token" type="IToken" dir="in"/>
</method>
</if>
<method name="assignRemoteMachine">
<desc>
Assigns the machine and the (remote) console object associated with
this remote-type session.
<result name="VBOX_E_INVALID_VM_STATE">
Session state prevents operation.
</result>
</desc>
<param name="machine" type="IMachine" dir="in"/>
<param name="console" type="IConsole" dir="in"/>
</method>
<method name="updateMachineState">
<desc>
Updates the machine state in the VM process.
Must be called only in certain cases
(see the method implementation).
<result name="VBOX_E_INVALID_VM_STATE">
Session state prevents operation.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Session type prevents operation.
</result>
</desc>
<param name="machineState" type="MachineState" dir="in"/>
</method>
<method name="uninitialize">
<desc>
Uninitializes (closes) this session. Used by VirtualBox to close
the corresponding remote session when the direct session dies
or gets closed.
<result name="VBOX_E_INVALID_VM_STATE">
Session state prevents operation.
</result>
</desc>
</method>
<method name="onNetworkAdapterChange">
<desc>
Triggered when settings of a network adapter of the
associated virtual machine have changed.
<result name="VBOX_E_INVALID_VM_STATE">
Session state prevents operation.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Session type prevents operation.
</result>
</desc>
<param name="networkAdapter" type="INetworkAdapter" dir="in"/>
<param name="changeAdapter" type="boolean" dir="in"/>
</method>
<method name="onAudioAdapterChange">
<desc>
Triggerd when settings of the audio adapter of the
associated virtual machine have changed.
<result name="VBOX_E_INVALID_VM_STATE">
Session state prevents operation.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Session type prevents operation.
</result>
</desc>
<param name="audioAdapter" type="IAudioAdapter" dir="in"/>
</method>
<method name="onHostAudioDeviceChange">
<desc>
Triggerd when the state of a host audio device
has changed.
</desc>
<param name="device" type="IHostAudioDevice" dir="in" readonly="yes">
<desc>Device the state has been changed for.</desc>
</param>
<param name="isNew" type="boolean" dir="in" readonly="yes">
<desc>Whether this is a newly detected device or not.</desc>
</param>
<param name="state" type="AudioDeviceState" dir="in" readonly="yes">
<desc>The new device state.</desc>
</param>
<param name="errorInfo" type="IVirtualBoxErrorInfo" dir="in" readonly="yes">
<desc>Error information.</desc>
</param>
</method>
<method name="onSerialPortChange">
<desc>
Triggered when settings of a serial port of the
associated virtual machine have changed.
<result name="VBOX_E_INVALID_VM_STATE">
Session state prevents operation.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Session type prevents operation.
</result>
</desc>
<param name="serialPort" type="ISerialPort" dir="in"/>
</method>
<method name="onParallelPortChange">
<desc>
Triggered when settings of a parallel port of the
associated virtual machine have changed.
<result name="VBOX_E_INVALID_VM_STATE">
Session state prevents operation.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Session type prevents operation.
</result>
</desc>
<param name="parallelPort" type="IParallelPort" dir="in"/>
</method>
<method name="onStorageControllerChange">
<desc>
Triggered when settings of a storage controller of the
associated virtual machine have changed.
<result name="VBOX_E_INVALID_VM_STATE">
Session state prevents operation.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Session type prevents operation.
</result>
</desc>
<param name="machineId" type="uuid" mod="string" dir="in">
<desc>The id of the machine containing the storage controller.</desc>
</param>
<param name="controllerName" type="wstring" dir="in">
<desc>The name of the storage controller.</desc>
</param>
</method>
<method name="onMediumChange">
<desc>
Triggered when attached media of the
associated virtual machine have changed.
<result name="VBOX_E_INVALID_VM_STATE">
Session state prevents operation.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Session type prevents operation.
</result>
</desc>
<param name="mediumAttachment" type="IMediumAttachment" dir="in">
<desc>The medium attachment which changed.</desc>
</param>
<param name="force" type="boolean" dir="in">
<desc>If the medium change was forced.</desc>
</param>
</method>
<method name="onStorageDeviceChange">
<desc>
Triggered when attached storage devices of the
associated virtual machine have changed.
<result name="VBOX_E_INVALID_VM_STATE">
Session state prevents operation.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Session type prevents operation.
</result>
</desc>
<param name="mediumAttachment" type="IMediumAttachment" dir="in">
<desc>The medium attachment which changed.</desc>
</param>
<param name="remove" type="boolean" dir="in">
<desc>TRUE if the device is removed, FALSE if it was added.</desc>
</param>
<param name="silent" type="boolean" dir="in">
<desc>TRUE if the device is is silently reconfigured without
notifying the guest about it.</desc>
</param>
</method>
<method name="onVMProcessPriorityChange">
<desc>
Triggered when process priority of the
associated virtual machine have changed.
<result name="VBOX_E_INVALID_VM_STATE">
Session state prevents operation.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Session type prevents operation.
</result>
<result name="VBOX_E_VM_ERROR">
Error from underlying level. See additional error info.
</result>
</desc>
<param name="priority" type="VMProcPriority" dir="in">
<desc>The priority which set.</desc>
</param>
</method>
<method name="onClipboardModeChange">
<desc>
Notification when the shared clipboard mode changes.
</desc>
<param name="clipboardMode" type="ClipboardMode" dir="in">
<desc>The new shared clipboard mode.</desc>
</param>
</method>
<method name="onClipboardFileTransferModeChange">
<desc>
Notification when the shared clipboard file transfers mode changes.
</desc>
<param name="enabled" type="boolean" dir="in">
<desc>Flag whether clipboard file transfers are allowed or not.</desc>
</param>
</method>
<method name="onDnDModeChange">
<desc>
Notification when the drag'n drop mode changes.
</desc>
<param name="dndMode" type="DnDMode" dir="in">
<desc>The new mode for drag'n drop.</desc>
</param>
</method>
<method name="onCPUChange">
<desc>
Notification when a CPU changes.
</desc>
<param name="cpu" type="unsigned long" dir="in">
<desc>The CPU which changed</desc>
</param>
<param name="add" type="boolean" dir="in">
<desc>Flag whether the CPU was added or removed</desc>
</param>
</method>
<method name="onCPUExecutionCapChange">
<desc>
Notification when the CPU execution cap changes.
</desc>
<param name="executionCap" type="unsigned long" dir="in">
<desc>The new CPU execution cap value. (1-100)</desc>
</param>
</method>
<method name="onVRDEServerChange">
<desc>
Triggered when settings of the VRDE server object of the
associated virtual machine have changed.
<result name="VBOX_E_INVALID_VM_STATE">
Session state prevents operation.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Session type prevents operation.
</result>
</desc>
<param name="restart" type="boolean" dir="in">
<desc>Flag whether the server must be restarted</desc>
</param>
</method>
<method name="onRecordingChange">
<desc>
Triggered when recording settings have changed.
</desc>
<param name="enable" type="boolean" dir="in">
<desc>TODO</desc>
</param>
</method>
<method name="onUSBControllerChange">
<desc>
Triggered when settings of the USB controller object of the
associated virtual machine have changed.
<result name="VBOX_E_INVALID_VM_STATE">
Session state prevents operation.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Session type prevents operation.
</result>
</desc>
</method>
<method name="onSharedFolderChange">
<desc>
Triggered when a permanent (global or machine) shared folder has been
created or removed.
<note>
We don't pass shared folder parameters in this notification because
the order in which parallel notifications are delivered is not defined,
therefore it could happen that these parameters were outdated by the
time of processing this notification.
</note>
<result name="VBOX_E_INVALID_VM_STATE">
Session state prevents operation.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Session type prevents operation.
</result>
</desc>
<param name="global" type="boolean" dir="in"/>
</method>
<method name="onGuestDebugControlChange">
<desc>
Triggered when settings of the guest debug settings of the
associated virtual machine have changed.
<result name="VBOX_E_INVALID_VM_STATE">
Session state prevents operation.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Session type prevents operation.
</result>
</desc>
<param name="guestDebugControl" type="IGuestDebugControl" dir="in"/>
</method>
<method name="onUSBDeviceAttach">
<desc>
Triggered when a request to capture a USB device (as a result
of matched USB filters or direct call to
<link to="IConsole::attachUSBDevice"/>) has completed.
A @c null @a error object means success, otherwise it
describes a failure.
<result name="VBOX_E_INVALID_VM_STATE">
Session state prevents operation.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Session type prevents operation.
</result>
</desc>
<param name="device" type="IUSBDevice" dir="in"/>
<param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
<param name="maskedInterfaces" type="unsigned long" dir="in"/>
<param name="captureFilename" type="wstring" dir="in"/>
</method>
<method name="onUSBDeviceDetach">
<desc>
Triggered when a request to release the USB device (as a result
of machine termination or direct call to
<link to="IConsole::detachUSBDevice"/>) has completed.
A @c null @a error object means success, otherwise it
describes a failure.
<result name="VBOX_E_INVALID_VM_STATE">
Session state prevents operation.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Session type prevents operation.
</result>
</desc>
<param name="id" type="uuid" mod="string" dir="in"/>
<param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
</method>
<method name="onShowWindow">
<desc>
Called by <link to="IMachine::canShowConsoleWindow"/> and by
<link to="IMachine::showConsoleWindow"/> in order to notify
console listeners
<link to="ICanShowWindowEvent"/>
and <link to="IShowWindowEvent"/>.
<result name="VBOX_E_INVALID_OBJECT_STATE">
Session type prevents operation.
</result>
</desc>
<param name="check" type="boolean" dir="in"/>
<param name="canShow" type="boolean" dir="out"/>
<param name="winId" type="long long" dir="out"/>
</method>
<method name="onBandwidthGroupChange">
<desc>
Notification when one of the bandwidth groups change.
</desc>
<param name="bandwidthGroup" type="IBandwidthGroup" dir="in">
<desc>The bandwidth group which changed.</desc>
</param>
</method>
<method name="accessGuestProperty">
<desc>
Called by <link to="IMachine::getGuestProperty"/> and by
<link to="IMachine::setGuestProperty"/> in order to read and
modify guest properties.
<result name="VBOX_E_INVALID_VM_STATE">
Machine session is not open.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Session type is not direct.
</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of guest property.</desc>
</param>
<param name="value" type="wstring" dir="in">
<desc>Value of guest property.</desc>
</param>
<param name="flags" type="wstring" dir="in">
<desc>Flags of guest property.</desc>
</param>
<param name="accessMode" type="unsigned long" dir="in">
<desc>0 = get, 1 = set, 2 = delete.</desc>
</param>
<param name="retValue" type="wstring" dir="out">
<desc>When getting: Value of guest property.</desc>
</param>
<param name="retTimestamp" type="long long" dir="out">
<desc>When getting: Timestamp of guest property.</desc>
</param>
<param name="retFlags" type="wstring" dir="out">
<desc>When getting: Flags of guest property.</desc>
</param>
</method>
<method name="enumerateGuestProperties" const="yes">
<desc>
Return a list of the guest properties matching a set of patterns along
with their values, timestamps and flags.
<result name="VBOX_E_INVALID_VM_STATE">
Machine session is not open.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Session type is not direct.
</result>
</desc>
<param name="patterns" type="wstring" dir="in">
<desc>
The patterns to match the properties against as a comma-separated
string. If this is empty, all properties currently set will be
returned.
</desc>
</param>
<param name="keys" type="wstring" dir="out" safearray="yes">
<desc>
The key names of the properties returned.
</desc>
</param>
<param name="values" type="wstring" dir="out" safearray="yes">
<desc>
The values of the properties returned. The array entries match the
corresponding entries in the @a key array.
</desc>
</param>
<param name="timestamps" type="long long" dir="out" safearray="yes">
<desc>
The timestamps of the properties returned. The array entries match
the corresponding entries in the @a key array.
</desc>
</param>
<param name="flags" type="wstring" dir="out" safearray="yes">
<desc>
The flags of the properties returned. The array entries match the
corresponding entries in the @a key array.
</desc>
</param>
</method>
<method name="onlineMergeMedium">
<desc>
Triggers online merging of a hard disk. Used internally when deleting
a snapshot while a VM referring to the same hard disk chain is running.
<result name="VBOX_E_INVALID_VM_STATE">
Machine session is not open.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Session type is not direct.
</result>
</desc>
<param name="mediumAttachment" type="IMediumAttachment" dir="in">
<desc>The medium attachment to identify the medium chain.</desc>
</param>
<param name="sourceIdx" type="unsigned long" dir="in">
<desc>The index of the source image in the chain.
Redundant, but drastically reduces IPC.</desc>
</param>
<param name="targetIdx" type="unsigned long" dir="in">
<desc>The index of the target image in the chain.
Redundant, but drastically reduces IPC.</desc>
</param>
<param name="progress" type="IProgress" dir="in">
<desc>
Progress object for this operation.
</desc>
</param>
</method>
<method name="reconfigureMediumAttachments">
<desc>
Reconfigure all specified medium attachments in one go, making sure
the current state corresponds to the specified medium.
<result name="VBOX_E_INVALID_VM_STATE">
Machine session is not open.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Session type is not direct.
</result>
</desc>
<param name="attachments" type="IMediumAttachment" dir="in" safearray="yes">
<desc>Array containing the medium attachments which need to be
reconfigured.</desc>
</param>
</method>
<method name="enableVMMStatistics">
<desc>
Enables or disables collection of VMM RAM statistics.
<result name="VBOX_E_INVALID_VM_STATE">
Machine session is not open.
</result>
<result name="VBOX_E_INVALID_OBJECT_STATE">
Session type is not direct.
</result>
</desc>
<param name="enable" type="boolean" dir="in">
<desc>True enables statistics collection.</desc>
</param>
</method>
<method name="pauseWithReason">
<desc>
Internal method for triggering a VM pause with a specified reason code.
The reason code can be interpreted by device/drivers and thus it might
behave slightly differently than a normal VM pause.
<result name="VBOX_E_INVALID_VM_STATE">
Virtual machine not in Running state.
</result>
<result name="VBOX_E_VM_ERROR">
Virtual machine error in suspend operation.
</result>
<see><link to="IConsole::pause"/></see>
</desc>
<param name="reason" type="Reason" dir="in">
<desc>Specify the best matching reason code please.</desc>
</param>
</method>
<method name="resumeWithReason">
<desc>
Internal method for triggering a VM resume with a specified reason code.
The reason code can be interpreted by device/drivers and thus it might
behave slightly differently than a normal VM resume.
<result name="VBOX_E_INVALID_VM_STATE">
Virtual machine not in Paused state.
</result>
<result name="VBOX_E_VM_ERROR">
Virtual machine error in resume operation.
</result>
<see><link to="IConsole::resume"/></see>
</desc>
<param name="reason" type="Reason" dir="in">
<desc>Specify the best matching reason code please.</desc>
</param>
</method>
<method name="saveStateWithReason">
<desc>
Internal method for triggering a VM save state with a specified reason
code. The reason code can be interpreted by device/drivers and thus it
might behave slightly differently than a normal VM save state.
This call is fully synchronous, and the caller is expected to have set
the machine state appropriately (and has to set the follow-up machine
state if this call failed).
<result name="VBOX_E_INVALID_VM_STATE">
Virtual machine state is not one of the expected values.
</result>
<result name="VBOX_E_FILE_ERROR">
Failed to create directory for saved state file.
</result>
<see><link to="IMachine::saveState"/></see>
</desc>
<param name="reason" type="Reason" dir="in">
<desc>Specify the best matching reason code please.</desc>
</param>
<param name="progress" type="IProgress" dir="in">
<desc>Progress object to track the operation completion.</desc>
</param>
<param name="snapshot" type="ISnapshot" dir="in">
<desc>Snapshot object for which this save state operation is executed.</desc>
</param>
<param name="stateFilePath" type="wstring" dir="in">
<desc>File path the VM process must save the execution state to.</desc>
</param>
<param name="pauseVM" type="boolean" dir="in">
<desc>The VM should be paused before saving state. It is automatically
unpaused on error in the "vanilla save state" case.</desc>
</param>
<param name="leftPaused" type="boolean" dir="return">
<desc>Returns if the VM was left in paused state, which is necessary
in many situations (snapshots, teleportation).</desc>
</param>
</method>
<method name="cancelSaveStateWithReason">
<desc>
Internal method for cancelling a VM save state.
<see><link to="IInternalSessionControl::saveStateWithReason"/></see>
</desc>
</method>
</interface>
<interface
name="ISession" extends="$unknown"
uuid="c0447716-ff5a-4795-b57a-ecd5fffa18a4"
wsmap="managed"
rest="managed"
wrap-hint-server-addinterfaces="IInternalSessionControl"
reservedMethods="4" reservedAttributes="8"
>
<desc>
The ISession interface represents a client process and allows for locking
virtual machines (represented by IMachine objects) to prevent conflicting
changes to the machine.
Any caller wishing to manipulate a virtual machine needs to create a session
object first, which lives in its own process space. Such session objects are
then associated with <link to="IMachine" /> objects living in the VirtualBox
server process to coordinate such changes.
There are two typical scenarios in which sessions are used:
<ul>
<li>To alter machine settings or control a running virtual machine, one
needs to lock a machine for a given session (client process) by calling
<link to="IMachine::lockMachine"/>.
Whereas multiple sessions may control a running virtual machine, only
one process can obtain a write lock on the machine to prevent conflicting
changes. A write lock is also needed if a process wants to actually run a
virtual machine in its own context, such as the VirtualBox GUI or
VBoxHeadless front-ends. They must also lock a machine for their own
sessions before they are allowed to power up the virtual machine.
As a result, no machine settings can be altered while another process is
already using it, either because that process is modifying machine settings
or because the machine is running.
</li>
<li>To start a VM using one of the existing VirtualBox front-ends (e.g. the
VirtualBox GUI or VBoxHeadless), one would use
<link to="IMachine::launchVMProcess"/>, which also takes a session object
as its first parameter. This session then identifies the caller and lets the
caller control the started machine (for example, pause machine execution or
power it down) as well as be notified about machine execution state changes.
</li>
</ul>
How sessions objects are created in a client process depends on whether you use
the Main API via COM or via the webservice:
<ul>
<li>When using the COM API directly, an object of the Session class from the
VirtualBox type library needs to be created. In regular COM C++ client code,
this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
This object will then act as a local session object in further calls to open
a session.
</li>
<li>In the webservice, the session manager (IWebsessionManager) instead creates
a session object automatically whenever <link to="IWebsessionManager::logon" />
is called. A managed object reference to that session object can be retrieved by
calling <link to="IWebsessionManager::getSessionObject" />.
</li>
</ul>
</desc>
<attribute name="state" type="SessionState" readonly="yes">
<desc>Current state of this session.</desc>
</attribute>
<attribute name="type" type="SessionType" readonly="yes">
<desc>
Type of this session. The value of this attribute is valid only
if the session currently has a machine locked (i.e. its
<link to="#state" /> is Locked), otherwise an error will be returned.
</desc>
</attribute>
<attribute name="name" type="wstring">
<desc>
Name of this session. Important only for VM sessions, otherwise it
it will be remembered, but not used for anything significant (and can
be left at the empty string which is the default). The value can only
be changed when the session state is SessionState_Unlocked. Make sure
that you use a descriptive name which does not conflict with the VM
process session names: "GUI/Qt", "GUI/SDL" and "headless".
</desc>
</attribute>
<attribute name="machine" type="IMachine" readonly="yes" rest="uuid">
<desc>Machine object associated with this session.</desc>
</attribute>
<attribute name="console" type="IConsole" readonly="yes">
<desc>Console object associated with this session. Only sessions
which locked the machine for a VM process have a non-null console.</desc>
</attribute>
<method name="unlockMachine">
<desc>
Unlocks a machine that was previously locked for the current session.
Calling this method is required every time a machine has been locked
for a particular session using the <link to="IMachine::launchVMProcess" />
or <link to="IMachine::lockMachine" /> calls. Otherwise the state of
the machine will be set to <link to="MachineState_Aborted" /> on the
server, and changes made to the machine settings will be lost.
Generally, it is recommended to unlock all machines explicitly
before terminating the application (regardless of the reason for
the termination).
<note>
Do not expect the session state (<link to="ISession::state" />
to return to "Unlocked" immediately after you invoke this method,
particularly if you have started a new VM process. The session
state will automatically return to "Unlocked" once the VM is no
longer executing, which can of course take a very long time.
</note>
<result name="E_UNEXPECTED">
Session is not locked.
</result>
</desc>
</method>
</interface>
<!--
// IStorageController
/////////////////////////////////////////////////////////////////////////
-->
<enum
name="StorageBus"
uuid="f9510869-7d07-46ba-96a6-6728fbf4adee"
>
<desc>
The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy);
see <link to="IStorageController::bus" />.
</desc>
<const name="Null" value="0">
<desc>@c null value. Never used by the API.</desc>
</const>
<const name="IDE" value="1"/>
<const name="SATA" value="2"/>
<const name="SCSI" value="3"/>
<const name="Floppy" value="4"/>
<const name="SAS" value="5"/>
<const name="USB" value="6"/>
<const name="PCIe" value="7"/>
<const name="VirtioSCSI" value="8"/>
</enum>
<enum
name="StorageControllerType"
uuid="a77d457d-66a3-4368-b24c-293d0f562a9f"
>
<desc>
The exact variant of storage controller hardware presented
to the guest; see <link to="IStorageController::controllerType" />.
</desc>
<const name="Null" value="0">
<desc>@c null value. Never used by the API.</desc>
</const>
<const name="LsiLogic" value="1">
<desc>A SCSI controller of the LsiLogic variant.</desc>
</const>
<const name="BusLogic" value="2">
<desc>A SCSI controller of the BusLogic variant.</desc>
</const>
<const name="IntelAhci" value="3">
<desc>An Intel AHCI SATA controller; this is the only variant for SATA.</desc>
</const>
<const name="PIIX3" value="4">
<desc>An IDE controller of the PIIX3 variant.</desc>
</const>
<const name="PIIX4" value="5">
<desc>An IDE controller of the PIIX4 variant.</desc>
</const>
<const name="ICH6" value="6">
<desc>An IDE controller of the ICH6 variant.</desc>
</const>
<const name="I82078" value="7">
<desc>A floppy disk controller; this is the only variant for floppy drives.</desc>
</const>
<const name="LsiLogicSas" value="8">
<desc>A variant of the LsiLogic controller using SAS.</desc>
</const>
<const name="USB" value="9">
<desc>Special USB based storage controller.</desc>
</const>
<const name="NVMe" value="10">
<desc>An NVMe storage controller.</desc>
</const>
<const name="VirtioSCSI" value="11">
<desc>Virtio SCSI storage controller.</desc>
</const>
</enum>
<enum
name="ChipsetType"
uuid="8b4096a8-a7c3-4d3b-bbb1-05a0a51ec394"
>
<desc>
Type of emulated chipset (mostly southbridge).
</desc>
<const name="Null" value="0">
<desc>@c null value. Never used by the API.</desc>
</const>
<const name="PIIX3" value="1">
<desc>A PIIX3 (PCI IDE ISA Xcelerator) chipset.</desc>
</const>
<const name="ICH9" value="2">
<desc>A ICH9 (I/O Controller Hub) chipset.</desc>
</const>
</enum>
<interface
name="IStorageController" extends="$unknown"
uuid="ddca7247-bf98-47fb-ab2f-b5177533f493"
wsmap="managed"
reservedMethods="4" reservedAttributes="8"
rest="managed"
>
<desc>
Represents a storage controller that is attached to a virtual machine
(<link to="IMachine" />). Just as drives (hard disks, DVDs, FDs) are
attached to storage controllers in a real computer, virtual drives
(represented by <link to="IMediumAttachment" />) are attached to virtual
storage controllers, represented by this interface.
As opposed to physical hardware, VirtualBox has a very generic concept
of a storage controller, and for purposes of the Main API, all virtual
storage is attached to virtual machines via instances of this interface.
There are five types of such virtual storage controllers: IDE, SCSI, SATA,
SAS and Floppy (see <link to="#bus" />). Depending on which of these four
is used, certain sub-types may be available and can be selected in
<link to="#controllerType" />.
Depending on these settings, the guest operating system might see
significantly different virtual hardware.
</desc>
<attribute name="name" type="wstring">
<desc>
Name of the storage controller, as originally specified with
<link to="IMachine::addStorageController" />. This then uniquely
identifies this controller with other method calls such as
<link to="IMachine::attachDevice" /> and <link to="IMachine::mountMedium" />.
</desc>
</attribute>
<attribute name="maxDevicesPerPortCount" type="unsigned long" readonly="yes">
<desc>
Maximum number of devices which can be attached to one port.
</desc>
</attribute>
<attribute name="minPortCount" type="unsigned long" readonly="yes">
<desc>
Minimum number of ports that <link to="IStorageController::portCount"/> can be set to.
</desc>
</attribute>
<attribute name="maxPortCount" type="unsigned long" readonly="yes">
<desc>
Maximum number of ports that <link to="IStorageController::portCount"/> can be set to.
</desc>
</attribute>
<attribute name="instance" type="unsigned long">
<desc>
The instance number of the device in the running VM.
</desc>
</attribute>
<attribute name="portCount" type="unsigned long">
<desc>
The number of currently usable ports on the controller.
The minimum and maximum number of ports for one controller are
stored in <link to="IStorageController::minPortCount"/>
and <link to="IStorageController::maxPortCount"/>.
</desc>
</attribute>
<attribute name="bus" type="StorageBus" readonly="yes">
<desc>
The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy).
</desc>
</attribute>
<attribute name="controllerType" type="StorageControllerType">
<desc>
The exact variant of storage controller hardware presented
to the guest.
Depending on this value, VirtualBox will provide a different
virtual storage controller hardware to the guest.
For SATA, SAS and floppy controllers, only one variant is
available, but for IDE and SCSI, there are several.
For SCSI controllers, the default type is LsiLogic.
</desc>
</attribute>
<attribute name="useHostIOCache" type="boolean">
<desc>
If true, the storage controller emulation will use a dedicated I/O thread, enable the host I/O
caches and use synchronous file APIs on the host. This was the only option in the API before
VirtualBox 3.2 and is still the default for IDE controllers.
If false, the host I/O cache will be disabled for image files attached to this storage controller.
Instead, the storage controller emulation will use asynchronous I/O APIs on the host. This makes
it possible to turn off the host I/O caches because the emulation can handle unaligned access to
the file. This should be used on OS X and Linux hosts if a high I/O load is expected or many
virtual machines are running at the same time to prevent I/O cache related hangs.
This option new with the API of VirtualBox 3.2 and is now the default for non-IDE storage controllers.
</desc>
</attribute>
<attribute name="bootable" type="boolean" readonly="yes">
<desc>
Returns whether it is possible to boot from disks attached to this controller.
</desc>
</attribute>
</interface>
<if target="wsdl">
<!--
// IManagedObjectRef
/////////////////////////////////////////////////////////////////////////
-->
<interface
name="IManagedObjectRef" extends="$unknown"
uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
internal="yes"
wsmap="managed"
wscpp="hardcoded"
>
<desc>
Managed object reference.
Only within the webservice, a managed object reference (which is really
an opaque number) allows a webservice client to address an object
that lives in the address space of the webservice server.
Behind each managed object reference, there is a COM object that lives
in the webservice server's address space. The COM object is not freed
until the managed object reference is released, either by an explicit
call to <link to="IManagedObjectRef::release" /> or by logging off from
the webservice (<link to="IWebsessionManager::logoff" />), which releases
all objects created during the webservice session.
Whenever a method call of the VirtualBox API returns a COM object, the
webservice representation of that method will instead return a
managed object reference, which can then be used to invoke methods
on that object.
</desc>
<method name="getInterfaceName">
<desc>
Returns the name of the interface that this managed object represents,
for example, "IMachine", as a string.
</desc>
<param name="return" type="wstring" dir="return"/>
</method>
<method name="release">
<desc>
Releases this managed object reference and frees the resources that
were allocated for it in the webservice server process. After calling
this method, the identifier of the reference can no longer be used.
</desc>
</method>
</interface>
<!--
// IWebsessionManager
/////////////////////////////////////////////////////////////////////////
-->
<interface
name="IWebsessionManager" extends="$unknown"
uuid="930c8fea-453a-4a65-aca9-19ed9a872f88"
internal="yes"
wsmap="global"
wscpp="hardcoded"
>
<desc>
Websession manager. This provides essential services
to webservice clients.
</desc>
<method name="logon">
<desc>
Logs a new client onto the webservice and returns a managed object reference to
the IVirtualBox instance, which the client can then use as a basis to further
queries, since all calls to the VirtualBox API are based on the IVirtualBox
interface, in one way or the other.
</desc>
<param name="username" type="wstring" dir="in"/>
<param name="password" type="wstring" dir="in"/>
<param name="return" type="IVirtualBox" dir="return"/>
</method>
<method name="getSessionObject">
<desc>
Returns a managed object reference to a new ISession object for every
call to this method.
<see><link to="ISession"/></see>
</desc>
<param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
<param name="return" type="ISession" dir="return"/>
</method>
<method name="logoff">
<desc>
Logs off the client who has previously logged on with <link to="IWebsessionManager::logon" />
and destroys all resources associated with the websession (most
importantly, all managed objects created in the server while the
websession was active).
</desc>
<param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
</method>
</interface>
</if>
<!--
// IPerformanceCollector & friends
/////////////////////////////////////////////////////////////////////////
-->
<interface
name="IPerformanceMetric" extends="$unknown"
uuid="81314d14-fd1c-411a-95c5-e9bb1414e632" wsmap="managed"
rest="managed"
reservedAttributes="8"
>
<desc>
The IPerformanceMetric interface represents parameters of the given
performance metric.
</desc>
<attribute name="metricName" type="wstring" readonly="yes">
<desc>
Name of the metric.
</desc>
</attribute>
<attribute name="object" type="$unknown" readonly="yes">
<desc>
Object this metric belongs to.
</desc>
</attribute>
<attribute name="description" type="wstring" readonly="yes">
<desc>
Textual description of the metric.
</desc>
</attribute>
<attribute name="period" type="unsigned long" readonly="yes">
<desc>
Time interval between samples, measured in seconds.
</desc>
</attribute>
<attribute name="count" type="unsigned long" readonly="yes">
<desc>
Number of recent samples retained by the performance collector for this
metric.
When the collected sample count exceeds this number, older samples
are discarded.
</desc>
</attribute>
<attribute name="unit" type="wstring" readonly="yes">
<desc>
Unit of measurement.
</desc>
</attribute>
<attribute name="minimumValue" type="long" readonly="yes">
<desc>
Minimum possible value of this metric.
</desc>
</attribute>
<attribute name="maximumValue" type="long" readonly="yes">
<desc>
Maximum possible value of this metric.
</desc>
</attribute>
</interface>
<interface
name="IPerformanceCollector" extends="$unknown"
uuid="b14290ad-cd54-400c-b858-797bcb82570e"
wsmap="managed"
reservedMethods="4" reservedAttributes="8"
>
<desc>
The IPerformanceCollector interface represents a service that collects
and stores performance metrics data.
Performance metrics are associated with objects of interfaces like IHost
and IMachine. Each object has a distinct set of performance metrics. The
set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
Metric data is collected at the specified intervals and is retained
internally. The interval and the number of retained samples can be set
with <link to="IPerformanceCollector::setupMetrics" />. Both metric data
and collection settings are not persistent, they are discarded as soon as
VBoxSVC process terminates. Moreover, metric settings and data associated
with a particular VM only exist while VM is running. They disappear as
soon as VM shuts down. It is not possible to set up metrics for machines
that are powered off. One needs to start VM first, then set up metric
collection parameters.
Metrics are organized hierarchically, with each level separated by a
slash (/) character. Generally, the scheme for metric names is like this:
<tt>Category/Metric[/SubMetric][:aggregation]</tt>
"Category/Metric" together form the base metric name. A base metric is
the smallest unit for which a sampling interval and the number of
retained samples can be set. Only base metrics can be enabled and
disabled. All sub-metrics are collected when their base metric is
collected. Collected values for any set of sub-metrics can be queried
with <link to="IPerformanceCollector::queryMetricsData" />.
For example "CPU/Load/User:avg" metric name stands for the "CPU"
category, "Load" metric, "User" submetric, "average" aggregate. An
aggregate function is computed over all retained data. Valid aggregate
functions are:
<ul>
<li>avg -- average</li>
<li>min -- minimum</li>
<li>max -- maximum</li>
</ul>
When setting up metric parameters, querying metric data, enabling or
disabling metrics wildcards can be used in metric names to specify a
subset of metrics. For example, to select all CPU-related metrics
use <tt>CPU/*</tt>, all averages can be queried using <tt>*:avg</tt> and
so on. To query metric values without aggregates <tt>*:</tt> can be used.
The valid names for base metrics are:
<ul>
<li>CPU/Load</li>
<li>CPU/MHz</li>
<li>RAM/Usage</li>
<li>RAM/VMM</li>
</ul>
The general sequence for collecting and retrieving the metrics is:
<ul>
<li>
Obtain an instance of IPerformanceCollector with
<link to="IVirtualBox::performanceCollector" />
</li>
<li>
Allocate and populate an array with references to objects the metrics
will be collected for. Use references to IHost and IMachine objects.
</li>
<li>
Allocate and populate an array with base metric names the data will
be collected for.
</li>
<li>
Call <link to="IPerformanceCollector::setupMetrics" />. From now on
the metric data will be collected and stored.
</li>
<li>
Wait for the data to get collected.
</li>
<li>
Allocate and populate an array with references to objects the metric
values will be queried for. You can re-use the object array used for
setting base metrics.
</li>
<li>
Allocate and populate an array with metric names the data will be
collected for. Note that metric names differ from base metric names.
</li>
<li>
Call <link to="IPerformanceCollector::queryMetricsData" />. The data
that have been collected so far are returned. Note that the values
are still retained internally and data collection continues.
</li>
</ul>
For an example of usage refer to the following files in VirtualBox SDK:
<ul>
<li>
Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
</li>
<li>
Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
</li>
</ul>
</desc>
<attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
<desc>
Array of unique names of metrics.
This array represents all metrics supported by the performance
collector. Individual objects do not necessarily support all of them.
<link to="IPerformanceCollector::getMetrics"/> can be used to get the
list of supported metrics for a particular object.
</desc>
</attribute>
<method name="getMetrics">
<desc>
Returns parameters of specified metrics for a set of objects.
<note>
@c Null metrics array means all metrics. @c Null object array means
all existing objects.
</note>
</desc>
<param name="metricNames" type="wstring" dir="in" safearray="yes">
<desc>
Metric name filter. Currently, only a comma-separated list of metrics
is supported.
</desc>
</param>
<param name="objects" type="$unknown" dir="in" safearray="yes">
<desc>
Set of objects to return metric parameters for.
</desc>
</param>
<param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
<desc>
Array of returned metric parameters.
</desc>
</param>
</method>
<method name="setupMetrics">
<desc>
Sets parameters of specified base metrics for a set of objects. Returns
an array of <link to="IPerformanceMetric" /> describing the metrics
have been affected.
<note>
@c Null or empty metric name array means all metrics. @c Null or
empty object array means all existing objects. If metric name array
contains a single element and object array contains many, the single
metric name array element is applied to each object array element to
form metric/object pairs.
</note>
</desc>
<param name="metricNames" type="wstring" dir="in" safearray="yes">
<desc>
Metric name filter. Comma-separated list of metrics with wildcard
support.
</desc>
</param>
<param name="objects" type="$unknown" dir="in" safearray="yes">
<desc>
Set of objects to setup metric parameters for.
</desc>
</param>
<param name="period" type="unsigned long" dir="in">
<desc>
Time interval in seconds between two consecutive samples of
performance data.
</desc>
</param>
<param name="count" type="unsigned long" dir="in">
<desc>
Number of samples to retain in performance data history. Older
samples get discarded.
</desc>
</param>
<param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
<desc>
Array of metrics that have been modified by the call to this method.
</desc>
</param>
</method>
<method name="enableMetrics">
<desc>
Turns on collecting specified base metrics. Returns an array of
<link to="IPerformanceMetric" /> describing the metrics have been
affected.
<note>
@c Null or empty metric name array means all metrics. @c Null or
empty object array means all existing objects. If metric name array
contains a single element and object array contains many, the single
metric name array element is applied to each object array element to
form metric/object pairs.
</note>
</desc>
<param name="metricNames" type="wstring" dir="in" safearray="yes">
<desc>
Metric name filter. Comma-separated list of metrics with wildcard
support.
</desc>
</param>
<param name="objects" type="$unknown" dir="in" safearray="yes">
<desc>
Set of objects to enable metrics for.
</desc>
</param>
<param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
<desc>
Array of metrics that have been modified by the call to this method.
</desc>
</param>
</method>
<method name="disableMetrics">
<desc>
Turns off collecting specified base metrics. Returns an array of
<link to="IPerformanceMetric" /> describing the metrics have been
affected.
<note>
@c Null or empty metric name array means all metrics. @c Null or
empty object array means all existing objects. If metric name array
contains a single element and object array contains many, the single
metric name array element is applied to each object array element to
form metric/object pairs.
</note>
</desc>
<param name="metricNames" type="wstring" dir="in" safearray="yes">
<desc>
Metric name filter. Comma-separated list of metrics with wildcard
support.
</desc>
</param>
<param name="objects" type="$unknown" dir="in" safearray="yes">
<desc>
Set of objects to disable metrics for.
</desc>
</param>
<param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
<desc>
Array of metrics that have been modified by the call to this method.
</desc>
</param>
</method>
<method name="queryMetricsData">
<desc>
Queries collected metrics data for a set of objects.
The data itself and related metric information are returned in seven
parallel and one flattened array of arrays. Elements of
<tt>returnMetricNames, returnObjects, returnUnits, returnScales,
returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
the same index describe one set of values corresponding to a single
metric.
The <tt>returnData</tt> parameter is a flattened array of arrays. Each
start and length of a sub-array is indicated by
<tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
value for metric <tt>metricNames[i]</tt> is at
<tt>returnData[returnIndices[i]]</tt>.
<note>
@c Null or empty metric name array means all metrics. @c Null or
empty object array means all existing objects. If metric name array
contains a single element and object array contains many, the single
metric name array element is applied to each object array element to
form metric/object pairs.
</note>
<note>
Data collection continues behind the scenes after call to
@c queryMetricsData. The return data can be seen as the snapshot of
the current state at the time of @c queryMetricsData call. The
internally kept metric values are not cleared by the call. This
allows querying different subsets of metrics or aggregates with
subsequent calls. If periodic querying is needed it is highly
suggested to query the values with @c interval*count period to avoid
confusion. This way a completely new set of data values will be
provided by each query.
</note>
</desc>
<param name="metricNames" type="wstring" dir="in" safearray="yes">
<desc>
Metric name filter. Comma-separated list of metrics with wildcard
support.
</desc>
</param>
<param name="objects" type="$unknown" dir="in" safearray="yes">
<desc>
Set of objects to query metrics for.
</desc>
</param>
<param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
<desc>
Names of metrics returned in @c returnData.
</desc>
</param>
<param name="returnObjects" type="$unknown" dir="out" safearray="yes">
<desc>
Objects associated with metrics returned in @c returnData.
</desc>
</param>
<param name="returnUnits" type="wstring" dir="out" safearray="yes">
<desc>
Units of measurement for each returned metric.
</desc>
</param>
<param name="returnScales" type="unsigned long" dir="out" safearray="yes">
<desc>
Divisor that should be applied to return values in order to get
floating point values. For example:
<tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
will retrieve the floating point value of i-th sample of the first
metric.
</desc>
</param>
<param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
<desc>
Sequence numbers of the first elements of value sequences of
particular metrics returned in @c returnData. For aggregate metrics
it is the sequence number of the sample the aggregate started
calculation from.
</desc>
</param>
<param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
<desc>
Indices of the first elements of value sequences of particular
metrics returned in @c returnData.
</desc>
</param>
<param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
<desc>
Lengths of value sequences of particular metrics.
</desc>
</param>
<param name="returnData" type="long" dir="return" safearray="yes">
<desc>
Flattened array of all metric data containing sequences of values for
each metric.
</desc>
</param>
</method>
</interface>
<enum
name="NATAliasMode"
uuid="67772168-50d9-11df-9669-7fb714ee4fa1"
>
<desc></desc>
<const name="AliasLog" value="0x1">
<desc></desc>
</const>
<const name="AliasProxyOnly" value="0x02">
<desc></desc>
</const>
<const name="AliasUseSamePorts" value="0x04">
<desc></desc>
</const>
</enum>
<enum
name="NATProtocol"
uuid="e90164be-eb03-11de-94af-fff9b1c1b19f"
>
<desc>Protocol definitions used with NAT port-forwarding rules.</desc>
<const name="UDP" value="0">
<desc>Port-forwarding uses UDP protocol.</desc>
</const>
<const name="TCP" value="1">
<desc>Port-forwarding uses TCP protocol.</desc>
</const>
</enum>
<interface
name="INATEngine" extends="$unknown"
uuid="a06253a7-dcd2-44e3-8689-9c9c4b6b6234"
wsmap="managed"
rest="managed"
reservedMethods="4" reservedAttributes="8"
>
<desc>Interface for managing a NAT engine which is used with a virtual machine. This
allows for changing NAT behavior such as port-forwarding rules. This interface is
used in the <link to="INetworkAdapter::NATEngine" /> attribute.</desc>
<attribute name="network" type="wstring">
<desc>The network attribute of the NAT engine (the same value is used with built-in
DHCP server to fill corresponding fields of DHCP leases).</desc>
</attribute>
<attribute name="hostIP" type="wstring">
<desc>IP of host interface to bind all opened sockets to.
<note>Changing this does not change binding of port forwarding.</note>
</desc>
</attribute>
<attribute name="TFTPPrefix" type="wstring">
<desc>TFTP prefix attribute which is used with the built-in DHCP server to fill
the corresponding fields of DHCP leases.</desc>
</attribute>
<attribute name="TFTPBootFile" type="wstring">
<desc>TFTP boot file attribute which is used with the built-in DHCP server to fill
the corresponding fields of DHCP leases.</desc>
</attribute>
<attribute name="TFTPNextServer" type="wstring">
<desc>TFTP server attribute which is used with the built-in DHCP server to fill
the corresponding fields of DHCP leases.
<note>The preferred form is IPv4 addresses.</note>
</desc>
</attribute>
<attribute name="aliasMode" type="unsigned long">
<desc></desc>
</attribute>
<attribute name="DNSPassDomain" type="boolean">
<desc>Whether the DHCP server should pass the DNS domain used by the host.</desc>
</attribute>
<attribute name="DNSProxy" type="boolean">
<desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
of the DNS proxy and process traffic using DNS servers registered on the host.</desc>
</attribute>
<attribute name="DNSUseHostResolver" type="boolean">
<desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
of the DNS proxy and process traffic using the host resolver mechanism.</desc>
</attribute>
<attribute name="redirects" type="wstring" readonly="yes" safearray="yes">
<desc>Array of NAT port-forwarding rules in string representation, in the following
format: "name,protocol id,host ip,host port,guest ip,guest port".</desc>
</attribute>
<attribute name="localhostReachable" type="boolean">
<desc>Whether traffic from the guest directed to 10.0.2.2 will reach the
host's loopback interface, i.e. localhost or 127.0.0.1.</desc>
</attribute>
<method name="setNetworkSettings">
<desc>Sets network configuration of the NAT engine.</desc>
<param name="mtu" type="unsigned long" dir="in">
<desc>MTU (maximum transmission unit) of the NAT engine in bytes.</desc>
</param>
<param name="sockSnd" type="unsigned long" dir="in">
<desc>Capacity of the socket send buffer in bytes when creating a new socket.</desc>
</param>
<param name="sockRcv" type="unsigned long" dir="in">
<desc>Capacity of the socket receive buffer in bytes when creating a new socket.</desc>
</param>
<param name="TcpWndSnd" type="unsigned long" dir="in">
<desc>Initial size of the NAT engine's sending TCP window in bytes when
establishing a new TCP connection.</desc>
</param>
<param name="TcpWndRcv" type="unsigned long" dir="in">
<desc>Initial size of the NAT engine's receiving TCP window in bytes when
establishing a new TCP connection.</desc>
</param>
</method>
<method name="getNetworkSettings">
<desc>Returns network configuration of NAT engine. See <link to="#setNetworkSettings" />
for parameter descriptions.</desc>
<param name="mtu" type="unsigned long" dir="out" />
<param name="sockSnd" type="unsigned long" dir="out" />
<param name="sockRcv" type="unsigned long" dir="out" />
<param name="TcpWndSnd" type="unsigned long" dir="out" />
<param name="TcpWndRcv" type="unsigned long" dir="out" />
</method>
<method name="addRedirect">
<desc>Adds a new NAT port-forwarding rule.</desc>
<param name="name" type="wstring" dir="in">
<desc>The name of the rule. An empty name is acceptable, in which case the NAT engine
auto-generates one using the other parameters.</desc>
</param>
<param name="proto" type="NATProtocol" dir="in">
<desc>Protocol handled with the rule.</desc>
</param>
<param name="hostIP" type="wstring" dir="in">
<desc>IP of the host interface to which the rule should apply. An empty ip address is
acceptable, in which case the NAT engine binds the handling socket to any interface.</desc>
</param>
<param name="hostPort" type="unsigned short" dir="in">
<desc>The port number to listen on.</desc>
</param>
<param name="guestIP" type="wstring" dir="in">
<desc>The IP address of the guest which the NAT engine will forward matching packets
to. An empty IP address is acceptable, in which case the NAT engine will forward
packets to the first DHCP lease (x.x.x.15).</desc>
</param>
<param name="guestPort" type="unsigned short" dir="in">
<desc>The port number to forward.</desc>
</param>
</method>
<method name="removeRedirect">
<desc>Removes a port-forwarding rule that was previously registered.</desc>
<param name="name" type="wstring" dir="in">
<desc>The name of the rule to delete.</desc>
</param>
</method>
</interface>
<!--
// IExtPackManager
/////////////////////////////////////////////////////////////////////////
-->
<interface
name="IExtPackPlugIn" extends="$unknown"
uuid="78861431-d545-44aa-8013-181b8c288554"
wsmap="suppress"
reservedAttributes="4"
>
<desc>
Interface for keeping information about a plug-in that ships with an
extension pack.
</desc>
<attribute name="name" type="wstring" readonly="yes">
<desc>The plug-in name.</desc>
</attribute>
<attribute name="description" type="wstring" readonly="yes">
<desc>The plug-in description.</desc>
</attribute>
<attribute name="frontend" type="wstring" readonly="yes">
<desc>
The name of the frontend or component name this plug-in plugs into.
</desc>
</attribute>
<attribute name="modulePath" type="wstring" readonly="yes">
<desc> The module path. </desc>
</attribute>
</interface>
<interface
name="IExtPackBase" extends="$unknown"
uuid="aa204a12-5b29-45a5-b5d6-c2bafcdb9b0b"
wsmap="suppress"
reservedMethods="4" reservedAttributes="8"
>
<desc>
Interface for querying information about an extension pack as well as
accessing COM objects within it.
</desc>
<attribute name="name" type="wstring" readonly="yes">
<desc>The extension pack name. This is unique.</desc>
</attribute>
<attribute name="description" type="wstring" readonly="yes">
<desc>The extension pack description.</desc>
</attribute>
<attribute name="version" type="wstring" readonly="yes">
<desc>
The extension pack version string. This is restricted to the dotted
version number and optionally a build indicator. No tree revision or
tag will be included in the string as those things are available as
separate properties. An optional publisher tag may be present like for
<link to="IVirtualBox::version"/>.
Examples: "1.2.3", "1.2.3_BETA1" and "1.2.3_RC2".
</desc>
</attribute>
<attribute name="revision" type="unsigned long" readonly="yes">
<desc>The extension pack internal revision number.</desc>
</attribute>
<attribute name="edition" type="wstring" readonly="yes">
<desc>
Edition indicator. This is usually empty.
Can for instance be used to help distinguishing between two editions
of the same extension pack where only the license, service contract or
something differs.
</desc>
</attribute>
<attribute name="VRDEModule" type="wstring" readonly="yes">
<desc>The name of the VRDE module if the extension pack sports one.</desc>
</attribute>
<attribute name="CryptoModule" type="wstring" readonly="yes">
<desc>
The name of the crypto module if the extension pack sports one.
This module is required for full VM encryption.
</desc>
</attribute>
<attribute name="plugIns" type="IExtPackPlugIn" safearray="yes" readonly="yes">
<desc>Plug-ins provided by this extension pack.</desc>
</attribute>
<attribute name="usable" type="boolean" readonly="yes">
<desc>
Indicates whether the extension pack is usable or not.
There are a number of reasons why an extension pack might be unusable,
typical examples would be broken installation/file or that it is
incompatible with the current VirtualBox version.
</desc>
</attribute>
<attribute name="whyUnusable" type="wstring" readonly="yes">
<desc>
String indicating why the extension pack is not usable. This is an
empty string if usable and always a non-empty string if not usable.
</desc>
</attribute>
<attribute name="showLicense" type="boolean" readonly="yes">
<desc>Whether to show the license before installation</desc>
</attribute>
<attribute name="license" type="wstring" readonly="yes">
<desc>
The default HTML license text for the extension pack. Same as
calling <link to="#queryLicense">queryLicense</link> with
preferredLocale and preferredLanguage as empty strings and format set
to html.
</desc>
</attribute>
<method name="queryLicense">
<desc>
Full feature version of the license attribute.
</desc>
<param name="preferredLocale" type="wstring" dir="in">
<desc>
The preferred license locale. Pass an empty string to get the default
license.
</desc>
</param>
<param name="preferredLanguage" type="wstring" dir="in">
<desc>
The preferred license language. Pass an empty string to get the
default language for the locale.
</desc>
</param>
<param name="format" type="wstring" dir="in">
<desc>
The license format: html, rtf or txt. If a license is present there
will always be an HTML of it, the rich text format (RTF) and plain
text (txt) versions are optional. If
</desc>
</param>
<param name="licenseText" type="wstring" dir="return">
<desc>The license text.</desc>
</param>
</method>
</interface>
<interface
name="IExtPack" extends="IExtPackBase"
uuid="431685da-3618-4ebc-b038-833ba829b4b2"
wsmap="suppress"
>
<desc>
Interface for querying information about an extension pack as well as
accessing COM objects within it.
</desc>
<method name="queryObject">
<desc>
Queries the IUnknown interface to an object in the extension pack
main module. This allows plug-ins and others to talk directly to an
extension pack.
</desc>
<param name="objUuid" type="wstring" dir="in">
<desc>The object ID. What exactly this is </desc>
</param>
<param name="returnInterface" type="$unknown" dir="return">
<desc>The queried interface.</desc>
</param>
</method>
</interface>
<interface
name="IExtPackFile" extends="IExtPackBase"
uuid="41304f1b-7e72-4f34-b8f6-682785620c57"
wsmap="suppress"
reservedMethods="2" reservedAttributes="4"
>
<desc>
Extension pack file (aka tarball, .vbox-extpack) representation returned
by <link to="IExtPackManager::openExtPackFile"/>. This provides the base
extension pack information with the addition of the file name.
</desc>
<attribute name="filePath" type="wstring" readonly="yes">
<desc>
The path to the extension pack file.
</desc>
</attribute>
<method name="install">
<desc>
Install the extension pack.
</desc>
<param name="replace" type="boolean" dir="in">
<desc>
Set this to automatically uninstall any existing extension pack with
the same name as the one being installed.
</desc>
</param>
<param name="displayInfo" type="wstring" dir="in">
<desc>
Platform specific display information. Reserved for future hacks.
</desc>
</param>
<param name="progess" type="IProgress" dir="return">
<desc>
Progress object for the operation.
</desc>
</param>
</method>
</interface>
<interface
name="IExtPackManager" extends="$unknown"
uuid="70401eef-c8e9-466b-9660-45cb3e9979e4"
wsmap="suppress"
reservedMethods="4" reservedAttributes="8"
>
<desc>
Interface for managing VirtualBox Extension Packs.
@todo Describe extension packs, how they are managed and how to create one.
</desc>
<attribute name="installedExtPacks" type="IExtPack" safearray="yes" readonly="yes">
<desc>
List of the installed extension packs.
</desc>
</attribute>
<method name="find">
<desc>
Returns the extension pack with the specified name if found.
<result name="VBOX_E_OBJECT_NOT_FOUND">
No extension pack matching @a name was found.
</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>The name of the extension pack to locate.</desc>
</param>
<param name="returnData" type="IExtPack" dir="return">
<desc>The extension pack if found.</desc>
</param>
</method>
<method name="openExtPackFile">
<desc>
Attempts to open an extension pack file in preparation for
installation.
</desc>
<param name="path" type="wstring" dir="in">
<desc>The path of the extension pack tarball. This can optionally be
followed by a "::SHA-256=hex-digit" of the tarball. </desc>
</param>
<param name="file" type="IExtPackFile" dir="return">
<desc>The interface of the extension pack file object.</desc>
</param>
</method>
<method name="uninstall">
<desc>Uninstalls an extension pack, removing all related files.</desc>
<param name="name" type="wstring" dir="in">
<desc>The name of the extension pack to uninstall.</desc>
</param>
<param name="forcedRemoval" type="boolean" dir="in">
<desc>
Forced removal of the extension pack. This means that the uninstall
hook will not be called.
</desc>
</param>
<param name="displayInfo" type="wstring" dir="in">
<desc>
Platform specific display information. Reserved for future hacks.
</desc>
</param>
<param name="progess" type="IProgress" dir="return">
<desc>
Progress object for the operation.
</desc>
</param>
</method>
<method name="cleanup">
<desc>Cleans up failed installs and uninstalls</desc>
</method>
<method name="queryAllPlugInsForFrontend">
<desc>
Gets the path to all the plug-in modules for a given frontend.
This is a convenience method that is intended to simplify the plug-in
loading process for a frontend.
</desc>
<param name="frontendName" type="wstring" dir="in">
<desc>The name of the frontend or component.</desc>
</param>
<param name="plugInModules" type="wstring" dir="return" safearray="yes">
<desc>Array containing the plug-in modules (full paths).</desc>
</param>
</method>
<method name="isExtPackUsable">
<desc>Check if the given extension pack is loaded and usable.</desc>
<param name="name" type="wstring" dir="in">
<desc>The name of the extension pack to check for.</desc>
</param>
<param name="usable" type="boolean" dir="return">
<desc>Is the given extension pack loaded and usable.</desc>
</param>
</method>
</interface>
<!--
// BandwidthGroupType
/////////////////////////////////////////////////////////////////////////
-->
<enum
name="BandwidthGroupType"
uuid="1d92b67d-dc69-4be9-ad4c-93a01e1e0c8e">
<desc>
Type of a bandwidth control group.
</desc>
<const name="Null" value="0">
<desc>
Null type, must be first.
</desc>
</const>
<const name="Disk" value="1">
<desc>
The bandwidth group controls disk I/O.
</desc>
</const>
<const name="Network" value="2">
<desc>
The bandwidth group controls network I/O.
</desc>
</const>
</enum>
<!--
// IBandwidthGroup
/////////////////////////////////////////////////////////////////////////
-->
<interface
name="IBandwidthGroup" extends="$unknown"
uuid="31587f93-2d12-4d7c-ba6d-ce51d0d5b265"
wsmap="managed"
rest="managed"
reservedAttributes="4"
>
<desc>Represents one bandwidth group.</desc>
<attribute name="name" type="wstring" readonly="yes">
<desc>Name of the group.</desc>
</attribute>
<attribute name="type" type="BandwidthGroupType" readonly="yes">
<desc>Type of the group.</desc>
</attribute>
<attribute name="reference" type="unsigned long" readonly="yes">
<desc>How many devices/medium attachments use this group.</desc>
</attribute>
<attribute name="maxBytesPerSec" type="long long">
<desc>The maximum number of bytes which can be transfered by all
entities attached to this group during one second.</desc>
</attribute>
</interface>
<!--
// IBandwidthControl
/////////////////////////////////////////////////////////////////////////
-->
<interface
name="IBandwidthControl" extends="$unknown"
uuid="48c7f4c0-c9d6-4742-957c-a6fd52e8c4ae"
wsmap="managed"
rest="managed"
reservedMethods="2" reservedAttributes="2"
>
<desc>
Controls the bandwidth groups of one machine used to cap I/O done by a VM.
This includes network and disk I/O.
</desc>
<attribute name="numGroups" type="unsigned long" readonly="yes">
<desc>
The current number of existing bandwidth groups managed.
</desc>
</attribute>
<method name="createBandwidthGroup">
<desc>
Creates a new bandwidth group.
</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of the bandwidth group.</desc>
</param>
<param name="type" type="BandwidthGroupType" dir="in">
<desc>The type of the bandwidth group (network or disk).</desc>
</param>
<param name="maxBytesPerSec" type="long long" dir="in">
<desc>The maximum number of bytes which can be transfered by all
entities attached to this group during one second.</desc>
</param>
</method>
<method name="deleteBandwidthGroup">
<desc>
Deletes a new bandwidth group.
</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of the bandwidth group to delete.</desc>
</param>
</method>
<method name="getBandwidthGroup" const="yes">
<desc>
Get a bandwidth group by name.
</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of the bandwidth group to get.</desc>
</param>
<param name="bandwidthGroup" type="IBandwidthGroup" dir="return">
<desc>Where to store the bandwidth group on success.</desc>
</param>
</method>
<method name="getAllBandwidthGroups" const="yes">
<desc>
Get all managed bandwidth groups.
</desc>
<param name="bandwidthGroups" type="IBandwidthGroup" dir="return" safearray="yes">
<desc>The array of managed bandwidth groups.</desc>
</param>
</method>
</interface>
<!--
// IGuestDebugControl
/////////////////////////////////////////////////////////////////////////
-->
<enum
name="GuestDebugProvider"
uuid="acdaddc5-aa0f-4f2e-be1f-a9be2828d24a"
>
<desc>
The enabled guest debug provider. This enumeration represents possible
values for the <link to="IGuestDebugControl::debugProvider"/> attribute.
</desc>
<const name="None" value="0">
<desc>Guest debugging is disabled.</desc>
</const>
<const name="Native" value="1">
<desc>The native debugger console is enabled.</desc>
</const>
<const name="GDB" value="2">
<desc>The GDB remote stub is enabled.</desc>
</const>
<const name="KD" value="3">
<desc>The WinDbg/KD remote stub is enabled.</desc>
</const>
</enum>
<enum
name="GuestDebugIoProvider"
uuid="0cf00b1b-2ff7-414c-81c6-6cf410eaec4a"
>
<desc>
The enabled guest debug I/O provider. This enumeration represents possible
values for the <link to="IGuestDebugControl::debugIoProvider"/> attribute.
</desc>
<const name="None" value="0">
<desc>No connection available (only useful with
<link to="GuestDebugProvider::None"/>).
</desc>
</const>
<const name="TCP" value="1">
<desc>The remote stub is available through a TCP connection.</desc>
</const>
<const name="UDP" value="2">
<desc>The remote stub is available through a UDP connection.</desc>
</const>
<const name="IPC" value="3">
<desc>The remote stub is available through a IPC connection,
namely a named pipe on Windows or a unix socket on other hosts.</desc>
</const>
</enum>
<interface
name="IGuestDebugControl" extends="$unknown"
uuid="1474bb3a-f096-4cd7-a857-8d8e3cea7331"
wsmap="managed"
rest="managed"
reservedMethods="2" reservedAttributes="2"
>
<desc>
Controls the guest debug settings of one virtual machine.
</desc>
<attribute name="debugProvider" type="GuestDebugProvider">
<desc>The currently active debug provider.</desc>
</attribute>
<attribute name="debugIoProvider" type="GuestDebugIoProvider">
<desc>The I/O backend for the selected debug provider.</desc>
</attribute>
<attribute name="debugAddress" type="wstring">
<desc>
The address to connect to or listen on,
depending on the type.
</desc>
</attribute>
<attribute name="debugPort" type="unsigned long">
<desc>
The port to listen on or connect to, depending on the selected I/O
provider. Might be ignored by some providers.
</desc>
</attribute>
</interface>
<!--
// IVirtualBoxClient
/////////////////////////////////////////////////////////////////////////
-->
<interface
name="IVirtualBoxClient" extends="$unknown"
uuid="d2937a8e-cb8d-4382-90ba-b7da78a74573"
wsmap="suppress"
reservedMethods="4" reservedAttributes="4"
>
<desc>
Convenience interface for client applications. Treat this as a
singleton, i.e. never create more than one instance of this interface.
At the moment only available for clients of the local API (not usable
via the webservice). Once the session logic is redesigned this might
change.
Error information handling is a bit special with IVirtualBoxClient:
creating an instance will always succeed. The return of the actual error
code/information is postponed to any attribute or method call. The
reason for this is that COM likes to mutilate the error code and lose
the detailed error information returned by instance creation.
</desc>
<attribute name="virtualBox" type="IVirtualBox" readonly="yes">
<desc>
Reference to the server-side API root object.
</desc>
</attribute>
<attribute name="session" type="ISession" readonly="yes">
<desc>
Create a new session object and return the reference to it.
</desc>
</attribute>
<attribute name="eventSource" type="IEventSource" readonly="yes">
<desc>
Event source for VirtualBoxClient events.
</desc>
</attribute>
<method name="checkMachineError">
<desc>
Perform error checking before using an <link to="IMachine"/> object.
Generally useful before starting a VM and all other uses. If anything
is not as it should be then this method will return an appropriate
error.
</desc>
<param name="machine" type="IMachine" dir="in">
<desc>The machine object to check.</desc>
</param>
</method>
</interface>
<!--
// Events
/////////////////////////////////////////////////////////////////////////
-->
<enum
name="VBoxEventType"
uuid="e4c5252d-7d1a-4051-8cfb-5b2d7a73d992"
>
<desc>
Type of an event.
See <link to="IEvent" /> for an introduction to VirtualBox event handling.
</desc>
<const name="Invalid" value="0">
<desc>
Invalid event, must be first.
</desc>
</const>
<const name="Any" value="1">
<desc>
Wildcard for all events.
Events of this type are never delivered, and only used in
<link to="IEventSource::registerListener"/> call to simplify registration.
</desc>
</const>
<const name="Vetoable" value="2">
<desc>
Wildcard for all vetoable events. Events of this type are never delivered, and only
used in <link to="IEventSource::registerListener"/> call to simplify registration.
</desc>
</const>
<const name="MachineEvent" value="3">
<desc>
Wildcard for all machine events. Events of this type are never delivered, and only used in
<link to="IEventSource::registerListener"/> call to simplify registration.
</desc>
</const>
<const name="SnapshotEvent" value="4">
<desc>
Wildcard for all snapshot events. Events of this type are never delivered, and only used in
<link to="IEventSource::registerListener"/> call to simplify registration.
</desc>
</const>
<const name="InputEvent" value="5">
<desc>
Wildcard for all input device (keyboard, mouse) events.
Events of this type are never delivered, and only used in
<link to="IEventSource::registerListener"/> call to simplify registration.
</desc>
</const>
<const name="LastWildcard" value="31">
<desc>
Last wildcard.
</desc>
</const>
<const name="OnMachineStateChanged" value="32">
<desc>
See <link to="IMachineStateChangedEvent">IMachineStateChangedEvent</link>.
</desc>
</const>
<const name="OnMachineDataChanged" value="33">
<desc>
See <link to="IMachineDataChangedEvent">IMachineDataChangedEvent</link>.
</desc>
</const>
<const name="OnExtraDataChanged" value="34">
<desc>
See <link to="IExtraDataChangedEvent">IExtraDataChangedEvent</link>.
</desc>
</const>
<const name="OnExtraDataCanChange" value="35">
<desc>
See <link to="IExtraDataCanChangeEvent">IExtraDataCanChangeEvent</link>.
</desc>
</const>
<const name="OnMediumRegistered" value="36">
<desc>
See <link to="IMediumRegisteredEvent">IMediumRegisteredEvent</link>.
</desc>
</const>
<const name="OnMachineRegistered" value="37">
<desc>
See <link to="IMachineRegisteredEvent">IMachineRegisteredEvent</link>.
</desc>
</const>
<const name="OnSessionStateChanged" value="38">
<desc>
See <link to="ISessionStateChangedEvent">ISessionStateChangedEvent</link>.
</desc>
</const>
<const name="OnSnapshotTaken" value="39">
<desc>
See <link to="ISnapshotTakenEvent">ISnapshotTakenEvent</link>.
</desc>
</const>
<const name="OnSnapshotDeleted" value="40">
<desc>
See <link to="ISnapshotDeletedEvent">ISnapshotDeletedEvent</link>.
</desc>
</const>
<const name="OnSnapshotChanged" value="41">
<desc>
See <link to="ISnapshotChangedEvent">ISnapshotChangedEvent</link>.
</desc>
</const>
<const name="OnGuestPropertyChanged" value="42">
<desc>
See <link to="IGuestPropertyChangedEvent">IGuestPropertyChangedEvent</link>.
</desc>
</const>
<!-- Console events -->
<const name="OnMousePointerShapeChanged" value="43">
<desc>
See <link to="IMousePointerShapeChangedEvent">IMousePointerShapeChangedEvent</link>.
</desc>
</const>
<const name="OnMouseCapabilityChanged" value="44">
<desc>
See <link to="IMouseCapabilityChangedEvent">IMouseCapabilityChangedEvent</link>.
</desc>
</const>
<const name="OnKeyboardLedsChanged" value="45">
<desc>
See <link to="IKeyboardLedsChangedEvent">IKeyboardLedsChangedEvent</link>.
</desc>
</const>
<const name="OnStateChanged" value="46">
<desc>
See <link to="IStateChangedEvent">IStateChangedEvent</link>.
</desc>
</const>
<const name="OnAdditionsStateChanged" value="47">
<desc>
See <link to="IAdditionsStateChangedEvent">IAdditionsStateChangedEvent</link>.
</desc>
</const>
<const name="OnNetworkAdapterChanged" value="48">
<desc>
See <link to="INetworkAdapterChangedEvent">INetworkAdapterChangedEvent</link>.
</desc>
</const>
<const name="OnSerialPortChanged" value="49">
<desc>
See <link to="ISerialPortChangedEvent">ISerialPortChangedEvent</link>.
</desc>
</const>
<const name="OnParallelPortChanged" value="50">
<desc>
See <link to="IParallelPortChangedEvent">IParallelPortChangedEvent</link>.
</desc>
</const>
<const name="OnStorageControllerChanged" value="51">
<desc>
See <link to="IStorageControllerChangedEvent">IStorageControllerChangedEvent</link>.
</desc>
</const>
<const name="OnMediumChanged" value="52">
<desc>
See <link to="IMediumChangedEvent">IMediumChangedEvent</link>.
</desc>
</const>
<const name="OnVRDEServerChanged" value="53">
<desc>
See <link to="IVRDEServerChangedEvent">IVRDEServerChangedEvent</link>.
</desc>
</const>
<const name="OnUSBControllerChanged" value="54">
<desc>
See <link to="IUSBControllerChangedEvent">IUSBControllerChangedEvent</link>.
</desc>
</const>
<const name="OnUSBDeviceStateChanged" value="55">
<desc>
See <link to="IUSBDeviceStateChangedEvent">IUSBDeviceStateChangedEvent</link>.
</desc>
</const>
<const name="OnSharedFolderChanged" value="56">
<desc>
See <link to="ISharedFolderChangedEvent">ISharedFolderChangedEvent</link>.
</desc>
</const>
<const name="OnRuntimeError" value="57">
<desc>
See <link to="IRuntimeErrorEvent">IRuntimeErrorEvent</link>.
</desc>
</const>
<const name="OnCanShowWindow" value="58">
<desc>
See <link to="ICanShowWindowEvent">ICanShowWindowEvent</link>.
</desc>
</const>
<const name="OnShowWindow" value="59">
<desc>
See <link to="IShowWindowEvent">IShowWindowEvent</link>.
</desc>
</const>
<const name="OnCPUChanged" value="60">
<desc>
See <link to="ICPUChangedEvent">ICPUChangedEvent</link>.
</desc>
</const>
<const name="OnVRDEServerInfoChanged" value="61">
<desc>
See <link to="IVRDEServerInfoChangedEvent">IVRDEServerInfoChangedEvent</link>.
</desc>
</const>
<const name="OnEventSourceChanged" value="62">
<desc>
See <link to="IEventSourceChangedEvent">IEventSourceChangedEvent</link>.
</desc>
</const>
<const name="OnCPUExecutionCapChanged" value="63">
<desc>
See <link to="ICPUExecutionCapChangedEvent">ICPUExecutionCapChangedEvent</link>.
</desc>
</const>
<const name="OnGuestKeyboard" value="64">
<desc>
See <link to="IGuestKeyboardEvent">IGuestKeyboardEvent</link>.
</desc>
</const>
<const name="OnGuestMouse" value="65">
<desc>
See <link to="IGuestMouseEvent">IGuestMouseEvent</link>.
</desc>
</const>
<const name="OnNATRedirect" value="66">
<desc>
See <link to="INATRedirectEvent">INATRedirectEvent</link>.
</desc>
</const>
<const name="OnHostPCIDevicePlug" value="67">
<desc>
See <link to="IHostPCIDevicePlugEvent">IHostPCIDevicePlugEvent</link>.
</desc>
</const>
<const name="OnVBoxSVCAvailabilityChanged" value="68">
<desc>
See <link to="IVBoxSVCAvailabilityChangedEvent">IVBoxSVCAvailablityChangedEvent</link>.
</desc>
</const>
<const name="OnBandwidthGroupChanged" value="69">
<desc>
See <link to="IBandwidthGroupChangedEvent">IBandwidthGroupChangedEvent</link>.
</desc>
</const>
<const name="OnGuestMonitorChanged" value="70">
<desc>
See <link to="IGuestMonitorChangedEvent">IGuestMonitorChangedEvent</link>.
</desc>
</const>
<const name="OnStorageDeviceChanged" value="71">
<desc>
See <link to="IStorageDeviceChangedEvent">IStorageDeviceChangedEvent</link>.
</desc>
</const>
<const name="OnClipboardModeChanged" value="72">
<desc>
See <link to="IClipboardModeChangedEvent">IClipboardModeChangedEvent</link>.
</desc>
</const>
<const name="OnDnDModeChanged" value="73">
<desc>
See <link to="IDnDModeChangedEvent">IDnDModeChangedEvent</link>.
</desc>
</const>
<const name="OnNATNetworkChanged" value="74">
<desc>
See <link to="INATNetworkChangedEvent">INATNetworkChangedEvent</link>.
</desc>
</const>
<const name="OnNATNetworkStartStop" value="75">
<desc>
See <link to="INATNetworkStartStopEvent">INATNetworkStartStopEvent</link>.
</desc>
</const>
<const name="OnNATNetworkAlter" value="76">
<desc>
See <link to="INATNetworkAlterEvent">INATNetworkAlterEvent</link>.
</desc>
</const>
<const name="OnNATNetworkCreationDeletion" value="77">
<desc>
See <link to="INATNetworkCreationDeletionEvent">INATNetworkCreationDeletionEvent</link>.
</desc>
</const>
<const name="OnNATNetworkSetting" value="78">
<desc>
See <link to="INATNetworkSettingEvent">INATNetworkSettingEvent</link>.
</desc>
</const>
<const name="OnNATNetworkPortForward" value="79">
<desc>
See <link to="INATNetworkPortForwardEvent">INATNetworkPortForwardEvent</link>.
</desc>
</const>
<const name="OnGuestSessionStateChanged" value="80">
<desc>
See <link to="IGuestSessionStateChangedEvent">IGuestSessionStateChangedEvent</link>.
</desc>
</const>
<const name="OnGuestSessionRegistered" value="81">
<desc>
See <link to="IGuestSessionRegisteredEvent">IGuestSessionRegisteredEvent</link>.
</desc>
</const>
<const name="OnGuestProcessRegistered" value="82">
<desc>
See <link to="IGuestProcessRegisteredEvent">IGuestProcessRegisteredEvent</link>.
</desc>
</const>
<const name="OnGuestProcessStateChanged" value="83">
<desc>
See <link to="IGuestProcessStateChangedEvent">IGuestProcessStateChangedEvent</link>.
</desc>
</const>
<const name="OnGuestProcessInputNotify" value="84">
<desc>
See <link to="IGuestProcessInputNotifyEvent">IGuestProcessInputNotifyEvent</link>.
</desc>
</const>
<const name="OnGuestProcessOutput" value="85">
<desc>
See <link to="IGuestProcessOutputEvent">IGuestProcessOutputEvent</link>.
</desc>
</const>
<const name="OnGuestFileRegistered" value="86">
<desc>
See <link to="IGuestFileRegisteredEvent">IGuestFileRegisteredEvent</link>.
</desc>
</const>
<const name="OnGuestFileStateChanged" value="87">
<desc>
See <link to="IGuestFileStateChangedEvent">IGuestFileStateChangedEvent</link>.
</desc>
</const>
<const name="OnGuestFileOffsetChanged" value="88">
<desc>
See <link to="IGuestFileOffsetChangedEvent">IGuestFileOffsetChangedEvent</link>.
</desc>
</const>
<const name="OnGuestFileRead" value="89">
<desc>
See <link to="IGuestFileReadEvent">IGuestFileReadEvent</link>.
<note internal="yes">For performance reasons this is a separate event to
not unnecessarily overflow the event queue.</note>
</desc>
</const>
<const name="OnGuestFileWrite" value="90">
<desc>
See <link to="IGuestFileWriteEvent">IGuestFileWriteEvent</link>.
<note internal="yes">For performance reasons this is a separate event to
not unnecessarily overflow the event queue.</note>
</desc>
</const>
<const name="OnRecordingChanged" value="91">
<desc>
See <link to="IRecordingChangedEvent">IRecordingChangeEvent</link>.
</desc>
</const>
<const name="OnGuestUserStateChanged" value="92">
<desc>
See <link to="IGuestUserStateChangedEvent">IGuestUserStateChangedEvent</link>.
</desc>
</const>
<const name="OnGuestMultiTouch" value="93">
<desc>
See <link to="IGuestMultiTouchEvent">IGuestMultiTouchEvent</link>.
</desc>
</const>
<const name="OnHostNameResolutionConfigurationChange" value="94">
<desc>
See <link to="IHostNameResolutionConfigurationChangeEvent">IHostNameResolutionConfigurationChangeEvent</link>.
</desc>
</const>
<const name="OnSnapshotRestored" value="95">
<desc>
See <link to="ISnapshotRestoredEvent">ISnapshotRestoredEvent</link>.
</desc>
</const>
<const name="OnMediumConfigChanged" value="96">
<desc>
See <link to="IMediumConfigChangedEvent">IMediumConfigChangedEvent</link>.
</desc>
</const>
<const name="OnAudioAdapterChanged" value="97">
<desc>
See <link to="IAudioAdapterChangedEvent">IAudioAdapterChangedEvent</link>.
</desc>
</const>
<const name="OnProgressPercentageChanged" value="98">
<desc>
See <link to="IProgressPercentageChangedEvent">IProgressPercentageChangedEvent</link>.
</desc>
</const>
<const name="OnProgressTaskCompleted" value="99">
<desc>
See <link to="IProgressTaskCompletedEvent">IProgressTaskCompletedEvent</link>.
</desc>
</const>
<const name="OnCursorPositionChanged" value="100">
<desc>
See <link to="ICursorPositionChangedEvent">ICursorPositionChangedEvent</link>.
</desc>
</const>
<const name="OnGuestAdditionsStatusChanged" value="101">
<desc>
See <link to="IGuestAdditionsStatusChangedEvent">IGuestAdditionsStatusChangedEvent</link>.
</desc>
</const>
<const name="OnGuestMonitorInfoChanged" value="102">
<desc>
See <link to="IGuestMonitorInfoChangedEvent">IGuestMonitorInfoChangedEvent</link>.
</desc>
</const>
<const name="OnGuestFileSizeChanged" value="103">
<desc>
See <link to="IGuestFileSizeChangedEvent">IGuestFileSizeChangedEvent</link>.
</desc>
</const>
<const name="OnClipboardFileTransferModeChanged" value="104">
<desc>
See <link to="IClipboardFileTransferModeChangedEvent">IClipboardFileTransferModeChangedEvent</link>.
</desc>
</const>
<const name="OnCloudProviderListChanged" value="105">
<desc>
See <link to="ICloudProviderListChangedEvent"/>.
</desc>
</const>
<const name="OnCloudProviderRegistered" value="106">
<desc>
See <link to="ICloudProviderRegisteredEvent"/>.
</desc>
</const>
<const name="OnCloudProviderUninstall" value="107">
<desc>
See <link to="ICloudProviderUninstallEvent"/>.
</desc>
</const>
<const name="OnCloudProfileRegistered" value="108">
<desc>
See <link to="ICloudProfileRegisteredEvent"/>.
</desc>
</const>
<const name="OnCloudProfileChanged" value="109">
<desc>
See <link to="ICloudProfileChangedEvent"/>.
</desc>
</const>
<const name="OnProgressCreated" value="110">
<desc>
See <link to="IProgressCreatedEvent"/>.
</desc>
</const>
<const name="OnLanguageChanged" value="111">
<desc>
See <link to="ILanguageChangedEvent"/>.
</desc>
</const>
<const name="OnUpdateAgentAvailable" value="112">
<desc>
See <link to="IUpdateAgentAvailableEvent">IUpdateAgentAvailableEvent</link>.
</desc>
</const>
<const name="OnUpdateAgentError" value="113">
<desc>
See <link to="IUpdateAgentErrorEvent">IUpdateAgentErrorEvent</link>.
</desc>
</const>
<const name="OnUpdateAgentSettingsChanged" value="114">
<desc>
See <link to="IUpdateAgentSettingsChangedEvent">IUpdateAgentSettingsChangedEvent</link>.
</desc>
</const>
<const name="OnUpdateAgentStateChanged" value="115">
<desc>
See <link to="IUpdateAgentStateChangedEvent">IUpdateAgentStateChangedEvent</link>.
</desc>
</const>
<const name="OnHostAudioDeviceChanged" value="116">
<desc>
See <link to="IHostAudioDeviceChangedEvent">IHostAudioDeviceChangedEvent</link>.
</desc>
</const>
<const name="OnGuestDebugControlChanged" value="117">
<desc>
See <link to="IGuestDebugControlChangedEvent">IGuestDebugControlChangedEvent</link>.
</desc>
</const>
<const name="OnMachineGroupsChanged" value="118">
<desc>
See <link to="IMachineGroupsChangedEvent">IMachineGroupsChangedEvent</link>.
</desc>
</const>
<!-- End event marker -->
<const name="End" value="119">
<desc>
Must be last event, used for iterations and structures relying on numerical event values.
</desc>
</const>
</enum>
<interface
name="IEventSource" extends="$unknown"
uuid="9b6e1aee-35f3-4f4d-b5bb-ed0ecefd8538"
wsmap="managed"
rest="managed"
>
<desc>
Event source. Generally, any object which could generate events can be an event source,
or aggregate one. To simplify using one-way protocols such as webservices running on top of HTTP(S),
an event source can work with listeners in either active or passive mode. In active mode it is up to
the IEventSource implementation to call <link to="IEventListener::handleEvent" />, in passive mode the
event source keeps track of pending events for each listener and returns available events on demand.
See <link to="IEvent" /> for an introduction to VirtualBox event handling.
</desc>
<method name="createListener">
<desc>
Creates a new listener object, useful for passive mode.
</desc>
<param name="listener" type="IEventListener" dir="return"/>
</method>
<method name="createAggregator">
<desc>
Creates an aggregator event source, collecting events from multiple sources.
This way a single listener can listen for events coming from multiple sources,
using a single blocking <link to="#getEvent"/> on the returned aggregator.
</desc>
<param name="subordinates" type="IEventSource" dir="in" safearray="yes">
<desc>
Subordinate event source this one aggregates.
</desc>
</param>
<param name="result" type="IEventSource" dir="return">
<desc>
Event source aggregating passed sources.
</desc>
</param>
</method>
<method name="registerListener">
<desc>
Register an event listener.
<note>
To avoid system overload, the VirtualBox server process checks if passive event
listeners call <link to="IEventSource::getEvent"/> frequently enough. In the
current implementation, if more than 500 pending events are detected for a passive
event listener, it is forcefully unregistered by the system, and further
<link to="#getEvent" /> calls will return @c VBOX_E_OBJECT_NOT_FOUND.
</note>
</desc>
<param name="listener" type="IEventListener" dir="in">
<desc>Listener to register.</desc>
</param>
<param name="interesting" type="VBoxEventType" dir="in" safearray="yes">
<desc>
Event types listener is interested in. One can use wildcards like -
<link to="VBoxEventType_Any"/> to specify wildcards, matching more
than one event.
</desc>
</param>
<param name="active" type="boolean" dir="in">
<desc>
Which mode this listener is operating in.
In active mode, <link to="IEventListener::handleEvent" /> is called directly.
In passive mode, an internal event queue is created for this this IEventListener.
For each event coming in, it is added to queues for all interested registered passive
listeners. It is then up to the external code to call the listener's
<link to="IEventListener::handleEvent" /> method. When done with an event, the
external code must call <link to="#eventProcessed" />.
</desc>
</param>
</method>
<method name="unregisterListener">
<desc>
Unregister an event listener. If listener is passive, and some waitable events are still
in queue they are marked as processed automatically.
</desc>
<param name="listener" type="IEventListener" dir="in">
<desc>Listener to unregister.</desc>
</param>
</method>
<method name="fireEvent">
<desc>
Fire an event for this source.
</desc>
<param name="event" type="IEvent" dir="in">
<desc>Event to deliver.</desc>
</param>
<param name="timeout" type="long" dir="in">
<desc>
Maximum time to wait for event processing (if event is waitable), in ms;
0 = no wait, -1 = indefinite wait.
</desc>
</param>
<param name="result" type="boolean" dir="return">
<desc>true if an event was delivered to all targets, or is non-waitable.</desc>
</param>
</method>
<method name="getEvent">
<desc>
Get events from this peer's event queue (for passive mode). Calling this method
regularly is required for passive event listeners to avoid system overload;
see <link to="IEventSource::registerListener" /> for details.
<result name="VBOX_E_OBJECT_NOT_FOUND">
Listener is not registered, or autounregistered.
</result>
</desc>
<param name="listener" type="IEventListener" dir="in">
<desc>Which listener to get data for.</desc>
</param>
<param name="timeout" type="long" dir="in">
<desc>
Maximum time to wait for events, in ms;
0 = no wait, -1 = indefinite wait.
</desc>
</param>
<param name="event" type="IEvent" dir="return">
<desc>Event retrieved, or null if none available.</desc>
</param>
</method>
<method name="eventProcessed">
<desc>
Must be called for waitable events after a particular listener finished its
event processing. When all listeners of a particular event have called this
method, the system will then call <link to="IEvent::setProcessed" />.
</desc>
<param name="listener" type="IEventListener" dir="in">
<desc>Which listener processed event.</desc>
</param>
<param name="event" type="IEvent" dir="in">
<desc>Which event.</desc>
</param>
</method>
</interface>
<interface
name="IEventListener" extends="$unknown"
uuid="67099191-32e7-4f6c-85ee-422304c71b90"
wsmap="managed"
rest="managed"
>
<desc>
Event listener. An event listener can work in either active or passive mode, depending on the way
it was registered.
See <link to="IEvent" /> for an introduction to VirtualBox event handling.
</desc>
<method name="handleEvent">
<desc>
Handle event callback for active listeners. It is not called for
passive listeners. After calling <link to="#handleEvent"/> on all active listeners
and having received acknowledgement from all passive listeners via
<link to="IEventSource::eventProcessed"/>, the event is marked as
processed and <link to="IEvent::waitProcessed"/> will return
immediately.
</desc>
<param name="event" type="IEvent" dir="in">
<desc>Event available.</desc>
</param>
</method>
</interface>
<interface
name="IEvent" extends="$unknown"
uuid="0ca2adba-8f30-401b-a8cd-fe31dbe839c0"
wsmap="managed"
rest="managed"
>
<desc>
Abstract parent interface for VirtualBox events. Actual events will typically implement
a more specific interface which derives from this (see below).
<b>Introduction to VirtualBox events</b>
Generally speaking, an event (represented by this interface) signals that something
happened, while an event listener (see <link to="IEventListener" />) represents an
entity that is interested in certain events. In order for this to work with
unidirectional protocols (i.e. web services), the concepts of passive and active
listener are used.
Event consumers can register themselves as listeners, providing an array of
events they are interested in (see <link to="IEventSource::registerListener" />).
When an event triggers, the listener is notified about the event. The exact
mechanism of the notification depends on whether the listener was registered as
an active or passive listener:
<ul>
<li>An active listener is very similar to a callback: it is a function invoked
by the API. As opposed to the callbacks that were used in the API before
VirtualBox 4.0 however, events are now objects with an interface hierarchy.
</li>
<li>Passive listeners are somewhat trickier to implement, but do not require
a client function to be callable, which is not an option with scripting
languages or web service clients. Internally the <link to="IEventSource" />
implementation maintains an event queue for each passive listener, and
newly arrived events are put in this queue. When the listener calls
<link to="IEventSource::getEvent"/>, first element from its internal event
queue is returned. When the client completes processing of an event,
the <link to="IEventSource::eventProcessed" /> function must be called,
acknowledging that the event was processed. It supports implementing
waitable events. On passive listener unregistration, all events from its
queue are auto-acknowledged.
</li>
</ul>
Waitable events are useful in situations where the event generator wants to track
delivery or a party wants to wait until all listeners have completed the event. A
typical example would be a vetoable event (see <link to="IVetoEvent" />) where a
listeners might veto a certain action, and thus the event producer has to make
sure that all listeners have processed the event and not vetoed before taking
the action.
A given event may have both passive and active listeners at the same time.
<b>Using events</b>
Any VirtualBox object capable of producing externally visible events provides an
@c eventSource read-only attribute, which is of the type <link to="IEventSource" />.
This event source object is notified by VirtualBox once something has happened, so
consumers may register event listeners with this event source. To register a listener,
an object implementing the <link to="IEventListener" /> interface must be provided.
For active listeners, such an object is typically created by the consumer, while for
passive listeners <link to="IEventSource::createListener" /> should be used. Please
note that a listener created with <link to="IEventSource::createListener"/> must not be used as an active listener.
Once created, the listener must be registered to listen for the desired events
(see <link to="IEventSource::registerListener" />), providing an array of
<link to="VBoxEventType" /> enums. Those elements can either be the individual
event IDs or wildcards matching multiple event IDs.
After registration, the callback's <link to="IEventListener::handleEvent" /> method is
called automatically when the event is triggered, while passive listeners have to call
<link to="IEventSource::getEvent" /> and <link to="IEventSource::eventProcessed" /> in
an event processing loop.
The IEvent interface is an abstract parent interface for all such VirtualBox events
coming in. As a result, the standard use pattern inside <link to="IEventListener::handleEvent" />
or the event processing loop is to check the <link to="#type" /> attribute of the event and
then cast to the appropriate specific interface using @c QueryInterface().
</desc>
<attribute name="type" readonly="yes" type="VBoxEventType">
<desc>
Event type.
</desc>
</attribute>
<attribute name="source" readonly="yes" type="IEventSource">
<desc>
Source of this event.
</desc>
</attribute>
<attribute name="waitable" readonly="yes" type="boolean">
<desc>
If we can wait for this event being processed. If false, <link to="#waitProcessed"/> returns immediately,
and <link to="#setProcessed"/> doesn't make sense. Non-waitable events are generally better performing,
as no additional overhead associated with waitability imposed.
Waitable events are needed when one need to be able to wait for particular event processed,
for example for vetoable changes, or if event refers to some resource which need to be kept immutable
until all consumers confirmed events.
</desc>
</attribute>
<method name="setProcessed">
<desc>
Internal method called by the system when all listeners of a particular event have called
<link to="IEventSource::eventProcessed" />. This should not be called by client code.
</desc>
</method>
<method name="waitProcessed">
<desc>
Wait until time outs, or this event is processed. Event must be waitable for this operation to have
described semantics, for non-waitable returns true immediately.
</desc>
<param name="timeout" type="long" dir="in">
<desc>
Maximum time to wait for event processing, in ms;
0 = no wait, -1 = indefinite wait.
</desc>
</param>
<param name="result" type="boolean" dir="return">
<desc>If this event was processed before timeout.</desc>
</param>
</method>
</interface>
<interface
name="IReusableEvent" extends="IEvent"
uuid="69bfb134-80f6-4266-8e20-16371f68fa25"
wsmap="managed"
>
<desc>Base abstract interface for all reusable events.</desc>
<attribute name="generation" readonly="yes" type="unsigned long">
<desc>Current generation of event, incremented on reuse.</desc>
</attribute>
<method name="reuse">
<desc>
Marks an event as reused, increments 'generation', fields shall no
longer be considered valid.
</desc>
</method>
</interface>
<interface
name="IMachineEvent" extends="IEvent"
uuid="92ed7b1a-0d96-40ed-ae46-a564d484325e"
wsmap="managed" id="MachineEvent"
>
<desc>Base abstract interface for all machine events.</desc>
<attribute name="machineId" readonly="yes" type="uuid" mod="string">
<desc>ID of the machine this event relates to.</desc>
</attribute>
</interface>
<interface
name="IMachineStateChangedEvent" extends="IMachineEvent"
uuid="5748F794-48DF-438D-85EB-98FFD70D18C9"
wsmap="managed" autogen="VBoxEvent" id="OnMachineStateChanged"
>
<desc>Machine state change event.</desc>
<attribute name="state" readonly="yes" type="MachineState">
<desc>New execution state.</desc>
</attribute>
</interface>
<interface
name="IMachineDataChangedEvent" extends="IMachineEvent"
uuid="abe94809-2e88-4436-83d7-50f3e64d0503"
wsmap="managed" autogen="VBoxEvent" id="OnMachineDataChanged"
>
<desc>
Any of the settings of the given machine has changed.
</desc>
<attribute name="temporary" readonly="yes" type="boolean">
<desc>@c true if the settings change is temporary. All permanent
settings changes will trigger an event, and only temporary settings
changes for running VMs will trigger an event. Note: sending events
for temporary changes is NOT IMPLEMENTED.</desc>
</attribute>
</interface>
<interface
name="IMediumRegisteredEvent" extends="IEvent"
uuid="53fac49a-b7f1-4a5a-a4ef-a11dd9c2a458"
wsmap="managed" autogen="VBoxEvent" id="OnMediumRegistered"
>
<desc>
The given medium was registered or unregistered
within this VirtualBox installation.
</desc>
<attribute name="mediumId" readonly="yes" type="uuid" mod="string">
<desc>ID of the medium this event relates to.</desc>
</attribute>
<attribute name="mediumType" readonly="yes" type="DeviceType">
<desc>Type of the medium this event relates to.</desc>
</attribute>
<attribute name="registered" type="boolean" readonly="yes">
<desc>
If @c true, the medium was registered, otherwise it was
unregistered.
</desc>
</attribute>
</interface>
<interface
name="IMediumConfigChangedEvent" extends="IEvent"
uuid="dd3e2654-a161-41f1-b583-4892f4a9d5d5"
wsmap="managed" autogen="VBoxEvent" id="OnMediumConfigChanged"
>
<desc>
The configuration of the given medium was changed (location, properties,
child/parent or anything else).
</desc>
<attribute name="medium" type="IMedium" readonly="yes">
<desc>ID of the medium this event relates to.</desc>
</attribute>
</interface>
<interface
name="IMachineRegisteredEvent" extends="IMachineEvent"
uuid="c354a762-3ff2-4f2e-8f09-07382ee25088"
wsmap="managed" autogen="VBoxEvent" id="OnMachineRegistered"
>
<desc>
The given machine was registered or unregistered
within this VirtualBox installation.
</desc>
<attribute name="registered" type="boolean" readonly="yes">
<desc>
If @c true, the machine was registered, otherwise it was
unregistered.
</desc>
</attribute>
</interface>
<interface
name="ISessionStateChangedEvent" extends="IMachineEvent"
uuid="714a3eef-799a-4489-86cd-fe8e45b2ff8e"
wsmap="managed" autogen="VBoxEvent" id="OnSessionStateChanged"
>
<desc>
The state of the session for the given machine was changed.
<see><link to="IMachine::sessionState"/></see>
</desc>
<attribute name="state" type="SessionState" readonly="yes">
<desc>
New session state.
</desc>
</attribute>
</interface>
<interface
name="IGuestPropertyChangedEvent" extends="IMachineEvent"
uuid="2d0f4c6f-a77e-45c5-96d2-7ca7daae63a9"
wsmap="managed" autogen="VBoxEvent" id="OnGuestPropertyChanged"
>
<desc>
Notification when a guest property has changed.
</desc>
<attribute name="name" readonly="yes" type="wstring">
<desc>
The name of the property that has changed.
</desc>
</attribute>
<attribute name="value" readonly="yes" type="wstring">
<desc>
The new property value.
</desc>
</attribute>
<attribute name="flags" readonly="yes" type="wstring">
<desc>
The new property flags.
</desc>
</attribute>
<attribute name="fWasDeleted" readonly="yes" type="boolean">
<desc>
A flag which indicates that property was deleted.
</desc>
</attribute>
</interface>
<interface
name="ISnapshotEvent" extends="IMachineEvent"
uuid="21637b0e-34b8-42d3-acfb-7e96daf77c22"
wsmap="managed" id="SnapshotEvent"
>
<desc>Base interface for all snapshot events.</desc>
<attribute name="snapshotId" readonly="yes" type="uuid" mod="string">
<desc>ID of the snapshot this event relates to.</desc>
</attribute>
</interface>
<interface
name="ISnapshotTakenEvent" extends="ISnapshotEvent"
uuid="d27c0b3d-6038-422c-b45e-6d4a0503d9f1"
wsmap="managed" autogen="VBoxEvent" id="OnSnapshotTaken"
>
<desc>
A new snapshot of the machine has been taken.
<see><link to="ISnapshot"/></see>
</desc>
<attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/>
</interface>
<interface
name="ISnapshotDeletedEvent" extends="ISnapshotEvent"
uuid="c48f3401-4a9e-43f4-b7a7-54bd285e22f4"
wsmap="managed" autogen="VBoxEvent" id="OnSnapshotDeleted"
>
<desc>
Snapshot of the given machine has been deleted.
<note>
This notification is delivered <b>after</b> the snapshot
object has been uninitialized on the server (so that any
attempt to call its methods will return an error).
</note>
<see><link to="ISnapshot"/></see>
</desc>
<attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/>
</interface>
<interface
name="ISnapshotRestoredEvent" extends="ISnapshotEvent"
uuid="f4d803b4-9b2d-4377-bfe6-9702e881516b"
wsmap="managed" autogen="VBoxEvent" id="OnSnapshotRestored"
>
<desc>
Snapshot of the given machine has been restored.
<see><link to="ISnapshot"/></see>
</desc>
<attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/>
</interface>
<interface
name="ISnapshotChangedEvent" extends="ISnapshotEvent"
uuid="07541941-8079-447a-a33e-47a69c7980db"
wsmap="managed" autogen="VBoxEvent" id="OnSnapshotChanged"
>
<desc>
Snapshot properties (name and/or description) have been changed.
<see><link to="ISnapshot"/></see>
</desc>
<attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/>
</interface>
<interface
name="IMousePointerShapeChangedEvent" extends="IEvent"
uuid="a6dcf6e8-416b-4181-8c4a-45ec95177aef"
wsmap="managed" autogen="VBoxEvent" id="OnMousePointerShapeChanged"
>
<desc>
Notification when the guest mouse pointer shape has
changed. The new shape data is given.
</desc>
<attribute name="visible" type="boolean" readonly="yes">
<desc>
Flag whether the pointer is visible.
</desc>
</attribute>
<attribute name="alpha" type="boolean" readonly="yes">
<desc>
Flag whether the pointer has an alpha channel.
</desc>
</attribute>
<attribute name="xhot" type="unsigned long" readonly="yes">
<desc>
The pointer hot spot X coordinate.
</desc>
</attribute>
<attribute name="yhot" type="unsigned long" readonly="yes">
<desc>
The pointer hot spot Y coordinate.
</desc>
</attribute>
<attribute name="width" type="unsigned long" readonly="yes">
<desc>
Width of the pointer shape in pixels.
</desc>
</attribute>
<attribute name="height" type="unsigned long" readonly="yes">
<desc>
Height of the pointer shape in pixels.
</desc>
</attribute>
<attribute name="shape" type="octet" safearray="yes" readonly="yes">
<desc>
Shape buffer arrays.
The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
followed by a 32-bpp XOR (color) mask.
For pointers without alpha channel the XOR mask pixels are
32-bit values: (lsb)BGR0(msb). For pointers with alpha channel
the XOR mask consists of (lsb)BGRA(msb) 32-bit values.
An AND mask is used for pointers with alpha channel, so if the
callback does not support alpha, the pointer could be
displayed as a normal color pointer.
The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
height</tt>. The padding bits at the end of each scanline are
undefined.
The XOR mask follows the AND mask on the next 4-byte aligned
offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) & ~3</tt>.
Bytes in the gap between the AND and the XOR mask are undefined.
The XOR mask scanlines have no gap between them and the size of
the XOR mask is: <tt>cXor = width * 4 * height</tt>.
<note>
If @a shape is 0, only the pointer visibility is changed.
</note>
</desc>
</attribute>
</interface>
<interface
name="IMouseCapabilityChangedEvent" extends="IEvent"
uuid="4a773393-7a8c-4d57-b228-9ade4049a81f"
wsmap="managed" autogen="VBoxEvent" id="OnMouseCapabilityChanged"
>
<desc>
Notification when the mouse capabilities reported by the
guest have changed. The new capabilities are passed.
</desc>
<attribute name="supportsAbsolute" type="boolean" readonly="yes">
<desc>
Supports absolute coordinates.
</desc>
</attribute>
<attribute name="supportsRelative" type="boolean" readonly="yes">
<desc>
Supports relative coordinates.
</desc>
</attribute>
<attribute name="supportsTouchScreen" type="boolean" readonly="yes">
<desc>
Supports multi-touch events, touchscreen variant.
</desc>
</attribute>
<attribute name="supportsTouchPad" type="boolean" readonly="yes">
<desc>
Supports multi-touch events, touchpad variant.
</desc>
</attribute>
<attribute name="needsHostCursor" type="boolean" readonly="yes">
<desc>
If host cursor is needed.
</desc>
</attribute>
</interface>
<interface
name="IKeyboardLedsChangedEvent" extends="IEvent"
uuid="6DDEF35E-4737-457B-99FC-BC52C851A44F"
wsmap="managed" autogen="VBoxEvent" id="OnKeyboardLedsChanged"
>
<desc>
Notification when the guest OS executes the KBD_CMD_SET_LEDS command
to alter the state of the keyboard LEDs.
</desc>
<attribute name="numLock" type="boolean" readonly="yes">
<desc>
NumLock status.
</desc>
</attribute>
<attribute name="capsLock" type="boolean" readonly="yes">
<desc>
CapsLock status.
</desc>
</attribute>
<attribute name="scrollLock" type="boolean" readonly="yes">
<desc>
ScrollLock status.
</desc>
</attribute>
</interface>
<interface
name="IStateChangedEvent" extends="IEvent"
uuid="4376693C-CF37-453B-9289-3B0F521CAF27"
wsmap="managed" autogen="VBoxEvent" id="OnStateChanged"
>
<desc>
Notification when the execution state of the machine has changed.
The new state is given.
</desc>
<attribute name="state" type="MachineState" readonly="yes">
<desc>
New machine state.
</desc>
</attribute>
</interface>
<interface
name="IAdditionsStateChangedEvent" extends="IEvent"
uuid="D70F7915-DA7C-44C8-A7AC-9F173490446A"
wsmap="managed" autogen="VBoxEvent" id="OnAdditionsStateChanged"
>
<desc>
Notification when a Guest Additions property changes.
Interested callees should query IGuest attributes to
find out what has changed.
</desc>
<attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/>
</interface>
<interface
name="INetworkAdapterChangedEvent" extends="IEvent"
uuid="08889892-1EC6-4883-801D-77F56CFD0103"
wsmap="managed" autogen="VBoxEvent" id="OnNetworkAdapterChanged"
>
<desc>
Notification when a property of one of the
virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
changes. Interested callees should use INetworkAdapter methods and
attributes to find out what has changed.
</desc>
<attribute name="networkAdapter" type="INetworkAdapter" readonly="yes">
<desc>
Network adapter that is subject to change.
</desc>
</attribute>
</interface>
<interface
name="IAudioAdapterChangedEvent" extends="IEvent"
uuid="D5ABC823-04D0-4DB6-8D66-DC2F033120E1"
wsmap="managed" autogen="VBoxEvent" id="OnAudioAdapterChanged"
>
<desc>
Notification when a property of the audio adapter changes.
Interested callees should use IAudioAdapter methods and attributes
to find out what has changed.
</desc>
<attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
<desc>
Audio adapter that is subject to change.
</desc>
</attribute>
</interface>
<interface
name="ISerialPortChangedEvent" extends="IEvent"
uuid="3BA329DC-659C-488B-835C-4ECA7AE71C6C"
wsmap="managed" autogen="VBoxEvent" id="OnSerialPortChanged"
>
<desc>
Notification when a property of one of the
virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
Interested callees should use ISerialPort methods and attributes
to find out what has changed.
</desc>
<attribute name="serialPort" type="ISerialPort" readonly="yes">
<desc>
Serial port that is subject to change.
</desc>
</attribute>
</interface>
<interface
name="IParallelPortChangedEvent" extends="IEvent"
uuid="813C99FC-9849-4F47-813E-24A75DC85615"
wsmap="managed" autogen="VBoxEvent" id="OnParallelPortChanged"
>
<desc>
Notification when a property of one of the
virtual <link to="IMachine::getParallelPort">parallel ports</link>
changes. Interested callees should use ISerialPort methods and
attributes to find out what has changed.
</desc>
<attribute name="parallelPort" type="IParallelPort" readonly="yes">
<desc>
Parallel port that is subject to change.
</desc>
</attribute>
</interface>
<interface
name="IStorageControllerChangedEvent" extends="IEvent"
uuid="6BB335CC-1C58-440C-BB7B-3A1397284C7B"
wsmap="managed" autogen="VBoxEvent" id="OnStorageControllerChanged"
>
<desc>
Notification when a
<link to="IMachine::storageControllers">storage controllers</link>
changes.
</desc>
<attribute name="machinId" type="uuid" mod="string" readonly="yes">
<desc>
The id of the machine containing the storage controller.
</desc>
</attribute>
<attribute name="controllerName" type="wstring" readonly="yes">
<desc>
The name of the storage controller.
</desc>
</attribute>
</interface>
<interface
name="IMediumChangedEvent" extends="IEvent"
uuid="0FE2DA40-5637-472A-9736-72019EABD7DE"
wsmap="managed" autogen="VBoxEvent" id="OnMediumChanged"
>
<desc>
Notification when a
<link to="IMachine::mediumAttachments">medium attachment</link>
changes.
</desc>
<attribute name="mediumAttachment" type="IMediumAttachment" readonly="yes">
<desc>
Medium attachment that is subject to change.
</desc>
</attribute>
</interface>
<interface
name="IClipboardModeChangedEvent" extends="IEvent"
uuid="cac21692-7997-4595-a731-3a509db604e5"
wsmap="managed" autogen="VBoxEvent" id="OnClipboardModeChanged"
>
<desc>
Notification when the shared clipboard mode changes.
</desc>
<attribute name="clipboardMode" type="ClipboardMode" readonly="yes">
<desc>
The new clipboard mode.
</desc>
</attribute>
</interface>
<interface
name="IClipboardFileTransferModeChangedEvent" extends="IEvent"
uuid="00391758-00B1-4E9D-0000-11FA00F9D583"
wsmap="managed" autogen="VBoxEvent" id="OnClipboardFileTransferModeChanged"
>
<desc>
Notification when the shared clipboard file transfer mode changes.
</desc>
<attribute name="enabled" type="boolean" readonly="yes">
<desc>
Whether file transfers are allowed or not.
</desc>
</attribute>
</interface>
<interface
name="IDnDModeChangedEvent" extends="IEvent"
uuid="b55cf856-1f8b-4692-abb4-462429fae5e9"
wsmap="managed" autogen="VBoxEvent" id="OnDnDModeChanged"
>
<desc>
Notification when the drag'n drop mode changes.
</desc>
<attribute name="dndMode" type="DnDMode" readonly="yes">
<desc>
The new drag'n drop mode.
</desc>
</attribute>
</interface>
<interface
name="ICPUChangedEvent" extends="IEvent"
uuid="4da2dec7-71b2-4817-9a64-4ed12c17388e"
wsmap="managed" autogen="VBoxEvent" id="OnCPUChanged"
>
<desc>
Notification when a CPU changes.
</desc>
<attribute name="CPU" type="unsigned long" readonly="yes">
<desc>
The CPU which changed.
</desc>
</attribute>
<attribute name="add" type="boolean" readonly="yes">
<desc>
Flag whether the CPU was added or removed.
</desc>
</attribute>
</interface>
<interface
name="ICPUExecutionCapChangedEvent" extends="IEvent"
uuid="dfa7e4f5-b4a4-44ce-85a8-127ac5eb59dc"
wsmap="managed" autogen="VBoxEvent" id="OnCPUExecutionCapChanged"
>
<desc>
Notification when the CPU execution cap changes.
</desc>
<attribute name="executionCap" type="unsigned long" readonly="yes">
<desc>
The new CPU execution cap value. (1-100)
</desc>
</attribute>
</interface>
<interface
name="IGuestKeyboardEvent" extends="IEvent"
uuid="88394258-7006-40d4-b339-472ee3801844"
wsmap="managed" autogen="VBoxEvent" id="OnGuestKeyboard"
>
<desc>
Notification when guest keyboard event happens.
</desc>
<attribute name="scancodes" type="long" safearray="yes" readonly="yes">
<desc>
Array of scancodes.
</desc>
</attribute>
</interface>
<enum
name="GuestMouseEventMode"
uuid="4b500146-ebba-4b7c-bc29-69c2d57a5caf"
>
<desc>
The mode (relative, absolute, multi-touch) of a pointer event.
@todo A clear pattern seems to be emerging that we should usually have
multiple input devices active for different types of reporting, so we
should really have different event types for relative (including wheel),
absolute (not including wheel) and multi-touch events.
</desc>
<const name="Relative" value="0">
<desc>
Relative event.
</desc>
</const>
<const name="Absolute" value="1">
<desc>
Absolute event.
</desc>
</const>
</enum>
<interface
name="IGuestMouseEvent" extends="IReusableEvent"
uuid="179f8647-319c-4e7e-8150-c5837bd265f6"
wsmap="managed" autogen="VBoxEvent" id="OnGuestMouse"
>
<desc>
Notification when guest mouse event happens.
</desc>
<attribute name="mode" type="GuestMouseEventMode" readonly="yes">
<desc>
If this event is relative, absolute or multi-touch.
</desc>
</attribute>
<attribute name="x" type="long" readonly="yes">
<desc>
New X position, or X delta.
</desc>
</attribute>
<attribute name="y" type="long" readonly="yes">
<desc>
New Y position, or Y delta.
</desc>
</attribute>
<attribute name="z" type="long" readonly="yes">
<desc>
Z delta.
</desc>
</attribute>
<attribute name="w" type="long" readonly="yes">
<desc>
W delta.
</desc>
</attribute>
<attribute name="buttons" type="long" readonly="yes">
<desc>
Button state bitmask.
</desc>
</attribute>
</interface>
<interface
name="IGuestMultiTouchEvent" extends="IEvent"
uuid="1f99d9dc-c144-4c28-9f88-e6f488db5441"
wsmap="managed" autogen="VBoxEvent" id="OnGuestMultiTouch"
>
<desc>
Notification when guest touch screen event happens.
</desc>
<attribute name="contactCount" type="long" readonly="yes">
<desc>
Number of contacts in the event.
</desc>
</attribute>
<attribute name="xPositions" type="short" safearray="yes" readonly="yes">
<desc>
X positions.
</desc>
</attribute>
<attribute name="yPositions" type="short" safearray="yes" readonly="yes">
<desc>
Y positions.
</desc>
</attribute>
<attribute name="contactIds" type="unsigned short" safearray="yes" readonly="yes">
<desc>
Contact identifiers.
</desc>
</attribute>
<attribute name="contactFlags" type="unsigned short" safearray="yes" readonly="yes">
<desc>
Contact state.
Bit 0: in contact.
Bit 1: in range.
</desc>
</attribute>
<attribute name="isTouchScreen" type="boolean" readonly="yes">
<desc>
Distinguishes between touchscreen and touchpad events.
</desc>
</attribute>
<attribute name="scanTime" type="unsigned long" readonly="yes">
<desc>
Timestamp of the event in milliseconds. Only relative time between events is important.
</desc>
</attribute>
</interface>
<interface
name="IGuestSessionEvent" extends="IEvent"
uuid="b9acd33f-647d-45ac-8fe9-f49b3183ba37"
wsmap="managed"
>
<desc>Base abstract interface for all guest session events.</desc>
<attribute name="session" type="IGuestSession" readonly="yes">
<desc>Guest session that is subject to change.</desc>
</attribute>
</interface>
<interface
name="IGuestSessionStateChangedEvent" extends="IGuestSessionEvent"
uuid="327e3c00-ee61-462f-aed3-0dff6cbf9904"
wsmap="managed" autogen="VBoxEvent" id="OnGuestSessionStateChanged"
>
<desc>
Notification when a guest session changed its state.
</desc>
<attribute name="id" type="unsigned long" readonly="yes">
<desc>
Session ID of guest session which was changed.
</desc>
</attribute>
<attribute name="status" type="GuestSessionStatus" readonly="yes">
<desc>
New session status.
</desc>
</attribute>
<attribute name="error" type="IVirtualBoxErrorInfo" readonly="yes">
<desc>
Error information in case of new session status is indicating an error.
The attribute <link to="IVirtualBoxErrorInfo::resultDetail"/> will contain
the runtime (IPRT) error code from the guest. See include/iprt/err.h and
include/VBox/err.h for details.
</desc>
</attribute>
</interface>
<interface
name="IGuestSessionRegisteredEvent" extends="IGuestSessionEvent"
uuid="b79de686-eabd-4fa6-960a-f1756c99ea1c"
wsmap="managed" autogen="VBoxEvent" id="OnGuestSessionRegistered"
>
<desc>
Notification when a guest session was registered or unregistered.
</desc>
<attribute name="registered" type="boolean" readonly="yes">
<desc>
If @c true, the guest session was registered, otherwise it was
unregistered.
</desc>
</attribute>
</interface>
<interface
name="IGuestProcessEvent" extends="IGuestSessionEvent"
uuid="2405f0e5-6588-40a3-9b0a-68c05ba52c4b"
wsmap="managed"
>
<desc>Base abstract interface for all guest process events.</desc>
<attribute name="process" type="IGuestProcess" readonly="yes">
<desc>
Guest process object which is related to this event.
</desc>
</attribute>
<attribute name="pid" type="unsigned long" readonly="yes">
<desc>
Guest process ID (PID).
</desc>
</attribute>
</interface>
<interface
name="IGuestProcessRegisteredEvent" extends="IGuestProcessEvent"
uuid="1d89e2b3-c6ea-45b6-9d43-dc6f70cc9f02"
wsmap="managed" autogen="VBoxEvent" id="OnGuestProcessRegistered"
>
<desc>
Notification when a guest process was registered or unregistered.
</desc>
<attribute name="registered" type="boolean" readonly="yes">
<desc>
If @c true, the guest process was registered, otherwise it was
unregistered.
</desc>
</attribute>
</interface>
<interface
name="IGuestProcessStateChangedEvent" extends="IGuestProcessEvent"
uuid="c365fb7b-4430-499f-92c8-8bed814a567a"
wsmap="managed" autogen="VBoxEvent" id="OnGuestProcessStateChanged"
>
<desc>
Notification when a guest process changed its state.
</desc>
<attribute name="status" type="ProcessStatus" readonly="yes">
<desc>
New guest process status.
</desc>
</attribute>
<attribute name="error" type="IVirtualBoxErrorInfo" readonly="yes">
<desc>
Error information in case of new session status is indicating an error.
The attribute <link to="IVirtualBoxErrorInfo::resultDetail"/> will contain
the runtime (IPRT) error code from the guest. See include/iprt/err.h and
include/VBox/err.h for details.
</desc>
</attribute>
</interface>
<interface
name="IGuestProcessIOEvent" extends="IGuestProcessEvent"
uuid="9ea9227c-e9bb-49b3-bfc7-c5171e93ef38"
wsmap="managed"
>
<desc>
Base abstract interface for all guest process input/output (IO) events.
</desc>
<attribute name="handle" type="unsigned long" readonly="yes">
<desc>
Input/output (IO) handle involved in this event. Usually 0 is stdin,
1 is stdout and 2 is stderr.
</desc>
</attribute>
<attribute name="processed" type="unsigned long" readonly="yes">
<desc>
Processed input or output (in bytes).
</desc>
</attribute>
</interface>
<interface
name="IGuestProcessInputNotifyEvent" extends="IGuestProcessIOEvent"
uuid="0de887f2-b7db-4616-aac6-cfb94d89ba78"
wsmap="managed" autogen="VBoxEvent" id="OnGuestProcessInputNotify"
>
<desc>
Notification when a guest process' stdin became available.
<note>This event is right now not implemented!</note>
</desc>
<attribute name="status" type="ProcessInputStatus" readonly="yes">
<desc>
Current process input status.
</desc>
</attribute>
</interface>
<interface
name="IGuestProcessOutputEvent" extends="IGuestProcessIOEvent"
uuid="d3d5f1ee-bcb2-4905-a7ab-cc85448a742b"
wsmap="managed" autogen="VBoxEvent" id="OnGuestProcessOutput"
>
<desc>
Notification when there is guest process output available for reading.
</desc>
<attribute name="data" type="octet" safearray="yes" readonly="yes">
<desc>
Actual output data.
</desc>
</attribute>
</interface>
<interface
name="IGuestFileEvent" extends="IGuestSessionEvent"
uuid="c8adb7b0-057d-4391-b928-f14b06b710c5"
wsmap="managed"
>
<desc>Base abstract interface for all guest file events.</desc>
<attribute name="file" type="IGuestFile" readonly="yes">
<desc>
Guest file object which is related to this event.
</desc>
</attribute>
</interface>
<interface
name="IGuestFileRegisteredEvent" extends="IGuestFileEvent"
uuid="d0d93830-70a2-487e-895e-d3fc9679f7b3"
wsmap="managed" autogen="VBoxEvent" id="OnGuestFileRegistered"
>
<desc>
Notification when a guest file was registered or unregistered.
</desc>
<attribute name="registered" type="boolean" readonly="yes">
<desc>
If @c true, the guest file was registered, otherwise it was
unregistered.
</desc>
</attribute>
</interface>
<interface
name="IGuestFileStateChangedEvent" extends="IGuestFileEvent"
uuid="d37fe88f-0979-486c-baa1-3abb144dc82d"
wsmap="managed" autogen="VBoxEvent" id="OnGuestFileStateChanged"
>
<desc>
Notification when a guest file changed its state.
</desc>
<attribute name="status" type="FileStatus" readonly="yes">
<desc>
New guest file status.
</desc>
</attribute>
<attribute name="error" type="IVirtualBoxErrorInfo" readonly="yes">
<desc>
Error information in case of new session status is indicating an error.
The attribute <link to="IVirtualBoxErrorInfo::resultDetail"/> will contain
the runtime (IPRT) error code from the guest. See include/iprt/err.h and
include/VBox/err.h for details.
</desc>
</attribute>
<!-- Note: No events for reads/writes for performance reasons.
See dedicated events IGuestFileReadEvent and
IGuestFileWriteEvent. -->
</interface>
<interface
name="IGuestFileIOEvent" extends="IGuestFileEvent"
uuid="b5191a7c-9536-4ef8-820e-3b0e17e5bbc8"
wsmap="managed"
>
<desc>
Base abstract interface for all guest file input/output (IO) events.
</desc>
<attribute name="offset" type="long long" readonly="yes">
<desc>
Current offset (in bytes).
</desc>
</attribute>
<attribute name="processed" type="unsigned long" readonly="yes">
<desc>
Processed input or output (in bytes).
</desc>
</attribute>
</interface>
<interface
name="IGuestFileOffsetChangedEvent" extends="IGuestFileIOEvent"
uuid="e8f79a21-1207-4179-94cf-ca250036308f"
wsmap="managed" autogen="VBoxEvent" id="OnGuestFileOffsetChanged"
>
<desc>
Notification when a guest file changed its current offset via <link to="IFile::seek" />.
</desc>
<attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/>
</interface>
<interface
name="IGuestFileSizeChangedEvent" extends="IGuestFileEvent"
uuid="d78374e9-486e-472f-481b-969746af2480"
wsmap="managed" autogen="VBoxEvent" id="OnGuestFileSizeChanged"
>
<desc>
Notification when a guest file changed its size via <link to="IFile::setSize" />.
</desc>
<attribute name="newSize" readonly="yes" type="long long"/>
</interface>
<interface
name="IGuestFileReadEvent" extends="IGuestFileIOEvent"
uuid="4ee3cbcb-486f-40db-9150-deee3fd24189"
wsmap="managed" autogen="VBoxEvent" id="OnGuestFileRead"
>
<desc>
Notification when data has been read from a guest file.
</desc>
<attribute name="data" type="octet" safearray="yes" readonly="yes">
<desc>
Actual data read.
</desc>
</attribute>
</interface>
<interface
name="IGuestFileWriteEvent" extends="IGuestFileIOEvent"
uuid="e062a915-3cf5-4c0a-bc90-9b8d4cc94d89"
wsmap="managed" autogen="VBoxEvent" id="OnGuestFileWrite"
>
<desc>
Notification when data has been written to a guest file.
</desc>
<attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/>
</interface>
<interface
name="IVRDEServerChangedEvent" extends="IEvent"
uuid="a06fd66a-3188-4c8c-8756-1395e8cb691c"
wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerChanged"
>
<desc>
Notification when a property of the
<link to="IMachine::VRDEServer">VRDE server</link> changes.
Interested callees should use IVRDEServer methods and attributes to
find out what has changed.
</desc>
<attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/>
</interface>
<interface
name="IVRDEServerInfoChangedEvent" extends="IEvent"
uuid="dd6a1080-e1b7-4339-a549-f0878115596e"
wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerInfoChanged"
>
<desc>
Notification when the status of the VRDE server changes. Interested callees
should use <link to="IConsole::VRDEServerInfo">IVRDEServerInfo</link>
attributes to find out what is the current status.
</desc>
<attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/>
</interface>
<interface
name="IRecordingChangedEvent" extends="IEvent"
uuid="B5DDB370-08A7-4C8F-910D-47AABD67253A"
wsmap="managed" autogen="VBoxEvent" id="OnRecordingChanged"
>
<desc>
Notification when recording settings have changed.
</desc>
<attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/>
</interface>
<interface
name="IUSBControllerChangedEvent" extends="IEvent"
uuid="93BADC0C-61D9-4940-A084-E6BB29AF3D83"
wsmap="managed" autogen="VBoxEvent" id="OnUSBControllerChanged"
>
<desc>
Notification when a property of the virtual
<link to="IMachine::USBControllers">USB controllers</link> changes.
Interested callees should use IUSBController methods and attributes to
find out what has changed.
</desc>
<attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/>
</interface>
<interface
name="IUSBDeviceStateChangedEvent" extends="IEvent"
uuid="806da61b-6679-422a-b629-51b06b0c6d93"
wsmap="managed" autogen="VBoxEvent" id="OnUSBDeviceStateChanged"
>
<desc>
Notification when a USB device is attached to or detached from
the virtual USB controller.
This notification is sent as a result of the indirect
request to attach the device because it matches one of the
machine USB filters, or as a result of the direct request
issued by <link to="IConsole::attachUSBDevice"/> or
<link to="IConsole::detachUSBDevice"/>.
This notification is sent in case of both a succeeded and a
failed request completion. When the request succeeds, the
@a error parameter is @c null, and the given device has been
already added to (when @a attached is @c true) or removed from
(when @a attached is @c false) the collection represented by
<link to="IConsole::USBDevices"/>. On failure, the collection
doesn't change and the @a error parameter represents the error
message describing the failure.
</desc>
<attribute name="device" type="IUSBDevice" readonly="yes">
<desc>
Device that is subject to state change.
</desc>
</attribute>
<attribute name="attached" type="boolean" readonly="yes">
<desc>
@c true if the device was attached and @c false otherwise.
</desc>
</attribute>
<attribute name="error" type="IVirtualBoxErrorInfo" readonly="yes">
<desc>
@c null on success or an error message object on failure.
</desc>
</attribute>
</interface>
<interface
name="ISharedFolderChangedEvent" extends="IEvent"
uuid="B66349B5-3534-4239-B2DE-8E1535D94C0B"
wsmap="managed" autogen="VBoxEvent" id="OnSharedFolderChanged"
>
<desc>
Notification when a shared folder is added or removed.
The @a scope argument defines one of three scopes:
<link to="IVirtualBox::sharedFolders">global shared folders</link>
(<link to="Scope_Global">Global</link>),
<link to="IMachine::sharedFolders">permanent shared folders</link> of
the machine (<link to="Scope_Machine">Machine</link>) or <link
to="IConsole::sharedFolders">transient shared folders</link> of the
machine (<link to="Scope_Session">Session</link>). Interested callees
should use query the corresponding collections to find out what has
changed.
</desc>
<attribute name="scope" type="Scope" readonly="yes">
<desc>
Scope of the notification.
</desc>
</attribute>
</interface>
<interface
name="IRuntimeErrorEvent" extends="IEvent"
uuid="883DD18B-0721-4CDE-867C-1A82ABAF914C"
wsmap="managed" autogen="VBoxEvent" autogenflags="BSTR" id="OnRuntimeError"
>
<desc>
Notification when an error happens during the virtual
machine execution.
There are three kinds of runtime errors:
<ul>
<li><i>fatal</i></li>
<li><i>non-fatal with retry</i></li>
<li><i>non-fatal warnings</i></li>
</ul>
<b>Fatal</b> errors are indicated by the @a fatal parameter set
to @c true. In case of fatal errors, the virtual machine
execution is always paused before calling this notification, and
the notification handler is supposed either to immediately save
the virtual machine state using <link to="IMachine::saveState"/>
or power it off using <link to="IConsole::powerDown"/>.
Resuming the execution can lead to unpredictable results.
<b>Non-fatal</b> errors and warnings are indicated by the
@a fatal parameter set to @c false. If the virtual machine
is in the Paused state by the time the error notification is
received, it means that the user can <i>try to resume</i> the machine
execution after attempting to solve the problem that caused the
error. In this case, the notification handler is supposed
to show an appropriate message to the user (depending on the
value of the @a id parameter) that offers several actions such
as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
wants to retry, the notification handler should continue
the machine execution using the <link to="IConsole::resume"/>
call. If the machine execution is not Paused during this
notification, then it means this notification is a <i>warning</i>
(for example, about a fatal condition that can happen very soon);
no immediate action is required from the user, the machine
continues its normal execution.
Note that in either case the notification handler
<b>must not</b> perform any action directly on a thread
where this notification is called. Everything it is allowed to
do is to post a message to another thread that will then talk
to the user and take the corresponding action.
Currently, the following error identifiers are known:
<ul>
<li><tt>"HostMemoryLow"</tt></li>
<li><tt>"HostAudioNotResponding"</tt></li>
<li><tt>"VDIStorageFull"</tt></li>
<li><tt>"3DSupportIncompatibleAdditions"</tt></li>
</ul>
</desc>
<attribute name="fatal" type="boolean" readonly="yes">
<desc>
Whether the error is fatal or not.
</desc>
</attribute>
<attribute name="id" type="wstring" readonly="yes">
<desc>
Error identifier.
</desc>
</attribute>
<attribute name="message" type="wstring" readonly="yes">
<desc>
Optional error message.
</desc>
</attribute>
</interface>
<interface
name="IEventSourceChangedEvent" extends="IEvent"
uuid="e7932cb8-f6d4-4ab6-9cbf-558eb8959a6a"
waitable="yes"
wsmap="managed" autogen="VBoxEvent" id="OnEventSourceChanged"
>
<desc>
Notification when an event source state changes (listener added or removed).
</desc>
<attribute name="listener" type="IEventListener" readonly="yes">
<desc>
Event listener which has changed.
</desc>
</attribute>
<attribute name="add" type="boolean" readonly="yes">
<desc>
Flag whether listener was added or removed.
</desc>
</attribute>
</interface>
<interface
name="IExtraDataChangedEvent" extends="IEvent"
uuid="024F00CE-6E0B-492A-A8D0-968472A94DC7"
wsmap="managed" autogen="VBoxEvent" autogenflags="BSTR" id="OnExtraDataChanged"
>
<desc>
Notification when machine specific or global extra data
has changed.
</desc>
<attribute name="machineId" type="uuid" mod="string" readonly="yes">
<desc>
ID of the machine this event relates to.
Null for global extra data changes.
</desc>
</attribute>
<attribute name="key" type="wstring" readonly="yes">
<desc>
Extra data key that has changed.
</desc>
</attribute>
<attribute name="value" type="wstring" readonly="yes">
<desc>
Extra data value for the given key.
</desc>
</attribute>
</interface>
<interface
name="IVetoEvent" extends="IEvent"
uuid="7c5e945f-2354-4267-883f-2f417d216519"
wsmap="managed"
>
<desc>Base abstract interface for veto events.</desc>
<method name="addVeto">
<desc>
Adds a veto on this event.
</desc>
<param name="reason" type="wstring" dir="in">
<desc>
Reason for veto, could be null or empty string.
</desc>
</param>
</method>
<method name="isVetoed">
<desc>
If this event was vetoed.
</desc>
<param name="result" type="boolean" dir="return">
<desc>
Reason for veto.
</desc>
</param>
</method>
<method name="getVetos">
<desc>
Current veto reason list, if size is 0 - no veto.
</desc>
<param name="result" type="wstring" dir="return" safearray="yes">
<desc>
Array of reasons for veto provided by different event handlers.
</desc>
</param>
</method>
<method name="addApproval">
<desc>
Adds an approval on this event.
</desc>
<param name="reason" type="wstring" dir="in">
<desc>
Reason for approval, could be null or empty string.
</desc>
</param>
</method>
<method name="isApproved">
<desc>
If this event was approved.
</desc>
<param name="result" type="boolean" dir="return" />
</method>
<method name="getApprovals">
<desc>
Current approval reason list, if size is 0 - no approvals.
</desc>
<param name="result" type="wstring" dir="return" safearray="yes">
<desc>
Array of reasons for approval provided by different event handlers.
</desc>
</param>
</method>
</interface>
<interface
name="IExtraDataCanChangeEvent" extends="IVetoEvent"
uuid="245d88bd-800a-40f8-87a6-170d02249a55"
wsmap="managed" autogen="VBoxEvent" id="OnExtraDataCanChange"
waitable="yes"
>
<desc>
Notification when someone tries to change extra data for
either the given machine or (if @c null) global extra data.
This gives the chance to veto against changes.
</desc>
<attribute name="machineId" type="uuid" mod="string" readonly="yes">
<desc>
ID of the machine this event relates to.
Null for global extra data changes.
</desc>
</attribute>
<attribute name="key" type="wstring" readonly="yes">
<desc>
Extra data key that has changed.
</desc>
</attribute>
<attribute name="value" type="wstring" readonly="yes">
<desc>
Extra data value for the given key.
</desc>
</attribute>
</interface>
<interface
name="ICanShowWindowEvent" extends="IVetoEvent"
uuid="adf292b0-92c9-4a77-9d35-e058b39fe0b9"
wsmap="managed" autogen="VBoxEvent" id="OnCanShowWindow"
waitable="yes"
>
<desc>
Notification when a call to
<link to="IMachine::canShowConsoleWindow"/> is made by a
front-end to check if a subsequent call to
<link to="IMachine::showConsoleWindow"/> can succeed.
The callee should give an answer appropriate to the current
machine state using event veto. This answer must
remain valid at least until the next
<link to="IConsole::state">machine state</link> change.
</desc>
<attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/>
</interface>
<interface
name="IShowWindowEvent" extends="IEvent"
uuid="B0A0904D-2F05-4D28-855F-488F96BAD2B2"
wsmap="managed" autogen="VBoxEvent" id="OnShowWindow"
waitable="yes"
>
<desc>
Notification when a call to
<link to="IMachine::showConsoleWindow"/>
requests the console window to be activated and brought to
foreground on the desktop of the host PC.
This notification should cause the VM console process to
perform the requested action as described above. If it is
impossible to do it at a time of this notification, this
method should return a failure.
Note that many modern window managers on many platforms
implement some sort of focus stealing prevention logic, so
that it may be impossible to activate a window without the
help of the currently active application (which is supposedly
an initiator of this notification). In this case, this method
must return a non-zero identifier that represents the
top-level window of the VM console process. The caller, if it
represents a currently active process, is responsible to use
this identifier (in a platform-dependent manner) to perform
actual window activation.
This method must set @a winId to zero if it has performed all
actions necessary to complete the request and the console
window is now active and in foreground, to indicate that no
further action is required on the caller's side.
</desc>
<attribute name="winId" type="long long">
<desc>
Platform-dependent identifier of the top-level VM console
window, or zero if this method has performed all actions
necessary to implement the <i>show window</i> semantics for
the given platform and/or this VirtualBox front-end.
</desc>
</attribute>
</interface>
<interface
name="INATRedirectEvent" extends="IMachineEvent"
uuid="24eef068-c380-4510-bc7c-19314a7352f1"
wsmap="managed" autogen="VBoxEvent" id="OnNATRedirect"
>
<desc>
Notification when NAT redirect rule added or removed.
</desc>
<attribute name="slot" type="unsigned long" readonly="yes">
<desc>
Adapter which NAT attached to.
</desc>
</attribute>
<attribute name="remove" type="boolean" readonly="yes">
<desc>
Whether rule remove or add.
</desc>
</attribute>
<attribute name="name" type="wstring" readonly="yes">
<desc>
Name of the rule.
</desc>
</attribute>
<attribute name="proto" type="NATProtocol" readonly="yes">
<desc>
Protocol (TCP or UDP) of the redirect rule.
</desc>
</attribute>
<attribute name="hostIP" type="wstring" readonly="yes">
<desc>
Host ip address to bind socket on.
</desc>
</attribute>
<attribute name="hostPort" type="long" readonly="yes">
<desc>
Host port to bind socket on.
</desc>
</attribute>
<attribute name="guestIP" type="wstring" readonly="yes">
<desc>
Guest ip address to redirect to.
</desc>
</attribute>
<attribute name="guestPort" type="long" readonly="yes">
<desc>
Guest port to redirect to.
</desc>
</attribute>
</interface>
<interface
name="IHostAudioDeviceChangedEvent" extends="IEvent"
waitable="yes"
uuid="8dcc633f-7b03-4f0a-9f40-7a784dd0835a"
wsmap="managed" autogen="VBoxEvent" id="OnHostAudioDeviceChangedEvent"
>
<desc>
Notification when a host audio device state has changed.
</desc>
<attribute name="device" type="IHostAudioDevice" readonly="yes">
<desc>
Host audio device that has changed.
</desc>
</attribute>
<attribute name="new" type="boolean" readonly="yes">
<desc>
@c true if the host device is a newly detected device, @c false if not.
</desc>
</attribute>
<attribute name="state" type="AudioDeviceState" readonly="yes">
<desc>
New audio device state.
</desc>
</attribute>
<attribute name="error" type="IVirtualBoxErrorInfo" readonly="yes">
<desc>
@c null on success or an error message object on failure.
</desc>
</attribute>
</interface>
<interface
name="IHostPCIDevicePlugEvent" extends="IMachineEvent"
waitable="yes"
uuid="a0bad6df-d612-47d3-89d4-db3992533948"
wsmap="managed" autogen="VBoxEvent" autogenflags="BSTR" id="OnHostPCIDevicePlug"
>
<desc>
Notification when host PCI device is plugged/unplugged. Plugging
usually takes place on VM startup, unplug - when
<link to="IMachine::detachHostPCIDevice"/> is called.
<see><link to="IMachine::detachHostPCIDevice"/></see>
</desc>
<attribute name="plugged" type="boolean" readonly="yes">
<desc>
If device successfully plugged or unplugged.
</desc>
</attribute>
<attribute name="success" type="boolean" readonly="yes">
<desc>
If operation was successful, if false - 'message' attribute
may be of interest.
</desc>
</attribute>
<attribute name="attachment" type="IPCIDeviceAttachment" readonly="yes">
<desc>
Attachment info for this device.
</desc>
</attribute>
<attribute name="message" type="wstring" readonly="yes">
<desc>
Optional error message.
</desc>
</attribute>
</interface>
<interface
name="IVBoxSVCAvailabilityChangedEvent" extends="IEvent"
uuid="97c78fcd-d4fc-485f-8613-5af88bfcfcdc"
wsmap="managed" autogen="VBoxEvent" id="OnVBoxSVCAvailabilityChanged"
>
<desc>
Notification when VBoxSVC becomes unavailable (due to a crash or similar
unexpected circumstances) or available again.
</desc>
<attribute name="available" type="boolean" readonly="yes">
<desc>
Whether VBoxSVC is available now.
</desc>
</attribute>
</interface>
<interface
name="IBandwidthGroupChangedEvent" extends="IEvent"
uuid="334df94a-7556-4cbc-8c04-043096b02d82"
wsmap="managed" autogen="VBoxEvent" id="OnBandwidthGroupChanged"
>
<desc>
Notification when one of the bandwidth groups changed
</desc>
<attribute name="bandwidthGroup" type="IBandwidthGroup" readonly="yes">
<desc>
The changed bandwidth group.
</desc>
</attribute>
</interface>
<enum
name="GuestMonitorChangedEventType"
uuid="ef172985-7e36-4297-95be-e46396968d66"
>
<desc>
How the guest monitor has been changed.
</desc>
<const name="Enabled" value="0">
<desc>
The guest monitor has been enabled by the guest.
</desc>
</const>
<const name="Disabled" value="1">
<desc>
The guest monitor has been disabled by the guest.
</desc>
</const>
<const name="NewOrigin" value="2">
<desc>
The guest monitor origin has changed in the guest.
</desc>
</const>
</enum>
<interface
name="IGuestMonitorChangedEvent" extends="IEvent"
uuid="0f7b8a22-c71f-4a36-8e5f-a77d01d76090"
wsmap="managed" autogen="VBoxEvent" id="OnGuestMonitorChanged"
>
<desc>
Notification when the guest enables one of its monitors.
</desc>
<attribute name="changeType" type="GuestMonitorChangedEventType" readonly="yes">
<desc>
What was changed for this guest monitor.
</desc>
</attribute>
<attribute name="screenId" type="unsigned long" readonly="yes">
<desc>
The monitor which was changed.
</desc>
</attribute>
<attribute name="originX" type="unsigned long" readonly="yes">
<desc>
Physical X origin relative to the primary screen.
Valid for Enabled and NewOrigin.
</desc>
</attribute>
<attribute name="originY" type="unsigned long" readonly="yes">
<desc>
Physical Y origin relative to the primary screen.
Valid for Enabled and NewOrigin.
</desc>
</attribute>
<attribute name="width" type="unsigned long" readonly="yes">
<desc>
Width of the screen.
Valid for Enabled.
</desc>
</attribute>
<attribute name="height" type="unsigned long" readonly="yes">
<desc>
Height of the screen.
Valid for Enabled.
</desc>
</attribute>
</interface>
<interface
name="IGuestUserStateChangedEvent" extends="IEvent"
uuid="39b4e759-1ec0-4c0f-857f-fbe2a737a256"
wsmap="managed" autogen="VBoxEvent" id="OnGuestUserStateChanged"
>
<desc>
Notification when a guest user changed its state.
</desc>
<attribute name="name" type="wstring" readonly="yes">
<desc>
Name of the guest user whose state changed.
</desc>
</attribute>
<attribute name="domain" type="wstring" readonly="yes">
<desc>
Name of the FQDN (fully qualified domain name) this user is bound
to. Optional.
</desc>
</attribute>
<attribute name="state" type="GuestUserState" readonly="yes">
<desc>
What was changed for this guest user. See <link to="GuestUserState"/> for
more information.
</desc>
</attribute>
<attribute name="stateDetails" type="wstring" readonly="yes">
<desc>
Optional state details, depending on the <link to="#state"/> attribute.
</desc>
</attribute>
</interface>
<interface
name="IStorageDeviceChangedEvent" extends="IEvent"
uuid="232e9151-ae84-4b8e-b0f3-5c20c35caac9"
wsmap="managed" autogen="VBoxEvent" id="OnStorageDeviceChanged"
>
<desc>
Notification when a
<link to="IMachine::mediumAttachments">storage device</link>
is attached or removed.
</desc>
<attribute name="storageDevice" type="IMediumAttachment" readonly="yes">
<desc>
Storage device that is subject to change.
</desc>
</attribute>
<attribute name="removed" type="boolean" readonly="yes">
<desc>
Flag whether the device was removed or added to the VM.
</desc>
</attribute>
<attribute name="silent" type="boolean" readonly="yes">
<desc>
Flag whether the guest should be notified about the change.
</desc>
</attribute>
</interface>
<interface
name="INATNetworkChangedEvent" extends="IEvent"
uuid="101ae042-1a29-4a19-92cf-02285773f3b5"
wsmap="managed" autogen="VBoxEvent" id="OnNATNetworkChanged"
>
<!-- network name is common setting for all event types -->
<attribute name="networkName" type="wstring" readonly="yes"/>
</interface>
<!-- base class for start/stop events -->
<interface name="INATNetworkStartStopEvent" extends="INATNetworkChangedEvent"
uuid="269d8f6b-fa1e-4cee-91c7-6d8496bea3c1"
wsmap="managed" autogen="VBoxEvent" id="OnNATNetworkStartStop">
<attribute name="startEvent" type="boolean" readonly="yes">
<desc>
IsStartEvent is true when NAT network is started and false on stopping.
</desc>
</attribute>
</interface>
<!-- base class for modification events -->
<interface
name="INATNetworkAlterEvent" extends="INATNetworkChangedEvent"
uuid="d947adf5-4022-dc80-5535-6fb116815604"
wsmap="managed" autogen="VBoxEvent" id="OnNATNetworkAlter"
>
<attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/>
</interface>
<interface name="INATNetworkCreationDeletionEvent" extends="INATNetworkAlterEvent"
uuid="8d984a7e-b855-40b8-ab0c-44d3515b4528"
wsmap="managed" autogen="VBoxEvent" autogenflags="BSTR" id="OnNATNetworkCreationDeletion">
<attribute name="creationEvent" type="boolean" readonly="yes"/>
</interface>
<interface name="INATNetworkSettingEvent" extends="INATNetworkAlterEvent"
uuid="9db3a9e6-7f29-4aae-a627-5a282c83092c"
wsmap="managed" autogen="VBoxEvent" id="OnNATNetworkSetting">
<attribute name="enabled" type="boolean" readonly="yes"/>
<attribute name="network" type="wstring" readonly="yes"/>
<attribute name="gateway" type="wstring" readonly="yes"/>
<attribute name="advertiseDefaultIPv6RouteEnabled" type="boolean" readonly="yes" dtracename="advertiseDefIPv6Route"/>
<attribute name="needDhcpServer" type="boolean" readonly="yes"/>
</interface>
<interface name="INATNetworkPortForwardEvent" extends="INATNetworkAlterEvent"
uuid="2514881b-23d0-430a-a7ff-7ed7f05534bc"
wsmap="managed" autogen="VBoxEvent" id="OnNATNetworkPortForward">
<attribute name="create" type="boolean" readonly="yes"/>
<attribute name="ipv6" type="boolean" readonly="yes"/>
<attribute name="name" type="wstring" readonly="yes"/>
<attribute name="proto" type="NATProtocol" readonly="yes"/>
<attribute name="hostIp" type="wstring" readonly="yes"/>
<attribute name="hostPort" type="long" readonly="yes"/>
<attribute name="guestIp" type="wstring" readonly="yes"/>
<attribute name="guestPort" type="long" readonly="yes"/>
</interface>
<interface
name="IHostNameResolutionConfigurationChangeEvent" extends="IEvent"
uuid="f9b9e1cf-cb63-47a1-84fb-02c4894b89a9"
wsmap="managed" autogen="VBoxEvent" id="OnHostNameResolutionConfigurationChange"
dtracename="HostNameResCfgChangeEvent"
>
<attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/>
</interface>
<interface
name="IProgressEvent" extends="IEvent"
uuid="daaf9016-1f04-4191-aa2f-1fac9646ae4c"
wsmap="managed" id="ProgressEvent">
<desc>Base abstract interface for all progress events.</desc>
<attribute name="progressId" readonly="yes" type="uuid" mod="string">
<desc>GUID of the progress this event relates to.</desc>
</attribute>
</interface>
<interface
name="IProgressCreatedEvent" extends="IProgressEvent"
uuid="a85bba40-1b93-47bb-b125-dec708c30fc0"
wsmap="managed" autogen="VBoxEvent" id="OnProgressCreated">
<desc>Notification of a new progress object creation/deletion.
Covers purely projess objects in VBoxSVC. This
event is signaled on the event source of IVirtualBox, unlike
the other progress events.</desc>
<attribute name="create" readonly="yes" type="boolean">
<desc>If @c true, the progress object was created, otherwise it
was deleted.</desc>
</attribute>
</interface>
<interface
name="IProgressPercentageChangedEvent" extends="IProgressEvent"
uuid="f05d7e60-1bcf-4218-9807-04e036cc70f1"
wsmap="managed" autogen="VBoxEvent" id="OnProgressPercentageChanged">
<desc>Progress state change event.</desc>
<attribute name="percent" readonly="yes" type="long">
<desc>New percent</desc>
</attribute>
</interface>
<interface
name="IProgressTaskCompletedEvent" extends="IProgressEvent"
uuid="a5bbdb7d-8ce7-469f-a4c2-6476f581ff72"
wsmap="managed" autogen="VBoxEvent" id="OnProgressTaskCompleted">
<desc>Progress task completion event.</desc>
<attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/>
</interface>
<interface
name="ICursorPositionChangedEvent" extends="IEvent"
uuid="6f302674-c927-11e7-b788-33c248e71fc7"
wsmap="managed" autogen="VBoxEvent" id="OnCursorPositionChanged">
<desc>The guest reports cursor position data.</desc>
<attribute name="hasData" readonly="yes" type="boolean">
<desc>Event contains valid data. If not set, switch back to using the host cursor.</desc>
</attribute>
<attribute name="x" readonly="yes" type="unsigned long">
<desc>Reported X position</desc>
</attribute>
<attribute name="y" readonly="yes" type="unsigned long">
<desc>Reported Y position</desc>
</attribute>
</interface>
<interface
name="IGuestAdditionsStatusChangedEvent" extends="IEvent"
uuid="a443da5b-aa82-4720-bc84-bd097b2b13b8"
wsmap="managed" autogen="VBoxEvent" id="OnGuestAdditionsStatusChanged">
<desc>The guest addition status changed.</desc>
<attribute name="facility" type="AdditionsFacilityType" readonly="yes">
<desc>Facility this event relates to.</desc>
</attribute>
<attribute name="status" type="AdditionsFacilityStatus" readonly="yes">
<desc>The new facility status.</desc>
</attribute>
<attribute name="runLevel" type="AdditionsRunLevelType" readonly="yes">
<desc>The new run level.</desc>
</attribute>
<attribute name="timestamp" type="long long" readonly="yes">
<desc>The millisecond timestamp associated with the event.</desc>
</attribute>
</interface>
<interface
name="IGuestMonitorInfoChangedEvent" extends="IEvent"
uuid="0b3cdeb2-808e-11e9-b773-133d9330f849"
wsmap="managed" autogen="VBoxEvent" id="OnGuestMonitorInfoChanged">
<desc>The guest reports cursor position data.</desc>
<attribute name="output" readonly="yes" type="unsigned long">
<desc>The virtual display output on which the monitor has changed.</desc>
</attribute>
</interface>
<interface
name="IUpdateAgentEvent" extends="IEvent"
uuid="ff58a51d-54a1-411c-93e9-3047eb4dcd21"
wsmap="managed">
<desc>
Abstract base interface for update agent events.
</desc>
<attribute name="agent" readonly="yes" type="IUpdateAgent">
<desc>Update agent this event belongs to.</desc>
</attribute>
</interface>
<interface
name="IUpdateAgentSettingsChangedEvent" extends="IUpdateAgentEvent"
uuid="abef51ae-1493-49f4-aa03-efaf106bf086"
wsmap="managed" autogen="VBoxEvent" id="OnUpdateAgentSettingsChanged"
>
<desc>
Notification when update agent settings have been changed.
</desc>
<attribute name="attributeHint" readonly="yes" type="wstring"/>
</interface>
<interface
name="IUpdateAgentErrorEvent" extends="IUpdateAgentEvent"
uuid="2a88033d-82db-4ac2-97b5-e786c839420e"
wsmap="managed" autogen="VBoxEvent" id="OnUpdateAgentError"
>
<desc>
Notification when an update agent error occurred.
</desc>
<attribute name="msg" type="wstring" readonly="yes">
<desc>
Error message in human readable format.
</desc>
</attribute>
<attribute name="rcError" type="long" readonly="yes">
<desc>
IPRT-style error code.
</desc>
</attribute>
</interface>
<interface
name="IUpdateAgentAvailableEvent" extends="IUpdateAgentEvent"
uuid="243829cb-15b7-42a4-8664-7aa4e34993da"
wsmap="managed" autogen="VBoxEvent" id="OnUpdateAgentAvailable"
>
<desc>
Notification when an update is available.
</desc>
<attribute name="version" type="wstring" readonly="yes">
<desc>
Version of the update.
</desc>
</attribute>
<attribute name="channel" type="UpdateChannel" readonly="yes">
<desc>
Channel containing the update.
</desc>
</attribute>
<attribute name="severity" type="UpdateSeverity" readonly="yes">
<desc>
Severity of the update.
</desc>
</attribute>
<attribute name="downloadURL" type="wstring" readonly="yes">
<desc>
Download URL of the update.
</desc>
</attribute>
<attribute name="webURL" type="wstring" readonly="yes">
<desc>
Web URL of the update.
</desc>
</attribute>
<attribute name="releaseNotes" type="wstring" readonly="yes">
<desc>
Release notes of the update.
</desc>
</attribute>
</interface>
<interface
name="IUpdateAgentStateChangedEvent" extends="IUpdateAgentEvent"
uuid="eb000a0e-2079-4f47-bbcc-c6b28a4e50df"
wsmap="managed" autogen="VBoxEvent" id="OnUpdateAgentStateChanged"
>
<desc>
Notification when an update agent state has been changed.
</desc>
<attribute name="state" type="UpdateState" readonly="yes">
<desc>
New update agent state.
</desc>
</attribute>
</interface>
<interface
name="IGuestDebugControlChangedEvent" extends="IEvent"
uuid="a3d2799e-d3ad-4f73-91ef-7d839689f6d6"
wsmap="managed" autogen="VBoxEvent" id="OnGuestDebugControlChanged"
>
<desc>
Notification when a property of the <link to="IMachine::guestDebugControl">guest debug</link>
settings changes. Interested callees should use IGuestDebugControl methods and attributes
to find out what has changed.
</desc>
<attribute name="guestDebugControl" type="IGuestDebugControl" readonly="yes">
<desc>
Guest debug control object that is subject to change.
</desc>
</attribute>
</interface>
<interface
name="IMachineGroupsChangedEvent" extends="IMachineEvent"
uuid="ee37afb5-7002-4786-a5c4-a9c29e1cce75"
wsmap="managed" autogen="VBoxEvent" id="OnMachineGroupsChanged"
>
<desc>
The groups of the machine have changed.
</desc>
<attribute name="dummy" type="boolean" readonly="yes">
<desc>
Dummy state because you can't have an event without attributes apparently.
</desc>
</attribute>
</interface>
<!--
// Auxiliary containers
//////////////////////////////////////////////////////////////////////////
-->
<interface name="IStringArray" extends="$unknown"
uuid="3890b2c8-604d-11e9-92d3-53cb473db9fb"
wsmap="managed"
reservedMethods="4">
<desc>
When you need to return an array of strings asynchronously
(under a progress) you cannot use by-value out parameter
<tt>type="wstring" safearray="yes"
dir="out"</tt>, hence this wrapper.
</desc>
<attribute name="values" type="wstring" safearray="yes" readonly="yes"/>
</interface>
<!--
// IForm
//////////////////////////////////////////////////////////////////////////
-->
<enum name="FormValueType"
uuid="43d794a0-7c98-11e9-a346-a36d5fa858a5">
<const name="Boolean" value="0"/>
<const name="String" value="1"/>
<const name="Choice" value="2"/>
<const name="RangedInteger" value="3"/>
</enum>
<interface name="IFormValue" extends="$unknown"
uuid="67c50afe-3e78-11e9-b25e-7768f80c0e07"
wsmap="managed"
reservedMethods="4" reservedAttributes="8">
<attribute name="type" type="FormValueType" readonly="yes"/>
<attribute name="generation" type="long" readonly="yes"/>
<attribute name="enabled" type="boolean" readonly="yes"/>
<attribute name="visible" type="boolean" readonly="yes"/>
<attribute name="label" type="wstring" readonly="yes"/>
<attribute name="description" type="wstring" readonly="yes"/>
<attribute name="help" type="wstring" readonly="yes"/>
</interface>
<interface name="IBooleanFormValue" extends="IFormValue"
uuid="4f4adcf6-3e87-11e9-8af2-576e84223953"
wsmap="managed"
reservedMethods="4" reservedAttributes="4">
<method name="getSelected">
<param name="selected" type="boolean" dir="return"/>
</method>
<method name="setSelected">
<param name="selected" type="boolean" dir="in"/>
<param name="progress" type="IProgress" dir="return"/>
</method>
</interface>
<interface name="IRangedIntegerFormValue" extends="IFormValue"
uuid="b31c4052-7bdc-11e9-8bc2-8ffdb8b19219"
wsmap="managed"
reservedMethods="4" reservedAttributes="4">
<attribute name="suffix" type="wstring" readonly="yes">
<desc>
Counterpart of the <link to="IFormValue::label"/> attribute.
May be null or empty. Usually used for units.
</desc>
</attribute>
<attribute name="minimum" type="long" readonly="yes"/>
<attribute name="maximum" type="long" readonly="yes"/>
<method name="getInteger">
<param name="value" type="long" dir="return"/>
</method>
<method name="setInteger">
<param name="value" type="long" dir="in"/>
<param name="progress" type="IProgress" dir="return"/>
</method>
</interface>
<interface name="IStringFormValue" extends="IFormValue"
uuid="cb6f0f2c-8384-11e9-921d-8b984e28a686"
wsmap="managed"
reservedMethods="4" reservedAttributes="4">
<attribute name="multiline" type="boolean" readonly="yes"/>
<method name="getString">
<param name="text" type="wstring" dir="return"/>
</method>
<method name="setString">
<param name="text" type="wstring" dir="in"/>
<param name="progress" type="IProgress" dir="return"/>
</method>
<attribute name="clipboardString" type="wstring" readonly="yes">
<desc>
Intnded for cases when a read-only string value is used to
display information and different string is to be used when
copying to the clipboard.
</desc>
</attribute>
</interface>
<interface name="IChoiceFormValue" extends="IFormValue"
uuid="7191cf38-3e8a-11e9-825c-ab7b2cabce23"
wsmap="managed"
reservedMethods="4" reservedAttributes="4">
<attribute name="values" type="wstring" safearray="yes" readonly="yes"/>
<method name="getSelectedIndex">
<param name="index" type="long" dir="return"/>
</method>
<method name="setSelectedIndex">
<param name="index" type="long" dir="in"/>
<param name="progress" type="IProgress" dir="return"/>
</method>
</interface>
<interface name="IForm" extends="$unknown"
uuid="d05c91e2-3e8a-11e9-8082-db8ae479ef87"
wsmap="managed"
reservedMethods="4" reservedAttributes="4">
<attribute name="values" type="IFormValue" safearray="yes" readonly="yes"/>
<method name="getFieldGroup">
<param name="field" type="wstring" dir="in"/>
<param name="group" type="wstring" safearray="yes" dir="return"/>
</method>
<method name="apply">
<param name="progress" type="IProgress" dir="return"/>
</method>
</interface>
<interface name="IVirtualSystemDescriptionForm" extends="IForm"
uuid="14c2db8a-3ee4-11e9-b872-cb9447aad965"
wsmap="managed"
reservedMethods="4" reservedAttributes="4">
<method name="getVirtualSystemDescription">
<param name="description" type="IVirtualSystemDescription" dir="return"/>
</method>
</interface>
<enum
name="CloudMachineState"
uuid="67b6d054-0154-4f5d-b71b-6ac406e1ff78"
>
<desc>Cloud instance execution state</desc>
<const name="Invalid" value="0">
<desc>Invalid state</desc>
</const>
<const name="Provisioning" value="1">
<desc>The machine is in the process of provisioning</desc>
</const>
<const name="Running" value="2">
<desc>The machine runs</desc>
</const>
<const name="Starting" value="3">
<desc>The machine is in the process of starting</desc>
</const>
<const name="Stopping" value="4">
<desc>The machine is in the process of stopping</desc>
</const>
<const name="Stopped" value="5">
<desc>The machine was stopped</desc>
</const>
<const name="CreatingImage" value="6">
<desc>The machine is in the process of creating image</desc>
</const>
<const name="Terminating" value="7">
<desc>The machine is in the process of terminating</desc>
</const>
<const name="Terminated" value="8">
<desc>The machine was terminated</desc>
</const>
</enum>
<enum
name="CloudImageState"
uuid="6e5d6762-eea2-4f2c-b104-2952d0aa8a0a"
>
<desc>Cloud image state</desc>
<const name="Invalid" value="0">
<desc>Invalid state</desc>
</const>
<const name="Provisioning" value="1">
<desc>The image is in the process of provisioning</desc>
</const>
<const name="Importing" value="2">
<desc>The image is in the process of importing</desc>
</const>
<const name="Available" value="3">
<desc>The image is avalable</desc>
</const>
<const name="Exporting" value="4">
<desc>The image is in the process of exporting</desc>
</const>
<const name="Disabled" value="5">
<desc>The image is disabled</desc>
</const>
<const name="Deleted" value="6">
<desc>The image was deleted</desc>
</const>
</enum>
<interface name="ICloudNetworkGatewayInfo" extends="$unknown"
uuid="89a63ace-0c65-11ea-ad23-0ff257c71a7f"
wsmap="managed"
reservedAttributes="5">
<attribute name="publicIP" type="wstring" readonly="yes"/>
<attribute name="secondaryPublicIP" type="wstring" readonly="yes"/>
<attribute name="macAddress" type="wstring" readonly="yes"/>
<attribute name="instanceId" type="wstring" readonly="yes"/>
</interface>
<interface name="ICloudNetworkEnvironmentInfo" extends="$unknown"
uuid="181dfb55-394d-44d3-9edb-af2c4472c40a"
wsmap="managed"
reservedAttributes="7">
<attribute name="tunnelNetworkId" type="wstring" readonly="yes"/>
</interface>
<interface name="ICloudMachine" extends="$unknown"
uuid="147816c8-17e0-11eb-81fa-87cea6263e1a"
wsmap="managed"
rest="managed"
reservedMethods="16" reservedAttributes="8"
>
<desc>
Virtual virtual machine (sic) in the cloud.
Reading object attributes returns cached values, use
<link to="#refresh"/> to refresh them.
</desc>
<attribute name="id" type="uuid" mod="string" readonly="yes">
<desc>UUID of the cloud machine.</desc>
</attribute>
<attribute name="accessible" type="boolean" readonly="yes"
wrap-hint-server="limitedcaller">
<desc>
Whether this virtual machine is currently accessible or not.
TBD...
</desc>
</attribute>
<attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes"
wrap-hint-server="limitedcaller">
<desc>
Error information describing the reason of machine
inaccessibility.
Reading this property is only valid after the last call to
<link to="#accessible"/> returned @c false (i.e. the
machine is currently inaccessible). Otherwise, a @c null
IVirtualBoxErrorInfo object will be returned.
</desc>
</attribute>
<attribute name="name" type="wstring" readonly="yes">
<desc>
Convenience shortcut to retrieve the name of the cloud
machine. The name is part of the machine settings that are
hidden behind the settings form (see <link to="#getSettingsForm"/>).
</desc>
</attribute>
<attribute name="OSTypeId" type="wstring" readonly="yes">
<desc>
Convenience shortcut to retrieve the OS Type id of the cloud
machine. It is part of the machine settings that are hidden
behind the settings form (see <link to="#getSettingsForm"/>).
</desc>
</attribute>
<attribute name="state" type="CloudMachineState" readonly="yes">
<desc>
Machine state.
</desc>
</attribute>
<method name="refresh">
<desc>
Refresh information by reading it from the cloud.
</desc>
<param name="progress" type="IProgress" dir="return">
<desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
<method name="getDetailsForm" const="yes">
<desc>
Obtain a form with the current settings for this cloud
machine. The form is not editable.
</desc>
<param name="form" type="IForm" dir="return">
<desc>
A form with the cloud machine settings.
</desc>
</param>
</method>
<method name="getSettingsForm">
<desc>
Obtain a form with settings for this cloud machine.
The form is editable.
</desc>
<param name="form" type="IForm" dir="out">
<desc>
A form with the cloud machine settings.
</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
<method name="powerUp">
<desc>
Start cloud virtual machine execution.
</desc>
<param name="progress" type="IProgress" dir="return">
<desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
<method name="reboot">
<desc>
Reboot cloud virtual machine.
</desc>
<param name="progress" type="IProgress" dir="return">
<desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
<method name="shutdown">
<desc>
Shutdown cloud virtual machine.
</desc>
<param name="progress" type="IProgress" dir="return">
<desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
<method name="powerDown">
<desc>
Initiates the power down procedure to stop the virtual machine
execution.
The completion of the power down procedure is tracked using the returned
IProgress object. After the operation is complete, the machine will go
to the PoweredOff state.
<result name="VBOX_E_INVALID_VM_STATE">
Virtual machine must be Running, to be powered down.
</result>
</desc>
<param name="progress" type="IProgress" dir="return">
<desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
<method name="terminate">
<desc>
Terminate cloud virtual machine.
</desc>
<param name="progress" type="IProgress" dir="return">
<desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
<method name="unregister" wrap-hint-server="limitedcaller,passcaller">
<desc>
Unregister this cloud machine, but leave the cloud artifacts
intact.
</desc>
<param name="progress" type="IProgress" dir="return">
<desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
<method name="remove" wrap-hint-server="limitedcaller,passcaller">
<desc>
Unregister this cloud machine and delete all its cloud artifacts.
</desc>
<param name="progress" type="IProgress" dir="return">
<desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
<method name="getConsoleHistory">
<desc>
Get the backlog of the machine's console. If you have ever
seen console teletypes, this is like looking at the last few
meters of the paper it spewed.
</desc>
<param name="stream" type="IDataStream" dir="out">
<desc>
Data stream object for reading the console history. For now
we are abusing/repurposing this interface from the media
convertion API to avoid marshalling a huge string through
xpcom.
</desc>
</param>
<param name="progress" type="IProgress" dir="return"><desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
<method name="createConsoleConnection">
<param name="sshPublicKey" type="wstring" dir="in">
<desc>
SSH public key authorized to connect to the console.
</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
<method name="deleteConsoleConnection">
<param name="progress" type="IProgress" dir="return">
<desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
<attribute name="consoleConnectionFingerprint" type="wstring" readonly="yes">
<desc>
The fingerprint of the ssh key that is authorized to access
the machine's console connection.
</desc>
</attribute>
<attribute name="serialConsoleCommand" type="wstring" readonly="yes">
<desc>
The shell command to establish ssh connection to the cloud
machine serial console.
</desc>
</attribute>
<attribute name="serialConsoleCommandWindows" type="wstring" readonly="yes">
<desc>
The PowerShell command to establish ssh connection to the
cloud machine serial console using PuTTY's plink.
</desc>
</attribute>
<attribute name="VNCConsoleCommand" type="wstring" readonly="yes">
<desc>
The shell command to establish ssh port forwarding for the
VNC connection to the cloud machine console.
</desc>
</attribute>
<attribute name="VNCConsoleCommandWindows" type="wstring" readonly="yes">
<desc>
The PowerShell command to establish ssh port forwarding for the
VNC connection to the cloud machine console using PuTTY's plink.
</desc>
</attribute>
</interface>
<!--
// ICloudClient
//////////////////////////////////////////////////////////////////////////
-->
<interface
name="ICloudClient" extends="$unknown"
uuid="c2db178a-7485-11ec-aec4-2fbf90681a84"
wsmap="managed"
reservedMethods="16" reservedAttributes="8"
>
<method name="getExportDescriptionForm">
<desc>
Returns a form for editing the virtual system description for
exporting a local VM into a cloud custom image.
</desc>
<param name="description" type="IVirtualSystemDescription" dir="in">
<desc>
Virtual system description to be edited.
</desc>
</param>
<param name="form" type="IVirtualSystemDescriptionForm" dir="out">
<desc>
An IForm instance for editing the virtual system description.
</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
<method name="exportVM">
<desc>
Export local VM into the cloud, creating a custom image.
</desc>
<param name="description" type="IVirtualSystemDescription" dir="in">
<desc>
Virtual system description object which describes the
machine and all required parameters.
</desc>
</param>
<param name="progress" type="IProgress" dir="in">
<desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
<method name="getLaunchDescriptionForm">
<param name="description" type="IVirtualSystemDescription" dir="in">
<desc>
Virtual system description to be edited.
</desc>
</param>
<param name="form" type="IVirtualSystemDescriptionForm" dir="out">
<desc>
An IForm instance for editing the virtual system description.
</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
<method name="launchVM">
<param name="description" type="IVirtualSystemDescription" dir="in">
<desc>
Virtual system description object which describes the
machine and all required parameters.
</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
<method name="getImportDescriptionForm">
<desc>
Returns a form for editing the virtual system description for
import from cloud.
</desc>
<param name="description" type="IVirtualSystemDescription" dir="in">
<desc>
Virtual system description to be edited.
</desc>
</param>
<param name="form" type="IVirtualSystemDescriptionForm" dir="out">
<desc>
An IForm instance for editing the virtual system description.
</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
<method name="importInstance">
<desc>
Import an existing cloud instance to the local host.
All needed parameters are passed in the description (VSD).
</desc>
<param name="description" type="IVirtualSystemDescription" dir="in">
<desc>VirtualSystemDescription object which is describing a machine and all required parameters.</desc>
</param>
<param name="progress" type="IProgress" dir="in">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="getCloudMachine">
<desc>
Create an object that represents a cloud machine with the
specified UUID. Note that the operation is synchronous. The
returned machine is initiatally in inaccessible state and
requires a refresh to get its data from the cloud.
</desc>
<param name="id" type="uuid" mod="string" dir="in">
<desc>
UUID of a cloud machine.
</desc>
</param>
<param name="machine" type="ICloudMachine" dir="return">
<desc>
Object that represents the cloud machine with the specified UUID.
</desc>
</param>
</method>
<method name="readCloudMachineList">
<desc>
Make the list of cloud machines available via
<link to="#cloudMachineList"/> attribute.
</desc>
<param name="progress" type="IProgress" dir="return">
<desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
<attribute name="cloudMachineList" type="ICloudMachine" safearray="yes" readonly="yes">
<desc>
See <link to="#readCloudMachineList"/>.
</desc>
</attribute>
<method name="readCloudMachineStubList">
<desc>
Make the list of cloud machine stubs available via
<link to="#cloudMachineStubList"/> attribute.
Like with <link to="#getCloudMachine"/>, the returned machines
are initiatally inaccessible and require a refresh to get
their data from the cloud.
</desc>
<param name="progress" type="IProgress" dir="return">
<desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
<attribute name="cloudMachineStubList" type="ICloudMachine" safearray="yes" readonly="yes">
<desc>
See <link to="#readCloudMachineStubList"/>.
</desc>
</attribute>
<method name="addCloudMachine">
<desc>
Adopt a running instance and register it as cloud machine.
This is kinda like adding a local .vbox file as a local VM.
</desc>
<param name="instanceId" type="wstring" dir="in">
<desc>
ID of an instance to be added as a cloud machine.
</desc>
</param>
<param name="machine" type="ICloudMachine" dir="out">
<desc>
Object that represents the newly registered cloud machine.
</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="createCloudMachine">
<desc>
This is transitional method that combines
<link to="#launchVM"/> and <link to="#addCloudMachine"/>.
</desc>
<param name="description" type="IVirtualSystemDescription" dir="in">
<desc>
Virtual system description object which describes the
machine and all required parameters.
</desc>
</param>
<param name="machine" type="ICloudMachine" dir="out">
<desc>
Object that represents the newly created cloud machine.
</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
<method name="listInstances" const="yes">
<desc>
Returns the list of the instances in the Cloud.
</desc>
<param name="machineState" type="CloudMachineState" dir="in" safearray="yes">
<desc>State of each VM.</desc>
</param>
<param name="returnNames" type="IStringArray" dir="out">
<desc>VM names.</desc>
</param>
<param name="returnIds" type="IStringArray" dir="out">
<desc>VM ids.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
<method name="listSourceInstances" const="yes">
<desc>
Returns the list of instances in the cloud that can be
added/adopted as VirtualBox cloud machines.
</desc>
<param name="returnNames" type="IStringArray" dir="out">
<desc>Instance names.</desc>
</param>
<param name="returnIds" type="IStringArray" dir="out">
<desc>Instance idss.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
<method name="listImages" const="yes">
<desc>
Returns the list of the images in the Cloud.
</desc>
<param name="imageState" type="CloudImageState" dir="in" safearray="yes">
<desc>State of each image.</desc>
</param>
<param name="returnNames" type="IStringArray" dir="out">
<desc>Images names.</desc>
</param>
<param name="returnIds" type="IStringArray" dir="out">
<desc>Images ids.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
<!-- quick hack -->
<method name="listBootVolumes" const="yes">
<desc>
Returns the list of boot volumes in the Cloud.
</desc>
<param name="returnNames" type="IStringArray" dir="out">
<desc>Boot volume names.</desc>
</param>
<param name="returnIds" type="IStringArray" dir="out">
<desc>Boot volume ids.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
<method name="listSourceBootVolumes" const="yes">
<desc>
Returns the list of boot volumes in the cloud that can be
added/adopted as VirtualBox cloud machines.
</desc>
<param name="returnNames" type="IStringArray" dir="out">
<desc>Boot volume names.</desc>
</param>
<param name="returnIds" type="IStringArray" dir="out">
<desc>Boot volume ids.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
<method name="listVnicAttachments" const="yes">
<desc>
Returns the list of the Vnic attachements in the Cloud.
</desc>
<param name="parameters" type="wstring" dir="in" safearray="yes">
<desc>Each parameter in the array must be in the form "name=value".</desc>
</param>
<param name="returnVnicAttachmentIds" type="IStringArray" dir="out">
<desc>VM ids.</desc>
</param>
<param name="returnVnicIds" type="IStringArray" dir="out">
<desc>VM ids.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
<method name="getInstanceInfo" const="yes">
<desc>
Returns the information about an instance in the Cloud.
</desc>
<param name="uid" type="wstring" dir="in">
<desc>The id of instance in the Cloud.</desc>
</param>
<param name="description" type="IVirtualSystemDescription" dir="in">
<desc>VirtualSystemDescription object which is describing a machine</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
<method name="startInstance">
<desc>
Start an existing instance with passed id.
</desc>
<param name="uid" type="wstring" dir="in">
<desc>The id of instance in the Cloud.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="pauseInstance">
<desc>
Pause an existing instance with passed id.
</desc>
<param name="uid" type="wstring" dir="in">
<desc>The id of instance in the Cloud.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="terminateInstance">
<desc>
Terminate an existing instance with passed id.
</desc>
<param name="uid" type="wstring" dir="in">
<desc>the id of instance in the Cloud.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="createImage">
<desc>
Create an image in the Cloud.
</desc>
<param name="parameters" type="wstring" dir="in" safearray="yes">
<desc>Each parameter in the array must be in the form "name=value".</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="exportImage">
<desc>
Export an existing VBox image in the Cloud.
</desc>
<param name="image" type="IMedium" dir="in">
<desc>Reference to the existing VBox image.</desc>
</param>
<param name="parameters" type="wstring" dir="in" safearray="yes">
<desc>Each parameter in the array must be in the form "name=value".</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="importImage">
<desc>
Import an existing image in the Cloud to the local host.
</desc>
<param name="uid" type="wstring" dir="in">
<desc>the id of image in the Cloud.</desc>
</param>
<param name="parameters" type="wstring" dir="in" safearray="yes">
<desc>Each parameter in the array must be in the form "name=value".</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="deleteImage">
<desc>
Delete an existing image with passed id from the Cloud.
</desc>
<param name="uid" type="wstring" dir="in">
<desc>The id of image in the Cloud.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="getImageInfo" const="yes">
<desc>
Returns the information about an image in the Cloud.
</desc>
<param name="uid" type="wstring" dir="in">
<desc>The id of image in the Cloud.</desc>
</param>
<param name="infoArray" type="IStringArray" dir="out">
<desc>
An array where the image settings or properties is returned.
Each parameter in the array must be in the form "name=value".
</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
<method name="startCloudNetworkGateway">
<param name="network" type="ICloudNetwork" dir="in">
<desc>The id of image in the Cloud.</desc>
</param>
<param name="sshPublicKey" type="wstring" dir="in">
<desc>The id of image in the Cloud.</desc>
</param>
<param name="gatewayInfo" type="ICloudNetworkGatewayInfo" dir="out">
<desc>Information about the started gateway.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="setupCloudNetworkEnvironment">
<param name="tunnelNetworkName" type="wstring" dir="in">
<desc>The name of tunnelling network to be created in the Cloud. If this parameter
is empty the default value "VirtualBox Tunneling Network" is assumed.</desc>
</param>
<param name="tunnelNetworkRange" type="wstring" dir="in">
<desc>The IP address range of tunnelling network to be created in the Cloud. If this
parameter is empty the default value "10.0.0.0/16" is assumed.</desc>
</param>
<param name="gatewayOsName" type="wstring" dir="in">
<desc>The name of the operating system to be used for cloud gateway instances.
The default value is "Oracle Linux".</desc>
</param>
<param name="gatewayOsVersion" type="wstring" dir="in">
<desc>The version of the operating system to be used for cloud gateway instances.
The default value is "7.8".</desc>
</param>
<param name="gatewayShape" type="wstring" dir="in">
<desc>The shape of cloud gateway instance. The default value is "VM.Standard2.1".</desc>
</param>
<param name="networkEnvironmentInfo" type="ICloudNetworkEnvironmentInfo" dir="out">
<desc>Information about the created network environment.</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>Progress object to track the operation completion.</desc>
</param>
</method>
<method name="getVnicInfo" const="yes">
<desc>
Returns the information about Vnic in the Cloud.
</desc>
<param name="uid" type="wstring" dir="in">
<desc>The id of vnic in the Cloud.</desc>
</param>
<param name="infoArray" type="IStringArray" dir="out">
<desc>
An array where the Vnic settings/properties is returned.
Each parameter in the array must be in the form "name=value".
</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
<method name="getSubnetSelectionForm">
<param name="description" type="IVirtualSystemDescription" dir="in">
<desc>
Virtual system description to be edited.
</desc>
</param>
<param name="form" type="IVirtualSystemDescriptionForm" dir="out">
<desc>
An IForm instance for editing the virtual system description.
</desc>
</param>
<param name="progress" type="IProgress" dir="return">
<desc>
Progress object to track the operation completion.
</desc>
</param>
</method>
</interface>
<!--
// ICloudProfile
//////////////////////////////////////////////////////////////////////////
-->
<interface
name="ICloudProfile" extends="$unknown"
uuid="b1d978b8-f7b7-4b05-900e-2a9253c00f51"
wsmap="managed"
rest="managed"
reservedMethods="4" reservedAttributes="8"
>
<attribute name="name" type="wstring">
<desc>
Returns the profile name.
</desc>
</attribute>
<attribute name="providerId" type="uuid" mod="string" readonly="yes">
<desc>
Returns provider identifier tied with this profile.
</desc>
</attribute>
<method name="getProperty" const="yes">
<desc>
Returns the value of the cloud profile property with the given name.
If the requested data @a name does not exist, this function will
succeed and return an empty string in the @a value argument.
<result name="E_INVALIDARG">@a name is @c null or empty.</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of the property to get.</desc>
</param>
<param name="value" type="wstring" dir="return">
<desc>Current property value.</desc>
</param>
</method>
<method name="setProperty" const="yes">
<desc>
Sets the value of the cloud profile property with the given name.
Setting the property value to @c null or an empty string is equivalent
to deleting the existing value.
<result name="E_INVALIDARG">@a name is @c null or empty.</result>
</desc>
<param name="name" type="wstring" dir="in">
<desc>Name of the property to set.</desc>
</param>
<param name="value" type="wstring" dir="in">
<desc>Property value to set.</desc>
</param>
</method>
<method name="getProperties" const="yes">
<desc>
Returns values for a group of properties in one call.
The names of the properties to get are specified using the @a names
argument which is a list of comma-separated property names or
an empty string if all properties are to be returned.
<note>Currently the value of this argument is ignored and the method
always returns all existing properties.</note>
The method returns two arrays, the array of property names corresponding
to the @a names argument and the current values of these properties.
Both arrays have the same number of elements with each element at the
given index in the first array corresponds to an element at the same
index in the second array.
</desc>
<param name="names" type="wstring" dir="in">
<desc>
Names of properties to get.
</desc>
</param>
<param name="returnNames" type="wstring" safearray="yes" dir="out">
<desc>Names of returned properties.</desc>
</param>
<param name="returnValues" type="wstring" safearray="yes" dir="return">
<desc>Values of returned properties.</desc>
</param>
</method>
<method name="setProperties">
<desc>
Updates profile, changing/adding/removing properties.
The names of the properties to set are passed in the @a names
array along with the new values for them in the @a values array. Both
arrays have the same number of elements with each element at the given
index in the first array corresponding to an element at the same index
in the second array.
If there is at least one property name in @a names that is not valid,
the method will fail before changing the values of any other properties
from the @a names array.
Using this method over <link to="#setProperty"/> is preferred if you
need to set several properties at once since it is more efficient.
Setting the property value to @c null or an empty string is equivalent
to deleting the existing value.
</desc>
<param name="names" type="wstring" safearray="yes" dir="in">
<desc>Names of properties.</desc>
</param>
<param name="values" type="wstring" safearray="yes" dir="in">
<desc>Values of set properties.</desc>
</param>
</method>
<method name="remove">
<desc>
Deletes a profile.
</desc>
</method>
<method name="createCloudClient">
<desc>
Creates a cloud client for this cloud profile.
</desc>
<param name="cloudClient" type="ICloudClient" dir="return">
<desc>
The cloud client object reference.
</desc>
</param>
</method>
</interface>
<!--
// ICloudProvider
//////////////////////////////////////////////////////////////////////////
-->
<interface
name="ICloudProvider" extends="$unknown"
uuid="22363cfc-07da-41ec-ac4a-3dd99db35594"
wsmap="managed"
rest="managed"
reservedMethods="8" reservedAttributes="16"
>
<attribute name="name" type="wstring" readonly="yes">
<desc>Returns the long name of the provider. Includes vendor and precise
product name spelled out in the preferred way.</desc>
</attribute>
<attribute name="shortName" type="wstring" readonly="yes">
<desc>Returns the short name of the provider. Less than 8 ASCII chars,
using acronyms. No vendor name, but can contain a hint if it's a 3rd
party implementation for this cloud provider, to keep it unique.</desc>
</attribute>
<attribute name="id" type="uuid" mod="string" readonly="yes">
<desc>Returns the UUID of this cloud provider.</desc>
</attribute>
<!-- if there are any generally useful, static pieces of information about
a particular cloud provider, please add them here. Maybe a description
of the functionality of the cloud provider implementation?-->
<attribute name="profiles" type="ICloudProfile" safearray="yes" readonly="yes">
<desc>Returns all profiles for this cloud provider.</desc>
</attribute>
<attribute name="profileNames" type="wstring" safearray="yes" readonly="yes">
<desc>Returns all profile names for this cloud provider.</desc>
</attribute>
<attribute name="supportedPropertyNames" type="wstring" safearray="yes" readonly="yes">
<desc>
Returns the supported property names.
</desc>
</attribute>
<method name="getPropertyDescription" const="yes">
<param name="name" type="wstring" dir="in">
<desc>Property name.</desc>
</param>
<param name="description" type="wstring" dir="return">
<desc>Property description.</desc>
</param>
</method>
<method name="createProfile">
<desc>
Creates a new profile.
</desc>
<param name="profileName" type="wstring" dir="in">
<desc>
The profile name. Must not exist, otherwise an error is raised.
</desc>
</param>
<param name="names" type="wstring" safearray="yes" dir="in">
<desc>Names of properties.</desc>
</param>
<param name="values" type="wstring" safearray="yes" dir="in">
<desc>Values of set properties.</desc>
</param>
</method>
<method name="importProfiles">
<desc>
Import the profiles from the original source
</desc>
</method>
<method name="restoreProfiles">
<desc>
Restores the old local profiles if they exist
</desc>
</method>
<method name="saveProfiles">
<desc>
Saves the local profiles
</desc>
</method>
<method name="getProfileByName">
<param name="profileName" type="wstring" dir="in"/>
<param name="profile" type="ICloudProfile" dir="return"/>
</method>
<method name="prepareUninstall" wrap-hint-server="passcaller">
<desc>
The caller requests the cloud provider to cease operation. Should
return an error if this is currently not possible (due to ongoing
cloud activity, possibly by a different API client). However, this
must not wait for the completion for a larger amount of time (ideally
stays below a second of execution time). If this succeeds it should
leave the cloud provider in a state which does not allow starting new
operations.
</desc>
</method>
</interface>
<!--
// ICloudProviderManager
//////////////////////////////////////////////////////////////////////////
-->
<interface
name="ICloudProviderManager" extends="$unknown"
uuid="9128800f-762e-4120-871c-a2014234a607"
wsmap="managed"
rest="managed"
reservedMethods="4" reservedAttributes="8"
>
<attribute name="providers" type="ICloudProvider" safearray="yes" readonly="yes">
<desc>Returns all supported cloud providers.</desc>
</attribute>
<method name="getProviderById">
<param name="providerId" type="uuid" mod="string" dir="in"/>
<param name="provider" type="ICloudProvider" dir="return"/>
</method>
<method name="getProviderByShortName">
<param name="providerName" type="wstring" dir="in"/>
<param name="provider" type="ICloudProvider" dir="return"/>
</method>
<method name="getProviderByName">
<param name="providerName" type="wstring" dir="in"/>
<param name="provider" type="ICloudProvider" dir="return"/>
</method>
</interface>
<interface name="ICloudProviderListChangedEvent" extends="IEvent"
uuid="a54d9cca-f23f-11ea-9755-efd0f1f792d9"
wsmap="managed" autogen="VBoxEvent"
id="OnCloudProviderListChanged"
>
<desc>
Each individual provider that is installed or uninstalled is
reported as an <link to="ICloudProviderRegisteredEvent"/>. When
the batch is done this event is sent and listerns can get the
new list.
</desc>
<attribute name="registered" type="boolean" readonly="yes"/>
</interface>
<interface name="ICloudProviderRegisteredEvent" extends="IEvent"
uuid="e28e227a-f231-11ea-9641-9b500c6d5365"
wsmap="managed" autogen="VBoxEvent"
id="OnCloudProviderRegistered"
>
<desc>
A cloud provider was installed or uninstalled.
See also <link to="ICloudProviderListChangedEvent"/>.
</desc>
<attribute name="id" type="uuid" mod="string" readonly="yes"/>
<attribute name="registered" type="boolean" readonly="yes"/>
</interface>
<interface name="ICloudProviderUninstallEvent" extends="IEvent"
uuid="f01f1066-f231-11ea-8eee-33bb2afb0b6e"
wsmap="managed" autogen="VBoxEvent"
id="OnCloudProviderCanUninstall" waitable="yes"
>
<desc>
A cloud provider is about to be uninstalled.
Unlike <link to="ICloudProviderRegisteredEvent"/> this one is
waitable and is sent <i>before</i> an attempt is made to
uninstall a provider. Listerns should release references to the
provider and related objects if they have any, or the
uninstallation of the provider is going to fail because it's
still in use.
</desc>
<attribute name="id" type="uuid" mod="string" readonly="yes"/>
</interface>
<!-- not autogenerated, @id is just for reference -->
<interface name="ICloudProfileRegisteredEvent" extends="IEvent"
uuid="6a5e65ba-eeb9-11ea-ae38-73242bc0f172"
wsmap="managed"
id="OnCloudProfileRegistered"
>
<attribute name="providerId" type="uuid" mod="string" readonly="yes"/>
<attribute name="name" type="wstring" readonly="yes"/>
<attribute name="registered" type="boolean" readonly="yes"/>
</interface>
<!-- not autogenerated, @id is just for reference -->
<interface name="ICloudProfileChangedEvent" extends="IEvent"
uuid="83795a4c-fce1-11ea-8a17-636028ae0be2"
wsmap="managed"
id="OnCloudProfileChanged"
>
<attribute name="providerId" type="uuid" mod="string" readonly="yes"/>
<attribute name="name" type="wstring" readonly="yes"/>
</interface>
<interface name="ILanguageChangedEvent" extends="IEvent"
uuid="28935887-782b-4c94-8410-ce557b9cfe44"
wsmap="managed" autogen="VBoxEvent"
id="OnLanguageChanged"
>
<attribute name="languageId" type="wstring" readonly="yes"/>
</interface>
<module name="VBoxSVC" context="LocalServer">
<class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
namespace="virtualbox.org">
<interface name="IVirtualBox" default="yes"/>
</class>
</module>
<module name="VBoxC" context="InprocServer" threadingModel="Free">
<class name="VirtualBoxClient" uuid="dd3fc71d-26c0-4fe1-bf6f-67f633265bba"
namespace="virtualbox.org">
<interface name="IVirtualBoxClient" default="yes"/>
</class>
<class name="Session" uuid="3C02F46D-C9D2-4F11-A384-53F0CF917214"
namespace="virtualbox.org">
<interface name="ISession" default="yes"/>
</class>
</module>
</application>
<if target="midl">
<!-- Pay attention! Application uuid of this application is used in midl.xsl
So if you change it then change filter in "interface" and "class" template in midl.xsl too
-->
<application
name="VirtualBox System Service"
uuid="ec0e78e8-fa43-43e8-ac0a-02c784c4a4fa"
supportsErrorInfo="yes"
>
<!--
// IVBoxSVC
// Note! This actually extends IUnknown rather than IDispatch, notdual=yes
// sees to that.
//////////////////////////////////////////////////////////////////////////
-->
<interface
name="IVBoxSVCRegistration" extends="$unknown" notdual="yes"
uuid="9e106366-4521-44cc-df95-186e4d057c83"
wsmap="suppress" internal="yes"
reservedMethods="0" reservedAttributes="0"
>
<desc>
Implemented by the VirtualBox class factory and registered with VBoxSDS
so it can retrieve IVirtualBox on behalf of other VBoxSVCs.
</desc>
<method name="getVirtualBox" >
<desc> Gets an IUnknown interface to the VirtualBox object in the VBoxSVC process. </desc>
<param name="result" type="$unknown" dir="return" >
<desc> Where to return the IUnknown interface. </desc>
</param>
</method>
</interface>
<!--
// IVirtualBoxSDS
// Note! This actually extends IUnknown rather than IDispatch, notdual=yes
// sees to that.
//////////////////////////////////////////////////////////////////////////
-->
<interface
name="IVirtualBoxSDS" extends="$unknown" notdual="yes"
uuid="890ed3dc-cc19-43fa-8ebf-baecb6b9ec87"
wsmap="suppress" internal="yes"
reservedMethods="0" reservedAttributes="0"
>
<desc>
The IVirtualBoxSDS interface represents the system-wide directory service
helper.
It exists only on Windows host, and its purpose is to work around design
flaws in Microsoft's (D)COM, in particular the local server instantiation
behavior.
</desc>
<method name="registerVBoxSVC">
<desc>
Registers a VBoxSVC instance with VBoxSDS. If the caller is not running
in a Windows 0 session, the method attempts to run VBoxSVC in that
session.
<result name="E_PENDING">
The caller is not running in a Windows session 0 and no VBoxSVC
is registered. VBoxSVC registration begins in Windows session 0.
You should call this method again later.
</result>
</desc>
<param name="vboxSVC" type="IVBoxSVCRegistration" dir="in">
<desc>Interface implemented by the VirtualBox class factory.</desc>
</param>
<param name="pid" type="long" dir="in">
<desc>The process ID of the VBoxSVC instance.</desc>
</param>
<param name="existingVirtualBox" type="$unknown" dir="return">
<desc>If there is already an VBoxSVC for this user, the an IUnknown
interface to its VirtualBox object is returned here, otherwise it
is set to NULL.</desc>
</param>
</method>
<method name="deregisterVBoxSVC">
<desc>Registers a VBoxSVC instance with the SDS.</desc>
<param name="vboxSVC" type="IVBoxSVCRegistration" dir="in">
<desc>Same as specified during registration.</desc>
</param>
<param name="pid" type="long" dir="in">
<desc>The process ID of the VBoxSVC instance (same as during registration).</desc>
</param>
</method>
<method name="launchVMProcess">
<desc>
Spawns a new process that will execute the virtual machine in the interactive
windows session of calling user. Any additional checks are performed by created
process itself
If launching the VM succeeds, the new VM process will create its own session
and write-lock the machine for it, preventing conflicting changes from other
processes. If the machine is already locked (because it is already running or
because another session has a write lock), launching the VM process will therefore
fail. Reversely, future attempts to obtain a write lock will also fail while the
machine is running.
Launching a VM process can take some time (a new VM is started in a new process,
for which memory and other resources need to be set up) but the method does
not wait for completion and just returns the PID of created process.
<result name="E_INVALIDARG">
Some of the parameters are invalid.
</result>
<result name="VBOX_E_IPRT_ERROR">
Launching process for machine failed.
</result>
</desc>
<param name="machine" type="wstring" dir="in">
<desc>
The name or id of the machine the VM will start for.
</desc>
</param>
<param name="comment" type="wstring" dir="in">
<desc>
The comment for VM.
</desc>
</param>
<param name="frontend" type="wstring" dir="in">
<desc>
Front-end to use for the new VM process. The following are currently supported:
<ul>
<li><tt>"gui"</tt>: VirtualBox Qt GUI front-end</li>
<li><tt>"headless"</tt>: VBoxHeadless (VRDE Server) front-end</li>
<li><tt>"sdl"</tt>: VirtualBox SDL front-end</li>
<li><tt>""</tt>: use the per-VM default frontend if set, otherwise
the global default defined in the system properties. If neither
are set, the API will launch a <tt>"gui"</tt> session, which may
fail if there is no windowing environment available. See
<link to="IMachine::defaultFrontend"/> and
<link to="ISystemProperties::defaultFrontend"/>.</li>
</ul>
</desc>
</param>
<param name="environmentChanges" type="wstring" safearray="yes" dir="in">
<desc>
The list of putenv-style changes to the VM process environment.
See <link to="IMachine::launchVMProcess" /> for details.
</desc>
</param>
<param name="cmdOptions" type="wstring" dir="in">
<desc>
Additional command line options to pass to the VM process.
</desc>
</param>
<param name="sessionId" type="unsigned long" dir="in">
<desc>
Windows session where the VM process should be launched.
</desc>
</param>
<param name="pid" type="unsigned long" dir="return">
<desc>The PID of created process.</desc>
</param>
</method>
</interface>
<!-- Warning: the name of module should coincide with real windows service name.
VirtualBox_Typelib.xsl and VirtualBox_TypeLibWithInterfaces.xsl uses this name to make list of COM registration
actions in Wix. Installer will not able to register COM windows service properly if the name of module
differs from SCM windows service name.
The Name of windows service is referenced in different places.
Don't forget to change it in other places too If you change it here :
VBoxMergeApp.wxi (cp_VBoxSDS component),
VBoxSDS.cpp and VBoxProxyStub.cpp
-->
<module name="VBoxSDS" context="LocalService">
<class name="VirtualBoxSDS" uuid="74ab5ffe-8726-4435-aa7e-876d705bcba5"
namespace="virtualbox.org">
<interface name="IVirtualBoxSDS" default="yes"/>
</class>
</module>
</application>
</if>
</library>
</idl>
<!-- vim: set shiftwidth=2 tabstop=2 expandtab: -->
|