VirtualBox

source: vbox/trunk/src/VBox/Main/idl/VirtualBox.xidl@ 45482

Last change on this file since 45482 was 45482, checked in by vboxsync, 12 years ago

GuestCtrl: Added abstract IGuestProcessIOEvent event, removed duplicate code, making the testdriver execution tests pass.

  • Property svn:eol-style set to native
File size: 752.3 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2
3<!--
4
5 Copyright (C) 2006-2013 Oracle Corporation
6
7 This file is part of VirtualBox Open Source Edition (OSE), as
8 available from http://www.virtualbox.org. This file is free software;
9 you can redistribute it and/or modify it under the terms of the GNU
10 General Public License (GPL) as published by the Free Software
11 Foundation, in version 2 as it comes in the "COPYING" file of the
12 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
13 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
14-->
15
16<!--
17 This is the master declaration for VirtualBox's Main API,
18 represented by COM/XPCOM and web service interfaces.
19
20 From this document, the build system generates several files
21 via XSLT that are then used during the build process.
22
23 Below is the list of XSL templates that operate on this file and
24 output files they generate. These XSL templates must be updated
25 whenever the schema of this file changes:
26
27 1. src/VBox/Main/idl/midl.xsl =>
28 out/<platform>/bin/sdk/idl/VirtualBox.idl
29 (MS COM interface definition file for Main API)
30
31 2. src/VBox/Main/idl/xpidl.xsl =>
32 out/<platform>/bin/sdk/idl/VirtualBox_XPCOM.idl
33 (XPCOM interface definition file for Main API)
34
35 3. src/VBox/Main/idl/doxygen.xsl =>
36 out/<platform>/obj/src/VBox/Main/VirtualBox.idl
37 (pseudo-IDL for Doxygen to generate the official Main API
38 documentation)
39
40 4. src/VBox/Main/webservice/*.xsl =>
41 a bunch of WSDL and C++ files
42 (VirtualBox web service sources and SOAP mappers;
43 see src/VBox/Main/webservice/Makefile.kmk for details)
44
45 5. src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl =>
46 out/<platform>/obj/src/VBox/Frontends/VirtualBox/VirtualBox/include/COMWrappers.h
47 (smart Qt-based C++ wrapper classes for COM interfaces
48 of the Main API)
49
50 6. src/VBox/Installer/win32/VirtualBox_TypeLib.xsl =>
51 out/<platform>/obj/src/VBox/Installer/win32/VirtualBox_TypeLib.wxi
52 (Main API TypeLib block for the WiX installer)
53
54 7. src/VBox/Runtime/common/err/errmsgvboxcom.xsl =>
55 out/<platform>/obj/Runtime/errmsgvboxcomdata.h
56 (<result> extraction for the %Rhrc format specifier)
57-->
58
59<idl>
60
61<desc>
62 Welcome to the <b>VirtualBox Main API documentation</b>. This documentation
63 describes the so-called <i>VirtualBox Main API</i> which comprises all public
64 COM interfaces and components provided by the VirtualBox server and by the
65 VirtualBox client library.
66
67 VirtualBox employs a client-server design, meaning that whenever any part of
68 VirtualBox is running -- be it the Qt GUI, the VBoxManage command-line
69 interface or any virtual machine --, a dedicated server process named
70 VBoxSVC runs in the background. This allows multiple processes working with
71 VirtualBox to cooperate without conflicts. These processes communicate to each
72 other using inter-process communication facilities provided by the COM
73 implementation of the host computer.
74
75 On Windows platforms, the VirtualBox Main API uses Microsoft COM, a native COM
76 implementation. On all other platforms, Mozilla XPCOM, an open-source COM
77 implementation, is used.
78
79 All the parts that a typical VirtualBox user interacts with (the Qt GUI
80 and the VBoxManage command-line interface) are technically
81 front-ends to the Main API and only use the interfaces that are documented
82 in this Main API documentation. This ensures that, with any given release
83 version of VirtualBox, all capabilities of the product that could be useful
84 to an external client program are always exposed by way of this API.
85
86 The VirtualBox Main API (also called the <i>VirtualBox COM library</i>)
87 contains two public component classes:
88 <tt>%VirtualBox.VirtualBox</tt> and <tt>%VirtualBox.Session</tt>, which
89 implement IVirtualBox and ISession interfaces respectively. These two classes
90 are of supreme importance and will be needed in order for any front-end
91 program to do anything useful. It is recommended to read the documentation of
92 the mentioned interfaces first.
93
94 The <tt>%VirtualBox.VirtualBox</tt> class is a singleton. This means that
95 there can be only one object of this class on the local machine at any given
96 time. This object is a parent of many other objects in the VirtualBox COM
97 library and lives in the VBoxSVC process. In fact, when you create an instance
98 of the <tt>VirtualBox.VirtualBox</tt>, the COM subsystem checks if the VBoxSVC
99 process is already running, starts it if not, and returns you a reference to
100 the <tt>VirtualBox</tt> object created in this process. When the last reference
101 to this object is released, the VBoxSVC process ends (with a 5 second delay to
102 protect from too frequent restarts).
103
104 The <tt>%VirtualBox.Session</tt> class is a regular component. You can create
105 as many <tt>Session</tt> objects as you need but all of them will live in a
106 process which issues the object instantiation call. <tt>Session</tt> objects
107 represent virtual machine sessions which are used to configure virtual
108 machines and control their execution.
109
110 The naming of methods and attributes is very clearly defined: they all start
111 with a lowercase letter (except if they start with an acronym), and are using
112 CamelCase style otherwise. This naming only applies to the IDL description,
113 and is modified by the various language bindings (some convert the first
114 character to upper case, some not). See the SDK reference for more details
115 about how to call a method or attribute from a specific programming language.
116</desc>
117
118<if target="midl">
119 <cpp line="enum {"/>
120 <cpp line=" kTypeLibraryMajorVersion = 1,"/>
121 <cpp line=" kTypeLibraryMinorVersion = 0"/>
122 <cpp line="};"/>
123</if>
124
125<if target="xpidl">
126 <!-- NS_IMPL_THREADSAFE_ISUPPORTSxx_CI macros are placed here, for convenience -->
127 <cpp>
128/* currently, nsISupportsImpl.h lacks the below-like macros */
129
130#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI NS_IMPL_QUERY_INTERFACE1_CI
131#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI NS_IMPL_QUERY_INTERFACE2_CI
132#define NS_IMPL_THREADSAFE_QUERY_INTERFACE3_CI NS_IMPL_QUERY_INTERFACE3_CI
133#define NS_IMPL_THREADSAFE_QUERY_INTERFACE4_CI NS_IMPL_QUERY_INTERFACE4_CI
134#define NS_IMPL_THREADSAFE_QUERY_INTERFACE5_CI NS_IMPL_QUERY_INTERFACE5_CI
135#define NS_IMPL_THREADSAFE_QUERY_INTERFACE6_CI NS_IMPL_QUERY_INTERFACE6_CI
136#define NS_IMPL_THREADSAFE_QUERY_INTERFACE7_CI NS_IMPL_QUERY_INTERFACE7_CI
137#define NS_IMPL_THREADSAFE_QUERY_INTERFACE8_CI NS_IMPL_QUERY_INTERFACE8_CI
138
139
140#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
141# define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
142 NS_IMPL_THREADSAFE_ADDREF(_class) \
143 NS_IMPL_THREADSAFE_RELEASE(_class) \
144 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI(_class, _interface) \
145 NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
146#endif
147
148#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
149# define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
150 NS_IMPL_THREADSAFE_ADDREF(_class) \
151 NS_IMPL_THREADSAFE_RELEASE(_class) \
152 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
153 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
154#endif
155
156#ifndef NS_IMPL_THREADSAFE_ISUPPORTS3_CI
157# define NS_IMPL_THREADSAFE_ISUPPORTS3_CI(_class, _i1, _i2, _i3) \
158 NS_IMPL_THREADSAFE_ADDREF(_class) \
159 NS_IMPL_THREADSAFE_RELEASE(_class) \
160 NS_IMPL_THREADSAFE_QUERY_INTERFACE3_CI(_class, _i1, _i2, _i3) \
161 NS_IMPL_CI_INTERFACE_GETTER3(_class, _i1, _i2, _i3)
162#endif
163
164#ifndef NS_IMPL_THREADSAFE_ISUPPORTS4_CI
165# define NS_IMPL_THREADSAFE_ISUPPORTS4_CI(_class, _i1, _i2, _i3, _i4) \
166 NS_IMPL_THREADSAFE_ADDREF(_class) \
167 NS_IMPL_THREADSAFE_RELEASE(_class) \
168 NS_IMPL_THREADSAFE_QUERY_INTERFACE4_CI(_class, _i1, _i2, _i3, _i4) \
169 NS_IMPL_CI_INTERFACE_GETTER4(_class, _i1, _i2, _i3, _i4)
170#endif
171
172#ifndef NS_IMPL_THREADSAFE_ISUPPORTS5_CI
173# define NS_IMPL_THREADSAFE_ISUPPORTS5_CI(_class, _i1, _i2, _i3, _i4, _i5) \
174 NS_IMPL_THREADSAFE_ADDREF(_class) \
175 NS_IMPL_THREADSAFE_RELEASE(_class) \
176 NS_IMPL_THREADSAFE_QUERY_INTERFACE5_CI(_class, _i1, _i2, _i3, _i4, _i5) \
177 NS_IMPL_CI_INTERFACE_GETTER5(_class, _i1, _i2, _i3, _i4, _i5)
178#endif
179
180#ifndef NS_IMPL_THREADSAFE_ISUPPORTS6_CI
181# define NS_IMPL_THREADSAFE_ISUPPORTS6_CI(_class, _i1, _i2, _i3, _i4, _i5, _i6) \
182 NS_IMPL_THREADSAFE_ADDREF(_class) \
183 NS_IMPL_THREADSAFE_RELEASE(_class) \
184 NS_IMPL_THREADSAFE_QUERY_INTERFACE6_CI(_class, _i1, _i2, _i3, _i4, _i5, _i6) \
185 NS_IMPL_CI_INTERFACE_GETTER6(_class, _i1, _i2, _i3, _i4, _i5, _i6)
186#endif
187
188#ifndef NS_IMPL_THREADSAFE_ISUPPORTS7_CI
189# define NS_IMPL_THREADSAFE_ISUPPORTS7_CI(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7) \
190 NS_IMPL_THREADSAFE_ADDREF(_class) \
191 NS_IMPL_THREADSAFE_RELEASE(_class) \
192 NS_IMPL_THREADSAFE_QUERY_INTERFACE7_CI(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7) \
193 NS_IMPL_CI_INTERFACE_GETTER7(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7)
194#endif
195
196#ifndef NS_IMPL_THREADSAFE_ISUPPORTS8_CI
197# define NS_IMPL_THREADSAFE_ISUPPORTS8_CI(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7, _i8) \
198 NS_IMPL_THREADSAFE_ADDREF(_class) \
199 NS_IMPL_THREADSAFE_RELEASE(_class) \
200 NS_IMPL_THREADSAFE_QUERY_INTERFACE8_CI(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7, _i8) \
201 NS_IMPL_CI_INTERFACE_GETTER8(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7, _i8)
202#endif
203
204#ifndef NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
205# define NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
206 NS_INTERFACE_MAP_BEGIN(_class) \
207 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
208 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
209 NS_IMPL_QUERY_CLASSINFO(_class) \
210 NS_INTERFACE_MAP_END
211#endif
212
213#ifndef NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
214# define NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
215 _i2, _ic2) \
216 NS_INTERFACE_MAP_BEGIN(_class) \
217 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
218 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
219 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
220 NS_IMPL_QUERY_CLASSINFO(_class) \
221 NS_INTERFACE_MAP_END
222#endif
223
224#ifndef NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI
225# define NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI(_class, _i1, _ic1, \
226 _i2, _ic2, _i3, _ic3) \
227 NS_INTERFACE_MAP_BEGIN(_class) \
228 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
229 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
230 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i3, _ic3) \
231 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
232 NS_IMPL_QUERY_CLASSINFO(_class) \
233 NS_INTERFACE_MAP_END
234#endif
235
236#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
237#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
238#define NS_IMPL_THREADSAFE_QUERY_INTERFACE3_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI
239
240#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI
241# define NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI(_class, _i1, _ic1) \
242 NS_IMPL_THREADSAFE_ADDREF(_class) \
243 NS_IMPL_THREADSAFE_RELEASE(_class) \
244 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
245 NS_IMPL_CI_INTERFACE_GETTER1(_class, _i1)
246#endif
247
248#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI
249# define NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI(_class, _i1, _ic1, \
250 _i2, _ic2) \
251 NS_IMPL_THREADSAFE_ADDREF(_class) \
252 NS_IMPL_THREADSAFE_RELEASE(_class) \
253 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
254 _i2, _ic2) \
255 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
256#endif
257
258#ifndef NS_IMPL_THREADSAFE_ISUPPORTS3_AMBIGUOUS_CI
259# define NS_IMPL_THREADSAFE_ISUPPORTS3_AMBIGUOUS_CI(_class, _i1, _ic1, \
260 _i2, _ic2, _i3, _ic3) \
261 NS_IMPL_THREADSAFE_ADDREF(_class) \
262 NS_IMPL_THREADSAFE_RELEASE(_class) \
263 NS_IMPL_THREADSAFE_QUERY_INTERFACE3_AMBIGUOUS_CI(_class, _i1, _ic1, \
264 _i2, _ic2, _i3, _ic3) \
265 NS_IMPL_CI_INTERFACE_GETTER3(_class, _i1, _i2, _i3)
266#endif
267
268 </cpp>
269</if>
270
271<library
272 name="VirtualBox"
273 uuid="d7569351-1750-46f0-936e-bd127d5bc264"
274 version="1.3"
275 desc="VirtualBox Type Library"
276 appUuid="819B4D85-9CEE-493C-B6FC-64FFE759B3C9"
277 supportsErrorInfo="yes"
278>
279
280
281 <!--
282 // COM result codes for VirtualBox
283 /////////////////////////////////////////////////////////////////////////
284 -->
285
286 <descGroup id="VirtualBox_COM_result_codes" title="VirtualBox COM result codes">
287 <desc>
288 This section describes all VirtualBox-specific COM result codes that may
289 be returned by methods of VirtualBox COM interfaces in addition to
290 standard COM result codes.
291
292 Note that along with the result code, every VirtualBox method returns
293 extended error information through the IVirtualBoxErrorInfo interface on
294 failure. This interface is a preferred way to present the error to the end
295 user because it contains a human readable description of the error. Raw
296 result codes, both standard and described in this section, are intended to
297 be used by programs to analyze the reason of a failure and select an
298 appropriate course of action without involving the end user (for example,
299 retry the operation later or make a different call).
300
301 The standard COM result codes that may originate from our methods include:
302
303 <table>
304 <tr><td>E_INVALIDARG</td>
305 <td>
306 Returned when the value of the method's argument is not within the range
307 of valid values. This should not be confused with situations when the
308 value is within the range but simply doesn't suit the current object
309 state and there is a possibility that it will be accepted later (in such
310 cases VirtualBox-specific codes are returned, for example,
311 <link to="VBOX_E_OBJECT_NOT_FOUND"/>).
312 </td>
313 </tr>
314 <tr><td>E_POINTER</td>
315 <td>
316 Returned if a memory pointer for the output argument is invalid (for
317 example, @c null). When pointers representing input arguments (such
318 as strings) are invalid, E_INVALIDARG is returned.
319 </td>
320 </tr>
321 <tr><td>E_ACCESSDENIED</td>
322 <td>
323 Returned when the called object is not ready. Since the lifetime of a
324 public COM object cannot be fully controlled by the implementation,
325 VirtualBox maintains the readiness state for all objects it creates and
326 returns this code in response to any method call on the object that was
327 deactivated by VirtualBox and is not functioning any more.
328 </td>
329 </tr>
330 <tr><td>E_OUTOFMEMORY</td>
331 <td>
332 Returned when a memory allocation operation fails.
333 </td>
334 </tr>
335 </table>
336 </desc>
337 </descGroup>
338
339 <!--
340 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
341 everything in <result>/<desc> after (and including) the first dot, so express
342 the matter of the error code in the first sentence and keep it short.
343 -->
344
345 <result name="VBOX_E_OBJECT_NOT_FOUND" value="0x80BB0001">
346 <desc>
347 Object corresponding to the supplied arguments does not exist.
348 </desc>
349 </result>
350
351 <result name="VBOX_E_INVALID_VM_STATE" value="0x80BB0002">
352 <desc>
353 Current virtual machine state prevents the operation.
354 </desc>
355 </result>
356
357 <result name="VBOX_E_VM_ERROR" value="0x80BB0003">
358 <desc>
359 Virtual machine error occurred attempting the operation.
360 </desc>
361 </result>
362
363 <result name="VBOX_E_FILE_ERROR" value="0x80BB0004">
364 <desc>
365 File not accessible or erroneous file contents.
366 </desc>
367 </result>
368
369 <result name="VBOX_E_IPRT_ERROR" value="0x80BB0005">
370 <desc>
371 Runtime subsystem error.
372 </desc>
373 </result>
374
375 <result name="VBOX_E_PDM_ERROR" value="0x80BB0006">
376 <desc>
377 Pluggable Device Manager error.
378 </desc>
379 </result>
380
381 <result name="VBOX_E_INVALID_OBJECT_STATE" value="0x80BB0007">
382 <desc>
383 Current object state prohibits operation.
384 </desc>
385 </result>
386
387 <result name="VBOX_E_HOST_ERROR" value="0x80BB0008">
388 <desc>
389 Host operating system related error.
390 </desc>
391 </result>
392
393 <result name="VBOX_E_NOT_SUPPORTED" value="0x80BB0009">
394 <desc>
395 Requested operation is not supported.
396 </desc>
397 </result>
398
399 <result name="VBOX_E_XML_ERROR" value="0x80BB000A">
400 <desc>
401 Invalid XML found.
402 </desc>
403 </result>
404
405 <result name="VBOX_E_INVALID_SESSION_STATE" value="0x80BB000B">
406 <desc>
407 Current session state prohibits operation.
408 </desc>
409 </result>
410
411 <result name="VBOX_E_OBJECT_IN_USE" value="0x80BB000C">
412 <desc>
413 Object being in use prohibits operation.
414 </desc>
415 </result>
416
417 <!--
418 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
419 everything in <result>/<desc> after (and including) the first dot, so express
420 the matter of the error code in the first sentence and keep it short.
421 -->
422
423 <descGroup/>
424
425 <!--
426 // all common enums
427 /////////////////////////////////////////////////////////////////////////
428 -->
429
430 <enum
431 name="SettingsVersion"
432 uuid="d5b15ca7-3de7-46b2-a63a-ddcce42bfa3f"
433 >
434 <desc>
435 Settings version of VirtualBox settings files. This is written to
436 the "version" attribute of the root "VirtualBox" element in the settings
437 file XML and indicates which VirtualBox version wrote the file.
438 </desc>
439
440 <const name="Null" value="0">
441 <desc>Null value, indicates invalid version.</desc>
442 </const>
443 <const name="v1_0" value="1">
444 <desc>Legacy settings version, not currently supported.</desc>
445 </const>
446 <const name="v1_1" value="2">
447 <desc>Legacy settings version, not currently supported.</desc>
448 </const>
449 <const name="v1_2" value="3">
450 <desc>Legacy settings version, not currently supported.</desc>
451 </const>
452 <const name="v1_3pre" value="4">
453 <desc>Legacy settings version, not currently supported.</desc>
454 </const>
455 <const name="v1_3" value="5">
456 <desc>Settings version "1.3", written by VirtualBox 2.0.12.</desc>
457 <!--
458 Machine XML: Capitalization of Uart, Lpt elements and many attributes changed.
459 -->
460 </const>
461 <const name="v1_4" value="6">
462 <desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
463 <!--
464 VirtualBox.xml: big DiskRegistry -> MediaRegistry revamp, various HardDisk types merged
465 (was VirtualDiskImage, VMDKImage, VHDImage, ISCSIHardDisk, CustomHardDisk, DiffHardDisk)
466 -->
467 </const>
468 <const name="v1_5" value="7">
469 <desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
470 <!--
471 2008-09-04: 2.0.0 released
472 2008-11-20: settings version 1.5 introduced
473 2008-12-17: 2.1.0 released
474 Machine changes:
475 guest OS identifiers changed;
476 Machine/Hardware/Display/MonitorCount renamed to monitorCount;
477 Machine/Hardware/Display/Accelerate3D renamed to accelerate3D;
478 Machine/Hardware/CPU/CPUCount/@count changed to CPU/@count
479 -->
480 </const>
481 <const name="v1_6" value="8">
482 <desc>Settings version "1.6", written by VirtualBox 2.1.4 (at least).</desc>
483 <!--
484 2008-12-17: 2.1.0 released
485 2008-12-19: settings version 1.6 introduced (is in 2.1 branch)
486 2009-04-08: 2.2.0 released
487 Machine changes: remove all Machine/Hardware/Network/Adapter/HostInterface[@TAPSetup or @TAPTerminate]/ attributes (done)
488 -->
489 </const>
490 <const name="v1_7" value="9">
491 <desc>Settings version "1.7", written by VirtualBox 2.2.x and 3.0.x.</desc>
492 <!--
493 2008-12-17: 2.1.0 released
494 2009-03-11: settings version 1.7 introduced (is in 2.2 branch)
495 2009-04-08: 2.2.0 released
496 VirtualBox.xml additions: NetserviceRegistry with DHCPServers (done)
497 Machine changes: HardDiskAttachments is now StorageControllers (done)
498 -->
499 </const>
500 <const name="v1_8" value="10">
501 <desc>Intermediate settings version "1.8", understood by VirtualBox 3.1.x.</desc>
502 <!--
503 Machine additions: Display/@accelerate2DVideo (done)
504 -->
505 </const>
506 <const name="v1_9" value="11">
507 <desc>Settings version "1.9", written by VirtualBox 3.1.x.</desc>
508 <!--
509 The big storage controller / DVD / Floppy rework (done)
510 -->
511 </const>
512 <const name="v1_10" value="12">
513 <desc>Settings version "1.10", written by VirtualBox 3.2.x.</desc>
514 <!--
515 Machine changes: RTC localOrUTC (done)
516 CPU hot-plug support
517 -->
518 </const>
519 <const name="v1_11" value="13">
520 <desc>Settings version "1.11", written by VirtualBox 4.0.x.</desc>
521 <!--
522 Machine changes: HD Audio controller, per-machine disk registries,
523 /@format attribute for DVD and floppy images.
524 -->
525 </const>
526 <const name="v1_12" value="14">
527 <desc>Settings version "1.12", written by VirtualBox 4.1.x.</desc>
528 <!--
529 Machine changes: raw PCI device attachment;
530 NetworkAdapter changes: bandwidth group.
531 -->
532 </const>
533 <const name="v1_13" value="15">
534 <desc>Settings version "1.13", written by VirtualBox 4.2.x.</desc>
535 <!--
536 Machine changes: tracing config, groups, autostart;
537 NetworkAdapter changes: unit for bandwidth group limits.
538 -->
539 </const>
540 <const name="v1_14" value="16">
541 <desc>Settings version "1.14", written by VirtualBox 4.3.x.</desc>
542 <!--
543 Machine changes: default frontend.
544 -->
545 </const>
546
547 <const name="Future" value="99999">
548 <desc>Settings version greater than "1.13", written by a future VirtualBox version.</desc>
549 </const>
550 </enum>
551
552 <enum
553 name="AccessMode"
554 uuid="1da0007c-ddf7-4be8-bcac-d84a1558785f"
555 >
556 <desc>
557 Access mode for opening files.
558 </desc>
559
560 <const name="ReadOnly" value="1"/>
561 <const name="ReadWrite" value="2"/>
562 </enum>
563
564 <enum
565 name="MachineState"
566 uuid="ec6c6a9e-113d-4ff4-b44f-0b69f21c97fe"
567 >
568 <desc>
569 Virtual machine execution state.
570
571 This enumeration represents possible values of the <link
572 to="IMachine::state"/> attribute.
573
574 Below is the basic virtual machine state diagram. It shows how the state
575 changes during virtual machine execution. The text in square braces shows
576 a method of the IConsole interface that performs the given state
577 transition.
578
579 <pre>
580 +---------[powerDown()] &lt;- Stuck &lt;--[failure]-+
581 V |
582 +-&gt; PoweredOff --+--&gt;[powerUp()]--&gt; Starting --+ | +-----[resume()]-----+
583 | | | | V |
584 | Aborted -----+ +--&gt; Running --[pause()]--&gt; Paused
585 | | ^ | ^ |
586 | Saved -----------[powerUp()]--&gt; Restoring -+ | | | |
587 | ^ | | | |
588 | | +-----------------------------------------+-|-------------------+ +
589 | | | | |
590 | | +-- Saving &lt;--------[takeSnapshot()]&lt;-------+---------------------+
591 | | | |
592 | +-------- Saving &lt;--------[saveState()]&lt;----------+---------------------+
593 | | |
594 +-------------- Stopping -------[powerDown()]&lt;----------+---------------------+
595 </pre>
596
597 Note that states to the right from PoweredOff, Aborted and Saved in the
598 above diagram are called <i>online VM states</i>. These states
599 represent the virtual machine which is being executed in a dedicated
600 process (usually with a GUI window attached to it where you can see the
601 activity of the virtual machine and interact with it). There are two
602 special pseudo-states, FirstOnline and LastOnline, that can be used in
603 relational expressions to detect if the given machine state is online or
604 not:
605
606 <pre>
607 if (machine.GetState() &gt;= MachineState_FirstOnline &amp;&amp;
608 machine.GetState() &lt;= MachineState_LastOnline)
609 {
610 ...the machine is being executed...
611 }
612 </pre>
613
614 When the virtual machine is in one of the online VM states (that is, being
615 executed), only a few machine settings can be modified. Methods working
616 with such settings contain an explicit note about that. An attempt to
617 change any other setting or perform a modifying operation during this time
618 will result in the @c VBOX_E_INVALID_VM_STATE error.
619
620 All online states except Running, Paused and Stuck are transitional: they
621 represent temporary conditions of the virtual machine that will last as
622 long as the operation that initiated such a condition.
623
624 The Stuck state is a special case. It means that execution of the machine
625 has reached the "Guru Meditation" condition. This condition indicates an
626 internal VMM (virtual machine manager) failure which may happen as a
627 result of either an unhandled low-level virtual hardware exception or one
628 of the recompiler exceptions (such as the <i>too-many-traps</i>
629 condition).
630
631 Note also that any online VM state may transit to the Aborted state. This
632 happens if the process that is executing the virtual machine terminates
633 unexpectedly (for example, crashes). Other than that, the Aborted state is
634 equivalent to PoweredOff.
635
636 There are also a few additional state diagrams that do not deal with
637 virtual machine execution and therefore are shown separately. The states
638 shown on these diagrams are called <i>offline VM states</i> (this includes
639 PoweredOff, Aborted and Saved too).
640
641 The first diagram shows what happens when a lengthy setup operation is
642 being executed (such as <link to="IMachine::attachDevice"/>).
643
644 <pre>
645 +----------------------------------(same state as before the call)------+
646 | |
647 +-&gt; PoweredOff --+ |
648 | | |
649 |-&gt; Aborted -----+--&gt;[lengthy VM configuration call] --&gt; SettingUp -----+
650 | |
651 +-&gt; Saved -------+
652 </pre>
653
654 The next two diagrams demonstrate the process of taking a snapshot of a
655 powered off virtual machine, restoring the state to that as of a snapshot
656 or deleting a snapshot, respectively.
657
658 <pre>
659 +----------------------------------(same state as before the call)------+
660 | |
661 +-&gt; PoweredOff --+ |
662 | +--&gt;[takeSnapshot()] -------------------&gt; Saving ------+
663 +-&gt; Aborted -----+
664
665 +-&gt; PoweredOff --+
666 | |
667 | Aborted -----+--&gt;[restoreSnapshot() ]-------&gt; RestoringSnapshot -+
668 | | [deleteSnapshot() ]-------&gt; DeletingSnapshot --+
669 +-&gt; Saved -------+ |
670 | |
671 +---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
672 </pre>
673
674 Note that the Saving state is present in both the offline state group and
675 online state group. Currently, the only way to determine what group is
676 assumed in a particular case is to remember the previous machine state: if
677 it was Running or Paused, then Saving is an online state, otherwise it is
678 an offline state. This inconsistency may be removed in one of the future
679 versions of VirtualBox by adding a new state.
680
681 <note internal="yes">
682 For whoever decides to touch this enum: In order to keep the
683 comparisons involving FirstOnline and LastOnline pseudo-states valid,
684 the numeric values of these states must be correspondingly updated if
685 needed: for any online VM state, the condition
686 <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
687 @c true. The same relates to transient states for which
688 the condition <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
689 @c true.
690 </note>
691 </desc>
692
693 <const name="Null" value="0">
694 <desc>Null value (never used by the API).</desc>
695 </const>
696 <const name="PoweredOff" value="1">
697 <desc>
698 The machine is not running and has no saved execution state; it has
699 either never been started or been shut down successfully.
700 </desc>
701 </const>
702 <const name="Saved" value="2">
703 <desc>
704 The machine is not currently running, but the execution state of the machine
705 has been saved to an external file when it was running, from where
706 it can be resumed.
707 </desc>
708 </const>
709 <const name="Teleported" value="3">
710 <desc>
711 The machine was teleported to a different host (or process) and then
712 powered off. Take care when powering it on again may corrupt resources
713 it shares with the teleportation target (e.g. disk and network).
714 </desc>
715 </const>
716 <const name="Aborted" value="4">
717 <desc>
718 The process running the machine has terminated abnormally. This may
719 indicate a crash of the VM process in host execution context, or
720 the VM process has been terminated externally.
721 </desc>
722 </const>
723 <const name="Running" value="5">
724 <desc>
725 The machine is currently being executed.
726 <note internal="yes">
727 For whoever decides to touch this enum: In order to keep the
728 comparisons in the old source code valid, this state must immediately
729 precede the Paused state.
730 TODO: Lift this spectacularly wonderful restriction.
731 </note>
732 </desc>
733 </const>
734 <const name="Paused" value="6">
735 <desc>
736 Execution of the machine has been paused.
737 <note internal="yes">
738 For whoever decides to touch this enum: In order to keep the
739 comparisons in the old source code valid, this state must immediately
740 follow the Running state.
741 TODO: Lift this spectacularly wonderful restriction.
742 </note>
743 </desc>
744 </const>
745 <const name="Stuck" value="7">
746 <desc>
747 Execution of the machine has reached the "Guru Meditation"
748 condition. This indicates a severe error in the hypervisor itself.
749 <note internal="yes">
750 bird: Why this uncool name? Could we rename it to "GuruMeditation" or
751 "Guru", perhaps? Or are there some other VMM states that are
752 intended to be lumped in here as well?
753 </note>
754 </desc>
755 </const>
756 <const name="Teleporting" value="8">
757 <desc>
758 The machine is about to be teleported to a different host or process.
759 It is possible to pause a machine in this state, but it will go to the
760 @c TeleportingPausedVM state and it will not be
761 possible to resume it again unless the teleportation fails.
762 </desc>
763 </const>
764 <const name="LiveSnapshotting" value="9">
765 <desc>
766 A live snapshot is being taken. The machine is running normally, but
767 some of the runtime configuration options are inaccessible. Also, if
768 paused while in this state it will transition to
769 @c Saving and it will not be resume the
770 execution until the snapshot operation has completed.
771 </desc>
772 </const>
773 <const name="Starting" value="10">
774 <desc>
775 Machine is being started after powering it on from a
776 zero execution state.
777 </desc>
778 </const>
779 <const name="Stopping" value="11">
780 <desc>
781 Machine is being normally stopped powering it off, or after the guest OS
782 has initiated a shutdown sequence.
783 </desc>
784 </const>
785 <const name="Saving" value="12">
786 <desc>
787 Machine is saving its execution state to a file, or an online
788 snapshot of the machine is being taken.
789 </desc>
790 </const>
791 <const name="Restoring" value="13">
792 <desc>
793 Execution state of the machine is being restored from a file
794 after powering it on from the saved execution state.
795 </desc>
796 </const>
797 <const name="TeleportingPausedVM" value="14">
798 <desc>
799 The machine is being teleported to another host or process, but it is
800 not running. This is the paused variant of the
801 @c state.
802 </desc>
803 </const>
804 <const name="TeleportingIn" value="15">
805 <desc>
806 Teleporting the machine state in from another host or process.
807 </desc>
808 </const>
809 <const name="FaultTolerantSyncing" value="16">
810 <desc>
811 The machine is being synced with a fault tolerant VM running elsewhere.
812 </desc>
813 </const>
814 <const name="DeletingSnapshotOnline" value="17">
815 <desc>
816 Like @c DeletingSnapshot, but the merging of media is ongoing in
817 the background while the machine is running.
818 </desc>
819 </const>
820 <const name="DeletingSnapshotPaused" value="18">
821 <desc>
822 Like @c DeletingSnapshotOnline, but the machine was paused when the
823 merging of differencing media was started.
824 </desc>
825 </const>
826 <const name="RestoringSnapshot" value="19">
827 <desc>
828 A machine snapshot is being restored; this typically does not take long.
829 </desc>
830 </const>
831 <const name="DeletingSnapshot" value="20">
832 <desc>
833 A machine snapshot is being deleted; this can take a long time since this
834 may require merging differencing media. This value indicates that the
835 machine is not running while the snapshot is being deleted.
836 </desc>
837 </const>
838 <const name="SettingUp" value="21">
839 <desc>
840 Lengthy setup operation is in progress.
841 </desc>
842 </const>
843
844 <const name="FirstOnline" value="5" wsmap="suppress"> <!-- Running -->
845 <desc>
846 Pseudo-state: first online state (for use in relational expressions).
847 </desc>
848 </const>
849 <const name="LastOnline" value="18" wsmap="suppress"> <!-- DeletingSnapshotPaused -->
850 <desc>
851 Pseudo-state: last online state (for use in relational expressions).
852 </desc>
853 </const>
854
855 <const name="FirstTransient" value="8" wsmap="suppress"> <!-- Teleporting -->
856 <desc>
857 Pseudo-state: first transient state (for use in relational expressions).
858 </desc>
859 </const>
860 <const name="LastTransient" value="21" wsmap="suppress"> <!-- SettingUp -->
861 <desc>
862 Pseudo-state: last transient state (for use in relational expressions).
863 </desc>
864 </const>
865
866 </enum>
867
868 <enum
869 name="SessionState"
870 uuid="cf2700c0-ea4b-47ae-9725-7810114b94d8"
871 >
872 <desc>
873 Session state. This enumeration represents possible values of
874 <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
875 attributes.
876 </desc>
877
878 <const name="Null" value="0">
879 <desc>Null value (never used by the API).</desc>
880 </const>
881 <const name="Unlocked" value="1">
882 <desc>
883 In <link to="IMachine::sessionState"/>, this means that the machine
884 is not locked for any sessions.
885
886 In <link to="ISession::state"/>, this means that no machine is
887 currently locked for this session.
888 </desc>
889 </const>
890 <const name="Locked" value="2">
891 <desc>
892 In <link to="IMachine::sessionState"/>, this means that the machine
893 is currently locked for a session, whose process identifier can
894 then be found in the <link to="IMachine::sessionPID" /> attribute.
895
896 In <link to="ISession::state"/>, this means that a machine is
897 currently locked for this session, and the mutable machine object
898 can be found in the <link to="ISession::machine"/> attribute
899 (see <link to="IMachine::lockMachine" /> for details).
900 </desc>
901 </const>
902 <const name="Spawning" value="3">
903 <desc>
904 A new process is being spawned for the machine as a result of
905 <link to="IMachine::launchVMProcess"/> call. This state also occurs
906 as a short transient state during an <link to="IMachine::lockMachine"/>
907 call.
908 </desc>
909 </const>
910 <const name="Unlocking" value="4">
911 <desc>
912 The session is being unlocked.
913 </desc>
914 </const>
915 </enum>
916
917 <enum
918 name="CPUPropertyType"
919 uuid="24d356a6-2f45-4abd-b977-1cbe9c4701f5"
920 >
921 <desc>
922 Virtual CPU property type. This enumeration represents possible values of the
923 IMachine get- and setCPUProperty methods.
924 </desc>
925 <const name="Null" value="0">
926 <desc>Null value (never used by the API).</desc>
927 </const>
928 <const name="PAE" value="1">
929 <desc>
930 This setting determines whether VirtualBox will expose the Physical Address
931 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
932 is not available, it will not be reported.
933 </desc>
934 </const>
935 <const name="Synthetic" value="2">
936 <desc>
937 This setting determines whether VirtualBox will expose a synthetic CPU to the guest to allow
938 teleporting between host systems that differ significantly.
939 </desc>
940 </const>
941 </enum>
942
943
944 <enum
945 name="HWVirtExPropertyType"
946 uuid="ce81dfdd-d2b8-4a90-bbea-40ee8b7ffcee"
947 >
948 <desc>
949 Hardware virtualization property type. This enumeration represents possible values
950 for the <link to="IMachine::getHWVirtExProperty"/> and
951 <link to="IMachine::setHWVirtExProperty"/> methods.
952 </desc>
953 <const name="Null" value="0">
954 <desc>Null value (never used by the API).</desc>
955 </const>
956 <const name="Enabled" value="1">
957 <desc>
958 Whether hardware virtualization (VT-x/AMD-V) is enabled at all. If
959 such extensions are not available, they will not be used.
960 </desc>
961 </const>
962 <const name="Exclusive" value="2">
963 <desc>
964 Whether hardware virtualization is used exclusively by VirtualBox. When enabled,
965 VirtualBox assumes it can acquire full and exclusive access to the VT-x or AMD-V
966 feature of the host. To share these with other hypervisors, you must disable this property.
967 </desc>
968 </const>
969 <const name="VPID" value="3">
970 <desc>
971 Whether VT-x VPID is enabled. If this extension is not available, it will not be used.
972 </desc>
973 </const>
974 <const name="NestedPaging" value="4">
975 <desc>
976 Whether Nested Paging is enabled. If this extension is not available, it will not be used.
977 </desc>
978 </const>
979 <const name="LargePages" value="5">
980 <desc>
981 Whether large page allocation is enabled; requires nested paging and a 64 bits host.
982 </desc>
983 </const>
984 <const name="Force" value="6">
985 <desc>
986 Whether the VM should fail to start if hardware virtualization (VT-x/AMD-V) cannot be used. If
987 not set, there will be an automatic fallback to software virtualization.
988 </desc>
989 </const>
990 </enum>
991
992 <enum
993 name="FaultToleranceState"
994 uuid="5124f7ec-6b67-493c-9dee-ee45a44114e1"
995 >
996 <desc>
997 Used with <link to="IMachine::faultToleranceState" />.
998 </desc>
999 <const name="Inactive" value="1">
1000 <desc>No fault tolerance enabled.</desc>
1001 </const>
1002 <const name="Master" value="2">
1003 <desc>Fault tolerant master VM.</desc>
1004 </const>
1005 <const name="Standby" value="3">
1006 <desc>Fault tolerant standby VM.</desc>
1007 </const>
1008 </enum>
1009
1010 <enum
1011 name="LockType"
1012 uuid="168a6a8e-12fd-4878-a1f9-38a750a56089"
1013 >
1014 <desc>
1015 Used with <link to="IMachine::lockMachine" />.
1016 </desc>
1017 <const name="Write" value="2">
1018 <desc>Lock the machine for writing.</desc>
1019 </const>
1020 <const name="Shared" value="1">
1021 <desc>Request only a shared read lock for remote-controlling the machine.</desc>
1022 </const>
1023 <const name="VM" value="3">
1024 <desc>Lock the machine for writing, and create objects necessary for
1025 running a VM in this process.</desc>
1026 </const>
1027 </enum>
1028
1029 <enum
1030 name="SessionType"
1031 uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
1032 >
1033 <desc>
1034 Session type. This enumeration represents possible values of the
1035 <link to="ISession::type"/> attribute.
1036 </desc>
1037
1038 <const name="Null" value="0">
1039 <desc>Null value (never used by the API).</desc>
1040 </const>
1041 <const name="WriteLock" value="1">
1042 <desc>
1043 Session has acquired an exclusive write lock on a machine
1044 using <link to="IMachine::lockMachine"/>.
1045 </desc>
1046 </const>
1047 <const name="Remote" value="2">
1048 <desc>
1049 Session has launched a VM process using
1050 <link to="IMachine::launchVMProcess"/>
1051 </desc>
1052 </const>
1053 <const name="Shared" value="3">
1054 <desc>
1055 Session has obtained a link to another session using
1056 <link to="IMachine::lockMachine"/>
1057 </desc>
1058 </const>
1059 </enum>
1060
1061 <enum
1062 name="DeviceType"
1063 uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
1064 >
1065 <desc>
1066 Device type.
1067 </desc>
1068 <const name="Null" value="0">
1069 <desc>
1070 Null value, may also mean "no device" (not allowed for
1071 <link to="IConsole::getDeviceActivity"/>).
1072 </desc>
1073 </const>
1074 <const name="Floppy" value="1">
1075 <desc>Floppy device.</desc>
1076 </const>
1077 <const name="DVD" value="2">
1078 <desc>CD/DVD-ROM device.</desc>
1079 </const>
1080 <const name="HardDisk" value="3">
1081 <desc>Hard disk device.</desc>
1082 </const>
1083 <const name="Network" value="4">
1084 <desc>Network device.</desc>
1085 </const>
1086 <const name="USB" value="5">
1087 <desc>USB device.</desc>
1088 </const>
1089 <const name="SharedFolder" value="6">
1090 <desc>Shared folder device.</desc>
1091 </const>
1092 </enum>
1093
1094 <enum
1095 name="DeviceActivity"
1096 uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
1097 >
1098 <desc>
1099 Device activity for <link to="IConsole::getDeviceActivity"/>.
1100 </desc>
1101
1102 <const name="Null" value="0"/>
1103 <const name="Idle" value="1"/>
1104 <const name="Reading" value="2"/>
1105 <const name="Writing" value="3"/>
1106 </enum>
1107
1108 <enum
1109 name="ClipboardMode"
1110 uuid="33364716-4008-4701-8f14-be0fa3d62950"
1111 >
1112 <desc>
1113 Host-Guest clipboard interchange mode.
1114 </desc>
1115
1116 <const name="Disabled" value="0"/>
1117 <const name="HostToGuest" value="1"/>
1118 <const name="GuestToHost" value="2"/>
1119 <const name="Bidirectional" value="3"/>
1120 </enum>
1121
1122 <enum
1123 name="DragAndDropMode"
1124 uuid="b618ea0e-b6fb-4f8d-97f7-5e237e49b547"
1125 >
1126 <desc>
1127 Drag'n'Drop interchange mode.
1128 </desc>
1129
1130 <const name="Disabled" value="0"/>
1131 <const name="HostToGuest" value="1"/>
1132 <const name="GuestToHost" value="2"/>
1133 <const name="Bidirectional" value="3"/>
1134 </enum>
1135
1136 <enum
1137 name="Scope"
1138 uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
1139 >
1140 <desc>
1141 Scope of the operation.
1142
1143 A generic enumeration used in various methods to define the action or
1144 argument scope.
1145 </desc>
1146
1147 <const name="Global" value="0"/>
1148 <const name="Machine" value="1"/>
1149 <const name="Session" value="2"/>
1150 </enum>
1151
1152 <enum
1153 name="BIOSBootMenuMode"
1154 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
1155 >
1156 <desc>
1157 BIOS boot menu mode.
1158 </desc>
1159
1160 <const name="Disabled" value="0"/>
1161 <const name="MenuOnly" value="1"/>
1162 <const name="MessageAndMenu" value="2"/>
1163 </enum>
1164
1165 <enum
1166 name="ProcessorFeature"
1167 uuid="64c38e6b-8bcf-45ad-ac03-9b406287c5bf"
1168 >
1169 <desc>
1170 CPU features.
1171 </desc>
1172
1173 <const name="HWVirtEx" value="0"/>
1174 <const name="PAE" value="1"/>
1175 <const name="LongMode" value="2"/>
1176 <const name="NestedPaging" value="3"/>
1177 </enum>
1178
1179 <enum
1180 name="FirmwareType"
1181 uuid="b903f264-c230-483e-ac74-2b37ce60d371"
1182 >
1183 <desc>
1184 Firmware type.
1185 </desc>
1186 <const name="BIOS" value="1">
1187 <desc>BIOS Firmware.</desc>
1188 </const>
1189 <const name="EFI" value="2">
1190 <desc>EFI Firmware, bitness detected basing on OS type.</desc>
1191 </const>
1192 <const name="EFI32" value="3">
1193 <desc>Efi firmware, 32-bit.</desc>
1194 </const>
1195 <const name="EFI64" value="4">
1196 <desc>Efi firmware, 64-bit.</desc>
1197 </const>
1198 <const name="EFIDUAL" value="5">
1199 <desc>Efi firmware, combined 32 and 64-bit.</desc>
1200 </const>
1201 </enum>
1202
1203 <enum
1204 name="PointingHIDType"
1205 uuid="e44b2f7b-72ba-44fb-9e53-2186014f0d17"
1206 >
1207 <desc>
1208 Type of pointing device used in a virtual machine.
1209 </desc>
1210 <const name="None" value="1">
1211 <desc>No mouse.</desc>
1212 </const>
1213 <const name="PS2Mouse" value="2">
1214 <desc>PS/2 auxiliary device, a.k.a. mouse.</desc>
1215 </const>
1216 <const name="USBMouse" value="3">
1217 <desc>USB mouse (relative pointer).</desc>
1218 </const>
1219 <const name="USBTablet" value="4">
1220 <desc>USB tablet (absolute pointer).</desc>
1221 </const>
1222 <const name="ComboMouse" value="5">
1223 <desc>Combined device, working as PS/2 or USB mouse, depending on guest behavior.
1224 Using of such device can have negative performance implications. </desc>
1225 </const>
1226 </enum>
1227
1228 <enum
1229 name="KeyboardHIDType"
1230 uuid="383e43d7-5c7c-4ec8-9cb8-eda1bccd6699"
1231 >
1232 <desc>
1233 Type of keyboard device used in a virtual machine.
1234 </desc>
1235 <const name="None" value="1">
1236 <desc>No keyboard.</desc>
1237 </const>
1238 <const name="PS2Keyboard" value="2">
1239 <desc>PS/2 keyboard.</desc>
1240 </const>
1241 <const name="USBKeyboard" value="3">
1242 <desc>USB keyboard.</desc>
1243 </const>
1244 <const name="ComboKeyboard" value="4">
1245 <desc>Combined device, working as PS/2 or USB keyboard, depending on guest behavior.
1246 Using of such device can have negative performance implications. </desc>
1247 </const>
1248 </enum>
1249
1250 <!--
1251 // IVirtualBoxErrorInfo
1252 /////////////////////////////////////////////////////////////////////////
1253 -->
1254
1255 <interface
1256 name="IVirtualBoxErrorInfo" extends="$errorinfo"
1257 uuid="f91e6e91-49e1-4fd2-b21e-269003350d06"
1258 supportsErrorInfo="no"
1259 wsmap="managed"
1260 >
1261 <desc>
1262 The IVirtualBoxErrorInfo interface represents extended error information.
1263
1264 Extended error information can be set by VirtualBox components after
1265 unsuccessful or partially successful method invocation. This information
1266 can be retrieved by the calling party as an IVirtualBoxErrorInfo object
1267 and then shown to the client in addition to the plain 32-bit result code.
1268
1269 In MS COM, this interface extends the IErrorInfo interface,
1270 in XPCOM, it extends the nsIException interface. In both cases,
1271 it provides a set of common attributes to retrieve error
1272 information.
1273
1274 Sometimes invocation of some component's method may involve methods of
1275 other components that may also fail (independently of this method's
1276 failure), or a series of non-fatal errors may precede a fatal error that
1277 causes method failure. In cases like that, it may be desirable to preserve
1278 information about all errors happened during method invocation and deliver
1279 it to the caller. The <link to="#next"/> attribute is intended
1280 specifically for this purpose and allows to represent a chain of errors
1281 through a single IVirtualBoxErrorInfo object set after method invocation.
1282
1283 <note>errors are stored to a chain in the reverse order, i.e. the
1284 initial error object you query right after method invocation is the last
1285 error set by the callee, the object it points to in the @a next attribute
1286 is the previous error and so on, up to the first error (which is the last
1287 in the chain).</note>
1288 </desc>
1289
1290 <attribute name="resultCode" type="long" readonly="yes">
1291 <desc>
1292 Result code of the error.
1293 Usually, it will be the same as the result code returned
1294 by the method that provided this error information, but not
1295 always. For example, on Win32, CoCreateInstance() will most
1296 likely return E_NOINTERFACE upon unsuccessful component
1297 instantiation attempt, but not the value the component factory
1298 returned. Value is typed 'long', not 'result',
1299 to make interface usable from scripting languages.
1300 <note>
1301 In MS COM, there is no equivalent.
1302 In XPCOM, it is the same as nsIException::result.
1303 </note>
1304 </desc>
1305 </attribute>
1306
1307 <attribute name="interfaceID" type="uuid" mod="string" readonly="yes">
1308 <desc>
1309 UUID of the interface that defined the error.
1310 <note>
1311 In MS COM, it is the same as IErrorInfo::GetGUID, except for the
1312 data type.
1313 In XPCOM, there is no equivalent.
1314 </note>
1315 </desc>
1316 </attribute>
1317
1318 <attribute name="component" type="wstring" readonly="yes">
1319 <desc>
1320 Name of the component that generated the error.
1321 <note>
1322 In MS COM, it is the same as IErrorInfo::GetSource.
1323 In XPCOM, there is no equivalent.
1324 </note>
1325 </desc>
1326 </attribute>
1327
1328 <attribute name="text" type="wstring" readonly="yes">
1329 <desc>
1330 Text description of the error.
1331 <note>
1332 In MS COM, it is the same as IErrorInfo::GetDescription.
1333 In XPCOM, it is the same as nsIException::message.
1334 </note>
1335 </desc>
1336 </attribute>
1337
1338 <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
1339 <desc>
1340 Next error object if there is any, or @c null otherwise.
1341 <note>
1342 In MS COM, there is no equivalent.
1343 In XPCOM, it is the same as nsIException::inner.
1344 </note>
1345 </desc>
1346 </attribute>
1347
1348 </interface>
1349
1350 <!--
1351 // IVirtualBox
1352 /////////////////////////////////////////////////////////////////////////
1353 -->
1354 <!-- This is experimental interface to LWIP based NAT server -->
1355 <interface name="INATNetwork" extends="$unknown"
1356 uuid="03DFD6F7-1B78-48A3-8345-C785281E9523"
1357 wsmap="managed">
1358 <attribute name="NetworkName" type="wstring">
1359 <desc>
1360 TBD: the idea, technically we can start any number of the NAT networks,
1361 but we should expect that at some point we will get collisions because of
1362 port-forwanding rules. so perhaps we should support only single instance of NAT
1363 network.
1364 </desc>
1365 </attribute>
1366 <attribute name="enabled" type="boolean"/>
1367 <attribute name="network" type="wstring">
1368 <desc>
1369 This is CIDR IPv4 string. Specifiying it user defines IPv4 addresses
1370 of gateway (low address + 1) and dhcp server (= low address + 2).
1371 Note: if there're defined IPv4 port-forward rules update of network
1372 will be ignored (because new assignment could break existing rules).
1373 </desc>
1374 </attribute>
1375 <attribute name="gateway" type="wstring" readonly="yes">
1376 <desc>
1377 This attribute is read-only. It's recalculated on changing
1378 network attribute (low address of network + 1).
1379 </desc>
1380 </attribute>
1381 <attribute name="IPv6Enabled" type="boolean">
1382 <desc>
1383 This attribute define whether gateway will support IPv6 or not.
1384 </desc>
1385 </attribute>
1386 <attribute name="IPv6Prefix" type="wstring">
1387 <desc>
1388 This a CIDR IPv6 defining prefix for link-local addresses autoconfiguration within network. Note: ignored if attribute ipv6enabled is false.
1389 </desc>
1390 </attribute>
1391 <attribute name="advertiseDefaultIPv6RouteEnabled" type="boolean"/>
1392 <attribute name="needDhcpServer" type="boolean"/>
1393 <attribute name="eventSource" type="IEventSource" readonly="yes"/>
1394 <attribute name="portForwardRules4" type="wstring" readonly="yes" safearray="yes">
1395 <desc>Array of NAT port-forwarding rules in string representation,
1396 in the following format:
1397 "name:protocolid:[host ip]:host port:[guest ip]:guest port".
1398 </desc>
1399 </attribute>
1400 <attribute name="portForwardRules6" type="wstring" readonly="yes" safearray="yes">
1401 <desc>Array of NAT port-forwarding rules in string representation, in the
1402 following format: "name:protocolid:[host ip]:host port:[guest ip]:guest port".
1403 </desc>
1404 </attribute>
1405 <method name="addPortForwardRule">
1406 <param name="isIpv6" type="boolean" dir="in"/>
1407 <param name="ruleName" type="wstring" dir="in"/>
1408 <param name="proto" type="NATProtocol" dir="in">
1409 <desc>Protocol handled with the rule.</desc>
1410 </param>
1411 <param name="hostIP" type="wstring" dir="in">
1412 <desc>IP of the host interface to which the rule should apply.
1413 An empty ip address is acceptable, in which case the NAT engine
1414 binds the handling socket to any interface.
1415 </desc>
1416 </param>
1417 <param name="hostPort" type="unsigned short" dir="in">
1418 <desc>The port number to listen on.</desc>
1419 </param>
1420 <param name="guestIP" type="wstring" dir="in">
1421 <desc>The IP address of the guest which the NAT engine will forward
1422 matching packets to. An empty IP address is not acceptable.</desc>
1423 </param>
1424 <param name="guestPort" type="unsigned short" dir="in">
1425 <desc>The port number to forward.</desc>
1426 </param>
1427 </method>
1428 <method name="removePortForwardRule">
1429 <param name="iSipv6" type="boolean" dir="in"/>
1430 <param name="ruleName" type="wstring" dir="in"/>
1431 </method>
1432 <method name="start">
1433 <param name="trunkType" type="wstring" dir="in">
1434 <desc>
1435 Type of internal network trunk.
1436 </desc>
1437 </param>
1438 </method>
1439 <method name="stop"/>
1440 </interface>
1441
1442 <interface
1443 name="IDHCPServer" extends="$unknown"
1444 uuid="6cfe387c-74fb-4ca7-bff6-973bec8af7a3"
1445 wsmap="managed"
1446 >
1447 <desc>
1448 The IDHCPServer interface represents the vbox DHCP server configuration.
1449
1450 To enumerate all the DHCP servers on the host, use the
1451 <link to="IVirtualBox::DHCPServers"/> attribute.
1452 </desc>
1453
1454 <attribute name="enabled" type="boolean">
1455 <desc>
1456 specifies if the DHCP server is enabled
1457 </desc>
1458 </attribute>
1459
1460 <attribute name="IPAddress" type="wstring" readonly="yes">
1461 <desc>
1462 specifies server IP
1463 </desc>
1464 </attribute>
1465
1466 <attribute name="networkMask" type="wstring" readonly="yes">
1467 <desc>
1468 specifies server network mask
1469 </desc>
1470 </attribute>
1471
1472 <attribute name="networkName" type="wstring" readonly="yes">
1473 <desc>
1474 specifies internal network name the server is used for
1475 </desc>
1476 </attribute>
1477
1478 <attribute name="lowerIP" type="wstring" readonly="yes">
1479 <desc>
1480 specifies from IP address in server address range
1481 </desc>
1482 </attribute>
1483
1484 <attribute name="upperIP" type="wstring" readonly="yes">
1485 <desc>
1486 specifies to IP address in server address range
1487 </desc>
1488 </attribute>
1489
1490 <method name="setConfiguration">
1491 <desc>
1492 configures the server
1493 <result name="E_INVALIDARG">
1494 invalid configuration supplied
1495 </result>
1496 </desc>
1497 <param name="IPAddress" type="wstring" dir="in">
1498 <desc>
1499 server IP address
1500 </desc>
1501 </param>
1502 <param name="networkMask" type="wstring" dir="in">
1503 <desc>
1504 server network mask
1505 </desc>
1506 </param>
1507 <param name="FromIPAddress" type="wstring" dir="in">
1508 <desc>
1509 server From IP address for address range
1510 </desc>
1511 </param>
1512 <param name="ToIPAddress" type="wstring" dir="in">
1513 <desc>
1514 server To IP address for address range
1515 </desc>
1516 </param>
1517 </method>
1518
1519 <method name="start">
1520 <desc>
1521 Starts DHCP server process.
1522 <result name="E_FAIL">
1523 Failed to start the process.
1524 </result>
1525 </desc>
1526 <param name="networkName" type="wstring" dir="in">
1527 <desc>
1528 Name of internal network DHCP server should attach to.
1529 </desc>
1530 </param>
1531 <param name="trunkName" type="wstring" dir="in">
1532 <desc>
1533 Name of internal network trunk.
1534 </desc>
1535 </param>
1536 <param name="trunkType" type="wstring" dir="in">
1537 <desc>
1538 Type of internal network trunk.
1539 </desc>
1540 </param>
1541 </method>
1542
1543 <method name="stop">
1544 <desc>
1545 Stops DHCP server process.
1546 <result name="E_FAIL">
1547 Failed to stop the process.
1548 </result>
1549 </desc>
1550 </method>
1551 </interface>
1552
1553 <interface
1554 name="IVirtualBox" extends="$unknown"
1555 uuid="fafa4e17-1ee2-4905-a10e-fe7c18bf5554"
1556 wsmap="managed"
1557 >
1558 <desc>
1559 The IVirtualBox interface represents the main interface exposed by the
1560 product that provides virtual machine management.
1561
1562 An instance of IVirtualBox is required for the product to do anything
1563 useful. Even though the interface does not expose this, internally,
1564 IVirtualBox is implemented as a singleton and actually lives in the
1565 process of the VirtualBox server (VBoxSVC.exe). This makes sure that
1566 IVirtualBox can track the state of all virtual machines on a particular
1567 host, regardless of which frontend started them.
1568
1569 To enumerate all the virtual machines on the host, use the
1570 <link to="IVirtualBox::machines"/> attribute.
1571 </desc>
1572
1573 <attribute name="version" type="wstring" readonly="yes">
1574 <desc>
1575 A string representing the version number of the product. The
1576 format is 3 integer numbers divided by dots (e.g. 1.0.1). The
1577 last number represents the build number and will frequently change.
1578
1579 This may be followed by a _ALPHA[0-9]*, _BETA[0-9]* or _RC[0-9]* tag
1580 in prerelease builds. Non-Oracle builds may (/shall) also have a
1581 publisher tag, at the end. The publisher tag starts with an underscore
1582 just like the prerelease build type tag.
1583 </desc>
1584 </attribute>
1585
1586 <attribute name="versionNormalized" type="wstring" readonly="yes">
1587 <desc>
1588 A string representing the version number of the product,
1589 without the publisher information (but still with other tags).
1590 See <link to="#version" />.
1591 </desc>
1592 </attribute>
1593
1594 <attribute name="revision" type="unsigned long" readonly="yes">
1595 <desc>
1596 The internal build revision number of the product.
1597 </desc>
1598 </attribute>
1599
1600 <attribute name="packageType" type="wstring" readonly="yes">
1601 <desc>
1602 A string representing the package type of this product. The
1603 format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
1604 SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
1605 is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
1606 this.
1607 </desc>
1608 </attribute>
1609
1610 <attribute name="APIVersion" type="wstring" readonly="yes">
1611 <desc>
1612 A string representing the VirtualBox API version number. The format is
1613 2 integer numbers divided by an underscore (e.g. 1_0). After the
1614 first public release of packages with a particular API version the
1615 API will not be changed in an incompatible way. Note that this
1616 guarantee does not apply to development builds, and also there is no
1617 guarantee that this version is identical to the first two integer
1618 numbers of the package version.
1619 </desc>
1620 </attribute>
1621
1622 <attribute name="homeFolder" type="wstring" readonly="yes">
1623 <desc>
1624 Full path to the directory where the global settings file,
1625 <tt>VirtualBox.xml</tt>, is stored.
1626
1627 In this version of VirtualBox, the value of this property is
1628 always <tt>&lt;user_dir&gt;/.VirtualBox</tt> (where
1629 <tt>&lt;user_dir&gt;</tt> is the path to the user directory,
1630 as determined by the host OS), and cannot be changed.
1631
1632 This path is also used as the base to resolve relative paths in
1633 places where relative paths are allowed (unless otherwise
1634 expressly indicated).
1635 </desc>
1636 </attribute>
1637
1638 <attribute name="settingsFilePath" type="wstring" readonly="yes">
1639 <desc>
1640 Full name of the global settings file.
1641 The value of this property corresponds to the value of
1642 <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
1643 </desc>
1644 </attribute>
1645
1646 <attribute name="host" type="IHost" readonly="yes">
1647 <desc>Associated host object.</desc>
1648 </attribute>
1649
1650 <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
1651 <desc>Associated system information object.</desc>
1652 </attribute>
1653
1654 <attribute name="machines" type="IMachine" readonly="yes" safearray="yes">
1655 <desc>
1656 Array of machine objects registered within this VirtualBox instance.
1657 </desc>
1658 </attribute>
1659
1660 <attribute name="machineGroups" type="wstring" readonly="yes" safearray="yes">
1661 <desc>
1662 Array of all machine group names which are used by the machines which
1663 are accessible. Each group is only listed once, however they are listed
1664 in no particular order and there is no guarantee that there are no gaps
1665 in the group hierarchy (i.e. <tt>"/"</tt>, <tt>"/group/subgroup"</tt>
1666 is a valid result).
1667 </desc>
1668 </attribute>
1669
1670 <attribute name="hardDisks" type="IMedium" readonly="yes" safearray="yes">
1671 <desc>
1672 Array of medium objects known to this VirtualBox installation.
1673
1674 This array contains only base media. All differencing
1675 media of the given base medium can be enumerated using
1676 <link to="IMedium::children"/>.
1677 </desc>
1678 </attribute>
1679
1680 <attribute name="DVDImages" type="IMedium" readonly="yes" safearray="yes">
1681 <desc>
1682 Array of CD/DVD image objects currently in use by this VirtualBox instance.
1683 </desc>
1684 </attribute>
1685
1686 <attribute name="floppyImages" type="IMedium" readonly="yes" safearray="yes">
1687 <desc>
1688 Array of floppy image objects currently in use by this VirtualBox instance.
1689 </desc>
1690 </attribute>
1691
1692 <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
1693
1694 <attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
1695
1696 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
1697 <desc>
1698 Collection of global shared folders. Global shared folders are
1699 available to all virtual machines.
1700
1701 New shared folders are added to the collection using
1702 <link to="#createSharedFolder"/>. Existing shared folders can be
1703 removed using <link to="#removeSharedFolder"/>.
1704
1705 <note>
1706 In the current version of the product, global shared folders are not
1707 implemented and therefore this collection is always empty.
1708 </note>
1709 </desc>
1710 </attribute>
1711
1712 <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
1713 <desc>
1714 Associated performance collector object.
1715 </desc>
1716 </attribute>
1717
1718 <attribute name="DHCPServers" type="IDHCPServer" safearray="yes" readonly="yes">
1719 <desc>
1720 DHCP servers.
1721 </desc>
1722 </attribute>
1723 <!-- Array of NAT networks -->
1724 <attribute name="NATNetworks" type="INATNetwork" safearray="yes" readonly="yes"/>
1725
1726 <attribute name="eventSource" type="IEventSource" readonly="yes">
1727 <desc>
1728 Event source for VirtualBox events.
1729 </desc>
1730 </attribute>
1731
1732 <attribute name="extensionPackManager" type="IExtPackManager" readonly="yes">
1733 <desc>
1734 The extension pack manager.
1735 </desc>
1736 </attribute>
1737
1738
1739 <attribute name="internalNetworks" type="wstring" safearray="yes" readonly="yes">
1740 <desc>
1741 Names of all internal networks.
1742 </desc>
1743 </attribute>
1744
1745 <attribute name="genericNetworkDrivers" type="wstring" safearray="yes" readonly="yes">
1746 <desc>
1747 Names of all generic network drivers.
1748 </desc>
1749 </attribute>
1750
1751 <method name="composeMachineFilename">
1752 <desc>
1753 Returns a recommended full path of the settings file name for a new virtual
1754 machine.
1755
1756 This API serves two purposes:
1757
1758 <ul>
1759 <li>It gets called by <link to="#createMachine" /> if @c null or
1760 empty string (which is recommended) is specified for the
1761 @a settingsFile argument there, which means that API should use
1762 a recommended default file name.</li>
1763
1764 <li>It can be called manually by a client software before creating a machine,
1765 e.g. if that client wants to pre-create the machine directory to create
1766 virtual hard disks in that directory together with the new machine
1767 settings file. In that case, the file name should be stripped from the
1768 full settings file path returned by this function to obtain the
1769 machine directory.</li>
1770 </ul>
1771
1772 See <link to="IMachine::name"/> and <link to="#createMachine"/> for more
1773 details about the machine name.
1774
1775 @a groupName defines which additional subdirectory levels should be
1776 included. It must be either a valid group name or @c null or empty
1777 string which designates that the machine will not be related to a
1778 machine group.
1779
1780 If @a baseFolder is a @c null or empty string (which is recommended), the
1781 default machine settings folder
1782 (see <link to="ISystemProperties::defaultMachineFolder" />) will be used as
1783 a base folder for the created machine, resulting in a file name like
1784 "/home/user/VirtualBox VMs/name/name.vbox". Otherwise the given base folder
1785 will be used.
1786
1787 This method does not access the host disks. In particular, it does not check
1788 for whether a machine with this name already exists.
1789 </desc>
1790 <param name="name" type="wstring" dir="in">
1791 <desc>Suggested machine name.</desc>
1792 </param>
1793 <param name="group" type="wstring" dir="in">
1794 <desc>Machine group name for the new machine or machine group. It is
1795 used to determine the right subdirectory.</desc>
1796 </param>
1797 <param name="createFlags" type="wstring" dir="in">
1798 <desc>Machine creation flags, see <link to="#createMachine" /> (optional).</desc>
1799 </param>
1800 <param name="baseFolder" type="wstring" dir="in">
1801 <desc>Base machine folder (optional).</desc>
1802 </param>
1803 <param name="file" type="wstring" dir="return">
1804 <desc>Fully qualified path where the machine would be created.</desc>
1805 </param>
1806 </method>
1807
1808 <method name="createMachine">
1809 <desc>
1810 Creates a new virtual machine by creating a machine settings file at
1811 the given location.
1812
1813 VirtualBox machine settings files use a custom XML dialect. Starting
1814 with VirtualBox 4.0, a ".vbox" extension is recommended, but not enforced,
1815 and machine files can be created at arbitrary locations.
1816
1817 However, it is recommended that machines are created in the default
1818 machine folder (e.g. "/home/user/VirtualBox VMs/name/name.vbox"; see
1819 <link to="ISystemProperties::defaultMachineFolder" />). If you specify
1820 @c null or empty string (which is recommended) for the @a settingsFile
1821 argument, <link to="#composeMachineFilename" /> is called automatically
1822 to have such a recommended name composed based on the machine name
1823 given in the @a name argument and the primary group.
1824
1825 If the resulting settings file already exists, this method will fail,
1826 unless the forceOverwrite flag is set.
1827
1828 The new machine is created unregistered, with the initial configuration
1829 set according to the specified guest OS type. A typical sequence of
1830 actions to create a new virtual machine is as follows:
1831
1832 <ol>
1833 <li>
1834 Call this method to have a new machine created. The returned machine
1835 object will be "mutable" allowing to change any machine property.
1836 </li>
1837
1838 <li>
1839 Configure the machine using the appropriate attributes and methods.
1840 </li>
1841
1842 <li>
1843 Call <link to="IMachine::saveSettings" /> to write the settings
1844 to the machine's XML settings file. The configuration of the newly
1845 created machine will not be saved to disk until this method is
1846 called.
1847 </li>
1848
1849 <li>
1850 Call <link to="#registerMachine" /> to add the machine to the list
1851 of machines known to VirtualBox.
1852 </li>
1853 </ol>
1854
1855 The specified guest OS type identifier must match an ID of one of known
1856 guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
1857 array.
1858
1859 <note>
1860 There is no way to change the name of the settings file or
1861 subfolder of the created machine directly.
1862 </note>
1863
1864 <result name="VBOX_E_OBJECT_NOT_FOUND">
1865 @a osTypeId is invalid.
1866 </result>
1867 <result name="VBOX_E_FILE_ERROR">
1868 Resulting settings file name is invalid or the settings file already
1869 exists or could not be created due to an I/O error.
1870 </result>
1871 <result name="E_INVALIDARG">
1872 @a name is empty or @c null.
1873 </result>
1874 </desc>
1875
1876 <param name="settingsFile" type="wstring" dir="in">
1877 <desc>Fully qualified path where the settings file should be created,
1878 empty string or @c null for a default folder and file based on the
1879 @a name argument and the primary group.
1880 (see <link to="#composeMachineFilename" />).</desc>
1881 </param>
1882 <param name="name" type="wstring" dir="in">
1883 <desc>Machine name.</desc>
1884 </param>
1885 <param name="groups" type="wstring" safearray="yes" dir="in">
1886 <desc>Array of group names. @c null or an empty array have the same
1887 meaning as an array with just the empty string or <tt>"/"</tt>, i.e.
1888 create a machine without group association.</desc>
1889 </param>
1890 <param name="osTypeId" type="wstring" dir="in">
1891 <desc>Guest OS Type ID.</desc>
1892 </param>
1893 <param name="flags" type="wstring" dir="in">
1894 <desc>
1895 Additional property parameters, passed as a comma-separated list of
1896 "name=value" type entries. The following ones are recognized:
1897 <tt>forceOverwrite=1</tt> to overwrite an existing machine settings
1898 file, <tt>UUID=&lt;uuid&gt;</tt> to specify a machine UUID and
1899 <tt>directoryIncludesUUID=1</tt> to switch to a special VM directory
1900 naming scheme which should not be used unless necessary.
1901 </desc>
1902 </param>
1903 <param name="machine" type="IMachine" dir="return">
1904 <desc>Created machine object.</desc>
1905 </param>
1906 </method>
1907
1908 <method name="openMachine">
1909 <desc>
1910 Opens a virtual machine from the existing settings file.
1911 The opened machine remains unregistered until you call
1912 <link to="#registerMachine"/>.
1913
1914 The specified settings file name must be fully qualified.
1915 The file must exist and be a valid machine XML settings file
1916 whose contents will be used to construct the machine object.
1917
1918 <result name="VBOX_E_FILE_ERROR">
1919 Settings file name invalid, not found or sharing violation.
1920 </result>
1921 </desc>
1922 <param name="settingsFile" type="wstring" dir="in">
1923 <desc>
1924 Name of the machine settings file.
1925 </desc>
1926 </param>
1927 <param name="machine" type="IMachine" dir="return">
1928 <desc>Opened machine object.</desc>
1929 </param>
1930 <note>
1931 <link to="IMachine::settingsModified"/> will return
1932 @c false for the created machine, until any of machine settings
1933 are changed.
1934 </note>
1935 </method>
1936
1937 <method name="registerMachine">
1938 <desc>
1939
1940 Registers the machine previously created using
1941 <link to="#createMachine"/> or opened using
1942 <link to="#openMachine"/> within this VirtualBox installation. After
1943 successful method invocation, the
1944 <link to="IMachineRegisteredEvent"/> event is fired.
1945
1946 <note>
1947 This method implicitly calls <link to="IMachine::saveSettings"/>
1948 to save all current machine settings before registering it.
1949 </note>
1950
1951 <result name="VBOX_E_OBJECT_NOT_FOUND">
1952 No matching virtual machine found.
1953 </result>
1954 <result name="VBOX_E_INVALID_OBJECT_STATE">
1955 Virtual machine was not created within this VirtualBox instance.
1956 </result>
1957
1958 </desc>
1959 <param name="machine" type="IMachine" dir="in"/>
1960 </method>
1961
1962 <method name="findMachine">
1963 <desc>
1964 Attempts to find a virtual machine given its name or UUID.
1965
1966 <note>Inaccessible machines cannot be found by name, only by UUID, because their name
1967 cannot safely be determined.</note>
1968
1969 <result name="VBOX_E_OBJECT_NOT_FOUND">
1970 Could not find registered machine matching @a nameOrId.
1971 </result>
1972
1973 </desc>
1974 <param name="nameOrId" type="wstring" dir="in">
1975 <desc>What to search for. This can either be the UUID or the name of a virtual machine.</desc>
1976 </param>
1977 <param name="machine" type="IMachine" dir="return">
1978 <desc>Machine object, if found.</desc>
1979 </param>
1980 </method>
1981
1982 <method name="getMachinesByGroups">
1983 <desc>
1984 Gets all machine references which are in one of the specified groups.
1985 </desc>
1986 <param name="groups" type="wstring" dir="in" safearray="yes">
1987 <desc>What groups to match. The usual group list rules apply, i.e.
1988 passing an empty list will match VMs in the toplevel group, likewise
1989 the empty string.</desc>
1990 </param>
1991 <param name="machines" type="IMachine" dir="return" safearray="yes">
1992 <desc>All machines which matched.</desc>
1993 </param>
1994 </method>
1995
1996 <method name="getMachineStates">
1997 <desc>
1998 Gets the state of several machines in a single operation.
1999 </desc>
2000 <param name="machines" type="IMachine" dir="in" safearray="yes">
2001 <desc>Array with the machine references.</desc>
2002 </param>
2003 <param name="states" type="MachineState" dir="return" safearray="yes">
2004 <desc>Machine states, corresponding to the machines.</desc>
2005 </param>
2006 </method>
2007
2008 <method name="createAppliance">
2009 <desc>
2010 Creates a new appliance object, which represents an appliance in the Open Virtual Machine
2011 Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
2012 machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
2013 </desc>
2014 <param name="appliance" type="IAppliance" dir="return">
2015 <desc>New appliance.</desc>
2016 </param>
2017 </method>
2018
2019 <method name="createHardDisk">
2020 <desc>
2021 Creates a new base medium object that will use the given storage
2022 format and location for medium data.
2023
2024 The actual storage unit is not created by this method. In order to
2025 do it, and before you are able to attach the created medium to
2026 virtual machines, you must call one of the following methods to
2027 allocate a format-specific storage unit at the specified location:
2028 <ul>
2029 <li><link to="IMedium::createBaseStorage"/></li>
2030 <li><link to="IMedium::createDiffStorage"/></li>
2031 </ul>
2032
2033 Some medium attributes, such as <link to="IMedium::id"/>, may
2034 remain uninitialized until the medium storage unit is successfully
2035 created by one of the above methods.
2036
2037 After the storage unit is successfully created, it will be
2038 accessible through the <link to="#openMedium"/> method and can
2039 be found in the <link to="#hardDisks"/> array.
2040
2041 The list of all storage formats supported by this VirtualBox
2042 installation can be obtained using
2043 <link to="ISystemProperties::mediumFormats"/>. If the @a format
2044 attribute is empty or @c null then the default storage format
2045 specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
2046 be used for creating a storage unit of the medium.
2047
2048 Note that the format of the location string is storage format specific.
2049 See <link to="IMedium::location"/> and IMedium for more details.
2050
2051 <result name="VBOX_E_OBJECT_NOT_FOUND">
2052 @a format identifier is invalid. See
2053 <link to="ISystemProperties::mediumFormats"/>.
2054 </result>
2055 <result name="VBOX_E_FILE_ERROR">
2056 @a location is a not valid file name (for file-based formats only).
2057 </result>
2058 </desc>
2059 <param name="format" type="wstring" dir="in">
2060 <desc>
2061 Identifier of the storage format to use for the new medium.
2062 </desc>
2063 </param>
2064 <param name="location" type="wstring" dir="in">
2065 <desc>
2066 Location of the storage unit for the new medium.
2067 </desc>
2068 </param>
2069 <param name="medium" type="IMedium" dir="return">
2070 <desc>Created medium object.</desc>
2071 </param>
2072 </method>
2073
2074 <method name="openMedium">
2075 <desc>
2076 Finds existing media or opens a medium from an existing storage location.
2077
2078 Once a medium has been opened, it can be passed to other VirtualBox
2079 methods, in particular to <link to="IMachine::attachDevice" />.
2080
2081 Depending on the given device type, the file at the storage location
2082 must be in one of the media formats understood by VirtualBox:
2083
2084 <ul>
2085 <li>With a "HardDisk" device type, the file must be a hard disk image
2086 in one of the formats supported by VirtualBox (see
2087 <link to="ISystemProperties::mediumFormats" />).
2088 After this method succeeds, if the medium is a base medium, it
2089 will be added to the <link to="#hardDisks"/> array attribute. </li>
2090 <li>With a "DVD" device type, the file must be an ISO 9960 CD/DVD image.
2091 After this method succeeds, the medium will be added to the
2092 <link to="#DVDImages"/> array attribute.</li>
2093 <li>With a "Floppy" device type, the file must be an RAW floppy image.
2094 After this method succeeds, the medium will be added to the
2095 <link to="#floppyImages"/> array attribute.</li>
2096 </ul>
2097
2098 After having been opened, the medium can be re-found by this method
2099 and can be attached to virtual machines. See <link to="IMedium" /> for
2100 more details.
2101
2102 The UUID of the newly opened medium will either be retrieved from the
2103 storage location, if the format supports it (e.g. for hard disk images),
2104 or a new UUID will be randomly generated (e.g. for ISO and RAW files).
2105 If for some reason you need to change the medium's UUID, use
2106 <link to="IMedium::setIds" />.
2107
2108 If a differencing hard disk medium is to be opened by this method, the
2109 operation will succeed only if its parent medium and all ancestors,
2110 if any, are already known to this VirtualBox installation (for example,
2111 were opened by this method before).
2112
2113 This method attempts to guess the storage format of the specified medium
2114 by reading medium data at the specified location.
2115
2116 If @a accessMode is ReadWrite (which it should be for hard disks and floppies),
2117 the image is opened for read/write access and must have according permissions,
2118 as VirtualBox may actually write status information into the disk's metadata
2119 sections.
2120
2121 Note that write access is required for all typical hard disk usage in VirtualBox,
2122 since VirtualBox may need to write metadata such as a UUID into the image.
2123 The only exception is opening a source image temporarily for copying and
2124 cloning (see <link to="IMedium::cloneTo" /> when the image will be closed
2125 again soon.
2126
2127 The format of the location string is storage format specific. See
2128 <link to="IMedium::location"/> and IMedium for more details.
2129
2130 <result name="VBOX_E_FILE_ERROR">
2131 Invalid medium storage file location or could not find the medium
2132 at the specified location.
2133 </result>
2134 <result name="VBOX_E_IPRT_ERROR">
2135 Could not get medium storage format.
2136 </result>
2137 <result name="E_INVALIDARG">
2138 Invalid medium storage format.
2139 </result>
2140 <result name="VBOX_E_INVALID_OBJECT_STATE">
2141 Medium has already been added to a media registry.
2142 </result>
2143 </desc>
2144 <param name="location" type="wstring" dir="in">
2145 <desc>
2146 Location of the storage unit that contains medium data in one of
2147 the supported storage formats.
2148 </desc>
2149 </param>
2150 <param name="deviceType" type="DeviceType" dir="in">
2151 <desc>
2152 Must be one of "HardDisk", "DVD" or "Floppy".
2153 </desc>
2154 </param>
2155 <param name="accessMode" type="AccessMode" dir="in">
2156 <desc>Whether to open the image in read/write or read-only mode. For
2157 a "DVD" device type, this is ignored and read-only mode is always assumed.</desc>
2158 </param>
2159 <param name="forceNewUuid" type="boolean" dir="in">
2160 <desc>Allows the caller to request a completely new medium UUID for
2161 the image which is to be opened. Useful if one intends to open an exact
2162 copy of a previously opened image, as this would normally fail due to
2163 the duplicate UUID.</desc>
2164 </param>
2165 <param name="medium" type="IMedium" dir="return">
2166 <desc>Opened medium object.</desc>
2167 </param>
2168 </method>
2169
2170 <method name="getGuestOSType">
2171 <desc>
2172 Returns an object describing the specified guest OS type.
2173
2174 The requested guest OS type is specified using a string which is a
2175 mnemonic identifier of the guest operating system, such as
2176 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
2177 particular virtual machine can be read or set using the
2178 <link to="IMachine::OSTypeId"/> attribute.
2179
2180 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
2181 available guest OS type objects. Each object has an
2182 <link to="IGuestOSType::id"/> attribute which contains an identifier of
2183 the guest OS this object describes.
2184
2185 <result name="E_INVALIDARG">
2186 @a id is not a valid Guest OS type.
2187 </result>
2188
2189 </desc>
2190 <param name="id" type="uuid" mod="string" dir="in">
2191 <desc>Guest OS type ID string.</desc>
2192 </param>
2193 <param name="type" type="IGuestOSType" dir="return">
2194 <desc>Guest OS type object.</desc>
2195 </param>
2196 </method>
2197
2198 <method name="createSharedFolder">
2199 <desc>
2200 Creates a new global shared folder by associating the given logical
2201 name with the given host path, adds it to the collection of shared
2202 folders and starts sharing it. Refer to the description of
2203 <link to="ISharedFolder"/> to read more about logical names.
2204 <note>
2205 In the current implementation, this operation is not
2206 implemented.
2207 </note>
2208 </desc>
2209 <param name="name" type="wstring" dir="in">
2210 <desc>Unique logical name of the shared folder.</desc>
2211 </param>
2212 <param name="hostPath" type="wstring" dir="in">
2213 <desc>Full path to the shared folder in the host file system.</desc>
2214 </param>
2215 <param name="writable" type="boolean" dir="in">
2216 <desc>Whether the share is writable or readonly</desc>
2217 </param>
2218 <param name="automount" type="boolean" dir="in">
2219 <desc>Whether the share gets automatically mounted by the guest
2220 or not.</desc>
2221 </param>
2222 </method>
2223
2224 <method name="removeSharedFolder">
2225 <desc>
2226 Removes the global shared folder with the given name previously
2227 created by <link to="#createSharedFolder"/> from the collection of
2228 shared folders and stops sharing it.
2229 <note>
2230 In the current implementation, this operation is not
2231 implemented.
2232 </note>
2233 </desc>
2234 <param name="name" type="wstring" dir="in">
2235 <desc>Logical name of the shared folder to remove.</desc>
2236 </param>
2237 </method>
2238
2239 <method name="getExtraDataKeys">
2240 <desc>
2241 Returns an array representing the global extra data keys which currently
2242 have values defined.
2243 </desc>
2244 <param name="keys" type="wstring" dir="return" safearray="yes">
2245 <desc>Array of extra data keys.</desc>
2246 </param>
2247 </method>
2248
2249 <method name="getExtraData">
2250 <desc>
2251 Returns associated global extra data.
2252
2253 If the requested data @a key does not exist, this function will
2254 succeed and return an empty string in the @a value argument.
2255
2256 <result name="VBOX_E_FILE_ERROR">
2257 Settings file not accessible.
2258 </result>
2259 <result name="VBOX_E_XML_ERROR">
2260 Could not parse the settings file.
2261 </result>
2262
2263 </desc>
2264 <param name="key" type="wstring" dir="in">
2265 <desc>Name of the data key to get.</desc>
2266 </param>
2267 <param name="value" type="wstring" dir="return">
2268 <desc>Value of the requested data key.</desc>
2269 </param>
2270 </method>
2271
2272 <method name="setExtraData">
2273 <desc>
2274 Sets associated global extra data.
2275
2276 If you pass @c null or empty string as a key @a value, the given @a key
2277 will be deleted.
2278
2279 <note>
2280 Before performing the actual data change, this method will ask all
2281 registered event listener using the
2282 <link to="IExtraDataCanChangeEvent"/>
2283 notification for a permission. If one of the listeners refuses the
2284 new value, the change will not be performed.
2285 </note>
2286 <note>
2287 On success, the
2288 <link to="IExtraDataChangedEvent"/> notification
2289 is called to inform all registered listeners about a successful data
2290 change.
2291 </note>
2292
2293 <result name="VBOX_E_FILE_ERROR">
2294 Settings file not accessible.
2295 </result>
2296 <result name="VBOX_E_XML_ERROR">
2297 Could not parse the settings file.
2298 </result>
2299 <result name="E_ACCESSDENIED">
2300 Modification request refused.
2301 </result>
2302
2303 </desc>
2304 <param name="key" type="wstring" dir="in">
2305 <desc>Name of the data key to set.</desc>
2306 </param>
2307 <param name="value" type="wstring" dir="in">
2308 <desc>Value to assign to the key.</desc>
2309 </param>
2310 </method>
2311
2312 <method name="setSettingsSecret">
2313 <desc>
2314 Unlocks the secret data by passing the unlock password to the
2315 server. The server will cache the password for that machine.
2316
2317 <result name="VBOX_E_INVALID_VM_STATE">
2318 Virtual machine is not mutable.
2319 </result>
2320
2321 </desc>
2322 <param name="password" type="wstring" dir="in">
2323 <desc>
2324 The cipher key.
2325 </desc>
2326 </param>
2327 </method>
2328
2329 <!--method name="createDHCPServerForInterface">
2330 <desc>
2331 Creates a DHCP server settings to be used for the given interface
2332 <result name="E_INVALIDARG">
2333 Host network interface @a name already exists.
2334 </result>
2335 </desc>
2336 <param name="interface" type="IHostNetworkInterface" dir="in">
2337 <desc>Network Interface</desc>
2338 </param>
2339 <param name="server" type="IDHCPServer" dir="out">
2340 <desc>DHCP server settings</desc>
2341 </param>
2342 </method-->
2343
2344 <method name="createDHCPServer">
2345 <desc>
2346 Creates a DHCP server settings to be used for the given internal network name
2347 <result name="E_INVALIDARG">
2348 Host network interface @a name already exists.
2349 </result>
2350 </desc>
2351 <param name="name" type="wstring" dir="in">
2352 <desc>server name</desc>
2353 </param>
2354 <param name="server" type="IDHCPServer" dir="return">
2355 <desc>DHCP server settings</desc>
2356 </param>
2357 </method>
2358
2359 <method name="findDHCPServerByNetworkName">
2360 <desc>
2361 Searches a DHCP server settings to be used for the given internal network name
2362 <result name="E_INVALIDARG">
2363 Host network interface @a name already exists.
2364 </result>
2365
2366 </desc>
2367 <param name="name" type="wstring" dir="in">
2368 <desc>server name</desc>
2369 </param>
2370 <param name="server" type="IDHCPServer" dir="return">
2371 <desc>DHCP server settings</desc>
2372 </param>
2373 </method>
2374
2375 <!--method name="findDHCPServerForInterface">
2376 <desc>
2377 Searches a DHCP server settings to be used for the given interface
2378 <result name="E_INVALIDARG">
2379 Host network interface @a name already exists.
2380 </result>
2381 </desc>
2382 <param name="interface" type="IHostNetworkInterface" dir="in">
2383 <desc>Network Interface</desc>
2384 </param>
2385 <param name="server" type="IDHCPServer" dir="out">
2386 <desc>DHCP server settings</desc>
2387 </param>
2388 </method-->
2389
2390 <method name="removeDHCPServer">
2391 <desc>
2392 Removes the DHCP server settings
2393 <result name="E_INVALIDARG">
2394 Host network interface @a name already exists.
2395 </result>
2396 </desc>
2397 <param name="server" type="IDHCPServer" dir="in">
2398 <desc>DHCP server settings to be removed</desc>
2399 </param>
2400 </method>
2401
2402 <!-- bunch of metods to create NAT -->
2403 <method name="createNATNetwork">
2404 <!-- Here we create a record in NAT network array with name
2405 and gateway/network parameters this information should
2406 be enough for VBoxNet[Lwip]NAT and VBoxNetDHCP for
2407 servicing the guests.
2408 -->
2409 <param name="networkName" type="wstring" dir="in"/>
2410 <param name="network" type="INATNetwork" dir="return"/>
2411 </method>
2412
2413 <!--
2414 Returns the NATNetwork by name, e.g. for adding porforward rule or delition.
2415 -->
2416 <method name="findNATNetworkByName">
2417 <param name="networkName" type="wstring" dir="in"/>
2418 <param name="network" type="INATNetwork" dir="return"/>
2419 </method>
2420 <!--
2421 Deletes given NAT network.
2422 -->
2423 <method name="removeNATNetwork">
2424 <param name="network" type="INATNetwork" dir="in"/>
2425 </method>
2426
2427 <method name="checkFirmwarePresent">
2428 <desc>
2429 Check if this VirtualBox installation has a firmware
2430 of the given type available, either system-wide or per-user.
2431 Optionally, this may return a hint where this firmware can be
2432 downloaded from.
2433 </desc>
2434 <param name="firmwareType" type="FirmwareType" dir="in">
2435 <desc>
2436 Type of firmware to check.
2437 </desc>
2438 </param>
2439 <param name="version" type="wstring" dir="in">
2440 <desc>Expected version number, usually empty string (presently ignored).</desc>
2441 </param>
2442
2443 <param name="url" type="wstring" dir="out">
2444 <desc>
2445 Suggested URL to download this firmware from.
2446 </desc>
2447 </param>
2448
2449 <param name="file" type="wstring" dir="out">
2450 <desc>
2451 Filename of firmware, only valid if result == TRUE.
2452 </desc>
2453 </param>
2454
2455 <param name="result" type="boolean" dir="return">
2456 <desc>If firmware of this type and version is available.</desc>
2457 </param>
2458 </method>
2459
2460 </interface>
2461
2462 <!--
2463 // IVFSExplorer
2464 /////////////////////////////////////////////////////////////////////////
2465 -->
2466
2467 <enum
2468 name="VFSType"
2469 uuid="813999ba-b949-48a8-9230-aadc6285e2f2"
2470 >
2471 <desc>
2472 Virtual file systems supported by VFSExplorer.
2473 </desc>
2474
2475 <const name="File" value="1" />
2476 <const name="Cloud" value="2" />
2477 <const name="S3" value="3" />
2478 <const name="WebDav" value="4" />
2479 </enum>
2480
2481 <enum
2482 name="VFSFileType"
2483 uuid="714333cd-44e2-415f-a245-d378fa9b1242"
2484 >
2485 <desc>
2486 File types known by VFSExplorer.
2487 </desc>
2488
2489 <const name="Unknown" value="1" />
2490 <const name="Fifo" value="2" />
2491 <const name="DevChar" value="3" />
2492 <const name="Directory" value="4" />
2493 <const name="DevBlock" value="5" />
2494 <const name="File" value="6" />
2495 <const name="SymLink" value="7" />
2496 <const name="Socket" value="8" />
2497 <const name="WhiteOut" value="9" />
2498 </enum>
2499
2500 <interface
2501 name="IVFSExplorer" extends="$unknown"
2502 uuid="003d7f92-d38e-487f-b790-8c5e8631cb2f"
2503 wsmap="managed"
2504 >
2505 <desc>
2506 The VFSExplorer interface unifies access to different file system
2507 types. This includes local file systems as well remote file systems like
2508 S3. For a list of supported types see <link to="VFSType" />.
2509 An instance of this is returned by <link to="IAppliance::createVFSExplorer" />.
2510 </desc>
2511
2512 <attribute name="path" type="wstring" readonly="yes">
2513 <desc>Returns the current path in the virtual file system.</desc>
2514 </attribute>
2515
2516 <attribute name="type" type="VFSType" readonly="yes">
2517 <desc>Returns the file system type which is currently in use.</desc>
2518 </attribute>
2519
2520 <method name="update">
2521 <desc>Updates the internal list of files/directories from the
2522 current directory level. Use <link to="#entryList" /> to get the full list
2523 after a call to this method.</desc>
2524
2525 <param name="progress" type="IProgress" dir="return">
2526 <desc>Progress object to track the operation completion.</desc>
2527 </param>
2528 </method>
2529
2530 <method name="cd">
2531 <desc>Change the current directory level.</desc>
2532
2533 <param name="dir" type="wstring" dir="in">
2534 <desc>The name of the directory to go in.</desc>
2535 </param>
2536
2537 <param name="progress" type="IProgress" dir="return">
2538 <desc>Progress object to track the operation completion.</desc>
2539 </param>
2540 </method>
2541
2542 <method name="cdUp">
2543 <desc>Go one directory upwards from the current directory level.</desc>
2544
2545 <param name="progress" type="IProgress" dir="return">
2546 <desc>Progress object to track the operation completion.</desc>
2547 </param>
2548 </method>
2549
2550 <method name="entryList">
2551 <desc>Returns a list of files/directories after a call to <link
2552 to="#update" />. The user is responsible for keeping this internal
2553 list up do date.</desc>
2554
2555 <param name="names" type="wstring" safearray="yes" dir="out">
2556 <desc>The list of names for the entries.</desc>
2557 </param>
2558
2559 <param name="types" type="unsigned long" safearray="yes" dir="out">
2560 <desc>The list of types for the entries.</desc>
2561 </param>
2562
2563 <param name="sizes" type="unsigned long" safearray="yes" dir="out">
2564 <desc>The list of sizes (in bytes) for the entries.</desc>
2565 </param>
2566
2567 <param name="modes" type="unsigned long" safearray="yes" dir="out">
2568 <desc>The list of file modes (in octal form) for the entries.</desc>
2569 </param>
2570 </method>
2571
2572 <method name="exists">
2573 <desc>Checks if the given file list exists in the current directory
2574 level.</desc>
2575
2576 <param name="names" type="wstring" safearray="yes" dir="in">
2577 <desc>The names to check.</desc>
2578 </param>
2579
2580 <param name="exists" type="wstring" safearray="yes" dir="return">
2581 <desc>The names which exist.</desc>
2582 </param>
2583 </method>
2584
2585 <method name="remove">
2586 <desc>Deletes the given files in the current directory level.</desc>
2587
2588 <param name="names" type="wstring" safearray="yes" dir="in">
2589 <desc>The names to remove.</desc>
2590 </param>
2591
2592 <param name="progress" type="IProgress" dir="return">
2593 <desc>Progress object to track the operation completion.</desc>
2594 </param>
2595 </method>
2596
2597 </interface>
2598
2599 <enum
2600 name="ImportOptions" extends="$unknown"
2601 uuid="0a981523-3b20-4004-8ee3-dfd322202ace"
2602 >
2603
2604 <desc>
2605 Import options, used with <link to="IAppliance::importMachines" />.
2606 </desc>
2607
2608 <const name="KeepAllMACs" value="1">
2609 <desc>Don't generate new MAC addresses of the attached network adapters.</desc>
2610 </const>
2611 <const name="KeepNATMACs" value="2">
2612 <desc>Don't generate new MAC addresses of the attached network adapters when they are using NAT.</desc>
2613 </const>
2614
2615 </enum>
2616
2617
2618 <!--
2619 // IAppliance
2620 /////////////////////////////////////////////////////////////////////////
2621 -->
2622
2623 <interface
2624 name="IAppliance" extends="$unknown"
2625 uuid="3059cf9e-25c7-4f0b-9fa5-3c42e441670b"
2626 wsmap="managed"
2627 >
2628 <desc>
2629 Represents a platform-independent appliance in OVF format. An instance of this is returned
2630 by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
2631 virtual machines within an appliance with VirtualBox.
2632
2633 The OVF standard suggests two different physical file formats:
2634
2635 <ol>
2636 <li>If the appliance is distributed as a set of files, there must be at least one XML descriptor
2637 file that conforms to the OVF standard and carries an <tt>.ovf</tt> file extension. If
2638 this descriptor file references other files such as disk images, as OVF appliances typically
2639 do, those additional files must be in the same directory as the descriptor file.</li>
2640
2641 <li>If the appliance is distributed as a single file, it must be in TAR format and have the
2642 <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
2643 files and optionally other files.
2644
2645 At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
2646 be added with a later version.</li>
2647 </ol>
2648
2649 <b>Importing</b> an OVF appliance into VirtualBox as instances of
2650 <link to="IMachine" /> involves the following sequence of API calls:
2651
2652 <ol>
2653 <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
2654 </li>
2655
2656 <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
2657 would like to import. So long as this file is syntactically valid, this will succeed
2658 and fill the appliance object with the parsed data from the OVF file.
2659 </li>
2660
2661 <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
2662 contents of the IAppliance attributes accordingly. These can be inspected by a
2663 VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
2664 user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
2665 instances of <link to="IVirtualSystemDescription" /> which represent the virtual
2666 systems (machines) in the OVF, which in turn describe the virtual hardware prescribed
2667 by the OVF (network and hardware adapters, virtual disk images, memory size and so on).
2668 The GUI can then give the user the option to confirm and/or change these suggestions.
2669 </li>
2670
2671 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2672 virtual system (machine) to override the suggestions made by the <link to="#interpret" /> routine.
2673 </li>
2674
2675 <li>Finally, call <link to="#importMachines" /> to create virtual machines in
2676 VirtualBox as instances of <link to="IMachine" /> that match the information in the
2677 virtual system descriptions. After this call succeeded, the UUIDs of the machines created
2678 can be found in the <link to="#machines" /> array attribute.
2679 </li>
2680 </ol>
2681
2682 <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
2683
2684 <ol>
2685 <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
2686 an empty IAppliance object.
2687 </li>
2688
2689 <li>For each machine you would like to export, call <link to="IMachine::exportTo" />
2690 with the IAppliance object you just created. Each such call creates one instance of
2691 <link to="IVirtualSystemDescription" /> inside the appliance.
2692 </li>
2693
2694 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2695 virtual system (machine) to override the suggestions made by the <link to="IMachine::exportTo"/> routine.
2696 </li>
2697
2698 <li>Finally, call <link to="#write" /> with a path specification to have the OVF
2699 file written.</li>
2700 </ol>
2701
2702 </desc>
2703
2704 <attribute name="path" type="wstring" readonly="yes">
2705 <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
2706 the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
2707 <link to="#write" /> (for export).
2708 This attribute is empty until one of these methods has been called.
2709 </desc>
2710 </attribute>
2711
2712 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
2713 <desc>
2714 Array of virtual disk definitions. One such description exists for each
2715 disk definition in the OVF; each string array item represents one such piece of
2716 disk information, with the information fields separated by tab (\\t) characters.
2717
2718 The caller should be prepared for additional fields being appended to
2719 this string in future versions of VirtualBox and therefore check for
2720 the number of tabs in the strings returned.
2721
2722 In the current version, the following eight fields are returned per string
2723 in the array:
2724
2725 <ol>
2726 <li>Disk ID (unique string identifier given to disk)</li>
2727
2728 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
2729
2730 <li>Populated size (optional unsigned integer indicating the current size of the
2731 disk; can be approximate; -1 if unspecified)</li>
2732
2733 <li>Format (string identifying the disk format, typically
2734 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
2735
2736 <li>Reference (where to find the disk image, typically a file name; if empty,
2737 then the disk should be created on import)</li>
2738
2739 <li>Image size (optional unsigned integer indicating the size of the image,
2740 which need not necessarily be the same as the values specified above, since
2741 the image may be compressed or sparse; -1 if not specified)</li>
2742
2743 <li>Chunk size (optional unsigned integer if the image is split into chunks;
2744 presently unsupported and always -1)</li>
2745
2746 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
2747 </ol>
2748 </desc>
2749 </attribute>
2750
2751 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
2752 <desc> Array of virtual system descriptions. One such description is created
2753 for each virtual system (machine) found in the OVF.
2754 This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::exportTo" />
2755 (for export) has been called.
2756 </desc>
2757 </attribute>
2758
2759 <attribute name="machines" type="wstring" readonly="yes" safearray="yes">
2760 <desc>
2761 Contains the UUIDs of the machines created from the information in this appliances. This is only
2762 relevant for the import case, and will only contain data after a call to <link to="#importMachines" />
2763 succeeded.
2764 </desc>
2765 </attribute>
2766
2767 <method name="read">
2768 <desc>
2769 Reads an OVF file into the appliance object.
2770
2771 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
2772 mere fact that this method returns successfully does not mean that VirtualBox supports all
2773 features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
2774 </desc>
2775 <param name="file" type="wstring" dir="in">
2776 <desc>
2777 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2778 on whether the appliance is distributed as a set of files or as a single file, respectively).
2779 </desc>
2780 </param>
2781 <param name="progress" type="IProgress" dir="return">
2782 <desc>Progress object to track the operation completion.</desc>
2783 </param>
2784 </method>
2785
2786 <method name="interpret">
2787 <desc>
2788 Interprets the OVF data that was read when the appliance was constructed. After
2789 calling this method, one can inspect the
2790 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
2791 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
2792 the appliance.
2793
2794 Calling this method is the second step of importing an appliance into VirtualBox;
2795 see <link to="IAppliance" /> for an overview.
2796
2797 After calling this method, one should call <link to="#getWarnings" /> to find out
2798 if problems were encountered during the processing which might later lead to
2799 errors.
2800 </desc>
2801 </method>
2802
2803 <method name="importMachines">
2804 <desc>
2805 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
2806 and other interfaces that match the information contained in the appliance as
2807 closely as possible, as represented by the import instructions in the
2808 <link to="#virtualSystemDescriptions" /> array.
2809
2810 Calling this method is the final step of importing an appliance into VirtualBox;
2811 see <link to="IAppliance" /> for an overview.
2812
2813 Since importing the appliance will most probably involve copying and converting
2814 disk images, which can take a long time, this method operates asynchronously and
2815 returns an IProgress object to allow the caller to monitor the progress.
2816
2817 After the import succeeded, the UUIDs of the IMachine instances created can be
2818 retrieved from the <link to="#machines" /> array attribute.
2819 </desc>
2820
2821 <param name="options" type="ImportOptions" dir="in" safearray="yes">
2822 <desc>Options for the importing operation.</desc>
2823 </param>
2824
2825 <param name="progress" type="IProgress" dir="return">
2826 <desc>Progress object to track the operation completion.</desc>
2827 </param>
2828 </method>
2829
2830 <method name="createVFSExplorer">
2831 <desc>Returns a <link to="IVFSExplorer" /> object for the given URI.</desc>
2832
2833 <param name="URI" type="wstring" dir="in">
2834 <desc>The URI describing the file system to use.</desc>
2835 </param>
2836
2837 <param name="explorer" type="IVFSExplorer" dir="return">
2838 <desc></desc>
2839 </param>
2840 </method>
2841
2842 <method name="write">
2843 <desc>
2844 Writes the contents of the appliance exports into a new OVF file.
2845
2846 Calling this method is the final step of exporting an appliance from VirtualBox;
2847 see <link to="IAppliance" /> for an overview.
2848
2849 Since exporting the appliance will most probably involve copying and converting
2850 disk images, which can take a long time, this method operates asynchronously and
2851 returns an IProgress object to allow the caller to monitor the progress.
2852 </desc>
2853 <param name="format" type="wstring" dir="in">
2854 <desc>
2855 Output format, as a string. Currently supported formats are "ovf-0.9", "ovf-1.0"
2856 and "ovf-2.0"; future versions of VirtualBox may support additional formats.
2857 </desc>
2858 </param>
2859 <param name="manifest" type="boolean" dir="in">
2860 <desc>
2861 Indicate if the optional manifest file (.mf) should be written. The manifest file
2862 is used for integrity checks prior import.
2863 </desc>
2864 </param>
2865 <param name="path" type="wstring" dir="in">
2866 <desc>
2867 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2868 on whether the appliance is distributed as a set of files or as a single file, respectively).
2869 </desc>
2870 </param>
2871 <param name="progress" type="IProgress" dir="return">
2872 <desc>Progress object to track the operation completion.</desc>
2873 </param>
2874 </method>
2875
2876 <method name="getWarnings">
2877 <desc>Returns textual warnings which occurred during execution of <link to="#interpret" />.</desc>
2878
2879 <param name="warnings" type="wstring" dir="return" safearray="yes">
2880 <desc></desc>
2881 </param>
2882 </method>
2883
2884 </interface>
2885
2886 <enum
2887 name="VirtualSystemDescriptionType"
2888 uuid="303c0900-a746-4612-8c67-79003e91f459"
2889 >
2890 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
2891 a configuration value.</desc>
2892
2893 <const name="Ignore" value="1" />
2894 <const name="OS" value="2" />
2895 <const name="Name" value="3" />
2896 <const name="Product" value="4" />
2897 <const name="Vendor" value="5" />
2898 <const name="Version" value="6" />
2899 <const name="ProductUrl" value="7" />
2900 <const name="VendorUrl" value="8" />
2901 <const name="Description" value="9" />
2902 <const name="License" value="10" />
2903 <const name="Miscellaneous" value="11" />
2904 <const name="CPU" value="12" />
2905 <const name="Memory" value="13" />
2906 <const name="HardDiskControllerIDE" value="14" />
2907 <const name="HardDiskControllerSATA" value="15" />
2908 <const name="HardDiskControllerSCSI" value="16" />
2909 <const name="HardDiskControllerSAS" value="17" />
2910 <const name="HardDiskImage" value="18" />
2911 <const name="Floppy" value="19" />
2912 <const name="CDROM" value="20" />
2913 <const name="NetworkAdapter" value="21" />
2914 <const name="USBController" value="22" />
2915 <const name="SoundCard" value="23" />
2916 <const name="SettingsFile" value="24">
2917 <desc>Not used/implemented right now, will be added later in 4.1.x.</desc>
2918 </const>
2919 </enum>
2920
2921 <enum
2922 name="VirtualSystemDescriptionValueType"
2923 uuid="56d9403f-3425-4118-9919-36f2a9b8c77c"
2924 >
2925 <desc>Used with <link to="IVirtualSystemDescription::getValuesByType" /> to describe the value
2926 type to fetch.</desc>
2927
2928 <const name="Reference" value="1" />
2929 <const name="Original" value="2" />
2930 <const name="Auto" value="3" />
2931 <const name="ExtraConfig" value="4" />
2932
2933 </enum>
2934
2935 <interface
2936 name="IVirtualSystemDescription" extends="$unknown"
2937 uuid="d7525e6c-531a-4c51-8e04-41235083a3d8"
2938 wsmap="managed"
2939 >
2940
2941 <desc>Represents one virtual system (machine) in an appliance. This interface is used in
2942 the <link to="IAppliance::virtualSystemDescriptions" /> array. After
2943 <link to="IAppliance::interpret" /> has been called, that array contains information
2944 about how the virtual systems described in the OVF should best be imported into
2945 VirtualBox virtual machines. See <link to="IAppliance" /> for the steps required to
2946 import an OVF into VirtualBox.
2947 </desc>
2948
2949 <attribute name="count" type="unsigned long" readonly="yes">
2950 <desc>Return the number of virtual system description entries.</desc>
2951 </attribute>
2952
2953 <method name="getDescription">
2954 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
2955 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
2956
2957 The list below identifies the value sets that are possible depending on the
2958 <link to="VirtualSystemDescriptionType" /> enum value in the array item in @a aTypes[]. In each case,
2959 the array item with the same index in @a OVFValues[] will contain the original value as contained
2960 in the OVF file (just for informational purposes), and the corresponding item in @a aVBoxValues[]
2961 will contain a suggested value to be used for VirtualBox. Depending on the description type,
2962 the @a aExtraConfigValues[] array item may also be used.
2963
2964 <ul>
2965 <li>
2966 "OS": the guest operating system type. There must be exactly one such array item on import. The
2967 corresponding item in @a aVBoxValues[] contains the suggested guest operating system for VirtualBox.
2968 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
2969 item in @a OVFValues[] will contain a numerical value that described the operating system in the OVF.
2970 </li>
2971 <li>
2972 "Name": the name to give to the new virtual machine. There can be at most one such array item;
2973 if none is present on import, then an automatic name will be created from the operating system
2974 type. The corresponding item im @a OVFValues[] will contain the suggested virtual machine name
2975 from the OVF file, and @a aVBoxValues[] will contain a suggestion for a unique VirtualBox
2976 <link to="IMachine" /> name that does not exist yet.
2977 </li>
2978 <li>
2979 "Description": an arbitrary description.
2980 </li>
2981 <li>
2982 "License": the EULA section from the OVF, if present. It is the responsibility of the calling
2983 code to display such a license for agreement; the Main API does not enforce any such policy.
2984 </li>
2985 <li>
2986 Miscellaneous: reserved for future use.
2987 </li>
2988 <li>
2989 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
2990 </li>
2991 <li>
2992 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
2993 is present on import, then VirtualBox will set a meaningful default based on the operating system
2994 type.
2995 </li>
2996 <li>
2997 "HardDiskControllerIDE": an IDE hard disk controller. There can be at most two such items.
2998 An optional value in @a OVFValues[] and @a aVBoxValues[] can be "PIIX3" or "PIIX4" to specify
2999 the type of IDE controller; this corresponds to the ResourceSubType element which VirtualBox
3000 writes into the OVF.
3001 The matching item in the @a aRefs[] array will contain an integer that items of the "Harddisk"
3002 type can use to specify which hard disk controller a virtual disk should be connected to.
3003 Note that in OVF, an IDE controller has two channels, corresponding to "master" and "slave"
3004 in traditional terminology, whereas the IDE storage controller that VirtualBox supports in
3005 its virtual machines supports four channels (primary master, primary slave, secondary master,
3006 secondary slave) and thus maps to two IDE controllers in the OVF sense.
3007 </li>
3008 <li>
3009 "HardDiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
3010 has no value in @a OVFValues[] or @a aVBoxValues[].
3011 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
3012 </li>
3013 <li>
3014 "HardDiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
3015 The items in @a OVFValues[] and @a aVBoxValues[] will either be "LsiLogic", "BusLogic" or
3016 "LsiLogicSas". (Note that in OVF, the LsiLogicSas controller is treated as a SCSI controller
3017 whereas VirtualBox considers it a class of storage controllers of its own; see
3018 <link to="StorageControllerType" />).
3019 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
3020 </li>
3021 <li>
3022 "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
3023 arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
3024
3025 The array item in @a OVFValues[] will contain the file specification from the OVF file (without
3026 a path since the image file should be in the same location as the OVF file itself), whereas the
3027 item in @a aVBoxValues[] will contain a qualified path specification to where VirtualBox uses the
3028 hard disk image. This means that on import the image will be copied and converted from the
3029 "ovf" location to the "vbox" location; on export, this will be handled the other way round.
3030
3031 The matching item in the @a aExtraConfigValues[] array must contain a string of the following
3032 format: "controller=&lt;index&gt;;channel=&lt;c&gt;"
3033 In this string, &lt;index&gt; must be an integer specifying the hard disk controller to connect
3034 the image to. That number must be the index of an array item with one of the hard disk controller
3035 types (HardDiskControllerSCSI, HardDiskControllerSATA, HardDiskControllerIDE).
3036 In addition, &lt;c&gt; must specify the channel to use on that controller. For IDE controllers,
3037 this can be 0 or 1 for master or slave, respectively. For compatibility with VirtualBox versions
3038 before 3.2, the values 2 and 3 (for secondary master and secondary slave) are also supported, but
3039 no longer exported. For SATA and SCSI controllers, the channel can range from 0-29.
3040 </li>
3041 <li>
3042 "CDROM": a virtual CD-ROM drive. The matching item in @a aExtraConfigValue[] contains the same
3043 attachment information as with "HardDiskImage" items.
3044 </li>
3045 <li>
3046 "CDROM": a virtual floppy drive. The matching item in @a aExtraConfigValue[] contains the same
3047 attachment information as with "HardDiskImage" items.
3048 </li>
3049 <li>
3050 "NetworkAdapter": a network adapter. The array item in @a aVBoxValues[] will specify the hardware
3051 for the network adapter, whereas the array item in @a aExtraConfigValues[] will have a string
3052 of the "type=&lt;X&gt;" format, where &lt;X&gt; must be either "NAT" or "Bridged".
3053 </li>
3054 <li>
3055 "USBController": a USB controller. There can be at most one such item. If and only if such an
3056 item ispresent, USB support will be enabled for the new virtual machine.
3057 </li>
3058 <li>
3059 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
3060 present, sound support will be enabled for the new virtual machine. Note that the virtual
3061 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
3062 may be different from the virtual soundcard expected by the appliance.
3063 </li>
3064 </ul>
3065
3066 </desc>
3067
3068 <param name="types" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
3069 <desc></desc>
3070 </param>
3071
3072 <param name="refs" type="wstring" dir="out" safearray="yes">
3073 <desc></desc>
3074 </param>
3075
3076 <param name="OVFValues" type="wstring" dir="out" safearray="yes">
3077 <desc></desc>
3078 </param>
3079
3080 <param name="VBoxValues" type="wstring" dir="out" safearray="yes">
3081 <desc></desc>
3082 </param>
3083
3084 <param name="extraConfigValues" type="wstring" dir="out" safearray="yes">
3085 <desc></desc>
3086 </param>
3087
3088 </method>
3089
3090 <method name="getDescriptionByType">
3091 <desc>This is the same as <link to="#getDescription" /> except that you can specify which types
3092 should be returned.</desc>
3093
3094 <param name="type" type="VirtualSystemDescriptionType" dir="in">
3095 <desc></desc>
3096 </param>
3097
3098 <param name="types" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
3099 <desc></desc>
3100 </param>
3101
3102 <param name="refs" type="wstring" dir="out" safearray="yes">
3103 <desc></desc>
3104 </param>
3105
3106 <param name="OVFValues" type="wstring" dir="out" safearray="yes">
3107 <desc></desc>
3108 </param>
3109
3110 <param name="VBoxValues" type="wstring" dir="out" safearray="yes">
3111 <desc></desc>
3112 </param>
3113
3114 <param name="extraConfigValues" type="wstring" dir="out" safearray="yes">
3115 <desc></desc>
3116 </param>
3117
3118 </method>
3119
3120 <method name="getValuesByType">
3121 <desc>This is the same as <link to="#getDescriptionByType" /> except that you can specify which
3122 value types should be returned. See <link to="VirtualSystemDescriptionValueType" /> for possible
3123 values.</desc>
3124
3125 <param name="type" type="VirtualSystemDescriptionType" dir="in">
3126 <desc></desc>
3127 </param>
3128
3129 <param name="which" type="VirtualSystemDescriptionValueType" dir="in">
3130 <desc></desc>
3131 </param>
3132
3133 <param name="values" type="wstring" dir="return" safearray="yes">
3134 <desc></desc>
3135 </param>
3136
3137 </method>
3138
3139 <method name="setFinalValues">
3140 <desc>
3141 This method allows the appliance's user to change the configuration for the virtual
3142 system descriptions. For each array item returned from <link to="#getDescription" />,
3143 you must pass in one boolean value and one configuration value.
3144
3145 Each item in the boolean array determines whether the particular configuration item
3146 should be enabled.
3147 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
3148 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
3149 and SoundCard.
3150
3151 For the "vbox" and "extra configuration" values, if you pass in the same arrays
3152 as returned in the aVBoxValues and aExtraConfigValues arrays from <link to="#getDescription"/>,
3153 the configuration remains unchanged. Please see the documentation for <link to="#getDescription"/>
3154 for valid configuration values for the individual array item types. If the
3155 corresponding item in the aEnabled array is @c false, the configuration value is ignored.
3156 </desc>
3157
3158 <param name="enabled" type="boolean" dir="in" safearray="yes">
3159 <desc></desc>
3160 </param>
3161
3162 <param name="VBoxValues" type="wstring" dir="in" safearray="yes">
3163 <desc></desc>
3164 </param>
3165
3166 <param name="extraConfigValues" type="wstring" dir="in" safearray="yes">
3167 <desc></desc>
3168 </param>
3169 </method>
3170
3171 <method name="addDescription">
3172 <desc>
3173 This method adds an additional description entry to the stack of already
3174 available descriptions for this virtual system. This is handy for writing
3175 values which aren't directly supported by VirtualBox. One example would
3176 be the License type of <link to="VirtualSystemDescriptionType" />.
3177 </desc>
3178
3179 <param name="type" type="VirtualSystemDescriptionType" dir="in">
3180 <desc></desc>
3181 </param>
3182
3183 <param name="VBoxValue" type="wstring" dir="in">
3184 <desc></desc>
3185 </param>
3186
3187 <param name="extraConfigValue" type="wstring" dir="in">
3188 <desc></desc>
3189 </param>
3190 </method>
3191 </interface>
3192
3193
3194 <!--
3195 // IMachine
3196 /////////////////////////////////////////////////////////////////////////
3197 -->
3198
3199 <interface
3200 name="IInternalMachineControl" extends="$unknown"
3201 uuid="dca36a92-703c-4649-98a4-f40c1ef0c336"
3202 internal="yes"
3203 wsmap="suppress"
3204 >
3205 <method name="setRemoveSavedStateFile">
3206 <desc>
3207 Updates the flag whether the saved state file is removed on a
3208 machine state change from Saved to PoweredOff.
3209 </desc>
3210 <param name="remove" type="boolean" dir="in"/>
3211 </method>
3212
3213 <method name="updateState">
3214 <desc>
3215 Updates the VM state.
3216 <note>
3217 This operation will also update the settings file with the correct
3218 information about the saved state file and delete this file from disk
3219 when appropriate.
3220 </note>
3221 </desc>
3222 <param name="state" type="MachineState" dir="in"/>
3223 </method>
3224
3225 <method name="getIPCId">
3226 <param name="id" type="wstring" dir="return"/>
3227 </method>
3228
3229 <method name="beginPowerUp">
3230 <desc>
3231 Tells VBoxSVC that <link to="IConsole::powerUp"/> is under ways and
3232 gives it the progress object that should be part of any pending
3233 <link to="IMachine::launchVMProcess"/> operations. The progress
3234 object may be called back to reflect an early cancelation, so some care
3235 have to be taken with respect to any cancelation callbacks. The console
3236 object will call <link to="IInternalMachineControl::endPowerUp"/>
3237 to signal the completion of the progress object.
3238 </desc>
3239 <param name="progress" type="IProgress" dir="in" />
3240 </method>
3241
3242 <method name="endPowerUp">
3243 <desc>
3244 Tells VBoxSVC that <link to="IConsole::powerUp"/> has completed.
3245 This method may query status information from the progress object it
3246 received in <link to="IInternalMachineControl::beginPowerUp"/> and copy
3247 it over to any in-progress <link to="IMachine::launchVMProcess"/>
3248 call in order to complete that progress object.
3249 </desc>
3250 <param name="result" type="long" dir="in"/>
3251 </method>
3252
3253 <method name="beginPoweringDown">
3254 <desc>
3255 Called by the VM process to inform the server it wants to
3256 stop the VM execution and power down.
3257 </desc>
3258 <param name="progress" type="IProgress" dir="out">
3259 <desc>
3260 Progress object created by VBoxSVC to wait until
3261 the VM is powered down.
3262 </desc>
3263 </param>
3264 </method>
3265
3266 <method name="endPoweringDown">
3267 <desc>
3268 Called by the VM process to inform the server that powering
3269 down previously requested by #beginPoweringDown is either
3270 successfully finished or there was a failure.
3271
3272 <result name="VBOX_E_FILE_ERROR">
3273 Settings file not accessible.
3274 </result>
3275 <result name="VBOX_E_XML_ERROR">
3276 Could not parse the settings file.
3277 </result>
3278
3279 </desc>
3280
3281 <param name="result" type="long" dir="in">
3282 <desc>@c S_OK to indicate success.
3283 </desc>
3284 </param>
3285 <param name="errMsg" type="wstring" dir="in">
3286 <desc>@c human readable error message in case of failure.
3287 </desc>
3288 </param>
3289 </method>
3290
3291 <method name="runUSBDeviceFilters">
3292 <desc>
3293 Asks the server to run USB devices filters of the associated
3294 machine against the given USB device and tell if there is
3295 a match.
3296 <note>
3297 Intended to be used only for remote USB devices. Local
3298 ones don't require to call this method (this is done
3299 implicitly by the Host and USBProxyService).
3300 </note>
3301 </desc>
3302 <param name="device" type="IUSBDevice" dir="in"/>
3303 <param name="matched" type="boolean" dir="out"/>
3304 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
3305 </method>
3306
3307 <method name="captureUSBDevice">
3308 <desc>
3309 Requests a capture of the given host USB device.
3310 When the request is completed, the VM process will
3311 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3312 notification.
3313 </desc>
3314 <param name="id" type="uuid" mod="string" dir="in"/>
3315 </method>
3316
3317 <method name="detachUSBDevice">
3318 <desc>
3319 Notification that a VM is going to detach (@a done = @c false) or has
3320 already detached (@a done = @c true) the given USB device.
3321 When the @a done = @c true request is completed, the VM process will
3322 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
3323 notification.
3324 <note>
3325 In the @a done = @c true case, the server must run its own filters
3326 and filters of all VMs but this one on the detached device
3327 as if it were just attached to the host computer.
3328 </note>
3329 </desc>
3330 <param name="id" type="uuid" mod="string" dir="in"/>
3331 <param name="done" type="boolean" dir="in"/>
3332 </method>
3333
3334 <method name="autoCaptureUSBDevices">
3335 <desc>
3336 Requests a capture all matching USB devices attached to the host.
3337 When the request is completed, the VM process will
3338 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3339 notification per every captured device.
3340 </desc>
3341 </method>
3342
3343 <method name="detachAllUSBDevices">
3344 <desc>
3345 Notification that a VM that is being powered down. The done
3346 parameter indicates whether which stage of the power down
3347 we're at. When @a done = @c false the VM is announcing its
3348 intentions, while when @a done = @c true the VM is reporting
3349 what it has done.
3350 <note>
3351 In the @a done = @c true case, the server must run its own filters
3352 and filters of all VMs but this one on all detach devices as
3353 if they were just attached to the host computer.
3354 </note>
3355 </desc>
3356 <param name="done" type="boolean" dir="in"/>
3357 </method>
3358
3359 <method name="onSessionEnd">
3360 <desc>
3361 Triggered by the given session object when the session is about
3362 to close normally.
3363 </desc>
3364 <param name="session" type="ISession" dir="in">
3365 <desc>Session that is being closed</desc>
3366 </param>
3367 <param name="progress" type="IProgress" dir="return">
3368 <desc>
3369 Used to wait until the corresponding machine is actually
3370 dissociated from the given session on the server.
3371 Returned only when this session is a direct one.
3372 </desc>
3373 </param>
3374 </method>
3375
3376 <method name="beginSavingState">
3377 <desc>
3378 Called by the VM process to inform the server it wants to
3379 save the current state and stop the VM execution.
3380 </desc>
3381 <param name="progress" type="IProgress" dir="out">
3382 <desc>
3383 Progress object created by VBoxSVC to wait until
3384 the state is saved.
3385 </desc>
3386 </param>
3387 <param name="stateFilePath" type="wstring" dir="out">
3388 <desc>
3389 File path the VM process must save the execution state to.
3390 </desc>
3391 </param>
3392 </method>
3393
3394 <method name="endSavingState">
3395 <desc>
3396 Called by the VM process to inform the server that saving
3397 the state previously requested by #beginSavingState is either
3398 successfully finished or there was a failure.
3399
3400 <result name="VBOX_E_FILE_ERROR">
3401 Settings file not accessible.
3402 </result>
3403 <result name="VBOX_E_XML_ERROR">
3404 Could not parse the settings file.
3405 </result>
3406
3407 </desc>
3408
3409 <param name="result" type="long" dir="in">
3410 <desc>@c S_OK to indicate success.
3411 </desc>
3412 </param>
3413 <param name="errMsg" type="wstring" dir="in">
3414 <desc>@c human readable error message in case of failure.
3415 </desc>
3416 </param>
3417 </method>
3418
3419 <method name="adoptSavedState">
3420 <desc>
3421 Gets called by <link to="IConsole::adoptSavedState"/>.
3422 <result name="VBOX_E_FILE_ERROR">
3423 Invalid saved state file path.
3424 </result>
3425 </desc>
3426 <param name="savedStateFile" type="wstring" dir="in">
3427 <desc>Path to the saved state file to adopt.</desc>
3428 </param>
3429 </method>
3430
3431 <method name="beginTakingSnapshot">
3432 <desc>
3433 Called from the VM process to request from the server to perform the
3434 server-side actions of creating a snapshot (creating differencing images
3435 and the snapshot object).
3436
3437 <result name="VBOX_E_FILE_ERROR">
3438 Settings file not accessible.
3439 </result>
3440 <result name="VBOX_E_XML_ERROR">
3441 Could not parse the settings file.
3442 </result>
3443 </desc>
3444 <param name="initiator" type="IConsole" dir="in">
3445 <desc>The console object that initiated this call.</desc>
3446 </param>
3447 <param name="name" type="wstring" dir="in">
3448 <desc>Snapshot name.</desc>
3449 </param>
3450 <param name="description" type="wstring" dir="in">
3451 <desc>Snapshot description.</desc>
3452 </param>
3453 <param name="consoleProgress" type="IProgress" dir="in">
3454 <desc>
3455 Progress object created by the VM process tracking the
3456 snapshot's progress. This has the following sub-operations:
3457 <ul>
3458 <li>setting up (weight 1);</li>
3459 <li>one for each medium attachment that needs a differencing image (weight 1 each);</li>
3460 <li>another one to copy the VM state (if offline with saved state, weight is VM memory size in MB);</li>
3461 <li>another one to save the VM state (if online, weight is VM memory size in MB);</li>
3462 <li>finishing up (weight 1)</li>
3463 </ul>
3464 </desc>
3465 </param>
3466 <param name="fTakingSnapshotOnline" type="boolean" dir="in">
3467 <desc>
3468 Whether this is an online snapshot (i.e. the machine is running).
3469 </desc>
3470 </param>
3471 <param name="stateFilePath" type="wstring" dir="out">
3472 <desc>
3473 File path the VM process must save the execution state to.
3474 </desc>
3475 </param>
3476 </method>
3477
3478 <method name="endTakingSnapshot">
3479 <desc>
3480 Called by the VM process to inform the server that the snapshot
3481 previously requested by #beginTakingSnapshot is either
3482 successfully taken or there was a failure.
3483 </desc>
3484
3485 <param name="success" type="boolean" dir="in">
3486 <desc>@c true to indicate success and @c false otherwise</desc>
3487 </param>
3488 </method>
3489
3490 <method name="deleteSnapshot">
3491 <desc>
3492 Gets called by <link to="IConsole::deleteSnapshot"/>,
3493 <link to="IConsole::deleteSnapshotAndAllChildren"/> and
3494 <link to="IConsole::deleteSnapshotRange"/>.
3495 <result name="VBOX_E_INVALID_OBJECT_STATE">
3496 Snapshot has more than one child snapshot. Only possible if the
3497 delete operation does not delete all children or the range does
3498 not meet the linearity condition.
3499 </result>
3500 </desc>
3501 <param name="initiator" type="IConsole" dir="in">
3502 <desc>The console object that initiated this call.</desc>
3503 </param>
3504 <param name="startId" type="uuid" mod="string" dir="in">
3505 <desc>UUID of the first snapshot to delete.</desc>
3506 </param>
3507 <param name="endId" type="uuid" mod="string" dir="in">
3508 <desc>UUID of the last snapshot to delete.</desc>
3509 </param>
3510 <param name="deleteAllChildren" type="boolean" dir="in">
3511 <desc>Whether all children should be deleted.</desc>
3512 </param>
3513 <param name="machineState" type="MachineState" dir="out">
3514 <desc>New machine state after this operation is started.</desc>
3515 </param>
3516 <param name="progress" type="IProgress" dir="return">
3517 <desc>Progress object to track the operation completion.</desc>
3518 </param>
3519 </method>
3520
3521 <method name="finishOnlineMergeMedium">
3522 <desc>
3523 Gets called by <link to="IInternalSessionControl::onlineMergeMedium"/>.
3524 </desc>
3525 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
3526 <desc>The medium attachment which needs to be cleaned up.</desc>
3527 </param>
3528 <param name="source" type="IMedium" dir="in">
3529 <desc>Merge source medium.</desc>
3530 </param>
3531 <param name="target" type="IMedium" dir="in">
3532 <desc>Merge target medium.</desc>
3533 </param>
3534 <param name="mergeForward" type="boolean" dir="in">
3535 <desc>Merge direction.</desc>
3536 </param>
3537 <param name="parentForTarget" type="IMedium" dir="in">
3538 <desc>For forward merges: new parent for target medium.</desc>
3539 </param>
3540 <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
3541 <desc>For backward merges: list of media which need their parent UUID
3542 updated.</desc>
3543 </param>
3544 </method>
3545
3546 <method name="restoreSnapshot">
3547 <desc>
3548 Gets called by <link to="IConsole::restoreSnapshot"/>.
3549 </desc>
3550 <param name="initiator" type="IConsole" dir="in">
3551 <desc>The console object that initiated this call.</desc>
3552 </param>
3553 <param name="snapshot" type="ISnapshot" dir="in">
3554 <desc>The snapshot to restore the VM state from.</desc>
3555 </param>
3556 <param name="machineState" type="MachineState" dir="out">
3557 <desc>New machine state after this operation is started.</desc>
3558 </param>
3559 <param name="progress" type="IProgress" dir="return">
3560 <desc>Progress object to track the operation completion.</desc>
3561 </param>
3562 </method>
3563
3564 <method name="pullGuestProperties">
3565 <desc>
3566 Get the list of the guest properties matching a set of patterns along
3567 with their values, time stamps and flags and give responsibility for
3568 managing properties to the console.
3569 </desc>
3570 <param name="names" type="wstring" dir="out" safearray="yes">
3571 <desc>
3572 The names of the properties returned.
3573 </desc>
3574 </param>
3575 <param name="values" type="wstring" dir="out" safearray="yes">
3576 <desc>
3577 The values of the properties returned. The array entries match the
3578 corresponding entries in the @a name array.
3579 </desc>
3580 </param>
3581 <param name="timestamps" type="long long" dir="out" safearray="yes">
3582 <desc>
3583 The time stamps of the properties returned. The array entries match
3584 the corresponding entries in the @a name array.
3585 </desc>
3586 </param>
3587 <param name="flags" type="wstring" dir="out" safearray="yes">
3588 <desc>
3589 The flags of the properties returned. The array entries match the
3590 corresponding entries in the @a name array.
3591 </desc>
3592 </param>
3593 </method>
3594
3595 <method name="pushGuestProperty">
3596 <desc>
3597 Update a single guest property in IMachine.
3598 </desc>
3599 <param name="name" type="wstring" dir="in">
3600 <desc>
3601 The name of the property to be updated.
3602 </desc>
3603 </param>
3604 <param name="value" type="wstring" dir="in">
3605 <desc>
3606 The value of the property.
3607 </desc>
3608 </param>
3609 <param name="timestamp" type="long long" dir="in">
3610 <desc>
3611 The timestamp of the property.
3612 </desc>
3613 </param>
3614 <param name="flags" type="wstring" dir="in">
3615 <desc>
3616 The flags of the property.
3617 </desc>
3618 </param>
3619 </method>
3620
3621 <method name="lockMedia">
3622 <desc>
3623 Locks all media attached to the machine for writing and parents of
3624 attached differencing media (if any) for reading. This operation is
3625 atomic so that if it fails no media is actually locked.
3626
3627 This method is intended to be called when the machine is in Starting or
3628 Restoring state. The locked media will be automatically unlocked when
3629 the machine is powered off or crashed.
3630 </desc>
3631 </method>
3632 <method name="unlockMedia">
3633 <desc>
3634 Unlocks all media previously locked using
3635 <link to="IInternalMachineControl::lockMedia"/>.
3636
3637 This method is intended to be used with teleportation so that it is
3638 possible to teleport between processes on the same machine.
3639 </desc>
3640 </method>
3641
3642 <method name="ejectMedium">
3643 <desc>
3644 Tells VBoxSVC that the guest has ejected the medium associated with
3645 the medium attachment.
3646 </desc>
3647 <param name="attachment" type="IMediumAttachment" dir="in">
3648 <desc>
3649 The medium attachment where the eject happened.
3650 </desc>
3651 </param>
3652 <param name="newAttachment" type="IMediumAttachment" dir="return">
3653 <desc>
3654 A new reference to the medium attachment, as the config change can
3655 result in the creation of a new instance.
3656 </desc>
3657 </param>
3658 </method>
3659
3660 <method name="reportVmStatistics">
3661 <desc>
3662 Passes statistics collected by VM (including guest statistics) to VBoxSVC.
3663 </desc>
3664 <param name="validStats" type="unsigned long" dir="in">
3665 <desc>
3666 Mask defining which parameters are valid. For example: 0x11 means
3667 that cpuIdle and XXX are valid. Other parameters should be ignored.
3668 </desc>
3669 </param>
3670 <param name="cpuUser" type="unsigned long" dir="in">
3671 <desc>Percentage of processor time spent in user mode as seen by the guest.</desc>
3672 </param>
3673 <param name="cpuKernel" type="unsigned long" dir="in">
3674 <desc>Percentage of processor time spent in kernel mode as seen by the guest.</desc>
3675 </param>
3676 <param name="cpuIdle" type="unsigned long" dir="in">
3677 <desc>Percentage of processor time spent idling as seen by the guest.</desc>
3678 </param>
3679 <param name="memTotal" type="unsigned long" dir="in">
3680 <desc>Total amount of physical guest RAM.</desc>
3681 </param>
3682 <param name="memFree" type="unsigned long" dir="in">
3683 <desc>Free amount of physical guest RAM.</desc>
3684 </param>
3685 <param name="memBalloon" type="unsigned long" dir="in">
3686 <desc>Amount of ballooned physical guest RAM.</desc>
3687 </param>
3688 <param name="memShared" type="unsigned long" dir="in">
3689 <desc>Amount of shared physical guest RAM.</desc>
3690 </param>
3691 <param name="memCache" type="unsigned long" dir="in">
3692 <desc>Total amount of guest (disk) cache memory.</desc>
3693 </param>
3694 <param name="pagedTotal" type="unsigned long" dir="in">
3695 <desc>Total amount of space in the page file.</desc>
3696 </param>
3697 <param name="memAllocTotal" type="unsigned long" dir="in">
3698 <desc>Total amount of memory allocated by the hypervisor.</desc>
3699 </param>
3700 <param name="memFreeTotal" type="unsigned long" dir="in">
3701 <desc>Total amount of free memory available in the hypervisor.</desc>
3702 </param>
3703 <param name="memBalloonTotal" type="unsigned long" dir="in">
3704 <desc>Total amount of memory ballooned by the hypervisor.</desc>
3705 </param>
3706 <param name="memSharedTotal" type="unsigned long" dir="in">
3707 <desc>Total amount of shared memory in the hypervisor.</desc>
3708 </param>
3709 <param name="vmNetRx" type="unsigned long" dir="in">
3710 <desc>Network receive rate for VM.</desc>
3711 </param>
3712 <param name="vmNetTx" type="unsigned long" dir="in">
3713 <desc>Network transmit rate for VM.</desc>
3714 </param>
3715 </method>
3716 </interface>
3717
3718 <interface
3719 name="IBIOSSettings" extends="$unknown"
3720 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
3721 wsmap="managed"
3722 >
3723 <desc>
3724 The IBIOSSettings interface represents BIOS settings of the virtual
3725 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
3726 </desc>
3727 <attribute name="logoFadeIn" type="boolean">
3728 <desc>Fade in flag for BIOS logo animation.</desc>
3729 </attribute>
3730
3731 <attribute name="logoFadeOut" type="boolean">
3732 <desc>Fade out flag for BIOS logo animation.</desc>
3733 </attribute>
3734
3735 <attribute name="logoDisplayTime" type="unsigned long">
3736 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
3737 </attribute>
3738
3739 <attribute name="logoImagePath" type="wstring">
3740 <desc>
3741 Local file system path for external BIOS splash image. Empty string
3742 means the default image is shown on boot.
3743 </desc>
3744 </attribute>
3745
3746 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
3747 <desc>Mode of the BIOS boot device menu.</desc>
3748 </attribute>
3749
3750 <attribute name="ACPIEnabled" type="boolean">
3751 <desc>ACPI support flag.</desc>
3752 </attribute>
3753
3754 <attribute name="IOAPICEnabled" type="boolean">
3755 <desc>
3756 IO APIC support flag. If set, VirtualBox will provide an IO APIC
3757 and support IRQs above 15.
3758 </desc>
3759 </attribute>
3760
3761 <attribute name="timeOffset" type="long long">
3762 <desc>
3763 Offset in milliseconds from the host system time. This allows for
3764 guests running with a different system date/time than the host.
3765 It is equivalent to setting the system date/time in the BIOS except
3766 it is not an absolute value but a relative one. Guest Additions
3767 time synchronization honors this offset.
3768 </desc>
3769 </attribute>
3770
3771 <attribute name="PXEDebugEnabled" type="boolean">
3772 <desc>
3773 PXE debug logging flag. If set, VirtualBox will write extensive
3774 PXE trace information to the release log.
3775 </desc>
3776 </attribute>
3777 </interface>
3778
3779 <enum
3780 name="CleanupMode"
3781 uuid="67897c50-7cca-47a9-83f6-ce8fd8eb5441"
3782 >
3783 <desc>Cleanup mode, used with <link to="IMachine::unregister" />.
3784 </desc>
3785 <const name="UnregisterOnly" value="1">
3786 <desc>Unregister only the machine, but neither delete snapshots nor detach media.</desc>
3787 </const>
3788 <const name="DetachAllReturnNone" value="2">
3789 <desc>Delete all snapshots and detach all media but return none; this will keep all media registered.</desc>
3790 </const>
3791 <const name="DetachAllReturnHardDisksOnly" value="3">
3792 <desc>Delete all snapshots, detach all media and return hard disks for closing, but not removable media.</desc>
3793 </const>
3794 <const name="Full" value="4">
3795 <desc>Delete all snapshots, detach all media and return all media for closing.</desc>
3796 </const>
3797 </enum>
3798
3799 <interface
3800 name="IPCIAddress" extends="$unknown"
3801 uuid="D88B324F-DB19-4D3B-A1A9-BF5B127199A8"
3802 wsmap="struct"
3803 >
3804
3805 <desc>
3806 Address on the PCI bus.
3807 </desc>
3808
3809 <attribute name="bus" type="short">
3810 <desc>
3811 Bus number.
3812 </desc>
3813 </attribute>
3814
3815 <attribute name="device" type="short">
3816 <desc>
3817 Device number.
3818 </desc>
3819 </attribute>
3820
3821 <attribute name="devFunction" type="short">
3822 <desc>
3823 Device function number.
3824 </desc>
3825 </attribute>
3826
3827 <method name="asLong">
3828 <desc>
3829 Convert PCI address into long.
3830 </desc>
3831 <param name="result" type="long" dir="return" />
3832 </method>
3833
3834 <method name="fromLong">
3835 <desc>
3836 Make PCI address from long.
3837 </desc>
3838 <param name="number" type="long" dir="in" />
3839 </method>
3840 </interface>
3841
3842 <interface
3843 name="IPCIDeviceAttachment" extends="$unknown"
3844 uuid="91f33d6f-e621-4f70-a77e-15f0e3c714d5"
3845 wsmap="struct"
3846 >
3847
3848 <desc>
3849 Information about PCI attachments.
3850 </desc>
3851
3852 <attribute name="name" type="wstring" readonly="yes">
3853 <desc>
3854 Device name.
3855 </desc>
3856 </attribute>
3857
3858 <attribute name="isPhysicalDevice" type="boolean" readonly="yes">
3859 <desc>
3860 If this is physical or virtual device.
3861 </desc>
3862 </attribute>
3863
3864 <attribute name="hostAddress" type="long" readonly="yes">
3865 <desc>
3866 Address of device on the host, applicable only to host devices.
3867 </desc>
3868 </attribute>
3869
3870 <attribute name="guestAddress" type="long" readonly="yes">
3871 <desc>
3872 Address of device on the guest.
3873 </desc>
3874 </attribute>
3875
3876 </interface>
3877
3878 <enum
3879 name="CloneMode" extends="$unknown"
3880 uuid="A7A159FE-5096-4B8D-8C3C-D033CB0B35A8"
3881 >
3882
3883 <desc>
3884 Clone mode, used with <link to="IMachine::cloneTo" />.
3885 </desc>
3886
3887 <const name="MachineState" value="1">
3888 <desc>Clone the state of the selected machine.</desc>
3889 </const>
3890 <const name="MachineAndChildStates" value="2">
3891 <desc>Clone the state of the selected machine and its child snapshots if present.</desc>
3892 </const>
3893 <const name="AllStates" value="3">
3894 <desc>Clone all states (including all snapshots) of the machine, regardless of the machine object used.</desc>
3895 </const>
3896
3897 </enum>
3898
3899 <enum
3900 name="CloneOptions" extends="$unknown"
3901 uuid="22243f8e-96ab-497c-8cf0-f40a566c630b"
3902 >
3903
3904 <desc>
3905 Clone options, used with <link to="IMachine::cloneTo" />.
3906 </desc>
3907
3908 <const name="Link" value="1">
3909 <desc>Create a clone VM where all virtual disks are linked to the original VM.</desc>
3910 </const>
3911 <const name="KeepAllMACs" value="2">
3912 <desc>Don't generate new MAC addresses of the attached network adapters.</desc>
3913 </const>
3914 <const name="KeepNATMACs" value="3">
3915 <desc>Don't generate new MAC addresses of the attached network adapters when they are using NAT.</desc>
3916 </const>
3917 <const name="KeepDiskNames" value="4">
3918 <desc>Don't change the disk names.</desc>
3919 </const>
3920
3921 </enum>
3922
3923 <enum
3924 name="AutostopType" extends="$unknown"
3925 uuid="6bb96740-cf34-470d-aab2-2cd48ea2e10e"
3926 >
3927
3928 <desc>
3929 Autostop types, used with <link to="IMachine::autostopType" />.
3930 </desc>
3931
3932 <const name="Disabled" value="1">
3933 <desc>Stopping the VM during system shutdown is disabled.</desc>
3934 </const>
3935 <const name="SaveState" value="2">
3936 <desc>The state of the VM will be saved when the system shuts down.</desc>
3937 </const>
3938 <const name="PowerOff" value="3">
3939 <desc>The VM is powered off when the system shuts down.</desc>
3940 </const>
3941 <const name="AcpiShutdown" value="4">
3942 <desc>An ACPI shutdown event is generated.</desc>
3943 </const>
3944
3945 </enum>
3946
3947
3948 <interface
3949 name="IMachine" extends="$unknown"
3950 uuid="381e3f31-2b27-45b7-818a-30609ade86b3"
3951 wsmap="managed"
3952 >
3953 <desc>
3954 The IMachine interface represents a virtual machine, or guest, created
3955 in VirtualBox.
3956
3957 This interface is used in two contexts. First of all, a collection of
3958 objects implementing this interface is stored in the
3959 <link to="IVirtualBox::machines"/> attribute which lists all the virtual
3960 machines that are currently registered with this VirtualBox
3961 installation. Also, once a session has been opened for the given virtual
3962 machine (e.g. the virtual machine is running), the machine object
3963 associated with the open session can be queried from the session object;
3964 see <link to="ISession"/> for details.
3965
3966 The main role of this interface is to expose the settings of the virtual
3967 machine and provide methods to change various aspects of the virtual
3968 machine's configuration. For machine objects stored in the
3969 <link to="IVirtualBox::machines"/> collection, all attributes are
3970 read-only unless explicitly stated otherwise in individual attribute
3971 and method descriptions.
3972
3973 In order to change a machine setting, a session for this machine must be
3974 opened using one of the <link to="IMachine::lockMachine" /> or
3975 <link to="IMachine::launchVMProcess"/> methods. After the
3976 machine has been successfully locked for a session, a mutable machine object
3977 needs to be queried from the session object and then the desired settings
3978 changes can be applied to the returned object using IMachine attributes and
3979 methods. See the <link to="ISession"/> interface description for more
3980 information about sessions.
3981
3982 Note that IMachine does not provide methods to control virtual machine
3983 execution (such as start the machine, or power it down) -- these methods
3984 are grouped in a separate interface called <link to="IConsole" />.
3985
3986 <see><link to="ISession"/>, <link to="IConsole"/></see>
3987 </desc>
3988
3989 <attribute name="parent" type="IVirtualBox" readonly="yes">
3990 <desc>Associated parent object.</desc>
3991 </attribute>
3992
3993 <attribute name="accessible" type="boolean" readonly="yes">
3994 <desc>
3995 Whether this virtual machine is currently accessible or not.
3996
3997 A machine is always deemed accessible unless it is registered <i>and</i>
3998 its settings file cannot be read or parsed (either because the file itself
3999 is unavailable or has invalid XML contents).
4000
4001 Every time this property is read, the accessibility state of
4002 this machine is re-evaluated. If the returned value is @c false,
4003 the <link to="#accessError"/> property may be used to get the
4004 detailed error information describing the reason of
4005 inaccessibility, including XML error messages.
4006
4007 When the machine is inaccessible, only the following properties
4008 can be used on it:
4009 <ul>
4010 <li><link to="#parent"/></li>
4011 <li><link to="#id"/></li>
4012 <li><link to="#settingsFilePath"/></li>
4013 <li><link to="#accessible"/></li>
4014 <li><link to="#accessError"/></li>
4015 </ul>
4016
4017 An attempt to access any other property or method will return
4018 an error.
4019
4020 The only possible action you can perform on an inaccessible
4021 machine is to unregister it using the
4022 <link to="IMachine::unregister"/> call (or, to check
4023 for the accessibility state once more by querying this
4024 property).
4025
4026 <note>
4027 In the current implementation, once this property returns
4028 @c true, the machine will never become inaccessible
4029 later, even if its settings file cannot be successfully
4030 read/written any more (at least, until the VirtualBox
4031 server is restarted). This limitation may be removed in
4032 future releases.
4033 </note>
4034 </desc>
4035 </attribute>
4036
4037 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
4038 <desc>
4039 Error information describing the reason of machine
4040 inaccessibility.
4041
4042 Reading this property is only valid after the last call to
4043 <link to="#accessible"/> returned @c false (i.e. the
4044 machine is currently inaccessible). Otherwise, a @c null
4045 IVirtualBoxErrorInfo object will be returned.
4046 </desc>
4047 </attribute>
4048
4049 <attribute name="name" type="wstring">
4050 <desc>
4051 Name of the virtual machine.
4052
4053 Besides being used for human-readable identification purposes
4054 everywhere in VirtualBox, the virtual machine name is also used
4055 as a name of the machine's settings file and as a name of the
4056 subdirectory this settings file resides in. Thus, every time you
4057 change the value of this property, the settings file will be
4058 renamed once you call <link to="#saveSettings"/> to confirm the
4059 change. The containing subdirectory will be also renamed, but
4060 only if it has exactly the same name as the settings file
4061 itself prior to changing this property (for backward compatibility
4062 with previous API releases). The above implies the following
4063 limitations:
4064 <ul>
4065 <li>The machine name cannot be empty.</li>
4066 <li>The machine name can contain only characters that are valid
4067 file name characters according to the rules of the file
4068 system used to store VirtualBox configuration.</li>
4069 <li>You cannot have two or more machines with the same name
4070 if they use the same subdirectory for storing the machine
4071 settings files.</li>
4072 <li>You cannot change the name of the machine if it is running,
4073 or if any file in the directory containing the settings file
4074 is being used by another running machine or by any other
4075 process in the host operating system at a time when
4076 <link to="#saveSettings"/> is called.
4077 </li>
4078 </ul>
4079 If any of the above limitations are hit, <link to="#saveSettings"/>
4080 will return an appropriate error message explaining the exact
4081 reason and the changes you made to this machine will not be saved.
4082
4083 Starting with VirtualBox 4.0, a ".vbox" extension of the settings
4084 file is recommended, but not enforced. (Previous versions always
4085 used a generic ".xml" extension.)
4086 </desc>
4087 </attribute>
4088
4089 <attribute name="description" type="wstring">
4090 <desc>
4091 Description of the virtual machine.
4092
4093 The description attribute can contain any text and is
4094 typically used to describe the hardware and software
4095 configuration of the virtual machine in detail (i.e. network
4096 settings, versions of the installed software and so on).
4097 </desc>
4098 </attribute>
4099
4100 <attribute name="id" type="uuid" mod="string" readonly="yes">
4101 <desc>UUID of the virtual machine.</desc>
4102 </attribute>
4103
4104 <attribute name="groups" type="wstring" safearray="yes">
4105 <desc>
4106 Array of machine group names of which this machine is a member.
4107 <tt>""</tt> and <tt>"/"</tt> are synonyms for the toplevel group. Each
4108 group is only listed once, however they are listed in no particular
4109 order and there is no guarantee that there are no gaps in the group
4110 hierarchy (i.e. <tt>"/group"</tt>,
4111 <tt>"/group/subgroup/subsubgroup"</tt> is a valid result).
4112 </desc>
4113 </attribute>
4114
4115 <attribute name="OSTypeId" type="wstring">
4116 <desc>
4117 User-defined identifier of the Guest OS type.
4118 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
4119 an IGuestOSType object representing details about the given
4120 Guest OS type.
4121 <note>
4122 This value may differ from the value returned by
4123 <link to="IGuest::OSTypeId"/> if Guest Additions are
4124 installed to the guest OS.
4125 </note>
4126 </desc>
4127 </attribute>
4128
4129 <attribute name="hardwareVersion" type="wstring">
4130 <desc>Hardware version identifier. Internal use only for now.</desc>
4131 </attribute>
4132
4133 <attribute name="hardwareUUID" type="uuid" mod="string">
4134 <desc>
4135 The UUID presented to the guest via memory tables, hardware and guest
4136 properties. For most VMs this is the same as the @a id, but for VMs
4137 which have been cloned or teleported it may be the same as the source
4138 VM. The latter is because the guest shouldn't notice that it was
4139 cloned or teleported.
4140 </desc>
4141 </attribute>
4142
4143 <attribute name="CPUCount" type="unsigned long">
4144 <desc>Number of virtual CPUs in the VM.</desc>
4145 </attribute>
4146
4147 <attribute name="CPUHotPlugEnabled" type="boolean">
4148 <desc>
4149 This setting determines whether VirtualBox allows CPU
4150 hotplugging for this machine.</desc>
4151 </attribute>
4152
4153 <attribute name="CPUExecutionCap" type="unsigned long">
4154 <desc>
4155 Means to limit the number of CPU cycles a guest can use. The unit
4156 is percentage of host CPU cycles per second. The valid range
4157 is 1 - 100. 100 (the default) implies no limit.
4158 </desc>
4159 </attribute>
4160
4161 <attribute name="memorySize" type="unsigned long">
4162 <desc>System memory size in megabytes.</desc>
4163 </attribute>
4164
4165 <attribute name="memoryBalloonSize" type="unsigned long">
4166 <desc>Memory balloon size in megabytes.</desc>
4167 </attribute>
4168
4169 <attribute name="pageFusionEnabled" type="boolean">
4170 <desc>
4171 This setting determines whether VirtualBox allows page
4172 fusion for this machine (64 bits host only).
4173 </desc>
4174 </attribute>
4175
4176 <attribute name="VRAMSize" type="unsigned long">
4177 <desc>Video memory size in megabytes.</desc>
4178 </attribute>
4179
4180 <attribute name="accelerate3DEnabled" type="boolean" default="false">
4181 <desc>
4182 This setting determines whether VirtualBox allows this machine to make
4183 use of the 3D graphics support available on the host.</desc>
4184 </attribute>
4185
4186 <attribute name="accelerate2DVideoEnabled" type="boolean" default="false">
4187 <desc>
4188 This setting determines whether VirtualBox allows this machine to make
4189 use of the 2D video acceleration support available on the host.</desc>
4190 </attribute>
4191
4192 <attribute name="monitorCount" type="unsigned long">
4193 <desc>
4194 Number of virtual monitors.
4195 <note>
4196 Only effective on Windows XP and later guests with
4197 Guest Additions installed.
4198 </note>
4199 </desc>
4200 </attribute>
4201
4202 <attribute name="VideoCaptureEnabled" type="boolean" default="false">
4203 <desc>
4204 This setting determines whether VirtualBox uses video recording to
4205 record VM session.</desc>
4206 </attribute>
4207
4208 <attribute name="VideoCaptureFile" type="wstring" default="Test.webm">
4209 <desc>
4210 This setting determines what filename VirtualBox uses to save
4211 the recorded content.</desc>
4212 </attribute>
4213
4214 <attribute name="VideoCaptureWidth" type="unsigned long" default="640">
4215 <desc>
4216 This setting determines what should be the horizontal resolution of
4217 recorded video.</desc>
4218 </attribute>
4219
4220 <attribute name="VideoCaptureHeight" type="unsigned long" default="480">
4221 <desc>
4222 This setting determines what should be the vertical resolution
4223 of recorded video.</desc>
4224 </attribute>
4225
4226 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
4227 <desc>Object containing all BIOS settings.</desc>
4228 </attribute>
4229
4230 <attribute name="firmwareType" type="FirmwareType">
4231 <desc>Type of firmware (such as legacy BIOS or EFI), used for initial
4232 bootstrap in this VM.</desc>
4233 </attribute>
4234
4235 <attribute name="pointingHIDType" type="PointingHIDType">
4236 <desc>Type of pointing HID (such as mouse or tablet) used in this VM.
4237 The default is typically "PS2Mouse" but can vary depending on the
4238 requirements of the guest operating system.</desc>
4239 </attribute>
4240
4241 <attribute name="keyboardHIDType" type="KeyboardHIDType">
4242 <desc>Type of keyboard HID used in this VM.
4243 The default is typically "PS2Keyboard" but can vary depending on the
4244 requirements of the guest operating system.</desc>
4245 </attribute>
4246
4247 <attribute name="HPETEnabled" type="boolean">
4248 <desc>This attribute controls if High Precision Event Timer (HPET) is
4249 enabled in this VM. Use this property if you want to provide guests
4250 with additional time source, or if guest requires HPET to function correctly.
4251 Default is false.</desc>
4252 </attribute>
4253
4254 <attribute name="chipsetType" type="ChipsetType">
4255 <desc>Chipset type used in this VM.</desc>
4256 </attribute>
4257
4258 <attribute name="snapshotFolder" type="wstring">
4259 <desc>
4260 Full path to the directory used to store snapshot data
4261 (differencing media and saved state files) of this machine.
4262
4263 The initial value of this property is
4264 <tt>&lt;</tt><link to="#settingsFilePath">
4265 path_to_settings_file</link><tt>&gt;/&lt;</tt>
4266 <link to="#id">machine_uuid</link>
4267 <tt>&gt;</tt>.
4268
4269 Currently, it is an error to try to change this property on
4270 a machine that has snapshots (because this would require to
4271 move possibly large files to a different location).
4272 A separate method will be available for this purpose later.
4273
4274 <note>
4275 Setting this property to @c null or to an empty string will restore
4276 the initial value.
4277 </note>
4278 <note>
4279 When setting this property, the specified path can be
4280 absolute (full path) or relative to the directory where the
4281 <link to="#settingsFilePath">machine settings file</link>
4282 is located. When reading this property, a full path is
4283 always returned.
4284 </note>
4285 <note>
4286 The specified path may not exist, it will be created
4287 when necessary.
4288 </note>
4289 </desc>
4290 </attribute>
4291
4292 <attribute name="VRDEServer" type="IVRDEServer" readonly="yes">
4293 <desc>VirtualBox Remote Desktop Extension (VRDE) server object.</desc>
4294 </attribute>
4295
4296 <attribute name="emulatedUSBWebcameraEnabled" type="boolean" default="false"/>
4297 <attribute name="emulatedUSBCardReaderEnabled" type="boolean" default="false"/>
4298
4299 <attribute name="mediumAttachments" type="IMediumAttachment" readonly="yes" safearray="yes">
4300 <desc>Array of media attached to this machine.</desc>
4301 </attribute>
4302
4303 <attribute name="USBController" type="IUSBController" readonly="yes">
4304 <desc>
4305 Associated USB controller object.
4306
4307 <note>
4308 If USB functionality is not available in the given edition of
4309 VirtualBox, this method will set the result code to @c E_NOTIMPL.
4310 </note>
4311 </desc>
4312 </attribute>
4313
4314 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
4315 <desc>Associated audio adapter, always present.</desc>
4316 </attribute>
4317
4318 <attribute name="storageControllers" type="IStorageController" readonly="yes" safearray="yes">
4319 <desc>Array of storage controllers attached to this machine.</desc>
4320 </attribute>
4321
4322 <attribute name="settingsFilePath" type="wstring" readonly="yes">
4323 <desc>
4324 Full name of the file containing machine settings data.
4325 </desc>
4326 </attribute>
4327
4328 <attribute name="settingsModified" type="boolean" readonly="yes">
4329 <desc>
4330 Whether the settings of this machine have been modified
4331 (but neither yet saved nor discarded).
4332 <note>
4333 Reading this property is only valid on instances returned
4334 by <link to="ISession::machine"/> and on new machines
4335 created by <link to="IVirtualBox::createMachine"/> or opened
4336 by <link to="IVirtualBox::openMachine"/> but not
4337 yet registered, or on unregistered machines after calling
4338 <link to="IMachine::unregister"/>. For all other
4339 cases, the settings can never be modified.
4340 </note>
4341 <note>
4342 For newly created unregistered machines, the value of this
4343 property is always @c true until <link to="#saveSettings"/>
4344 is called (no matter if any machine settings have been
4345 changed after the creation or not). For opened machines
4346 the value is set to @c false (and then follows to normal rules).
4347 </note>
4348 </desc>
4349 </attribute>
4350
4351 <attribute name="sessionState" type="SessionState" readonly="yes">
4352 <desc>Current session state for this machine.</desc>
4353 </attribute>
4354
4355 <attribute name="sessionType" type="wstring" readonly="yes">
4356 <desc>
4357 Type of the session. If <link to="#sessionState"/> is
4358 Spawning or Locked, this attribute contains the
4359 same value as passed to the
4360 <link to="IMachine::launchVMProcess"/> method in the
4361 @a type parameter. If the session was used with
4362 <link to="IMachine::lockMachine" />, or if
4363 <link to="#sessionState"/> is SessionClosed, the value of this
4364 attribute is an empty string.
4365 </desc>
4366 </attribute>
4367
4368 <attribute name="sessionPID" type="unsigned long" readonly="yes">
4369 <desc>
4370 Identifier of the session process. This attribute contains the
4371 platform-dependent identifier of the process whose session was
4372 used with <link to="IMachine::lockMachine" /> call. The returned
4373 value is only valid if <link to="#sessionState"/> is Locked or
4374 Unlocking by the time this property is read.
4375 </desc>
4376 </attribute>
4377
4378 <attribute name="state" type="MachineState" readonly="yes">
4379 <desc>Current execution state of this machine.</desc>
4380 </attribute>
4381
4382 <attribute name="lastStateChange" type="long long" readonly="yes">
4383 <desc>
4384 Time stamp of the last execution state change,
4385 in milliseconds since 1970-01-01 UTC.
4386 </desc>
4387 </attribute>
4388
4389 <attribute name="stateFilePath" type="wstring" readonly="yes">
4390 <desc>
4391 Full path to the file that stores the execution state of
4392 the machine when it is in the <link to="MachineState_Saved"/> state.
4393 <note>
4394 When the machine is not in the Saved state, this attribute is
4395 an empty string.
4396 </note>
4397 </desc>
4398 </attribute>
4399
4400 <attribute name="logFolder" type="wstring" readonly="yes">
4401 <desc>
4402 Full path to the folder that stores a set of rotated log files
4403 recorded during machine execution. The most recent log file is
4404 named <tt>VBox.log</tt>, the previous log file is
4405 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
4406 in the current version).
4407 </desc>
4408 </attribute>
4409
4410 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
4411 <desc>
4412 Current snapshot of this machine. This is @c null if the machine
4413 currently has no snapshots. If it is not @c null, then it was
4414 set by one of <link to="IConsole::takeSnapshot" />,
4415 <link to="IConsole::deleteSnapshot" />
4416 or <link to="IConsole::restoreSnapshot" />, depending on which
4417 was called last. See <link to="ISnapshot"/> for details.
4418 </desc>
4419 </attribute>
4420
4421 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
4422 <desc>
4423 Number of snapshots taken on this machine. Zero means the
4424 machine doesn't have any snapshots.
4425 </desc>
4426 </attribute>
4427
4428 <attribute name="currentStateModified" type="boolean" readonly="yes">
4429 <desc>
4430 Returns @c true if the current state of the machine is not
4431 identical to the state stored in the current snapshot.
4432
4433 The current state is identical to the current snapshot only
4434 directly after one of the following calls are made:
4435
4436 <ul>
4437 <li><link to="IConsole::restoreSnapshot"/>
4438 </li>
4439 <li><link to="IConsole::takeSnapshot"/> (issued on a
4440 "powered off" or "saved" machine, for which
4441 <link to="#settingsModified"/> returns @c false)
4442 </li>
4443 </ul>
4444
4445 The current state remains identical until one of the following
4446 happens:
4447 <ul>
4448 <li>settings of the machine are changed</li>
4449 <li>the saved state is deleted</li>
4450 <li>the current snapshot is deleted</li>
4451 <li>an attempt to execute the machine is made</li>
4452 </ul>
4453
4454 <note>
4455 For machines that don't have snapshots, this property is
4456 always @c false.
4457 </note>
4458 </desc>
4459 </attribute>
4460
4461 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
4462 <desc>
4463 Collection of shared folders for this machine (permanent shared
4464 folders). These folders are shared automatically at machine startup
4465 and available only to the guest OS installed within this machine.
4466
4467 New shared folders are added to the collection using
4468 <link to="#createSharedFolder"/>. Existing shared folders can be
4469 removed using <link to="#removeSharedFolder"/>.
4470 </desc>
4471 </attribute>
4472
4473 <attribute name="clipboardMode" type="ClipboardMode">
4474 <desc>
4475 Synchronization mode between the host OS clipboard
4476 and the guest OS clipboard.
4477 </desc>
4478 </attribute>
4479
4480 <attribute name="dragAndDropMode" type="DragAndDropMode">
4481 <desc>
4482 Which mode is allowed for drag'n'drop.
4483 </desc>
4484 </attribute>
4485
4486 <attribute name="guestPropertyNotificationPatterns" type="wstring">
4487 <desc>
4488 A comma-separated list of simple glob patterns. Changes to guest
4489 properties whose name matches one of the patterns will generate an
4490 <link to="IGuestPropertyChangedEvent"/> signal.
4491 </desc>
4492 </attribute>
4493
4494 <attribute name="teleporterEnabled" type="boolean">
4495 <desc>
4496 When set to @a true, the virtual machine becomes a target teleporter
4497 the next time it is powered on. This can only set to @a true when the
4498 VM is in the @a PoweredOff or @a Aborted state.
4499
4500 <!-- This property is automatically set to @a false when the VM is powered
4501 on. (bird: This doesn't work yet ) -->
4502 </desc>
4503 </attribute>
4504
4505 <attribute name="teleporterPort" type="unsigned long">
4506 <desc>
4507 The TCP port the target teleporter will listen for incoming
4508 teleportations on.
4509
4510 0 means the port is automatically selected upon power on. The actual
4511 value can be read from this property while the machine is waiting for
4512 incoming teleportations.
4513 </desc>
4514 </attribute>
4515
4516 <attribute name="teleporterAddress" type="wstring">
4517 <desc>
4518 The address the target teleporter will listen on. If set to an empty
4519 string, it will listen on all addresses.
4520 </desc>
4521 </attribute>
4522
4523 <attribute name="teleporterPassword" type="wstring">
4524 <desc>
4525 The password to check for on the target teleporter. This is just a
4526 very basic measure to prevent simple hacks and operators accidentally
4527 beaming a virtual machine to the wrong place.
4528
4529 Note that you SET a plain text password while reading back a HASHED
4530 password. Setting a hashed password is currently not supported.
4531 </desc>
4532 </attribute>
4533
4534 <attribute name="faultToleranceState" type="FaultToleranceState">
4535 <desc>
4536 Fault tolerance state; disabled, source or target.
4537 This property can be changed at any time. If you change it for a running
4538 VM, then the fault tolerance address and port must be set beforehand.
4539 </desc>
4540 </attribute>
4541
4542 <attribute name="faultTolerancePort" type="unsigned long">
4543 <desc>
4544 The TCP port the fault tolerance source or target will use for
4545 communication.
4546 </desc>
4547 </attribute>
4548
4549 <attribute name="faultToleranceAddress" type="wstring">
4550 <desc>
4551 The address the fault tolerance source or target.
4552 </desc>
4553 </attribute>
4554
4555 <attribute name="faultTolerancePassword" type="wstring">
4556 <desc>
4557 The password to check for on the standby VM. This is just a
4558 very basic measure to prevent simple hacks and operators accidentally
4559 choosing the wrong standby VM.
4560 </desc>
4561 </attribute>
4562
4563 <attribute name="faultToleranceSyncInterval" type="unsigned long">
4564 <desc>
4565 The interval in ms used for syncing the state between source and target.
4566 </desc>
4567 </attribute>
4568
4569 <attribute name="RTCUseUTC" type="boolean">
4570 <desc>
4571 When set to @a true, the RTC device of the virtual machine will run
4572 in UTC time, otherwise in local time. Especially Unix guests prefer
4573 the time in UTC.
4574 </desc>
4575 </attribute>
4576
4577 <attribute name="IOCacheEnabled" type="boolean">
4578 <desc>
4579 When set to @a true, the builtin I/O cache of the virtual machine
4580 will be enabled.
4581 </desc>
4582 </attribute>
4583
4584 <attribute name="IOCacheSize" type="unsigned long">
4585 <desc>
4586 Maximum size of the I/O cache in MB.
4587 </desc>
4588 </attribute>
4589
4590 <attribute name="PCIDeviceAssignments" type="IPCIDeviceAttachment" readonly="yes" safearray="yes">
4591 <desc>Array of PCI devices assigned to this machine, to get list of all
4592 PCI devices attached to the machine use
4593 <link to="IConsole::attachedPCIDevices"/> attribute, as this attribute
4594 is intended to list only devices additional to what described in
4595 virtual hardware config. Usually, this list keeps host's physical
4596 devices assigned to the particular machine.
4597 </desc>
4598 </attribute>
4599
4600 <attribute name="bandwidthControl" type="IBandwidthControl" readonly="yes">
4601 <desc>
4602 Bandwidth control manager.
4603 </desc>
4604 </attribute>
4605
4606 <attribute name="tracingEnabled" type="boolean">
4607 <desc>
4608 Enables the tracing facility in the VMM (including PDM devices +
4609 drivers). The VMM will consume about 0.5MB of more memory when
4610 enabled and there may be some extra overhead from tracepoints that are
4611 always enabled.
4612 </desc>
4613 </attribute>
4614
4615 <attribute name="tracingConfig" type="wstring">
4616 <desc>
4617 Tracepoint configuration to apply at startup when
4618 <link to="IMachine::tracingEnabled" /> is true. The string specifies
4619 a space separated of tracepoint group names to enable. The special
4620 group 'all' enables all tracepoints. Check DBGFR3TracingConfig for
4621 more details on available tracepoint groups and such.
4622
4623 Note that on hosts supporting DTrace (or similar), a lot of the
4624 tracepoints may be implemented exclusivly as DTrace probes. So, the
4625 effect of the same config may differ between Solaris and Windows for
4626 example.
4627 </desc>
4628 </attribute>
4629
4630 <attribute name="allowTracingToAccessVM" type="boolean">
4631 <desc>
4632 Enables tracepoints in PDM devices and drivers to use the VMCPU or VM
4633 structures when firing off trace points. This is especially useful
4634 with DTrace tracepoints, as it allows you to use the VMCPU or VM
4635 pointer to obtain useful information such as guest register state.
4636
4637 This is disabled by default because devices and drivers normally has no
4638 business accessing the VMCPU or VM structures, and are therefore unable
4639 to get any pointers to these.
4640 </desc>
4641 </attribute>
4642
4643 <attribute name="autostartEnabled" type="boolean">
4644 <desc>
4645 Enables autostart of the VM during system boot.
4646 </desc>
4647 </attribute>
4648
4649 <attribute name="autostartDelay" type="unsigned long">
4650 <desc>
4651 Number of seconds to wait until the VM should be started during system boot.
4652 </desc>
4653 </attribute>
4654
4655 <attribute name="autostopType" type="AutostopType">
4656 <desc>
4657 Action type to do when the system is shutting down.
4658 </desc>
4659 </attribute>
4660
4661 <attribute name="defaultFrontend" type="wstring">
4662 <desc>
4663 Selects which VM frontend should be used by default when launching
4664 this VM through the <link to="IMachine::launchVMProcess" /> method.
4665 Empty or @c null strings do not define a particular default, it is up
4666 to <link to="IMachine::launchVMProcess" /> to select one. See the
4667 description of <link to="IMachine::launchVMProcess" /> for the valid
4668 frontend types.
4669
4670 This per-VM setting overrides the default defined by
4671 <link to="ISystemProperties::defaultFrontend" /> attribute, and is
4672 overridden by a frontend type passed to
4673 <link to="IMachine::launchVMProcess" />.
4674 </desc>
4675 </attribute>
4676
4677 <method name="lockMachine">
4678 <desc>
4679 Locks the machine for the given session to enable the caller
4680 to make changes to the machine or start the VM or control
4681 VM execution.
4682
4683 There are two ways to lock a machine for such uses:
4684
4685 <ul>
4686 <li>If you want to make changes to the machine settings,
4687 you must obtain an exclusive write lock on the machine
4688 by setting @a lockType to @c Write.
4689
4690 This will only succeed if no other process has locked
4691 the machine to prevent conflicting changes. Only after
4692 an exclusive write lock has been obtained using this method, one
4693 can change all VM settings or execute the VM in the process
4694 space of the session object. (Note that the latter is only of
4695 interest if you actually want to write a new front-end for
4696 virtual machines; but this API gets called internally by
4697 the existing front-ends such as VBoxHeadless and the VirtualBox
4698 GUI to acquire a write lock on the machine that they are running.)
4699
4700 On success, write-locking the machine for a session creates
4701 a second copy of the IMachine object. It is this second object
4702 upon which changes can be made; in VirtualBox terminology, the
4703 second copy is "mutable". It is only this second, mutable machine
4704 object upon which you can call methods that change the
4705 machine state. After having called this method, you can
4706 obtain this second, mutable machine object using the
4707 <link to="ISession::machine" /> attribute.
4708 </li>
4709 <li>If you only want to check the machine state or control
4710 machine execution without actually changing machine
4711 settings (e.g. to get access to VM statistics or take
4712 a snapshot or save the machine state), then set the
4713 @a lockType argument to @c Shared.
4714
4715 If no other session has obtained a lock, you will obtain an
4716 exclusive write lock as described above. However, if another
4717 session has already obtained such a lock, then a link to that
4718 existing session will be established which allows you
4719 to control that existing session.
4720
4721 To find out which type of lock was obtained, you can
4722 inspect <link to="ISession::type" />, which will have been
4723 set to either @c WriteLock or @c Shared.
4724 </li>
4725 </ul>
4726
4727 In either case, you can get access to the <link to="IConsole" />
4728 object which controls VM execution.
4729
4730 Also in all of the above cases, one must always call
4731 <link to="ISession::unlockMachine" /> to release the lock on the machine, or
4732 the machine's state will eventually be set to "Aborted".
4733
4734 To change settings on a machine, the following sequence is typically
4735 performed:
4736
4737 <ol>
4738 <li>Call this method to obtain an exclusive write lock for the current session.</li>
4739
4740 <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
4741
4742 <li>Change the settings of the machine by invoking IMachine methods.</li>
4743
4744 <li>Call <link to="IMachine::saveSettings" />.</li>
4745
4746 <li>Release the write lock by calling <link to="ISession::unlockMachine"/>.</li>
4747 </ol>
4748
4749 <result name="E_UNEXPECTED">
4750 Virtual machine not registered.
4751 </result>
4752 <result name="E_ACCESSDENIED">
4753 Process not started by OpenRemoteSession.
4754 </result>
4755 <result name="VBOX_E_INVALID_OBJECT_STATE">
4756 Session already open or being opened.
4757 </result>
4758 <result name="VBOX_E_VM_ERROR">
4759 Failed to assign machine to session.
4760 </result>
4761 </desc>
4762 <param name="session" type="ISession" dir="in">
4763 <desc>
4764 Session object for which the machine will be locked.
4765 </desc>
4766 </param>
4767 <param name="lockType" type="LockType" dir="in">
4768 <desc>
4769 If set to @c Write, then attempt to acquire an exclusive write lock or fail.
4770 If set to @c Shared, then either acquire an exclusive write lock or establish
4771 a link to an existing session.
4772 </desc>
4773 </param>
4774 </method>
4775
4776 <method name="launchVMProcess">
4777 <desc>
4778 Spawns a new process that will execute the virtual machine and obtains a shared
4779 lock on the machine for the calling session.
4780
4781 If launching the VM succeeds, the new VM process will create its own session
4782 and write-lock the machine for it, preventing conflicting changes from other
4783 processes. If the machine is already locked (because it is already running or
4784 because another session has a write lock), launching the VM process will therefore
4785 fail. Reversely, future attempts to obtain a write lock will also fail while the
4786 machine is running.
4787
4788 The caller's session object remains separate from the session opened by the new
4789 VM process. It receives its own <link to="IConsole" /> object which can be used
4790 to control machine execution, but it cannot be used to change all VM settings
4791 which would be available after a <link to="#lockMachine" /> call.
4792
4793 The caller must eventually release the session's shared lock by calling
4794 <link to="ISession::unlockMachine" /> on the local session object once this call
4795 has returned. However, the session's state (see <link to="ISession::state" />)
4796 will not return to "Unlocked" until the remote session has also unlocked
4797 the machine (i.e. the machine has stopped running).
4798
4799 Launching a VM process can take some time (a new VM is started in a new process,
4800 for which memory and other resources need to be set up). Because of this,
4801 an <link to="IProgress" /> object is returned to allow the caller to wait
4802 for this asynchronous operation to be completed. Until then, the caller's
4803 session object remains in the "Unlocked" state, and its <link to="ISession::machine" />
4804 and <link to="ISession::console" /> attributes cannot be accessed.
4805 It is recommended to use <link to="IProgress::waitForCompletion" /> or
4806 similar calls to wait for completion. Completion is signalled when the VM
4807 is powered on. If launching the VM fails, error messages can be queried
4808 via the progress object, if available.
4809
4810 The progress object will have at least 2 sub-operations. The first
4811 operation covers the period up to the new VM process calls powerUp.
4812 The subsequent operations mirror the <link to="IConsole::powerUp"/>
4813 progress object. Because <link to="IConsole::powerUp"/> may require
4814 some extra sub-operations, the <link to="IProgress::operationCount"/>
4815 may change at the completion of operation.
4816
4817 For details on the teleportation progress operation, see
4818 <link to="IConsole::powerUp"/>.
4819
4820 The @a environment argument is a string containing definitions of
4821 environment variables in the following format:
4822 <pre>
4823 NAME[=VALUE]\n
4824 NAME[=VALUE]\n
4825 ...
4826 </pre>
4827 where <tt>\\n</tt> is the new line character. These environment
4828 variables will be appended to the environment of the VirtualBox server
4829 process. If an environment variable exists both in the server process
4830 and in this list, the value from this list takes precedence over the
4831 server's variable. If the value of the environment variable is
4832 omitted, this variable will be removed from the resulting environment.
4833 If the environment string is @c null or empty, the server environment
4834 is inherited by the started process as is.
4835
4836 <result name="E_UNEXPECTED">
4837 Virtual machine not registered.
4838 </result>
4839 <result name="E_INVALIDARG">
4840 Invalid session type @a type.
4841 </result>
4842 <result name="VBOX_E_OBJECT_NOT_FOUND">
4843 No machine matching @a machineId found.
4844 </result>
4845 <result name="VBOX_E_INVALID_OBJECT_STATE">
4846 Session already open or being opened.
4847 </result>
4848 <result name="VBOX_E_IPRT_ERROR">
4849 Launching process for machine failed.
4850 </result>
4851 <result name="VBOX_E_VM_ERROR">
4852 Failed to assign machine to session.
4853 </result>
4854 </desc>
4855 <param name="session" type="ISession" dir="in">
4856 <desc>
4857 Client session object to which the VM process will be connected (this
4858 must be in "Unlocked" state).
4859 </desc>
4860 </param>
4861 <param name="type" type="wstring" dir="in">
4862 <desc>
4863 Front-end to use for the new VM process. The following are currently supported:
4864 <ul>
4865 <li><tt>"gui"</tt>: VirtualBox Qt GUI front-end</li>
4866 <li><tt>"headless"</tt>: VBoxHeadless (VRDE Server) front-end</li>
4867 <li><tt>"sdl"</tt>: VirtualBox SDL front-end</li>
4868 <li><tt>"emergencystop"</tt>: reserved value, used for aborting
4869 the currently running VM or session owner. In this case the
4870 @a session parameter may be @c null (if it is non-null it isn't
4871 used in any way), and the @a progress return value will be always
4872 @c null. The operation completes immediately.</li>
4873 <li><tt>""</tt>: use the per-VM default frontend if set, otherwise
4874 the global default defined in the system properties. If neither
4875 are set, the API will launch a <tt>"gui"</tt> session, which may
4876 fail if there is no windowing environment available. See
4877 <link to="IMachine::defaultFrontend"/> and
4878 <link to="ISystemProperties::defaultFrontend"/>.</li>
4879 </ul>
4880 </desc>
4881 </param>
4882 <param name="environment" type="wstring" dir="in">
4883 <desc>
4884 Environment to pass to the VM process.
4885 </desc>
4886 </param>
4887 <param name="progress" type="IProgress" dir="return">
4888 <desc>Progress object to track the operation completion.</desc>
4889 </param>
4890 </method>
4891
4892 <method name="setBootOrder">
4893 <desc>
4894 Puts the given device to the specified position in
4895 the boot order.
4896
4897 To indicate that no device is associated with the given position,
4898 <link to="DeviceType_Null"/> should be used.
4899
4900 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4901
4902 <result name="E_INVALIDARG">
4903 Boot @a position out of range.
4904 </result>
4905 <result name="E_NOTIMPL">
4906 Booting from USB @a device currently not supported.
4907 </result>
4908
4909 </desc>
4910 <param name="position" type="unsigned long" dir="in">
4911 <desc>
4912 Position in the boot order (@c 1 to the total number of
4913 devices the machine can boot from, as returned by
4914 <link to="ISystemProperties::maxBootPosition"/>).
4915 </desc>
4916 </param>
4917 <param name="device" type="DeviceType" dir="in">
4918 <desc>
4919 The type of the device used to boot at the given position.
4920 </desc>
4921 </param>
4922 </method>
4923
4924 <method name="getBootOrder" const="yes">
4925 <desc>
4926 Returns the device type that occupies the specified
4927 position in the boot order.
4928
4929 @todo [remove?]
4930 If the machine can have more than one device of the returned type
4931 (such as hard disks), then a separate method should be used to
4932 retrieve the individual device that occupies the given position.
4933
4934 If here are no devices at the given position, then
4935 <link to="DeviceType_Null"/> is returned.
4936
4937 @todo getHardDiskBootOrder(), getNetworkBootOrder()
4938
4939 <result name="E_INVALIDARG">
4940 Boot @a position out of range.
4941 </result>
4942
4943 </desc>
4944 <param name="position" type="unsigned long" dir="in">
4945 <desc>
4946 Position in the boot order (@c 1 to the total number of
4947 devices the machine can boot from, as returned by
4948 <link to="ISystemProperties::maxBootPosition"/>).
4949 </desc>
4950 </param>
4951 <param name="device" type="DeviceType" dir="return">
4952 <desc>
4953 Device at the given position.
4954 </desc>
4955 </param>
4956 </method>
4957
4958 <method name="attachDevice">
4959 <desc>
4960 Attaches a device and optionally mounts a medium to the given storage
4961 controller (<link to="IStorageController" />, identified by @a name),
4962 at the indicated port and device.
4963
4964 This method is intended for managing storage devices in general while a
4965 machine is powered off. It can be used to attach and detach fixed
4966 and removable media. The following kind of media can be attached
4967 to a machine:
4968
4969 <ul>
4970 <li>For fixed and removable media, you can pass in a medium that was
4971 previously opened using <link to="IVirtualBox::openMedium" />.
4972 </li>
4973
4974 <li>Only for storage devices supporting removable media (such as
4975 DVDs and floppies), you can also specify a null pointer to
4976 indicate an empty drive or one of the medium objects listed
4977 in the <link to="IHost::DVDDrives" /> and <link to="IHost::floppyDrives"/>
4978 arrays to indicate a host drive.
4979 For removable devices, you can also use <link to="IMachine::mountMedium"/>
4980 to change the media while the machine is running.
4981 </li>
4982 </ul>
4983
4984 In a VM's default configuration of virtual machines, the secondary
4985 master of the IDE controller is used for a CD/DVD drive.
4986
4987 After calling this returns successfully, a new instance of
4988 <link to="IMediumAttachment"/> will appear in the machine's list of medium
4989 attachments (see <link to="IMachine::mediumAttachments"/>).
4990
4991 See <link to="IMedium"/> and <link to="IMediumAttachment"/> for more
4992 information about attaching media.
4993
4994 The specified device slot must not have a device attached to it,
4995 or this method will fail.
4996
4997 <note>
4998 You cannot attach a device to a newly created machine until
4999 this machine's settings are saved to disk using
5000 <link to="#saveSettings"/>.
5001 </note>
5002 <note>
5003 If the medium is being attached indirectly, a new differencing medium
5004 will implicitly be created for it and attached instead. If the
5005 changes made to the machine settings (including this indirect
5006 attachment) are later cancelled using <link to="#discardSettings"/>,
5007 this implicitly created differencing medium will implicitly
5008 be deleted.
5009 </note>
5010
5011 <result name="E_INVALIDARG">
5012 SATA device, SATA port, IDE port or IDE slot out of range, or
5013 file or UUID not found.
5014 </result>
5015 <result name="VBOX_E_INVALID_OBJECT_STATE">
5016 Machine must be registered before media can be attached.
5017 </result>
5018 <result name="VBOX_E_INVALID_VM_STATE">
5019 Invalid machine state.
5020 </result>
5021 <result name="VBOX_E_OBJECT_IN_USE">
5022 A medium is already attached to this or another virtual machine.
5023 </result>
5024
5025 </desc>
5026 <param name="name" type="wstring" dir="in">
5027 <desc>Name of the storage controller to attach the device to.</desc>
5028 </param>
5029 <param name="controllerPort" type="long" dir="in">
5030 <desc>Port to attach the device to. For an IDE controller, 0 specifies
5031 the primary controller and 1 specifies the secondary controller.
5032 For a SCSI controller, this must range from 0 to 15; for a SATA controller,
5033 from 0 to 29; for an SAS controller, from 0 to 7.</desc>
5034 </param>
5035 <param name="device" type="long" dir="in">
5036 <desc>Device slot in the given port to attach the device to. This is only
5037 relevant for IDE controllers, for which 0 specifies the master device and
5038 1 specifies the slave device. For all other controller types, this must
5039 be 0.</desc>
5040 </param>
5041 <param name="type" type="DeviceType" dir="in">
5042 <desc>Device type of the attached device. For media opened by
5043 <link to="IVirtualBox::openMedium" />, this must match the device type
5044 specified there.</desc>
5045 </param>
5046 <param name="medium" type="IMedium" dir="in">
5047 <desc>Medium to mount or @c null for an empty drive.</desc>
5048 </param>
5049 </method>
5050
5051 <method name="attachDeviceWithoutMedium">
5052 <desc>
5053 Attaches a device and optionally mounts a medium to the given storage
5054 controller (<link to="IStorageController" />, identified by @a name),
5055 at the indicated port and device.
5056
5057 This method is intended for managing storage devices in general while a
5058 machine is powered off. It can be used to attach and detach fixed
5059 and removable media. The following kind of media can be attached
5060 to a machine:
5061 <ul>
5062 <li>
5063 For fixed and removable media, you can pass in a medium that was
5064 previously opened using <link to="IVirtualBox::openMedium" />.
5065 </li>
5066
5067 <li>Only for storage devices supporting removable media (such as
5068 DVDs and floppies) with an empty drive or one of the medium objects listed
5069 in the <link to="IHost::DVDDrives" /> and <link to="IHost::floppyDrives"/>
5070 arrays to indicate a host drive.
5071 For removable devices, you can also use <link to="IMachine::mountMedium"/>
5072 to change the media while the machine is running.
5073 </li>
5074 </ul>
5075
5076 In a VM's default configuration of virtual machines, the secondary
5077 master of the IDE controller is used for a CD/DVD drive.
5078 <link to="IMediumAttachment"/> will appear in the machine's list of medium
5079 attachments (see <link to="IMachine::mediumAttachments"/>).
5080
5081 See <link to="IMedium"/> and <link to="IMediumAttachment"/> for more
5082 information about attaching media.
5083
5084 The specified device slot must not have a device attached to it,
5085 or this method will fail.
5086 <note>
5087 You cannot attach a device to a newly created machine until
5088 this machine's settings are saved to disk using
5089 <link to="#saveSettings"/>.
5090 </note>
5091 <note>
5092 If the medium is being attached indirectly, a new differencing medium
5093 will implicitly be created for it and attached instead. If the
5094 changes made to the machine settings (including this indirect
5095 attachment) are later cancelled using <link to="#discardSettings"/>,
5096 this implicitly created differencing medium will implicitly
5097 be deleted.
5098 </note>
5099
5100 <result name="E_INVALIDARG">
5101 SATA device, SATA port, IDE port or IDE slot out of range, or
5102 file or UUID not found.
5103 </result>
5104 <result name="VBOX_E_INVALID_OBJECT_STATE">
5105 Machine must be registered before media can be attached.
5106 </result>
5107 <result name="VBOX_E_INVALID_VM_STATE">
5108 Invalid machine state.
5109 </result>
5110 <result name="VBOX_E_OBJECT_IN_USE">
5111 A medium is already attached to this or another virtual machine.
5112 </result>
5113 </desc>
5114 <param name="name" type="wstring" dir="in">
5115 <desc>Name of the storage controller to attach the device to.</desc>
5116 </param>
5117 <param name="controllerPort" type="long" dir="in">
5118 <desc>Port to attach the device to. For an IDE controller, 0 specifies
5119 the primary controller and 1 specifies the secondary controller.
5120 For a SCSI controller, this must range from 0 to 15; for a SATA controller,
5121 from 0 to 29; for an SAS controller, from 0 to 7.</desc>
5122 </param>
5123 <param name="device" type="long" dir="in">
5124 <desc>Device slot in the given port to attach the device to. This is only
5125 relevant for IDE controllers, for which 0 specifies the master device and
5126 1 specifies the slave device. For all other controller types, this must
5127 be 0.</desc>
5128 </param>
5129 <param name="type" type="DeviceType" dir="in">
5130 <desc>Device type of the attached device. For media opened by
5131 <link to="IVirtualBox::openMedium" />, this must match the device type
5132 specified there.</desc>
5133 </param>
5134 </method>
5135
5136 <method name="detachDevice">
5137 <desc>
5138 Detaches the device attached to a device slot of the specified bus.
5139
5140 Detaching the device from the virtual machine is deferred. This means
5141 that the medium remains associated with the machine when this method
5142 returns and gets actually de-associated only after a successful
5143 <link to="#saveSettings"/> call. See <link to="IMedium"/>
5144 for more detailed information about attaching media.
5145
5146 <note>
5147 You cannot detach a device from a running machine.
5148 </note>
5149 <note>
5150 Detaching differencing media implicitly created by <link
5151 to="#attachDevice"/> for the indirect attachment using this
5152 method will <b>not</b> implicitly delete them. The
5153 <link to="IMedium::deleteStorage"/> operation should be
5154 explicitly performed by the caller after the medium is successfully
5155 detached and the settings are saved with
5156 <link to="#saveSettings"/>, if it is the desired action.
5157 </note>
5158
5159 <result name="VBOX_E_INVALID_VM_STATE">
5160 Attempt to detach medium from a running virtual machine.
5161 </result>
5162 <result name="VBOX_E_OBJECT_NOT_FOUND">
5163 No medium attached to given slot/bus.
5164 </result>
5165 <result name="VBOX_E_NOT_SUPPORTED">
5166 Medium format does not support storage deletion (only for implicitly
5167 created differencing media, should not happen).
5168 </result>
5169
5170 </desc>
5171 <param name="name" type="wstring" dir="in">
5172 <desc>Name of the storage controller to detach the medium from.</desc>
5173 </param>
5174 <param name="controllerPort" type="long" dir="in">
5175 <desc>Port number to detach the medium from.</desc>
5176 </param>
5177 <param name="device" type="long" dir="in">
5178 <desc>Device slot number to detach the medium from.</desc>
5179 </param>
5180 </method>
5181
5182 <method name="passthroughDevice">
5183 <desc>
5184 Sets the passthrough mode of an existing DVD device. Changing the
5185 setting while the VM is running is forbidden. The setting is only used
5186 if at VM start the device is configured as a host DVD drive, in all
5187 other cases it is ignored. The device must already exist; see
5188 <link to="IMachine::attachDevice"/> for how to attach a new device.
5189
5190 The @a controllerPort and @a device parameters specify the device slot and
5191 have have the same meaning as with <link to="IMachine::attachDevice" />.
5192
5193 <result name="E_INVALIDARG">
5194 SATA device, SATA port, IDE port or IDE slot out of range.
5195 </result>
5196 <result name="VBOX_E_INVALID_OBJECT_STATE">
5197 Attempt to modify an unregistered virtual machine.
5198 </result>
5199 <result name="VBOX_E_INVALID_VM_STATE">
5200 Invalid machine state.
5201 </result>
5202
5203 </desc>
5204 <param name="name" type="wstring" dir="in">
5205 <desc>Name of the storage controller.</desc>
5206 </param>
5207 <param name="controllerPort" type="long" dir="in">
5208 <desc>Storage controller port.</desc>
5209 </param>
5210 <param name="device" type="long" dir="in">
5211 <desc>Device slot in the given port.</desc>
5212 </param>
5213 <param name="passthrough" type="boolean" dir="in">
5214 <desc>New value for the passthrough setting.</desc>
5215 </param>
5216 </method>
5217
5218 <method name="temporaryEjectDevice">
5219 <desc>
5220 Sets the behavior for guest-triggered medium eject. In some situations
5221 it is desirable that such ejects update the VM configuration, and in
5222 others the eject should keep the VM configuration. The device must
5223 already exist; see <link to="IMachine::attachDevice"/> for how to
5224 attach a new device.
5225
5226 The @a controllerPort and @a device parameters specify the device slot and
5227 have have the same meaning as with <link to="IMachine::attachDevice" />.
5228
5229 <result name="E_INVALIDARG">
5230 SATA device, SATA port, IDE port or IDE slot out of range.
5231 </result>
5232 <result name="VBOX_E_INVALID_OBJECT_STATE">
5233 Attempt to modify an unregistered virtual machine.
5234 </result>
5235 <result name="VBOX_E_INVALID_VM_STATE">
5236 Invalid machine state.
5237 </result>
5238
5239 </desc>
5240 <param name="name" type="wstring" dir="in">
5241 <desc>Name of the storage controller.</desc>
5242 </param>
5243 <param name="controllerPort" type="long" dir="in">
5244 <desc>Storage controller port.</desc>
5245 </param>
5246 <param name="device" type="long" dir="in">
5247 <desc>Device slot in the given port.</desc>
5248 </param>
5249 <param name="temporaryEject" type="boolean" dir="in">
5250 <desc>New value for the eject behavior.</desc>
5251 </param>
5252 </method>
5253
5254 <method name="nonRotationalDevice">
5255 <desc>
5256 Sets a flag in the device information which indicates that the medium
5257 is not based on rotational technology, i.e. that the access times are
5258 more or less independent of the position on the medium. This may or may
5259 not be supported by a particular drive, and is silently ignored in the
5260 latter case. At the moment only hard disks (which is a misnomer in this
5261 context) accept this setting. Changing the setting while the VM is
5262 running is forbidden. The device must already exist; see
5263 <link to="IMachine::attachDevice"/> for how to attach a new device.
5264
5265 The @a controllerPort and @a device parameters specify the device slot and
5266 have have the same meaning as with <link to="IMachine::attachDevice" />.
5267
5268 <result name="E_INVALIDARG">
5269 SATA device, SATA port, IDE port or IDE slot out of range.
5270 </result>
5271 <result name="VBOX_E_INVALID_OBJECT_STATE">
5272 Attempt to modify an unregistered virtual machine.
5273 </result>
5274 <result name="VBOX_E_INVALID_VM_STATE">
5275 Invalid machine state.
5276 </result>
5277
5278 </desc>
5279 <param name="name" type="wstring" dir="in">
5280 <desc>Name of the storage controller.</desc>
5281 </param>
5282 <param name="controllerPort" type="long" dir="in">
5283 <desc>Storage controller port.</desc>
5284 </param>
5285 <param name="device" type="long" dir="in">
5286 <desc>Device slot in the given port.</desc>
5287 </param>
5288 <param name="nonRotational" type="boolean" dir="in">
5289 <desc>New value for the non-rotational device flag.</desc>
5290 </param>
5291 </method>
5292
5293 <method name="setAutoDiscardForDevice">
5294 <desc>
5295 Sets a flag in the device information which indicates that the medium
5296 supports discarding unsused blocks (called trimming for SATA or unmap
5297 for SCSI devices) .This may or may not be supported by a particular drive,
5298 and is silently ignored in the latter case. At the moment only hard disks
5299 (which is a misnomer in this context) accept this setting. Changing the
5300 setting while the VM is running is forbidden. The device must already
5301 exist; see <link to="IMachine::attachDevice"/> for how to attach a new
5302 device.
5303
5304 The @a controllerPort and @a device parameters specify the device slot and
5305 have have the same meaning as with <link to="IMachine::attachDevice" />.
5306
5307 <result name="E_INVALIDARG">
5308 SATA device, SATA port, SCSI port out of range.
5309 </result>
5310 <result name="VBOX_E_INVALID_OBJECT_STATE">
5311 Attempt to modify an unregistered virtual machine.
5312 </result>
5313 <result name="VBOX_E_INVALID_VM_STATE">
5314 Invalid machine state.
5315 </result>
5316
5317 </desc>
5318 <param name="name" type="wstring" dir="in">
5319 <desc>Name of the storage controller.</desc>
5320 </param>
5321 <param name="controllerPort" type="long" dir="in">
5322 <desc>Storage controller port.</desc>
5323 </param>
5324 <param name="device" type="long" dir="in">
5325 <desc>Device slot in the given port.</desc>
5326 </param>
5327 <param name="discard" type="boolean" dir="in">
5328 <desc>New value for the discard device flag.</desc>
5329 </param>
5330 </method>
5331
5332 <method name="setBandwidthGroupForDevice">
5333 <desc>
5334 Sets the bandwidth group of an existing storage device.
5335 The device must already exist; see <link to="IMachine::attachDevice"/>
5336 for how to attach a new device.
5337
5338 The @a controllerPort and @a device parameters specify the device slot and
5339 have have the same meaning as with <link to="IMachine::attachDevice" />.
5340
5341 <result name="E_INVALIDARG">
5342 SATA device, SATA port, IDE port or IDE slot out of range.
5343 </result>
5344 <result name="VBOX_E_INVALID_OBJECT_STATE">
5345 Attempt to modify an unregistered virtual machine.
5346 </result>
5347 <result name="VBOX_E_INVALID_VM_STATE">
5348 Invalid machine state.
5349 </result>
5350
5351 </desc>
5352 <param name="name" type="wstring" dir="in">
5353 <desc>Name of the storage controller.</desc>
5354 </param>
5355 <param name="controllerPort" type="long" dir="in">
5356 <desc>Storage controller port.</desc>
5357 </param>
5358 <param name="device" type="long" dir="in">
5359 <desc>Device slot in the given port.</desc>
5360 </param>
5361 <param name="bandwidthGroup" type="IBandwidthGroup" dir="in">
5362 <desc>New value for the bandwidth group or @c null for no group.</desc>
5363 </param>
5364 </method>
5365
5366 <method name="setNoBandwidthGroupForDevice">
5367 <desc>
5368 Sets no bandwidth group for an existing storage device.
5369 The device must already exist; see <link to="IMachine::attachDevice"/>
5370 for how to attach a new device.
5371 The @a controllerPort and @a device parameters specify the device slot and
5372 have have the same meaning as with <link to="IMachine::attachDevice" />.
5373 <result name="E_INVALIDARG">
5374 SATA device, SATA port, IDE port or IDE slot out of range.
5375 </result>
5376 <result name="VBOX_E_INVALID_OBJECT_STATE">
5377 Attempt to modify an unregistered virtual machine.
5378 </result>
5379 <result name="VBOX_E_INVALID_VM_STATE">
5380 Invalid machine state.
5381 </result>
5382
5383 </desc>
5384 <param name="name" type="wstring" dir="in">
5385 <desc>Name of the storage controller.</desc>
5386 </param>
5387 <param name="controllerPort" type="long" dir="in">
5388 <desc>Storage controller port.</desc>
5389 </param>
5390 <param name="device" type="long" dir="in">
5391 <desc>Device slot in the given port.</desc>
5392 </param>
5393 </method>
5394
5395
5396 <method name="unmountMedium">
5397 <desc>
5398 Unmounts any currently mounted medium (<link to="IMedium" />,
5399 identified by the given UUID @a id) to the given storage controller
5400 (<link to="IStorageController" />, identified by @a name),
5401 at the indicated port and device. The device must already exist;
5402
5403 This method is intended only for managing removable media, where the
5404 device is fixed but media is changeable at runtime (such as DVDs
5405 and floppies). It cannot be used for fixed media such as hard disks.
5406
5407 The @a controllerPort and @a device parameters specify the device slot
5408 and have have the same meaning as with
5409 <link to="IMachine::attachDevice" />.
5410
5411 The specified device slot must have a medium mounted, which will be
5412 unmounted. If there is no mounted medium it will do nothing.
5413 See <link to="IMedium"/> for more detailed information about
5414 attaching/unmounting media.
5415
5416 <result name="E_INVALIDARG">
5417 SATA device, SATA port, IDE port or IDE slot out of range.
5418 </result>
5419 <result name="VBOX_E_INVALID_OBJECT_STATE">
5420 Attempt to unmount medium that is not removeable - not dvd or floppy.
5421 </result>
5422 <result name="VBOX_E_INVALID_VM_STATE">
5423 Invalid machine state.
5424 </result>
5425 <result name="VBOX_E_OBJECT_IN_USE">
5426 Medium already attached to this or another virtual machine.
5427 </result>
5428 <result name="VBOX_E_OBJECT_NOT_FOUND">
5429 Medium not attached to specified port, device, controller.
5430 </result>
5431
5432 </desc>
5433 <param name="name" type="wstring" dir="in">
5434 <desc>Name of the storage controller to unmount the medium from.</desc>
5435 </param>
5436 <param name="controllerPort" type="long" dir="in">
5437 <desc>Port to unmount the medium from.</desc>
5438 </param>
5439 <param name="device" type="long" dir="in">
5440 <desc>Device slot in the given port to unmount the medium from.</desc>
5441 </param>
5442 <param name="force" type="boolean" dir="in">
5443 <desc>Allows to force unmount of a medium which is locked by
5444 the device slot in the given port medium is attached to.</desc>
5445 </param>
5446 </method>
5447
5448 <method name="mountMedium">
5449 <desc>
5450 Mounts a medium (<link to="IMedium" />, identified
5451 by the given UUID @a id) to the given storage controller
5452 (<link to="IStorageController" />, identified by @a name),
5453 at the indicated port and device. The device must already exist;
5454 see <link to="IMachine::attachDevice"/> for how to attach a new device.
5455
5456 This method is intended only for managing removable media, where the
5457 device is fixed but media is changeable at runtime (such as DVDs
5458 and floppies). It cannot be used for fixed media such as hard disks.
5459
5460 The @a controllerPort and @a device parameters specify the device slot and
5461 have have the same meaning as with <link to="IMachine::attachDevice" />.
5462
5463 The specified device slot can have a medium mounted, which will be
5464 unmounted first. Specifying a zero UUID (or an empty string) for
5465 @a medium does just an unmount.
5466
5467 See <link to="IMedium"/> for more detailed information about
5468 attaching media.
5469
5470 <result name="E_INVALIDARG">
5471 SATA device, SATA port, IDE port or IDE slot out of range.
5472 </result>
5473 <result name="VBOX_E_INVALID_OBJECT_STATE">
5474 Attempt to attach medium to an unregistered virtual machine.
5475 </result>
5476 <result name="VBOX_E_INVALID_VM_STATE">
5477 Invalid machine state.
5478 </result>
5479 <result name="VBOX_E_OBJECT_IN_USE">
5480 Medium already attached to this or another virtual machine.
5481 </result>
5482
5483 </desc>
5484 <param name="name" type="wstring" dir="in">
5485 <desc>Name of the storage controller to attach the medium to.</desc>
5486 </param>
5487 <param name="controllerPort" type="long" dir="in">
5488 <desc>Port to attach the medium to.</desc>
5489 </param>
5490 <param name="device" type="long" dir="in">
5491 <desc>Device slot in the given port to attach the medium to.</desc>
5492 </param>
5493 <param name="medium" type="IMedium" dir="in">
5494 <desc>Medium to mount or @c null for an empty drive.</desc>
5495 </param>
5496 <param name="force" type="boolean" dir="in">
5497 <desc>Allows to force unmount/mount of a medium which is locked by
5498 the device slot in the given port to attach the medium to.</desc>
5499 </param>
5500 </method>
5501
5502 <method name="getMedium" const="yes">
5503 <desc>
5504 Returns the virtual medium attached to a device slot of the specified
5505 bus.
5506
5507 Note that if the medium was indirectly attached by
5508 <link to="#mountMedium"/> to the given device slot then this
5509 method will return not the same object as passed to the
5510 <link to="#mountMedium"/> call. See <link to="IMedium"/> for
5511 more detailed information about mounting a medium.
5512
5513 <result name="VBOX_E_OBJECT_NOT_FOUND">
5514 No medium attached to given slot/bus.
5515 </result>
5516
5517 </desc>
5518 <param name="name" type="wstring" dir="in">
5519 <desc>Name of the storage controller the medium is attached to.</desc>
5520 </param>
5521 <param name="controllerPort" type="long" dir="in">
5522 <desc>Port to query.</desc>
5523 </param>
5524 <param name="device" type="long" dir="in">
5525 <desc>Device slot in the given port to query.</desc>
5526 </param>
5527 <param name="medium" type="IMedium" dir="return">
5528 <desc>Attached medium object.</desc>
5529 </param>
5530 </method>
5531
5532 <method name="getMediumAttachmentsOfController" const="yes">
5533 <desc>
5534 Returns an array of medium attachments which are attached to the
5535 the controller with the given name.
5536
5537 <result name="VBOX_E_OBJECT_NOT_FOUND">
5538 A storage controller with given name doesn't exist.
5539 </result>
5540 </desc>
5541 <param name="name" type="wstring" dir="in"/>
5542 <param name="mediumAttachments" type="IMediumAttachment" safearray="yes" dir="return"/>
5543 </method>
5544
5545 <method name="getMediumAttachment" const="yes">
5546 <desc>
5547 Returns a medium attachment which corresponds to the controller with
5548 the given name, on the given port and device slot.
5549
5550 <result name="VBOX_E_OBJECT_NOT_FOUND">
5551 No attachment exists for the given controller/port/device combination.
5552 </result>
5553 </desc>
5554 <param name="name" type="wstring" dir="in"/>
5555 <param name="controllerPort" type="long" dir="in"/>
5556 <param name="device" type="long" dir="in"/>
5557 <param name="attachment" type="IMediumAttachment" dir="return"/>
5558 </method>
5559
5560 <method name="attachHostPCIDevice">
5561 <desc>
5562 Attaches host PCI device with the given (host) PCI address to the
5563 PCI bus of the virtual machine. Please note, that this operation
5564 is two phase, as real attachment will happen when VM will start,
5565 and most information will be delivered as IHostPCIDevicePlugEvent
5566 on IVirtualBox event source.
5567
5568 <see><link to="IHostPCIDevicePlugEvent"/></see>
5569
5570 <result name="VBOX_E_INVALID_VM_STATE">
5571 Virtual machine state is not stopped (PCI hotplug not yet implemented).
5572 </result>
5573 <result name="VBOX_E_PDM_ERROR">
5574 Virtual machine does not have a PCI controller allowing attachment of physical devices.
5575 </result>
5576 <result name="VBOX_E_NOT_SUPPORTED">
5577 Hardware or host OS doesn't allow PCI device passthrought.
5578 </result>
5579 </desc>
5580 <param name="hostAddress" type="long" dir="in">
5581 <desc>Address of the host PCI device.</desc>
5582 </param>
5583 <param name="desiredGuestAddress" type="long" dir="in">
5584 <desc>Desired position of this device on guest PCI bus.</desc>
5585 </param>
5586 <param name="tryToUnbind" type="boolean" dir="in">
5587 <desc>If VMM shall try to unbind existing drivers from the
5588 device before attaching it to the guest.</desc>
5589 </param>
5590 </method>
5591
5592 <method name="detachHostPCIDevice">
5593 <desc>
5594 Detach host PCI device from the virtual machine.
5595 Also HostPCIDevicePlugEvent on IVirtualBox event source
5596 will be delivered. As currently we don't support hot device
5597 unplug, IHostPCIDevicePlugEvent event is delivered immediately.
5598
5599 <see><link to="IHostPCIDevicePlugEvent"/></see>
5600
5601 <result name="VBOX_E_INVALID_VM_STATE">
5602 Virtual machine state is not stopped (PCI hotplug not yet implemented).
5603 </result>
5604 <result name="VBOX_E_OBJECT_NOT_FOUND">
5605 This host device is not attached to this machine.
5606 </result>
5607 <result name="VBOX_E_PDM_ERROR">
5608 Virtual machine does not have a PCI controller allowing attachment of physical devices.
5609 </result>
5610 <result name="VBOX_E_NOT_SUPPORTED">
5611 Hardware or host OS doesn't allow PCI device passthrought.
5612 </result>
5613 </desc>
5614 <param name="hostAddress" type="long" dir="in">
5615 <desc>Address of the host PCI device.</desc>
5616 </param>
5617 </method>
5618
5619 <method name="getNetworkAdapter" const="yes">
5620 <desc>
5621 Returns the network adapter associated with the given slot.
5622 Slots are numbered sequentially, starting with zero. The total
5623 number of adapters per machine is defined by the
5624 <link to="ISystemProperties::getMaxNetworkAdapters"/> property,
5625 so the maximum slot number is one less than that property's value.
5626
5627 <result name="E_INVALIDARG">
5628 Invalid @a slot number.
5629 </result>
5630
5631 </desc>
5632 <param name="slot" type="unsigned long" dir="in"/>
5633 <param name="adapter" type="INetworkAdapter" dir="return"/>
5634 </method>
5635
5636 <method name="addStorageController">
5637 <desc>
5638 Adds a new storage controller (SCSI, SAS or SATA controller) to the
5639 machine and returns it as an instance of
5640 <link to="IStorageController" />.
5641
5642 @a name identifies the controller for subsequent calls such as
5643 <link to="#getStorageControllerByName" />,
5644 <link to="#getStorageControllerByInstance" />,
5645 <link to="#removeStorageController" />,
5646 <link to="#attachDevice" /> or <link to="#mountMedium" />.
5647
5648 After the controller has been added, you can set its exact
5649 type by setting the <link to="IStorageController::controllerType" />.
5650
5651 <result name="VBOX_E_OBJECT_IN_USE">
5652 A storage controller with given name exists already.
5653 </result>
5654 <result name="E_INVALIDARG">
5655 Invalid @a controllerType.
5656 </result>
5657 </desc>
5658 <param name="name" type="wstring" dir="in"/>
5659 <param name="connectionType" type="StorageBus" dir="in"/>
5660 <param name="controller" type="IStorageController" dir="return"/>
5661 </method>
5662
5663 <method name="getStorageControllerByName" const="yes">
5664 <desc>
5665 Returns a storage controller with the given name.
5666
5667 <result name="VBOX_E_OBJECT_NOT_FOUND">
5668 A storage controller with given name doesn't exist.
5669 </result>
5670 </desc>
5671 <param name="name" type="wstring" dir="in"/>
5672 <param name="storageController" type="IStorageController" dir="return"/>
5673 </method>
5674
5675 <method name="getStorageControllerByInstance" const="yes">
5676 <desc>
5677 Returns a storage controller with the given instance number.
5678
5679 <result name="VBOX_E_OBJECT_NOT_FOUND">
5680 A storage controller with given instance number doesn't exist.
5681 </result>
5682 </desc>
5683 <param name="instance" type="unsigned long" dir="in"/>
5684 <param name="storageController" type="IStorageController" dir="return"/>
5685 </method>
5686
5687 <method name="removeStorageController">
5688 <desc>
5689 Removes a storage controller from the machine with all devices attached to it.
5690
5691 <result name="VBOX_E_OBJECT_NOT_FOUND">
5692 A storage controller with given name doesn't exist.
5693 </result>
5694 <result name="VBOX_E_NOT_SUPPORTED">
5695 Medium format does not support storage deletion (only for implicitly
5696 created differencing media, should not happen).
5697 </result>
5698 </desc>
5699 <param name="name" type="wstring" dir="in"/>
5700 </method>
5701
5702 <method name="setStorageControllerBootable">
5703 <desc>
5704 Sets the bootable flag of the storage controller with the given name.
5705
5706 <result name="VBOX_E_OBJECT_NOT_FOUND">
5707 A storage controller with given name doesn't exist.
5708 </result>
5709 <result name="VBOX_E_OBJECT_IN_USE">
5710 Another storage controller is marked as bootable already.
5711 </result>
5712 </desc>
5713 <param name="name" type="wstring" dir="in"/>
5714 <param name="bootable" type="boolean" dir="in"/>
5715 </method>
5716
5717 <method name="getSerialPort" const="yes">
5718 <desc>
5719 Returns the serial port associated with the given slot.
5720 Slots are numbered sequentially, starting with zero. The total
5721 number of serial ports per machine is defined by the
5722 <link to="ISystemProperties::serialPortCount"/> property,
5723 so the maximum slot number is one less than that property's value.
5724
5725 <result name="E_INVALIDARG">
5726 Invalid @a slot number.
5727 </result>
5728
5729 </desc>
5730 <param name="slot" type="unsigned long" dir="in"/>
5731 <param name="port" type="ISerialPort" dir="return"/>
5732 </method>
5733
5734 <method name="getParallelPort" const="yes">
5735 <desc>
5736 Returns the parallel port associated with the given slot.
5737 Slots are numbered sequentially, starting with zero. The total
5738 number of parallel ports per machine is defined by the
5739 <link to="ISystemProperties::parallelPortCount"/> property,
5740 so the maximum slot number is one less than that property's value.
5741
5742 <result name="E_INVALIDARG">
5743 Invalid @a slot number.
5744 </result>
5745
5746 </desc>
5747 <param name="slot" type="unsigned long" dir="in"/>
5748 <param name="port" type="IParallelPort" dir="return"/>
5749 </method>
5750
5751 <method name="getExtraDataKeys">
5752 <desc>
5753 Returns an array representing the machine-specific extra data keys
5754 which currently have values defined.
5755 </desc>
5756 <param name="keys" type="wstring" dir="return" safearray="yes">
5757 <desc>Array of extra data keys.</desc>
5758 </param>
5759 </method>
5760
5761 <method name="getExtraData">
5762 <desc>
5763 Returns associated machine-specific extra data.
5764
5765 If the requested data @a key does not exist, this function will
5766 succeed and return an empty string in the @a value argument.
5767
5768 <result name="VBOX_E_FILE_ERROR">
5769 Settings file not accessible.
5770 </result>
5771 <result name="VBOX_E_XML_ERROR">
5772 Could not parse the settings file.
5773 </result>
5774
5775 </desc>
5776 <param name="key" type="wstring" dir="in">
5777 <desc>Name of the data key to get.</desc>
5778 </param>
5779 <param name="value" type="wstring" dir="return">
5780 <desc>Value of the requested data key.</desc>
5781 </param>
5782 </method>
5783
5784 <method name="setExtraData">
5785 <desc>
5786 Sets associated machine-specific extra data.
5787
5788 If you pass @c null or an empty string as a key @a value, the given
5789 @a key will be deleted.
5790
5791 <note>
5792 Before performing the actual data change, this method will ask all
5793 registered listeners using the
5794 <link to="IExtraDataCanChangeEvent"/>
5795 notification for a permission. If one of the listeners refuses the
5796 new value, the change will not be performed.
5797 </note>
5798 <note>
5799 On success, the
5800 <link to="IExtraDataChangedEvent"/> notification
5801 is called to inform all registered listeners about a successful data
5802 change.
5803 </note>
5804 <note>
5805 This method can be called outside the machine session and therefore
5806 it's a caller's responsibility to handle possible race conditions
5807 when several clients change the same key at the same time.
5808 </note>
5809
5810 <result name="VBOX_E_FILE_ERROR">
5811 Settings file not accessible.
5812 </result>
5813 <result name="VBOX_E_XML_ERROR">
5814 Could not parse the settings file.
5815 </result>
5816
5817 </desc>
5818 <param name="key" type="wstring" dir="in">
5819 <desc>Name of the data key to set.</desc>
5820 </param>
5821 <param name="value" type="wstring" dir="in">
5822 <desc>Value to assign to the key.</desc>
5823 </param>
5824 </method>
5825
5826 <method name="getCPUProperty" const="yes">
5827 <desc>
5828 Returns the virtual CPU boolean value of the specified property.
5829
5830 <result name="E_INVALIDARG">
5831 Invalid property.
5832 </result>
5833
5834 </desc>
5835 <param name="property" type="CPUPropertyType" dir="in">
5836 <desc>
5837 Property type to query.
5838 </desc>
5839 </param>
5840 <param name="value" type="boolean" dir="return">
5841 <desc>
5842 Property value.
5843 </desc>
5844 </param>
5845 </method>
5846
5847 <method name="setCPUProperty">
5848 <desc>
5849 Sets the virtual CPU boolean value of the specified property.
5850
5851 <result name="E_INVALIDARG">
5852 Invalid property.
5853 </result>
5854
5855 </desc>
5856 <param name="property" type="CPUPropertyType" dir="in">
5857 <desc>
5858 Property type to query.
5859 </desc>
5860 </param>
5861 <param name="value" type="boolean" dir="in">
5862 <desc>
5863 Property value.
5864 </desc>
5865 </param>
5866 </method>
5867
5868 <method name="getCPUIDLeaf" const="yes">
5869 <desc>
5870 Returns the virtual CPU cpuid information for the specified leaf.
5871
5872 Currently supported index values for cpuid:
5873 Standard CPUID leafs: 0 - 0xA
5874 Extended CPUID leafs: 0x80000000 - 0x8000000A
5875
5876 See the Intel and AMD programmer's manuals for detailed information
5877 about the cpuid instruction and its leafs.
5878 <result name="E_INVALIDARG">
5879 Invalid id.
5880 </result>
5881
5882 </desc>
5883 <param name="id" type="unsigned long" dir="in">
5884 <desc>
5885 CPUID leaf index.
5886 </desc>
5887 </param>
5888 <param name="valEax" type="unsigned long" dir="out">
5889 <desc>
5890 CPUID leaf value for register eax.
5891 </desc>
5892 </param>
5893 <param name="valEbx" type="unsigned long" dir="out">
5894 <desc>
5895 CPUID leaf value for register ebx.
5896 </desc>
5897 </param>
5898 <param name="valEcx" type="unsigned long" dir="out">
5899 <desc>
5900 CPUID leaf value for register ecx.
5901 </desc>
5902 </param>
5903 <param name="valEdx" type="unsigned long" dir="out">
5904 <desc>
5905 CPUID leaf value for register edx.
5906 </desc>
5907 </param>
5908 </method>
5909
5910 <method name="setCPUIDLeaf">
5911 <desc>
5912 Sets the virtual CPU cpuid information for the specified leaf. Note that these values
5913 are not passed unmodified. VirtualBox clears features that it doesn't support.
5914
5915 Currently supported index values for cpuid:
5916 Standard CPUID leafs: 0 - 0xA
5917 Extended CPUID leafs: 0x80000000 - 0x8000000A
5918
5919 See the Intel and AMD programmer's manuals for detailed information
5920 about the cpuid instruction and its leafs.
5921
5922 Do not use this method unless you know exactly what you're doing. Misuse can lead to
5923 random crashes inside VMs.
5924 <result name="E_INVALIDARG">
5925 Invalid id.
5926 </result>
5927
5928 </desc>
5929 <param name="id" type="unsigned long" dir="in">
5930 <desc>
5931 CPUID leaf index.
5932 </desc>
5933 </param>
5934 <param name="valEax" type="unsigned long" dir="in">
5935 <desc>
5936 CPUID leaf value for register eax.
5937 </desc>
5938 </param>
5939 <param name="valEbx" type="unsigned long" dir="in">
5940 <desc>
5941 CPUID leaf value for register ebx.
5942 </desc>
5943 </param>
5944 <param name="valEcx" type="unsigned long" dir="in">
5945 <desc>
5946 CPUID leaf value for register ecx.
5947 </desc>
5948 </param>
5949 <param name="valEdx" type="unsigned long" dir="in">
5950 <desc>
5951 CPUID leaf value for register edx.
5952 </desc>
5953 </param>
5954 </method>
5955
5956 <method name="removeCPUIDLeaf">
5957 <desc>
5958 Removes the virtual CPU cpuid leaf for the specified index
5959
5960 <result name="E_INVALIDARG">
5961 Invalid id.
5962 </result>
5963
5964 </desc>
5965 <param name="id" type="unsigned long" dir="in">
5966 <desc>
5967 CPUID leaf index.
5968 </desc>
5969 </param>
5970 </method>
5971
5972 <method name="removeAllCPUIDLeaves">
5973 <desc>
5974 Removes all the virtual CPU cpuid leaves
5975 </desc>
5976 </method>
5977
5978 <method name="getHWVirtExProperty" const="yes">
5979 <desc>
5980 Returns the value of the specified hardware virtualization boolean property.
5981
5982 <result name="E_INVALIDARG">
5983 Invalid property.
5984 </result>
5985
5986 </desc>
5987 <param name="property" type="HWVirtExPropertyType" dir="in">
5988 <desc>
5989 Property type to query.
5990 </desc>
5991 </param>
5992 <param name="value" type="boolean" dir="return">
5993 <desc>
5994 Property value.
5995 </desc>
5996 </param>
5997 </method>
5998
5999 <method name="setHWVirtExProperty">
6000 <desc>
6001 Sets a new value for the specified hardware virtualization boolean property.
6002
6003 <result name="E_INVALIDARG">
6004 Invalid property.
6005 </result>
6006
6007 </desc>
6008 <param name="property" type="HWVirtExPropertyType" dir="in">
6009 <desc>
6010 Property type to set.
6011 </desc>
6012 </param>
6013 <param name="value" type="boolean" dir="in">
6014 <desc>
6015 New property value.
6016 </desc>
6017 </param>
6018 </method>
6019
6020 <method name="saveSettings">
6021 <desc>
6022 Saves any changes to machine settings made since the session
6023 has been opened or a new machine has been created, or since the
6024 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
6025 For registered machines, new settings become visible to all
6026 other VirtualBox clients after successful invocation of this
6027 method.
6028 <note>
6029 The method sends <link to="IMachineDataChangedEvent"/>
6030 notification event after the configuration has been successfully
6031 saved (only for registered machines).
6032 </note>
6033 <note>
6034 Calling this method is only valid on instances returned
6035 by <link to="ISession::machine"/> and on new machines
6036 created by <link to="IVirtualBox::createMachine"/> but not
6037 yet registered, or on unregistered machines after calling
6038 <link to="IMachine::unregister"/>.
6039 </note>
6040
6041 <result name="VBOX_E_FILE_ERROR">
6042 Settings file not accessible.
6043 </result>
6044 <result name="VBOX_E_XML_ERROR">
6045 Could not parse the settings file.
6046 </result>
6047 <result name="E_ACCESSDENIED">
6048 Modification request refused.
6049 </result>
6050
6051 </desc>
6052 </method>
6053
6054 <method name="discardSettings">
6055 <desc>
6056 Discards any changes to the machine settings made since the session
6057 has been opened or since the last call to <link to="#saveSettings"/>
6058 or <link to="#discardSettings"/>.
6059 <note>
6060 Calling this method is only valid on instances returned
6061 by <link to="ISession::machine"/> and on new machines
6062 created by <link to="IVirtualBox::createMachine"/> or
6063 opened by <link to="IVirtualBox::openMachine"/> but not
6064 yet registered, or on unregistered machines after calling
6065 <link to="IMachine::unregister"/>.
6066 </note>
6067
6068 <result name="VBOX_E_INVALID_VM_STATE">
6069 Virtual machine is not mutable.
6070 </result>
6071
6072 </desc>
6073 </method>
6074
6075 <method name="unregister">
6076 <desc>
6077 Unregisters a machine previously registered with
6078 <link to="IVirtualBox::registerMachine"/> and optionally do additional
6079 cleanup before the machine is unregistered.
6080
6081 This method does not delete any files. It only changes the machine configuration and
6082 the list of registered machines in the VirtualBox object. To delete the files which
6083 belonged to the machine, including the XML file of the machine itself, call
6084 <link to="#deleteConfig"/>, optionally with the array of IMedium objects which was returned
6085 from this method.
6086
6087 How thoroughly this method cleans up the machine configuration before unregistering
6088 the machine depends on the @a cleanupMode argument.
6089
6090 <ul>
6091 <li>With "UnregisterOnly", the machine will only be unregistered, but no additional
6092 cleanup will be performed. The call will fail if the machine is in "Saved" state
6093 or has any snapshots or any media attached (see <link to="IMediumAttachment" />).
6094 It is the responsibility of the caller to delete all such configuration in this mode.
6095 In this mode, the API behaves like the former @c IVirtualBox::unregisterMachine() API
6096 which it replaces.</li>
6097 <li>With "DetachAllReturnNone", the call will succeed even if the machine is in "Saved"
6098 state or if it has snapshots or media attached. All media attached to the current machine
6099 state or in snapshots will be detached. No medium objects will be returned;
6100 all of the machine's media will remain open.</li>
6101 <li>With "DetachAllReturnHardDisksOnly", the call will behave like with "DetachAllReturnNone",
6102 except that all the hard disk medium objects which were detached from the machine will
6103 be returned as an array. This allows for quickly passing them to the <link to="#deleteConfig" />
6104 API for closing and deletion.</li>
6105 <li>With "Full", the call will behave like with "DetachAllReturnHardDisksOnly", except
6106 that all media will be returned in the array, including removable media like DVDs and
6107 floppies. This might be useful if the user wants to inspect in detail which media were
6108 attached to the machine. Be careful when passing the media array to <link to="#deleteConfig" />
6109 in that case because users will typically want to preserve ISO and RAW image files.</li>
6110 </ul>
6111
6112 A typical implementation will use "DetachAllReturnHardDisksOnly" and then pass the
6113 resulting IMedium array to <link to="#deleteConfig"/>. This way, the machine is completely
6114 deleted with all its saved states and hard disk images, but images for removable
6115 drives (such as ISO and RAW files) will remain on disk.
6116
6117 This API does not verify whether the media files returned in the array are still
6118 attached to other machines (i.e. shared between several machines). If such a shared
6119 image is passed to <link to="#deleteConfig" /> however, closing the image will fail there
6120 and the image will be silently skipped.
6121
6122 This API may, however, move media from this machine's media registry to other media
6123 registries (see <link to="IMedium" /> for details on media registries). For machines
6124 created with VirtualBox 4.0 or later, if media from this machine's media registry
6125 are also attached to another machine (shared attachments), each such medium will be
6126 moved to another machine's registry. This is because without this machine's media
6127 registry, the other machine cannot find its media any more and would become inaccessible.
6128
6129 This API implicitly calls <link to="#saveSettings"/> to save all current machine settings
6130 before unregistering it. It may also silently call <link to="#saveSettings"/> on other machines
6131 if media are moved to other machines' media registries.
6132
6133 After successful method invocation, the <link to="IMachineRegisteredEvent"/> event
6134 is fired.
6135
6136 The call will fail if the machine is currently locked (see <link to="ISession" />).
6137
6138 <note>
6139 If the given machine is inaccessible (see <link to="#accessible"/>), it
6140 will be unregistered and fully uninitialized right afterwards. As a result,
6141 the returned machine object will be unusable and an attempt to call
6142 <b>any</b> method will return the "Object not ready" error.
6143 </note>
6144
6145 <result name="VBOX_E_INVALID_OBJECT_STATE">
6146 Machine is currently locked for a session.
6147 </result>
6148 </desc>
6149
6150 <param name="cleanupMode" type="CleanupMode" dir="in">
6151 <desc>How to clean up after the machine has been unregistered.</desc>
6152 </param>
6153 <param name="media" type="IMedium" safearray="yes" dir="return">
6154 <desc>List of media detached from the machine, depending on the @a cleanupMode parameter.</desc>
6155 </param>
6156 </method>
6157
6158 <method name="deleteConfig">
6159 <desc>
6160 Deletes the files associated with this machine from disk. If medium objects are passed
6161 in with the @a aMedia argument, they are closed and, if closing was successful, their
6162 storage files are deleted as well. For convenience, this array of media files can be
6163 the same as the one returned from a previous <link to="#unregister" /> call.
6164
6165 This method must only be called on machines which are either write-locked (i.e. on instances
6166 returned by <link to="ISession::machine"/>) or on unregistered machines (i.e. not yet
6167 registered machines created by <link to="IVirtualBox::createMachine"/> or opened by
6168 <link to="IVirtualBox::openMachine"/>, or after having called <link to="#unregister"/>).
6169
6170 The following files will be deleted by this method:
6171 <ul>
6172 <li>If <link to="#unregister" /> had been previously called with a @a cleanupMode
6173 argument other than "UnregisterOnly", this will delete all saved state files that
6174 the machine had in use; possibly one if the machine was in "Saved" state and one
6175 for each online snapshot that the machine had.</li>
6176 <li>On each medium object passed in the @a aMedia array, this will call
6177 <link to="IMedium::close" />. If that succeeds, this will attempt to delete the
6178 medium's storage on disk. Since the <link to="IMedium::close"/> call will fail if the medium is still
6179 in use, e.g. because it is still attached to a second machine; in that case the
6180 storage will not be deleted.</li>
6181 <li>Finally, the machine's own XML file will be deleted.</li>
6182 </ul>
6183
6184 Since deleting large disk image files can be a time-consuming I/O operation, this
6185 method operates asynchronously and returns an IProgress object to allow the caller
6186 to monitor the progress. There will be one sub-operation for each file that is
6187 being deleted (saved state or medium storage file).
6188
6189 <note>
6190 <link to="#settingsModified"/> will return @c true after this
6191 method successfully returns.
6192 </note>
6193
6194 <result name="VBOX_E_INVALID_VM_STATE">
6195 Machine is registered but not write-locked.
6196 </result>
6197 <result name="VBOX_E_IPRT_ERROR">
6198 Could not delete the settings file.
6199 </result>
6200 </desc>
6201 <param name="media" type="IMedium" safearray="yes" dir="in">
6202 <desc>List of media to be closed and whose storage files will be deleted.</desc>
6203 </param>
6204 <param name="progress" type="IProgress" dir="return">
6205 <desc>Progress object to track the operation completion.</desc>
6206 </param>
6207 </method>
6208
6209 <method name="exportTo">
6210 <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
6211 steps required to export VirtualBox machines to OVF.
6212 </desc>
6213
6214 <param name="appliance" type="IAppliance" dir="in">
6215 <desc>Appliance to export this machine to.</desc>
6216 </param>
6217 <param name="location" type="wstring" dir="in">
6218 <desc>The target location.</desc>
6219 </param>
6220 <param name="description" type="IVirtualSystemDescription" dir="return">
6221 <desc>VirtualSystemDescription object which is created for this machine.</desc>
6222 </param>
6223 </method >
6224
6225 <method name="findSnapshot">
6226 <desc>
6227 Returns a snapshot of this machine with the given name or UUID.
6228
6229 Returns a snapshot of this machine with the given UUID.
6230 A @c null argument can be used to obtain the first snapshot
6231 taken on this machine. To traverse the whole tree of snapshots
6232 starting from the root, inspect the root snapshot's
6233 <link to="ISnapshot::children" /> attribute and recurse over those children.
6234
6235 <result name="VBOX_E_OBJECT_NOT_FOUND">
6236 Virtual machine has no snapshots or snapshot not found.
6237 </result>
6238
6239 </desc>
6240 <param name="nameOrId" type="wstring" dir="in">
6241 <desc>What to search for. Name or UUID of the snapshot to find</desc>
6242 </param>
6243 <param name="snapshot" type="ISnapshot" dir="return">
6244 <desc>Snapshot object with the given name.</desc>
6245 </param>
6246 </method>
6247
6248 <method name="createSharedFolder">
6249 <desc>
6250 Creates a new permanent shared folder by associating the given logical
6251 name with the given host path, adds it to the collection of shared
6252 folders and starts sharing it. Refer to the description of
6253 <link to="ISharedFolder"/> to read more about logical names.
6254
6255 <result name="VBOX_E_OBJECT_IN_USE">
6256 Shared folder already exists.
6257 </result>
6258 <result name="VBOX_E_FILE_ERROR">
6259 Shared folder @a hostPath not accessible.
6260 </result>
6261
6262 </desc>
6263 <param name="name" type="wstring" dir="in">
6264 <desc>Unique logical name of the shared folder.</desc>
6265 </param>
6266 <param name="hostPath" type="wstring" dir="in">
6267 <desc>Full path to the shared folder in the host file system.</desc>
6268 </param>
6269 <param name="writable" type="boolean" dir="in">
6270 <desc>Whether the share is writable or readonly.</desc>
6271 </param>
6272 <param name="automount" type="boolean" dir="in">
6273 <desc>Whether the share gets automatically mounted by the guest
6274 or not.</desc>
6275 </param>
6276 </method>
6277
6278 <method name="removeSharedFolder">
6279 <desc>
6280 Removes the permanent shared folder with the given name previously
6281 created by <link to="#createSharedFolder"/> from the collection of
6282 shared folders and stops sharing it.
6283
6284 <result name="VBOX_E_INVALID_VM_STATE">
6285 Virtual machine is not mutable.
6286 </result>
6287 <result name="VBOX_E_OBJECT_NOT_FOUND">
6288 Shared folder @a name does not exist.
6289 </result>
6290
6291 </desc>
6292 <param name="name" type="wstring" dir="in">
6293 <desc>Logical name of the shared folder to remove.</desc>
6294 </param>
6295 </method>
6296
6297 <method name="canShowConsoleWindow">
6298 <desc>
6299 Returns @c true if the VM console process can activate the
6300 console window and bring it to foreground on the desktop of
6301 the host PC.
6302 <note>
6303 This method will fail if a session for this machine is not
6304 currently open.
6305 </note>
6306
6307 <result name="VBOX_E_INVALID_VM_STATE">
6308 Machine session is not open.
6309 </result>
6310
6311 </desc>
6312 <param name="canShow" type="boolean" dir="return">
6313 <desc>
6314 @c true if the console window can be shown and @c false otherwise.
6315 </desc>
6316 </param>
6317 </method>
6318
6319 <method name="showConsoleWindow">
6320 <desc>
6321 Activates the console window and brings it to foreground on
6322 the desktop of the host PC. Many modern window managers on
6323 many platforms implement some sort of focus stealing
6324 prevention logic, so that it may be impossible to activate
6325 a window without the help of the currently active
6326 application. In this case, this method will return a non-zero
6327 identifier that represents the top-level window of the VM
6328 console process. The caller, if it represents a currently
6329 active process, is responsible to use this identifier (in a
6330 platform-dependent manner) to perform actual window
6331 activation.
6332 <note>
6333 This method will fail if a session for this machine is not
6334 currently open.
6335 </note>
6336
6337 <result name="VBOX_E_INVALID_VM_STATE">
6338 Machine session is not open.
6339 </result>
6340
6341 </desc>
6342 <param name="winId" type="long long" dir="return">
6343 <desc>
6344 Platform-dependent identifier of the top-level VM console
6345 window, or zero if this method has performed all actions
6346 necessary to implement the <i>show window</i> semantics for
6347 the given platform and/or VirtualBox front-end.
6348 </desc>
6349 </param>
6350 </method>
6351
6352 <method name="getGuestProperty" const="yes">
6353 <desc>
6354 Reads an entry from the machine's guest property store.
6355
6356 <result name="VBOX_E_INVALID_VM_STATE">
6357 Machine session is not open.
6358 </result>
6359
6360 </desc>
6361 <param name="name" type="wstring" dir="in">
6362 <desc>
6363 The name of the property to read.
6364 </desc>
6365 </param>
6366 <param name="value" type="wstring" dir="out">
6367 <desc>
6368 The value of the property. If the property does not exist then this
6369 will be empty.
6370 </desc>
6371 </param>
6372 <param name="timestamp" type="long long" dir="out">
6373 <desc>
6374 The time at which the property was last modified, as seen by the
6375 server process.
6376 </desc>
6377 </param>
6378 <param name="flags" type="wstring" dir="out">
6379 <desc>
6380 Additional property parameters, passed as a comma-separated list of
6381 "name=value" type entries.
6382 </desc>
6383 </param>
6384 </method>
6385
6386 <method name="getGuestPropertyValue" const="yes">
6387 <desc>
6388 Reads a value from the machine's guest property store.
6389
6390 <result name="VBOX_E_INVALID_VM_STATE">
6391 Machine session is not open.
6392 </result>
6393
6394 </desc>
6395 <param name="property" type="wstring" dir="in">
6396 <desc>
6397 The name of the property to read.
6398 </desc>
6399 </param>
6400 <param name="value" type="wstring" dir="return">
6401 <desc>
6402 The value of the property. If the property does not exist then this
6403 will be empty.
6404 </desc>
6405 </param>
6406 </method>
6407
6408 <method name="getGuestPropertyTimestamp" const="yes">
6409 <desc>
6410 Reads a property timestamp from the machine's guest property store.
6411
6412 <result name="VBOX_E_INVALID_VM_STATE">
6413 Machine session is not open.
6414 </result>
6415
6416 </desc>
6417 <param name="property" type="wstring" dir="in">
6418 <desc>
6419 The name of the property to read.
6420 </desc>
6421 </param>
6422 <param name="value" type="long long" dir="return">
6423 <desc>
6424 The timestamp. If the property does not exist then this will be
6425 empty.
6426 </desc>
6427 </param>
6428 </method>
6429
6430 <method name="setGuestProperty">
6431 <desc>
6432 Sets, changes or deletes an entry in the machine's guest property
6433 store.
6434
6435 <result name="E_ACCESSDENIED">
6436 Property cannot be changed.
6437 </result>
6438 <result name="E_INVALIDARG">
6439 Invalid @a flags.
6440 </result>
6441 <result name="VBOX_E_INVALID_VM_STATE">
6442 Virtual machine is not mutable or session not open.
6443 </result>
6444 <result name="VBOX_E_INVALID_OBJECT_STATE">
6445 Cannot set transient property when machine not running.
6446 </result>
6447
6448 </desc>
6449 <param name="property" type="wstring" dir="in">
6450 <desc>
6451 The name of the property to set, change or delete.
6452 </desc>
6453 </param>
6454 <param name="value" type="wstring" dir="in">
6455 <desc>
6456 The new value of the property to set, change or delete. If the
6457 property does not yet exist and value is non-empty, it will be
6458 created. If the value is @c null or empty, the property will be
6459 deleted if it exists.
6460 </desc>
6461 </param>
6462 <param name="flags" type="wstring" dir="in">
6463 <desc>
6464 Additional property parameters, passed as a comma-separated list of
6465 "name=value" type entries.
6466 </desc>
6467 </param>
6468 </method>
6469
6470 <method name="setGuestPropertyValue">
6471 <desc>
6472 Sets or changes a value in the machine's guest property
6473 store. The flags field will be left unchanged or created empty for a
6474 new property.
6475
6476 <result name="E_ACCESSDENIED">
6477 Property cannot be changed.
6478 </result>
6479 <result name="VBOX_E_INVALID_VM_STATE">
6480 Virtual machine is not mutable or session not open.
6481 </result>
6482 <result name="VBOX_E_INVALID_OBJECT_STATE">
6483 Cannot set transient property when machine not running.
6484 </result>
6485 </desc>
6486
6487 <param name="property" type="wstring" dir="in">
6488 <desc>
6489 The name of the property to set or change.
6490 </desc>
6491 </param>
6492 <param name="value" type="wstring" dir="in">
6493 <desc>
6494 The new value of the property to set or change. If the
6495 property does not yet exist and value is non-empty, it will be
6496 created.
6497 </desc>
6498 </param>
6499 </method>
6500
6501 <method name="deleteGuestProperty" const="yes">
6502 <desc>
6503 Deletes an entry from the machine's guest property store.
6504
6505 <result name="VBOX_E_INVALID_VM_STATE">
6506 Machine session is not open.
6507 </result>
6508
6509 </desc>
6510 <param name="name" type="wstring" dir="in">
6511 <desc>
6512 The name of the property to delete.
6513 </desc>
6514 </param>
6515 </method>
6516
6517 <method name="enumerateGuestProperties" const="yes">
6518 <desc>
6519 Return a list of the guest properties matching a set of patterns along
6520 with their values, time stamps and flags.
6521 </desc>
6522 <param name="patterns" type="wstring" dir="in">
6523 <desc>
6524 The patterns to match the properties against, separated by '|'
6525 characters. If this is empty or @c null, all properties will match.
6526 </desc>
6527 </param>
6528 <param name="names" type="wstring" dir="out" safearray="yes">
6529 <desc>
6530 The names of the properties returned.
6531 </desc>
6532 </param>
6533 <param name="values" type="wstring" dir="out" safearray="yes">
6534 <desc>
6535 The values of the properties returned. The array entries match the
6536 corresponding entries in the @a name array.
6537 </desc>
6538 </param>
6539 <param name="timestamps" type="long long" dir="out" safearray="yes">
6540 <desc>
6541 The time stamps of the properties returned. The array entries match
6542 the corresponding entries in the @a name array.
6543 </desc>
6544 </param>
6545 <param name="flags" type="wstring" dir="out" safearray="yes">
6546 <desc>
6547 The flags of the properties returned. The array entries match the
6548 corresponding entries in the @a name array.
6549 </desc>
6550 </param>
6551 </method>
6552
6553 <method name="querySavedGuestScreenInfo" const="yes">
6554 <desc>
6555 Returns the guest dimensions from the saved state.
6556 </desc>
6557 <param name="screenId" type="unsigned long" dir="in">
6558 <desc>
6559 Saved guest screen to query info from.
6560 </desc>
6561 </param>
6562 <param name="originX" type="unsigned long" dir="out">
6563 <desc>
6564 The X position of the guest monitor top left corner.
6565 </desc>
6566 </param>
6567 <param name="originY" type="unsigned long" dir="out">
6568 <desc>
6569 The Y position of the guest monitor top left corner.
6570 </desc>
6571 </param>
6572 <param name="width" type="unsigned long" dir="out">
6573 <desc>
6574 Guest width at the time of the saved state was taken.
6575 </desc>
6576 </param>
6577 <param name="height" type="unsigned long" dir="out">
6578 <desc>
6579 Guest height at the time of the saved state was taken.
6580 </desc>
6581 </param>
6582 <param name="enabled" type="boolean" dir="out">
6583 <desc>
6584 Whether the monitor is enabled in the guest.
6585 </desc>
6586 </param>
6587 </method>
6588
6589 <method name="querySavedThumbnailSize">
6590 <desc>
6591 Returns size in bytes and dimensions in pixels of a saved thumbnail bitmap from saved state.
6592 </desc>
6593 <param name="screenId" type="unsigned long" dir="in">
6594 <desc>
6595 Saved guest screen to query info from.
6596 </desc>
6597 </param>
6598 <param name="size" type="unsigned long" dir="out">
6599 <desc>
6600 Size of buffer required to store the bitmap.
6601 </desc>
6602 </param>
6603 <param name="width" type="unsigned long" dir="out">
6604 <desc>
6605 Bitmap width.
6606 </desc>
6607 </param>
6608 <param name="height" type="unsigned long" dir="out">
6609 <desc>
6610 Bitmap height.
6611 </desc>
6612 </param>
6613 </method>
6614
6615 <method name="readSavedThumbnailToArray">
6616 <desc>
6617 Thumbnail is retrieved to an array of bytes in uncompressed 32-bit BGRA or RGBA format.
6618 </desc>
6619 <param name="screenId" type="unsigned long" dir="in">
6620 <desc>
6621 Saved guest screen to read from.
6622 </desc>
6623 </param>
6624 <param name="BGR" type="boolean" dir="in">
6625 <desc>
6626 How to order bytes in the pixel. A pixel consists of 4 bytes. If this parameter is true, then
6627 bytes order is: B, G, R, 0xFF. If this parameter is false, then bytes order is: R, G, B, 0xFF.
6628 </desc>
6629 </param>
6630 <param name="width" type="unsigned long" dir="out">
6631 <desc>
6632 Bitmap width.
6633 </desc>
6634 </param>
6635 <param name="height" type="unsigned long" dir="out">
6636 <desc>
6637 Bitmap height.
6638 </desc>
6639 </param>
6640 <param name="data" type="octet" safearray="yes" dir="return">
6641 <desc>
6642 Array with resulting bitmap data.
6643 </desc>
6644 </param>
6645 </method>
6646
6647 <method name="readSavedThumbnailPNGToArray">
6648 <desc>
6649 Thumbnail in PNG format is retrieved to an array of bytes.
6650 </desc>
6651 <param name="screenId" type="unsigned long" dir="in">
6652 <desc>
6653 Saved guest screen to read from.
6654 </desc>
6655 </param>
6656 <param name="width" type="unsigned long" dir="out">
6657 <desc>
6658 Image width.
6659 </desc>
6660 </param>
6661 <param name="height" type="unsigned long" dir="out">
6662 <desc>
6663 Image height.
6664 </desc>
6665 </param>
6666 <param name="data" type="octet" dir="return" safearray="yes">
6667 <desc>
6668 Array with resulting PNG data.
6669 </desc>
6670 </param>
6671 </method>
6672
6673 <method name="querySavedScreenshotPNGSize">
6674 <desc>
6675 Returns size in bytes and dimensions of a saved PNG image of screenshot from saved state.
6676 </desc>
6677 <param name="screenId" type="unsigned long" dir="in">
6678 <desc>
6679 Saved guest screen to query info from.
6680 </desc>
6681 </param>
6682 <param name="size" type="unsigned long" dir="out">
6683 <desc>
6684 Size of buffer required to store the PNG binary data.
6685 </desc>
6686 </param>
6687 <param name="width" type="unsigned long" dir="out">
6688 <desc>
6689 Image width.
6690 </desc>
6691 </param>
6692 <param name="height" type="unsigned long" dir="out">
6693 <desc>
6694 Image height.
6695 </desc>
6696 </param>
6697 </method>
6698
6699 <method name="readSavedScreenshotPNGToArray">
6700 <desc>
6701 Screenshot in PNG format is retrieved to an array of bytes.
6702 </desc>
6703 <param name="screenId" type="unsigned long" dir="in">
6704 <desc>
6705 Saved guest screen to read from.
6706 </desc>
6707 </param>
6708 <param name="width" type="unsigned long" dir="out">
6709 <desc>
6710 Image width.
6711 </desc>
6712 </param>
6713 <param name="height" type="unsigned long" dir="out">
6714 <desc>
6715 Image height.
6716 </desc>
6717 </param>
6718 <param name="data" type="octet" dir="return" safearray="yes">
6719 <desc>
6720 Array with resulting PNG data.
6721 </desc>
6722 </param>
6723 </method>
6724
6725 <method name="hotPlugCPU">
6726 <desc>
6727 Plugs a CPU into the machine.
6728 </desc>
6729 <param name="cpu" type="unsigned long" dir="in">
6730 <desc>
6731 The CPU id to insert.
6732 </desc>
6733 </param>
6734 </method>
6735
6736 <method name="hotUnplugCPU">
6737 <desc>
6738 Removes a CPU from the machine.
6739 </desc>
6740 <param name="cpu" type="unsigned long" dir="in">
6741 <desc>
6742 The CPU id to remove.
6743 </desc>
6744 </param>
6745 </method>
6746
6747 <method name="getCPUStatus">
6748 <desc>
6749 Returns the current status of the given CPU.
6750 </desc>
6751 <param name="cpu" type="unsigned long" dir="in">
6752 <desc>
6753 The CPU id to check for.
6754 </desc>
6755 </param>
6756 <param name="attached" type="boolean" dir="return">
6757 <desc>
6758 Status of the CPU.
6759 </desc>
6760 </param>
6761 </method>
6762
6763 <method name="queryLogFilename">
6764 <desc>
6765 Queries for the VM log file name of an given index. Returns an empty
6766 string if a log file with that index doesn't exists.
6767 </desc>
6768 <param name="idx" type="unsigned long" dir="in">
6769 <desc>
6770 Which log file name to query. 0=current log file.
6771 </desc>
6772 </param>
6773 <param name="filename" type="wstring" dir="return">
6774 <desc>
6775 On return the full path to the log file or an empty string on error.
6776 </desc>
6777 </param>
6778 </method>
6779
6780 <method name="readLog">
6781 <desc>
6782 Reads the VM log file. The chunk size is limited, so even if you
6783 ask for a big piece there might be less data returned.
6784 </desc>
6785 <param name="idx" type="unsigned long" dir="in">
6786 <desc>
6787 Which log file to read. 0=current log file.
6788 </desc>
6789 </param>
6790 <param name="offset" type="long long" dir="in">
6791 <desc>
6792 Offset in the log file.
6793 </desc>
6794 </param>
6795 <param name="size" type="long long" dir="in">
6796 <desc>
6797 Chunk size to read in the log file.
6798 </desc>
6799 </param>
6800 <param name="data" type="octet" dir="return" safearray="yes">
6801 <desc>
6802 Data read from the log file. A data size of 0 means end of file
6803 if the requested chunk size was not 0. This is the unprocessed
6804 file data, i.e. the line ending style depends on the platform of
6805 the system the server is running on.
6806 </desc>
6807 </param>
6808 </method>
6809
6810 <method name="cloneTo">
6811 <desc>
6812 Creates a clone of this machine, either as a full clone (which means
6813 creating independent copies of the hard disk media, save states and so
6814 on), or as a linked clone (which uses its own differencing media,
6815 sharing the parent media with the source machine).
6816
6817 The target machine object must have been created previously with <link
6818 to="IVirtualBox::createMachine"/>, and all the settings will be
6819 transferred except the VM name and the hardware UUID. You can set the
6820 VM name and the new hardware UUID when creating the target machine. The
6821 network MAC addresses are newly created for all newtwork adapters. You
6822 can change that behaviour with the options parameter. The operation is
6823 performed asynchronously, so the machine object will be not be usable
6824 until the @a progress object signals completion.
6825
6826 <result name="E_INVALIDARG">
6827 @a target is @c null.
6828 </result>
6829 </desc>
6830
6831 <param name="target" type="IMachine" dir="in">
6832 <desc>Target machine object.</desc>
6833 </param>
6834 <param name="mode" type="CloneMode" dir="in">
6835 <desc>Which states should be cloned.</desc>
6836 </param>
6837 <param name="options" type="CloneOptions" dir="in" safearray="yes">
6838 <desc>Options for the cloning operation.</desc>
6839 </param>
6840 <param name="progress" type="IProgress" dir="return">
6841 <desc>Progress object to track the operation completion.</desc>
6842 </param>
6843 </method>
6844
6845 </interface>
6846
6847 <!--
6848 // IConsole
6849 /////////////////////////////////////////////////////////////////////////
6850 -->
6851
6852 <interface
6853 name="IVRDEServerInfo" extends="$unknown"
6854 uuid="714434a1-58c3-4aab-9049-7652c5df113b"
6855 wsmap="struct"
6856 >
6857 <desc>
6858 Contains information about the remote desktop (VRDE) server capabilities and status.
6859 This is used in the <link to="IConsole::VRDEServerInfo" /> attribute.
6860 </desc>
6861
6862 <attribute name="active" type="boolean" readonly="yes">
6863 <desc>
6864 Whether the remote desktop connection is active.
6865 </desc>
6866 </attribute>
6867
6868 <attribute name="port" type="long" readonly="yes">
6869 <desc>
6870 VRDE server port number. If this property is equal to <tt>0</tt>, then
6871 the VRDE server failed to start, usually because there are no free IP
6872 ports to bind to. If this property is equal to <tt>-1</tt>, then the VRDE
6873 server has not yet been started.
6874 </desc>
6875 </attribute>
6876
6877 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
6878 <desc>
6879 How many times a client connected.
6880 </desc>
6881 </attribute>
6882
6883 <attribute name="beginTime" type="long long" readonly="yes">
6884 <desc>
6885 When the last connection was established, in milliseconds since 1970-01-01 UTC.
6886 </desc>
6887 </attribute>
6888
6889 <attribute name="endTime" type="long long" readonly="yes">
6890 <desc>
6891 When the last connection was terminated or the current time, if
6892 connection is still active, in milliseconds since 1970-01-01 UTC.
6893 </desc>
6894 </attribute>
6895
6896 <attribute name="bytesSent" type="long long" readonly="yes">
6897 <desc>
6898 How many bytes were sent in last or current, if still active, connection.
6899 </desc>
6900 </attribute>
6901
6902 <attribute name="bytesSentTotal" type="long long" readonly="yes">
6903 <desc>
6904 How many bytes were sent in all connections.
6905 </desc>
6906 </attribute>
6907
6908 <attribute name="bytesReceived" type="long long" readonly="yes">
6909 <desc>
6910 How many bytes were received in last or current, if still active, connection.
6911 </desc>
6912 </attribute>
6913
6914 <attribute name="bytesReceivedTotal" type="long long" readonly="yes">
6915 <desc>
6916 How many bytes were received in all connections.
6917 </desc>
6918 </attribute>
6919
6920 <attribute name="user" type="wstring" readonly="yes">
6921 <desc>
6922 Login user name supplied by the client.
6923 </desc>
6924 </attribute>
6925
6926 <attribute name="domain" type="wstring" readonly="yes">
6927 <desc>
6928 Login domain name supplied by the client.
6929 </desc>
6930 </attribute>
6931
6932 <attribute name="clientName" type="wstring" readonly="yes">
6933 <desc>
6934 The client name supplied by the client.
6935 </desc>
6936 </attribute>
6937
6938 <attribute name="clientIP" type="wstring" readonly="yes">
6939 <desc>
6940 The IP address of the client.
6941 </desc>
6942 </attribute>
6943
6944 <attribute name="clientVersion" type="unsigned long" readonly="yes">
6945 <desc>
6946 The client software version number.
6947 </desc>
6948 </attribute>
6949
6950 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
6951 <desc>
6952 Public key exchange method used when connection was established.
6953 Values: 0 - RDP4 public key exchange scheme.
6954 1 - X509 certificates were sent to client.
6955 </desc>
6956 </attribute>
6957
6958 </interface>
6959
6960 <interface
6961 name="IConsole" extends="$unknown"
6962 uuid="db7ab4ca-2a3f-4183-9243-c1208da92392"
6963 wsmap="managed"
6964 >
6965 <desc>
6966 The IConsole interface represents an interface to control virtual
6967 machine execution.
6968
6969 A console object gets created when a machine has been locked for a
6970 particular session (client process) using <link to="IMachine::lockMachine" />
6971 or <link to="IMachine::launchVMProcess"/>. The console object can
6972 then be found in the session's <link to="ISession::console" /> attribute.
6973
6974 Methods of the IConsole interface allow the caller to query the current
6975 virtual machine execution state, pause the machine or power it down, save
6976 the machine state or take a snapshot, attach and detach removable media
6977 and so on.
6978
6979 <see><link to="ISession"/></see>
6980 </desc>
6981
6982 <attribute name="machine" type="IMachine" readonly="yes">
6983 <desc>
6984 Machine object for this console session.
6985 <note>
6986 This is a convenience property, it has the same value as
6987 <link to="ISession::machine"/> of the corresponding session
6988 object.
6989 </note>
6990 </desc>
6991 </attribute>
6992
6993 <attribute name="state" type="MachineState" readonly="yes">
6994 <desc>
6995 Current execution state of the machine.
6996 <note>
6997 This property always returns the same value as the corresponding
6998 property of the IMachine object for this console session.
6999 For the process that owns (executes) the VM, this is the
7000 preferable way of querying the VM state, because no IPC
7001 calls are made.
7002 </note>
7003 </desc>
7004 </attribute>
7005
7006 <attribute name="guest" type="IGuest" readonly="yes">
7007 <desc>Guest object.</desc>
7008 </attribute>
7009
7010 <attribute name="keyboard" type="IKeyboard" readonly="yes">
7011 <desc>
7012 Virtual keyboard object.
7013 <note>
7014 If the machine is not running, any attempt to use
7015 the returned object will result in an error.
7016 </note>
7017 </desc>
7018 </attribute>
7019
7020 <attribute name="mouse" type="IMouse" readonly="yes">
7021 <desc>
7022 Virtual mouse object.
7023 <note>
7024 If the machine is not running, any attempt to use
7025 the returned object will result in an error.
7026 </note>
7027 </desc>
7028 </attribute>
7029
7030 <attribute name="display" type="IDisplay" readonly="yes">
7031 <desc>Virtual display object.
7032 <note>
7033 If the machine is not running, any attempt to use
7034 the returned object will result in an error.
7035 </note>
7036 </desc>
7037 </attribute>
7038
7039 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
7040 <desc>Debugging interface.</desc>
7041 </attribute>
7042
7043 <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
7044 <desc>
7045 Collection of USB devices currently attached to the virtual
7046 USB controller.
7047 <note>
7048 The collection is empty if the machine is not running.
7049 </note>
7050 </desc>
7051 </attribute>
7052
7053 <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
7054 <desc>
7055 List of USB devices currently attached to the remote VRDE client.
7056 Once a new device is physically attached to the remote host computer,
7057 it appears in this list and remains there until detached.
7058 </desc>
7059 </attribute>
7060
7061 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
7062 <desc>
7063 Collection of shared folders for the current session. These folders
7064 are called transient shared folders because they are available to the
7065 guest OS running inside the associated virtual machine only for the
7066 duration of the session (as opposed to
7067 <link to="IMachine::sharedFolders"/> which represent permanent shared
7068 folders). When the session is closed (e.g. the machine is powered down),
7069 these folders are automatically discarded.
7070
7071 New shared folders are added to the collection using
7072 <link to="#createSharedFolder"/>. Existing shared folders can be
7073 removed using <link to="#removeSharedFolder"/>.
7074 </desc>
7075 </attribute>
7076
7077 <attribute name="VRDEServerInfo" type="IVRDEServerInfo" readonly="yes">
7078 <desc>
7079 Interface that provides information on Remote Desktop Extension (VRDE) connection.
7080 </desc>
7081 </attribute>
7082
7083 <attribute name="eventSource" type="IEventSource" readonly="yes">
7084 <desc>
7085 Event source for console events.
7086 </desc>
7087 </attribute>
7088
7089 <attribute name="attachedPCIDevices" type="IPCIDeviceAttachment" readonly="yes" safearray="yes">
7090 <desc>Array of PCI devices attached to this machine.</desc>
7091 </attribute>
7092
7093 <attribute name="useHostClipboard" type="boolean">
7094 <desc>
7095 Whether the guest clipboard should be connected to the host one or
7096 whether it should only be allowed access to the VRDE clipboard. This
7097 setting may not affect existing guest clipboard connections which
7098 are already connected to the host clipboard.
7099 </desc>
7100 </attribute>
7101
7102 <method name="powerUp">
7103 <desc>
7104 Starts the virtual machine execution using the current machine
7105 state (that is, its current execution state, current settings and
7106 current storage devices).
7107
7108 <note>
7109 This method is only useful for front-ends that want to actually
7110 execute virtual machines in their own process (like the VirtualBox
7111 or VBoxSDL front-ends). Unless you are intending to write such a
7112 front-end, do not call this method. If you simply want to
7113 start virtual machine execution using one of the existing front-ends
7114 (for example the VirtualBox GUI or headless server), use
7115 <link to="IMachine::launchVMProcess"/> instead; these
7116 front-ends will power up the machine automatically for you.
7117 </note>
7118
7119 If the machine is powered off or aborted, the execution will
7120 start from the beginning (as if the real hardware were just
7121 powered on).
7122
7123 If the machine is in the <link to="MachineState_Saved"/> state,
7124 it will continue its execution the point where the state has
7125 been saved.
7126
7127 If the machine <link to="IMachine::teleporterEnabled"/> property is
7128 enabled on the machine being powered up, the machine will wait for an
7129 incoming teleportation in the <link to="MachineState_TeleportingIn"/>
7130 state. The returned progress object will have at least three
7131 operations where the last three are defined as: (1) powering up and
7132 starting TCP server, (2) waiting for incoming teleportations, and
7133 (3) perform teleportation. These operations will be reflected as the
7134 last three operations of the progress objected returned by
7135 <link to="IMachine::launchVMProcess"/> as well.
7136
7137 <see><link to="#saveState"/></see>
7138
7139 <result name="VBOX_E_INVALID_VM_STATE">
7140 Virtual machine already running.
7141 </result>
7142 <result name="VBOX_E_HOST_ERROR">
7143 Host interface does not exist or name not set.
7144 </result>
7145 <result name="VBOX_E_FILE_ERROR">
7146 Invalid saved state file.
7147 </result>
7148 </desc>
7149 <param name="progress" type="IProgress" dir="return">
7150 <desc>Progress object to track the operation completion.</desc>
7151 </param>
7152 </method>
7153
7154 <method name="powerUpPaused">
7155 <desc>
7156 Identical to powerUp except that the VM will enter the
7157 <link to="MachineState_Paused"/> state, instead of
7158 <link to="MachineState_Running"/>.
7159
7160 <see><link to="#powerUp"/></see>
7161 <result name="VBOX_E_INVALID_VM_STATE">
7162 Virtual machine already running.
7163 </result>
7164 <result name="VBOX_E_HOST_ERROR">
7165 Host interface does not exist or name not set.
7166 </result>
7167 <result name="VBOX_E_FILE_ERROR">
7168 Invalid saved state file.
7169 </result>
7170 </desc>
7171 <param name="progress" type="IProgress" dir="return">
7172 <desc>Progress object to track the operation completion.</desc>
7173 </param>
7174 </method>
7175
7176 <method name="powerDown">
7177 <desc>
7178 Initiates the power down procedure to stop the virtual machine
7179 execution.
7180
7181 The completion of the power down procedure is tracked using the returned
7182 IProgress object. After the operation is complete, the machine will go
7183 to the PoweredOff state.
7184 <result name="VBOX_E_INVALID_VM_STATE">
7185 Virtual machine must be Running, Paused or Stuck to be powered down.
7186 </result>
7187 </desc>
7188 <param name="progress" type="IProgress" dir="return">
7189 <desc>Progress object to track the operation completion.</desc>
7190 </param>
7191 </method>
7192
7193 <method name="reset">
7194 <desc>Resets the virtual machine.
7195 <result name="VBOX_E_INVALID_VM_STATE">
7196 Virtual machine not in Running state.
7197 </result>
7198 <result name="VBOX_E_VM_ERROR">
7199 Virtual machine error in reset operation.
7200 </result>
7201 </desc>
7202 </method>
7203
7204 <method name="pause">
7205 <desc>Pauses the virtual machine execution.
7206 <result name="VBOX_E_INVALID_VM_STATE">
7207 Virtual machine not in Running state.
7208 </result>
7209 <result name="VBOX_E_VM_ERROR">
7210 Virtual machine error in suspend operation.
7211 </result>
7212 </desc>
7213 </method>
7214
7215 <method name="resume">
7216 <desc>Resumes the virtual machine execution.
7217 <result name="VBOX_E_INVALID_VM_STATE">
7218 Virtual machine not in Paused state.
7219 </result>
7220 <result name="VBOX_E_VM_ERROR">
7221 Virtual machine error in resume operation.
7222 </result>
7223 </desc>
7224 </method>
7225
7226 <method name="powerButton">
7227 <desc>Sends the ACPI power button event to the guest.
7228 <result name="VBOX_E_INVALID_VM_STATE">
7229 Virtual machine not in Running state.
7230 </result>
7231 <result name="VBOX_E_PDM_ERROR">
7232 Controlled power off failed.
7233 </result>
7234 </desc>
7235 </method>
7236
7237 <method name="sleepButton">
7238 <desc>Sends the ACPI sleep button event to the guest.
7239 <result name="VBOX_E_INVALID_VM_STATE">
7240 Virtual machine not in Running state.
7241 </result>
7242 <result name="VBOX_E_PDM_ERROR">
7243 Sending sleep button event failed.
7244 </result>
7245 </desc>
7246 </method>
7247
7248 <method name="getPowerButtonHandled">
7249 <desc>Checks if the last power button event was handled by guest.
7250 <result name="VBOX_E_PDM_ERROR">
7251 Checking if the event was handled by the guest OS failed.
7252 </result>
7253 </desc>
7254 <param name="handled" type="boolean" dir="return"/>
7255 </method>
7256
7257 <method name="getGuestEnteredACPIMode">
7258 <desc>Checks if the guest entered the ACPI mode G0 (working) or
7259 G1 (sleeping). If this method returns @c false, the guest will
7260 most likely not respond to external ACPI events.
7261 <result name="VBOX_E_INVALID_VM_STATE">
7262 Virtual machine not in Running state.
7263 </result>
7264 </desc>
7265 <param name="entered" type="boolean" dir="return"/>
7266 </method>
7267
7268 <method name="saveState">
7269 <desc>
7270 Saves the current execution state of a running virtual machine
7271 and stops its execution.
7272
7273 After this operation completes, the machine will go to the
7274 Saved state. Next time it is powered up, this state will
7275 be restored and the machine will continue its execution from
7276 the place where it was saved.
7277
7278 This operation differs from taking a snapshot to the effect
7279 that it doesn't create new differencing media. Also, once
7280 the machine is powered up from the state saved using this method,
7281 the saved state is deleted, so it will be impossible to return
7282 to this state later.
7283
7284 <note>
7285 On success, this method implicitly calls
7286 <link to="IMachine::saveSettings"/> to save all current machine
7287 settings (including runtime changes to the DVD medium, etc.).
7288 Together with the impossibility to change any VM settings when it is
7289 in the Saved state, this guarantees adequate hardware
7290 configuration of the machine when it is restored from the saved
7291 state file.
7292 </note>
7293
7294 <note>
7295 The machine must be in the Running or Paused state, otherwise
7296 the operation will fail.
7297 </note>
7298 <result name="VBOX_E_INVALID_VM_STATE">
7299 Virtual machine state neither Running nor Paused.
7300 </result>
7301 <result name="VBOX_E_FILE_ERROR">
7302 Failed to create directory for saved state file.
7303 </result>
7304
7305 <see><link to="#takeSnapshot"/></see>
7306 </desc>
7307 <param name="progress" type="IProgress" dir="return">
7308 <desc>Progress object to track the operation completion.</desc>
7309 </param>
7310 </method>
7311
7312 <method name="adoptSavedState">
7313 <desc>
7314 Associates the given saved state file to the virtual machine.
7315
7316 On success, the machine will go to the Saved state. Next time it is
7317 powered up, it will be restored from the adopted saved state and
7318 continue execution from the place where the saved state file was
7319 created.
7320
7321 The specified saved state file path may be absolute or relative to the
7322 folder the VM normally saves the state to (usually,
7323 <link to="IMachine::snapshotFolder"/>).
7324
7325 <note>
7326 It's a caller's responsibility to make sure the given saved state
7327 file is compatible with the settings of this virtual machine that
7328 represent its virtual hardware (memory size, storage disk configuration
7329 etc.). If there is a mismatch, the behavior of the virtual machine
7330 is undefined.
7331 </note>
7332 <result name="VBOX_E_INVALID_VM_STATE">
7333 Virtual machine state neither PoweredOff nor Aborted.
7334 </result>
7335 </desc>
7336 <param name="savedStateFile" type="wstring" dir="in">
7337 <desc>Path to the saved state file to adopt.</desc>
7338 </param>
7339 </method>
7340
7341 <method name="discardSavedState">
7342 <desc>
7343 Forcibly resets the machine to "Powered Off" state if it is
7344 currently in the "Saved" state (previously created by <link to="#saveState"/>).
7345 Next time the machine is powered up, a clean boot will occur.
7346 <note>
7347 This operation is equivalent to resetting or powering off
7348 the machine without doing a proper shutdown of the guest
7349 operating system; as with resetting a running phyiscal
7350 computer, it can can lead to data loss.
7351 </note>
7352 If @a fRemoveFile is @c true, the file in the machine directory
7353 into which the machine state was saved is also deleted. If
7354 this is @c false, then the state can be recovered and later
7355 re-inserted into a machine using <link to="#adoptSavedState" />.
7356 The location of the file can be found in the
7357 <link to="IMachine::stateFilePath" /> attribute.
7358 <result name="VBOX_E_INVALID_VM_STATE">
7359 Virtual machine not in state Saved.
7360 </result>
7361 </desc>
7362 <param name="fRemoveFile" type="boolean" dir="in" >
7363 <desc>Whether to also remove the saved state file.</desc>
7364 </param>
7365 </method>
7366
7367 <method name="getDeviceActivity">
7368 <desc>
7369 Gets the current activity type of a given device or device group.
7370 <result name="E_INVALIDARG">
7371 Invalid device type.
7372 </result>
7373 </desc>
7374 <param name="type" type="DeviceType" dir="in"/>
7375 <param name="activity" type="DeviceActivity" dir="return"/>
7376 </method>
7377
7378 <method name="attachUSBDevice">
7379 <desc>
7380 Attaches a host USB device with the given UUID to the
7381 USB controller of the virtual machine.
7382
7383 The device needs to be in one of the following states:
7384 <link to="USBDeviceState_Busy"/>,
7385 <link to="USBDeviceState_Available"/> or
7386 <link to="USBDeviceState_Held"/>,
7387 otherwise an error is immediately returned.
7388
7389 When the device state is
7390 <link to="USBDeviceState_Busy">Busy</link>, an error may also
7391 be returned if the host computer refuses to release it for some reason.
7392
7393 <see><link to="IUSBController::deviceFilters"/>,
7394 <link to="USBDeviceState"/></see>
7395 <result name="VBOX_E_INVALID_VM_STATE">
7396 Virtual machine state neither Running nor Paused.
7397 </result>
7398 <result name="VBOX_E_PDM_ERROR">
7399 Virtual machine does not have a USB controller.
7400 </result>
7401 </desc>
7402 <param name="id" type="uuid" mod="string" dir="in">
7403 <desc>UUID of the host USB device to attach.</desc>
7404 </param>
7405 </method>
7406
7407 <method name="detachUSBDevice">
7408 <desc>
7409 Detaches an USB device with the given UUID from the USB controller
7410 of the virtual machine.
7411
7412 After this method succeeds, the VirtualBox server re-initiates
7413 all USB filters as if the device were just physically attached
7414 to the host, but filters of this machine are ignored to avoid
7415 a possible automatic re-attachment.
7416
7417 <see><link to="IUSBController::deviceFilters"/>,
7418 <link to="USBDeviceState"/></see>
7419
7420 <result name="VBOX_E_PDM_ERROR">
7421 Virtual machine does not have a USB controller.
7422 </result>
7423 <result name="E_INVALIDARG">
7424 USB device not attached to this virtual machine.
7425 </result>
7426 </desc>
7427 <param name="id" type="uuid" mod="string" dir="in">
7428 <desc>UUID of the USB device to detach.</desc>
7429 </param>
7430 <param name="device" type="IUSBDevice" dir="return">
7431 <desc>Detached USB device.</desc>
7432 </param>
7433 </method>
7434
7435 <method name="findUSBDeviceByAddress">
7436 <desc>
7437 Searches for a USB device with the given host address.
7438
7439 <result name="VBOX_E_OBJECT_NOT_FOUND">
7440 Given @c name does not correspond to any USB device.
7441 </result>
7442
7443 <see><link to="IUSBDevice::address"/></see>
7444 </desc>
7445 <param name="name" type="wstring" dir="in">
7446 <desc>
7447 Address of the USB device (as assigned by the host) to
7448 search for.
7449 </desc>
7450 </param>
7451 <param name="device" type="IUSBDevice" dir="return">
7452 <desc>Found USB device object.</desc>
7453 </param>
7454 </method>
7455
7456 <method name="findUSBDeviceById">
7457 <desc>
7458 Searches for a USB device with the given UUID.
7459
7460 <result name="VBOX_E_OBJECT_NOT_FOUND">
7461 Given @c id does not correspond to any USB device.
7462 </result>
7463
7464 <see><link to="IUSBDevice::id"/></see>
7465 </desc>
7466 <param name="id" type="uuid" mod="string" dir="in">
7467 <desc>UUID of the USB device to search for.</desc>
7468 </param>
7469 <param name="device" type="IUSBDevice" dir="return">
7470 <desc>Found USB device object.</desc>
7471 </param>
7472 </method>
7473
7474 <method name="createSharedFolder">
7475 <desc>
7476 Creates a transient new shared folder by associating the given logical
7477 name with the given host path, adds it to the collection of shared
7478 folders and starts sharing it. Refer to the description of
7479 <link to="ISharedFolder"/> to read more about logical names.
7480
7481 <result name="VBOX_E_INVALID_VM_STATE">
7482 Virtual machine in Saved state or currently changing state.
7483 </result>
7484 <result name="VBOX_E_FILE_ERROR">
7485 Shared folder already exists or not accessible.
7486 </result>
7487 </desc>
7488 <param name="name" type="wstring" dir="in">
7489 <desc>Unique logical name of the shared folder.</desc>
7490 </param>
7491 <param name="hostPath" type="wstring" dir="in">
7492 <desc>Full path to the shared folder in the host file system.</desc>
7493 </param>
7494 <param name="writable" type="boolean" dir="in">
7495 <desc>Whether the share is writable or readonly</desc>
7496 </param>
7497 <param name="automount" type="boolean" dir="in">
7498 <desc>Whether the share gets automatically mounted by the guest
7499 or not.</desc>
7500 </param>
7501 </method>
7502
7503 <method name="removeSharedFolder">
7504 <desc>
7505 Removes a transient shared folder with the given name previously
7506 created by <link to="#createSharedFolder"/> from the collection of
7507 shared folders and stops sharing it.
7508 <result name="VBOX_E_INVALID_VM_STATE">
7509 Virtual machine in Saved state or currently changing state.
7510 </result>
7511 <result name="VBOX_E_FILE_ERROR">
7512 Shared folder does not exists.
7513 </result>
7514 </desc>
7515 <param name="name" type="wstring" dir="in">
7516 <desc>Logical name of the shared folder to remove.</desc>
7517 </param>
7518 </method>
7519
7520 <method name="takeSnapshot">
7521 <desc>
7522 Saves the current execution state
7523 and all settings of the machine and creates differencing images
7524 for all normal (non-independent) media.
7525 See <link to="ISnapshot" /> for an introduction to snapshots.
7526
7527 This method can be called for a PoweredOff, Saved (see
7528 <link to="#saveState"/>), Running or
7529 Paused virtual machine. When the machine is PoweredOff, an
7530 offline snapshot is created. When the machine is Running a live
7531 snapshot is created, and an online snapshot is created when Paused.
7532
7533 The taken snapshot is always based on the
7534 <link to="IMachine::currentSnapshot">current snapshot</link>
7535 of the associated virtual machine and becomes a new current snapshot.
7536
7537 <note>
7538 This method implicitly calls <link to="IMachine::saveSettings"/> to
7539 save all current machine settings before taking an offline snapshot.
7540 </note>
7541
7542 <result name="VBOX_E_INVALID_VM_STATE">
7543 Virtual machine currently changing state.
7544 </result>
7545 </desc>
7546 <param name="name" type="wstring" dir="in">
7547 <desc>Short name for the snapshot.</desc>
7548 </param>
7549 <param name="description" type="wstring" dir="in">
7550 <desc>Optional description of the snapshot.</desc>
7551 </param>
7552 <param name="progress" type="IProgress" dir="return">
7553 <desc>Progress object to track the operation completion.</desc>
7554 </param>
7555 </method>
7556
7557 <method name="deleteSnapshot">
7558 <desc>
7559 Starts deleting the specified snapshot asynchronously.
7560 See <link to="ISnapshot" /> for an introduction to snapshots.
7561
7562 The execution state and settings of the associated machine stored in
7563 the snapshot will be deleted. The contents of all differencing media of
7564 this snapshot will be merged with the contents of their dependent child
7565 media to keep the medium chain valid (in other words, all changes
7566 represented by media being deleted will be propagated to their child
7567 medium). After that, this snapshot's differencing medium will be
7568 deleted. The parent of this snapshot will become a new parent for all
7569 its child snapshots.
7570
7571 If the deleted snapshot is the current one, its parent snapshot will
7572 become a new current snapshot. The current machine state is not directly
7573 affected in this case, except that currently attached differencing
7574 media based on media of the deleted snapshot will be also merged as
7575 described above.
7576
7577 If the deleted snapshot is the first or current snapshot, then the
7578 respective IMachine attributes will be adjusted. Deleting the current
7579 snapshot will also implicitly call <link to="IMachine::saveSettings"/>
7580 to make all current machine settings permanent.
7581
7582 Deleting a snapshot has the following preconditions:
7583
7584 <ul>
7585 <li>Child media of all normal media of the deleted snapshot
7586 must be accessible (see <link to="IMedium::state"/>) for this
7587 operation to succeed. If only one running VM refers to all images
7588 which participates in merging the operation can be performed while
7589 the VM is running. Otherwise all virtual machines whose media are
7590 directly or indirectly based on the media of deleted snapshot must
7591 be powered off. In any case, online snapshot deleting usually is
7592 slower than the same operation without any running VM.</li>
7593
7594 <li>You cannot delete the snapshot if a medium attached to it has
7595 more than one child medium (differencing images) because otherwise
7596 merging would be impossible. This might be the case if there is
7597 more than one child snapshot or differencing images were created
7598 for other reason (e.g. implicitly because of multiple machine
7599 attachments).</li>
7600 </ul>
7601
7602 The virtual machine's <link to="IMachine::state">state</link> is
7603 changed to "DeletingSnapshot", "DeletingSnapshotOnline" or
7604 "DeletingSnapshotPaused" while this operation is in progress.
7605
7606 <note>
7607 Merging medium contents can be very time and disk space
7608 consuming, if these media are big in size and have many
7609 children. However, if the snapshot being deleted is the last
7610 (head) snapshot on the branch, the operation will be rather
7611 quick.
7612 </note>
7613 <result name="VBOX_E_INVALID_VM_STATE">
7614 The running virtual machine prevents deleting this snapshot. This
7615 happens only in very specific situations, usually snapshots can be
7616 deleted without trouble while a VM is running. The error message
7617 text explains the reason for the failure.
7618 </result>
7619 </desc>
7620 <param name="id" type="uuid" mod="string" dir="in">
7621 <desc>UUID of the snapshot to delete.</desc>
7622 </param>
7623 <param name="progress" type="IProgress" dir="return">
7624 <desc>Progress object to track the operation completion.</desc>
7625 </param>
7626 </method>
7627
7628 <method name="deleteSnapshotAndAllChildren">
7629 <desc>
7630 Starts deleting the specified snapshot and all its children
7631 asynchronously. See <link to="ISnapshot" /> for an introduction to
7632 snapshots. The conditions and many details are the same as with
7633 <link to="#deleteSnapshot"/>.
7634
7635 This operation is very fast if the snapshot subtree does not include
7636 the current state. It is still significantly faster than deleting the
7637 snapshots one by one if the current state is in the subtree and there
7638 are more than one snapshots from current state to the snapshot which
7639 marks the subtree, since it eliminates the incremental image merging.
7640
7641 <note>This API method is right now not implemented!</note>
7642
7643 <result name="VBOX_E_INVALID_VM_STATE">
7644 The running virtual machine prevents deleting this snapshot. This
7645 happens only in very specific situations, usually snapshots can be
7646 deleted without trouble while a VM is running. The error message
7647 text explains the reason for the failure.
7648 </result>
7649 <result name="E_NOTIMPL">
7650 The method is not implemented yet.
7651 </result>
7652 </desc>
7653 <param name="id" type="uuid" mod="string" dir="in">
7654 <desc>UUID of the snapshot to delete, including all its children.</desc>
7655 </param>
7656 <param name="progress" type="IProgress" dir="return">
7657 <desc>Progress object to track the operation completion.</desc>
7658 </param>
7659 </method>
7660
7661 <method name="deleteSnapshotRange">
7662 <desc>
7663 Starts deleting the specified snapshot range. This is limited to
7664 linear snapshot lists, which means there may not be any other child
7665 snapshots other than the direct sequence between the start and end
7666 snapshot. If the start and end snapshot point to the same snapshot this
7667 method is completely equivalent to <link to="#deleteSnapshot"/>. See
7668 <link to="ISnapshot" /> for an introduction to snapshots. The
7669 conditions and many details are the same as with
7670 <link to="#deleteSnapshot"/>.
7671
7672 This operation is generally faster than deleting snapshots one by one
7673 and often also needs less extra disk space before freeing up disk space
7674 by deleting the removed disk images corresponding to the snapshot.
7675
7676 <note>This API method is right now not implemented!</note>
7677
7678 <result name="VBOX_E_INVALID_VM_STATE">
7679 The running virtual machine prevents deleting this snapshot. This
7680 happens only in very specific situations, usually snapshots can be
7681 deleted without trouble while a VM is running. The error message
7682 text explains the reason for the failure.
7683 </result>
7684 <result name="E_NOTIMPL">
7685 The method is not implemented yet.
7686 </result>
7687 </desc>
7688 <param name="startId" type="uuid" mod="string" dir="in">
7689 <desc>UUID of the first snapshot to delete.</desc>
7690 </param>
7691 <param name="endId" type="uuid" mod="string" dir="in">
7692 <desc>UUID of the last snapshot to delete.</desc>
7693 </param>
7694 <param name="progress" type="IProgress" dir="return">
7695 <desc>Progress object to track the operation completion.</desc>
7696 </param>
7697 </method>
7698
7699 <method name="restoreSnapshot">
7700 <desc>
7701 Starts resetting the machine's current state to the state contained
7702 in the given snapshot, asynchronously. All current settings of the
7703 machine will be reset and changes stored in differencing media
7704 will be lost.
7705 See <link to="ISnapshot" /> for an introduction to snapshots.
7706
7707 After this operation is successfully completed, new empty differencing
7708 media are created for all normal media of the machine.
7709
7710 If the given snapshot is an online snapshot, the machine will go to
7711 the <link to="MachineState_Saved"> saved state</link>, so that the
7712 next time it is powered on, the execution state will be restored
7713 from the state of the snapshot.
7714
7715 <note>
7716 The machine must not be running, otherwise the operation will fail.
7717 </note>
7718
7719 <note>
7720 If the machine state is <link to="MachineState_Saved">Saved</link>
7721 prior to this operation, the saved state file will be implicitly
7722 deleted (as if <link to="IConsole::discardSavedState"/> were
7723 called).
7724 </note>
7725
7726 <result name="VBOX_E_INVALID_VM_STATE">
7727 Virtual machine is running.
7728 </result>
7729 </desc>
7730 <param name="snapshot" type="ISnapshot" dir="in">
7731 <desc>The snapshot to restore the VM state from.</desc>
7732 </param>
7733 <param name="progress" type="IProgress" dir="return">
7734 <desc>Progress object to track the operation completion.</desc>
7735 </param>
7736 </method>
7737
7738 <method name="teleport">
7739 <desc>
7740 Teleport the VM to a different host machine or process.
7741
7742 TODO explain the details.
7743
7744 <result name="VBOX_E_INVALID_VM_STATE">
7745 Virtual machine not running or paused.
7746 </result>
7747 </desc>
7748 <param name="hostname" type="wstring" dir="in">
7749 <desc>The name or IP of the host to teleport to.</desc>
7750 </param>
7751 <param name="tcpport" type="unsigned long" dir="in">
7752 <desc>The TCP port to connect to (1..65535).</desc>
7753 </param>
7754 <param name="password" type="wstring" dir="in">
7755 <desc>The password.</desc>
7756 </param>
7757 <param name="maxDowntime" type="unsigned long" dir="in">
7758 <desc>
7759 The maximum allowed downtime given as milliseconds. 0 is not a valid
7760 value. Recommended value: 250 ms.
7761
7762 The higher the value is, the greater the chance for a successful
7763 teleportation. A small value may easily result in the teleportation
7764 process taking hours and eventually fail.
7765
7766 <note>
7767 The current implementation treats this a guideline, not as an
7768 absolute rule.
7769 </note>
7770 </desc>
7771 </param>
7772 <param name="progress" type="IProgress" dir="return">
7773 <desc>Progress object to track the operation completion.</desc>
7774 </param>
7775 </method>
7776
7777 </interface>
7778
7779 <!--
7780 // IHost
7781 /////////////////////////////////////////////////////////////////////////
7782 -->
7783
7784 <enum
7785 name="HostNetworkInterfaceMediumType"
7786 uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
7787 >
7788 <desc>
7789 Type of encapsulation. Ethernet encapsulation includes both wired and
7790 wireless Ethernet connections.
7791 <see><link to="IHostNetworkInterface"/></see>
7792 </desc>
7793
7794 <const name="Unknown" value="0">
7795 <desc>
7796 The type of interface cannot be determined.
7797 </desc>
7798 </const>
7799 <const name="Ethernet" value="1">
7800 <desc>
7801 Ethernet frame encapsulation.
7802 </desc>
7803 </const>
7804 <const name="PPP" value="2">
7805 <desc>
7806 Point-to-point protocol encapsulation.
7807 </desc>
7808 </const>
7809 <const name="SLIP" value="3">
7810 <desc>
7811 Serial line IP encapsulation.
7812 </desc>
7813 </const>
7814 </enum>
7815
7816 <enum
7817 name="HostNetworkInterfaceStatus"
7818 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
7819 >
7820 <desc>
7821 Current status of the interface.
7822 <see><link to="IHostNetworkInterface"/></see>
7823 </desc>
7824
7825 <const name="Unknown" value="0">
7826 <desc>
7827 The state of interface cannot be determined.
7828 </desc>
7829 </const>
7830 <const name="Up" value="1">
7831 <desc>
7832 The interface is fully operational.
7833 </desc>
7834 </const>
7835 <const name="Down" value="2">
7836 <desc>
7837 The interface is not functioning.
7838 </desc>
7839 </const>
7840 </enum>
7841
7842 <enum
7843 name="HostNetworkInterfaceType"
7844 uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
7845 >
7846 <desc>
7847 Network interface type.
7848 </desc>
7849 <const name="Bridged" value="1"/>
7850 <const name="HostOnly" value="2"/>
7851 </enum>
7852
7853 <interface
7854 name="IHostNetworkInterface" extends="$unknown"
7855 uuid="87a4153d-6889-4dd6-9654-2e9ff0ae8dec"
7856 wsmap="managed"
7857 >
7858 <desc>
7859 Represents one of host's network interfaces. IP V6 address and network
7860 mask are strings of 32 hexdecimal digits grouped by four. Groups are
7861 separated by colons.
7862 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
7863 </desc>
7864 <attribute name="name" type="wstring" readonly="yes">
7865 <desc>Returns the host network interface name.</desc>
7866 </attribute>
7867
7868 <attribute name="id" type="uuid" mod="string" readonly="yes">
7869 <desc>Returns the interface UUID.</desc>
7870 </attribute>
7871
7872 <attribute name="networkName" type="wstring" readonly="yes">
7873 <desc>Returns the name of a virtual network the interface gets attached to.</desc>
7874 </attribute>
7875
7876 <attribute name="DHCPEnabled" type="boolean" readonly="yes">
7877 <desc>Specifies whether the DHCP is enabled for the interface.</desc>
7878 </attribute>
7879
7880 <attribute name="IPAddress" type="wstring" readonly="yes">
7881 <desc>Returns the IP V4 address of the interface.</desc>
7882 </attribute>
7883
7884 <attribute name="networkMask" type="wstring" readonly="yes">
7885 <desc>Returns the network mask of the interface.</desc>
7886 </attribute>
7887
7888 <attribute name="IPV6Supported" type="boolean" readonly="yes">
7889 <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
7890 </attribute>
7891
7892 <attribute name="IPV6Address" type="wstring" readonly="yes">
7893 <desc>Returns the IP V6 address of the interface.</desc>
7894 </attribute>
7895
7896 <attribute name="IPV6NetworkMaskPrefixLength" type="unsigned long" readonly="yes">
7897 <desc>Returns the length IP V6 network mask prefix of the interface.</desc>
7898 </attribute>
7899
7900 <attribute name="hardwareAddress" type="wstring" readonly="yes">
7901 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
7902 </attribute>
7903
7904 <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
7905 <desc>Type of protocol encapsulation used.</desc>
7906 </attribute>
7907
7908 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
7909 <desc>Status of the interface.</desc>
7910 </attribute>
7911
7912 <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
7913 <desc>specifies the host interface type.</desc>
7914 </attribute>
7915
7916 <method name="enableStaticIPConfig">
7917 <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
7918 <param name="IPAddress" type="wstring" dir="in">
7919 <desc>
7920 IP address.
7921 </desc>
7922 </param>
7923 <param name="networkMask" type="wstring" dir="in">
7924 <desc>
7925 network mask.
7926 </desc>
7927 </param>
7928 </method>
7929
7930 <method name="enableStaticIPConfigV6">
7931 <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
7932 <param name="IPV6Address" type="wstring" dir="in">
7933 <desc>
7934 IP address.
7935 </desc>
7936 </param>
7937 <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
7938 <desc>
7939 network mask.
7940 </desc>
7941 </param>
7942 </method>
7943
7944 <method name="enableDynamicIPConfig">
7945 <desc>enables the dynamic IP configuration.</desc>
7946 </method>
7947
7948 <method name="DHCPRediscover">
7949 <desc>refreshes the IP configuration for DHCP-enabled interface.</desc>
7950 </method>
7951
7952 </interface>
7953
7954 <interface
7955 name="IHost" extends="$unknown"
7956 uuid="30678943-32df-4830-b413-931b25ac86a0"
7957 wsmap="managed"
7958 >
7959 <desc>
7960 The IHost interface represents the physical machine that this VirtualBox
7961 installation runs on.
7962
7963 An object implementing this interface is returned by the
7964 <link to="IVirtualBox::host" /> attribute. This interface contains
7965 read-only information about the host's physical hardware (such as what
7966 processors and disks are available, what the host operating system is,
7967 and so on) and also allows for manipulating some of the host's hardware,
7968 such as global USB device filters and host interface networking.
7969
7970 </desc>
7971 <attribute name="DVDDrives" type="IMedium" readonly="yes" safearray="yes">
7972 <desc>List of DVD drives available on the host.</desc>
7973 </attribute>
7974
7975 <attribute name="floppyDrives" type="IMedium" readonly="yes" safearray="yes">
7976 <desc>List of floppy drives available on the host.</desc>
7977 </attribute>
7978
7979 <attribute name="USBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
7980 <desc>
7981 List of USB devices currently attached to the host.
7982 Once a new device is physically attached to the host computer,
7983 it appears in this list and remains there until detached.
7984
7985 <note>
7986 If USB functionality is not available in the given edition of
7987 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7988 </note>
7989 </desc>
7990 </attribute>
7991
7992 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
7993 <desc>
7994 List of USB device filters in action.
7995 When a new device is physically attached to the host computer,
7996 filters from this list are applied to it (in order they are stored
7997 in the list). The first matched filter will determine the
7998 <link to="IHostUSBDeviceFilter::action">action</link>
7999 performed on the device.
8000
8001 Unless the device is ignored by these filters, filters of all
8002 currently running virtual machines
8003 (<link to="IUSBController::deviceFilters"/>) are applied to it.
8004
8005 <note>
8006 If USB functionality is not available in the given edition of
8007 VirtualBox, this method will set the result code to @c E_NOTIMPL.
8008 </note>
8009
8010 <see><link to="IHostUSBDeviceFilter"/>,
8011 <link to="USBDeviceState"/></see>
8012 </desc>
8013 </attribute>
8014
8015 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
8016 <desc>List of host network interfaces currently defined on the host.</desc>
8017 </attribute>
8018
8019 <attribute name="processorCount" type="unsigned long" readonly="yes">
8020 <desc>Number of (logical) CPUs installed in the host system.</desc>
8021 </attribute>
8022
8023 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
8024 <desc>Number of (logical) CPUs online in the host system.</desc>
8025 </attribute>
8026
8027 <attribute name="processorCoreCount" type="unsigned long" readonly="yes">
8028 <desc>Number of physical processor cores installed in the host system.</desc>
8029 </attribute>
8030
8031 <method name="getProcessorSpeed">
8032 <desc>Query the (approximate) maximum speed of a specified host CPU in
8033 Megahertz.
8034 </desc>
8035 <param name="cpuId" type="unsigned long" dir="in">
8036 <desc>
8037 Identifier of the CPU.
8038 </desc>
8039 </param>
8040 <param name="speed" type="unsigned long" dir="return">
8041 <desc>
8042 Speed value. 0 is returned if value is not known or @a cpuId is
8043 invalid.
8044 </desc>
8045 </param>
8046 </method>
8047
8048 <method name="getProcessorFeature">
8049 <desc>Query whether a CPU feature is supported or not.</desc>
8050 <param name="feature" type="ProcessorFeature" dir="in">
8051 <desc>
8052 CPU Feature identifier.
8053 </desc>
8054 </param>
8055 <param name="supported" type="boolean" dir="return">
8056 <desc>
8057 Feature is supported or not.
8058 </desc>
8059 </param>
8060 </method>
8061
8062 <method name="getProcessorDescription">
8063 <desc>Query the model string of a specified host CPU.
8064 </desc>
8065 <param name="cpuId" type="unsigned long" dir="in">
8066 <desc>
8067 Identifier of the CPU.
8068 <note>
8069 The current implementation might not necessarily return the
8070 description for this exact CPU.
8071 </note>
8072 </desc>
8073 </param>
8074 <param name="description" type="wstring" dir="return">
8075 <desc>
8076 Model string. An empty string is returned if value is not known or
8077 @a cpuId is invalid.
8078 </desc>
8079 </param>
8080 </method>
8081
8082 <method name="getProcessorCPUIDLeaf">
8083 <desc>
8084 Returns the CPU cpuid information for the specified leaf.
8085 </desc>
8086 <param name="cpuId" type="unsigned long" dir="in">
8087 <desc>
8088 Identifier of the CPU. The CPU most be online.
8089 <note>
8090 The current implementation might not necessarily return the
8091 description for this exact CPU.
8092 </note>
8093 </desc>
8094 </param>
8095 <param name="leaf" type="unsigned long" dir="in">
8096 <desc>
8097 CPUID leaf index (eax).
8098 </desc>
8099 </param>
8100 <param name="subLeaf" type="unsigned long" dir="in">
8101 <desc>
8102 CPUID leaf sub index (ecx). This currently only applies to cache
8103 information on Intel CPUs. Use 0 if retrieving values for
8104 <link to="IMachine::setCPUIDLeaf"/>.
8105 </desc>
8106 </param>
8107 <param name="valEax" type="unsigned long" dir="out">
8108 <desc>
8109 CPUID leaf value for register eax.
8110 </desc>
8111 </param>
8112 <param name="valEbx" type="unsigned long" dir="out">
8113 <desc>
8114 CPUID leaf value for register ebx.
8115 </desc>
8116 </param>
8117 <param name="valEcx" type="unsigned long" dir="out">
8118 <desc>
8119 CPUID leaf value for register ecx.
8120 </desc>
8121 </param>
8122 <param name="valEdx" type="unsigned long" dir="out">
8123 <desc>
8124 CPUID leaf value for register edx.
8125 </desc>
8126 </param>
8127 </method>
8128
8129 <attribute name="memorySize" type="unsigned long" readonly="yes">
8130 <desc>Amount of system memory in megabytes installed in the host system.</desc>
8131 </attribute>
8132
8133 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
8134 <desc>Available system memory in the host system.</desc>
8135 </attribute>
8136
8137 <attribute name="operatingSystem" type="wstring" readonly="yes">
8138 <desc>Name of the host system's operating system.</desc>
8139 </attribute>
8140
8141 <attribute name="OSVersion" type="wstring" readonly="yes">
8142 <desc>Host operating system's version string.</desc>
8143 </attribute>
8144
8145 <attribute name="UTCTime" type="long long" readonly="yes">
8146 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
8147 </attribute>
8148
8149 <attribute name="acceleration3DAvailable" type="boolean" readonly="yes">
8150 <desc>Returns @c true when the host supports 3D hardware acceleration.</desc>
8151 </attribute>
8152
8153 <method name="createHostOnlyNetworkInterface">
8154 <desc>
8155 Creates a new adapter for Host Only Networking.
8156 <result name="E_INVALIDARG">
8157 Host network interface @a name already exists.
8158 </result>
8159 </desc>
8160 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
8161 <desc>
8162 Created host interface object.
8163 </desc>
8164 </param>
8165 <param name="progress" type="IProgress" dir="return">
8166 <desc>
8167 Progress object to track the operation completion.
8168 </desc>
8169 </param>
8170 </method>
8171
8172 <method name="removeHostOnlyNetworkInterface">
8173 <desc>
8174 Removes the given Host Only Networking interface.
8175 <result name="VBOX_E_OBJECT_NOT_FOUND">
8176 No host network interface matching @a id found.
8177 </result>
8178 </desc>
8179 <param name="id" type="uuid" mod="string" dir="in">
8180 <desc>
8181 Adapter GUID.
8182 </desc>
8183 </param>
8184 <param name="progress" type="IProgress" dir="return">
8185 <desc>
8186 Progress object to track the operation completion.
8187 </desc>
8188 </param>
8189 </method>
8190
8191 <method name="createUSBDeviceFilter">
8192 <desc>
8193 Creates a new USB device filter. All attributes except
8194 the filter name are set to empty (any match),
8195 <i>active</i> is @c false (the filter is not active).
8196
8197 The created filter can be added to the list of filters using
8198 <link to="#insertUSBDeviceFilter"/>.
8199
8200 <see><link to="#USBDeviceFilters"/></see>
8201 </desc>
8202 <param name="name" type="wstring" dir="in">
8203 <desc>
8204 Filter name. See <link to="IUSBDeviceFilter::name"/> for more information.
8205 </desc>
8206 </param>
8207 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
8208 <desc>Created filter object.</desc>
8209 </param>
8210 </method>
8211
8212 <method name="insertUSBDeviceFilter">
8213 <desc>
8214 Inserts the given USB device to the specified position
8215 in the list of filters.
8216
8217 Positions are numbered starting from @c 0. If the specified
8218 position is equal to or greater than the number of elements in
8219 the list, the filter is added at the end of the collection.
8220
8221 <note>
8222 Duplicates are not allowed, so an attempt to insert a
8223 filter already in the list is an error.
8224 </note>
8225 <note>
8226 If USB functionality is not available in the given edition of
8227 VirtualBox, this method will set the result code to @c E_NOTIMPL.
8228 </note>
8229
8230 <see><link to="#USBDeviceFilters"/></see>
8231
8232 <result name="VBOX_E_INVALID_OBJECT_STATE">
8233 USB device filter is not created within this VirtualBox instance.
8234 </result>
8235 <result name="E_INVALIDARG">
8236 USB device filter already in list.
8237 </result>
8238
8239 </desc>
8240 <param name="position" type="unsigned long" dir="in">
8241 <desc>Position to insert the filter to.</desc>
8242 </param>
8243 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
8244 <desc>USB device filter to insert.</desc>
8245 </param>
8246 </method>
8247
8248 <method name="removeUSBDeviceFilter">
8249 <desc>
8250 Removes a USB device filter from the specified position in the
8251 list of filters.
8252
8253 Positions are numbered starting from @c 0. Specifying a
8254 position equal to or greater than the number of elements in
8255 the list will produce an error.
8256
8257 <note>
8258 If USB functionality is not available in the given edition of
8259 VirtualBox, this method will set the result code to @c E_NOTIMPL.
8260 </note>
8261
8262 <see><link to="#USBDeviceFilters"/></see>
8263
8264 <result name="E_INVALIDARG">
8265 USB device filter list empty or invalid @a position.
8266 </result>
8267
8268 </desc>
8269 <param name="position" type="unsigned long" dir="in">
8270 <desc>Position to remove the filter from.</desc>
8271 </param>
8272 </method>
8273
8274 <method name="findHostDVDDrive">
8275 <desc>
8276 Searches for a host DVD drive with the given @c name.
8277
8278 <result name="VBOX_E_OBJECT_NOT_FOUND">
8279 Given @c name does not correspond to any host drive.
8280 </result>
8281
8282 </desc>
8283 <param name="name" type="wstring" dir="in">
8284 <desc>Name of the host drive to search for</desc>
8285 </param>
8286 <param name="drive" type="IMedium" dir="return">
8287 <desc>Found host drive object</desc>
8288 </param>
8289 </method>
8290
8291 <method name="findHostFloppyDrive">
8292 <desc>
8293 Searches for a host floppy drive with the given @c name.
8294
8295 <result name="VBOX_E_OBJECT_NOT_FOUND">
8296 Given @c name does not correspond to any host floppy drive.
8297 </result>
8298
8299 </desc>
8300 <param name="name" type="wstring" dir="in">
8301 <desc>Name of the host floppy drive to search for</desc>
8302 </param>
8303 <param name="drive" type="IMedium" dir="return">
8304 <desc>Found host floppy drive object</desc>
8305 </param>
8306 </method>
8307
8308 <method name="findHostNetworkInterfaceByName">
8309 <desc>
8310 Searches through all host network interfaces for an interface with
8311 the given @c name.
8312 <note>
8313 The method returns an error if the given @c name does not
8314 correspond to any host network interface.
8315 </note>
8316 </desc>
8317 <param name="name" type="wstring" dir="in">
8318 <desc>Name of the host network interface to search for.</desc>
8319 </param>
8320 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
8321 <desc>Found host network interface object.</desc>
8322 </param>
8323 </method>
8324 <method name="findHostNetworkInterfaceById">
8325 <desc>
8326 Searches through all host network interfaces for an interface with
8327 the given GUID.
8328 <note>
8329 The method returns an error if the given GUID does not
8330 correspond to any host network interface.
8331 </note>
8332 </desc>
8333 <param name="id" type="uuid" mod="string" dir="in">
8334 <desc>GUID of the host network interface to search for.</desc>
8335 </param>
8336 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
8337 <desc>Found host network interface object.</desc>
8338 </param>
8339 </method>
8340 <method name="findHostNetworkInterfacesOfType">
8341 <desc>
8342 Searches through all host network interfaces and returns a list of interfaces of the specified type
8343 </desc>
8344 <param name="type" type="HostNetworkInterfaceType" dir="in">
8345 <desc>type of the host network interfaces to search for.</desc>
8346 </param>
8347 <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
8348 <desc>Found host network interface objects.</desc>
8349 </param>
8350 </method>
8351
8352 <method name="findUSBDeviceById">
8353 <desc>
8354 Searches for a USB device with the given UUID.
8355
8356 <result name="VBOX_E_OBJECT_NOT_FOUND">
8357 Given @c id does not correspond to any USB device.
8358 </result>
8359
8360 <see><link to="IUSBDevice::id"/></see>
8361 </desc>
8362 <param name="id" type="uuid" mod="string" dir="in">
8363 <desc>UUID of the USB device to search for.</desc>
8364 </param>
8365 <param name="device" type="IHostUSBDevice" dir="return">
8366 <desc>Found USB device object.</desc>
8367 </param>
8368 </method>
8369
8370 <method name="findUSBDeviceByAddress">
8371 <desc>
8372 Searches for a USB device with the given host address.
8373
8374 <result name="VBOX_E_OBJECT_NOT_FOUND">
8375 Given @c name does not correspond to any USB device.
8376 </result>
8377
8378 <see><link to="IUSBDevice::address"/></see>
8379 </desc>
8380 <param name="name" type="wstring" dir="in">
8381 <desc>
8382 Address of the USB device (as assigned by the host) to
8383 search for.
8384 </desc>
8385 </param>
8386 <param name="device" type="IHostUSBDevice" dir="return">
8387 <desc>Found USB device object.</desc>
8388 </param>
8389 </method>
8390
8391 <method name="generateMACAddress">
8392 <desc>
8393 Generates a valid Ethernet MAC address, 12 hexadecimal characters.
8394 </desc>
8395 <param name="address" type="wstring" dir="return">
8396 <desc>New Ethernet MAC address.</desc>
8397 </param>
8398 </method>
8399
8400 </interface>
8401
8402 <!--
8403 // ISystemProperties
8404 /////////////////////////////////////////////////////////////////////////
8405 -->
8406
8407 <interface
8408 name="ISystemProperties"
8409 extends="$unknown"
8410 uuid="413ea94c-efd9-491e-81fc-5df0c4d864bb"
8411 wsmap="managed"
8412 >
8413 <desc>
8414 The ISystemProperties interface represents global properties of the given
8415 VirtualBox installation.
8416
8417 These properties define limits and default values for various attributes
8418 and parameters. Most of the properties are read-only, but some can be
8419 changed by a user.
8420 </desc>
8421
8422 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
8423 <desc>Minimum guest system memory in Megabytes.</desc>
8424 </attribute>
8425
8426 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
8427 <desc>Maximum guest system memory in Megabytes.</desc>
8428 </attribute>
8429
8430 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
8431 <desc>Minimum guest video memory in Megabytes.</desc>
8432 </attribute>
8433
8434 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
8435 <desc>Maximum guest video memory in Megabytes.</desc>
8436 </attribute>
8437
8438 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
8439 <desc>Minimum CPU count.</desc>
8440 </attribute>
8441
8442 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
8443 <desc>Maximum CPU count.</desc>
8444 </attribute>
8445
8446 <attribute name="maxGuestMonitors" type="unsigned long" readonly="yes">
8447 <desc>Maximum of monitors which could be connected.</desc>
8448 </attribute>
8449
8450 <attribute name="infoVDSize" type="long long" readonly="yes">
8451 <desc>Maximum size of a virtual disk image in bytes. Informational value,
8452 does not reflect the limits of any virtual disk image format.</desc>
8453 </attribute>
8454
8455 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
8456 <desc>
8457 Maximum number of serial ports associated with every
8458 <link to="IMachine"/> instance.
8459 </desc>
8460 </attribute>
8461
8462 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
8463 <desc>
8464 Maximum number of parallel ports associated with every
8465 <link to="IMachine"/> instance.
8466 </desc>
8467 </attribute>
8468
8469 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
8470 <desc>
8471 Maximum device position in the boot order. This value corresponds
8472 to the total number of devices a machine can boot from, to make it
8473 possible to include all possible devices to the boot list.
8474 <see><link to="IMachine::setBootOrder"/></see>
8475 </desc>
8476 </attribute>
8477
8478 <attribute name="defaultMachineFolder" type="wstring">
8479 <desc>
8480 Full path to the default directory used to create new or open
8481 existing machines when a machine settings file name contains no
8482 path.
8483
8484 Starting with VirtualBox 4.0, by default, this attribute contains
8485 the full path of folder named "VirtualBox VMs" in the user's
8486 home directory, which depends on the host platform.
8487
8488 When setting this attribute, a full path must be specified.
8489 Setting this property to @c null or an empty string or the
8490 special value "Machines" (for compatibility reasons) will restore
8491 that default value.
8492
8493 If the folder specified herein does not exist, it will be created
8494 automatically as needed.
8495
8496 <see>
8497 <link to="IVirtualBox::createMachine"/>,
8498 <link to="IVirtualBox::openMachine"/>
8499 </see>
8500 </desc>
8501 </attribute>
8502
8503 <attribute name="mediumFormats" type="IMediumFormat" safearray="yes" readonly="yes">
8504 <desc>
8505 List of all medium storage formats supported by this VirtualBox
8506 installation.
8507
8508 Keep in mind that the medium format identifier
8509 (<link to="IMediumFormat::id"/>) used in other API calls like
8510 <link to="IVirtualBox::createHardDisk"/> to refer to a particular
8511 medium format is a case-insensitive string. This means that, for
8512 example, all of the following strings:
8513 <pre>
8514 "VDI"
8515 "vdi"
8516 "VdI"</pre>
8517 refer to the same medium format.
8518
8519 Note that the virtual medium framework is backend-based, therefore
8520 the list of supported formats depends on what backends are currently
8521 installed.
8522
8523 <see><link to="IMediumFormat"/></see>
8524 </desc>
8525 </attribute>
8526
8527 <attribute name="defaultHardDiskFormat" type="wstring">
8528 <desc>
8529 Identifier of the default medium format used by VirtualBox.
8530
8531 The medium format set by this attribute is used by VirtualBox
8532 when the medium format was not specified explicitly. One example is
8533 <link to="IVirtualBox::createHardDisk"/> with the empty
8534 format argument. A more complex example is implicit creation of
8535 differencing media when taking a snapshot of a virtual machine:
8536 this operation will try to use a format of the parent medium first
8537 and if this format does not support differencing media the default
8538 format specified by this argument will be used.
8539
8540 The list of supported medium formats may be obtained by the
8541 <link to="#mediumFormats"/> call. Note that the default medium
8542 format must have a capability to create differencing media;
8543 otherwise operations that create media implicitly may fail
8544 unexpectedly.
8545
8546 The initial value of this property is <tt>"VDI"</tt> in the current
8547 version of the VirtualBox product, but may change in the future.
8548
8549 <note>
8550 Setting this property to @c null or empty string will restore the
8551 initial value.
8552 </note>
8553
8554 <see>
8555 <link to="#mediumFormats"/>,
8556 <link to="IMediumFormat::id"/>,
8557 <link to="IVirtualBox::createHardDisk"/>
8558 </see>
8559 </desc>
8560 </attribute>
8561
8562 <attribute name="freeDiskSpaceWarning" type="long long">
8563 <desc>Issue a warning if the free disk space is below (or in some disk
8564 intensive operation is expected to go below) the given size in
8565 bytes.</desc>
8566 </attribute>
8567
8568 <attribute name="freeDiskSpacePercentWarning" type="unsigned long">
8569 <desc>Issue a warning if the free disk space is below (or in some disk
8570 intensive operation is expected to go below) the given percentage.</desc>
8571 </attribute>
8572
8573 <attribute name="freeDiskSpaceError" type="long long">
8574 <desc>Issue an error if the free disk space is below (or in some disk
8575 intensive operation is expected to go below) the given size in
8576 bytes.</desc>
8577 </attribute>
8578
8579 <attribute name="freeDiskSpacePercentError" type="unsigned long">
8580 <desc>Issue an error if the free disk space is below (or in some disk
8581 intensive operation is expected to go below) the given percentage.</desc>
8582 </attribute>
8583
8584 <attribute name="VRDEAuthLibrary" type="wstring">
8585 <desc>
8586 Library that provides authentication for Remote Desktop clients. The library
8587 is used if a virtual machine's authentication type is set to "external"
8588 in the VM RemoteDisplay configuration.
8589
8590 The system library extension (".DLL" or ".so") must be omitted.
8591 A full path can be specified; if not, then the library must reside on the
8592 system's default library path.
8593
8594 The default value of this property is <tt>"VBoxAuth"</tt>. There is a library
8595 of that name in one of the default VirtualBox library directories.
8596
8597 For details about VirtualBox authentication libraries and how to implement
8598 them, please refer to the VirtualBox manual.
8599
8600 <note>
8601 Setting this property to @c null or empty string will restore the
8602 initial value.
8603 </note>
8604 </desc>
8605 </attribute>
8606
8607 <attribute name="webServiceAuthLibrary" type="wstring">
8608 <desc>
8609 Library that provides authentication for webservice clients. The library
8610 is used if a virtual machine's authentication type is set to "external"
8611 in the VM RemoteDisplay configuration and will be called from
8612 within the <link to="IWebsessionManager::logon" /> implementation.
8613
8614 As opposed to <link to="ISystemProperties::VRDEAuthLibrary" />,
8615 there is no per-VM setting for this, as the webservice is a global
8616 resource (if it is running). Only for this setting (for the webservice),
8617 setting this value to a literal <tt>"null"</tt> string disables authentication,
8618 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
8619 no matter what user name and password are supplied.
8620
8621 The initial value of this property is <tt>"VBoxAuth"</tt>,
8622 meaning that the webservice will use the same authentication
8623 library that is used by default for VRDE (again, see
8624 <link to="ISystemProperties::VRDEAuthLibrary" />).
8625 The format and calling convention of authentication libraries
8626 is the same for the webservice as it is for VRDE.
8627
8628 <note>
8629 Setting this property to @c null or empty string will restore the
8630 initial value.
8631 </note>
8632 </desc>
8633 </attribute>
8634
8635 <attribute name="defaultVRDEExtPack" type="wstring">
8636 <desc>
8637 The name of the extension pack providing the default VRDE.
8638
8639 This attribute is for choosing between multiple extension packs
8640 providing VRDE. If only one is installed, it will automatically be the
8641 default one. The attribute value can be empty if no VRDE extension
8642 pack is installed.
8643
8644 For details about VirtualBox Remote Desktop Extension and how to
8645 implement one, please refer to the VirtualBox SDK.
8646 </desc>
8647 </attribute>
8648
8649 <attribute name="logHistoryCount" type="unsigned long">
8650 <desc>
8651 This value specifies how many old release log files are kept.
8652 </desc>
8653 </attribute>
8654
8655 <attribute name="defaultAudioDriver" type="AudioDriverType" readonly="yes">
8656 <desc>This value hold the default audio driver for the current
8657 system.</desc>
8658 </attribute>
8659
8660 <attribute name="autostartDatabasePath" type="wstring">
8661 <desc>
8662 The path to the autostart database. Depending on the host this might
8663 be a filesystem path or something else.
8664 </desc>
8665 </attribute>
8666
8667 <attribute name="defaultAdditionsISO" type="wstring">
8668 <desc>
8669 The path to the default Guest Additions ISO image. Can be empty if
8670 the location is not known in this installation.
8671 </desc>
8672 </attribute>
8673
8674 <attribute name="defaultFrontend" type="wstring">
8675 <desc>
8676 Selects which VM frontend should be used by default when launching
8677 a VM through the <link to="IMachine::launchVMProcess" /> method.
8678 Empty or @c null strings do not define a particular default, it is up
8679 to <link to="IMachine::launchVMProcess" /> to select one. See the
8680 description of <link to="IMachine::launchVMProcess" /> for the valid
8681 frontend types.
8682
8683 This global setting is overridden by the per-VM attribute
8684 <link to="IMachine::defaultFrontend" /> or a frontend type
8685 passed to <link to="IMachine::launchVMProcess" />.
8686 </desc>
8687 </attribute>
8688
8689 <method name="getMaxNetworkAdapters">
8690 <desc>
8691 Maximum total number of network adapters associated with every
8692 <link to="IMachine"/> instance.
8693 </desc>
8694
8695 <param name="chipset" type="ChipsetType" dir="in">
8696 <desc>The chipset type to get the value for.</desc>
8697 </param>
8698
8699
8700 <param name="maxNetworkAdapters" type="unsigned long" dir="return">
8701 <desc>The maximum total number of network adapters allowed.</desc>
8702 </param>
8703
8704 </method>
8705
8706 <method name="getMaxNetworkAdaptersOfType">
8707 <desc>
8708 Maximum number of network adapters of a given attachment type,
8709 associated with every <link to="IMachine"/> instance.
8710 </desc>
8711
8712 <param name="chipset" type="ChipsetType" dir="in">
8713 <desc>The chipset type to get the value for.</desc>
8714 </param>
8715
8716 <param name="type" type="NetworkAttachmentType" dir="in">
8717 <desc>Type of attachment.</desc>
8718 </param>
8719
8720 <param name="maxNetworkAdapters" type="unsigned long" dir="return">
8721 <desc>The maximum number of network adapters allowed for
8722 particular chipset and attachment type.</desc>
8723 </param>
8724
8725 </method>
8726
8727
8728 <method name="getMaxDevicesPerPortForStorageBus">
8729 <desc>Returns the maximum number of devices which can be attached to a port
8730 for the given storage bus.</desc>
8731
8732 <param name="bus" type="StorageBus" dir="in">
8733 <desc>The storage bus type to get the value for.</desc>
8734 </param>
8735
8736 <param name="maxDevicesPerPort" type="unsigned long" dir="return">
8737 <desc>The maximum number of devices which can be attached to the port for the given
8738 storage bus.</desc>
8739 </param>
8740 </method>
8741
8742 <method name="getMinPortCountForStorageBus">
8743 <desc>Returns the minimum number of ports the given storage bus supports.</desc>
8744
8745 <param name="bus" type="StorageBus" dir="in">
8746 <desc>The storage bus type to get the value for.</desc>
8747 </param>
8748
8749 <param name="minPortCount" type="unsigned long" dir="return">
8750 <desc>The minimum number of ports for the given storage bus.</desc>
8751 </param>
8752 </method>
8753
8754 <method name="getMaxPortCountForStorageBus">
8755 <desc>Returns the maximum number of ports the given storage bus supports.</desc>
8756
8757 <param name="bus" type="StorageBus" dir="in">
8758 <desc>The storage bus type to get the value for.</desc>
8759 </param>
8760
8761 <param name="maxPortCount" type="unsigned long" dir="return">
8762 <desc>The maximum number of ports for the given storage bus.</desc>
8763 </param>
8764 </method>
8765
8766 <method name="getMaxInstancesOfStorageBus">
8767 <desc>Returns the maximum number of storage bus instances which
8768 can be configured for each VM. This corresponds to the number of
8769 storage controllers one can have. Value may depend on chipset type
8770 used.</desc>
8771
8772 <param name="chipset" type="ChipsetType" dir="in">
8773 <desc>The chipset type to get the value for.</desc>
8774 </param>
8775
8776 <param name="bus" type="StorageBus" dir="in">
8777 <desc>The storage bus type to get the value for.</desc>
8778 </param>
8779
8780 <param name="maxInstances" type="unsigned long" dir="return">
8781 <desc>The maximum number of instances for the given storage bus.</desc>
8782 </param>
8783 </method>
8784
8785 <method name="getDeviceTypesForStorageBus">
8786 <desc>Returns list of all the supported device types
8787 (<link to="DeviceType"/>) for the given type of storage
8788 bus.</desc>
8789
8790 <param name="bus" type="StorageBus" dir="in">
8791 <desc>The storage bus type to get the value for.</desc>
8792 </param>
8793
8794 <param name="deviceTypes" type="DeviceType" safearray="yes" dir="return">
8795 <desc>The list of all supported device types for the given storage bus.</desc>
8796 </param>
8797 </method>
8798
8799 <method name="getDefaultIoCacheSettingForStorageController">
8800 <desc>Returns the default I/O cache setting for the
8801 given storage controller</desc>
8802
8803 <param name="controllerType" type="StorageControllerType" dir="in">
8804 <desc>The storage controller to the setting for.</desc>
8805 </param>
8806
8807 <param name="enabled" type="boolean" dir="return">
8808 <desc>Returned flag indicating the default value</desc>
8809 </param>
8810 </method>
8811 </interface>
8812
8813 <!--
8814 // IGuest
8815 /////////////////////////////////////////////////////////////////////////
8816 -->
8817
8818 <interface
8819 name="IGuestOSType" extends="$unknown"
8820 uuid="6d968f9a-858b-4c50-bf17-241f069e94c2"
8821 wsmap="struct"
8822 >
8823 <desc>
8824 </desc>
8825
8826 <attribute name="familyId" type="wstring" readonly="yes">
8827 <desc>Guest OS family identifier string.</desc>
8828 </attribute>
8829
8830 <attribute name="familyDescription" type="wstring" readonly="yes">
8831 <desc>Human readable description of the guest OS family.</desc>
8832 </attribute>
8833
8834 <attribute name="id" type="wstring" readonly="yes">
8835 <desc>Guest OS identifier string.</desc>
8836 </attribute>
8837
8838 <attribute name="description" type="wstring" readonly="yes">
8839 <desc>Human readable description of the guest OS.</desc>
8840 </attribute>
8841
8842 <attribute name="is64Bit" type="boolean" readonly="yes">
8843 <desc>Returns @c true if the given OS is 64-bit</desc>
8844 </attribute>
8845
8846 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
8847 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
8848 </attribute>
8849
8850 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
8851 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
8852 </attribute>
8853
8854 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
8855 <desc>Recommended RAM size in Megabytes.</desc>
8856 </attribute>
8857
8858 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
8859 <desc>Recommended video RAM size in Megabytes.</desc>
8860 </attribute>
8861
8862 <attribute name="recommended2DVideoAcceleration" type="boolean" readonly="yes">
8863 <desc>Returns @c true if 2D video acceleration is recommended for this OS type.</desc>
8864 </attribute>
8865
8866 <attribute name="recommended3DAcceleration" type="boolean" readonly="yes">
8867 <desc>Returns @c true if 3D acceleration is recommended for this OS type.</desc>
8868 </attribute>
8869
8870 <attribute name="recommendedHDD" type="long long" readonly="yes">
8871 <desc>Recommended hard disk size in bytes.</desc>
8872 </attribute>
8873
8874 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
8875 <desc>Returns recommended network adapter for this OS type.</desc>
8876 </attribute>
8877
8878 <attribute name="recommendedPAE" type="boolean" readonly="yes">
8879 <desc>Returns @c true if using PAE is recommended for this OS type.</desc>
8880 </attribute>
8881
8882 <attribute name="recommendedDVDStorageController" type="StorageControllerType" readonly="yes">
8883 <desc>Recommended storage controller type for DVD/CD drives.</desc>
8884 </attribute>
8885
8886 <attribute name="recommendedDVDStorageBus" type="StorageBus" readonly="yes">
8887 <desc>Recommended storage bus type for DVD/CD drives.</desc>
8888 </attribute>
8889
8890 <attribute name="recommendedHDStorageController" type="StorageControllerType" readonly="yes">
8891 <desc>Recommended storage controller type for HD drives.</desc>
8892 </attribute>
8893
8894 <attribute name="recommendedHDStorageBus" type="StorageBus" readonly="yes">
8895 <desc>Recommended storage bus type for HD drives.</desc>
8896 </attribute>
8897
8898 <attribute name="recommendedFirmware" type="FirmwareType" readonly="yes">
8899 <desc>Recommended firmware type.</desc>
8900 </attribute>
8901
8902 <attribute name="recommendedUSBHID" type="boolean" readonly="yes">
8903 <desc>Returns @c true if using USB Human Interface Devices, such as keyboard and mouse recommended.</desc>
8904 </attribute>
8905
8906 <attribute name="recommendedHPET" type="boolean" readonly="yes">
8907 <desc>Returns @c true if using HPET is recommended for this OS type.</desc>
8908 </attribute>
8909
8910 <attribute name="recommendedUSBTablet" type="boolean" readonly="yes">
8911 <desc>Returns @c true if using a USB Tablet is recommended.</desc>
8912 </attribute>
8913
8914 <attribute name="recommendedRTCUseUTC" type="boolean" readonly="yes">
8915 <desc>Returns @c true if the RTC of this VM should be set to UTC</desc>
8916 </attribute>
8917
8918 <attribute name="recommendedChipset" type="ChipsetType" readonly="yes">
8919 <desc>Recommended chipset type.</desc>
8920 </attribute>
8921
8922 <attribute name="recommendedAudioController" type="AudioControllerType" readonly="yes">
8923 <desc>Recommended audio type.</desc>
8924 </attribute>
8925
8926 <attribute name="recommendedFloppy" type="boolean" readonly="yes">
8927 <desc>Returns @c true a floppy drive is recommended for this OS type.</desc>
8928 </attribute>
8929
8930 <attribute name="recommendedUSB" type="boolean" readonly="yes">
8931 <desc>Returns @c true a USB controller is recommended for this OS type.</desc>
8932 </attribute>
8933
8934 </interface>
8935
8936 <enum
8937 name="AdditionsFacilityType"
8938 uuid="98f7f957-89fb-49b6-a3b1-31e3285eb1d8"
8939 >
8940 <desc>
8941 Guest Additions facility IDs.
8942 </desc>
8943
8944 <const name="None" value="0">
8945 <desc>No/invalid facility.</desc>
8946 </const>
8947 <const name="VBoxGuestDriver" value="20">
8948 <desc>VirtualBox base driver (VBoxGuest).</desc>
8949 </const>
8950 <const name="AutoLogon" value="90">
8951 <desc>Auto-logon modules (VBoxGINA, VBoxCredProv, pam_vbox).</desc>
8952 </const>
8953 <const name="VBoxService" value="100">
8954 <desc>VirtualBox system service (VBoxService).</desc>
8955 </const>
8956 <const name="VBoxTrayClient" value="101">
8957 <desc>VirtualBox desktop integration (VBoxTray on Windows, VBoxClient on non-Windows).</desc>
8958 </const>
8959 <const name="Seamless" value="1000">
8960 <desc>Seamless guest desktop integration.</desc>
8961 </const>
8962 <const name="Graphics" value="1100">
8963 <desc>Guest graphics mode. If not enabled, seamless rendering will not work, resize hints
8964 are not immediately acted on and guest display resizes are probably not initiated by
8965 the guest additions.
8966 </desc>
8967 </const>
8968 <const name="All" value="2147483646">
8969 <desc>All facilities selected.</desc>
8970 </const>
8971 </enum>
8972
8973 <enum
8974 name="AdditionsFacilityClass"
8975 uuid="446451b2-c88d-4e5d-84c9-91bc7f533f5f"
8976 >
8977 <desc>
8978 Guest Additions facility classes.
8979 </desc>
8980
8981 <const name="None" value="0">
8982 <desc>No/invalid class.</desc>
8983 </const>
8984 <const name="Driver" value="10">
8985 <desc>Driver.</desc>
8986 </const>
8987 <const name="Service" value="30">
8988 <desc>System service.</desc>
8989 </const>
8990 <const name="Program" value="50">
8991 <desc>Program.</desc>
8992 </const>
8993 <const name="Feature" value="100">
8994 <desc>Feature.</desc>
8995 </const>
8996 <const name="ThirdParty" value="999">
8997 <desc>Third party.</desc>
8998 </const>
8999 <const name="All" value="2147483646">
9000 <desc>All facility classes selected.</desc>
9001 </const>
9002 </enum>
9003
9004 <enum
9005 name="AdditionsFacilityStatus"
9006 uuid="ce06f9e1-394e-4fe9-9368-5a88c567dbde"
9007 >
9008 <desc>
9009 Guest Additions facility states.
9010 </desc>
9011
9012 <const name="Inactive" value="0">
9013 <desc>Facility is not active.</desc>
9014 </const>
9015 <const name="Paused" value="1">
9016 <desc>Facility has been paused.</desc>
9017 </const>
9018 <const name="PreInit" value="20">
9019 <desc>Facility is preparing to initialize.</desc>
9020 </const>
9021 <const name="Init" value="30">
9022 <desc>Facility is initializing.</desc>
9023 </const>
9024 <const name="Active" value="50">
9025 <desc>Facility is up and running.</desc>
9026 </const>
9027 <const name="Terminating" value="100">
9028 <desc>Facility is shutting down.</desc>
9029 </const>
9030 <const name="Terminated" value="101">
9031 <desc>Facility successfully shut down.</desc>
9032 </const>
9033 <const name="Failed" value="800">
9034 <desc>Facility failed to start.</desc>
9035 </const>
9036 <const name="Unknown" value="999">
9037 <desc>Facility status is unknown.</desc>
9038 </const>
9039 </enum>
9040
9041 <interface
9042 name="IAdditionsFacility" extends="$unknown"
9043 uuid="54992946-6af1-4e49-98ec-58b558b7291e"
9044 wsmap="struct"
9045 >
9046 <desc>
9047 Structure representing a Guest Additions facility.
9048 </desc>
9049
9050 <attribute name="classType" type="AdditionsFacilityClass" readonly="yes">
9051 <desc>The class this facility is part of.</desc>
9052 </attribute>
9053
9054 <attribute name="lastUpdated" type="long long" readonly="yes">
9055 <desc>
9056 Time stamp of the last status update,
9057 in milliseconds since 1970-01-01 UTC.
9058 </desc>
9059 </attribute>
9060
9061 <attribute name="name" type="wstring" readonly="yes">
9062 <desc>The facility's friendly name.</desc>
9063 </attribute>
9064
9065 <attribute name="status" type="AdditionsFacilityStatus" readonly="yes">
9066 <desc>The current status.</desc>
9067 </attribute>
9068
9069 <attribute name="type" type="AdditionsFacilityType" readonly="yes">
9070 <desc>The facility's type ID.</desc>
9071 </attribute>
9072 </interface>
9073
9074 <enum
9075 name="AdditionsRunLevelType"
9076 uuid="a25417ee-a9dd-4f5b-b0dc-377860087754"
9077 >
9078 <desc>
9079 Guest Additions run level type.
9080 </desc>
9081
9082 <const name="None" value="0">
9083 <desc>Guest Additions are not loaded.</desc>
9084 </const>
9085 <const name="System" value="1">
9086 <desc>Guest drivers are loaded.</desc>
9087 </const>
9088 <const name="Userland" value="2">
9089 <desc>Common components (such as application services) are loaded.</desc>
9090 </const>
9091 <const name="Desktop" value="3">
9092 <desc>Per-user desktop components are loaded.</desc>
9093 </const>
9094 </enum>
9095
9096 <enum
9097 name="AdditionsUpdateFlag"
9098 uuid="726a818d-18d6-4389-94e8-3e9e6826171a"
9099 >
9100 <desc>
9101 Guest Additions update flags.
9102 </desc>
9103
9104 <const name="None" value="0">
9105 <desc>No flag set.</desc>
9106 </const>
9107 <const name="WaitForUpdateStartOnly" value="1">
9108 <desc>Starts the regular updating process and waits until the
9109 actual Guest Additions update inside the guest was started.
9110 This can be necessary due to needed interaction with the guest
9111 OS during the installation phase.</desc>
9112 </const>
9113 </enum>
9114
9115 <enum
9116 name="GuestSessionStatus"
9117 uuid="ac2669da-4624-44f2-85b5-0b0bfb8d8673"
9118 >
9119 <desc>
9120 Guest session status. This enumeration represents possible values of
9121 the <link to="IGuestSession::status"/> attribute.
9122 </desc>
9123 <const name="Undefined" value="0">
9124 <desc>Guest session is in an undefined state.</desc>
9125 </const>
9126 <const name="Starting" value="10">
9127 <desc>Guest session is being started.</desc>
9128 </const>
9129 <const name="Started" value="100">
9130 <desc>Guest session has been started.</desc>
9131 </const>
9132 <const name="Terminating" value="480">
9133 <desc>Guest session is being terminated.</desc>
9134 </const>
9135 <const name="Terminated" value="500">
9136 <desc>Guest session terminated normally.</desc>
9137 </const>
9138 <const name="TimedOutKilled" value="512">
9139 <desc>Guest session timed out and was killed.</desc>
9140 </const>
9141 <const name="TimedOutAbnormally" value="513">
9142 <desc>Guest session timed out and was not killed successfully.</desc>
9143 </const>
9144 <const name="Down" value="600">
9145 <desc>Service/OS is stopping, guest session was killed.</desc>
9146 </const>
9147 <const name="Error" value="800">
9148 <desc>Something went wrong.</desc>
9149 </const>
9150 </enum>
9151
9152 <enum
9153 name="GuestSessionWaitForFlag"
9154 uuid="bb7a372a-f635-4e11-a81a-e707f3a52ef5"
9155 >
9156 <desc>
9157 Guest session waiting flags. Multiple flags can be combined.
9158 </desc>
9159
9160 <const name="None" value="0">
9161 <desc>No waiting flags specified. Do not use this.</desc>
9162 </const>
9163 <const name="Start" value="1">
9164 <desc>Wait for the guest session being started.</desc>
9165 </const>
9166 <const name="Terminate" value="2">
9167 <desc>Wait for the guest session being terminated.</desc>
9168 </const>
9169 <const name="Status" value="4">
9170 <desc>Wait for the next guest session status change.</desc>
9171 </const>
9172 </enum>
9173
9174 <enum
9175 name="GuestSessionWaitResult"
9176 uuid="c0f6a8a5-fdb6-42bf-a582-56c6f82bcd2d"
9177 >
9178 <desc>
9179 Guest session waiting results. Depending on the session waiting flags (for
9180 more information see <link to="GuestSessionWaitForFlag"/>) the waiting result
9181 can vary based on the session's current status.
9182
9183 To wait for a guest session to terminate after it has been
9184 created by <link to="IGuest::createSession"/> one would specify
9185 GuestSessionWaitResult_Terminate.
9186 </desc>
9187
9188 <const name="None" value="0">
9189 <desc>No result was returned. Not being used.</desc>
9190 </const>
9191 <const name="Start" value="1">
9192 <desc>The guest session has been started.</desc>
9193 </const>
9194 <const name="Terminate" value="2">
9195 <desc>The guest session has been terminated.</desc>
9196 </const>
9197 <const name="Status" value="3">
9198 <desc>
9199 The guest session has changed its status. The status then can
9200 be retrieved via <link to="IGuestSession::status"/>.
9201 </desc>
9202 </const>
9203 <const name="Error" value="4">
9204 <desc>Error while executing the process.</desc>
9205 </const>
9206 <const name="Timeout" value="5">
9207 <desc>
9208 The waiting operation timed out. This also will happen
9209 when no event has been occured matching the
9210 current waiting flags in a <link to="IGuestSession::waitFor"/> call.
9211 </desc>
9212 </const>
9213 <const name="WaitFlagNotSupported" value="6">
9214 <desc>
9215 A waiting flag specified in the <link to="IGuestSession::waitFor"/> call
9216 is not supported by the guest.
9217 </desc>
9218 </const>
9219 </enum>
9220
9221 <enum
9222 name="FileSeekType"
9223 uuid="1b73f4f3-3515-4073-a506-76878d9e2541"
9224 >
9225 <desc>
9226 File seeking types.
9227 </desc>
9228
9229 <const name="Set" value="0">
9230 <desc>Seek from the start of the file.</desc>
9231 </const>
9232 <const name="Current" value="1">
9233 <desc>Seek from the current file position.</desc>
9234 </const>
9235 </enum>
9236
9237 <enum
9238 name="ProcessInputFlag"
9239 uuid="5d38c1dd-2604-4ddf-92e5-0c0cdd3bdbd5"
9240 >
9241 <desc>
9242 Guest process input flags.
9243 </desc>
9244 <const name="None" value="0">
9245 <desc>No flag set.</desc>
9246 </const>
9247 <const name="EndOfFile" value="1">
9248 <desc>End of file (input) reached.</desc>
9249 </const>
9250 </enum>
9251
9252 <enum
9253 name="ProcessOutputFlag"
9254 uuid="9979e85a-52bb-40b7-870c-57115e27e0f1"
9255 >
9256 <desc>
9257 Guest process output flags for specifying which
9258 type of output to retrieve.
9259 </desc>
9260 <const name="None" value="0">
9261 <desc>No flags set. Get output from stdout.</desc>
9262 </const>
9263 <const name="StdErr" value="1">
9264 <desc>Get output from stderr.</desc>
9265 </const>
9266 </enum>
9267
9268 <enum
9269 name="ProcessWaitForFlag"
9270 uuid="23b550c7-78e1-437e-98f0-65fd9757bcd2"
9271 >
9272 <desc>
9273 Process waiting flags. Multiple flags can be combined.
9274 </desc>
9275
9276 <const name="None" value="0">
9277 <desc>No waiting flags specified. Do not use this.</desc>
9278 </const>
9279 <const name="Start" value="1">
9280 <desc>Wait for the process being started.</desc>
9281 </const>
9282 <const name="Terminate" value="2">
9283 <desc>Wait for the process being terminated.</desc>
9284 </const>
9285 <const name="StdIn" value="4">
9286 <desc>Wait for stdin becoming available.</desc>
9287 </const>
9288 <const name="StdOut" value="8">
9289 <desc>Wait for data becoming available on stdout.</desc>
9290 </const>
9291 <const name="StdErr" value="16">
9292 <desc>Wait for data becoming available on stderr.</desc>
9293 </const>
9294 </enum>
9295
9296 <enum
9297 name="ProcessWaitResult"
9298 uuid="40719cbe-f192-4fe9-a231-6697b3c8e2b4"
9299 >
9300 <desc>
9301 Process waiting results. Depending on the process waiting flags (for
9302 more information see <link to="ProcessWaitForFlag"/>) the waiting result
9303 can vary based on the processes' current status.
9304
9305 To wait for a guest process to terminate after it has been
9306 created by <link to="IGuestSession::processCreate"/> or <link to="IGuestSession::processCreateEx"/>
9307 one would specify ProcessWaitResult_Terminate.
9308
9309 If a guest process has been started with ProcessCreateFlag_WaitForStdOut
9310 a client can wait with ProcessWaitResult_StdOut for new data to arrive on
9311 stdout; same applies for ProcessCreateFlag_WaitForStdErr and
9312 ProcessWaitResult_StdErr.
9313 </desc>
9314
9315 <const name="None" value="0">
9316 <desc>No result was returned. Not being used.</desc>
9317 </const>
9318 <const name="Start" value="1">
9319 <desc>The process has been started.</desc>
9320 </const>
9321 <const name="Terminate" value="2">
9322 <desc>The process has been terminated.</desc>
9323 </const>
9324 <const name="Status" value="3">
9325 <desc>
9326 The process has changed its status. The status then can
9327 be retrieved via <link to="IProcess::status"/>.
9328 </desc>
9329 </const>
9330 <const name="Error" value="4">
9331 <desc>Error while executing the process.</desc>
9332 </const>
9333 <const name="Timeout" value="5">
9334 <desc>
9335 The waiting operation timed out. This also will happen
9336 when no event has been occured matching the
9337 current waiting flags in a <link to="IProcess::waitFor"/> call.
9338 </desc>
9339 </const>
9340 <const name="StdIn" value="6">
9341 <desc>
9342 The process signalled that stdin became available for writing
9343 and that the process awaits input now.</desc>
9344 </const>
9345 <const name="StdOut" value="7">
9346 <desc>Data on stdout became available for reading.</desc>
9347 </const>
9348 <const name="StdErr" value="8">
9349 <desc>Data on stderr became available for reading.</desc>
9350 </const>
9351 <const name="WaitFlagNotSupported" value="9">
9352 <desc>
9353 A waiting flag specified in the <link to="IProcess::waitFor"/> call
9354 is not supported by the guest.
9355 </desc>
9356 </const>
9357 </enum>
9358
9359 <enum
9360 name="CopyFileFlag"
9361 uuid="23f79fdf-738a-493d-b80b-42d607c9b916"
9362 >
9363 <desc>
9364 File copying flags.
9365 </desc>
9366 <const name="None" value="0">
9367 <desc>No flag set.</desc>
9368 </const>
9369 <const name="Recursive" value="1">
9370 <desc>Copy directories recursively.</desc>
9371 </const>
9372 <const name="Update" value="2">
9373 <desc>Only copy when the source file is newer than the destination file or when the destination file is missing.</desc>
9374 </const>
9375 <const name="FollowLinks" value="4">
9376 <desc>Follow symbolic links.</desc>
9377 </const>
9378 </enum>
9379
9380 <enum
9381 name="DirectoryCreateFlag"
9382 uuid="bd721b0e-ced5-4f79-b368-249897c32a36"
9383 >
9384 <desc>
9385 Directory creation flags.
9386 </desc>
9387 <const name="None" value="0">
9388 <desc>No flag set.</desc>
9389 </const>
9390 <const name="Parents" value="1">
9391 <desc>No error if existing, make parent directories as needed.</desc>
9392 </const>
9393 </enum>
9394
9395 <enum
9396 name="DirectoryRemoveRecFlag"
9397 uuid="455aabf0-7692-48f6-9061-f21579b65769"
9398 >
9399 <desc>
9400 Directory recursive removement flags.
9401 </desc>
9402
9403 <const name="None" value="0">
9404 <desc>No flag set.</desc>
9405 </const>
9406 <const name="ContentAndDir" value="1">
9407 <desc>Delete the content of the directory and the directory itself.</desc>
9408 </const>
9409 <const name="ContentOnly" value="2">
9410 <desc>Only delete the content of the directory, omit the directory it self.</desc>
9411 </const>
9412 </enum>
9413
9414 <enum
9415 name="PathRenameFlag"
9416 uuid="f3baa09f-c758-453d-b91c-c7787d76351d"
9417 >
9418 <desc>
9419 Path renaming flags.
9420 </desc>
9421
9422 <const name="None" value="0">
9423 <desc>No flag set.</desc>
9424 </const>
9425 <const name="NoReplace" value="1">
9426 <desc>Do not replace anything.</desc>
9427 </const>
9428 <const name="Replace" value="2">
9429 <desc>This will replace attempt any target which isn't a directory.</desc>
9430 </const>
9431 <const name="NoSymlinks" value="4">
9432 <desc>Don't allow symbolic links as part of the path.</desc>
9433 </const>
9434 </enum>
9435
9436 <enum
9437 name="ProcessCreateFlag"
9438 uuid="35192799-bfde-405d-9bea-c735ab9998e4"
9439 >
9440 <desc>
9441 Guest process execution flags.
9442 </desc>
9443
9444 <const name="None" value="0">
9445 <desc>No flag set.</desc>
9446 </const>
9447 <const name="WaitForProcessStartOnly" value="1">
9448 <desc>Only use the specified timeout value to wait for starting the guest process - the guest
9449 process itself then uses an infinite timeout.</desc>
9450 </const>
9451 <const name="IgnoreOrphanedProcesses" value="2">
9452 <desc>Do not report an error when executed processes are still alive when VBoxService or the guest OS is shutting down.</desc>
9453 </const>
9454 <const name="Hidden" value="4">
9455 <desc>Do not show the started process according to the guest OS guidelines.</desc>
9456 </const>
9457 <const name="NoProfile" value="8">
9458 <desc>Do not use the user's profile data when exeuting a process. Only available for Windows guests.</desc>
9459 </const>
9460 <const name="WaitForStdOut" value="16">
9461 <desc>The guest process waits until all data from stdout is read out.</desc>
9462 </const>
9463 <const name="WaitForStdErr" value="32">
9464 <desc>The guest process waits until all data from stderr is read out.</desc>
9465 </const>
9466 <const name="ExpandArguments" value="64">
9467 <desc>Expands environment variables in process arguments.</desc>
9468 </const>
9469 </enum>
9470
9471 <enum
9472 name="ProcessPriority"
9473 uuid="ee8cac50-e232-49fe-806b-d1214d9c2e49"
9474 >
9475 <desc>
9476 Process priorities.
9477 </desc>
9478
9479 <const name="Invalid" value="0">
9480 <desc>Invalid priority, do not use.</desc>
9481 </const>
9482 <const name="Default" value="1">
9483 <desc>Default process priority determined by the OS.</desc>
9484 </const>
9485 </enum>
9486
9487 <enum
9488 name="SymlinkType"
9489 uuid="37794668-f8f1-4714-98a5-6f8fa2ed0118"
9490 >
9491 <desc>
9492 Symbolic link types.
9493 </desc>
9494
9495 <const name="Unknown" value="0">
9496 <desc>It is not known what is being targeted.</desc>
9497 </const>
9498 <const name="Directory" value="1">
9499 <desc>The link targets a directory.</desc>
9500 </const>
9501 <const name="File" value="2">
9502 <desc>The link targets a file (or whatever else).</desc>
9503 </const>
9504 </enum>
9505
9506 <enum
9507 name="SymlinkReadFlag"
9508 uuid="b7fe2b9d-790e-4b25-8adf-1ca33026931f"
9509 >
9510 <desc>
9511 Symbolic link reading flags.
9512 </desc>
9513
9514 <const name="None" value="0">
9515 <desc>No flags set.</desc>
9516 </const>
9517 <const name="NoSymlinks" value="1">
9518 <desc>Don't allow symbolic links as part of the path.</desc>
9519 </const>
9520 </enum>
9521
9522 <enum
9523 name="ProcessStatus"
9524 uuid="4d52368f-5b48-4bfe-b486-acf89139b52f"
9525 >
9526 <desc>
9527 Process execution statuses.
9528 </desc>
9529
9530 <const name="Undefined" value="0">
9531 <desc>Process is in an undefined state.</desc>
9532 </const>
9533 <const name="Starting" value="10">
9534 <desc>Process is being started.</desc>
9535 </const>
9536 <const name="Started" value="100">
9537 <desc>Process has been started.</desc>
9538 </const>
9539 <const name="Paused" value="110">
9540 <desc>Process has been paused.</desc>
9541 </const>
9542 <const name="Terminating" value="480">
9543 <desc>Process is being terminated.</desc>
9544 </const>
9545 <const name="TerminatedNormally" value="500">
9546 <desc>Process terminated normally.</desc>
9547 </const>
9548 <const name="TerminatedSignal" value="510">
9549 <desc>Process terminated via signal.</desc>
9550 </const>
9551 <const name="TerminatedAbnormally" value="511">
9552 <desc>Process terminated abnormally.</desc>
9553 </const>
9554 <const name="TimedOutKilled" value="512">
9555 <desc>Process timed out and was killed.</desc>
9556 </const>
9557 <const name="TimedOutAbnormally" value="513">
9558 <desc>Process timed out and was not killed successfully.</desc>
9559 </const>
9560 <const name="Down" value="600">
9561 <desc>Service/OS is stopping, process was killed.</desc>
9562 </const>
9563 <const name="Error" value="800">
9564 <desc>Something went wrong.</desc>
9565 </const>
9566 </enum>
9567
9568 <enum
9569 name="ProcessInputStatus"
9570 uuid="a4a0ef9c-29cc-4805-9803-c8215ae9da6c"
9571 >
9572 <desc>
9573 Process input statuses.
9574 </desc>
9575
9576 <const name="Undefined" value="0">
9577 <desc>Undefined state.</desc>
9578 </const>
9579 <const name="Broken" value="1">
9580 <desc>TODO</desc>
9581 </const>
9582 <const name="Available" value="10">
9583 <desc>TODO</desc>
9584 </const>
9585 <const name="Written" value="50">
9586 <desc>TODO</desc>
9587 </const>
9588 <const name="Overflow" value="100">
9589 <desc>TODO</desc>
9590 </const>
9591 </enum>
9592
9593 <enum
9594 name="FileStatus"
9595 uuid="8c86468b-b97b-4080-8914-e29f5b0abd2c"
9596 >
9597 <desc>
9598 File statuses.
9599 </desc>
9600
9601 <const name="Undefined" value="0">
9602 <desc>File is in an undefined state.</desc>
9603 </const>
9604 <const name="Opening" value="10">
9605 <desc>TODO</desc>
9606 </const>
9607 <const name="Open" value="100">
9608 <desc>TODO</desc>
9609 </const>
9610 <const name="Closing" value="150">
9611 <desc>TODO</desc>
9612 </const>
9613 <const name="Closed" value="200">
9614 <desc>TODO</desc>
9615 </const>
9616 <const name="Down" value="600">
9617 <desc>TODO</desc>
9618 </const>
9619 <const name="Error" value="800">
9620 <desc>Something went wrong.</desc>
9621 </const>
9622 </enum>
9623
9624 <enum
9625 name="FsObjType"
9626 uuid="a1ed437c-b3c3-4ca2-b19c-4239d658d5e8"
9627 >
9628 <desc>
9629 File system object type.
9630 </desc>
9631
9632 <const name="Undefined" value="0">
9633 <desc>Type is undefined / unknown.</desc>
9634 </const>
9635 <const name="FIFO" value="1">
9636 <desc>Named pipe.</desc>
9637 </const>
9638 <const name="DevChar" value="10">
9639 <desc>Character device.</desc>
9640 </const>
9641 <const name="DevBlock" value="11">
9642 <desc>Block device.</desc>
9643 </const>
9644 <const name="Directory" value="50">
9645 <desc>Directory.</desc>
9646 </const>
9647 <const name="File" value="80">
9648 <desc>File.</desc>
9649 </const>
9650 <const name="Symlink" value="100">
9651 <desc>Symlink.</desc>
9652 </const>
9653 <const name="Socket" value="200">
9654 <desc>Socket.</desc>
9655 </const>
9656 <const name="Whiteout" value="400">
9657 <desc>Whiteout.</desc>
9658 </const>
9659 </enum>
9660
9661 <enum
9662 name="DragAndDropAction"
9663 uuid="47f3b162-c107-4fcd-bfa7-54b8135c441e"
9664 >
9665 <desc>
9666 Possible actions within an Drag and Drop operation.
9667 </desc>
9668
9669 <const name="Ignore" value="0">
9670 <desc>Do nothing.</desc>
9671 </const>
9672
9673 <const name="Copy" value="1">
9674 <desc>Copy the item to the target.</desc>
9675 </const>
9676
9677 <const name="Move" value="2">
9678 <desc>Move the item to the target.</desc>
9679 </const>
9680
9681 <const name="Link" value="3">
9682 <desc>Link the item from within the target.</desc>
9683 </const>
9684 </enum>
9685
9686 <enum
9687 name="DirectoryOpenFlag"
9688 uuid="5138837a-8fd2-4194-a1b0-08f7bc3949d0"
9689 >
9690 <desc>
9691 Directory open flags.
9692 </desc>
9693 <const name="None" value="0">
9694 <desc>No flag set.</desc>
9695 </const>
9696 <const name="NoSymlinks" value="1">
9697 <desc>Don't allow symbolic links as part of the path.</desc>
9698 </const>
9699 </enum>
9700
9701 <interface
9702 name="IGuestErrorInfo" extends="$unknown"
9703 uuid="ab576a37-dcfc-4d80-9a73-493d15e293c4"
9704 wsmap="managed"
9705 >
9706 <desc>
9707 TODO
9708 </desc>
9709
9710 <attribute name="result" type="long" readonly="yes">
9711 <desc>TODO</desc>
9712 </attribute>
9713
9714 <attribute name="text" type="wstring" readonly="yes">
9715 <desc>TODO</desc>
9716 </attribute>
9717
9718 </interface>
9719
9720 <interface
9721 name="IGuestSession" extends="$unknown"
9722 uuid="c8e8607b-5e67-4073-8f14-146515d0c1ff"
9723 wsmap="managed"
9724 >
9725 <desc>
9726 A guest session represents one impersonated user account on the guest, so
9727 every operation will use the same credentials specified when creating
9728 the session object via <link to="IGuest::createSession"/>.
9729
9730 There can be a maximum of 32 sessions at once per VM. Each session keeps
9731 track of its started guest processes, opened guest files or guest directories.
9732 To work on guest files or directories a guest session offers methods to open
9733 or create such objects (see <link to="IGuestSession::fileOpen"/> or
9734 <link to="IGuestSession::directoryOpen"/> for example).
9735
9736 When done with either of these objects, including the guest session itself,
9737 use the appropriate close() method to let the object do its cleanup work.
9738
9739 Every guest session has its own environment variable block which gets
9740 automatically applied when starting a new guest process via
9741 <link to="IGuestSession::processCreate"/> or <link to="IGuestSession::processCreateEx"/>.
9742 To override (or unset) certain environment variables already set by the
9743 guest session, one can specify a per-process environment block when using
9744 one of the both above mentioned process creation calls.
9745 </desc>
9746
9747 <attribute name="user" type="wstring" readonly="yes">
9748 <desc>Returns the user name used by this session to impersonate
9749 users on the guest.
9750 </desc>
9751 </attribute>
9752 <attribute name="domain" type="wstring" readonly="yes">
9753 <desc>Returns the domain name used by this session to impersonate
9754 users on the guest.
9755 </desc>
9756 </attribute>
9757 <attribute name="name" type="wstring" readonly="yes">
9758 <desc>Returns the session's friendly name.</desc>
9759 </attribute>
9760 <attribute name="id" type="unsigned long" readonly="yes">
9761 <desc>Returns the internal session ID.</desc>
9762 </attribute>
9763 <attribute name="timeout" type="unsigned long">
9764 <desc>
9765 Returns the session timeout (in ms).
9766 <result name="E_NOTIMPL">
9767 The method is not implemented yet.
9768 </result>
9769 </desc>
9770 </attribute>
9771 <attribute name="status" type="GuestSessionStatus" readonly="yes">
9772 <desc>Returns the current session status.</desc>
9773 </attribute>
9774 <attribute name="environment" type="wstring" safearray="yes">
9775 <desc>
9776 Returns the current session environment.
9777 </desc>
9778 </attribute>
9779 <attribute name="processes" type="IGuestProcess" readonly="yes" safearray="yes">
9780 <desc>
9781 Returns all current guest processes.
9782 </desc>
9783 </attribute>
9784 <attribute name="directories" type="IGuestDirectory" readonly="yes" safearray="yes">
9785 <desc>
9786 Returns all currently opened guest directories.
9787 </desc>
9788 </attribute>
9789 <attribute name="files" type="IGuestFile" readonly="yes" safearray="yes">
9790 <desc>
9791 Returns all currently opened guest files.
9792 </desc>
9793 </attribute>
9794 <attribute name="eventSource" type="IEventSource" readonly="yes">
9795 <desc>
9796 Event source for guest session events.
9797 </desc>
9798 </attribute>
9799
9800 <method name="close">
9801 <desc>
9802 Closes this session. All opened guest directories, files and
9803 processes which are not referenced by clients anymore will be
9804 uninitialized.
9805 </desc>
9806 </method>
9807
9808 <method name="copyFrom">
9809 <desc>
9810 Copies a file from guest to the host.
9811
9812 <result name="VBOX_E_IPRT_ERROR">
9813 Error starting the copy operation.
9814 </result>
9815 </desc>
9816 <param name="source" type="wstring" dir="in">
9817 <desc>Source file on the guest to copy to the host.</desc>
9818 </param>
9819 <param name="dest" type="wstring" dir="in">
9820 <desc>Destination file name on the host.</desc>
9821 </param>
9822 <param name="flags" type="CopyFileFlag" dir="in" safearray="yes">
9823 <desc>Copy flags; see <link to="CopyFileFlag"/> for more information.</desc>
9824 </param>
9825 <param name="progress" type="IProgress" dir="return">
9826 <desc>Progress object to track the operation completion.</desc>
9827 </param>
9828 </method>
9829
9830 <method name="copyTo">
9831 <desc>
9832 Copies a file from host to the guest.
9833
9834 <result name="VBOX_E_IPRT_ERROR">
9835 Error starting the copy operation.
9836 </result>
9837 </desc>
9838 <param name="source" type="wstring" dir="in">
9839 <desc>Source file on the host to copy to the guest.</desc>
9840 </param>
9841 <param name="dest" type="wstring" dir="in">
9842 <desc>Destination file name on the guest.</desc>
9843 </param>
9844 <param name="flags" type="CopyFileFlag" dir="in" safearray="yes">
9845 <desc>Copy flags; see <link to="CopyFileFlag"/> for more information.</desc>
9846 </param>
9847 <param name="progress" type="IProgress" dir="return">
9848 <desc>Progress object to track the operation completion.</desc>
9849 </param>
9850 </method>
9851
9852 <method name="directoryCreate">
9853 <desc>
9854 Create a directory on the guest.
9855
9856 <result name="VBOX_E_IPRT_ERROR">
9857 Error while creating the directory.
9858 </result>
9859 </desc>
9860 <param name="path" type="wstring" dir="in">
9861 <desc>Full path of directory to create.</desc>
9862 </param>
9863 <param name="mode" type="unsigned long" dir="in">
9864 <desc>File creation mode.</desc>
9865 </param>
9866 <param name="flags" type="DirectoryCreateFlag" dir="in" safearray="yes">
9867 <desc>Creation flags; see <link to="DirectoryCreateFlag"/> for more information.</desc>
9868 </param>
9869 </method>
9870
9871 <method name="directoryCreateTemp">
9872 <desc>
9873 Create a temporary directory on the guest.
9874
9875 <result name="VBOX_E_NOT_SUPPORTED">
9876 The operation is not possible as requested on this particular
9877 guest type.
9878 </result>
9879 <result name="E_INVALIDARG">
9880 Invalid argument. This includes an incorrectly formatted template,
9881 or a non-absolute path.
9882 </result>
9883 <result name="VBOX_E_IPRT_ERROR">
9884 The temporary directory could not be created. Possible reasons
9885 include a non-existing path or an insecure path when the secure
9886 option was requested.
9887 </result>
9888 </desc>
9889 <param name="templateName" type="wstring" dir="in">
9890 <desc>Template for the name of the directory to create. This must
9891 contain at least one 'X' character. The first group of consecutive
9892 'X' characters in the template will be replaced by a random
9893 alphanumeric string to produce a unique name.</desc>
9894 </param>
9895 <param name="mode" type="unsigned long" dir="in">
9896 <desc>The mode of the directory to create. Use 0700 unless there are
9897 reasons not to. This parameter is ignored if "secure" is specified.
9898 </desc>
9899 </param>
9900 <param name="path" type="wstring" dir="in">
9901 <desc>The absolute path to create the temporary directory in.</desc>
9902 </param>
9903 <param name="secure" type="boolean" dir="in">
9904 <desc>Whether to fail if the directory can not be securely created.
9905 Currently this means that another unprivileged user cannot
9906 manipulate the path specified or remove the temporary directory
9907 after it has been created. Also causes the mode specified to be
9908 ignored. May not be supported on all guest types.</desc>
9909 </param>
9910 <param name="directory" type="wstring" dir="return">
9911 <desc>On success this will contain the name of the directory created
9912 with full path.</desc>
9913 </param>
9914 </method>
9915
9916 <method name="directoryExists">
9917 <desc>
9918 Checks whether a directory exists on the guest or not.
9919
9920 <result name="VBOX_E_IPRT_ERROR">
9921 Error while checking existence of the directory specified.
9922 </result>
9923 </desc>
9924 <param name="path" type="wstring" dir="in">
9925 <desc>Directory to check existence for.</desc>
9926 </param>
9927 <param name="exists" type="boolean" dir="return">
9928 <desc>Returns @c true if the directory exists, @c false if not.</desc>
9929 </param>
9930 </method>
9931
9932 <method name="directoryOpen">
9933 <desc>
9934 Opens a directory and creates a <link to="IGuestDirectory"/> object that
9935 can be used for further operations.
9936
9937 <result name="VBOX_E_OBJECT_NOT_FOUND">
9938 Directory to open was not found.
9939 </result>
9940 <result name="VBOX_E_IPRT_ERROR">
9941 Error while opening the directory.
9942 </result>
9943 </desc>
9944 <param name="path" type="wstring" dir="in">
9945 <desc>Full path to file to open.</desc>
9946 </param>
9947 <param name="filter" type="wstring" dir="in">
9948 <desc>Open filter to apply. This can include wildcards like ? and *.</desc>
9949 </param>
9950 <param name="flags" type="DirectoryOpenFlag" dir="in" safearray="yes">
9951 <desc>Open flags; see <link to="DirectoryOpenFlag"/> for more information.</desc>
9952 </param>
9953 <param name="directory" type="IGuestDirectory" dir="return">
9954 <desc><link to="IGuestDirectory"/> object containing the opened directory.</desc>
9955 </param>
9956 </method>
9957
9958 <method name="directoryQueryInfo">
9959 <desc>
9960 Queries information of a directory on the guest.
9961
9962 <result name="VBOX_E_OBJECT_NOT_FOUND">
9963 Directory to query information for was not found.
9964 </result>
9965 <result name="VBOX_E_IPRT_ERROR">
9966 Error querying information.
9967 </result>
9968 </desc>
9969 <param name="path" type="wstring" dir="in">
9970 <desc>Directory to query information for.</desc>
9971 </param>
9972 <param name="info" type="IGuestFsObjInfo" dir="return">
9973 <desc><link to="IGuestFsObjInfo"/> object containing the queried information.</desc>
9974 </param>
9975 </method>
9976
9977 <method name="directoryRemove">
9978 <desc>
9979 Removes a guest directory if not empty.
9980
9981 <result name="E_NOTIMPL">
9982 The method is not implemented yet.
9983 </result>
9984 </desc>
9985 <param name="path" type="wstring" dir="in">
9986 <desc>Full path of directory to remove.</desc>
9987 </param>
9988 </method>
9989
9990 <method name="directoryRemoveRecursive">
9991 <desc>
9992 Removes a guest directory recursively.
9993
9994 <result name="E_NOTIMPL">
9995 The method is not implemented yet.
9996 </result>
9997 </desc>
9998 <param name="path" type="wstring" dir="in">
9999 <desc>Full path of directory to remove recursively.</desc>
10000 </param>
10001 <param name="flags" type="DirectoryRemoveRecFlag" dir="in" safearray="yes">
10002 <desc>Remove flags; see <link to="DirectoryRemoveRecFlag"/> for more information.</desc>
10003 </param>
10004 <param name="progress" type="IProgress" dir="return">
10005 <desc>Progress object to track the operation completion.</desc>
10006 </param>
10007 </method>
10008
10009 <method name="directoryRename">
10010 <desc>
10011 Renames a directory on the guest.
10012
10013 <result name="E_NOTIMPL">
10014 The method is not implemented yet.
10015 </result>
10016 </desc>
10017 <param name="source" type="wstring" dir="in">
10018 <desc>Source directory to rename.</desc>
10019 </param>
10020 <param name="dest" type="wstring" dir="in">
10021 <desc>Destination directory to rename the source to.</desc>
10022 </param>
10023 <param name="flags" type="PathRenameFlag" dir="in" safearray="yes">
10024 <desc>Rename flags; see <link to="PathRenameFlag"/> for more information.</desc>
10025 </param>
10026 </method>
10027
10028 <method name="directorySetACL">
10029 <desc>
10030 Sets the ACL (Access Control List) of a guest directory.
10031
10032 <result name="E_NOTIMPL">
10033 The method is not implemented yet.
10034 </result>
10035 </desc>
10036 <param name="path" type="wstring" dir="in">
10037 <desc>Full path of directory to set the ACL for.</desc>
10038 </param>
10039 <param name="acl" type="wstring" dir="in">
10040 <desc>Actual ACL string to set. Must comply with the guest OS.</desc>
10041 </param>
10042 </method>
10043
10044 <method name="environmentClear">
10045 <desc>
10046 Clears (deletes) all session environment variables.
10047
10048 <result name="VBOX_E_IPRT_ERROR">
10049 Error while clearing the session environment variables.
10050 </result>
10051 </desc>
10052 </method>
10053
10054 <method name="environmentGet">
10055 <desc>
10056 Gets the value of a session environment variable.
10057
10058 <result name="VBOX_E_IPRT_ERROR">
10059 Error while getting the value of the session environment variable.
10060 </result>
10061 </desc>
10062 <param name="name" type="wstring" dir="in">
10063 <desc>Name of session environment variable to get the value for.</desc>
10064 </param>
10065 <param name="value" type="wstring" dir="return">
10066 <desc>
10067 Value of the session environment variable specified. If this variable
10068 does not exist and empty value will be returned.
10069 </desc>
10070 </param>
10071 </method>
10072
10073 <method name="environmentSet">
10074 <desc>
10075 Sets a session environment variable.
10076
10077 <result name="VBOX_E_IPRT_ERROR">
10078 Error while setting the session environment variable.
10079 </result>
10080 </desc>
10081 <param name="name" type="wstring" dir="in">
10082 <desc>Name of session environment variable to set.</desc>
10083 </param>
10084 <param name="value" type="wstring" dir="in">
10085 <desc>Value to set the session environment variable to.</desc>
10086 </param>
10087 </method>
10088
10089 <method name="environmentUnset">
10090 <desc>
10091 Unsets session environment variable.
10092
10093 <result name="VBOX_E_IPRT_ERROR">
10094 Error while unsetting the session environment variable.
10095 </result>
10096 </desc>
10097 <param name="name" type="wstring" dir="in">
10098 <desc>Name of session environment variable to unset (clear).</desc>
10099 </param>
10100 </method>
10101
10102 <method name="fileCreateTemp">
10103 <desc>
10104 Creates a temporary file on the guest.
10105
10106 <result name="VBOX_E_NOT_SUPPORTED">
10107 The operation is not possible as requested on this particular
10108 guest type.
10109 </result>
10110 <result name="E_INVALIDARG">
10111 Invalid argument. This includes an incorrectly formatted template,
10112 or a non-absolute path.
10113 </result>
10114 <result name="VBOX_E_IPRT_ERROR">
10115 The temporary file could not be created. Possible reasons include
10116 a non-existing path or an insecure path when the secure
10117 option was requested.
10118 </result>
10119 </desc>
10120 <param name="templateName" type="wstring" dir="in">
10121 <desc>Template for the name of the file to create. This must contain
10122 at least one 'X' character. The first group of consecutive 'X'
10123 characters in the template will be replaced by a random
10124 alphanumeric string to produce a unique name.
10125 </desc>
10126 </param>
10127 <param name="mode" type="unsigned long" dir="in">
10128 <desc>The mode of the file to create. Use 0700 unless there are
10129 reasons not to. This parameter is ignored if "secure" is specified.
10130 </desc>
10131 </param>
10132 <param name="path" type="wstring" dir="in">
10133 <desc>The absolute path to create the temporary file in.</desc>
10134 </param>
10135 <param name="secure" type="boolean" dir="in">
10136 <desc>Whether to fail if the file can not be securely created.
10137 Currently this means that another unprivileged user cannot
10138 manipulate the path specified or remove the temporary file after
10139 it has been created. Also causes the mode specified to be ignored.
10140 May not be supported on all guest types.</desc>
10141 </param>
10142 <param name="file" type="IGuestFile" dir="return">
10143 <desc>On success this will contain an open file object for the new
10144 temporary file.
10145 </desc>
10146 </param>
10147 </method>
10148
10149 <method name="fileExists">
10150 <desc>
10151 Checks whether a file exists on the guest or not.
10152
10153 <result name="VBOX_E_IPRT_ERROR">
10154 Error while checking existence of the file specified.
10155 </result>
10156 </desc>
10157 <param name="path" type="wstring" dir="in">
10158 <desc>File to check existence for.</desc>
10159 </param>
10160 <param name="exists" type="boolean" dir="return">
10161 <desc>Returns @c true if the file exists, @c false if not.</desc>
10162 </param>
10163 </method>
10164
10165 <method name="fileRemove">
10166 <desc>
10167 Removes a single file on the guest.
10168
10169 <result name="VBOX_E_OBJECT_NOT_FOUND">
10170 File to remove was not found.
10171 </result>
10172 <result name="VBOX_E_IPRT_ERROR">
10173 Error while removing the file.
10174 </result>
10175 </desc>
10176 <param name="path" type="wstring" dir="in">
10177 <desc>Path to the file to remove.</desc>
10178 </param>
10179 </method>
10180
10181 <method name="fileOpen">
10182 <desc>
10183 Opens a file and creates a <link to="IGuestFile"/> object that
10184 can be used for further operations.
10185
10186 <result name="VBOX_E_OBJECT_NOT_FOUND">
10187 File to open was not found.
10188 </result>
10189 <result name="VBOX_E_IPRT_ERROR">
10190 Error while opening the file.
10191 </result>
10192 </desc>
10193 <param name="path" type="wstring" dir="in">
10194 <desc>Full path to file to open.</desc>
10195 </param>
10196 <param name="openMode" type="wstring" dir="in">
10197 <desc>The file open mode.</desc>
10198 </param>
10199 <param name="disposition" type="wstring" dir="in">
10200 <desc>The file disposition.</desc>
10201 </param>
10202 <param name="creationMode" type="unsigned long" dir="in">
10203 <desc>The file creation mode.</desc>
10204 </param>
10205 <param name="offset" type="long long" dir="in">
10206 <desc>The initial read/write offset.</desc>
10207 </param>
10208 <param name="file" type="IGuestFile" dir="return">
10209 <desc><link to="IGuestFile"/> object representing the opened file.</desc>
10210 </param>
10211 </method>
10212
10213 <method name="fileQueryInfo">
10214 <desc>
10215 Queries information of a file on the guest.
10216
10217 <result name="VBOX_E_OBJECT_NOT_FOUND">
10218 File to query information for was not found.
10219 </result>
10220 <result name="VBOX_E_IPRT_ERROR">
10221 Error querying information.
10222 </result>
10223 </desc>
10224 <param name="path" type="wstring" dir="in">
10225 <desc>File to query information for.</desc>
10226 </param>
10227 <param name="info" type="IGuestFsObjInfo" dir="return">
10228 <desc><link to="IGuestFsObjInfo"/> object containing the queried information.</desc>
10229 </param>
10230 </method>
10231
10232 <method name="fileQuerySize">
10233 <desc>
10234 Queries the size of a file on the guest.
10235
10236 <result name="VBOX_E_OBJECT_NOT_FOUND">
10237 File to rename was not found.
10238 </result>
10239 <result name="VBOX_E_IPRT_ERROR">
10240 Error querying file size.
10241 </result>
10242 </desc>
10243 <param name="path" type="wstring" dir="in">
10244 <desc>File to query the size for.</desc>
10245 </param>
10246 <param name="size" type="long long" dir="return">
10247 <desc>Queried file size.</desc>
10248 </param>
10249 </method>
10250
10251 <method name="fileRename">
10252 <desc>
10253 Renames a file on the guest.
10254
10255 <result name="E_NOTIMPL">
10256 The method is not implemented yet.
10257 </result>
10258 </desc>
10259 <param name="source" type="wstring" dir="in">
10260 <desc>Source file to rename.</desc>
10261 </param>
10262 <param name="dest" type="wstring" dir="in">
10263 <desc>Destination file to rename the source to.</desc>
10264 </param>
10265 <param name="flags" type="PathRenameFlag" dir="in" safearray="yes">
10266 <desc>Rename flags; see <link to="PathRenameFlag"/> for more information.</desc>
10267 </param>
10268 </method>
10269
10270 <method name="fileSetACL">
10271 <desc>
10272 Sets the ACL (Access Control List) of a file on the guest.
10273
10274 <result name="E_NOTIMPL">
10275 The method is not implemented yet.
10276 </result>
10277 </desc>
10278 <param name="file" type="wstring" dir="in">
10279 <desc>Full path of file to set the ACL for.</desc>
10280 </param>
10281 <param name="acl" type="wstring" dir="in">
10282 <desc>Actual ACL string to set. Must comply with the guest OS.</desc>
10283 </param>
10284 </method>
10285
10286 <method name="processCreate">
10287 <desc>
10288 Executes an existing program inside the guest VM.
10289
10290 <note>
10291 Starting at VirtualBox 4.2 guest process execution by default is limited
10292 to serve up to 255 guest processes at a time. If all 255 guest processes
10293 are still active and running, starting a new guest process will result in an
10294 appropriate error message.
10295
10296 If ProcessCreateFlag_WaitForStdOut and / or respectively ProcessCreateFlag_WaitForStdErr
10297 is / are set, the guest process will not exit until all data from the specified
10298 stream(s) is / are read out.
10299
10300 To raise or lower the guest process execution limit, either the guest property
10301 "/VirtualBox/GuestAdd/VBoxService/--control-procs-max-kept" or VBoxService'
10302 command line by specifying "--control-procs-max-kept" needs to be modified.
10303 A restart of the guest OS is required afterwards. To serve unlimited guest
10304 processes, a value of "0" needs to be set (not recommended).
10305 </note>
10306
10307 <result name="VBOX_E_IPRT_ERROR">
10308 Could not create process.
10309 </result>
10310 </desc>
10311 <param name="command" type="wstring" dir="in">
10312 <desc>
10313 Full path name of the command to execute on the guest; the
10314 commands has to exists in the guest VM in order to be executed.
10315 </desc>
10316 </param>
10317 <param name="arguments" type="wstring" dir="in" safearray="yes">
10318 <desc>Array of arguments passed to the execution command.</desc>
10319 </param>
10320 <param name="environment" type="wstring" dir="in" safearray="yes">
10321 <desc>
10322 Environment variables that can be set while the command is being
10323 executed, in form of "NAME=VALUE"; one pair per entry. To unset a
10324 variable just set its name ("NAME") without a value.
10325
10326 This parameter can be used to override environment variables set by
10327 the guest session, which will be applied to the newly started process
10328 in any case.
10329 </desc>
10330 </param>
10331 <param name="flags" type="ProcessCreateFlag" dir="in" safearray="yes">
10332 <desc>
10333 Process creation flags;
10334 see <link to="ProcessCreateFlag"/> for more information.
10335 </desc>
10336 </param>
10337 <param name="timeoutMS" type="unsigned long" dir="in">
10338 <desc>
10339 Timeout (in ms) to wait for the operation to complete.
10340 Pass 0 for an infinite timeout.
10341 </desc>
10342 </param>
10343 <param name="guestProcess" type="IGuestProcess" dir="return">
10344 <desc>Guest process object of the newly created process.</desc>
10345 </param>
10346 </method>
10347
10348 <method name="processCreateEx">
10349 <desc>
10350 Executes an existing program inside the guest VM. Extended version for
10351 also setting the process priority and affinity.
10352
10353 <note>
10354 Starting at VirtualBox 4.2 guest process execution by default is limited
10355 to serve up to 255 guest processes at a time. If all 255 guest processes
10356 are still active and running, starting a new guest process will result in an
10357 appropriate error message.
10358
10359 If ProcessCreateFlag_WaitForStdOut and / or respectively ProcessCreateFlag_WaitForStdErr
10360 is / are set, the guest process will not exit until all data from the specified
10361 stream(s) is / are read out.
10362
10363 To raise or lower the guest process execution limit, either the guest property
10364 "/VirtualBox/GuestAdd/VBoxService/--control-procs-max-kept" or VBoxService'
10365 command line by specifying "--control-procs-max-kept" needs to be modified.
10366 A restart of the guest OS is required afterwards. To serve unlimited guest
10367 processes, a value of "0" needs to be set (not recommended).
10368 </note>
10369
10370 <result name="VBOX_E_IPRT_ERROR">
10371 Could not create process.
10372 </result>
10373 </desc>
10374 <param name="command" type="wstring" dir="in">
10375 <desc>
10376 Full path name of the command to execute on the guest; the
10377 commands has to exists in the guest VM in order to be executed.
10378 </desc>
10379 </param>
10380 <param name="arguments" type="wstring" dir="in" safearray="yes">
10381 <desc>Array of arguments passed to the execution command.</desc>
10382 </param>
10383 <param name="environment" type="wstring" dir="in" safearray="yes">
10384 <desc>
10385 Environment variables that can be set while the command is being
10386 executed, in form of "NAME=VALUE"; one pair per entry. To unset a
10387 variable just set its name ("NAME") without a value.
10388
10389 This parameter can be used to override environment variables set by
10390 the guest session, which will be applied to the newly started process
10391 in any case.
10392 </desc>
10393 </param>
10394 <param name="flags" type="ProcessCreateFlag" dir="in" safearray="yes">
10395 <desc>
10396 Process creation flags;
10397 see <link to="ProcessCreateFlag"/> for more information.
10398 </desc>
10399 </param>
10400 <param name="timeoutMS" type="unsigned long" dir="in">
10401 <desc>
10402 Timeout (in ms) to wait for the operation to complete.
10403 Pass 0 for an infinite timeout.
10404 </desc>
10405 </param>
10406 <param name="priority" type="ProcessPriority" dir="in">
10407 <desc>
10408 Process priority to use for execution;
10409 see see <link to="ProcessPriority"/> for more information.</desc>
10410 </param>
10411 <param name="affinity" type="long" dir="in" safearray="yes">
10412 <desc>
10413 Process affinity to use for execution. This parameter
10414 is not implemented yet.
10415 </desc>
10416 </param>
10417 <param name="guestProcess" type="IGuestProcess" dir="return">
10418 <desc>Guest process object of the newly created process.</desc>
10419 </param>
10420 </method>
10421
10422 <method name="processGet">
10423 <desc>
10424 Gets a certain guest process by its process ID (PID).
10425 </desc>
10426 <param name="pid" type="unsigned long" dir="in">
10427 <desc>Process ID (PID) to get guest process for.</desc>
10428 </param>
10429 <param name="guestProcess" type="IGuestProcess" dir="return">
10430 <desc>Guest process of specified process ID (PID).</desc>
10431 </param>
10432 </method>
10433
10434 <method name="symlinkCreate">
10435 <desc>
10436 Creates a symbolic link on the guest.
10437
10438 <result name="E_NOTIMPL">
10439 The method is not implemented yet.
10440 </result>
10441 </desc>
10442 <param name="source" type="wstring" dir="in">
10443 <desc>The name of the symbolic link.</desc>
10444 </param>
10445 <param name="target" type="wstring" dir="in">
10446 <desc>The path to the symbolic link target.</desc>
10447 </param>
10448 <param name="type" type="SymlinkType" dir="in">
10449 <desc>
10450 The symbolic link type;
10451 see <link to="SymlinkReadFlag"/> for more information.
10452 </desc>
10453 </param>
10454 </method>
10455
10456 <method name="symlinkExists">
10457 <desc>
10458 Checks whether a symbolic link exists on the guest or not.
10459
10460 <result name="E_NOTIMPL">
10461 The method is not implemented yet.
10462 </result>
10463 </desc>
10464 <param name="symlink" type="wstring" dir="in">
10465 <desc>Symbolic link to check existence for.</desc>
10466 </param>
10467 <param name="exists" type="boolean" dir="return">
10468 <desc>Returns @c true if the symbolic link exists, @c false if not.</desc>
10469 </param>
10470 </method>
10471
10472 <method name="symlinkRead">
10473 <desc>
10474 Reads a symbolic link on the guest.
10475
10476 <result name="E_NOTIMPL">
10477 The method is not implemented yet.
10478 </result>
10479 </desc>
10480 <param name="symlink" type="wstring" dir="in">
10481 <desc>Full path to symbolic link to read.</desc>
10482 </param>
10483 <param name="flags" type="SymlinkReadFlag" dir="in" safearray="yes">
10484 <desc>
10485 Read flags; see <link to="SymlinkReadFlag"/> for more information.
10486 </desc>
10487 </param>
10488 <param name="target" type="wstring" dir="return">
10489 <desc>
10490 Target of the symbolic link pointing to, if found.
10491 </desc>
10492 </param>
10493 </method>
10494
10495 <method name="symlinkRemoveDirectory">
10496 <desc>
10497 Removes a symbolic link on the guest if it's a directory.
10498
10499 <result name="E_NOTIMPL">
10500 The method is not implemented yet.
10501 </result>
10502 </desc>
10503 <param name="path" type="wstring" dir="in">
10504 <desc>Symbolic link to remove.</desc>
10505 </param>
10506 </method>
10507
10508 <method name="symlinkRemoveFile">
10509 <desc>
10510 Removes a symbolic link on the guest if it's a file.
10511
10512 <result name="E_NOTIMPL">
10513 The method is not implemented yet.
10514 </result>
10515 </desc>
10516 <param name="file" type="wstring" dir="in">
10517 <desc>Symbolic link to remove.</desc>
10518 </param>
10519 </method>
10520
10521 <method name="waitFor">
10522 <desc>
10523 Waits for one more events to happen.
10524 </desc>
10525 <param name="waitFor" type="unsigned long" dir="in">
10526 <desc>
10527 Specifies what to wait for;
10528 see <link to="GuestSessionWaitForFlag"/> for more information.
10529 </desc>
10530 </param>
10531 <param name="timeoutMS" type="unsigned long" dir="in">
10532 <desc>
10533 Timeout (in ms) to wait for the operation to complete.
10534 Pass 0 for an infinite timeout.
10535 </desc>
10536 </param>
10537 <param name="reason" type="GuestSessionWaitResult" dir="return">
10538 <desc>
10539 The overall wait result;
10540 see <link to="GuestSessionWaitResult"/> for more information.
10541 </desc>
10542 </param>
10543 </method>
10544
10545 <method name="waitForArray">
10546 <desc>
10547 Waits for one more events to happen.
10548 Scriptable version of <link to="#waitFor" />.
10549 </desc>
10550 <param name="waitFor" type="GuestSessionWaitForFlag" dir="in" safearray="yes">
10551 <desc>
10552 Specifies what to wait for;
10553 see <link to="GuestSessionWaitForFlag"/> for more information.
10554 </desc>
10555 </param>
10556 <param name="timeoutMS" type="unsigned long" dir="in">
10557 <desc>
10558 Timeout (in ms) to wait for the operation to complete.
10559 Pass 0 for an infinite timeout.
10560 </desc>
10561 </param>
10562 <param name="reason" type="GuestSessionWaitResult" dir="return">
10563 <desc>
10564 The overall wait result;
10565 see <link to="GuestSessionWaitResult"/> for more information.
10566 </desc>
10567 </param>
10568 </method>
10569
10570 </interface>
10571
10572 <interface
10573 name="IProcess" extends="$unknown"
10574 uuid="5a4fe06d-8cb1-40ff-ac9e-9676e32f706e"
10575 wsmap="managed"
10576 >
10577 <desc>
10578 Abstract parent interface for processes handled by VirtualBox.
10579 </desc>
10580
10581 <attribute name="arguments" type="wstring" readonly="yes" safearray="yes">
10582 <desc>
10583 The arguments this process is using for execution.
10584 </desc>
10585 </attribute>
10586 <attribute name="environment" type="wstring" readonly="yes" safearray="yes">
10587 <desc>
10588 The environment block this process is using during execution.
10589 </desc>
10590 </attribute>
10591 <attribute name="eventSource" type="IEventSource" readonly="yes">
10592 <desc>
10593 Event source for VirtualBox events.
10594 </desc>
10595 </attribute>
10596 <attribute name="executablePath" type="wstring" readonly="yes">
10597 <desc>Full path of the actual executable image.</desc>
10598 </attribute>
10599 <attribute name="exitCode" type="long" readonly="yes">
10600 <desc>
10601 The exit code. Only available when the process has been
10602 terminated normally.
10603 </desc>
10604 </attribute>
10605 <attribute name="name" type="wstring" readonly="yes">
10606 <desc>
10607 The friendly name of this process.
10608 </desc>
10609 </attribute>
10610 <attribute name="PID" type="unsigned long" readonly="yes">
10611 <desc>
10612 The process ID (PID).
10613 </desc>
10614 </attribute>
10615 <attribute name="status" type="ProcessStatus" readonly="yes">
10616 <desc>
10617 The current process status; see <link to="ProcessStatus"/>
10618 for more information.
10619 </desc>
10620 </attribute>
10621
10622 <method name="waitFor">
10623 <desc>
10624 Waits for one more events to happen.
10625 </desc>
10626 <param name="waitFor" type="unsigned long" dir="in">
10627 <desc>
10628 Specifies what to wait for;
10629 see <link to="ProcessWaitForFlag"/> for more information.
10630 </desc>
10631 </param>
10632 <param name="timeoutMS" type="unsigned long" dir="in">
10633 <desc>
10634 Timeout (in ms) to wait for the operation to complete.
10635 Pass 0 for an infinite timeout.
10636 </desc>
10637 </param>
10638 <param name="reason" type="ProcessWaitResult" dir="return">
10639 <desc>
10640 The overall wait result;
10641 see <link to="ProcessWaitResult"/> for more information.
10642 </desc>
10643 </param>
10644 </method>
10645
10646 <method name="waitForArray">
10647 <desc>
10648 Waits for one more events to happen.
10649 Scriptable version of <link to="#waitFor" />.
10650 </desc>
10651 <param name="waitFor" type="ProcessWaitForFlag" dir="in" safearray="yes">
10652 <desc>
10653 Specifies what to wait for;
10654 see <link to="ProcessWaitForFlag"/> for more information.
10655 </desc>
10656 </param>
10657 <param name="timeoutMS" type="unsigned long" dir="in">
10658 <desc>
10659 Timeout (in ms) to wait for the operation to complete.
10660 Pass 0 for an infinite timeout.
10661 </desc>
10662 </param>
10663 <param name="reason" type="ProcessWaitResult" dir="return">
10664 <desc>
10665 The overall wait result;
10666 see <link to="ProcessWaitResult"/> for more information.
10667 </desc>
10668 </param>
10669 </method>
10670
10671 <method name="read">
10672 <desc>
10673 Reads data from a running process.
10674 </desc>
10675 <param name="handle" type="unsigned long" dir="in">
10676 <desc>Handle to read from. Usually 0 is stdin.</desc>
10677 </param>
10678 <param name="toRead" type="unsigned long" dir="in">
10679 <desc>Number of bytes to read.</desc>
10680 </param>
10681 <param name="timeoutMS" type="unsigned long" dir="in">
10682 <desc>
10683 Timeout (in ms) to wait for the operation to complete.
10684 Pass 0 for an infinite timeout.
10685 </desc>
10686 </param>
10687 <param name="data" type="octet" dir="return" safearray="yes">
10688 <desc>Array of data read.</desc>
10689 </param>
10690 </method>
10691
10692 <method name="write">
10693 <desc>
10694 Writes data to a running process.
10695 </desc>
10696 <param name="handle" type="unsigned long" dir="in">
10697 <desc>Handle to write to. Usually 0 is stdin, 1 is stdout and 2 is stderr.</desc>
10698 </param>
10699 <param name="flags" type="unsigned long" dir="in">
10700 <desc>
10701 A combination of <link to="ProcessInputFlag"/> flags.
10702 </desc>
10703 </param>
10704 <param name="data" type="octet" dir="in" safearray="yes">
10705 <desc>
10706 Array of bytes to write. The size of the array also specifies
10707 how much to write.
10708 </desc>
10709 </param>
10710 <param name="timeoutMS" type="unsigned long" dir="in">
10711 <desc>
10712 Timeout (in ms) to wait for the operation to complete.
10713 Pass 0 for an infinite timeout.
10714 </desc>
10715 </param>
10716 <param name="written" type="unsigned long" dir="return">
10717 <desc>How much bytes were written.</desc>
10718 </param>
10719 </method>
10720
10721 <method name="writeArray">
10722 <desc>
10723 Writes data to a running process.
10724 Scriptable version of <link to="#write" />.
10725 </desc>
10726 <param name="handle" type="unsigned long" dir="in">
10727 <desc>Handle to write to. Usually 0 is stdin, 1 is stdout and 2 is stderr.</desc>
10728 </param>
10729 <param name="flags" type="ProcessInputFlag" dir="in" safearray="yes">
10730 <desc>
10731 A combination of <link to="ProcessInputFlag"/> flags.
10732 </desc>
10733 </param>
10734 <param name="data" type="octet" dir="in" safearray="yes">
10735 <desc>
10736 Array of bytes to write. The size of the array also specifies
10737 how much to write.
10738 </desc>
10739 </param>
10740 <param name="timeoutMS" type="unsigned long" dir="in">
10741 <desc>
10742 Timeout (in ms) to wait for the operation to complete.
10743 Pass 0 for an infinite timeout.
10744 </desc>
10745 </param>
10746 <param name="written" type="unsigned long" dir="return">
10747 <desc>How much bytes were written.</desc>
10748 </param>
10749 </method>
10750
10751 <method name="terminate">
10752 <desc>
10753 Terminates (kills) a running process.
10754 </desc>
10755 </method>
10756 </interface>
10757
10758 <interface
10759 name="IGuestProcess" extends="IProcess"
10760 uuid="dfa39a36-5d43-4840-a025-67ea956b3111"
10761 wsmap="managed"
10762 >
10763 <desc>
10764 Implementation of the <link to="IProcess" /> object
10765 for processes on the guest.
10766 </desc>
10767 </interface>
10768
10769 <interface
10770 name="IDirectory" extends="$unknown"
10771 uuid="1b70dd03-26d7-483a-8877-89bbb0f87b70"
10772 wsmap="managed"
10773 >
10774 <desc>
10775 Abstract parent interface for directories handled by VirtualBox.
10776 </desc>
10777
10778 <attribute name="directoryName" type="wstring" readonly="yes">
10779 <desc>
10780 Full path of directory.
10781 </desc>
10782 </attribute>
10783
10784 <attribute name="filter" type="wstring" readonly="yes">
10785 <desc>
10786 The open filter.
10787 </desc>
10788 </attribute>
10789
10790 <method name="close">
10791 <desc>
10792 Closes this directory. After closing operations like reading the next
10793 directory entry will not be possible anymore.
10794 </desc>
10795 </method>
10796
10797 <method name="read">
10798 <desc>
10799 Reads the next directory entry of this directory.
10800 <result name="VBOX_E_OBJECT_NOT_FOUND">
10801 No more directory entries to read.
10802 </result>
10803 </desc>
10804 <param name="objInfo" type="IFsObjInfo" dir="return">
10805 <desc>Object information of the current directory entry read. Also see
10806 <link to="IFsObjInfo"/>.</desc>
10807 </param>
10808 </method>
10809 </interface>
10810
10811 <interface
10812 name="IGuestDirectory" extends="IDirectory"
10813 uuid="af4a8ce0-0725-42b7-8826-46e3c7ba7357"
10814 wsmap="managed"
10815 >
10816 <desc>
10817 Implementation of the <link to="IDirectory" /> object
10818 for directories on the guest.
10819 </desc>
10820 </interface>
10821
10822 <interface
10823 name="IFile" extends="$unknown"
10824 uuid="ceb895d7-8b2d-4a39-8f7c-7d2270f341d5"
10825 wsmap="managed"
10826 >
10827 <desc>
10828 Abstract parent interface for files handled by VirtualBox.
10829 </desc>
10830 <attribute name="creationMode" type="unsigned long" readonly="yes">
10831 <desc>
10832 The creation mode.
10833 </desc>
10834 </attribute>
10835 <attribute name="disposition" type="unsigned long" readonly="yes">
10836 <desc>
10837 The disposition mode.
10838 </desc>
10839 </attribute>
10840 <attribute name="eventSource" type="IEventSource" readonly="yes">
10841 <desc>
10842 Event source for guest session events.
10843 </desc>
10844 </attribute>
10845 <attribute name="fileName" type="wstring" readonly="yes">
10846 <desc>
10847 Full path of the actual file name of this file.
10848 </desc>
10849 </attribute>
10850 <attribute name="initialSize" type="long long" readonly="yes">
10851 <desc>
10852 The initial size in bytes when opened.
10853 </desc>
10854 </attribute>
10855 <attribute name="openMode" type="unsigned long" readonly="yes">
10856 <desc>
10857 The open mode.
10858 </desc>
10859 </attribute>
10860 <attribute name="offset" type="long long" readonly="yes">
10861 <desc>
10862 Current read/write offset in bytes.
10863 </desc>
10864 </attribute>
10865 <attribute name="status" type="FileStatus" readonly="yes">
10866 <desc>
10867 TODO
10868 </desc>
10869 </attribute>
10870
10871 <method name="close">
10872 <desc>
10873 Closes this file. After closing operations like reading data,
10874 writing data or querying information will not be possible anymore.
10875 </desc>
10876 </method>
10877
10878 <method name="queryInfo">
10879 <desc>
10880 Queries information about this file.
10881
10882 <result name="E_NOTIMPL">
10883 The method is not implemented yet.
10884 </result>
10885 </desc>
10886 <param name="objInfo" type="IFsObjInfo" dir="return">
10887 <desc>Object information of this file. Also see
10888 <link to="IFsObjInfo"/>.</desc>
10889 </param>
10890 </method>
10891
10892 <method name="read">
10893 <desc>
10894 Reads data from this file.
10895
10896 <result name="E_NOTIMPL">
10897 The method is not implemented yet.
10898 </result>
10899 </desc>
10900 <param name="toRead" type="unsigned long" dir="in">
10901 <desc>Number of bytes to read.</desc>
10902 </param>
10903 <param name="timeoutMS" type="unsigned long" dir="in">
10904 <desc>
10905 Timeout (in ms) to wait for the operation to complete.
10906 Pass 0 for an infinite timeout.
10907 </desc>
10908 </param>
10909 <param name="data" type="octet" dir="return" safearray="yes">
10910 <desc>Array of data read.</desc>
10911 </param>
10912 </method>
10913
10914 <method name="readAt">
10915 <desc>
10916 Reads data from an offset of this file.
10917
10918 <result name="E_NOTIMPL">
10919 The method is not implemented yet.
10920 </result>
10921 </desc>
10922 <param name="offset" type="long long" dir="in">
10923 <desc>Offset in bytes to start reading.</desc>
10924 </param>
10925 <param name="toRead" type="unsigned long" dir="in">
10926 <desc>Number of bytes to read.</desc>
10927 </param>
10928 <param name="timeoutMS" type="unsigned long" dir="in">
10929 <desc>
10930 Timeout (in ms) to wait for the operation to complete.
10931 Pass 0 for an infinite timeout.
10932 </desc>
10933 </param>
10934 <param name="data" type="octet" dir="return" safearray="yes">
10935 <desc>Array of data read.</desc>
10936 </param>
10937 </method>
10938
10939 <method name="seek">
10940 <desc>
10941 Changes the read and write position of this file.
10942
10943 <result name="E_NOTIMPL">
10944 The method is not implemented yet.
10945 </result>
10946 </desc>
10947 <param name="offset" type="long long" dir="in">
10948 <desc>Offset to seek.</desc>
10949 </param>
10950 <param name="whence" type="FileSeekType" dir="in">
10951 <desc>
10952 Seek mode; see <link to="FileSeekType"/> for more information.
10953 </desc>
10954 </param>
10955 </method>
10956
10957 <method name="setACL">
10958 <desc>
10959 Sets the ACL of this file.
10960
10961 <result name="E_NOTIMPL">
10962 The method is not implemented yet.
10963 </result>
10964 </desc>
10965 <param name="acl" type="wstring" dir="in">
10966 <desc>ACL string to set.</desc>
10967 </param>
10968 </method>
10969
10970 <method name="write">
10971 <desc>
10972 Writes bytes to this file.
10973 </desc>
10974 <param name="data" type="octet" dir="in" safearray="yes">
10975 <desc>
10976 Array of bytes to write. The size of the array also specifies
10977 how much to write.
10978 </desc>
10979 </param>
10980 <param name="timeoutMS" type="unsigned long" dir="in">
10981 <desc>
10982 Timeout (in ms) to wait for the operation to complete.
10983 Pass 0 for an infinite timeout.
10984 </desc>
10985 </param>
10986 <param name="written" type="unsigned long" dir="return">
10987 <desc>How much bytes were written.</desc>
10988 </param>
10989 </method>
10990
10991 <method name="writeAt">
10992 <desc>
10993 Writes bytes at a certain offset to this file.
10994
10995 <result name="E_NOTIMPL">
10996 The method is not implemented yet.
10997 </result>
10998 </desc>
10999 <param name="offset" type="long long" dir="in">
11000 <desc>Offset in bytes to start writing.</desc>
11001 </param>
11002 <param name="data" type="octet" dir="in" safearray="yes">
11003 <desc>
11004 Array of bytes to write. The size of the array also specifies
11005 how much to write.
11006 </desc>
11007 </param>
11008 <param name="timeoutMS" type="unsigned long" dir="in">
11009 <desc>
11010 Timeout (in ms) to wait for the operation to complete.
11011 Pass 0 for an infinite timeout.
11012 </desc>
11013 </param>
11014 <param name="written" type="unsigned long" dir="return">
11015 <desc>How much bytes were written.</desc>
11016 </param>
11017 </method>
11018
11019 </interface>
11020
11021 <interface
11022 name="IGuestFile" extends="IFile"
11023 uuid="60661aec-145f-4d11-b80e-8ea151598093"
11024 wsmap="managed"
11025 >
11026 <desc>
11027 Implementation of the <link to="IFile" /> object
11028 for files on the guest.
11029 </desc>
11030 </interface>
11031
11032 <interface
11033 name="IFsObjInfo" extends="$unknown"
11034 uuid="4047ba30-7006-4966-ae86-94164e5e20eb"
11035 wsmap="managed"
11036 >
11037 <desc>
11038 Abstract parent interface for VirtualBox file system object information.
11039 This can be information about a file or a directory, for example.
11040 </desc>
11041
11042 <attribute name="accessTime" type="long long" readonly="yes">
11043 <desc>
11044 Time of last access (st_atime).
11045 </desc>
11046 </attribute>
11047 <attribute name="allocatedSize" type="long long" readonly="yes">
11048 <desc>
11049 Disk allocation size (st_blocks * DEV_BSIZE).
11050 </desc>
11051 </attribute>
11052 <attribute name="birthTime" type="long long" readonly="yes">
11053 <desc>
11054 Time of file birth (st_birthtime).
11055 </desc>
11056 </attribute>
11057 <attribute name="changeTime" type="long long" readonly="yes">
11058 <desc>
11059 Time of last status change (st_ctime).
11060 </desc>
11061 </attribute>
11062 <attribute name="deviceNumber" type="unsigned long" readonly="yes">
11063 <desc>
11064 The device number of a character or block device type object (st_rdev).
11065 </desc>
11066 </attribute>
11067 <attribute name="fileAttributes" type="wstring" readonly="yes">
11068 <desc>
11069 File attributes. Not implemented yet.
11070 </desc>
11071 </attribute>
11072 <attribute name="generationId" type="unsigned long" readonly="yes">
11073 <desc>
11074 The current generation number (st_gen).
11075 </desc>
11076 </attribute>
11077 <attribute name="GID" type="unsigned long" readonly="yes">
11078 <desc>
11079 The group the filesystem object is assigned (st_gid).
11080 </desc>
11081 </attribute>
11082 <attribute name="groupName" type="wstring" readonly="yes">
11083 <desc>
11084 The group name.
11085 </desc>
11086 </attribute>
11087 <attribute name="hardLinks" type="unsigned long" readonly="yes">
11088 <desc>
11089 Number of hard links to this filesystem object (st_nlink).
11090 </desc>
11091 </attribute>
11092 <attribute name="modificationTime" type="long long" readonly="yes">
11093 <desc>
11094 Time of last data modification (st_mtime).
11095 </desc>
11096 </attribute>
11097 <attribute name="name" type="wstring" readonly="yes">
11098 <desc>
11099 The object's name.
11100 </desc>
11101 </attribute>
11102 <attribute name="nodeId" type="long long" readonly="yes">
11103 <desc>
11104 The unique identifier (within the filesystem) of this filesystem object (st_ino).
11105 </desc>
11106 </attribute>
11107 <attribute name="nodeIdDevice" type="unsigned long" readonly="yes">
11108 <desc>
11109 The device number of the device which this filesystem object resides on (st_dev).
11110 </desc>
11111 </attribute>
11112 <attribute name="objectSize" type="long long" readonly="yes">
11113 <desc>
11114 The logical size (st_size). For normal files this is the size of the file.
11115 For symbolic links, this is the length of the path name contained in the
11116 symbolic link. For other objects this fields needs to be specified.
11117 </desc>
11118 </attribute>
11119 <attribute name="type" type="FsObjType" readonly="yes">
11120 <desc>
11121 The object type. See <link to="FsObjType" /> for more.
11122 </desc>
11123 </attribute>
11124 <attribute name="UID" type="unsigned long" readonly="yes">
11125 <desc>
11126 The user owning the filesystem object (st_uid).
11127 </desc>
11128 </attribute>
11129 <attribute name="userFlags" type="unsigned long" readonly="yes">
11130 <desc>
11131 User flags (st_flags).
11132 </desc>
11133 </attribute>
11134 <attribute name="userName" type="wstring" readonly="yes">
11135 <desc>
11136 The user name.
11137 </desc>
11138 </attribute>
11139
11140 </interface>
11141
11142 <interface
11143 name="IGuestFsObjInfo" extends="IFsObjInfo"
11144 uuid="d5cf678e-3484-4e4a-ac55-329e15462e18"
11145 wsmap="managed"
11146 >
11147 <desc>
11148 Represents the guest implementation of the
11149 <link to="IFsObjInfo" /> object.
11150 </desc>
11151 </interface>
11152
11153 <interface
11154 name="IGuest" extends="$unknown"
11155 uuid="19c32350-0618-4ede-b0c3-2b4311bf0d9b"
11156 wsmap="managed"
11157 >
11158 <desc>
11159 The IGuest interface represents information about the operating system
11160 running inside the virtual machine. Used in
11161 <link to="IConsole::guest"/>.
11162
11163 IGuest provides information about the guest operating system, whether
11164 Guest Additions are installed and other OS-specific virtual machine
11165 properties.
11166 </desc>
11167
11168 <attribute name="OSTypeId" type="wstring" readonly="yes">
11169 <desc>
11170 Identifier of the Guest OS type as reported by the Guest
11171 Additions.
11172 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
11173 an IGuestOSType object representing details about the given
11174 Guest OS type.
11175 <note>
11176 If Guest Additions are not installed, this value will be
11177 the same as <link to="IMachine::OSTypeId"/>.
11178 </note>
11179 </desc>
11180 </attribute>
11181
11182 <attribute name="additionsRunLevel" type="AdditionsRunLevelType" readonly="yes">
11183 <desc>
11184 Current run level of the Guest Additions.
11185 </desc>
11186 </attribute>
11187
11188 <attribute name="additionsVersion" type="wstring" readonly="yes">
11189 <desc>
11190 Version of the Guest Additions in the same format as
11191 <link to="IVirtualBox::version"/>.
11192 </desc>
11193 </attribute>
11194
11195 <attribute name="additionsRevision" type="unsigned long" readonly="yes">
11196 <desc>
11197 The internal build revision number of the additions.
11198
11199 See also <link to="IVirtualBox::revision"/>.
11200 </desc>
11201 </attribute>
11202
11203 <attribute name="facilities" type="IAdditionsFacility" readonly="yes" safearray="yes">
11204 <desc>
11205 Array of current known facilities. Only returns facilities where a status is known,
11206 e.g. facilities with an unknown status will not be returned.
11207 </desc>
11208 </attribute>
11209
11210 <attribute name="sessions" type="IGuestSession" readonly="yes" safearray="yes">
11211 <desc>Returns a collection of all opened guest sessions.</desc>
11212 </attribute>
11213
11214 <attribute name="memoryBalloonSize" type="unsigned long">
11215 <desc>Guest system memory balloon size in megabytes (transient property).</desc>
11216 </attribute>
11217
11218 <attribute name="statisticsUpdateInterval" type="unsigned long">
11219 <desc>Interval to update guest statistics in seconds.</desc>
11220 </attribute>
11221
11222 <method name="internalGetStatistics">
11223 <desc>
11224 Internal method; do not use as it might change at any time.
11225 </desc>
11226 <param name="cpuUser" type="unsigned long" dir="out">
11227 <desc>Percentage of processor time spent in user mode as seen by the guest.</desc>
11228 </param>
11229 <param name="cpuKernel" type="unsigned long" dir="out">
11230 <desc>Percentage of processor time spent in kernel mode as seen by the guest.</desc>
11231 </param>
11232 <param name="cpuIdle" type="unsigned long" dir="out">
11233 <desc>Percentage of processor time spent idling as seen by the guest.</desc>
11234 </param>
11235 <param name="memTotal" type="unsigned long" dir="out">
11236 <desc>Total amount of physical guest RAM.</desc>
11237 </param>
11238 <param name="memFree" type="unsigned long" dir="out">
11239 <desc>Free amount of physical guest RAM.</desc>
11240 </param>
11241 <param name="memBalloon" type="unsigned long" dir="out">
11242 <desc>Amount of ballooned physical guest RAM.</desc>
11243 </param>
11244 <param name="memShared" type="unsigned long" dir="out">
11245 <desc>Amount of shared physical guest RAM.</desc>
11246 </param>
11247 <param name="memCache" type="unsigned long" dir="out">
11248 <desc>Total amount of guest (disk) cache memory.</desc>
11249 </param>
11250 <param name="pagedTotal" type="unsigned long" dir="out">
11251 <desc>Total amount of space in the page file.</desc>
11252 </param>
11253 <param name="memAllocTotal" type="unsigned long" dir="out">
11254 <desc>Total amount of memory allocated by the hypervisor.</desc>
11255 </param>
11256 <param name="memFreeTotal" type="unsigned long" dir="out">
11257 <desc>Total amount of free memory available in the hypervisor.</desc>
11258 </param>
11259 <param name="memBalloonTotal" type="unsigned long" dir="out">
11260 <desc>Total amount of memory ballooned by the hypervisor.</desc>
11261 </param>
11262 <param name="memSharedTotal" type="unsigned long" dir="out">
11263 <desc>Total amount of shared memory in the hypervisor.</desc>
11264 </param>
11265 </method>
11266
11267 <method name="getFacilityStatus">
11268 <desc>
11269 Get the current status of a Guest Additions facility.
11270 </desc>
11271 <param name="facility" type="AdditionsFacilityType" dir="in">
11272 <desc>Facility to check status for.</desc>
11273 </param>
11274 <param name="timestamp" type="long long" dir="out">
11275 <desc>Timestamp (in ms) of last status update seen by the host.</desc>
11276 </param>
11277 <param name="status" type="AdditionsFacilityStatus" dir="return">
11278 <desc>The current (latest) facility status.</desc>
11279 </param>
11280 </method>
11281
11282 <method name="getAdditionsStatus">
11283 <desc>
11284 Retrieve the current status of a certain Guest Additions run level.
11285
11286 <result name="VBOX_E_NOT_SUPPORTED">
11287 Wrong status level specified.
11288 </result>
11289
11290 </desc>
11291 <param name="level" type="AdditionsRunLevelType" dir="in">
11292 <desc>Status level to check</desc>
11293 </param>
11294 <param name="active" type="boolean" dir="return">
11295 <desc>Flag whether the status level has been reached or not</desc>
11296 </param>
11297 </method>
11298
11299 <method name="setCredentials">
11300 <desc>
11301 Store login credentials that can be queried by guest operating
11302 systems with Additions installed. The credentials are transient
11303 to the session and the guest may also choose to erase them. Note
11304 that the caller cannot determine whether the guest operating system
11305 has queried or made use of the credentials.
11306
11307 <result name="VBOX_E_VM_ERROR">
11308 VMM device is not available.
11309 </result>
11310
11311 </desc>
11312 <param name="userName" type="wstring" dir="in">
11313 <desc>User name string, can be empty</desc>
11314 </param>
11315 <param name="password" type="wstring" dir="in">
11316 <desc>Password string, can be empty</desc>
11317 </param>
11318 <param name="domain" type="wstring" dir="in">
11319 <desc>Domain name (guest logon scheme specific), can be empty</desc>
11320 </param>
11321 <param name="allowInteractiveLogon" type="boolean" dir="in">
11322 <desc>
11323 Flag whether the guest should alternatively allow the user to
11324 interactively specify different credentials. This flag might
11325 not be supported by all versions of the Additions.
11326 </desc>
11327 </param>
11328 </method>
11329
11330 <method name="dragHGEnter">
11331 <desc>
11332 Informs the guest about a Drag and Drop enter event.
11333
11334 This is used in Host - Guest direction.
11335
11336 <result name="VBOX_E_VM_ERROR">
11337 VMM device is not available.
11338 </result>
11339
11340 </desc>
11341 <param name="screenId" type="unsigned long" dir="in">
11342 <desc>The screen id where the Drag and Drop event occured.</desc>
11343 </param>
11344 <param name="y" type="unsigned long" dir="in">
11345 <desc>y-position of the event.</desc>
11346 </param>
11347 <param name="x" type="unsigned long" dir="in">
11348 <desc>x-position of the event.</desc>
11349 </param>
11350 <param name="defaultAction" type="DragAndDropAction" dir="in">
11351 <desc>The default action to use.</desc>
11352 </param>
11353 <param name="allowedActions" type="DragAndDropAction" dir="in" safearray="yes">
11354 <desc>The actions which are allowed.</desc>
11355 </param>
11356 <param name="formats" type="wstring" dir="in" safearray="yes">
11357 <desc>The supported mime types.</desc>
11358 </param>
11359 <param name="resultAction" type="DragAndDropAction" dir="return">
11360 <desc>The resulting action of this event.</desc>
11361 </param>
11362 </method>
11363
11364 <method name="dragHGMove">
11365 <desc>
11366 Informs the guest about a Drag and Drop move event.
11367
11368 This is used in Host - Guest direction.
11369
11370 <result name="VBOX_E_VM_ERROR">
11371 VMM device is not available.
11372 </result>
11373
11374 </desc>
11375 <param name="screenId" type="unsigned long" dir="in">
11376 <desc>The screen id where the Drag and Drop event occured.</desc>
11377 </param>
11378 <param name="x" type="unsigned long" dir="in">
11379 <desc>x-position of the event.</desc>
11380 </param>
11381 <param name="y" type="unsigned long" dir="in">
11382 <desc>y-position of the event.</desc>
11383 </param>
11384 <param name="defaultAction" type="DragAndDropAction" dir="in">
11385 <desc>The default action to use.</desc>
11386 </param>
11387 <param name="allowedActions" type="DragAndDropAction" dir="in" safearray="yes">
11388 <desc>The actions which are allowed.</desc>
11389 </param>
11390 <param name="formats" type="wstring" dir="in" safearray="yes">
11391 <desc>The supported mime types.</desc>
11392 </param>
11393 <param name="resultAction" type="DragAndDropAction" dir="return">
11394 <desc>The resulting action of this event.</desc>
11395 </param>
11396 </method>
11397
11398 <method name="dragHGLeave">
11399 <desc>
11400 Informs the guest about a Drag and Drop leave event.
11401
11402 This is used in Host - Guest direction.
11403
11404 <result name="VBOX_E_VM_ERROR">
11405 VMM device is not available.
11406 </result>
11407
11408 </desc>
11409 <param name="screenId" type="unsigned long" dir="in">
11410 <desc>The screen id where the Drag and Drop event occured.</desc>
11411 </param>
11412 </method>
11413
11414 <method name="dragHGDrop">
11415 <desc>
11416 Informs the guest about a drop event.
11417
11418 This is used in Host - Guest direction.
11419
11420 <result name="VBOX_E_VM_ERROR">
11421 VMM device is not available.
11422 </result>
11423
11424 </desc>
11425 <param name="screenId" type="unsigned long" dir="in">
11426 <desc>The screen id where the Drag and Drop event occured.</desc>
11427 </param>
11428 <param name="x" type="unsigned long" dir="in">
11429 <desc>x-position of the event.</desc>
11430 </param>
11431 <param name="y" type="unsigned long" dir="in">
11432 <desc>y-position of the event.</desc>
11433 </param>
11434 <param name="defaultAction" type="DragAndDropAction" dir="in">
11435 <desc>The default action to use.</desc>
11436 </param>
11437 <param name="allowedActions" type="DragAndDropAction" dir="in" safearray="yes">
11438 <desc>The actions which are allowed.</desc>
11439 </param>
11440 <param name="formats" type="wstring" dir="in" safearray="yes">
11441 <desc>The supported mime types.</desc>
11442 </param>
11443 <param name="format" type="wstring" dir="out">
11444 <desc>The resulting format of this event.</desc>
11445 </param>
11446 <param name="resultAction" type="DragAndDropAction" dir="return">
11447 <desc>The resulting action of this event.</desc>
11448 </param>
11449 </method>
11450
11451 <method name="dragHGPutData">
11452 <desc>
11453 Informs the guest about a drop data event.
11454
11455 This is used in Host - Guest direction.
11456
11457 <result name="VBOX_E_VM_ERROR">
11458 VMM device is not available.
11459 </result>
11460
11461 </desc>
11462 <param name="screenId" type="unsigned long" dir="in">
11463 <desc>The screen id where the Drag and Drop event occured.</desc>
11464 </param>
11465 <param name="format" type="wstring" dir="in">
11466 <desc>The mime type the data is in.</desc>
11467 </param>
11468 <param name="data" type="octet" dir="in" safearray="yes">
11469 <desc>The actual data.</desc>
11470 </param>
11471 <param name="progress" type="IProgress" dir="return">
11472 <desc>Progress object to track the operation completion.</desc>
11473 </param>
11474 </method>
11475
11476 <method name="dragGHPending">
11477 <desc>
11478 Ask the guest if there is any Drag and Drop operation pending in the guest.
11479
11480 If no Drag and Drop operation is pending currently, Ignore is returned.
11481
11482 This is used in Guest - Host direction.
11483
11484 <result name="VBOX_E_VM_ERROR">
11485 VMM device is not available.
11486 </result>
11487
11488 </desc>
11489 <param name="screenId" type="unsigned long" dir="in">
11490 <desc>The screen id where the Drag and Drop event occured.</desc>
11491 </param>
11492 <param name="formats" type="wstring" dir="out" safearray="yes">
11493 <desc>On return the supported mime types.</desc>
11494 </param>
11495 <param name="allowedActions" type="DragAndDropAction" dir="out" safearray="yes">
11496 <desc>On return the actions which are allowed.</desc>
11497 </param>
11498 <param name="defaultAction" type="DragAndDropAction" dir="return">
11499 <desc>On return the default action to use.</desc>
11500 </param>
11501 </method>
11502
11503 <method name="dragGHDropped">
11504 <desc>
11505 Informs the guest that a drop event occured for a pending Drag and Drop event.
11506
11507 This is used in Guest - Host direction.
11508
11509 <result name="VBOX_E_VM_ERROR">
11510 VMM device is not available.
11511 </result>
11512
11513 </desc>
11514
11515 <param name="format" type="wstring" dir="in">
11516 <desc>The mime type the data must be in.</desc>
11517 </param>
11518 <param name="action" type="DragAndDropAction" dir="in">
11519 <desc>The action to use.</desc>
11520 </param>
11521 <param name="progress" type="IProgress" dir="return">
11522 <desc>Progress object to track the operation completion.</desc>
11523 </param>
11524 </method>
11525
11526 <method name="dragGHGetData">
11527 <desc>
11528 Fetch the data of a previously Drag and Drop event from the guest.
11529
11530 This is used in Guest - Host direction.
11531
11532 <result name="VBOX_E_VM_ERROR">
11533 VMM device is not available.
11534 </result>
11535
11536 </desc>
11537
11538 <param name="data" type="octet" safearray="yes" dir="return">
11539 <desc>The actual data.</desc>
11540 </param>
11541 </method>
11542
11543 <method name="createSession">
11544 <desc>
11545 Creates a new guest session for controlling the guest.
11546
11547 A guest session represents one impersonated user account on the guest, so
11548 every operation will use the same credentials specified when creating
11549 the session object via <link to="IGuest::createSession"/>. Anonymous
11550 sessions, that is, sessions without specifying a valid
11551 user account on the guest are not allowed due to security reasons.
11552
11553 There can be a maximum of 32 sessions at once per VM. Each session keeps
11554 track of its started guest processes, opened guest files or guest directories.
11555 To work on guest files or directories a guest session offers methods to open
11556 or create such objects (see <link to="IGuestSession::fileOpen"/> or
11557 <link to="IGuestSession::directoryOpen"/> for example).
11558
11559 When done with either of these objects, including the guest session itself,
11560 use the appropriate close() method to let the object do its cleanup work.
11561
11562 Every guest session has its own environment variable block which gets
11563 automatically applied when starting a new guest process via
11564 <link to="IGuestSession::processCreate"/> or <link to="IGuestSession::processCreateEx"/>.
11565 To override (or unset) certain environment variables already set by the
11566 guest session, one can specify a per-process environment block when using
11567 one of the both above mentioned process creation calls.
11568
11569 Closing a session via <link to="IGuestSession::close" /> will try to close
11570 all the mentioned objects above unless these objects are still used by
11571 a client.
11572 </desc>
11573 <param name="user" type="wstring" dir="in">
11574 <desc>
11575 User name this session will be using to control the guest; has to exist
11576 and have the appropriate rights to execute programs in the VM. Must not
11577 be empty.
11578 </desc>
11579 </param>
11580 <param name="password" type="wstring" dir="in">
11581 <desc>
11582 Password of the user account to be used. Empty passwords are allowed.
11583 </desc>
11584 </param>
11585 <param name="domain" type="wstring" dir="in">
11586 <desc>
11587 Domain name of the user account to be used if the guest is part of
11588 a domain. Optional. This feature is not implemented yet.
11589 </desc>
11590 </param>
11591 <param name="sessionName" type="wstring" dir="in">
11592 <desc>
11593 The session's friendly name. Optional, can be empty.
11594 </desc>
11595 </param>
11596 <param name="guestSession" type="IGuestSession" dir="return">
11597 <desc>
11598 The newly created session object.
11599 </desc>
11600 </param>
11601 </method>
11602
11603 <method name="findSession">
11604 <desc>
11605 Finds guest sessions by their friendly name and returns an interface
11606 array with all found guest sessions.
11607 </desc>
11608 <param name="sessionName" type="wstring" dir="in">
11609 <desc>
11610 The session's friendly name to find. Wildcards like ? and * are allowed.
11611 </desc>
11612 </param>
11613 <param name="sessions" type="IGuestSession" safearray="yes" dir="return">
11614 <desc>
11615 Array with all guest sessions found matching the name specified.
11616 </desc>
11617 </param>
11618 </method>
11619
11620 <method name="updateGuestAdditions">
11621 <desc>
11622 Automatically updates already installed Guest Additions in a VM.
11623
11624 At the moment only Windows guests are supported.
11625
11626 Because the VirtualBox Guest Additions drivers are not WHQL-certified
11627 yet there might be warning dialogs during the actual Guest Additions
11628 update. These need to be confirmed manually in order to continue the
11629 installation process. This applies to Windows 2000 and Windows XP guests
11630 and therefore these guests can't be updated in a fully automated fashion
11631 without user interaction. However, to start a Guest Additions update for
11632 the mentioned Windows versions anyway, the flag
11633 AdditionsUpdateFlag_WaitForUpdateStartOnly can be specified. See
11634 <link to="AdditionsUpdateFlag"/> for more information.
11635
11636 <result name="VBOX_E_NOT_SUPPORTED">
11637 Guest OS is not supported for automated Guest Additions updates or the
11638 already installed Guest Additions are not ready yet.
11639 </result>
11640
11641 <result name="VBOX_E_IPRT_ERROR">
11642 Error while updating.
11643 </result>
11644
11645 </desc>
11646 <param name="source" type="wstring" dir="in">
11647 <desc>
11648 Path to the Guest Additions .ISO file to use for the upate.
11649 </desc>
11650 </param>
11651 <param name="flags" type="AdditionsUpdateFlag" dir="in" safearray="yes">
11652 <desc>
11653 <link to="AdditionsUpdateFlag"/> flags.
11654 </desc>
11655 </param>
11656 <param name="progress" type="IProgress" dir="return">
11657 <desc>Progress object to track the operation completion.</desc>
11658 </param>
11659 </method>
11660
11661 </interface>
11662
11663
11664 <!--
11665 // IProgress
11666 /////////////////////////////////////////////////////////////////////////
11667 -->
11668
11669 <interface
11670 name="IProgress" extends="$unknown"
11671 uuid="c20238e4-3221-4d3f-8891-81ce92d9f913"
11672 wsmap="managed"
11673 >
11674 <desc>
11675 The IProgress interface is used to track and control
11676 asynchronous tasks within VirtualBox.
11677
11678 An instance of this is returned every time VirtualBox starts
11679 an asynchronous task (in other words, a separate thread) which
11680 continues to run after a method call returns. For example,
11681 <link to="IConsole::saveState" />, which saves the state of
11682 a running virtual machine, can take a long time to complete.
11683 To be able to display a progress bar, a user interface such as
11684 the VirtualBox graphical user interface can use the IProgress
11685 object returned by that method.
11686
11687 Note that IProgress is a "read-only" interface in the sense
11688 that only the VirtualBox internals behind the Main API can
11689 create and manipulate progress objects, whereas client code
11690 can only use the IProgress object to monitor a task's
11691 progress and, if <link to="#cancelable" /> is @c true,
11692 cancel the task by calling <link to="#cancel" />.
11693
11694 A task represented by IProgress consists of either one or
11695 several sub-operations that run sequentially, one by one (see
11696 <link to="#operation" /> and <link to="#operationCount" />).
11697 Every operation is identified by a number (starting from 0)
11698 and has a separate description.
11699
11700 You can find the individual percentage of completion of the current
11701 operation in <link to="#operationPercent" /> and the
11702 percentage of completion of the task as a whole
11703 in <link to="#percent" />.
11704
11705 Similarly, you can wait for the completion of a particular
11706 operation via <link to="#waitForOperationCompletion" /> or
11707 for the completion of the whole task via
11708 <link to="#waitForCompletion" />.
11709 </desc>
11710
11711 <attribute name="id" type="uuid" mod="string" readonly="yes">
11712 <desc>ID of the task.</desc>
11713 </attribute>
11714
11715 <attribute name="description" type="wstring" readonly="yes">
11716 <desc>Description of the task.</desc>
11717 </attribute>
11718
11719 <attribute name="initiator" type="$unknown" readonly="yes">
11720 <desc>Initiator of the task.</desc>
11721 </attribute>
11722
11723 <attribute name="cancelable" type="boolean" readonly="yes">
11724 <desc>Whether the task can be interrupted.</desc>
11725 </attribute>
11726
11727 <attribute name="percent" type="unsigned long" readonly="yes">
11728 <desc>
11729 Current progress value of the task as a whole, in percent.
11730 This value depends on how many operations are already complete.
11731 Returns 100 if <link to="#completed" /> is @c true.
11732 </desc>
11733 </attribute>
11734
11735 <attribute name="timeRemaining" type="long" readonly="yes">
11736 <desc>
11737 Estimated remaining time until the task completes, in
11738 seconds. Returns 0 once the task has completed; returns -1
11739 if the remaining time cannot be computed, in particular if
11740 the current progress is 0.
11741
11742 Even if a value is returned, the estimate will be unreliable
11743 for low progress values. It will become more reliable as the
11744 task progresses; it is not recommended to display an ETA
11745 before at least 20% of a task have completed.
11746 </desc>
11747 </attribute>
11748
11749 <attribute name="completed" type="boolean" readonly="yes">
11750 <desc>Whether the task has been completed.</desc>
11751 </attribute>
11752
11753 <attribute name="canceled" type="boolean" readonly="yes">
11754 <desc>Whether the task has been canceled.</desc>
11755 </attribute>
11756
11757 <attribute name="resultCode" type="long" readonly="yes">
11758 <desc>
11759 Result code of the progress task.
11760 Valid only if <link to="#completed"/> is @c true.
11761 </desc>
11762 </attribute>
11763
11764 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
11765 <desc>
11766 Extended information about the unsuccessful result of the
11767 progress operation. May be @c null if no extended information
11768 is available.
11769 Valid only if <link to="#completed"/> is @c true and
11770 <link to="#resultCode"/> indicates a failure.
11771 </desc>
11772 </attribute>
11773
11774 <attribute name="operationCount" type="unsigned long" readonly="yes">
11775 <desc>
11776 Number of sub-operations this task is divided into.
11777 Every task consists of at least one suboperation.
11778 </desc>
11779 </attribute>
11780
11781 <attribute name="operation" type="unsigned long" readonly="yes">
11782 <desc>Number of the sub-operation being currently executed.</desc>
11783 </attribute>
11784
11785 <attribute name="operationDescription" type="wstring" readonly="yes">
11786 <desc>
11787 Description of the sub-operation being currently executed.
11788 </desc>
11789 </attribute>
11790
11791 <attribute name="operationPercent" type="unsigned long" readonly="yes">
11792 <desc>Progress value of the current sub-operation only, in percent.</desc>
11793 </attribute>
11794
11795 <attribute name="operationWeight" type="unsigned long" readonly="yes">
11796 <desc>Weight value of the current sub-operation only.</desc>
11797 </attribute>
11798
11799 <attribute name="timeout" type="unsigned long">
11800 <desc>
11801 When non-zero, this specifies the number of milliseconds after which
11802 the operation will automatically be canceled. This can only be set on
11803 cancelable objects.
11804 </desc>
11805 </attribute>
11806
11807 <method name="setCurrentOperationProgress">
11808 <desc>Internal method, not to be called externally.</desc>
11809 <param name="percent" type="unsigned long" dir="in" />
11810 </method>
11811 <method name="setNextOperation">
11812 <desc>Internal method, not to be called externally.</desc>
11813 <param name="nextOperationDescription" type="wstring" dir="in" />
11814 <param name="nextOperationsWeight" type="unsigned long" dir="in" />
11815 </method>
11816
11817 <method name="waitForCompletion">
11818 <desc>
11819 Waits until the task is done (including all sub-operations)
11820 with a given timeout in milliseconds; specify -1 for an indefinite wait.
11821
11822 Note that the VirtualBox/XPCOM/COM/native event queues of the calling
11823 thread are not processed while waiting. Neglecting event queues may
11824 have dire consequences (degrade performance, resource hogs,
11825 deadlocks, etc.), this is specially so for the main thread on
11826 platforms using XPCOM. Callers are adviced wait for short periods
11827 and service their event queues between calls, or to create a worker
11828 thread to do the waiting.
11829
11830 <result name="VBOX_E_IPRT_ERROR">
11831 Failed to wait for task completion.
11832 </result>
11833 </desc>
11834
11835 <param name="timeout" type="long" dir="in">
11836 <desc>
11837 Maximum time in milliseconds to wait or -1 to wait indefinitely.
11838 </desc>
11839 </param>
11840 </method>
11841
11842 <method name="waitForOperationCompletion">
11843 <desc>
11844 Waits until the given operation is done with a given timeout in
11845 milliseconds; specify -1 for an indefinite wait.
11846
11847 See <link to="#waitForCompletion"> for event queue considerations.</link>
11848
11849 <result name="VBOX_E_IPRT_ERROR">
11850 Failed to wait for operation completion.
11851 </result>
11852
11853 </desc>
11854 <param name="operation" type="unsigned long" dir="in">
11855 <desc>
11856 Number of the operation to wait for.
11857 Must be less than <link to="#operationCount"/>.
11858 </desc>
11859 </param>
11860 <param name="timeout" type="long" dir="in">
11861 <desc>
11862 Maximum time in milliseconds to wait or -1 to wait indefinitely.
11863 </desc>
11864 </param>
11865 </method>
11866
11867 <method name="waitForAsyncProgressCompletion">
11868 <desc>
11869 Waits until the other task is completed (including all
11870 sub-operations) and forward all changes from the other progress to
11871 this progress. This means sub-operation number, description, percent
11872 and so on.
11873
11874 You have to take care on setting up at least the same count on
11875 sub-operations in this progress object like there are in the other
11876 progress object.
11877
11878 If the other progress object supports cancel and this object gets any
11879 cancel request (when here enabled as well), it will be forwarded to
11880 the other progress object.
11881
11882 If there is an error in the other progress, this error isn't
11883 automatically transfered to this progress object. So you have to
11884 check any operation error within the other progress object, after
11885 this method returns.
11886 </desc>
11887
11888 <param name="pProgressAsync" type="IProgress" dir="in">
11889 <desc>
11890 The progress object of the asynchrony process.
11891 </desc>
11892 </param>
11893 </method>
11894
11895 <method name="cancel">
11896 <desc>
11897 Cancels the task.
11898 <note>
11899 If <link to="#cancelable"/> is @c false, then this method will fail.
11900 </note>
11901
11902 <result name="VBOX_E_INVALID_OBJECT_STATE">
11903 Operation cannot be canceled.
11904 </result>
11905
11906 </desc>
11907 </method>
11908
11909 </interface>
11910
11911 <!--
11912 // ISnapshot
11913 /////////////////////////////////////////////////////////////////////////
11914 -->
11915
11916 <interface
11917 name="ISnapshot" extends="$unknown"
11918 uuid="0472823b-c6e7-472a-8e9f-d732e86b8463"
11919 wsmap="managed"
11920 >
11921 <desc>
11922 The ISnapshot interface represents a snapshot of the virtual
11923 machine.
11924
11925 Together with the differencing media that are created
11926 when a snapshot is taken, a machine can be brought back to
11927 the exact state it was in when the snapshot was taken.
11928
11929 The ISnapshot interface has no methods, only attributes; snapshots
11930 are controlled through methods of the <link to="IConsole" /> interface
11931 which also manage the media associated with the snapshot.
11932 The following operations exist:
11933
11934 <ul>
11935 <li><link to="IConsole::takeSnapshot"/> creates a new snapshot
11936 by creating new, empty differencing images for the machine's
11937 media and saving the VM settings and (if the VM is running)
11938 the current VM state in the snapshot.
11939
11940 The differencing images will then receive all data written to
11941 the machine's media, while their parent (base) images
11942 remain unmodified after the snapshot has been taken (see
11943 <link to="IMedium" /> for details about differencing images).
11944 This simplifies restoring a machine to the state of a snapshot:
11945 only the differencing images need to be deleted.
11946
11947 The current machine state is not changed by taking a snapshot
11948 except that <link to="IMachine::currentSnapshot" /> is set to
11949 the newly created snapshot, which is also added to the machine's
11950 snapshots tree.
11951 </li>
11952
11953 <li><link to="IConsole::restoreSnapshot"/> resets a machine to
11954 the state of a previous snapshot by deleting the differencing
11955 image of each of the machine's media and setting the machine's
11956 settings and state to the state that was saved in the snapshot (if any).
11957
11958 This destroys the machine's current state. After calling this,
11959 <link to="IMachine::currentSnapshot" /> points to the snapshot
11960 that was restored.
11961 </li>
11962
11963 <li><link to="IConsole::deleteSnapshot"/> deletes a snapshot
11964 without affecting the current machine state.
11965
11966 This does not change the current machine state, but instead frees the
11967 resources allocated when the snapshot was taken: the settings and machine
11968 state file are deleted (if any), and the snapshot's differencing image for
11969 each of the machine's media gets merged with its parent image.
11970
11971 Neither the current machine state nor other snapshots are affected
11972 by this operation, except that parent media will be modified
11973 to contain the disk data associated with the snapshot being deleted.
11974
11975 When deleting the current snapshot, the <link to="IMachine::currentSnapshot" />
11976 attribute is set to the current snapshot's parent or @c null if it
11977 has no parent. Otherwise the attribute is unchanged.
11978 </li>
11979 </ul>
11980
11981 Each snapshot contains a copy of virtual machine's settings (hardware
11982 configuration etc.). This copy is contained in an immutable (read-only)
11983 instance of <link to="IMachine" /> which is available from the snapshot's
11984 <link to="#machine" /> attribute. When restoring the snapshot, these
11985 settings are copied back to the original machine.
11986
11987 In addition, if the machine was running when the
11988 snapshot was taken (<link to="IMachine::state"/> is <link to="MachineState_Running"/>),
11989 the current VM state is saved in the snapshot (similarly to what happens
11990 when a VM's state is saved). The snapshot is then said to be <i>online</i>
11991 because when restoring it, the VM will be running.
11992
11993 If the machine was in <link to="MachineState_Saved">saved</link> saved,
11994 the snapshot receives a copy of the execution state file
11995 (<link to="IMachine::stateFilePath"/>).
11996
11997 Otherwise, if the machine was not running (<link to="MachineState_PoweredOff"/>
11998 or <link to="MachineState_Aborted"/>), the snapshot is <i>offline</i>;
11999 it then contains a so-called "zero execution state", representing a
12000 machine that is powered off.
12001 </desc>
12002
12003 <attribute name="id" type="uuid" mod="string" readonly="yes">
12004 <desc>UUID of the snapshot.</desc>
12005 </attribute>
12006
12007 <attribute name="name" type="wstring">
12008 <desc>Short name of the snapshot.
12009 <note>Setting this attribute causes <link to="IMachine::saveSettings" /> to
12010 be called implicitly.</note>
12011 </desc>
12012 </attribute>
12013
12014 <attribute name="description" type="wstring">
12015 <desc>Optional description of the snapshot.
12016 <note>Setting this attribute causes <link to="IMachine::saveSettings" /> to
12017 be called implicitly.</note>
12018 </desc>
12019 </attribute>
12020
12021 <attribute name="timeStamp" type="long long" readonly="yes">
12022 <desc>
12023 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
12024 </desc>
12025 </attribute>
12026
12027 <attribute name="online" type="boolean" readonly="yes">
12028 <desc>
12029 @c true if this snapshot is an online snapshot and @c false otherwise.
12030
12031 When this attribute is @c true, the
12032 <link to="IMachine::stateFilePath"/> attribute of the
12033 <link to="#machine"/> object associated with this snapshot
12034 will point to the saved state file. Otherwise, it will be
12035 an empty string.
12036 </desc>
12037 </attribute>
12038
12039 <attribute name="machine" type="IMachine" readonly="yes">
12040 <desc>
12041 Virtual machine this snapshot is taken on. This object
12042 stores all settings the machine had when taking this snapshot.
12043 <note>
12044 The returned machine object is immutable, i.e. no
12045 any settings can be changed.
12046 </note>
12047 </desc>
12048 </attribute>
12049
12050 <attribute name="parent" type="ISnapshot" readonly="yes">
12051 <desc>
12052 Parent snapshot (a snapshot this one is based on), or
12053 @c null if the snapshot has no parent (i.e. is the first snapshot).
12054 </desc>
12055 </attribute>
12056
12057 <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
12058 <desc>
12059 Child snapshots (all snapshots having this one as a parent).
12060 By inspecting this attribute starting with a machine's root snapshot
12061 (which can be obtained by calling <link to="IMachine::findSnapshot" />
12062 with a @c null UUID), a machine's snapshots tree can be iterated over.
12063 </desc>
12064 </attribute>
12065
12066 <method name="getChildrenCount" const="yes">
12067 <desc>
12068 Returns the number of direct childrens of this snapshot.
12069 </desc>
12070 <param name="childrenCount" type="unsigned long" dir="return">
12071 <desc>
12072 </desc>
12073 </param>
12074 </method>
12075
12076 </interface>
12077
12078
12079 <!--
12080 // IMedium
12081 /////////////////////////////////////////////////////////////////////////
12082 -->
12083
12084 <enum
12085 name="MediumState"
12086 uuid="ef41e980-e012-43cd-9dea-479d4ef14d13"
12087 >
12088 <desc>
12089 Virtual medium state.
12090 <see><link to="IMedium"/></see>
12091 </desc>
12092
12093 <const name="NotCreated" value="0">
12094 <desc>
12095 Associated medium storage does not exist (either was not created yet or
12096 was deleted).
12097 </desc>
12098 </const>
12099 <const name="Created" value="1">
12100 <desc>
12101 Associated storage exists and accessible; this gets set if the
12102 accessibility check performed by <link to="IMedium::refreshState" />
12103 was successful.
12104 </desc>
12105 </const>
12106 <const name="LockedRead" value="2">
12107 <desc>
12108 Medium is locked for reading (see <link to="IMedium::lockRead"/>),
12109 no data modification is possible.
12110 </desc>
12111 </const>
12112 <const name="LockedWrite" value="3">
12113 <desc>
12114 Medium is locked for writing (see <link to="IMedium::lockWrite"/>),
12115 no concurrent data reading or modification is possible.
12116 </desc>
12117 </const>
12118 <const name="Inaccessible" value="4">
12119 <desc>
12120 Medium accessibility check (see <link to="IMedium::refreshState" />) has
12121 not yet been performed, or else, associated medium storage is not
12122 accessible. In the first case, <link to="IMedium::lastAccessError"/>
12123 is empty, in the second case, it describes the error that occurred.
12124 </desc>
12125 </const>
12126 <const name="Creating" value="5">
12127 <desc>
12128 Associated medium storage is being created.
12129 </desc>
12130 </const>
12131 <const name="Deleting" value="6">
12132 <desc>
12133 Associated medium storage is being deleted.
12134 </desc>
12135 </const>
12136 </enum>
12137
12138 <enum
12139 name="MediumType"
12140 uuid="fe663fb5-c244-4e1b-9d81-c628b417dd04"
12141 >
12142 <desc>
12143 Virtual medium type. For each <link to="IMedium" />, this defines how the medium is
12144 attached to a virtual machine (see <link to="IMediumAttachment" />) and what happens
12145 when a snapshot (see <link to="ISnapshot" />) is taken of a virtual machine which has
12146 the medium attached. At the moment DVD and floppy media are always of type "writethrough".
12147 </desc>
12148
12149 <const name="Normal" value="0">
12150 <desc>
12151 Normal medium (attached directly or indirectly, preserved
12152 when taking snapshots).
12153 </desc>
12154 </const>
12155 <const name="Immutable" value="1">
12156 <desc>
12157 Immutable medium (attached indirectly, changes are wiped out
12158 the next time the virtual machine is started).
12159 </desc>
12160 </const>
12161 <const name="Writethrough" value="2">
12162 <desc>
12163 Write through medium (attached directly, ignored when
12164 taking snapshots).
12165 </desc>
12166 </const>
12167 <const name="Shareable" value="3">
12168 <desc>
12169 Allow using this medium concurrently by several machines.
12170 <note>Present since VirtualBox 3.2.0, and accepted since 3.2.8.</note>
12171 </desc>
12172 </const>
12173 <const name="Readonly" value="4">
12174 <desc>
12175 A readonly medium, which can of course be used by several machines.
12176 <note>Present and accepted since VirtualBox 4.0.</note>
12177 </desc>
12178 </const>
12179 <const name="MultiAttach" value="5">
12180 <desc>
12181 A medium which is indirectly attached, so that one base medium can
12182 be used for several VMs which have their own differencing medium to
12183 store their modifications. In some sense a variant of Immutable
12184 with unset AutoReset flag in each differencing medium.
12185 <note>Present and accepted since VirtualBox 4.0.</note>
12186 </desc>
12187 </const>
12188 </enum>
12189
12190 <enum
12191 name="MediumVariant"
12192 uuid="80685b6b-e42f-497d-8271-e77bf3c61ada"
12193 >
12194 <desc>
12195 Virtual medium image variant. More than one flag may be set.
12196 <see><link to="IMedium"/></see>
12197 </desc>
12198
12199 <const name="Standard" value="0">
12200 <desc>
12201 No particular variant requested, results in using the backend default.
12202 </desc>
12203 </const>
12204 <const name="VmdkSplit2G" value="0x01">
12205 <desc>
12206 VMDK image split in chunks of less than 2GByte.
12207 </desc>
12208 </const>
12209 <const name="VmdkRawDisk" value="0x02">
12210 <desc>
12211 VMDK image representing a raw disk.
12212 </desc>
12213 </const>
12214 <const name="VmdkStreamOptimized" value="0x04">
12215 <desc>
12216 VMDK streamOptimized image. Special import/export format which is
12217 read-only/append-only.
12218 </desc>
12219 </const>
12220 <const name="VmdkESX" value="0x08">
12221 <desc>
12222 VMDK format variant used on ESX products.
12223 </desc>
12224 </const>
12225 <const name="Fixed" value="0x10000">
12226 <desc>
12227 Fixed image. Only allowed for base images.
12228 </desc>
12229 </const>
12230 <const name="Diff" value="0x20000">
12231 <desc>
12232 Differencing image. Only allowed for child images.
12233 </desc>
12234 </const>
12235 <const name="NoCreateDir" value="0x40000000">
12236 <desc>
12237 Special flag which suppresses automatic creation of the subdirectory.
12238 Only used when passing the medium variant as an input parameter.
12239 </desc>
12240 </const>
12241 </enum>
12242
12243 <interface
12244 name="IMediumAttachment" extends="$unknown"
12245 uuid="5ee464d6-0613-4331-b154-7ce12170ef9f"
12246 wsmap="struct"
12247 >
12248 <desc>
12249 The IMediumAttachment interface links storage media to virtual machines.
12250 For each medium (<link to="IMedium"/>) which has been attached to a
12251 storage controller (<link to="IStorageController"/>) of a machine
12252 (<link to="IMachine"/>) via the <link to="IMachine::attachDevice" />
12253 method, one instance of IMediumAttachment is added to the machine's
12254 <link to="IMachine::mediumAttachments"/> array attribute.
12255
12256 Each medium attachment specifies the storage controller as well as a
12257 port and device number and the IMedium instance representing a virtual
12258 hard disk or floppy or DVD image.
12259
12260 For removable media (DVDs or floppies), there are two additional
12261 options. For one, the IMedium instance can be @c null to represent
12262 an empty drive with no media inserted (see <link to="IMachine::mountMedium" />);
12263 secondly, the medium can be one of the pseudo-media for host drives
12264 listed in <link to="IHost::DVDDrives"/> or <link to="IHost::floppyDrives"/>.
12265
12266 <h3>Attaching Hard Disks</h3>
12267
12268 Hard disks are attached to virtual machines using the
12269 <link to="IMachine::attachDevice"/> method and detached using the
12270 <link to="IMachine::detachDevice"/> method. Depending on a medium's
12271 type (see <link to="IMedium::type" />), hard disks are attached either
12272 <i>directly</i> or <i>indirectly</i>.
12273
12274 When a hard disk is being attached directly, it is associated with the
12275 virtual machine and used for hard disk operations when the machine is
12276 running. When a hard disk is being attached indirectly, a new differencing
12277 hard disk linked to it is implicitly created and this differencing hard
12278 disk is associated with the machine and used for hard disk operations.
12279 This also means that if <link to="IMachine::attachDevice"/> performs
12280 a direct attachment then the same hard disk will be returned in response
12281 to the subsequent <link to="IMachine::getMedium"/> call; however if
12282 an indirect attachment is performed then
12283 <link to="IMachine::getMedium"/> will return the implicitly created
12284 differencing hard disk, not the original one passed to <link
12285 to="IMachine::attachDevice"/>. In detail:
12286
12287 <ul>
12288 <li><b>Normal base</b> hard disks that do not have children (i.e.
12289 differencing hard disks linked to them) and that are not already
12290 attached to virtual machines in snapshots are attached <b>directly</b>.
12291 Otherwise, they are attached <b>indirectly</b> because having
12292 dependent children or being part of the snapshot makes it impossible
12293 to modify hard disk contents without breaking the integrity of the
12294 dependent party. The <link to="IMedium::readOnly"/> attribute allows to
12295 quickly determine the kind of the attachment for the given hard
12296 disk. Note that if a normal base hard disk is to be indirectly
12297 attached to a virtual machine with snapshots then a special
12298 procedure called <i>smart attachment</i> is performed (see below).</li>
12299 <li><b>Normal differencing</b> hard disks are like normal base hard disks:
12300 they are attached <b>directly</b> if they do not have children and are
12301 not attached to virtual machines in snapshots, and <b>indirectly</b>
12302 otherwise. Note that the smart attachment procedure is never performed
12303 for differencing hard disks.</li>
12304 <li><b>Immutable</b> hard disks are always attached <b>indirectly</b> because
12305 they are designed to be non-writable. If an immutable hard disk is
12306 attached to a virtual machine with snapshots then a special
12307 procedure called smart attachment is performed (see below).</li>
12308 <li><b>Writethrough</b> hard disks are always attached <b>directly</b>,
12309 also as designed. This also means that writethrough hard disks cannot
12310 have other hard disks linked to them at all.</li>
12311 <li><b>Shareable</b> hard disks are always attached <b>directly</b>,
12312 also as designed. This also means that shareable hard disks cannot
12313 have other hard disks linked to them at all. They behave almost
12314 like writethrough hard disks, except that shareable hard disks can
12315 be attached to several virtual machines which are running, allowing
12316 concurrent accesses. You need special cluster software running in
12317 the virtual machines to make use of such disks.</li>
12318 </ul>
12319
12320 Note that the same hard disk, regardless of its type, may be attached to
12321 more than one virtual machine at a time. In this case, the machine that is
12322 started first gains exclusive access to the hard disk and attempts to
12323 start other machines having this hard disk attached will fail until the
12324 first machine is powered down.
12325
12326 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
12327 that the given hard disk remains associated with the given machine after a
12328 successful <link to="IMachine::detachDevice"/> call until
12329 <link to="IMachine::saveSettings"/> is called to save all changes to
12330 machine settings to disk. This deferring is necessary to guarantee that
12331 the hard disk configuration may be restored at any time by a call to
12332 <link to="IMachine::discardSettings"/> before the settings
12333 are saved (committed).
12334
12335 Note that if <link to="IMachine::discardSettings"/> is called after
12336 indirectly attaching some hard disks to the machine but before a call to
12337 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
12338 all differencing hard disks implicitly created by
12339 <link to="IMachine::attachDevice"/> for these indirect attachments.
12340 Such implicitly created hard disks will also be immediately deleted when
12341 detached explicitly using the <link to="IMachine::detachDevice"/>
12342 call if it is made before <link to="IMachine::saveSettings"/>. This
12343 implicit deletion is safe because newly created differencing hard
12344 disks do not contain any user data.
12345
12346 However, keep in mind that detaching differencing hard disks that were
12347 implicitly created by <link to="IMachine::attachDevice"/>
12348 before the last <link to="IMachine::saveSettings"/> call will
12349 <b>not</b> implicitly delete them as they may already contain some data
12350 (for example, as a result of virtual machine execution). If these hard
12351 disks are no more necessary, the caller can always delete them explicitly
12352 using <link to="IMedium::deleteStorage"/> after they are actually de-associated
12353 from this machine by the <link to="IMachine::saveSettings"/> call.
12354
12355 <h3>Smart Attachment</h3>
12356
12357 When normal base or immutable hard disks are indirectly attached to a
12358 virtual machine then some additional steps are performed to make sure the
12359 virtual machine will have the most recent "view" of the hard disk being
12360 attached. These steps include walking through the machine's snapshots
12361 starting from the current one and going through ancestors up to the first
12362 snapshot. Hard disks attached to the virtual machine in all
12363 of the encountered snapshots are checked whether they are descendants of
12364 the given normal base or immutable hard disk. The first found child (which
12365 is the differencing hard disk) will be used instead of the normal base or
12366 immutable hard disk as a parent for creating a new differencing hard disk
12367 that will be actually attached to the machine. And only if no descendants
12368 are found or if the virtual machine does not have any snapshots then the
12369 normal base or immutable hard disk will be used itself as a parent for
12370 this differencing hard disk.
12371
12372 It is easier to explain what smart attachment does using the
12373 following example:
12374 <pre>
12375BEFORE attaching B.vdi: AFTER attaching B.vdi:
12376
12377Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
12378 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
12379 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
12380 Snapshot 4 (none) Snapshot 4 (none)
12381 CurState (none) CurState (D3->D2.vdi)
12382
12383 NOT
12384 ...
12385 CurState (D3->B.vdi)
12386 </pre>
12387 The first column is the virtual machine configuration before the base hard
12388 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
12389 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
12390 mean that the hard disk that is actually attached to the machine is a
12391 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
12392 another hard disk, <tt>B.vdi</tt>.
12393
12394 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
12395 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
12396 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
12397 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
12398 it cannot be attached directly and needs an indirect attachment (i.e.
12399 implicit creation of a new differencing hard disk). Due to the smart
12400 attachment procedure, the new differencing hard disk
12401 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
12402 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
12403 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
12404 machine.
12405
12406 Note that if there is more than one descendant hard disk of the given base
12407 hard disk found in a snapshot, and there is an exact device, channel and
12408 bus match, then this exact match will be used. Otherwise, the youngest
12409 descendant will be picked up.
12410
12411 There is one more important aspect of the smart attachment procedure which
12412 is not related to snapshots at all. Before walking through the snapshots
12413 as described above, the backup copy of the current list of hard disk
12414 attachment is searched for descendants. This backup copy is created when
12415 the hard disk configuration is changed for the first time after the last
12416 <link to="IMachine::saveSettings"/> call and used by
12417 <link to="IMachine::discardSettings"/> to undo the recent hard disk
12418 changes. When such a descendant is found in this backup copy, it will be
12419 simply re-attached back, without creating a new differencing hard disk for
12420 it. This optimization is necessary to make it possible to re-attach the
12421 base or immutable hard disk to a different bus, channel or device slot
12422 without losing the contents of the differencing hard disk actually
12423 attached to the machine in place of it.
12424
12425 </desc>
12426
12427 <attribute name="medium" type="IMedium" readonly="yes">
12428 <desc>Medium object associated with this attachment; it
12429 can be @c null for removable devices.</desc>
12430 </attribute>
12431
12432 <attribute name="controller" type="wstring" readonly="yes">
12433 <desc>Name of the storage controller of this attachment; this
12434 refers to one of the controllers in <link to="IMachine::storageControllers" />
12435 by name.</desc>
12436 </attribute>
12437
12438 <attribute name="port" type="long" readonly="yes">
12439 <desc>Port number of this attachment.
12440 See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
12441 </desc>
12442 </attribute>
12443
12444 <attribute name="device" type="long" readonly="yes">
12445 <desc>Device slot number of this attachment.
12446 See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
12447 </desc>
12448 </attribute>
12449
12450 <attribute name="type" type="DeviceType" readonly="yes">
12451 <desc>Device type of this attachment.</desc>
12452 </attribute>
12453
12454 <attribute name="passthrough" type="boolean" readonly="yes">
12455 <desc>Pass I/O requests through to a device on the host.</desc>
12456 </attribute>
12457
12458 <attribute name="temporaryEject" type="boolean" readonly="yes">
12459 <desc>Whether guest-triggered eject results in unmounting the medium.</desc>
12460 </attribute>
12461
12462 <attribute name="isEjected" type="boolean" readonly="yes">
12463 <desc>Signals that the removable medium has been ejected. This is not
12464 necessarily equivalent to having a @c null medium association.</desc>
12465 </attribute>
12466
12467 <attribute name="nonRotational" type="boolean" readonly="yes">
12468 <desc>Whether the associated medium is non-rotational.</desc>
12469 </attribute>
12470
12471 <attribute name="discard" type="boolean" readonly="yes">
12472 <desc>Whether the associated medium supports discarding unused blocks.</desc>
12473 </attribute>
12474
12475 <attribute name="bandwidthGroup" type="IBandwidthGroup" readonly="yes">
12476 <desc>The bandwidth group this medium attachment is assigned to.</desc>
12477 </attribute>
12478
12479 </interface>
12480
12481 <interface
12482 name="IMedium" extends="$unknown"
12483 uuid="86fd6208-4c8c-40c2-a4e3-f6b47ac6ef07"
12484 wsmap="managed"
12485 >
12486 <desc>
12487 The IMedium interface represents virtual storage for a machine's
12488 hard disks, CD/DVD or floppy drives. It will typically represent
12489 a disk image on the host, for example a VDI or VMDK file representing
12490 a virtual hard disk, or an ISO or RAW file representing virtual
12491 removable media, but can also point to a network location (e.g.
12492 for iSCSI targets).
12493
12494 Instances of IMedium are connected to virtual machines by way of medium
12495 attachments, which link the storage medium to a particular device slot
12496 of a storage controller of the virtual machine.
12497 In the VirtualBox API, virtual storage is therefore always represented
12498 by the following chain of object links:
12499
12500 <ul>
12501 <li><link to="IMachine::storageControllers"/> contains an array of
12502 storage controllers (IDE, SATA, SCSI, SAS or a floppy controller;
12503 these are instances of <link to="IStorageController"/>).</li>
12504 <li><link to="IMachine::mediumAttachments"/> contains an array of
12505 medium attachments (instances of <link to="IMediumAttachment"/>
12506 created by <link to="IMachine::attachDevice" />),
12507 each containing a storage controller from the above array, a
12508 port/device specification, and an instance of IMedium representing
12509 the medium storage (image file).
12510
12511 For removable media, the storage medium is optional; a medium
12512 attachment with no medium represents a CD/DVD or floppy drive
12513 with no medium inserted. By contrast, hard disk attachments
12514 will always have an IMedium object attached.</li>
12515 <li>Each IMedium in turn points to a storage unit (such as a file
12516 on the host computer or a network resource) that holds actual
12517 data. This location is represented by the <link to="#location"/>
12518 attribute.</li>
12519 </ul>
12520
12521 Existing media are opened using <link to="IVirtualBox::openMedium"/>;
12522 new hard disk media can be created with the VirtualBox API using the
12523 <link to="IVirtualBox::createHardDisk"/> method. Differencing hard
12524 disks (see below) are usually implicitly created by VirtualBox as
12525 needed, but may also be created explicitly using <link to="#createDiffStorage"/>.
12526 VirtualBox cannot create CD/DVD or floppy images (ISO and RAW files); these
12527 should be created with external tools and then opened from within VirtualBox.
12528
12529 Only for CD/DVDs and floppies, an IMedium instance can also represent a host
12530 drive. In that case the <link to="#id" /> attribute contains the UUID of
12531 one of the drives in <link to="IHost::DVDDrives" /> or <link to="IHost::floppyDrives" />.
12532
12533 <h3>Media registries</h3>
12534
12535 When a medium has been opened or created using one of the aforementioned
12536 APIs, it becomes "known" to VirtualBox. Known media can be attached
12537 to virtual machines and re-found through <link to="IVirtualBox::openMedium"/>.
12538 They also appear in the global
12539 <link to="IVirtualBox::hardDisks" />,
12540 <link to="IVirtualBox::DVDImages" /> and
12541 <link to="IVirtualBox::floppyImages" /> arrays.
12542
12543 Prior to VirtualBox 4.0, opening a medium added it to a global media registry
12544 in the VirtualBox.xml file, which was shared between all machines and made
12545 transporting machines and their media from one host to another difficult.
12546
12547 Starting with VirtualBox 4.0, media are only added to a registry when they are
12548 <i>attached</i> to a machine using <link to="IMachine::attachDevice" />. For
12549 backwards compatibility, which registry a medium is added to depends on which
12550 VirtualBox version created a machine:
12551
12552 <ul>
12553 <li>If the medium has first been attached to a machine which was created by
12554 VirtualBox 4.0 or later, it is added to that machine's media registry in
12555 the machine XML settings file. This way all information about a machine's
12556 media attachments is contained in a single file and can be transported
12557 easily.</li>
12558 <li>For older media attachments (i.e. if the medium was first attached to a
12559 machine which was created with a VirtualBox version before 4.0), media
12560 continue to be registered in the global VirtualBox settings file, for
12561 backwards compatibility.</li>
12562 </ul>
12563
12564 See <link to="IVirtualBox::openMedium" /> for more information.
12565
12566 Media are removed from media registries by the <link to="IMedium::close"/>,
12567 <link to="#deleteStorage"/> and <link to="#mergeTo"/> methods.
12568
12569 <h3>Accessibility checks</h3>
12570
12571 VirtualBox defers media accessibility checks until the <link to="#refreshState" />
12572 method is called explicitly on a medium. This is done to make the VirtualBox object
12573 ready for serving requests as fast as possible and let the end-user
12574 application decide if it needs to check media accessibility right away or not.
12575
12576 As a result, when VirtualBox starts up (e.g. the VirtualBox
12577 object gets created for the first time), all known media are in the
12578 "Inaccessible" state, but the value of the <link to="#lastAccessError"/>
12579 attribute is an empty string because no actual accessibility check has
12580 been made yet.
12581
12582 After calling <link to="#refreshState" />, a medium is considered
12583 <i>accessible</i> if its storage unit can be read. In that case, the
12584 <link to="#state"/> attribute has a value of "Created". If the storage
12585 unit cannot be read (for example, because it is located on a disconnected
12586 network resource, or was accidentally deleted outside VirtualBox),
12587 the medium is considered <i>inaccessible</i>, which is indicated by the
12588 "Inaccessible" state. The exact reason why the medium is inaccessible can be
12589 obtained by reading the <link to="#lastAccessError"/> attribute.
12590
12591 <h3>Medium types</h3>
12592
12593 There are five types of medium behavior which are stored in the
12594 <link to="#type"/> attribute (see <link to="MediumType" />) and
12595 which define the medium's behavior with attachments and snapshots.
12596
12597 All media can be also divided in two groups: <i>base</i> media and
12598 <i>differencing</i> media. A base medium contains all sectors of the
12599 medium data in its own storage and therefore can be used independently.
12600 In contrast, a differencing medium is a "delta" to some other medium and
12601 contains only those sectors which differ from that other medium, which is
12602 then called a <i>parent</i>. The differencing medium is said to be
12603 <i>linked to</i> that parent. The parent may be itself a differencing
12604 medium, thus forming a chain of linked media. The last element in that
12605 chain must always be a base medium. Note that several differencing
12606 media may be linked to the same parent medium.
12607
12608 Differencing media can be distinguished from base media by querying the
12609 <link to="#parent"/> attribute: base media do not have parents they would
12610 depend on, so the value of this attribute is always @c null for them.
12611 Using this attribute, it is possible to walk up the medium tree (from the
12612 child medium to its parent). It is also possible to walk down the tree
12613 using the <link to="#children"/> attribute.
12614
12615 Note that the type of all differencing media is "normal"; all other
12616 values are meaningless for them. Base media may be of any type.
12617
12618 <h3>Automatic composition of the file name part</h3>
12619
12620 Another extension to the <link to="IMedium::location"/> attribute is that
12621 there is a possibility to cause VirtualBox to compose a unique value for
12622 the file name part of the location using the UUID of the hard disk. This
12623 applies only to hard disks in <link to="MediumState_NotCreated"/> state,
12624 e.g. before the storage unit is created, and works as follows. You set the
12625 value of the <link to="IMedium::location"/> attribute to a location
12626 specification which only contains the path specification but not the file
12627 name part and ends with either a forward slash or a backslash character.
12628 In response, VirtualBox will generate a new UUID for the hard disk and
12629 compose the file name using the following pattern:
12630 <pre>
12631 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
12632 </pre>
12633 where <tt>&lt;path&gt;</tt> is the supplied path specification,
12634 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
12635 is the default extension for the storage format of this hard disk. After
12636 that, you may call any of the methods that create a new hard disk storage
12637 unit and they will use the generated UUID and file name.
12638 </desc>
12639
12640 <attribute name="id" type="uuid" mod="string" readonly="yes">
12641 <desc>
12642 UUID of the medium. For a newly created medium, this value is a randomly
12643 generated UUID.
12644
12645 <note>
12646 For media in one of MediumState_NotCreated, MediumState_Creating or
12647 MediumState_Deleting states, the value of this property is undefined
12648 and will most likely be an empty UUID.
12649 </note>
12650 </desc>
12651 </attribute>
12652
12653 <attribute name="description" type="wstring">
12654 <desc>
12655 Optional description of the medium. For a newly created medium the value
12656 of this attribute is an empty string.
12657
12658 Medium types that don't support this attribute will return E_NOTIMPL in
12659 attempt to get or set this attribute's value.
12660
12661 <note>
12662 For some storage types, reading this attribute may return an outdated
12663 (last known) value when <link to="#state"/> is <link
12664 to="MediumState_Inaccessible"/> or <link
12665 to="MediumState_LockedWrite"/> because the value of this attribute is
12666 stored within the storage unit itself. Also note that changing the
12667 attribute value is not possible in such case, as well as when the
12668 medium is the <link to="MediumState_LockedRead"/> state.
12669 </note>
12670 </desc>
12671 </attribute>
12672
12673 <attribute name="state" type="MediumState" readonly="yes">
12674 <desc>
12675 Returns the current medium state, which is the last state set by
12676 the accessibility check performed by <link to="#refreshState"/>.
12677 If that method has not yet been called on the medium, the state
12678 is "Inaccessible"; as opposed to truly inaccessible media, the
12679 value of <link to="#lastAccessError"/> will be an empty string in
12680 that case.
12681
12682 <note>As of version 3.1, this no longer performs an accessibility check
12683 automatically; call <link to="#refreshState"/> for that.
12684 </note>
12685 </desc>
12686 </attribute>
12687
12688 <attribute name="variant" type="MediumVariant" safearray="yes" readonly="yes">
12689 <desc>
12690 Returns the storage format variant information for this medium
12691 as an aaray of the flags described at <link to="MediumVariant" />.
12692 Before <link to="#refreshState"/> is called this method returns
12693 an undefined value.
12694 </desc>
12695 </attribute>
12696
12697 <attribute name="location" type="wstring">
12698 <desc>
12699 Location of the storage unit holding medium data.
12700
12701 The format of the location string is medium type specific. For medium
12702 types using regular files in a host's file system, the location
12703 string is the full file name.
12704
12705 Some medium types may support changing the storage unit location by
12706 simply changing the value of this property. If this operation is not
12707 supported, the implementation will return E_NOTIMPL in attempt to set
12708 this attribute's value.
12709
12710 When setting a value of the location attribute which is a regular file
12711 in the host's file system, the given file name may be either relative to
12712 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
12713 absolute. Note that if the given location specification does not contain
12714 the file extension part then a proper default extension will be
12715 automatically appended by the implementation depending on the medium type.
12716 </desc>
12717 </attribute>
12718
12719 <attribute name="name" type="wstring" readonly="yes">
12720 <desc>
12721 Name of the storage unit holding medium data.
12722
12723 The returned string is a short version of the <link to="#location"/>
12724 attribute that is suitable for representing the medium in situations
12725 where the full location specification is too long (such as lists
12726 and comboboxes in GUI frontends). This string is also used by frontends
12727 to sort the media list alphabetically when needed.
12728
12729 For example, for locations that are regular files in the host's file
12730 system, the value of this attribute is just the file name (+ extension),
12731 without the path specification.
12732
12733 Note that as opposed to the <link to="#location"/> attribute, the name
12734 attribute will not necessary be unique for a list of media of the
12735 given type and format.
12736 </desc>
12737 </attribute>
12738
12739 <attribute name="deviceType" type="DeviceType" readonly="yes">
12740 <desc>Kind of device (DVD/Floppy/HardDisk) which is applicable to this
12741 medium.</desc>
12742 </attribute>
12743
12744 <attribute name="hostDrive" type="boolean" readonly="yes">
12745 <desc>True if this corresponds to a drive on the host.</desc>
12746 </attribute>
12747
12748 <attribute name="size" type="long long" readonly="yes">
12749 <desc>
12750 Physical size of the storage unit used to hold medium data (in bytes).
12751
12752 <note>
12753 For media whose <link to="#state"/> is <link
12754 to="MediumState_Inaccessible"/>, the value of this property is the
12755 last known size. For <link to="MediumState_NotCreated"/> media,
12756 the returned value is zero.
12757 </note>
12758 </desc>
12759 </attribute>
12760
12761 <attribute name="format" type="wstring" readonly="yes">
12762 <desc>
12763 Storage format of this medium.
12764
12765 The value of this attribute is a string that specifies a backend used
12766 to store medium data. The storage format is defined when you create a
12767 new medium or automatically detected when you open an existing medium,
12768 and cannot be changed later.
12769
12770 The list of all storage formats supported by this VirtualBox
12771 installation can be obtained using
12772 <link to="ISystemProperties::mediumFormats"/>.
12773 </desc>
12774 </attribute>
12775
12776 <attribute name="mediumFormat" type="IMediumFormat" readonly="yes">
12777 <desc>
12778 Storage medium format object corresponding to this medium.
12779
12780 The value of this attribute is a reference to the medium format object
12781 that specifies the backend properties used to store medium data. The
12782 storage format is defined when you create a new medium or automatically
12783 detected when you open an existing medium, and cannot be changed later.
12784
12785 <note>@c null is returned if there is no associated medium format
12786 object. This can e.g. happen for medium objects representing host
12787 drives and other special medium objects.</note>
12788 </desc>
12789 </attribute>
12790
12791 <attribute name="type" type="MediumType">
12792 <desc>
12793 Type (role) of this medium.
12794
12795 The following constraints apply when changing the value of this
12796 attribute:
12797 <ul>
12798 <li>If a medium is attached to a virtual machine (either in the
12799 current state or in one of the snapshots), its type cannot be
12800 changed.
12801 </li>
12802 <li>As long as the medium has children, its type cannot be set
12803 to <link to="MediumType_Writethrough"/>.
12804 </li>
12805 <li>The type of all differencing media is
12806 <link to="MediumType_Normal"/> and cannot be changed.
12807 </li>
12808 </ul>
12809
12810 The type of a newly created or opened medium is set to
12811 <link to="MediumType_Normal"/>, except for DVD and floppy media,
12812 which have a type of <link to="MediumType_Writethrough"/>.
12813 </desc>
12814 </attribute>
12815
12816 <attribute name="allowedTypes" type="MediumType" safearray="yes" readonly="yes">
12817 <desc>
12818 Returns which medium types can selected for this medium.
12819
12820 <result name="E_NOTIMPL">
12821 This attribute is not implemented at the moment.
12822 </result>
12823 </desc>
12824 </attribute>
12825
12826 <attribute name="parent" type="IMedium" readonly="yes">
12827 <desc>
12828 Parent of this medium (the medium this medium is directly based
12829 on).
12830
12831 Only differencing media have parents. For base (non-differencing)
12832 media, @c null is returned.
12833 </desc>
12834 </attribute>
12835
12836 <attribute name="children" type="IMedium" safearray="yes" readonly="yes">
12837 <desc>
12838 Children of this medium (all differencing media directly based
12839 on this medium). A @c null array is returned if this medium
12840 does not have any children.
12841 </desc>
12842 </attribute>
12843
12844 <attribute name="base" type="IMedium" readonly="yes">
12845 <desc>
12846 Base medium of this medium.
12847
12848 If this is a differencing medium, its base medium is the medium
12849 the given medium branch starts from. For all other types of media, this
12850 property returns the medium object itself (i.e. the same object this
12851 property is read on).
12852 </desc>
12853 </attribute>
12854
12855 <attribute name="readOnly" type="boolean" readonly="yes">
12856 <desc>
12857 Returns @c true if this medium is read-only and @c false otherwise.
12858
12859 A medium is considered to be read-only when its contents cannot be
12860 modified without breaking the integrity of other parties that depend on
12861 this medium such as its child media or snapshots of virtual machines
12862 where this medium is attached to these machines. If there are no
12863 children and no such snapshots then there is no dependency and the
12864 medium is not read-only.
12865
12866 The value of this attribute can be used to determine the kind of the
12867 attachment that will take place when attaching this medium to a
12868 virtual machine. If the value is @c false then the medium will
12869 be attached directly. If the value is @c true then the medium
12870 will be attached indirectly by creating a new differencing child
12871 medium for that. See the interface description for more information.
12872
12873 Note that all <link to="MediumType_Immutable">Immutable</link> media
12874 are always read-only while all
12875 <link to="MediumType_Writethrough">Writethrough</link> media are
12876 always not.
12877
12878 <note>
12879 The read-only condition represented by this attribute is related to
12880 the medium type and usage, not to the current
12881 <link to="IMedium::state">medium state</link> and not to the read-only
12882 state of the storage unit.
12883 </note>
12884 </desc>
12885 </attribute>
12886
12887 <attribute name="logicalSize" type="long long" readonly="yes">
12888 <desc>
12889 Logical size of this medium (in bytes), as reported to the
12890 guest OS running inside the virtual machine this medium is
12891 attached to. The logical size is defined when the medium is created
12892 and cannot be changed later.
12893
12894 <note>
12895 For media whose state is <link to="#state"/> is <link
12896 to="MediumState_Inaccessible"/>, the value of this property is the
12897 last known logical size. For <link to="MediumState_NotCreated"/>
12898 media, the returned value is zero.
12899 </note>
12900 </desc>
12901 </attribute>
12902
12903 <attribute name="autoReset" type="boolean">
12904 <desc>
12905 Whether this differencing medium will be automatically reset each
12906 time a virtual machine it is attached to is powered up. This
12907 attribute is automatically set to @c true for the last
12908 differencing image of an "immutable" medium (see
12909 <link to="MediumType" />).
12910
12911 See <link to="#reset"/> for more information about resetting
12912 differencing media.
12913
12914 <note>
12915 Reading this property on a base (non-differencing) medium will
12916 always @c false. Changing the value of this property in this
12917 case is not supported.
12918 </note>
12919
12920 <result name="VBOX_E_NOT_SUPPORTED">
12921 This is not a differencing medium (when changing the attribute
12922 value).
12923 </result>
12924 </desc>
12925 </attribute>
12926
12927 <attribute name="lastAccessError" type="wstring" readonly="yes">
12928 <desc>
12929 Text message that represents the result of the last accessibility
12930 check performed by <link to="#refreshState"/>.
12931
12932 An empty string is returned if the last accessibility check
12933 was successful or has not yet been called. As a result, if
12934 <link to="#state" /> is "Inaccessible" and this attribute is empty,
12935 then <link to="#refreshState"/> has yet to be called; this is the
12936 default value of media after VirtualBox initialization.
12937 A non-empty string indicates a failure and should normally describe
12938 a reason of the failure (for example, a file read error).
12939 </desc>
12940 </attribute>
12941
12942 <attribute name="machineIds" type="uuid" mod="string" safearray="yes" readonly="yes">
12943 <desc>
12944 Array of UUIDs of all machines this medium is attached to.
12945
12946 A @c null array is returned if this medium is not attached to any
12947 machine or to any machine's snapshot.
12948
12949 <note>
12950 The returned array will include a machine even if this medium is not
12951 attached to that machine in the current state but attached to it in
12952 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
12953 details.
12954 </note>
12955 </desc>
12956 </attribute>
12957
12958 <method name="setIds">
12959 <desc>
12960 Changes the UUID and parent UUID for a hard disk medium.
12961 </desc>
12962 <param name="setImageId" type="boolean" dir="in">
12963 <desc>
12964 Select whether a new image UUID is set or not.
12965 </desc>
12966 </param>
12967 <param name="imageId" type="uuid" mod="string" dir="in">
12968 <desc>
12969 New UUID for the image. If an empty string is passed, then a new
12970 UUID is automatically created, provided that @a setImageId is @c true.
12971 Specifying a zero UUID is not allowed.
12972 </desc>
12973 </param>
12974 <param name="setParentId" type="boolean" dir="in">
12975 <desc>
12976 Select whether a new parent UUID is set or not.
12977 </desc>
12978 </param>
12979 <param name="parentId" type="uuid" mod="string" dir="in">
12980 <desc>
12981 New parent UUID for the image. If an empty string is passed, then a
12982 new UUID is automatically created, provided @a setParentId is
12983 @c true. A zero UUID is valid.
12984 </desc>
12985 </param>
12986 <result name="E_INVALIDARG">
12987 Invalid parameter combination.
12988 </result>
12989 <result name="VBOX_E_NOT_SUPPORTED">
12990 Medium is not a hard disk medium.
12991 </result>
12992 </method>
12993
12994 <method name="refreshState">
12995 <desc>
12996 If the current medium state (see <link to="MediumState"/>) is one of
12997 "Created", "Inaccessible" or "LockedRead", then this performs an
12998 accessibility check on the medium and sets the value of the <link to="#state"/>
12999 attribute accordingly; that value is also returned for convenience.
13000
13001 For all other state values, this does not perform a refresh but returns
13002 the state only.
13003
13004 The refresh, if performed, may take a long time (several seconds or even
13005 minutes, depending on the storage unit location and format) because it performs an
13006 accessibility check of the storage unit. This check may cause a significant
13007 delay if the storage unit of the given medium is, for example, a file located
13008 on a network share which is not currently accessible due to connectivity
13009 problems. In that case, the call will not return until a timeout
13010 interval defined by the host OS for this operation expires. For this reason,
13011 it is recommended to never read this attribute on the main UI thread to avoid
13012 making the UI unresponsive.
13013
13014 If the last known state of the medium is "Created" and the accessibility
13015 check fails, then the state would be set to "Inaccessible", and
13016 <link to="#lastAccessError"/> may be used to get more details about the
13017 failure. If the state of the medium is "LockedRead", then it remains the
13018 same, and a non-empty value of <link to="#lastAccessError"/> will
13019 indicate a failed accessibility check in this case.
13020
13021 Note that not all medium states are applicable to all medium types.
13022 </desc>
13023 <param name="state" type="MediumState" dir="return">
13024 <desc>
13025 New medium state.
13026 </desc>
13027 </param>
13028 </method>
13029
13030 <method name="getSnapshotIds">
13031 <desc>
13032 Returns an array of UUIDs of all snapshots of the given machine where
13033 this medium is attached to.
13034
13035 If the medium is attached to the machine in the current state, then the
13036 first element in the array will always be the ID of the queried machine
13037 (i.e. the value equal to the @c machineId argument), followed by
13038 snapshot IDs (if any).
13039
13040 If the medium is not attached to the machine in the current state, then
13041 the array will contain only snapshot IDs.
13042
13043 The returned array may be @c null if this medium is not attached
13044 to the given machine at all, neither in the current state nor in one of
13045 the snapshots.
13046 </desc>
13047 <param name="machineId" type="uuid" mod="string" dir="in">
13048 <desc>
13049 UUID of the machine to query.
13050 </desc>
13051 </param>
13052 <param name="snapshotIds" type="uuid" mod="string" safearray="yes" dir="return">
13053 <desc>
13054 Array of snapshot UUIDs of the given machine using this medium.
13055 </desc>
13056 </param>
13057 </method>
13058
13059 <method name="lockRead">
13060 <desc>
13061 Locks this medium for reading.
13062
13063 A read lock is shared: many clients can simultaneously lock the
13064 same medium for reading unless it is already locked for writing (see
13065 <link to="#lockWrite"/>) in which case an error is returned.
13066
13067 When the medium is locked for reading, it cannot be modified
13068 from within VirtualBox. This means that any method that changes
13069 the properties of this medium or contents of the storage unit
13070 will return an error (unless explicitly stated otherwise). That
13071 includes an attempt to start a virtual machine that wants to
13072 write to the the medium.
13073
13074 When the virtual machine is started up, it locks for reading all
13075 media it uses in read-only mode. If some medium cannot be locked
13076 for reading, the startup procedure will fail.
13077 A medium is typically locked for reading while it is used by a running
13078 virtual machine but has a depending differencing image that receives
13079 the actual write operations. This way one base medium can have
13080 multiple child differencing images which can be written to
13081 simultaneously. Read-only media such as DVD and floppy images are
13082 also locked for reading only (so they can be in use by multiple
13083 machines simultaneously).
13084
13085 A medium is also locked for reading when it is the source of a
13086 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
13087
13088 The medium locked for reading must be unlocked using the <link
13089 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
13090 can be nested and must be followed by the same number of paired
13091 <link to="#unlockRead"/> calls.
13092
13093 This method sets the medium state (see <link to="#state"/>) to
13094 "LockedRead" on success. The medium's previous state must be
13095 one of "Created", "Inaccessible" or "LockedRead".
13096
13097 Locking an inaccessible medium is not an error; this method performs
13098 a logical lock that prevents modifications of this medium through
13099 the VirtualBox API, not a physical file-system lock of the underlying
13100 storage unit.
13101
13102 This method returns the current state of the medium
13103 <i>before</i> the operation.
13104
13105 <result name="VBOX_E_INVALID_OBJECT_STATE">
13106 Invalid medium state (e.g. not created, locked, inaccessible,
13107 creating, deleting).
13108 </result>
13109
13110 </desc>
13111 <param name="state" type="MediumState" dir="return">
13112 <desc>
13113 State of the medium after the operation.
13114 </desc>
13115 </param>
13116 </method>
13117
13118 <method name="unlockRead">
13119 <desc>
13120 Cancels the read lock previously set by <link to="#lockRead"/>.
13121
13122 For both success and failure, this method returns the current state
13123 of the medium <i>after</i> the operation.
13124
13125 See <link to="#lockRead"/> for more details.
13126
13127 <result name="VBOX_E_INVALID_OBJECT_STATE">
13128 Medium not locked for reading.
13129 </result>
13130
13131 </desc>
13132 <param name="state" type="MediumState" dir="return">
13133 <desc>
13134 State of the medium after the operation.
13135 </desc>
13136 </param>
13137 </method>
13138
13139 <method name="lockWrite">
13140 <desc>
13141 Locks this medium for writing.
13142
13143 A write lock, as opposed to <link to="#lockRead"/>, is
13144 exclusive: there may be only one client holding a write lock,
13145 and there may be no read locks while the write lock is held.
13146 As a result, read-locking fails if a write lock is held, and
13147 write-locking fails if either a read or another write lock is held.
13148
13149 When a medium is locked for writing, it cannot be modified
13150 from within VirtualBox, and it is not guaranteed that the values
13151 of its properties are up-to-date. Any method that changes the
13152 properties of this medium or contents of the storage unit will
13153 return an error (unless explicitly stated otherwise).
13154
13155 When a virtual machine is started up, it locks for writing all
13156 media it uses to write data to. If any medium could not be locked
13157 for writing, the startup procedure will fail. If a medium has
13158 differencing images, then while the machine is running, only
13159 the last ("leaf") differencing image is locked for writing,
13160 whereas its parents are locked for reading only.
13161
13162 A medium is also locked for writing when it is the target of a
13163 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
13164
13165 The medium locked for writing must be unlocked using the <link
13166 to="#unlockWrite"/> method. Write locks <i>cannot</i> be nested.
13167
13168 This method sets the medium state (see <link to="#state"/>) to
13169 "LockedWrite" on success. The medium's previous state must be
13170 either "Created" or "Inaccessible".
13171
13172 Locking an inaccessible medium is not an error; this method performs
13173 a logical lock that prevents modifications of this medium through
13174 the VirtualBox API, not a physical file-system lock of the underlying
13175 storage unit.
13176
13177 For both, success and failure, this method returns the current
13178 state of the medium <i>before</i> the operation.
13179
13180 <result name="VBOX_E_INVALID_OBJECT_STATE">
13181 Invalid medium state (e.g. not created, locked, inaccessible,
13182 creating, deleting).
13183 </result>
13184
13185 </desc>
13186 <param name="state" type="MediumState" dir="return">
13187 <desc>
13188 State of the medium after the operation.
13189 </desc>
13190 </param>
13191 </method>
13192
13193 <method name="unlockWrite">
13194 <desc>
13195 Cancels the write lock previously set by <link to="#lockWrite"/>.
13196
13197 For both success and failure, this method returns the current
13198 state of the medium <i>after</i> the operation.
13199
13200 See <link to="#lockWrite"/> for more details.
13201
13202 <result name="VBOX_E_INVALID_OBJECT_STATE">
13203 Medium not locked for writing.
13204 </result>
13205
13206 </desc>
13207 <param name="state" type="MediumState" dir="return">
13208 <desc>
13209 State of the medium after the operation.
13210 </desc>
13211 </param>
13212 </method>
13213
13214 <method name="close">
13215 <desc>
13216 Closes this medium.
13217
13218 The medium must not be attached to any known virtual machine
13219 and must not have any known child media, otherwise the
13220 operation will fail.
13221
13222 When the medium is successfully closed, it is removed from
13223 the list of registered media, but its storage unit is not
13224 deleted. In particular, this means that this medium can
13225 later be opened again using the <link to="IVirtualBox::openMedium"/>
13226 call.
13227
13228 Note that after this method successfully returns, the given medium
13229 object becomes uninitialized. This means that any attempt
13230 to call any of its methods or attributes will fail with the
13231 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
13232
13233 <result name="VBOX_E_INVALID_OBJECT_STATE">
13234 Invalid medium state (other than not created, created or
13235 inaccessible).
13236 </result>
13237 <result name="VBOX_E_OBJECT_IN_USE">
13238 Medium attached to virtual machine.
13239 </result>
13240 <result name="VBOX_E_FILE_ERROR">
13241 Settings file not accessible.
13242 </result>
13243 <result name="VBOX_E_XML_ERROR">
13244 Could not parse the settings file.
13245 </result>
13246
13247 </desc>
13248 </method>
13249
13250 <!-- property methods -->
13251
13252 <method name="getProperty" const="yes">
13253 <desc>
13254 Returns the value of the custom medium property with the given name.
13255
13256 The list of all properties supported by the given medium format can
13257 be obtained with <link to="IMediumFormat::describeProperties"/>.
13258
13259 <note>If this method returns an empty string in @a value, the requested
13260 property is supported but currently not assigned any value.</note>
13261
13262 <result name="VBOX_E_OBJECT_NOT_FOUND">
13263 Requested property does not exist (not supported by the format).
13264 </result>
13265 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
13266 </desc>
13267 <param name="name" type="wstring" dir="in">
13268 <desc>Name of the property to get.</desc>
13269 </param>
13270 <param name="value" type="wstring" dir="return">
13271 <desc>Current property value.</desc>
13272 </param>
13273 </method>
13274
13275 <method name="setProperty">
13276 <desc>
13277 Sets the value of the custom medium property with the given name.
13278
13279 The list of all properties supported by the given medium format can
13280 be obtained with <link to="IMediumFormat::describeProperties"/>.
13281
13282 <note>Setting the property value to @c null or an empty string is
13283 equivalent to deleting the existing value. A default value (if it is
13284 defined for this property) will be used by the format backend in this
13285 case.</note>
13286
13287 <result name="VBOX_E_OBJECT_NOT_FOUND">
13288 Requested property does not exist (not supported by the format).
13289 </result>
13290 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
13291 </desc>
13292 <param name="name" type="wstring" dir="in">
13293 <desc>Name of the property to set.</desc>
13294 </param>
13295 <param name="value" type="wstring" dir="in">
13296 <desc>Property value to set.</desc>
13297 </param>
13298 </method>
13299
13300 <method name="getProperties" const="yes">
13301 <desc>
13302 Returns values for a group of properties in one call.
13303
13304 The names of the properties to get are specified using the @a names
13305 argument which is a list of comma-separated property names or
13306 an empty string if all properties are to be returned.
13307 <note>Currently the value of this argument is ignored and the method
13308 always returns all existing properties.</note>
13309
13310 The list of all properties supported by the given medium format can
13311 be obtained with <link to="IMediumFormat::describeProperties"/>.
13312
13313 The method returns two arrays, the array of property names corresponding
13314 to the @a names argument and the current values of these properties.
13315 Both arrays have the same number of elements with each element at the
13316 given index in the first array corresponds to an element at the same
13317 index in the second array.
13318
13319 For properties that do not have assigned values, an empty string is
13320 returned at the appropriate index in the @a returnValues array.
13321
13322 </desc>
13323 <param name="names" type="wstring" dir="in">
13324 <desc>
13325 Names of properties to get.
13326 </desc>
13327 </param>
13328 <param name="returnNames" type="wstring" safearray="yes" dir="out">
13329 <desc>Names of returned properties.</desc>
13330 </param>
13331 <param name="returnValues" type="wstring" safearray="yes" dir="return">
13332 <desc>Values of returned properties.</desc>
13333 </param>
13334 </method>
13335
13336 <method name="setProperties">
13337 <desc>
13338 Sets values for a group of properties in one call.
13339
13340 The names of the properties to set are passed in the @a names
13341 array along with the new values for them in the @a values array. Both
13342 arrays have the same number of elements with each element at the given
13343 index in the first array corresponding to an element at the same index
13344 in the second array.
13345
13346 If there is at least one property name in @a names that is not valid,
13347 the method will fail before changing the values of any other properties
13348 from the @a names array.
13349
13350 Using this method over <link to="#setProperty"/> is preferred if you
13351 need to set several properties at once since it is more efficient.
13352
13353 The list of all properties supported by the given medium format can
13354 be obtained with <link to="IMediumFormat::describeProperties"/>.
13355
13356 Setting the property value to @c null or an empty string is equivalent
13357 to deleting the existing value. A default value (if it is defined for
13358 this property) will be used by the format backend in this case.
13359 </desc>
13360 <param name="names" type="wstring" safearray="yes" dir="in">
13361 <desc>Names of properties to set.</desc>
13362 </param>
13363 <param name="values" type="wstring" safearray="yes" dir="in">
13364 <desc>Values of properties to set.</desc>
13365 </param>
13366 </method>
13367
13368 <!-- storage methods -->
13369
13370 <method name="createBaseStorage">
13371 <desc>
13372 Starts creating a hard disk storage unit (fixed/dynamic, according
13373 to the variant flags) in in the background. The previous storage unit
13374 created for this object, if any, must first be deleted using
13375 <link to="#deleteStorage"/>, otherwise the operation will fail.
13376
13377 Before the operation starts, the medium is placed in
13378 <link to="MediumState_Creating"/> state. If the create operation
13379 fails, the medium will be placed back in <link to="MediumState_NotCreated"/>
13380 state.
13381
13382 After the returned progress object reports that the operation has
13383 successfully completed, the medium state will be set to <link
13384 to="MediumState_Created"/>, the medium will be remembered by this
13385 VirtualBox installation and may be attached to virtual machines.
13386
13387 <result name="VBOX_E_NOT_SUPPORTED">
13388 The variant of storage creation operation is not supported. See <link
13389 to="IMediumFormat::capabilities"/>.
13390 </result>
13391 </desc>
13392 <param name="logicalSize" type="long long" dir="in">
13393 <desc>Maximum logical size of the medium in bytes.</desc>
13394 </param>
13395 <param name="variant" type="MediumVariant" safearray="yes" dir="in">
13396 <desc>Exact image variant which should be created (as a combination of
13397 <link to="MediumVariant" /> flags).</desc>
13398 </param>
13399 <param name="progress" type="IProgress" dir="return">
13400 <desc>Progress object to track the operation completion.</desc>
13401 </param>
13402 </method>
13403
13404 <method name="deleteStorage">
13405 <desc>
13406 Starts deleting the storage unit of this medium.
13407
13408 The medium must not be attached to any known virtual machine and must
13409 not have any known child media, otherwise the operation will fail.
13410 It will also fail if there is no storage unit to delete or if deletion
13411 is already in progress, or if the medium is being in use (locked for
13412 read or for write) or inaccessible. Therefore, the only valid state for
13413 this operation to succeed is <link to="MediumState_Created"/>.
13414
13415 Before the operation starts, the medium is placed in
13416 <link to="MediumState_Deleting"/> state and gets removed from the list
13417 of remembered hard disks (media registry). If the delete operation
13418 fails, the medium will be remembered again and placed back to
13419 <link to="MediumState_Created"/> state.
13420
13421 After the returned progress object reports that the operation is
13422 complete, the medium state will be set to
13423 <link to="MediumState_NotCreated"/> and you will be able to use one of
13424 the storage creation methods to create it again.
13425
13426 <see><link to="#close"/></see>
13427
13428 <result name="VBOX_E_OBJECT_IN_USE">
13429 Medium is attached to a virtual machine.
13430 </result>
13431 <result name="VBOX_E_NOT_SUPPORTED">
13432 Storage deletion is not allowed because neither of storage creation
13433 operations are supported. See
13434 <link to="IMediumFormat::capabilities"/>.
13435 </result>
13436
13437 <note>
13438 If the deletion operation fails, it is not guaranteed that the storage
13439 unit still exists. You may check the <link to="IMedium::state"/> value
13440 to answer this question.
13441 </note>
13442 </desc>
13443 <param name="progress" type="IProgress" dir="return">
13444 <desc>Progress object to track the operation completion.</desc>
13445 </param>
13446 </method>
13447
13448 <!-- diff methods -->
13449
13450 <method name="createDiffStorage">
13451 <desc>
13452 Starts creating an empty differencing storage unit based on this
13453 medium in the format and at the location defined by the @a target
13454 argument.
13455
13456 The target medium must be in <link to="MediumState_NotCreated"/>
13457 state (i.e. must not have an existing storage unit). Upon successful
13458 completion, this operation will set the type of the target medium to
13459 <link to="MediumType_Normal"/> and create a storage unit necessary to
13460 represent the differencing medium data in the given format (according
13461 to the storage format of the target object).
13462
13463 After the returned progress object reports that the operation is
13464 successfully complete, the target medium gets remembered by this
13465 VirtualBox installation and may be attached to virtual machines.
13466
13467 <note>
13468 The medium will be set to <link to="MediumState_LockedRead"/>
13469 state for the duration of this operation.
13470 </note>
13471 <result name="VBOX_E_OBJECT_IN_USE">
13472 Medium not in @c NotCreated state.
13473 </result>
13474 </desc>
13475 <param name="target" type="IMedium" dir="in">
13476 <desc>Target medium.</desc>
13477 </param>
13478 <param name="variant" type="MediumVariant" safearray="yes" dir="in">
13479 <desc>Exact image variant which should be created (as a combination of
13480 <link to="MediumVariant" /> flags).</desc>
13481 </param>
13482 <param name="progress" type="IProgress" dir="return">
13483 <desc>Progress object to track the operation completion.</desc>
13484 </param>
13485 </method>
13486
13487 <method name="mergeTo">
13488 <desc>
13489 Starts merging the contents of this medium and all intermediate
13490 differencing media in the chain to the given target medium.
13491
13492 The target medium must be either a descendant of this medium or
13493 its ancestor (otherwise this method will immediately return a failure).
13494 It follows that there are two logical directions of the merge operation:
13495 from ancestor to descendant (<i>forward merge</i>) and from descendant to
13496 ancestor (<i>backward merge</i>). Let us consider the following medium
13497 chain:
13498
13499 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
13500
13501 Here, calling this method on the <tt>Base</tt> medium object with
13502 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
13503 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
13504 merge. Note that in both cases the contents of the resulting medium
13505 will be the same, the only difference is the medium object that takes
13506 the result of the merge operation. In case of the forward merge in the
13507 above example, the result will be written to <tt>Diff_2</tt>; in case of
13508 the backward merge, the result will be written to <tt>Base</tt>. In
13509 other words, the result of the operation is always stored in the target
13510 medium.
13511
13512 Upon successful operation completion, the storage units of all media in
13513 the chain between this (source) medium and the target medium, including
13514 the source medium itself, will be automatically deleted and the
13515 relevant medium objects (including this medium) will become
13516 uninitialized. This means that any attempt to call any of
13517 their methods or attributes will fail with the
13518 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
13519 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
13520 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> media.
13521 Note that <tt>Diff_2</tt> in this case will become a base medium
13522 itself since it will no longer be based on any other medium.
13523
13524 Considering the above, all of the following conditions must be met in
13525 order for the merge operation to succeed:
13526 <ul>
13527 <li>
13528 Neither this (source) medium nor any intermediate
13529 differencing medium in the chain between it and the target
13530 medium is attached to any virtual machine.
13531 </li>
13532 <li>
13533 Neither the source medium nor the target medium is an
13534 <link to="MediumType_Immutable"/> medium.
13535 </li>
13536 <li>
13537 The part of the medium tree from the source medium to the
13538 target medium is a linear chain, i.e. all medium in this
13539 chain have exactly one child which is the next medium in this
13540 chain. The only exception from this rule is the target medium in
13541 the forward merge operation; it is allowed to have any number of
13542 child media because the merge operation will not change its
13543 logical contents (as it is seen by the guest OS or by children).
13544 </li>
13545 <li>
13546 None of the involved media are in
13547 <link to="MediumState_LockedRead"/> or
13548 <link to="MediumState_LockedWrite"/> state.
13549 </li>
13550 </ul>
13551
13552 <note>
13553 This (source) medium and all intermediates will be placed to <link
13554 to="MediumState_Deleting"/> state and the target medium will be
13555 placed to <link to="MediumState_LockedWrite"/> state and for the
13556 duration of this operation.
13557 </note>
13558 </desc>
13559 <param name="target" type="IMedium" dir="in">
13560 <desc>Target medium.</desc>
13561 </param>
13562 <param name="progress" type="IProgress" dir="return">
13563 <desc>Progress object to track the operation completion.</desc>
13564 </param>
13565 </method>
13566
13567 <!-- clone method -->
13568
13569 <method name="cloneTo">
13570 <desc>
13571 Starts creating a clone of this medium in the format and at the
13572 location defined by the @a target argument.
13573
13574 The target medium must be either in <link to="MediumState_NotCreated"/>
13575 state (i.e. must not have an existing storage unit) or in
13576 <link to="MediumState_Created"/> state (i.e. created and not locked, and
13577 big enough to hold the data or else the copy will be partial). Upon
13578 successful completion, the cloned medium will contain exactly the
13579 same sector data as the medium being cloned, except that in the
13580 first case a new UUID for the clone will be randomly generated, and in
13581 the second case the UUID will remain unchanged.
13582
13583 The @a parent argument defines which medium will be the parent
13584 of the clone. Passing a @c null reference indicates that the clone will
13585 be a base image, i.e. completely independent. It is possible to specify
13586 an arbitrary medium for this parameter, including the parent of the
13587 medium which is being cloned. Even cloning to a child of the source
13588 medium is possible. Note that when cloning to an existing image, the
13589 @a parent argument is ignored.
13590
13591 After the returned progress object reports that the operation is
13592 successfully complete, the target medium gets remembered by this
13593 VirtualBox installation and may be attached to virtual machines.
13594
13595 <note>
13596 This medium will be placed to <link to="MediumState_LockedRead"/>
13597 state for the duration of this operation.
13598 </note>
13599 <result name="E_NOTIMPL">
13600 The specified cloning variant is not supported at the moment.
13601 </result>
13602 </desc>
13603 <param name="target" type="IMedium" dir="in">
13604 <desc>Target medium.</desc>
13605 </param>
13606 <param name="variant" type="MediumVariant" safearray="yes" dir="in">
13607 <desc>Exact image variant which should be created (as a combination of
13608 <link to="MediumVariant" /> flags).</desc>
13609 </param>
13610 <param name="parent" type="IMedium" dir="in">
13611 <desc>Parent of the cloned medium.</desc>
13612 </param>
13613 <param name="progress" type="IProgress" dir="return">
13614 <desc>Progress object to track the operation completion.</desc>
13615 </param>
13616 </method>
13617
13618 <method name="cloneToBase">
13619 <desc>
13620 Starts creating a clone of this medium in the format and at the
13621 location defined by the @a target argument.
13622
13623 The target medium must be either in <link to="MediumState_NotCreated"/>
13624 state (i.e. must not have an existing storage unit) or in
13625 <link to="MediumState_Created"/> state (i.e. created and not locked, and
13626 big enough to hold the data or else the copy will be partial). Upon
13627 successful completion, the cloned medium will contain exactly the
13628 same sector data as the medium being cloned, except that in the
13629 first case a new UUID for the clone will be randomly generated, and in
13630 the second case the UUID will remain unchanged.
13631
13632 The @a parent argument defines which medium will be the parent
13633 of the clone. In this case the clone will be a base image, i.e.
13634 completely independent. It is possible to specify an arbitrary
13635 medium for this parameter, including the parent of the
13636 medium which is being cloned. Even cloning to a child of the source
13637 medium is possible. Note that when cloning to an existing image, the
13638 @a parent argument is ignored.
13639
13640 After the returned progress object reports that the operation is
13641 successfully complete, the target medium gets remembered by this
13642 VirtualBox installation and may be attached to virtual machines.
13643
13644 <note>
13645 This medium will be placed to <link to="MediumState_LockedRead"/>
13646 state for the duration of this operation.
13647 </note>
13648 <result name="E_NOTIMPL">
13649 The specified cloning variant is not supported at the moment.
13650 </result>
13651 </desc>
13652 <param name="target" type="IMedium" dir="in">
13653 <desc>Target medium.</desc>
13654 </param>
13655 <param name="variant" type="MediumVariant" safearray="yes" dir="in">
13656 <desc><link to="MediumVariant" /> flags).</desc>
13657 </param>
13658 <param name="progress" type="IProgress" dir="return">
13659 <desc>Progress object to track the operation completion.</desc>
13660 </param>
13661 </method>
13662
13663 <!-- other methods -->
13664
13665 <method name="compact">
13666 <desc>
13667 Starts compacting of this medium. This means that the medium is
13668 transformed into a possibly more compact storage representation.
13669 This potentially creates temporary images, which can require a
13670 substantial amount of additional disk space.
13671
13672 This medium will be placed to <link to="MediumState_LockedWrite"/>
13673 state and all its parent media (if any) will be placed to
13674 <link to="MediumState_LockedRead"/> state for the duration of this
13675 operation.
13676
13677 Please note that the results can be either returned straight away,
13678 or later as the result of the background operation via the object
13679 returned via the @a progress parameter.
13680
13681 <result name="VBOX_E_NOT_SUPPORTED">
13682 Medium format does not support compacting (but potentially
13683 needs it).
13684 </result>
13685 </desc>
13686 <param name="progress" type="IProgress" dir="return">
13687 <desc>Progress object to track the operation completion.</desc>
13688 </param>
13689 </method>
13690
13691 <method name="resize">
13692 <desc>
13693 Starts resizing this medium. This means that the nominal size of the
13694 medium is set to the new value. Both increasing and decreasing the
13695 size is possible, and there are no safety checks, since VirtualBox
13696 does not make any assumptions about the medium contents.
13697
13698 Resizing usually needs additional disk space, and possibly also
13699 some temporary disk space. Note that resize does not create a full
13700 temporary copy of the medium, so the additional disk space requirement
13701 is usually much lower than using the clone operation.
13702
13703 This medium will be placed to <link to="MediumState_LockedWrite"/>
13704 state for the duration of this operation.
13705
13706 Please note that the results can be either returned straight away,
13707 or later as the result of the background operation via the object
13708 returned via the @a progress parameter.
13709
13710 <result name="VBOX_E_NOT_SUPPORTED">
13711 Medium format does not support resizing.
13712 </result>
13713 </desc>
13714 <param name="logicalSize" type="long long" dir="in">
13715 <desc>New nominal capacity of the medium in bytes.</desc>
13716 </param>
13717 <param name="progress" type="IProgress" dir="return">
13718 <desc>Progress object to track the operation completion.</desc>
13719 </param>
13720 </method>
13721
13722 <method name="reset">
13723 <desc>
13724 Starts erasing the contents of this differencing medium.
13725
13726 This operation will reset the differencing medium to its initial
13727 state when it does not contain any sector data and any read operation is
13728 redirected to its parent medium. This automatically gets called
13729 during VM power-up for every medium whose <link to="#autoReset" />
13730 attribute is @c true.
13731
13732 The medium will be write-locked for the duration of this operation (see
13733 <link to="#lockWrite" />).
13734
13735 <result name="VBOX_E_NOT_SUPPORTED">
13736 This is not a differencing medium.
13737 </result>
13738 <result name="VBOX_E_INVALID_OBJECT_STATE">
13739 Medium is not in <link to="MediumState_Created"/> or
13740 <link to="MediumState_Inaccessible"/> state.
13741 </result>
13742 </desc>
13743 <param name="progress" type="IProgress" dir="return">
13744 <desc>Progress object to track the operation completion.</desc>
13745 </param>
13746 </method>
13747
13748 </interface>
13749
13750
13751 <!--
13752 // IMediumFormat
13753 /////////////////////////////////////////////////////////////////////////
13754 -->
13755
13756 <enum
13757 name="DataType"
13758 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
13759 >
13760 <const name="Int32" value="0"/>
13761 <const name="Int8" value="1"/>
13762 <const name="String" value="2"/>
13763 </enum>
13764
13765 <enum
13766 name="DataFlags"
13767 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
13768 >
13769 <const name="None" value="0x00"/>
13770 <const name="Mandatory" value="0x01"/>
13771 <const name="Expert" value="0x02"/>
13772 <const name="Array" value="0x04"/>
13773 <const name="FlagMask" value="0x07"/>
13774 </enum>
13775
13776 <enum
13777 name="MediumFormatCapabilities"
13778 uuid="7342ba79-7ce0-4d94-8f86-5ed5a185d9bd"
13779 >
13780 <desc>
13781 Medium format capability flags.
13782 </desc>
13783
13784 <const name="Uuid" value="0x01">
13785 <desc>
13786 Supports UUIDs as expected by VirtualBox code.
13787 </desc>
13788 </const>
13789
13790 <const name="CreateFixed" value="0x02">
13791 <desc>
13792 Supports creating fixed size images, allocating all space instantly.
13793 </desc>
13794 </const>
13795
13796 <const name="CreateDynamic" value="0x04">
13797 <desc>
13798 Supports creating dynamically growing images, allocating space on
13799 demand.
13800 </desc>
13801 </const>
13802
13803 <const name="CreateSplit2G" value="0x08">
13804 <desc>
13805 Supports creating images split in chunks of a bit less than 2 GBytes.
13806 </desc>
13807 </const>
13808
13809 <const name="Differencing" value="0x10">
13810 <desc>
13811 Supports being used as a format for differencing media (see <link
13812 to="IMedium::createDiffStorage"/>).
13813 </desc>
13814 </const>
13815
13816 <const name="Asynchronous" value="0x20">
13817 <desc>
13818 Supports asynchronous I/O operations for at least some configurations.
13819 </desc>
13820 </const>
13821
13822 <const name="File" value="0x40">
13823 <desc>
13824 The format backend operates on files (the <link to="IMedium::location"/>
13825 attribute of the medium specifies a file used to store medium
13826 data; for a list of supported file extensions see
13827 <link to="IMediumFormat::describeFileExtensions"/>).
13828 </desc>
13829 </const>
13830
13831 <const name="Properties" value="0x80">
13832 <desc>
13833 The format backend uses the property interface to configure the storage
13834 location and properties (the <link to="IMediumFormat::describeProperties"/>
13835 method is used to get access to properties supported by the given medium format).
13836 </desc>
13837 </const>
13838
13839 <const name="TcpNetworking" value="0x100">
13840 <desc>
13841 The format backend uses the TCP networking interface for network access.
13842 </desc>
13843 </const>
13844
13845 <const name="VFS" value="0x200">
13846 <desc>
13847 The format backend supports virtual filesystem functionality.
13848 </desc>
13849 </const>
13850
13851 <const name="CapabilityMask" value="0x3FF"/>
13852 </enum>
13853
13854 <interface
13855 name="IMediumFormat" extends="$unknown"
13856 uuid="6238e1cf-a17d-4ec1-8172-418bfb22b93a"
13857 wsmap="managed"
13858 >
13859 <desc>
13860 The IMediumFormat interface represents a medium format.
13861
13862 Each medium format has an associated backend which is used to handle
13863 media stored in this format. This interface provides information
13864 about the properties of the associated backend.
13865
13866 Each medium format is identified by a string represented by the
13867 <link to="#id"/> attribute. This string is used in calls like
13868 <link to="IVirtualBox::createHardDisk"/> to specify the desired
13869 format.
13870
13871 The list of all supported medium formats can be obtained using
13872 <link to="ISystemProperties::mediumFormats"/>.
13873
13874 <see><link to="IMedium"/></see>
13875 </desc>
13876
13877 <attribute name="id" type="wstring" readonly="yes">
13878 <desc>
13879 Identifier of this format.
13880
13881 The format identifier is a non-@c null non-empty ASCII string. Note that
13882 this string is case-insensitive. This means that, for example, all of
13883 the following strings:
13884 <pre>
13885 "VDI"
13886 "vdi"
13887 "VdI"</pre>
13888 refer to the same medium format.
13889
13890 This string is used in methods of other interfaces where it is necessary
13891 to specify a medium format, such as
13892 <link to="IVirtualBox::createHardDisk"/>.
13893 </desc>
13894 </attribute>
13895
13896 <attribute name="name" type="wstring" readonly="yes">
13897 <desc>
13898 Human readable description of this format.
13899
13900 Mainly for use in file open dialogs.
13901 </desc>
13902 </attribute>
13903
13904 <attribute name="capabilities" type="MediumFormatCapabilities" safearray="yes" readonly="yes">
13905 <desc>
13906 Capabilities of the format as an array of the flags.
13907
13908 For the meaning of individual capability flags see
13909 <link to="MediumFormatCapabilities"/>.
13910 </desc>
13911 </attribute>
13912
13913 <method name="describeFileExtensions">
13914 <desc>
13915 Returns two arrays describing the supported file extensions.
13916
13917 The first array contains the supported extensions and the seconds one
13918 the type each extension supports. Both have the same size.
13919
13920 Note that some backends do not work on files, so this array may be
13921 empty.
13922
13923 <see><link to="IMediumFormat::capabilities"/></see>
13924 </desc>
13925 <param name="extensions" type="wstring" safearray="yes" dir="out">
13926 <desc>The array of supported extensions.</desc>
13927 </param>
13928 <param name="types" type="DeviceType" safearray="yes" dir="out">
13929 <desc>The array which indicates the device type for every given extension.</desc>
13930 </param>
13931 </method>
13932
13933 <method name="describeProperties" const="yes">
13934 <desc>
13935 Returns several arrays describing the properties supported by this
13936 format.
13937
13938 An element with the given index in each array describes one
13939 property. Thus, the number of elements in each returned array is the
13940 same and corresponds to the number of supported properties.
13941
13942 The returned arrays are filled in only if the
13943 <link to="MediumFormatCapabilities_Properties"/> flag is set.
13944 All arguments must be non-@c null.
13945
13946 <see><link to="DataType"/>, <link to="DataFlags"/></see>
13947 </desc>
13948
13949 <param name="names" type="wstring" safearray="yes" dir="out">
13950 <desc>Array of property names.</desc>
13951 </param>
13952 <param name="descriptions" type="wstring" safearray="yes" dir="out">
13953 <desc>Array of property descriptions.</desc>
13954 </param>
13955 <param name="types" type="DataType" safearray="yes" dir="out">
13956 <desc>Array of property types.</desc>
13957 </param>
13958 <param name="flags" type="unsigned long" safearray="yes" dir="out">
13959 <desc>Array of property flags.</desc>
13960 </param>
13961 <param name="defaults" type="wstring" safearray="yes" dir="out">
13962 <desc>Array of default property values.</desc>
13963 </param>
13964 </method>
13965
13966 </interface>
13967
13968
13969 <!--
13970 // IKeyboard
13971 /////////////////////////////////////////////////////////////////////////
13972 -->
13973
13974 <interface
13975 name="IKeyboard" extends="$unknown"
13976 uuid="f6916ec5-a881-4237-898f-7de58cf88672"
13977 wsmap="managed"
13978 >
13979 <desc>
13980 The IKeyboard interface represents the virtual machine's keyboard. Used
13981 in <link to="IConsole::keyboard"/>.
13982
13983 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
13984 to the virtual machine.
13985
13986 </desc>
13987 <method name="putScancode">
13988 <desc>Sends a scancode to the keyboard.
13989
13990 <result name="VBOX_E_IPRT_ERROR">
13991 Could not send scan code to virtual keyboard.
13992 </result>
13993
13994 </desc>
13995 <param name="scancode" type="long" dir="in"/>
13996 </method>
13997
13998 <method name="putScancodes">
13999 <desc>Sends an array of scancodes to the keyboard.
14000
14001 <result name="VBOX_E_IPRT_ERROR">
14002 Could not send all scan codes to virtual keyboard.
14003 </result>
14004
14005 </desc>
14006 <param name="scancodes" type="long" dir="in" safearray="yes"/>
14007 <param name="codesStored" type="unsigned long" dir="return"/>
14008 </method>
14009
14010 <method name="putCAD">
14011 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
14012 function is nothing special, it is just a convenience function
14013 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
14014
14015 <result name="VBOX_E_IPRT_ERROR">
14016 Could not send all scan codes to virtual keyboard.
14017 </result>
14018
14019 </desc>
14020 </method>
14021
14022 <attribute name="eventSource" type="IEventSource" readonly="yes">
14023 <desc>
14024 Event source for keyboard events.
14025 </desc>
14026 </attribute>
14027
14028 </interface>
14029
14030
14031 <!--
14032 // IMouse
14033 /////////////////////////////////////////////////////////////////////////
14034 -->
14035
14036 <enum
14037 name="MouseButtonState"
14038 uuid="9ee094b8-b28a-4d56-a166-973cb588d7f8"
14039 >
14040 <desc>
14041 Mouse button state.
14042 </desc>
14043
14044 <const name="LeftButton" value="0x01"/>
14045 <const name="RightButton" value="0x02"/>
14046 <const name="MiddleButton" value="0x04"/>
14047 <const name="WheelUp" value="0x08"/>
14048 <const name="WheelDown" value="0x10"/>
14049 <const name="XButton1" value="0x20"/>
14050 <const name="XButton2" value="0x40"/>
14051 <const name="MouseStateMask" value="0x7F"/>
14052 </enum>
14053
14054 <interface
14055 name="IMouse" extends="$unknown"
14056 uuid="05044a52-7811-4f00-ae3a-0ab7ff707b10"
14057 wsmap="managed"
14058 >
14059 <desc>
14060 The IMouse interface represents the virtual machine's mouse. Used in
14061 <link to="IConsole::mouse"/>.
14062
14063 Through this interface, the virtual machine's virtual mouse can be
14064 controlled.
14065 </desc>
14066
14067 <attribute name="absoluteSupported" type="boolean" readonly="yes">
14068 <desc>
14069 Whether the guest OS supports absolute mouse pointer positioning
14070 or not.
14071 <note>
14072 You can use the <link to="IMouseCapabilityChangedEvent"/>
14073 event to be instantly informed about changes of this attribute
14074 during virtual machine execution.
14075 </note>
14076 <see><link to="#putMouseEventAbsolute"/></see>
14077 </desc>
14078 </attribute>
14079
14080 <attribute name="relativeSupported" type="boolean" readonly="yes">
14081 <desc>
14082 Whether the guest OS supports relative mouse pointer positioning
14083 or not.
14084 <note>
14085 You can use the <link to="IMouseCapabilityChangedEvent"/>
14086 event to be instantly informed about changes of this attribute
14087 during virtual machine execution.
14088 </note>
14089 <see><link to="#putMouseEvent"/></see>
14090 </desc>
14091 </attribute>
14092
14093 <attribute name="needsHostCursor" type="boolean" readonly="yes">
14094 <desc>
14095 Whether the guest OS can currently switch to drawing it's own mouse
14096 cursor on demand.
14097 <note>
14098 You can use the <link to="IMouseCapabilityChangedEvent"/>
14099 event to be instantly informed about changes of this attribute
14100 during virtual machine execution.
14101 </note>
14102 <see><link to="#putMouseEvent"/></see>
14103 </desc>
14104 </attribute>
14105
14106 <method name="putMouseEvent">
14107 <desc>
14108 Initiates a mouse event using relative pointer movements
14109 along x and y axis.
14110
14111 <result name="E_ACCESSDENIED">
14112 Console not powered up.
14113 </result>
14114 <result name="VBOX_E_IPRT_ERROR">
14115 Could not send mouse event to virtual mouse.
14116 </result>
14117
14118 </desc>
14119
14120 <param name="dx" type="long" dir="in">
14121 <desc>
14122 Amount of pixels the mouse should move to the right.
14123 Negative values move the mouse to the left.
14124 </desc>
14125 </param>
14126 <param name="dy" type="long" dir="in">
14127 <desc>
14128 Amount of pixels the mouse should move downwards.
14129 Negative values move the mouse upwards.
14130 </desc>
14131 </param>
14132 <param name="dz" type="long" dir="in">
14133 <desc>
14134 Amount of mouse wheel moves.
14135 Positive values describe clockwise wheel rotations,
14136 negative values describe counterclockwise rotations.
14137 </desc>
14138 </param>
14139 <param name="dw" type="long" dir="in">
14140 <desc>
14141 Amount of horizontal mouse wheel moves.
14142 Positive values describe a movement to the left,
14143 negative values describe a movement to the right.
14144 </desc>
14145 </param>
14146 <param name="buttonState" type="long" dir="in">
14147 <desc>
14148 The current state of mouse buttons. Every bit represents
14149 a mouse button as follows:
14150 <table>
14151 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
14152 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
14153 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
14154 </table>
14155 A value of <tt>1</tt> means the corresponding button is pressed.
14156 otherwise it is released.
14157 </desc>
14158 </param>
14159 </method>
14160
14161 <method name="putMouseEventAbsolute">
14162 <desc>
14163 Positions the mouse pointer using absolute x and y coordinates.
14164 These coordinates are expressed in pixels and
14165 start from <tt>[1,1]</tt> which corresponds to the top left
14166 corner of the virtual display.
14167
14168 <result name="E_ACCESSDENIED">
14169 Console not powered up.
14170 </result>
14171 <result name="VBOX_E_IPRT_ERROR">
14172 Could not send mouse event to virtual mouse.
14173 </result>
14174
14175 <note>
14176 This method will have effect only if absolute mouse
14177 positioning is supported by the guest OS.
14178 </note>
14179
14180 <see><link to="#absoluteSupported"/></see>
14181 </desc>
14182
14183 <param name="x" type="long" dir="in">
14184 <desc>
14185 X coordinate of the pointer in pixels, starting from @c 1.
14186 </desc>
14187 </param>
14188 <param name="y" type="long" dir="in">
14189 <desc>
14190 Y coordinate of the pointer in pixels, starting from @c 1.
14191 </desc>
14192 </param>
14193 <param name="dz" type="long" dir="in">
14194 <desc>
14195 Amount of mouse wheel moves.
14196 Positive values describe clockwise wheel rotations,
14197 negative values describe counterclockwise rotations.
14198 </desc>
14199 </param>
14200 <param name="dw" type="long" dir="in">
14201 <desc>
14202 Amount of horizontal mouse wheel moves.
14203 Positive values describe a movement to the left,
14204 negative values describe a movement to the right.
14205 </desc>
14206 </param>
14207 <param name="buttonState" type="long" dir="in">
14208 <desc>
14209 The current state of mouse buttons. Every bit represents
14210 a mouse button as follows:
14211 <table>
14212 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
14213 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
14214 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
14215 </table>
14216 A value of @c 1 means the corresponding button is pressed.
14217 otherwise it is released.
14218 </desc>
14219 </param>
14220 </method>
14221
14222 <attribute name="eventSource" type="IEventSource" readonly="yes">
14223 <desc>
14224 Event source for mouse events.
14225 </desc>
14226 </attribute>
14227
14228 </interface>
14229
14230 <!--
14231 // IDisplay
14232 /////////////////////////////////////////////////////////////////////////
14233 -->
14234
14235 <enum
14236 name="FramebufferPixelFormat"
14237 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
14238 >
14239 <desc>
14240 Format of the video memory buffer. Constants represented by this enum can
14241 be used to test for particular values of <link
14242 to="IFramebuffer::pixelFormat"/>. See also <link
14243 to="IFramebuffer::requestResize"/>.
14244
14245 See also www.fourcc.org for more information about FOURCC pixel formats.
14246 </desc>
14247
14248 <const name="Opaque" value="0">
14249 <desc>
14250 Unknown buffer format (the user may not assume any particular format of
14251 the buffer).
14252 </desc>
14253 </const>
14254 <const name="FOURCC_RGB" value="0x32424752">
14255 <desc>
14256 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
14257 bit layout).
14258 </desc>
14259 </const>
14260 </enum>
14261
14262 <interface
14263 name="IFramebuffer" extends="$unknown"
14264 uuid="b7ed347a-5765-40a0-ae1c-f543eb4ddeaf"
14265 wsmap="suppress"
14266 >
14267 <attribute name="address" type="octet" mod="ptr" readonly="yes">
14268 <desc>Address of the start byte of the frame buffer.</desc>
14269 </attribute>
14270
14271 <attribute name="width" type="unsigned long" readonly="yes">
14272 <desc>Frame buffer width, in pixels.</desc>
14273 </attribute>
14274
14275 <attribute name="height" type="unsigned long" readonly="yes">
14276 <desc>Frame buffer height, in pixels.</desc>
14277 </attribute>
14278
14279 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
14280 <desc>
14281 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
14282 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
14283 are: 8, 15, 16, 24 and 32.
14284 </desc>
14285 </attribute>
14286
14287 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
14288 <desc>
14289 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
14290 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
14291 size of the scan line must be aligned to 32 bits.
14292 </desc>
14293 </attribute>
14294
14295 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
14296 <desc>
14297 Frame buffer pixel format. It's either one of the values defined by <link
14298 to="FramebufferPixelFormat"/> or a raw FOURCC code.
14299 <note>
14300 This attribute must never return <link
14301 to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
14302 <link to="#address"/> points to must be always known.
14303 </note>
14304 </desc>
14305 </attribute>
14306
14307 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
14308 <desc>
14309 Defines whether this frame buffer uses the virtual video card's memory
14310 buffer (guest VRAM) directly or not. See <link
14311 to="IFramebuffer::requestResize"/> for more information.
14312 </desc>
14313 </attribute>
14314
14315 <attribute name="heightReduction" type="unsigned long" readonly="yes">
14316 <desc>
14317 Hint from the frame buffer about how much of the standard
14318 screen height it wants to use for itself. This information is
14319 exposed to the guest through the VESA BIOS and VMMDev interface
14320 so that it can use it for determining its video mode table. It
14321 is not guaranteed that the guest respects the value.
14322 </desc>
14323 </attribute>
14324
14325 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
14326 <desc>
14327 An alpha-blended overlay which is superposed over the frame buffer.
14328 The initial purpose is to allow the display of icons providing
14329 information about the VM state, including disk activity, in front
14330 ends which do not have other means of doing that. The overlay is
14331 designed to controlled exclusively by IDisplay. It has no locking
14332 of its own, and any changes made to it are not guaranteed to be
14333 visible until the affected portion of IFramebuffer is updated. The
14334 overlay can be created lazily the first time it is requested. This
14335 attribute can also return @c null to signal that the overlay is not
14336 implemented.
14337 </desc>
14338 </attribute>
14339
14340 <attribute name="winId" type="long long" readonly="yes">
14341 <desc>
14342 Platform-dependent identifier of the window where context of this
14343 frame buffer is drawn, or zero if there's no such window.
14344 </desc>
14345 </attribute>
14346
14347 <method name="lock">
14348 <desc>
14349 Locks the frame buffer.
14350 Gets called by the IDisplay object where this frame buffer is
14351 bound to.
14352 </desc>
14353 </method>
14354
14355 <method name="unlock">
14356 <desc>
14357 Unlocks the frame buffer.
14358 Gets called by the IDisplay object where this frame buffer is
14359 bound to.
14360 </desc>
14361 </method>
14362
14363 <method name="notifyUpdate">
14364 <desc>
14365 Informs about an update.
14366 Gets called by the display object where this buffer is
14367 registered.
14368 </desc>
14369 <param name="x" type="unsigned long" dir="in"/>
14370 <param name="y" type="unsigned long" dir="in"/>
14371 <param name="width" type="unsigned long" dir="in"/>
14372 <param name="height" type="unsigned long" dir="in"/>
14373 </method>
14374
14375 <method name="requestResize">
14376 <desc>
14377 Requests a size and pixel format change.
14378
14379 There are two modes of working with the video buffer of the virtual
14380 machine. The <i>indirect</i> mode implies that the IFramebuffer
14381 implementation allocates a memory buffer for the requested display mode
14382 and provides it to the virtual machine. In <i>direct</i> mode, the
14383 IFramebuffer implementation uses the memory buffer allocated and owned
14384 by the virtual machine. This buffer represents the video memory of the
14385 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
14386 usually faster because the implementation gets a raw pointer to the
14387 guest VRAM buffer which it can directly use for visualizing the contents
14388 of the virtual display, as opposed to the indirect mode where the
14389 contents of guest VRAM are copied to the memory buffer provided by
14390 the implementation every time a display update occurs.
14391
14392 It is important to note that the direct mode is really fast only when
14393 the implementation uses the given guest VRAM buffer directly, for
14394 example, by blitting it to the window representing the virtual machine's
14395 display, which saves at least one copy operation comparing to the
14396 indirect mode. However, using the guest VRAM buffer directly is not
14397 always possible: the format and the color depth of this buffer may be
14398 not supported by the target window, or it may be unknown (opaque) as in
14399 case of text or non-linear multi-plane VGA video modes. In this case,
14400 the indirect mode (that is always available) should be used as a
14401 fallback: when the guest VRAM contents are copied to the
14402 implementation-provided memory buffer, color and format conversion is
14403 done automatically by the underlying code.
14404
14405 The @a pixelFormat parameter defines whether the direct mode is
14406 available or not. If @a pixelFormat is <link
14407 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
14408 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
14409 @a bytesPerLine parameters must be ignored and the implementation must use
14410 the indirect mode (where it provides its own buffer in one of the
14411 supported formats). In all other cases, @a pixelFormat together with
14412 @a bitsPerPixel and @a bytesPerLine define the format of the video memory
14413 buffer pointed to by the @a VRAM parameter and the implementation is
14414 free to choose which mode to use. To indicate that this frame buffer uses
14415 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
14416 attribute must return @c true and <link to="#address"/> must
14417 return exactly the same address that is passed in the @a VRAM parameter
14418 of this method; otherwise it is assumed that the indirect strategy is
14419 chosen.
14420
14421 The @a width and @a height parameters represent the size of the
14422 requested display mode in both modes. In case of indirect mode, the
14423 provided memory buffer should be big enough to store data of the given
14424 display mode. In case of direct mode, it is guaranteed that the given
14425 @a VRAM buffer contains enough space to represent the display mode of the
14426 given size. Note that this frame buffer's <link to="#width"/> and <link
14427 to="#height"/> attributes must return exactly the same values as
14428 passed to this method after the resize is completed (see below).
14429
14430 The @a finished output parameter determines if the implementation has
14431 finished resizing the frame buffer or not. If, for some reason, the
14432 resize cannot be finished immediately during this call, @a finished
14433 must be set to @c false, and the implementation must call
14434 <link to="IDisplay::resizeCompleted"/> after it has returned from
14435 this method as soon as possible. If @a finished is @c false, the
14436 machine will not call any frame buffer methods until
14437 <link to="IDisplay::resizeCompleted"/> is called.
14438
14439 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
14440 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
14441 this frame buffer must return exactly the same values as specified in the
14442 parameters of this method, after the resize is completed. If the
14443 indirect mode is chosen, these attributes must return values describing
14444 the format of the implementation's own memory buffer <link
14445 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
14446 value must always correlate with <link to="#pixelFormat"/>. Note that
14447 the <link to="#pixelFormat"/> attribute must never return <link
14448 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
14449
14450 <note>
14451 This method is called by the IDisplay object under the
14452 <link to="#lock"/> provided by this IFramebuffer
14453 implementation. If this method returns @c false in @a finished, then
14454 this lock is not released until
14455 <link to="IDisplay::resizeCompleted"/> is called.
14456 </note>
14457 </desc>
14458 <param name="screenId" type="unsigned long" dir="in">
14459 <desc>
14460 Logical screen number. Must be used in the corresponding call to
14461 <link to="IDisplay::resizeCompleted"/> if this call is made.
14462 </desc>
14463 </param>
14464 <param name="pixelFormat" type="unsigned long" dir="in">
14465 <desc>
14466 Pixel format of the memory buffer pointed to by @a VRAM.
14467 See also <link to="FramebufferPixelFormat"/>.
14468 </desc>
14469 </param>
14470 <param name="VRAM" type="octet" mod="ptr" dir="in">
14471 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
14472 </param>
14473 <param name="bitsPerPixel" type="unsigned long" dir="in">
14474 <desc>Color depth, bits per pixel.</desc>
14475 </param>
14476 <param name="bytesPerLine" type="unsigned long" dir="in">
14477 <desc>Size of one scan line, in bytes.</desc>
14478 </param>
14479 <param name="width" type="unsigned long" dir="in">
14480 <desc>Width of the guest display, in pixels.</desc>
14481 </param>
14482 <param name="height" type="unsigned long" dir="in">
14483 <desc>Height of the guest display, in pixels.</desc>
14484 </param>
14485 <param name="finished" type="boolean" dir="return">
14486 <desc>
14487 Can the VM start using the new frame buffer immediately
14488 after this method returns or it should wait for
14489 <link to="IDisplay::resizeCompleted"/>.
14490 </desc>
14491 </param>
14492 </method>
14493
14494 <method name="videoModeSupported">
14495 <desc>
14496 Returns whether the frame buffer implementation is willing to
14497 support a given video mode. In case it is not able to render
14498 the video mode (or for some reason not willing), it should
14499 return @c false. Usually this method is called when the guest
14500 asks the VMM device whether a given video mode is supported
14501 so the information returned is directly exposed to the guest.
14502 It is important that this method returns very quickly.
14503 </desc>
14504 <param name="width" type="unsigned long" dir="in"/>
14505 <param name="height" type="unsigned long" dir="in"/>
14506 <param name="bpp" type="unsigned long" dir="in"/>
14507 <param name="supported" type="boolean" dir="return"/>
14508 </method>
14509
14510 <method name="getVisibleRegion">
14511 <desc>
14512 Returns the visible region of this frame buffer.
14513
14514 If the @a rectangles parameter is @c null then the value of the
14515 @a count parameter is ignored and the number of elements necessary to
14516 describe the current visible region is returned in @a countCopied.
14517
14518 If @a rectangles is not @c null but @a count is less
14519 than the required number of elements to store region data, the method
14520 will report a failure. If @a count is equal or greater than the
14521 required number of elements, then the actual number of elements copied
14522 to the provided array will be returned in @a countCopied.
14523
14524 <note>
14525 The address of the provided array must be in the process space of
14526 this IFramebuffer object.
14527 </note>
14528 <note>
14529 Method not yet implemented.
14530 </note>
14531 </desc>
14532 <param name="rectangles" type="octet" mod="ptr" dir="in">
14533 <desc>Pointer to the @c RTRECT array to receive region data.</desc>
14534 </param>
14535 <param name="count" type="unsigned long" dir="in">
14536 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
14537 </param>
14538 <param name="countCopied" type="unsigned long" dir="return">
14539 <desc>Number of elements copied to the @a rectangles array.</desc>
14540 </param>
14541 </method>
14542
14543 <method name="setVisibleRegion">
14544 <desc>
14545 Suggests a new visible region to this frame buffer. This region
14546 represents the area of the VM display which is a union of regions of
14547 all top-level windows of the guest operating system running inside the
14548 VM (if the Guest Additions for this system support this
14549 functionality). This information may be used by the frontends to
14550 implement the seamless desktop integration feature.
14551
14552 <note>
14553 The address of the provided array must be in the process space of
14554 this IFramebuffer object.
14555 </note>
14556 <note>
14557 The IFramebuffer implementation must make a copy of the provided
14558 array of rectangles.
14559 </note>
14560 <note>
14561 Method not yet implemented.
14562 </note>
14563 </desc>
14564 <param name="rectangles" type="octet" mod="ptr" dir="in">
14565 <desc>Pointer to the @c RTRECT array.</desc>
14566 </param>
14567 <param name="count" type="unsigned long" dir="in">
14568 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
14569 </param>
14570 </method>
14571
14572 <method name="processVHWACommand">
14573 <desc>
14574 Posts a Video HW Acceleration Command to the frame buffer for processing.
14575 The commands used for 2D video acceleration (DDraw surface creation/destroying, blitting, scaling, color conversion, overlaying, etc.)
14576 are posted from quest to the host to be processed by the host hardware.
14577
14578 <note>
14579 The address of the provided command must be in the process space of
14580 this IFramebuffer object.
14581 </note>
14582 </desc>
14583
14584 <param name="command" type="octet" mod="ptr" dir="in">
14585 <desc>Pointer to VBOXVHWACMD containing the command to execute.</desc>
14586 </param>
14587 </method>
14588
14589 </interface>
14590
14591 <interface
14592 name="IFramebufferOverlay" extends="IFramebuffer"
14593 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
14594 wsmap="suppress"
14595 >
14596 <desc>
14597 The IFramebufferOverlay interface represents an alpha blended overlay
14598 for displaying status icons above an IFramebuffer. It is always created
14599 not visible, so that it must be explicitly shown. It only covers a
14600 portion of the IFramebuffer, determined by its width, height and
14601 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
14602 that order) format, and may be written to directly. Do re-read the
14603 width though, after setting it, as it may be adjusted (increased) to
14604 make it more suitable for the front end.
14605 </desc>
14606 <attribute name="x" type="unsigned long" readonly="yes">
14607 <desc>X position of the overlay, relative to the frame buffer.</desc>
14608 </attribute>
14609
14610 <attribute name="y" type="unsigned long" readonly="yes">
14611 <desc>Y position of the overlay, relative to the frame buffer.</desc>
14612 </attribute>
14613
14614 <attribute name="visible" type="boolean">
14615 <desc>
14616 Whether the overlay is currently visible.
14617 </desc>
14618 </attribute>
14619
14620 <attribute name="alpha" type="unsigned long">
14621 <desc>
14622 The global alpha value for the overlay. This may or may not be
14623 supported by a given front end.
14624 </desc>
14625 </attribute>
14626
14627 <method name="move">
14628 <desc>
14629 Changes the overlay's position relative to the IFramebuffer.
14630 </desc>
14631 <param name="x" type="unsigned long" dir="in"/>
14632 <param name="y" type="unsigned long" dir="in"/>
14633 </method>
14634
14635 </interface>
14636
14637 <interface
14638 name="IDisplay" extends="$unknown"
14639 uuid="b83ee395-8679-40ca-8d60-1a0cbe724930"
14640 wsmap="managed"
14641 >
14642 <desc>
14643 The IDisplay interface represents the virtual machine's display.
14644
14645 The object implementing this interface is contained in each
14646 <link to="IConsole::display"/> attribute and represents the visual
14647 output of the virtual machine.
14648
14649 The virtual display supports pluggable output targets represented by the
14650 IFramebuffer interface. Examples of the output target are a window on
14651 the host computer or an RDP session's display on a remote computer.
14652 </desc>
14653 <method name="getScreenResolution">
14654 <desc>Queries display width, height and color depth for given screen.</desc>
14655 <param name="screenId" type="unsigned long" dir="in"/>
14656 <param name="width" type="unsigned long" dir="out"/>
14657 <param name="height" type="unsigned long" dir="out"/>
14658 <param name="bitsPerPixel" type="unsigned long" dir="out"/>
14659 </method>
14660
14661 <method name="setFramebuffer">
14662 <desc>
14663 Sets the framebuffer for given screen.
14664 </desc>
14665 <param name="screenId" type="unsigned long" dir="in"/>
14666 <param name="framebuffer" type="IFramebuffer" dir="in"/>
14667 </method>
14668
14669 <method name="getFramebuffer">
14670 <desc>
14671 Queries the framebuffer for given screen.
14672 </desc>
14673 <param name="screenId" type="unsigned long" dir="in"/>
14674 <param name="framebuffer" type="IFramebuffer" dir="out"/>
14675 <param name="xOrigin" type="long" dir="out"/>
14676 <param name="yOrigin" type="long" dir="out"/>
14677 </method>
14678
14679 <method name="setVideoModeHint">
14680 <desc>
14681 Asks VirtualBox to request the given video mode from
14682 the guest. This is just a hint and it cannot be guaranteed
14683 that the requested resolution will be used. Guest Additions
14684 are required for the request to be seen by guests. The caller
14685 should issue the request and wait for a resolution change and
14686 after a timeout retry.
14687
14688 Specifying @c 0 for either @a width, @a height or @a bitsPerPixel
14689 parameters means that the corresponding values should be taken from the
14690 current video mode (i.e. left unchanged).
14691
14692 If the guest OS supports multi-monitor configuration then the @a display
14693 parameter specifies the number of the guest display to send the hint to:
14694 @c 0 is the primary display, @c 1 is the first secondary and
14695 so on. If the multi-monitor configuration is not supported, @a display
14696 must be @c 0.
14697
14698 <result name="E_INVALIDARG">
14699 The @a display is not associated with any monitor.
14700 </result>
14701
14702 </desc>
14703 <param name="display" type="unsigned long" dir="in">
14704 <desc>
14705 The number of the guest display to send the hint to.
14706 </desc>
14707 </param>
14708 <param name="enabled" type="boolean" dir="in">
14709 <desc>
14710 @c True, if this guest screen is enabled,
14711 @c False otherwise.
14712 </desc>
14713 </param>
14714 <param name="changeOrigin" type="boolean" dir="in">
14715 <desc>
14716 @c True, if the origin of the guest screen should be changed,
14717 @c False otherwise.
14718 </desc>
14719 </param>
14720 <param name="originX" type="long" dir="in">
14721 <desc>
14722 The X origin of the guest screen.
14723 </desc>
14724 </param>
14725 <param name="originY" type="long" dir="in">
14726 <desc>
14727 The Y origin of the guest screen.
14728 </desc>
14729 </param>
14730 <param name="width" type="unsigned long" dir="in"/>
14731 <param name="height" type="unsigned long" dir="in"/>
14732 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
14733 </method>
14734
14735 <method name="setSeamlessMode">
14736 <desc>
14737 Enables or disables seamless guest display rendering (seamless desktop
14738 integration) mode.
14739 <note>
14740 Calling this method has no effect if <link
14741 to="IGuest::getFacilityStatus"/> with facility @c Seamless
14742 does not return @c Active.
14743 </note>
14744 </desc>
14745 <param name="enabled" type="boolean" dir="in"/>
14746 </method>
14747
14748 <method name="takeScreenShot">
14749 <desc>
14750 Takes a screen shot of the requested size and copies it to the
14751 32-bpp buffer allocated by the caller and pointed to by @a address.
14752 A pixel consists of 4 bytes in order: B, G, R, 0.
14753
14754 <note>This API can be used only locally by a VM process through the
14755 COM/XPCOM C++ API as it requires pointer support. It is not
14756 available for scripting langages, Java or any webservice clients.
14757 Unless you are writing a new VM frontend use
14758 <link to="#takeScreenShotToArray" />.
14759 </note>
14760
14761 <result name="E_NOTIMPL">
14762 Feature not implemented.
14763 </result>
14764 <result name="VBOX_E_IPRT_ERROR">
14765 Could not take a screenshot.
14766 </result>
14767
14768 </desc>
14769 <param name="screenId" type="unsigned long" dir="in"/>
14770 <param name="address" type="octet" mod="ptr" dir="in"/>
14771 <param name="width" type="unsigned long" dir="in"/>
14772 <param name="height" type="unsigned long" dir="in"/>
14773 </method>
14774
14775 <method name="takeScreenShotToArray">
14776 <desc>
14777 Takes a guest screen shot of the requested size and returns it as
14778 an array of bytes in uncompressed 32-bit RGBA format.
14779 A pixel consists of 4 bytes in order: R, G, B, 0xFF.
14780
14781 This API is slow, but could be the only option to get guest screenshot
14782 for scriptable languages not allowed to manipulate with addresses
14783 directly.
14784
14785 <result name="E_NOTIMPL">
14786 Feature not implemented.
14787 </result>
14788 <result name="VBOX_E_IPRT_ERROR">
14789 Could not take a screenshot.
14790 </result>
14791 </desc>
14792 <param name="screenId" type="unsigned long" dir="in">
14793 <desc>
14794 Monitor to take screenshot from.
14795 </desc>
14796 </param>
14797 <param name="width" type="unsigned long" dir="in">
14798 <desc>
14799 Desired image width.
14800 </desc>
14801 </param>
14802 <param name="height" type="unsigned long" dir="in">
14803 <desc>
14804 Desired image height.
14805 </desc>
14806 </param>
14807 <param name="screenData" type="octet" dir="return" safearray="yes">
14808 <desc>
14809 Array with resulting screen data.
14810 </desc>
14811 </param>
14812 </method>
14813
14814 <method name="takeScreenShotPNGToArray">
14815 <desc>
14816 Takes a guest screen shot of the requested size and returns it as
14817 PNG image in array.
14818
14819 <result name="E_NOTIMPL">
14820 Feature not implemented.
14821 </result>
14822 <result name="VBOX_E_IPRT_ERROR">
14823 Could not take a screenshot.
14824 </result>
14825 </desc>
14826 <param name="screenId" type="unsigned long" dir="in">
14827 <desc>
14828 Monitor to take the screenshot from.
14829 </desc>
14830 </param>
14831 <param name="width" type="unsigned long" dir="in">
14832 <desc>
14833 Desired image width.
14834 </desc>
14835 </param>
14836 <param name="height" type="unsigned long" dir="in">
14837 <desc>
14838 Desired image height.
14839 </desc>
14840 </param>
14841 <param name="screenData" type="octet" dir="return" safearray="yes">
14842 <desc>
14843 Array with resulting screen data.
14844 </desc>
14845 </param>
14846 </method>
14847
14848 <method name="drawToScreen">
14849 <desc>
14850 Draws a 32-bpp image of the specified size from the given buffer
14851 to the given point on the VM display.
14852
14853 <result name="E_NOTIMPL">
14854 Feature not implemented.
14855 </result>
14856 <result name="VBOX_E_IPRT_ERROR">
14857 Could not draw to screen.
14858 </result>
14859
14860 </desc>
14861 <param name="screenId" type="unsigned long" dir="in">
14862 <desc>
14863 Monitor to take the screenshot from.
14864 </desc>
14865 </param>
14866 <param name="address" type="octet" mod="ptr" dir="in">
14867 <desc>
14868 Address to store the screenshot to
14869 </desc>
14870 </param>
14871 <param name="x" type="unsigned long" dir="in">
14872 <desc>
14873 Relative to the screen top left corner.
14874 </desc>
14875 </param>
14876 <param name="y" type="unsigned long" dir="in">
14877 <desc>
14878 Relative to the screen top left corner.
14879 </desc>
14880 </param>
14881 <param name="width" type="unsigned long" dir="in">
14882 <desc>
14883 Desired image width.
14884 </desc>
14885 </param>
14886 <param name="height" type="unsigned long" dir="in">
14887 <desc>
14888 Desired image height.
14889 </desc>
14890 </param>
14891 </method>
14892
14893 <method name="invalidateAndUpdate">
14894 <desc>
14895 Does a full invalidation of the VM display and instructs the VM
14896 to update it.
14897
14898 <result name="VBOX_E_IPRT_ERROR">
14899 Could not invalidate and update screen.
14900 </result>
14901
14902 </desc>
14903 </method>
14904
14905 <method name="resizeCompleted">
14906 <desc>
14907 Signals that a framebuffer has completed the resize operation.
14908
14909 <result name="VBOX_E_NOT_SUPPORTED">
14910 Operation only valid for external frame buffers.
14911 </result>
14912
14913 </desc>
14914 <param name="screenId" type="unsigned long" dir="in"/>
14915 </method>
14916
14917 <method name="completeVHWACommand">
14918 <desc>
14919 Signals that the Video HW Acceleration command has completed.
14920 </desc>
14921
14922 <param name="command" type="octet" mod="ptr" dir="in">
14923 <desc>Pointer to VBOXVHWACMD containing the completed command.</desc>
14924 </param>
14925 </method>
14926
14927 <method name="viewportChanged">
14928 <desc>
14929 Signals that framebuffer window viewport has changed.
14930
14931 <result name="E_INVALIDARG">
14932 The specified viewport data is invalid.
14933 </result>
14934
14935 </desc>
14936
14937 <param name="screenId" type="unsigned long" dir="in">
14938 <desc>
14939 Monitor to take the screenshot from.
14940 </desc>
14941 </param>
14942 <param name="x" type="unsigned long" dir="in">
14943 <desc>
14944 Framebuffer x offset.
14945 </desc>
14946 </param>
14947 <param name="y" type="unsigned long" dir="in">
14948 <desc>
14949 Framebuffer y offset.
14950 </desc>
14951 </param>
14952 <param name="width" type="unsigned long" dir="in">
14953 <desc>
14954 Viewport width.
14955 </desc>
14956 </param>
14957 <param name="height" type="unsigned long" dir="in">
14958 <desc>
14959 Viewport height.
14960 </desc>
14961 </param>
14962 </method>
14963 </interface>
14964
14965 <!--
14966 // INetworkAdapter
14967 /////////////////////////////////////////////////////////////////////////
14968 -->
14969
14970 <enum
14971 name="NetworkAttachmentType"
14972 uuid="2ac4bc71-6b82-417a-acd1-f7426d2570d6"
14973 >
14974 <desc>
14975 Network attachment type.
14976 </desc>
14977
14978 <const name="Null" value="0">
14979 <desc>Null value, also means "not attached".</desc>
14980 </const>
14981 <const name="NAT" value="1"/>
14982 <const name="Bridged" value="2"/>
14983 <const name="Internal" value="3"/>
14984 <const name="HostOnly" value="4"/>
14985 <const name="Generic" value="5"/>
14986 </enum>
14987
14988 <enum
14989 name="NetworkAdapterType"
14990 uuid="3c2281e4-d952-4e87-8c7d-24379cb6a81c"
14991 >
14992 <desc>
14993 Network adapter type.
14994 </desc>
14995
14996 <const name="Null" value="0">
14997 <desc>Null value (never used by the API).</desc>
14998 </const>
14999 <const name="Am79C970A" value="1">
15000 <desc>AMD PCNet-PCI II network card (Am79C970A).</desc>
15001 </const>
15002 <const name="Am79C973" value="2">
15003 <desc>AMD PCNet-FAST III network card (Am79C973).</desc>
15004 </const>
15005 <const name="I82540EM" value="3">
15006 <desc>Intel PRO/1000 MT Desktop network card (82540EM).</desc>
15007 </const>
15008 <const name="I82543GC" value="4">
15009 <desc>Intel PRO/1000 T Server network card (82543GC).</desc>
15010 </const>
15011 <const name="I82545EM" value="5">
15012 <desc>Intel PRO/1000 MT Server network card (82545EM).</desc>
15013 </const>
15014 <const name="Virtio" value="6">
15015 <desc>Virtio network device.</desc>
15016 </const>
15017 </enum>
15018
15019 <enum
15020 name="NetworkAdapterPromiscModePolicy"
15021 uuid="c963768a-376f-4c85-8d84-d8ced4b7269e"
15022 >
15023 <desc>
15024 The promiscuous mode policy of an interface.
15025 </desc>
15026
15027 <const name="Deny" value="1">
15028 <desc>Deny promiscuous mode requests.</desc>
15029 </const>
15030 <const name="AllowNetwork" value="2">
15031 <desc>
15032 Allow promicuous mode, but restrict the scope it to the internal
15033 network so that it only applies to other VMs.
15034 </desc>
15035 </const>
15036 <const name="AllowAll" value="3">
15037 <desc>
15038 Allow promicuous mode, include unrelated traffic going over the wire
15039 and internally on the host.
15040 </desc>
15041 </const>
15042 </enum>
15043
15044 <interface
15045 name="INetworkAdapter" extends="$unknown"
15046 uuid="efa0f965-63c7-4c60-afdf-b1cc9943b9c0"
15047 wsmap="managed"
15048 >
15049 <desc>
15050 Represents a virtual network adapter that is attached to a virtual machine.
15051 Each virtual machine has a fixed number of network adapter slots with one
15052 instance of this attached to each of them. Call
15053 <link to="IMachine::getNetworkAdapter" /> to get the network adapter that
15054 is attached to a given slot in a given machine.
15055
15056 Each network adapter can be in one of five attachment modes, which are
15057 represented by the <link to="NetworkAttachmentType" /> enumeration;
15058 see the <link to="#attachmentType" /> attribute.
15059 </desc>
15060
15061 <attribute name="adapterType" type="NetworkAdapterType">
15062 <desc>
15063 Type of the virtual network adapter. Depending on this value,
15064 VirtualBox will provide a different virtual network hardware
15065 to the guest.
15066 </desc>
15067 </attribute>
15068
15069 <attribute name="slot" type="unsigned long" readonly="yes">
15070 <desc>
15071 Slot number this adapter is plugged into. Corresponds to
15072 the value you pass to <link to="IMachine::getNetworkAdapter"/>
15073 to obtain this instance.
15074 </desc>
15075 </attribute>
15076
15077 <attribute name="enabled" type="boolean">
15078 <desc>
15079 Flag whether the network adapter is present in the
15080 guest system. If disabled, the virtual guest hardware will
15081 not contain this network adapter. Can only be changed when
15082 the VM is not running.
15083 </desc>
15084 </attribute>
15085
15086 <attribute name="MACAddress" type="wstring">
15087 <desc>
15088 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
15089 it to @c null or an empty string, VirtualBox will generate a unique MAC address.
15090 </desc>
15091 </attribute>
15092
15093 <attribute name="attachmentType" type="NetworkAttachmentType">
15094 <desc>
15095 Sets/Gets network attachment type of this network adapter.
15096 </desc>
15097 </attribute>
15098
15099 <attribute name="bridgedInterface" type="wstring">
15100 <desc>
15101 Name of the network interface the VM should be bridged to.
15102 </desc>
15103 </attribute>
15104
15105 <attribute name="hostOnlyInterface" type="wstring">
15106 <desc>
15107 Name of the host only network interface the VM is attached to.
15108 </desc>
15109 </attribute>
15110
15111 <attribute name="internalNetwork" type="wstring">
15112 <desc>
15113 Name of the internal network the VM is attached to.
15114 </desc>
15115 </attribute>
15116
15117 <attribute name="NATNetwork" type="wstring">
15118 <desc>
15119 Name of the NAT network the VM is attached to.
15120 </desc>
15121 </attribute>
15122
15123 <attribute name="genericDriver" type="wstring">
15124 <desc>
15125 Name of the driver to use for the "Generic" network attachment type.
15126 </desc>
15127 </attribute>
15128
15129 <attribute name="cableConnected" type="boolean">
15130 <desc>
15131 Flag whether the adapter reports the cable as connected or not.
15132 It can be used to report offline situations to a VM.
15133 </desc>
15134 </attribute>
15135
15136 <attribute name="lineSpeed" type="unsigned long">
15137 <desc>
15138 Line speed reported by custom drivers, in units of 1 kbps.
15139 </desc>
15140 </attribute>
15141
15142 <attribute name="promiscModePolicy" type="NetworkAdapterPromiscModePolicy">
15143 <desc>
15144 The promiscuous mode policy of the network adapter when attached to an
15145 internal network, host only network or a bridge.
15146 </desc>
15147 </attribute>
15148
15149 <attribute name="traceEnabled" type="boolean">
15150 <desc>
15151 Flag whether network traffic from/to the network card should be traced.
15152 Can only be toggled when the VM is turned off.
15153 </desc>
15154 </attribute>
15155
15156 <attribute name="traceFile" type="wstring">
15157 <desc>
15158 Filename where a network trace will be stored. If not set, VBox-pid.pcap
15159 will be used.
15160 </desc>
15161 </attribute>
15162
15163 <attribute name="NATEngine" type="INATEngine" readonly="yes">
15164 <desc>
15165 Points to the NAT engine which handles the network address translation
15166 for this interface. This is active only when the interface actually uses
15167 NAT.
15168 </desc>
15169 </attribute>
15170
15171 <attribute name="bootPriority" type="unsigned long">
15172 <desc>
15173 Network boot priority of the adapter. Priority 1 is highest. If not set,
15174 the priority is considered to be at the lowest possible setting.
15175 </desc>
15176 </attribute>
15177
15178 <attribute name="bandwidthGroup" type="IBandwidthGroup">
15179 <desc>The bandwidth group this network adapter is assigned to.</desc>
15180 </attribute>
15181
15182 <!-- property methods -->
15183
15184 <method name="getProperty" const="yes">
15185 <desc>
15186 Returns the value of the network attachment property with the given name.
15187
15188 If the requested data @a key does not exist, this function will
15189 succeed and return an empty string in the @a value argument.
15190
15191 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
15192 </desc>
15193 <param name="key" type="wstring" dir="in">
15194 <desc>Name of the property to get.</desc>
15195 </param>
15196 <param name="value" type="wstring" dir="return">
15197 <desc>Current property value.</desc>
15198 </param>
15199 </method>
15200
15201 <method name="setProperty">
15202 <desc>
15203 Sets the value of the network attachment property with the given name.
15204
15205 Setting the property value to @c null or an empty string is equivalent
15206 to deleting the existing value.
15207
15208 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
15209 </desc>
15210 <param name="key" type="wstring" dir="in">
15211 <desc>Name of the property to set.</desc>
15212 </param>
15213 <param name="value" type="wstring" dir="in">
15214 <desc>Property value to set.</desc>
15215 </param>
15216 </method>
15217
15218 <method name="getProperties" const="yes">
15219 <desc>
15220 Returns values for a group of properties in one call.
15221
15222 The names of the properties to get are specified using the @a names
15223 argument which is a list of comma-separated property names or
15224 an empty string if all properties are to be returned.
15225 <note>Currently the value of this argument is ignored and the method
15226 always returns all existing properties.</note>
15227
15228 The method returns two arrays, the array of property names corresponding
15229 to the @a names argument and the current values of these properties.
15230 Both arrays have the same number of elements with each element at the
15231 given index in the first array corresponds to an element at the same
15232 index in the second array.
15233 </desc>
15234 <param name="names" type="wstring" dir="in">
15235 <desc>
15236 Names of properties to get.
15237 </desc>
15238 </param>
15239 <param name="returnNames" type="wstring" safearray="yes" dir="out">
15240 <desc>Names of returned properties.</desc>
15241 </param>
15242 <param name="returnValues" type="wstring" safearray="yes" dir="return">
15243 <desc>Values of returned properties.</desc>
15244 </param>
15245 </method>
15246
15247 </interface>
15248
15249
15250 <!--
15251 // ISerialPort
15252 /////////////////////////////////////////////////////////////////////////
15253 -->
15254
15255 <enum
15256 name="PortMode"
15257 uuid="533b5fe3-0185-4197-86a7-17e37dd39d76"
15258 >
15259 <desc>
15260 The PortMode enumeration represents possible communication modes for
15261 the virtual serial port device.
15262 </desc>
15263
15264 <const name="Disconnected" value="0">
15265 <desc>Virtual device is not attached to any real host device.</desc>
15266 </const>
15267 <const name="HostPipe" value="1">
15268 <desc>Virtual device is attached to a host pipe.</desc>
15269 </const>
15270 <const name="HostDevice" value="2">
15271 <desc>Virtual device is attached to a host device.</desc>
15272 </const>
15273 <const name="RawFile" value="3">
15274 <desc>Virtual device is attached to a raw file.</desc>
15275 </const>
15276 </enum>
15277
15278 <interface
15279 name="ISerialPort" extends="$unknown"
15280 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
15281 wsmap="managed"
15282 >
15283
15284 <desc>
15285 The ISerialPort interface represents the virtual serial port device.
15286
15287 The virtual serial port device acts like an ordinary serial port
15288 inside the virtual machine. This device communicates to the real
15289 serial port hardware in one of two modes: host pipe or host device.
15290
15291 In host pipe mode, the #path attribute specifies the path to the pipe on
15292 the host computer that represents a serial port. The #server attribute
15293 determines if this pipe is created by the virtual machine process at
15294 machine startup or it must already exist before starting machine
15295 execution.
15296
15297 In host device mode, the #path attribute specifies the name of the
15298 serial port device on the host computer.
15299
15300 There is also a third communication mode: the disconnected mode. In this
15301 mode, the guest OS running inside the virtual machine will be able to
15302 detect the serial port, but all port write operations will be discarded
15303 and all port read operations will return no data.
15304
15305 <see><link to="IMachine::getSerialPort"/></see>
15306 </desc>
15307
15308 <attribute name="slot" type="unsigned long" readonly="yes">
15309 <desc>
15310 Slot number this serial port is plugged into. Corresponds to
15311 the value you pass to <link to="IMachine::getSerialPort"/>
15312 to obtain this instance.
15313 </desc>
15314 </attribute>
15315
15316 <attribute name="enabled" type="boolean">
15317 <desc>
15318 Flag whether the serial port is enabled. If disabled,
15319 the serial port will not be reported to the guest OS.
15320 </desc>
15321 </attribute>
15322
15323 <attribute name="IOBase" type="unsigned long">
15324 <desc>Base I/O address of the serial port.</desc>
15325 </attribute>
15326
15327 <attribute name="IRQ" type="unsigned long">
15328 <desc>IRQ number of the serial port.</desc>
15329 </attribute>
15330
15331 <attribute name="hostMode" type="PortMode">
15332 <desc>
15333 How is this port connected to the host.
15334 <note>
15335 Changing this attribute may fail if the conditions for
15336 <link to="#path"/> are not met.
15337 </note>
15338 </desc>
15339 </attribute>
15340
15341 <attribute name="server" type="boolean">
15342 <desc>
15343 Flag whether this serial port acts as a server (creates a new pipe on
15344 the host) or as a client (uses the existing pipe). This attribute is
15345 used only when <link to="#hostMode"/> is PortMode_HostPipe.
15346 </desc>
15347 </attribute>
15348
15349 <attribute name="path" type="wstring">
15350 <desc>
15351 Path to the serial port's pipe on the host when <link to="ISerialPort::hostMode"/> is
15352 PortMode_HostPipe, or the host serial device name when
15353 <link to="ISerialPort::hostMode"/> is PortMode_HostDevice. For both
15354 cases, setting a @c null or empty string as the attribute's value
15355 is an error. Otherwise, the value of this property is ignored.
15356 </desc>
15357 </attribute>
15358
15359 </interface>
15360
15361 <!--
15362 // IParallelPort
15363 /////////////////////////////////////////////////////////////////////////
15364 -->
15365
15366 <interface
15367 name="IParallelPort" extends="$unknown"
15368 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
15369 wsmap="managed"
15370 >
15371
15372 <desc>
15373 The IParallelPort interface represents the virtual parallel port device.
15374
15375 The virtual parallel port device acts like an ordinary parallel port
15376 inside the virtual machine. This device communicates to the real
15377 parallel port hardware using the name of the parallel device on the host
15378 computer specified in the #path attribute.
15379
15380 Each virtual parallel port device is assigned a base I/O address and an
15381 IRQ number that will be reported to the guest operating system and used
15382 to operate the given parallel port from within the virtual machine.
15383
15384 <see><link to="IMachine::getParallelPort"/></see>
15385 </desc>
15386
15387 <attribute name="slot" type="unsigned long" readonly="yes">
15388 <desc>
15389 Slot number this parallel port is plugged into. Corresponds to
15390 the value you pass to <link to="IMachine::getParallelPort"/>
15391 to obtain this instance.
15392 </desc>
15393 </attribute>
15394
15395 <attribute name="enabled" type="boolean">
15396 <desc>
15397 Flag whether the parallel port is enabled. If disabled,
15398 the parallel port will not be reported to the guest OS.
15399 </desc>
15400 </attribute>
15401
15402 <attribute name="IOBase" type="unsigned long">
15403 <desc>Base I/O address of the parallel port.</desc>
15404 </attribute>
15405
15406 <attribute name="IRQ" type="unsigned long">
15407 <desc>IRQ number of the parallel port.</desc>
15408 </attribute>
15409
15410 <attribute name="path" type="wstring">
15411 <desc>
15412 Host parallel device name. If this parallel port is enabled, setting a
15413 @c null or an empty string as this attribute's value will result in
15414 an error.
15415 </desc>
15416 </attribute>
15417
15418 </interface>
15419
15420
15421 <!--
15422 // IMachineDebugger
15423 /////////////////////////////////////////////////////////////////////////
15424 -->
15425
15426 <interface
15427 name="IMachineDebugger" extends="$unknown"
15428 uuid="a80bb82c-37c5-4155-a524-9c1d0a1689ba"
15429 wsmap="managed"
15430 >
15431 <method name="dumpGuestCore">
15432 <desc>
15433 Takes a core dump of the guest.
15434
15435 See include/VBox/dbgfcorefmt.h for details on the file format.
15436 </desc>
15437 <param name="filename" type="wstring" dir="in">
15438 <desc>
15439 The name of the output file. The file must not exist.
15440 </desc>
15441 </param>
15442 <param name="compression" type="wstring" dir="in">
15443 <desc>
15444 Reserved for future compression method indicator.
15445 </desc>
15446 </param>
15447 </method>
15448
15449 <method name="dumpHostProcessCore">
15450 <desc>
15451 Takes a core dump of the VM process on the host.
15452
15453 This feature is not implemented in the 4.0.0 release but it may show up
15454 in a dot release.
15455 </desc>
15456 <param name="filename" type="wstring" dir="in">
15457 <desc>
15458 The name of the output file. The file must not exist.
15459 </desc>
15460 </param>
15461 <param name="compression" type="wstring" dir="in">
15462 <desc>
15463 Reserved for future compression method indicator.
15464 </desc>
15465 </param>
15466 </method>
15467
15468 <method name="info">
15469 <desc>
15470 Interfaces with the info dumpers (DBGFInfo).
15471
15472 This feature is not implemented in the 4.0.0 release but it may show up
15473 in a dot release.
15474 </desc>
15475 <param name="name" type="wstring" dir="in">
15476 <desc>
15477 The name of the info item.
15478 </desc>
15479 </param>
15480 <param name="args" type="wstring" dir="in">
15481 <desc>
15482 Arguments to the info dumper.
15483 </desc>
15484 </param>
15485 <param name="info" type="wstring" dir="return">
15486 <desc>
15487 The into string.
15488 </desc>
15489 </param>
15490 </method>
15491
15492 <method name="injectNMI">
15493 <desc>
15494 Inject an NMI into a running VT-x/AMD-V VM.
15495 </desc>
15496 </method>
15497
15498 <method name="modifyLogGroups">
15499 <desc>
15500 Modifies the group settings of the debug or release logger.
15501 </desc>
15502 <param name="settings" type="wstring" dir="in">
15503 <desc>
15504 The group settings string. See iprt/log.h for details. To target the
15505 release logger, prefix the string with "release:".
15506 </desc>
15507 </param>
15508 </method>
15509
15510 <method name="modifyLogFlags">
15511 <desc>
15512 Modifies the debug or release logger flags.
15513 </desc>
15514 <param name="settings" type="wstring" dir="in">
15515 <desc>
15516 The flags settings string. See iprt/log.h for details. To target the
15517 release logger, prefix the string with "release:".
15518 </desc>
15519 </param>
15520 </method>
15521
15522 <method name="modifyLogDestinations">
15523 <desc>
15524 Modifies the debug or release logger destinations.
15525 </desc>
15526 <param name="settings" type="wstring" dir="in">
15527 <desc>
15528 The destination settings string. See iprt/log.h for details. To target the
15529 release logger, prefix the string with "release:".
15530 </desc>
15531 </param>
15532 </method>
15533
15534 <method name="readPhysicalMemory">
15535 <desc>
15536 Reads guest physical memory, no side effects (MMIO++).
15537
15538 This feature is not implemented in the 4.0.0 release but may show up
15539 in a dot release.
15540 </desc>
15541 <param name="address" type="long long" dir="in">
15542 <desc>The guest physical address.</desc>
15543 </param>
15544 <param name="size" type="unsigned long" dir="in">
15545 <desc>The number of bytes to read.</desc>
15546 </param>
15547 <param name="bytes" type="octet" safearray="yes" dir="return">
15548 <desc>The bytes read.</desc>
15549 </param>
15550 </method>
15551
15552 <method name="writePhysicalMemory">
15553 <desc>
15554 Writes guest physical memory, access handles (MMIO++) are ignored.
15555
15556 This feature is not implemented in the 4.0.0 release but may show up
15557 in a dot release.
15558 </desc>
15559 <param name="address" type="long long" dir="in">
15560 <desc>The guest physical address.</desc>
15561 </param>
15562 <param name="size" type="unsigned long" dir="in">
15563 <desc>The number of bytes to read.</desc>
15564 </param>
15565 <param name="bytes" type="octet" safearray="yes" dir="in">
15566 <desc>The bytes to write.</desc>
15567 </param>
15568 </method>
15569
15570 <method name="readVirtualMemory">
15571 <desc>
15572 Reads guest virtual memory, no side effects (MMIO++).
15573
15574 This feature is not implemented in the 4.0.0 release but may show up
15575 in a dot release.
15576 </desc>
15577 <param name="cpuId" type="unsigned long" dir="in">
15578 <desc>The identifier of the Virtual CPU.</desc>
15579 </param>
15580 <param name="address" type="long long" dir="in">
15581 <desc>The guest virtual address.</desc>
15582 </param>
15583 <param name="size" type="unsigned long" dir="in">
15584 <desc>The number of bytes to read.</desc>
15585 </param>
15586 <param name="bytes" type="octet" safearray="yes" dir="return">
15587 <desc>The bytes read.</desc>
15588 </param>
15589 </method>
15590
15591 <method name="writeVirtualMemory">
15592 <desc>
15593 Writes guest virtual memory, access handles (MMIO++) are ignored.
15594
15595 This feature is not implemented in the 4.0.0 release but may show up
15596 in a dot release.
15597 </desc>
15598 <param name="cpuId" type="unsigned long" dir="in">
15599 <desc>The identifier of the Virtual CPU.</desc>
15600 </param>
15601 <param name="address" type="long long" dir="in">
15602 <desc>The guest virtual address.</desc>
15603 </param>
15604 <param name="size" type="unsigned long" dir="in">
15605 <desc>The number of bytes to read.</desc>
15606 </param>
15607 <param name="bytes" type="octet" safearray="yes" dir="in">
15608 <desc>The bytes to write.</desc>
15609 </param>
15610 </method>
15611
15612 <method name="detectOS">
15613 <desc>
15614 Tries to (re-)detect the guest OS kernel.
15615
15616 This feature is not implemented in the 4.0.0 release but may show up
15617 in a dot release.
15618 </desc>
15619 <param name="os" type="wstring" dir="return">
15620 <desc>
15621 The detected OS kernel on success.
15622 </desc>
15623 </param>
15624 </method>
15625
15626 <method name="getRegister">
15627 <desc>
15628 Gets one register.
15629
15630 This feature is not implemented in the 4.0.0 release but may show up
15631 in a dot release.
15632 </desc>
15633 <param name="cpuId" type="unsigned long" dir="in">
15634 <desc>The identifier of the Virtual CPU.</desc>
15635 </param>
15636 <param name="name" type="wstring" dir="in">
15637 <desc>The register name, case is ignored.</desc>
15638 </param>
15639 <param name="value" type="wstring" dir="return">
15640 <desc>
15641 The register value. This is usually a hex value (always 0x prefixed)
15642 but other format may be used for floating point registers (TBD).
15643 </desc>
15644 </param>
15645 </method>
15646
15647 <method name="getRegisters">
15648 <desc>
15649 Gets all the registers for the given CPU.
15650
15651 This feature is not implemented in the 4.0.0 release but may show up
15652 in a dot release.
15653 </desc>
15654 <param name="cpuId" type="unsigned long" dir="in">
15655 <desc>The identifier of the Virtual CPU.</desc>
15656 </param>
15657 <param name="names" type="wstring" dir="out" safearray="yes">
15658 <desc>Array containing the lowercase register names.</desc>
15659 </param>
15660 <param name="values" type="wstring" dir="out" safearray="yes">
15661 <desc>
15662 Array paralell to the names holding the register values as if the
15663 register was returned by <link to="IMachineDebugger::getRegister"/>.
15664 </desc>
15665 </param>
15666 </method>
15667
15668 <method name="setRegister">
15669 <desc>
15670 Gets one register.
15671
15672 This feature is not implemented in the 4.0.0 release but may show up
15673 in a dot release.
15674 </desc>
15675 <param name="cpuId" type="unsigned long" dir="in">
15676 <desc>The identifier of the Virtual CPU.</desc>
15677 </param>
15678 <param name="name" type="wstring" dir="in">
15679 <desc>The register name, case is ignored.</desc>
15680 </param>
15681 <param name="value" type="wstring" dir="in">
15682 <desc>
15683 The new register value. Hexadecimal, decimal and octal formattings
15684 are supported in addition to any special formattings returned by
15685 the getters.
15686 </desc>
15687 </param>
15688 </method>
15689
15690 <method name="setRegisters">
15691 <desc>
15692 Sets zero or more registers atomically.
15693
15694 This feature is not implemented in the 4.0.0 release but may show up
15695 in a dot release.
15696 </desc>
15697 <param name="cpuId" type="unsigned long" dir="in">
15698 <desc>The identifier of the Virtual CPU.</desc>
15699 </param>
15700 <param name="names" type="wstring" dir="in" safearray="yes">
15701 <desc>Array containing the register names, case ignored.</desc>
15702 </param>
15703 <param name="values" type="wstring" dir="in" safearray="yes">
15704 <desc>
15705 Array paralell to the names holding the register values. See
15706 <link to="IMachineDebugger::setRegister"/> for formatting
15707 guidelines.
15708 </desc>
15709 </param>
15710 </method>
15711
15712 <method name="dumpGuestStack">
15713 <desc>
15714 Produce a simple stack dump using the current guest state.
15715
15716 This feature is not implemented in the 4.0.0 release but may show up
15717 in a dot release.
15718 </desc>
15719 <param name="cpuId" type="unsigned long" dir="in">
15720 <desc>The identifier of the Virtual CPU.</desc>
15721 </param>
15722 <param name="stack" type="wstring" dir="return">
15723 <desc>String containing the formatted stack dump.</desc>
15724 </param>
15725 </method>
15726
15727 <method name="resetStats">
15728 <desc>
15729 Reset VM statistics.
15730 </desc>
15731 <param name="pattern" type="wstring" dir="in">
15732 <desc>The selection pattern. A bit similar to filename globbing.</desc>
15733 </param>
15734 </method>
15735
15736 <method name="dumpStats">
15737 <desc>
15738 Dumps VM statistics.
15739 </desc>
15740 <param name="pattern" type="wstring" dir="in">
15741 <desc>The selection pattern. A bit similar to filename globbing.</desc>
15742 </param>
15743 </method>
15744
15745 <method name="getStats">
15746 <desc>
15747 Get the VM statistics in a XMLish format.
15748 </desc>
15749 <param name="pattern" type="wstring" dir="in">
15750 <desc>The selection pattern. A bit similar to filename globbing.</desc>
15751 </param>
15752 <param name="withDescriptions" type="boolean" dir="in">
15753 <desc>Whether to include the descriptions.</desc>
15754 </param>
15755 <param name="stats" type="wstring" dir="return">
15756 <desc>The XML document containing the statistics.</desc>
15757 </param>
15758 </method>
15759
15760 <attribute name="singleStep" type="boolean">
15761 <desc>Switch for enabling single-stepping.</desc>
15762 </attribute>
15763
15764 <attribute name="recompileUser" type="boolean">
15765 <desc>Switch for forcing code recompilation for user mode code.</desc>
15766 </attribute>
15767
15768 <attribute name="recompileSupervisor" type="boolean">
15769 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
15770 </attribute>
15771
15772 <attribute name="PATMEnabled" type="boolean">
15773 <desc>Switch for enabling and disabling the PATM component.</desc>
15774 </attribute>
15775
15776 <attribute name="CSAMEnabled" type="boolean">
15777 <desc>Switch for enabling and disabling the CSAM component.</desc>
15778 </attribute>
15779
15780 <attribute name="logEnabled" type="boolean">
15781 <desc>Switch for enabling and disabling the debug logger.</desc>
15782 </attribute>
15783
15784 <attribute name="logDbgFlags" type="wstring" readonly="yes">
15785 <desc>The debug logger flags.</desc>
15786 </attribute>
15787
15788 <attribute name="logDbgGroups" type="wstring" readonly="yes">
15789 <desc>The debug logger's group settings.</desc>
15790 </attribute>
15791
15792 <attribute name="logDbgDestinations" type="wstring" readonly="yes">
15793 <desc>The debug logger's destination settings.</desc>
15794 </attribute>
15795
15796 <attribute name="logRelFlags" type="wstring" readonly="yes">
15797 <desc>The release logger flags.</desc>
15798 </attribute>
15799
15800 <attribute name="logRelGroups" type="wstring" readonly="yes">
15801 <desc>The release logger's group settings.</desc>
15802 </attribute>
15803
15804 <attribute name="logRelDestinations" type="wstring" readonly="yes">
15805 <desc>The relase logger's destination settings.</desc>
15806 </attribute>
15807
15808 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
15809 <desc>
15810 Flag indicating whether the VM is currently making use of CPU hardware
15811 virtualization extensions.
15812 </desc>
15813 </attribute>
15814
15815 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
15816 <desc>
15817 Flag indicating whether the VM is currently making use of the nested paging
15818 CPU hardware virtualization extension.
15819 </desc>
15820 </attribute>
15821
15822 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
15823 <desc>
15824 Flag indicating whether the VM is currently making use of the VPID
15825 VT-x extension.
15826 </desc>
15827 </attribute>
15828
15829 <attribute name="OSName" type="wstring" readonly="yes">
15830 <desc>
15831 Query the guest OS kernel name as detected by the DBGF.
15832
15833 This feature is not implemented in the 4.0.0 release but may show up
15834 in a dot release.
15835 </desc>
15836 </attribute>
15837
15838 <attribute name="OSVersion" type="wstring" readonly="yes">
15839 <desc>
15840 Query the guest OS kernel version string as detected by the DBGF.
15841
15842 This feature is not implemented in the 4.0.0 release but may show up
15843 in a dot release.
15844 </desc>
15845 </attribute>
15846
15847 <attribute name="PAEEnabled" type="boolean" readonly="yes">
15848 <desc>
15849 Flag indicating whether the VM is currently making use of the Physical
15850 Address Extension CPU feature.
15851 </desc>
15852 </attribute>
15853
15854 <attribute name="virtualTimeRate" type="unsigned long">
15855 <desc>
15856 The rate at which the virtual time runs expressed as a percentage.
15857 The accepted range is 2% to 20000%.
15858 </desc>
15859 </attribute>
15860
15861 <attribute name="VM" type="long long" readonly="yes" wsmap="suppress">
15862 <desc>
15863 Gets the user-mode VM handle, with a reference. Must be passed to
15864 VMR3ReleaseUVM when done. This is only for internal use while we carve
15865 the details of this interface.
15866 </desc>
15867 </attribute>
15868
15869 </interface>
15870
15871 <!--
15872 // IUSBController
15873 /////////////////////////////////////////////////////////////////////////
15874 -->
15875
15876 <interface
15877 name="IUSBController" extends="$unknown"
15878 uuid="01e6f13a-0580-452f-a40f-74e32a5e4921"
15879 wsmap="managed"
15880 >
15881 <attribute name="enabled" type="boolean">
15882 <desc>
15883 Flag whether the USB controller is present in the
15884 guest system. If disabled, the virtual guest hardware will
15885 not contain any USB controller. Can only be changed when
15886 the VM is powered off.
15887 </desc>
15888 </attribute>
15889
15890 <attribute name="enabledEHCI" type="boolean">
15891 <desc>
15892 Flag whether the USB EHCI controller is present in the
15893 guest system. If disabled, the virtual guest hardware will
15894 not contain a USB EHCI controller. Can only be changed when
15895 the VM is powered off.
15896 </desc>
15897 </attribute>
15898
15899 <attribute name="proxyAvailable" type="boolean" readonly="yes">
15900 <desc>
15901 Flag whether there is an USB proxy available.
15902 </desc>
15903 </attribute>
15904
15905 <attribute name="USBStandard" type="unsigned short" readonly="yes">
15906 <desc>
15907 USB standard version which the controller implements.
15908 This is a BCD which means that the major version is in the
15909 high byte and minor version is in the low byte.
15910 </desc>
15911 </attribute>
15912
15913 <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
15914 <desc>
15915 List of USB device filters associated with the machine.
15916
15917 If the machine is currently running, these filters are activated
15918 every time a new (supported) USB device is attached to the host
15919 computer that was not ignored by global filters
15920 (<link to="IHost::USBDeviceFilters"/>).
15921
15922 These filters are also activated when the machine is powered up.
15923 They are run against a list of all currently available USB
15924 devices (in states
15925 <link to="USBDeviceState_Available"/>,
15926 <link to="USBDeviceState_Busy"/>,
15927 <link to="USBDeviceState_Held"/>) that were not previously
15928 ignored by global filters.
15929
15930 If at least one filter matches the USB device in question, this
15931 device is automatically captured (attached to) the virtual USB
15932 controller of this machine.
15933
15934 <see><link to="IUSBDeviceFilter"/>, <link to="IUSBController"/></see>
15935 </desc>
15936 </attribute>
15937
15938 <method name="createDeviceFilter">
15939 <desc>
15940 Creates a new USB device filter. All attributes except
15941 the filter name are set to empty (any match),
15942 <i>active</i> is @c false (the filter is not active).
15943
15944 The created filter can then be added to the list of filters using
15945 <link to="#insertDeviceFilter"/>.
15946
15947 <result name="VBOX_E_INVALID_VM_STATE">
15948 The virtual machine is not mutable.
15949 </result>
15950
15951 <see><link to="#deviceFilters"/></see>
15952 </desc>
15953 <param name="name" type="wstring" dir="in">
15954 <desc>
15955 Filter name. See <link to="IUSBDeviceFilter::name"/>
15956 for more info.
15957 </desc>
15958 </param>
15959 <param name="filter" type="IUSBDeviceFilter" dir="return">
15960 <desc>Created filter object.</desc>
15961 </param>
15962 </method>
15963
15964 <method name="insertDeviceFilter">
15965 <desc>
15966 Inserts the given USB device to the specified position
15967 in the list of filters.
15968
15969 Positions are numbered starting from <tt>0</tt>. If the specified
15970 position is equal to or greater than the number of elements in
15971 the list, the filter is added to the end of the collection.
15972
15973 <note>
15974 Duplicates are not allowed, so an attempt to insert a
15975 filter that is already in the collection, will return an
15976 error.
15977 </note>
15978
15979 <result name="VBOX_E_INVALID_VM_STATE">
15980 Virtual machine is not mutable.
15981 </result>
15982 <result name="E_INVALIDARG">
15983 USB device filter not created within this VirtualBox instance.
15984 </result>
15985 <result name="VBOX_E_INVALID_OBJECT_STATE">
15986 USB device filter already in list.
15987 </result>
15988
15989 <see><link to="#deviceFilters"/></see>
15990 </desc>
15991 <param name="position" type="unsigned long" dir="in">
15992 <desc>Position to insert the filter to.</desc>
15993 </param>
15994 <param name="filter" type="IUSBDeviceFilter" dir="in">
15995 <desc>USB device filter to insert.</desc>
15996 </param>
15997 </method>
15998
15999 <method name="removeDeviceFilter">
16000 <desc>
16001 Removes a USB device filter from the specified position in the
16002 list of filters.
16003
16004 Positions are numbered starting from <tt>0</tt>. Specifying a
16005 position equal to or greater than the number of elements in
16006 the list will produce an error.
16007
16008 <see><link to="#deviceFilters"/></see>
16009
16010 <result name="VBOX_E_INVALID_VM_STATE">
16011 Virtual machine is not mutable.
16012 </result>
16013 <result name="E_INVALIDARG">
16014 USB device filter list empty or invalid @a position.
16015 </result>
16016
16017 </desc>
16018 <param name="position" type="unsigned long" dir="in">
16019 <desc>Position to remove the filter from.</desc>
16020 </param>
16021 <param name="filter" type="IUSBDeviceFilter" dir="return">
16022 <desc>Removed USB device filter.</desc>
16023 </param>
16024 </method>
16025
16026 </interface>
16027
16028
16029 <!--
16030 // IUSBDevice
16031 /////////////////////////////////////////////////////////////////////////
16032 -->
16033
16034 <interface
16035 name="IUSBDevice" extends="$unknown"
16036 uuid="f8967b0b-4483-400f-92b5-8b675d98a85b"
16037 wsmap="managed"
16038 >
16039 <desc>
16040 The IUSBDevice interface represents a virtual USB device attached to the
16041 virtual machine.
16042
16043 A collection of objects implementing this interface is stored in the
16044 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
16045 attached to a running virtual machine's USB controller.
16046 </desc>
16047
16048 <attribute name="id" type="uuid" mod="string" readonly="yes">
16049 <desc>
16050 Unique USB device ID. This ID is built from #vendorId,
16051 #productId, #revision and #serialNumber.
16052 </desc>
16053 </attribute>
16054
16055 <attribute name="vendorId" type="unsigned short" readonly="yes">
16056 <desc>Vendor ID.</desc>
16057 </attribute>
16058
16059 <attribute name="productId" type="unsigned short" readonly="yes">
16060 <desc>Product ID.</desc>
16061 </attribute>
16062
16063 <attribute name="revision" type="unsigned short" readonly="yes">
16064 <desc>
16065 Product revision number. This is a packed BCD represented as
16066 unsigned short. The high byte is the integer part and the low
16067 byte is the decimal.
16068 </desc>
16069 </attribute>
16070
16071 <attribute name="manufacturer" type="wstring" readonly="yes">
16072 <desc>Manufacturer string.</desc>
16073 </attribute>
16074
16075 <attribute name="product" type="wstring" readonly="yes">
16076 <desc>Product string.</desc>
16077 </attribute>
16078
16079 <attribute name="serialNumber" type="wstring" readonly="yes">
16080 <desc>Serial number string.</desc>
16081 </attribute>
16082
16083 <attribute name="address" type="wstring" readonly="yes">
16084 <desc>Host specific address of the device.</desc>
16085 </attribute>
16086
16087 <attribute name="port" type="unsigned short" readonly="yes">
16088 <desc>
16089 Host USB port number the device is physically
16090 connected to.
16091 </desc>
16092 </attribute>
16093
16094 <attribute name="version" type="unsigned short" readonly="yes">
16095 <desc>
16096 The major USB version of the device - 1 or 2.
16097 </desc>
16098 </attribute>
16099
16100 <attribute name="portVersion" type="unsigned short" readonly="yes">
16101 <desc>
16102 The major USB version of the host USB port the device is
16103 physically connected to - 1 or 2. For devices not connected to
16104 anything this will have the same value as the version attribute.
16105 </desc>
16106 </attribute>
16107
16108 <attribute name="remote" type="boolean" readonly="yes">
16109 <desc>
16110 Whether the device is physically connected to a remote VRDE
16111 client or to a local host machine.
16112 </desc>
16113 </attribute>
16114
16115 </interface>
16116
16117
16118 <!--
16119 // IUSBDeviceFilter
16120 /////////////////////////////////////////////////////////////////////////
16121 -->
16122
16123 <interface
16124 name="IUSBDeviceFilter" extends="$unknown"
16125 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
16126 wsmap="managed"
16127 >
16128 <desc>
16129 The IUSBDeviceFilter interface represents an USB device filter used
16130 to perform actions on a group of USB devices.
16131
16132 This type of filters is used by running virtual machines to
16133 automatically capture selected USB devices once they are physically
16134 attached to the host computer.
16135
16136 A USB device is matched to the given device filter if and only if all
16137 attributes of the device match the corresponding attributes of the
16138 filter (that is, attributes are joined together using the logical AND
16139 operation). On the other hand, all together, filters in the list of
16140 filters carry the semantics of the logical OR operation. So if it is
16141 desirable to create a match like "this vendor id OR this product id",
16142 one needs to create two filters and specify "any match" (see below)
16143 for unused attributes.
16144
16145 All filter attributes used for matching are strings. Each string
16146 is an expression representing a set of values of the corresponding
16147 device attribute, that will match the given filter. Currently, the
16148 following filtering expressions are supported:
16149
16150 <ul>
16151 <li><i>Interval filters</i>. Used to specify valid intervals for
16152 integer device attributes (Vendor ID, Product ID and Revision).
16153 The format of the string is:
16154
16155 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
16156
16157 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
16158 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
16159 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
16160 is omitted before a dash (<tt>-</tt>), the minimum possible integer
16161 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
16162 possible integer is assumed.
16163 </li>
16164 <li><i>Boolean filters</i>. Used to specify acceptable values for
16165 boolean device attributes. The format of the string is:
16166
16167 <tt>true|false|yes|no|0|1</tt>
16168
16169 </li>
16170 <li><i>Exact match</i>. Used to specify a single value for the given
16171 device attribute. Any string that doesn't start with <tt>int:</tt>
16172 represents the exact match. String device attributes are compared to
16173 this string including case of symbols. Integer attributes are first
16174 converted to a string (see individual filter attributes) and then
16175 compared ignoring case.
16176
16177 </li>
16178 <li><i>Any match</i>. Any value of the corresponding device attribute
16179 will match the given filter. An empty or @c null string is
16180 used to construct this type of filtering expressions.
16181
16182 </li>
16183 </ul>
16184
16185 <note>
16186 On the Windows host platform, interval filters are not currently
16187 available. Also all string filter attributes
16188 (<link to="#manufacturer"/>, <link to="#product"/>,
16189 <link to="#serialNumber"/>) are ignored, so they behave as
16190 <i>any match</i> no matter what string expression is specified.
16191 </note>
16192
16193 <see><link to="IUSBController::deviceFilters"/>,
16194 <link to="IHostUSBDeviceFilter"/></see>
16195 </desc>
16196
16197 <attribute name="name" type="wstring">
16198 <desc>
16199 Visible name for this filter.
16200 This name is used to visually distinguish one filter from another,
16201 so it can neither be @c null nor an empty string.
16202 </desc>
16203 </attribute>
16204
16205 <attribute name="active" type="boolean">
16206 <desc>Whether this filter active or has been temporarily disabled.</desc>
16207 </attribute>
16208
16209 <attribute name="vendorId" type="wstring">
16210 <desc>
16211 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
16212 The string representation for the <i>exact matching</i>
16213 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
16214 (including leading zeroes).
16215 </desc>
16216 </attribute>
16217
16218 <attribute name="productId" type="wstring">
16219 <desc>
16220 <link to="IUSBDevice::productId">Product ID</link> filter.
16221 The string representation for the <i>exact matching</i>
16222 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
16223 (including leading zeroes).
16224 </desc>
16225 </attribute>
16226
16227 <attribute name="revision" type="wstring">
16228 <desc>
16229 <link to="IUSBDevice::productId">Product revision number</link>
16230 filter. The string representation for the <i>exact matching</i>
16231 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
16232 of the integer part of the revision, and <tt>F</tt> is the
16233 decimal digit of its fractional part (including leading and
16234 trailing zeros).
16235 Note that for interval filters, it's best to use the hexadecimal
16236 form, because the revision is stored as a 16 bit packed BCD value;
16237 so the expression <tt>int:0x0100-0x0199</tt> will match any
16238 revision from <tt>1.0</tt> to <tt>1.99</tt>.
16239 </desc>
16240 </attribute>
16241
16242 <attribute name="manufacturer" type="wstring">
16243 <desc>
16244 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
16245 </desc>
16246 </attribute>
16247
16248 <attribute name="product" type="wstring">
16249 <desc>
16250 <link to="IUSBDevice::product">Product</link> filter.
16251 </desc>
16252 </attribute>
16253
16254 <attribute name="serialNumber" type="wstring">
16255 <desc>
16256 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
16257 </desc>
16258 </attribute>
16259
16260 <attribute name="port" type="wstring">
16261 <desc>
16262 <link to="IUSBDevice::port">Host USB port</link> filter.
16263 </desc>
16264 </attribute>
16265
16266 <attribute name="remote" type="wstring">
16267 <desc>
16268 <link to="IUSBDevice::remote">Remote state</link> filter.
16269 <note>
16270 This filter makes sense only for machine USB filters,
16271 i.e. it is ignored by IHostUSBDeviceFilter objects.
16272 </note>
16273 </desc>
16274 </attribute>
16275
16276 <attribute name="maskedInterfaces" type="unsigned long">
16277 <desc>
16278 This is an advanced option for hiding one or more USB interfaces
16279 from the guest. The value is a bit mask where the bits that are set
16280 means the corresponding USB interface should be hidden, masked off
16281 if you like.
16282 This feature only works on Linux hosts.
16283 </desc>
16284 </attribute>
16285
16286 </interface>
16287
16288
16289 <!--
16290 // IHostUSBDevice
16291 /////////////////////////////////////////////////////////////////////////
16292 -->
16293
16294 <enum
16295 name="USBDeviceState"
16296 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
16297 >
16298 <desc>
16299 USB device state. This enumeration represents all possible states
16300 of the USB device physically attached to the host computer regarding
16301 its state on the host computer and availability to guest computers
16302 (all currently running virtual machines).
16303
16304 Once a supported USB device is attached to the host, global USB
16305 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
16306 either ignore the device, or put it to USBDeviceState_Held state, or do
16307 nothing. Unless the device is ignored by global filters, filters of all
16308 currently running guests (<link to="IUSBController::deviceFilters"/>) are
16309 activated that can put it to USBDeviceState_Captured state.
16310
16311 If the device was ignored by global filters, or didn't match
16312 any filters at all (including guest ones), it is handled by the host
16313 in a normal way. In this case, the device state is determined by
16314 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
16315 or USBDeviceState_Available, depending on the current device usage.
16316
16317 Besides auto-capturing based on filters, the device can be manually
16318 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
16319 state is USBDeviceState_Busy, USBDeviceState_Available or
16320 USBDeviceState_Held.
16321
16322 <note>
16323 Due to differences in USB stack implementations in Linux and Win32,
16324 states USBDeviceState_Busy and USBDeviceState_Unavailable are applicable
16325 only to the Linux version of the product. This also means that (<link
16326 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
16327 device state is USBDeviceState_Held.
16328 </note>
16329
16330 <see><link to="IHostUSBDevice"/>, <link to="IHostUSBDeviceFilter"/></see>
16331 </desc>
16332
16333 <const name="NotSupported" value="0">
16334 <desc>
16335 Not supported by the VirtualBox server, not available to guests.
16336 </desc>
16337 </const>
16338 <const name="Unavailable" value="1">
16339 <desc>
16340 Being used by the host computer exclusively,
16341 not available to guests.
16342 </desc>
16343 </const>
16344 <const name="Busy" value="2">
16345 <desc>
16346 Being used by the host computer, potentially available to guests.
16347 </desc>
16348 </const>
16349 <const name="Available" value="3">
16350 <desc>
16351 Not used by the host computer, available to guests (the host computer
16352 can also start using the device at any time).
16353 </desc>
16354 </const>
16355 <const name="Held" value="4">
16356 <desc>
16357 Held by the VirtualBox server (ignored by the host computer),
16358 available to guests.
16359 </desc>
16360 </const>
16361 <const name="Captured" value="5">
16362 <desc>
16363 Captured by one of the guest computers, not available
16364 to anybody else.
16365 </desc>
16366 </const>
16367 </enum>
16368
16369 <interface
16370 name="IHostUSBDevice" extends="IUSBDevice"
16371 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
16372 wsmap="managed"
16373 >
16374 <desc>
16375 The IHostUSBDevice interface represents a physical USB device attached
16376 to the host computer.
16377
16378 Besides properties inherited from IUSBDevice, this interface adds the
16379 <link to="#state"/> property that holds the current state of the USB
16380 device.
16381
16382 <see><link to="IHost::USBDevices"/>,
16383 <link to="IHost::USBDeviceFilters"/></see>
16384 </desc>
16385
16386 <attribute name="state" type="USBDeviceState" readonly="yes">
16387 <desc>
16388 Current state of the device.
16389 </desc>
16390 </attribute>
16391
16392 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
16393
16394 </interface>
16395
16396
16397 <!--
16398 // IHostUSBDeviceFilter
16399 /////////////////////////////////////////////////////////////////////////
16400 -->
16401
16402 <enum
16403 name="USBDeviceFilterAction"
16404 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
16405 >
16406 <desc>
16407 Actions for host USB device filters.
16408 <see><link to="IHostUSBDeviceFilter"/>, <link to="USBDeviceState"/></see>
16409 </desc>
16410
16411 <const name="Null" value="0">
16412 <desc>Null value (never used by the API).</desc>
16413 </const>
16414 <const name="Ignore" value="1">
16415 <desc>Ignore the matched USB device.</desc>
16416 </const>
16417 <const name="Hold" value="2">
16418 <desc>Hold the matched USB device.</desc>
16419 </const>
16420 </enum>
16421
16422 <interface
16423 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
16424 uuid="4cc70246-d74a-400f-8222-3900489c0374"
16425 wsmap="managed"
16426 >
16427 <desc>
16428 The IHostUSBDeviceFilter interface represents a global filter for a
16429 physical USB device used by the host computer. Used indirectly in
16430 <link to="IHost::USBDeviceFilters"/>.
16431
16432 Using filters of this type, the host computer determines the initial
16433 state of the USB device after it is physically attached to the
16434 host's USB controller.
16435
16436 <note>
16437 The <link to="IUSBDeviceFilter::remote"/> attribute is ignored by this type of
16438 filters, because it makes sense only for
16439 <link to="IUSBController::deviceFilters">machine USB filters</link>.
16440 </note>
16441
16442 <see><link to="IHost::USBDeviceFilters"/></see>
16443 </desc>
16444
16445 <attribute name="action" type="USBDeviceFilterAction">
16446 <desc>
16447 Action performed by the host when an attached USB device
16448 matches this filter.
16449 </desc>
16450 </attribute>
16451
16452 </interface>
16453
16454 <!--
16455 // IAudioAdapter
16456 /////////////////////////////////////////////////////////////////////////
16457 -->
16458
16459 <enum
16460 name="AudioDriverType"
16461 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
16462 >
16463 <desc>
16464 Host audio driver type.
16465 </desc>
16466
16467 <const name="Null" value="0">
16468 <desc>Null value, also means "dummy audio driver".</desc>
16469 </const>
16470 <const name="WinMM" value="1">
16471 <desc>Windows multimedia (Windows hosts only).</desc>
16472 </const>
16473 <const name="OSS" value="2">
16474 <desc>Open Sound System (Linux hosts only).</desc>
16475 </const>
16476 <const name="ALSA" value="3">
16477 <desc>Advanced Linux Sound Architecture (Linux hosts only).</desc>
16478 </const>
16479 <const name="DirectSound" value="4">
16480 <desc>DirectSound (Windows hosts only).</desc>
16481 </const>
16482 <const name="CoreAudio" value="5">
16483 <desc>CoreAudio (Mac hosts only).</desc>
16484 </const>
16485 <const name="MMPM" value="6">
16486 <desc>Reserved for historical reasons.</desc>
16487 </const>
16488 <const name="Pulse" value="7">
16489 <desc>PulseAudio (Linux hosts only).</desc>
16490 </const>
16491 <const name="SolAudio" value="8">
16492 <desc>Solaris audio (Solaris hosts only).</desc>
16493 </const>
16494 </enum>
16495
16496 <enum
16497 name="AudioControllerType"
16498 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
16499 >
16500 <desc>
16501 Virtual audio controller type.
16502 </desc>
16503
16504 <const name="AC97" value="0"/>
16505 <const name="SB16" value="1"/>
16506 <const name="HDA" value="2"/>
16507 </enum>
16508
16509 <interface
16510 name="IAudioAdapter" extends="$unknown"
16511 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
16512 wsmap="managed"
16513 >
16514 <desc>
16515 The IAudioAdapter interface represents the virtual audio adapter of
16516 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
16517 </desc>
16518 <attribute name="enabled" type="boolean">
16519 <desc>
16520 Flag whether the audio adapter is present in the
16521 guest system. If disabled, the virtual guest hardware will
16522 not contain any audio adapter. Can only be changed when
16523 the VM is not running.
16524 </desc>
16525 </attribute>
16526 <attribute name="audioController" type="AudioControllerType">
16527 <desc>
16528 The audio hardware we emulate.
16529 </desc>
16530 </attribute>
16531 <attribute name="audioDriver" type="AudioDriverType">
16532 <desc>
16533 Audio driver the adapter is connected to. This setting
16534 can only be changed when the VM is not running.
16535 </desc>
16536 </attribute>
16537 </interface>
16538
16539 <enum
16540 name="AuthType"
16541 uuid="7eef6ef6-98c2-4dc2-ab35-10d2b292028d"
16542 >
16543 <desc>
16544 VirtualBox authentication type.
16545 </desc>
16546
16547 <const name="Null" value="0">
16548 <desc>Null value, also means "no authentication".</desc>
16549 </const>
16550 <const name="External" value="1"/>
16551 <const name="Guest" value="2"/>
16552 </enum>
16553
16554 <!--
16555 // IVRDEServer
16556 /////////////////////////////////////////////////////////////////////////
16557 -->
16558
16559 <interface
16560 name="IVRDEServer" extends="$unknown"
16561 uuid="d38de40a-c2c1-4e95-b5a4-167b05f5694c"
16562 wsmap="managed"
16563 >
16564 <attribute name="enabled" type="boolean">
16565 <desc>VRDE server status.</desc>
16566 </attribute>
16567
16568 <attribute name="authType" type="AuthType">
16569 <desc>VRDE authentication method.</desc>
16570 </attribute>
16571
16572 <attribute name="authTimeout" type="unsigned long">
16573 <desc>Timeout for guest authentication. Milliseconds.</desc>
16574 </attribute>
16575
16576 <attribute name="allowMultiConnection" type="boolean">
16577 <desc>
16578 Flag whether multiple simultaneous connections to the VM are permitted.
16579 Note that this will be replaced by a more powerful mechanism in the future.
16580 </desc>
16581 </attribute>
16582
16583 <attribute name="reuseSingleConnection" type="boolean">
16584 <desc>
16585 Flag whether the existing connection must be dropped and a new connection
16586 must be established by the VRDE server, when a new client connects in single
16587 connection mode.
16588 </desc>
16589 </attribute>
16590
16591 <attribute name="VRDEExtPack" type="wstring">
16592 <desc>
16593 The name of Extension Pack providing VRDE for this VM. Overrides
16594 <link to="ISystemProperties::defaultVRDEExtPack"/>.
16595 </desc>
16596 </attribute>
16597
16598 <attribute name="authLibrary" type="wstring">
16599 <desc>
16600 Library used for authentication of RDP clients by this VM. Overrides
16601 <link to="ISystemProperties::VRDEAuthLibrary"/>.
16602 </desc>
16603 </attribute>
16604
16605 <attribute name="VRDEProperties" type="wstring" readonly="yes" safearray="yes">
16606 <desc>
16607 Array of names of properties, which are supported by this VRDE server.
16608 </desc>
16609 </attribute>
16610
16611 <method name="setVRDEProperty">
16612 <desc>
16613 Sets a VRDE specific property string.
16614
16615 If you pass @c null or empty string as a key @a value, the given @a key
16616 will be deleted.
16617
16618 </desc>
16619 <param name="key" type="wstring" dir="in">
16620 <desc>Name of the key to set.</desc>
16621 </param>
16622 <param name="value" type="wstring" dir="in">
16623 <desc>Value to assign to the key.</desc>
16624 </param>
16625 </method>
16626
16627 <method name="getVRDEProperty" const="yes">
16628 <desc>
16629 Returns a VRDE specific property string.
16630
16631 If the requested data @a key does not exist, this function will
16632 succeed and return an empty string in the @a value argument.
16633
16634 </desc>
16635 <param name="key" type="wstring" dir="in">
16636 <desc>Name of the key to get.</desc>
16637 </param>
16638 <param name="value" type="wstring" dir="return">
16639 <desc>Value of the requested key.</desc>
16640 </param>
16641 </method>
16642
16643 </interface>
16644
16645
16646 <!--
16647 // ISharedFolder
16648 /////////////////////////////////////////////////////////////////////////
16649 -->
16650
16651 <interface
16652 name="ISharedFolder" extends="$unknown"
16653 uuid="8388da11-b559-4574-a5b7-2bd7acd5cef8"
16654 wsmap="struct"
16655 >
16656 <desc>
16657 The ISharedFolder interface represents a folder in the host computer's
16658 file system accessible from the guest OS running inside a virtual
16659 machine using an associated logical name.
16660
16661 There are three types of shared folders:
16662 <ul>
16663 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
16664 folders available to all virtual machines.</li>
16665 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
16666 VM-specific shared folders available to the given virtual machine at
16667 startup.</li>
16668 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
16669 VM-specific shared folders created in the session context (for
16670 example, when the virtual machine is running) and automatically
16671 discarded when the session is closed (the VM is powered off).</li>
16672 </ul>
16673
16674 Logical names of shared folders must be unique within the given scope
16675 (global, permanent or transient). However, they do not need to be unique
16676 across scopes. In this case, the definition of the shared folder in a
16677 more specific scope takes precedence over definitions in all other
16678 scopes. The order of precedence is (more specific to more general):
16679 <ol>
16680 <li>Transient definitions</li>
16681 <li>Permanent definitions</li>
16682 <li>Global definitions</li>
16683 </ol>
16684
16685 For example, if MyMachine has a shared folder named
16686 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
16687 transient shared folder named <tt>C_DRIVE</tt> (that points
16688 to <tt>C:\\\\WINDOWS</tt>) will change the definition
16689 of <tt>C_DRIVE</tt> in the guest OS so
16690 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
16691 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
16692 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
16693 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
16694 to <tt>C:\\</tt> if it still exists.
16695
16696 Note that permanent and transient shared folders of different machines
16697 are in different name spaces, so they don't overlap and don't need to
16698 have unique logical names.
16699
16700 <note>
16701 Global shared folders are not implemented in the current version of the
16702 product.
16703 </note>
16704 </desc>
16705
16706 <attribute name="name" type="wstring" readonly="yes">
16707 <desc>Logical name of the shared folder.</desc>
16708 </attribute>
16709
16710 <attribute name="hostPath" type="wstring" readonly="yes">
16711 <desc>Full path to the shared folder in the host file system.</desc>
16712 </attribute>
16713
16714 <attribute name="accessible" type="boolean" readonly="yes">
16715 <desc>
16716 Whether the folder defined by the host path is currently
16717 accessible or not.
16718 For example, the folder can be inaccessible if it is placed
16719 on the network share that is not available by the time
16720 this property is read.
16721 </desc>
16722 </attribute>
16723
16724 <attribute name="writable" type="boolean" readonly="yes">
16725 <desc>
16726 Whether the folder defined by the host path is writable or
16727 not.
16728 </desc>
16729 </attribute>
16730
16731 <attribute name="autoMount" type="boolean" readonly="yes">
16732 <desc>
16733 Whether the folder gets automatically mounted by the guest or not.
16734 </desc>
16735 </attribute>
16736
16737 <attribute name="lastAccessError" type="wstring" readonly="yes">
16738 <desc>
16739 Text message that represents the result of the last accessibility
16740 check.
16741
16742 Accessibility checks are performed each time the <link to="#accessible"/>
16743 attribute is read. An empty string is returned if the last
16744 accessibility check was successful. A non-empty string indicates a
16745 failure and should normally describe a reason of the failure (for
16746 example, a file read error).
16747 </desc>
16748 </attribute>
16749
16750 </interface>
16751
16752 <!--
16753 // ISession
16754 /////////////////////////////////////////////////////////////////////////
16755 -->
16756
16757 <interface
16758 name="IInternalSessionControl" extends="$unknown"
16759 uuid="3e83963a-1c3b-400d-8c5f-f2d077b0a597"
16760 internal="yes"
16761 wsmap="suppress"
16762 >
16763 <method name="getPID">
16764 <desc>PID of the process that has created this Session object.
16765 </desc>
16766 <param name="pid" type="unsigned long" dir="return"/>
16767 </method>
16768
16769 <method name="getRemoteConsole">
16770 <desc>
16771 Returns the console object suitable for remote control.
16772
16773 <result name="VBOX_E_INVALID_VM_STATE">
16774 Session state prevents operation.
16775 </result>
16776 <result name="VBOX_E_INVALID_OBJECT_STATE">
16777 Session type prevents operation.
16778 </result>
16779
16780 </desc>
16781 <param name="console" type="IConsole" dir="return"/>
16782 </method>
16783
16784 <method name="assignMachine">
16785 <desc>
16786 Assigns the machine object associated with this direct-type
16787 session or informs the session that it will be a remote one
16788 (if @a machine == @c null).
16789
16790 <result name="VBOX_E_INVALID_VM_STATE">
16791 Session state prevents operation.
16792 </result>
16793 <result name="VBOX_E_INVALID_OBJECT_STATE">
16794 Session type prevents operation.
16795 </result>
16796
16797 </desc>
16798 <param name="machine" type="IMachine" dir="in"/>
16799 <param name="lockType" type="LockType" dir="in"/>
16800 </method>
16801
16802 <method name="assignRemoteMachine">
16803 <desc>
16804 Assigns the machine and the (remote) console object associated with
16805 this remote-type session.
16806
16807 <result name="VBOX_E_INVALID_VM_STATE">
16808 Session state prevents operation.
16809 </result>
16810
16811 </desc>
16812 <param name="machine" type="IMachine" dir="in"/>
16813 <param name="console" type="IConsole" dir="in"/>
16814 </method>
16815
16816 <method name="updateMachineState">
16817 <desc>
16818 Updates the machine state in the VM process.
16819 Must be called only in certain cases
16820 (see the method implementation).
16821
16822 <result name="VBOX_E_INVALID_VM_STATE">
16823 Session state prevents operation.
16824 </result>
16825 <result name="VBOX_E_INVALID_OBJECT_STATE">
16826 Session type prevents operation.
16827 </result>
16828
16829 </desc>
16830 <param name="machineState" type="MachineState" dir="in"/>
16831 </method>
16832
16833 <method name="uninitialize">
16834 <desc>
16835 Uninitializes (closes) this session. Used by VirtualBox to close
16836 the corresponding remote session when the direct session dies
16837 or gets closed.
16838
16839 <result name="VBOX_E_INVALID_VM_STATE">
16840 Session state prevents operation.
16841 </result>
16842
16843 </desc>
16844 </method>
16845
16846 <method name="onNetworkAdapterChange">
16847 <desc>
16848 Triggered when settings of a network adapter of the
16849 associated virtual machine have changed.
16850
16851 <result name="VBOX_E_INVALID_VM_STATE">
16852 Session state prevents operation.
16853 </result>
16854 <result name="VBOX_E_INVALID_OBJECT_STATE">
16855 Session type prevents operation.
16856 </result>
16857
16858 </desc>
16859 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
16860 <param name="changeAdapter" type="boolean" dir="in"/>
16861 </method>
16862
16863 <method name="onSerialPortChange">
16864 <desc>
16865 Triggered when settings of a serial port of the
16866 associated virtual machine have changed.
16867
16868 <result name="VBOX_E_INVALID_VM_STATE">
16869 Session state prevents operation.
16870 </result>
16871 <result name="VBOX_E_INVALID_OBJECT_STATE">
16872 Session type prevents operation.
16873 </result>
16874
16875 </desc>
16876 <param name="serialPort" type="ISerialPort" dir="in"/>
16877 </method>
16878
16879 <method name="onParallelPortChange">
16880 <desc>
16881 Triggered when settings of a parallel port of the
16882 associated virtual machine have changed.
16883
16884 <result name="VBOX_E_INVALID_VM_STATE">
16885 Session state prevents operation.
16886 </result>
16887 <result name="VBOX_E_INVALID_OBJECT_STATE">
16888 Session type prevents operation.
16889 </result>
16890
16891 </desc>
16892 <param name="parallelPort" type="IParallelPort" dir="in"/>
16893 </method>
16894
16895 <method name="onStorageControllerChange">
16896 <desc>
16897 Triggered when settings of a storage controller of the
16898 associated virtual machine have changed.
16899
16900 <result name="VBOX_E_INVALID_VM_STATE">
16901 Session state prevents operation.
16902 </result>
16903 <result name="VBOX_E_INVALID_OBJECT_STATE">
16904 Session type prevents operation.
16905 </result>
16906
16907 </desc>
16908 </method>
16909
16910 <method name="onMediumChange">
16911 <desc>
16912 Triggered when attached media of the
16913 associated virtual machine have changed.
16914
16915 <result name="VBOX_E_INVALID_VM_STATE">
16916 Session state prevents operation.
16917 </result>
16918 <result name="VBOX_E_INVALID_OBJECT_STATE">
16919 Session type prevents operation.
16920 </result>
16921
16922 </desc>
16923
16924 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
16925 <desc>The medium attachment which changed.</desc>
16926 </param>
16927 <param name="force" type="boolean" dir="in">
16928 <desc>If the medium change was forced.</desc>
16929 </param>
16930 </method>
16931
16932 <method name="onStorageDeviceChange">
16933 <desc>
16934 Triggered when attached storage devices of the
16935 associated virtual machine have changed.
16936
16937 <result name="VBOX_E_INVALID_VM_STATE">
16938 Session state prevents operation.
16939 </result>
16940 <result name="VBOX_E_INVALID_OBJECT_STATE">
16941 Session type prevents operation.
16942 </result>
16943
16944 </desc>
16945
16946 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
16947 <desc>The medium attachment which changed.</desc>
16948 </param>
16949 <param name="remove" type="boolean" dir="in">
16950 <desc>TRUE if the device is removed, FALSE if it was added.</desc>
16951 </param>
16952 <param name="silent" type="boolean" dir="in">
16953 <desc>TRUE if the device is is silently reconfigured without
16954 notifying the guest about it.</desc>
16955 </param>
16956 </method>
16957
16958 <method name="onClipboardModeChange">
16959 <desc>
16960 Notification when the shared clipboard mode changes.
16961 </desc>
16962 <param name="clipboardMode" type="ClipboardMode" dir="in">
16963 <desc>The new shared clipboard mode.</desc>
16964 </param>
16965 </method>
16966
16967 <method name="onDragAndDropModeChange">
16968 <desc>
16969 Notification when the drag'n'drop mode changes.
16970 </desc>
16971 <param name="dragAndDropMode" type="DragAndDropMode" dir="in">
16972 <desc>The new mode for drag'n'drop.</desc>
16973 </param>
16974 </method>
16975
16976 <method name="onCPUChange">
16977 <desc>
16978 Notification when a CPU changes.
16979 </desc>
16980 <param name="cpu" type="unsigned long" dir="in">
16981 <desc>The CPU which changed</desc>
16982 </param>
16983 <param name="add" type="boolean" dir="in">
16984 <desc>Flag whether the CPU was added or removed</desc>
16985 </param>
16986 </method>
16987
16988 <method name="onCPUExecutionCapChange">
16989 <desc>
16990 Notification when the CPU execution cap changes.
16991 </desc>
16992 <param name="executionCap" type="unsigned long" dir="in">
16993 <desc>The new CPU execution cap value. (1-100)</desc>
16994 </param>
16995 </method>
16996
16997 <method name="onVRDEServerChange">
16998 <desc>
16999 Triggered when settings of the VRDE server object of the
17000 associated virtual machine have changed.
17001
17002 <result name="VBOX_E_INVALID_VM_STATE">
17003 Session state prevents operation.
17004 </result>
17005 <result name="VBOX_E_INVALID_OBJECT_STATE">
17006 Session type prevents operation.
17007 </result>
17008
17009 </desc>
17010 <param name="restart" type="boolean" dir="in">
17011 <desc>Flag whether the server must be restarted</desc>
17012 </param>
17013 </method>
17014
17015 <method name="onUSBControllerChange">
17016 <desc>
17017 Triggered when settings of the USB controller object of the
17018 associated virtual machine have changed.
17019
17020 <result name="VBOX_E_INVALID_VM_STATE">
17021 Session state prevents operation.
17022 </result>
17023 <result name="VBOX_E_INVALID_OBJECT_STATE">
17024 Session type prevents operation.
17025 </result>
17026
17027 </desc>
17028 </method>
17029
17030 <method name="onSharedFolderChange">
17031 <desc>
17032 Triggered when a permanent (global or machine) shared folder has been
17033 created or removed.
17034 <note>
17035 We don't pass shared folder parameters in this notification because
17036 the order in which parallel notifications are delivered is not defined,
17037 therefore it could happen that these parameters were outdated by the
17038 time of processing this notification.
17039 </note>
17040
17041 <result name="VBOX_E_INVALID_VM_STATE">
17042 Session state prevents operation.
17043 </result>
17044 <result name="VBOX_E_INVALID_OBJECT_STATE">
17045 Session type prevents operation.
17046 </result>
17047
17048 </desc>
17049 <param name="global" type="boolean" dir="in"/>
17050 </method>
17051
17052 <method name="onUSBDeviceAttach">
17053 <desc>
17054 Triggered when a request to capture a USB device (as a result
17055 of matched USB filters or direct call to
17056 <link to="IConsole::attachUSBDevice"/>) has completed.
17057 A @c null @a error object means success, otherwise it
17058 describes a failure.
17059
17060 <result name="VBOX_E_INVALID_VM_STATE">
17061 Session state prevents operation.
17062 </result>
17063 <result name="VBOX_E_INVALID_OBJECT_STATE">
17064 Session type prevents operation.
17065 </result>
17066
17067 </desc>
17068 <param name="device" type="IUSBDevice" dir="in"/>
17069 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
17070 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
17071 </method>
17072
17073 <method name="onUSBDeviceDetach">
17074 <desc>
17075 Triggered when a request to release the USB device (as a result
17076 of machine termination or direct call to
17077 <link to="IConsole::detachUSBDevice"/>) has completed.
17078 A @c null @a error object means success, otherwise it
17079 describes a failure.
17080
17081 <result name="VBOX_E_INVALID_VM_STATE">
17082 Session state prevents operation.
17083 </result>
17084 <result name="VBOX_E_INVALID_OBJECT_STATE">
17085 Session type prevents operation.
17086 </result>
17087
17088 </desc>
17089 <param name="id" type="uuid" mod="string" dir="in"/>
17090 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
17091 </method>
17092
17093 <method name="onShowWindow">
17094 <desc>
17095 Called by <link to="IMachine::canShowConsoleWindow"/> and by
17096 <link to="IMachine::showConsoleWindow"/> in order to notify
17097 console listeners
17098 <link to="ICanShowWindowEvent"/>
17099 and <link to="IShowWindowEvent"/>.
17100
17101 <result name="VBOX_E_INVALID_OBJECT_STATE">
17102 Session type prevents operation.
17103 </result>
17104
17105 </desc>
17106 <param name="check" type="boolean" dir="in"/>
17107 <param name="canShow" type="boolean" dir="out"/>
17108 <param name="winId" type="long long" dir="out"/>
17109 </method>
17110
17111 <method name="onBandwidthGroupChange">
17112 <desc>
17113 Notification when one of the bandwidth groups change.
17114 </desc>
17115 <param name="bandwidthGroup" type="IBandwidthGroup" dir="in">
17116 <desc>The bandwidth group which changed.</desc>
17117 </param>
17118 </method>
17119
17120 <method name="accessGuestProperty">
17121 <desc>
17122 Called by <link to="IMachine::getGuestProperty"/> and by
17123 <link to="IMachine::setGuestProperty"/> in order to read and
17124 modify guest properties.
17125
17126 <result name="VBOX_E_INVALID_VM_STATE">
17127 Machine session is not open.
17128 </result>
17129 <result name="VBOX_E_INVALID_OBJECT_STATE">
17130 Session type is not direct.
17131 </result>
17132
17133 </desc>
17134 <param name="name" type="wstring" dir="in"/>
17135 <param name="value" type="wstring" dir="in"/>
17136 <param name="flags" type="wstring" dir="in"/>
17137 <param name="isSetter" type="boolean" dir="in"/>
17138 <param name="retValue" type="wstring" dir="out"/>
17139 <param name="retTimestamp" type="long long" dir="out"/>
17140 <param name="retFlags" type="wstring" dir="out"/>
17141 </method>
17142
17143 <method name="enumerateGuestProperties" const="yes">
17144 <desc>
17145 Return a list of the guest properties matching a set of patterns along
17146 with their values, time stamps and flags.
17147
17148 <result name="VBOX_E_INVALID_VM_STATE">
17149 Machine session is not open.
17150 </result>
17151 <result name="VBOX_E_INVALID_OBJECT_STATE">
17152 Session type is not direct.
17153 </result>
17154
17155 </desc>
17156 <param name="patterns" type="wstring" dir="in">
17157 <desc>
17158 The patterns to match the properties against as a comma-separated
17159 string. If this is empty, all properties currently set will be
17160 returned.
17161 </desc>
17162 </param>
17163 <param name="keys" type="wstring" dir="out" safearray="yes">
17164 <desc>
17165 The key names of the properties returned.
17166 </desc>
17167 </param>
17168 <param name="values" type="wstring" dir="out" safearray="yes">
17169 <desc>
17170 The values of the properties returned. The array entries match the
17171 corresponding entries in the @a key array.
17172 </desc>
17173 </param>
17174 <param name="timestamps" type="long long" dir="out" safearray="yes">
17175 <desc>
17176 The time stamps of the properties returned. The array entries match
17177 the corresponding entries in the @a key array.
17178 </desc>
17179 </param>
17180 <param name="flags" type="wstring" dir="out" safearray="yes">
17181 <desc>
17182 The flags of the properties returned. The array entries match the
17183 corresponding entries in the @a key array.
17184 </desc>
17185 </param>
17186 </method>
17187
17188 <method name="onlineMergeMedium">
17189 <desc>
17190 Triggers online merging of a hard disk. Used internally when deleting
17191 a snapshot while a VM referring to the same hard disk chain is running.
17192
17193 <result name="VBOX_E_INVALID_VM_STATE">
17194 Machine session is not open.
17195 </result>
17196 <result name="VBOX_E_INVALID_OBJECT_STATE">
17197 Session type is not direct.
17198 </result>
17199
17200 </desc>
17201 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
17202 <desc>The medium attachment to identify the medium chain.</desc>
17203 </param>
17204 <param name="sourceIdx" type="unsigned long" dir="in">
17205 <desc>The index of the source image in the chain.
17206 Redundant, but drastically reduces IPC.</desc>
17207 </param>
17208 <param name="targetIdx" type="unsigned long" dir="in">
17209 <desc>The index of the target image in the chain.
17210 Redundant, but drastically reduces IPC.</desc>
17211 </param>
17212 <param name="source" type="IMedium" dir="in">
17213 <desc>Merge source medium.</desc>
17214 </param>
17215 <param name="target" type="IMedium" dir="in">
17216 <desc>Merge target medium.</desc>
17217 </param>
17218 <param name="mergeForward" type="boolean" dir="in">
17219 <desc>Merge direction.</desc>
17220 </param>
17221 <param name="parentForTarget" type="IMedium" dir="in">
17222 <desc>For forward merges: new parent for target medium.</desc>
17223 </param>
17224 <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
17225 <desc>For backward merges: list of media which need their parent UUID
17226 updated.</desc>
17227 </param>
17228 <param name="progress" type="IProgress" dir="in">
17229 <desc>
17230 Progress object for this operation.
17231 </desc>
17232 </param>
17233 </method>
17234
17235 <method name="enableVMMStatistics">
17236 <desc>
17237 Enables or disables collection of VMM RAM statistics.
17238
17239 <result name="VBOX_E_INVALID_VM_STATE">
17240 Machine session is not open.
17241 </result>
17242 <result name="VBOX_E_INVALID_OBJECT_STATE">
17243 Session type is not direct.
17244 </result>
17245
17246 </desc>
17247 <param name="enable" type="boolean" dir="in">
17248 <desc>True enables statistics collection.</desc>
17249 </param>
17250 </method>
17251
17252 </interface>
17253
17254 <interface
17255 name="ISession" extends="$unknown"
17256 uuid="12F4DCDB-12B2-4EC1-B7CD-DDD9F6C5BF4D"
17257 wsmap="managed"
17258 >
17259 <desc>
17260 The ISession interface represents a client process and allows for locking
17261 virtual machines (represented by IMachine objects) to prevent conflicting
17262 changes to the machine.
17263
17264 Any caller wishing to manipulate a virtual machine needs to create a session
17265 object first, which lives in its own process space. Such session objects are
17266 then associated with <link to="IMachine" /> objects living in the VirtualBox
17267 server process to coordinate such changes.
17268
17269 There are two typical scenarios in which sessions are used:
17270
17271 <ul>
17272 <li>To alter machine settings or control a running virtual machine, one
17273 needs to lock a machine for a given session (client process) by calling
17274 <link to="IMachine::lockMachine"/>.
17275
17276 Whereas multiple sessions may control a running virtual machine, only
17277 one process can obtain a write lock on the machine to prevent conflicting
17278 changes. A write lock is also needed if a process wants to actually run a
17279 virtual machine in its own context, such as the VirtualBox GUI or
17280 VBoxHeadless front-ends. They must also lock a machine for their own
17281 sessions before they are allowed to power up the virtual machine.
17282
17283 As a result, no machine settings can be altered while another process is
17284 already using it, either because that process is modifying machine settings
17285 or because the machine is running.
17286 </li>
17287 <li>
17288 To start a VM using one of the existing VirtualBox front-ends (e.g. the
17289 VirtualBox GUI or VBoxHeadless), one would use
17290 <link to="IMachine::launchVMProcess"/>, which also takes a session object
17291 as its first parameter. This session then identifies the caller and lets the
17292 caller control the started machine (for example, pause machine execution or
17293 power it down) as well as be notified about machine execution state changes.
17294 </li>
17295 </ul>
17296
17297 How sessions objects are created in a client process depends on whether you use
17298 the Main API via COM or via the webservice:
17299
17300 <ul>
17301 <li>When using the COM API directly, an object of the Session class from the
17302 VirtualBox type library needs to be created. In regular COM C++ client code,
17303 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
17304 This object will then act as a local session object in further calls to open
17305 a session.
17306 </li>
17307
17308 <li>In the webservice, the session manager (IWebsessionManager) instead creates
17309 a session object automatically whenever <link to="IWebsessionManager::logon" />
17310 is called. A managed object reference to that session object can be retrieved by
17311 calling <link to="IWebsessionManager::getSessionObject" />.
17312 </li>
17313 </ul>
17314 </desc>
17315
17316 <attribute name="state" type="SessionState" readonly="yes">
17317 <desc>Current state of this session.</desc>
17318 </attribute>
17319
17320 <attribute name="type" type="SessionType" readonly="yes">
17321 <desc>
17322 Type of this session. The value of this attribute is valid only
17323 if the session currently has a machine locked (i.e. its
17324 <link to="#state" /> is Locked), otherwise an error will be returned.
17325 </desc>
17326 </attribute>
17327
17328 <attribute name="machine" type="IMachine" readonly="yes">
17329 <desc>Machine object associated with this session.</desc>
17330 </attribute>
17331
17332 <attribute name="console" type="IConsole" readonly="yes">
17333 <desc>Console object associated with this session.</desc>
17334 </attribute>
17335
17336 <method name="unlockMachine">
17337 <desc>
17338 Unlocks a machine that was previously locked for the current session.
17339
17340 Calling this method is required every time a machine has been locked
17341 for a particular session using the <link to="IMachine::launchVMProcess" />
17342 or <link to="IMachine::lockMachine" /> calls. Otherwise the state of
17343 the machine will be set to <link to="MachineState_Aborted" /> on the
17344 server, and changes made to the machine settings will be lost.
17345
17346 Generally, it is recommended to unlock all machines explicitly
17347 before terminating the application (regardless of the reason for
17348 the termination).
17349
17350 <note>
17351 Do not expect the session state (<link to="ISession::state" />
17352 to return to "Unlocked" immediately after you invoke this method,
17353 particularly if you have started a new VM process. The session
17354 state will automatically return to "Unlocked" once the VM is no
17355 longer executing, which can of course take a very long time.
17356 </note>
17357
17358 <result name="E_UNEXPECTED">
17359 Session is not locked.
17360 </result>
17361
17362 </desc>
17363 </method>
17364
17365 </interface>
17366
17367 <!--
17368 // IStorageController
17369 /////////////////////////////////////////////////////////////////////////
17370 -->
17371
17372 <enum
17373 name="StorageBus"
17374 uuid="eee67ab3-668d-4ef5-91e0-7025fe4a0d7a"
17375 >
17376 <desc>
17377 The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy);
17378 see <link to="IStorageController::bus" />.
17379 </desc>
17380 <const name="Null" value="0">
17381 <desc>@c null value. Never used by the API.</desc>
17382 </const>
17383 <const name="IDE" value="1"/>
17384 <const name="SATA" value="2"/>
17385 <const name="SCSI" value="3"/>
17386 <const name="Floppy" value="4"/>
17387 <const name="SAS" value="5"/>
17388 </enum>
17389
17390 <enum
17391 name="StorageControllerType"
17392 uuid="8a412b8a-f43e-4456-bd37-b474f0879a58"
17393 >
17394 <desc>
17395 The exact variant of storage controller hardware presented
17396 to the guest; see <link to="IStorageController::controllerType" />.
17397 </desc>
17398
17399 <const name="Null" value="0">
17400 <desc>@c null value. Never used by the API.</desc>
17401 </const>
17402 <const name="LsiLogic" value="1">
17403 <desc>A SCSI controller of the LsiLogic variant.</desc>
17404 </const>
17405 <const name="BusLogic" value="2">
17406 <desc>A SCSI controller of the BusLogic variant.</desc>
17407 </const>
17408 <const name="IntelAhci" value="3">
17409 <desc>An Intel AHCI SATA controller; this is the only variant for SATA.</desc>
17410 </const>
17411 <const name="PIIX3" value="4">
17412 <desc>An IDE controller of the PIIX3 variant.</desc>
17413 </const>
17414 <const name="PIIX4" value="5">
17415 <desc>An IDE controller of the PIIX4 variant.</desc>
17416 </const>
17417 <const name="ICH6" value="6">
17418 <desc>An IDE controller of the ICH6 variant.</desc>
17419 </const>
17420 <const name="I82078" value="7">
17421 <desc>A floppy disk controller; this is the only variant for floppy drives.</desc>
17422 </const>
17423 <const name="LsiLogicSas" value="8">
17424 <desc>A variant of the LsiLogic controller using SAS.</desc>
17425 </const>
17426 </enum>
17427
17428 <enum
17429 name="ChipsetType"
17430 uuid="8b4096a8-a7c3-4d3b-bbb1-05a0a51ec394"
17431 >
17432 <desc>
17433 Type of emulated chipset (mostly southbridge).
17434 </desc>
17435
17436 <const name="Null" value="0">
17437 <desc>@c null value. Never used by the API.</desc>
17438 </const>
17439 <const name="PIIX3" value="1">
17440 <desc>A PIIX3 (PCI IDE ISA Xcelerator) chipset.</desc>
17441 </const>
17442 <const name="ICH9" value="2">
17443 <desc>A ICH9 (I/O Controller Hub) chipset.</desc>
17444 </const>
17445 </enum>
17446
17447 <interface
17448 name="IStorageController" extends="$unknown"
17449 uuid="a1556333-09b6-46d9-bfb7-fc239b7fbe1e"
17450 wsmap="managed"
17451 >
17452 <desc>
17453 Represents a storage controller that is attached to a virtual machine
17454 (<link to="IMachine" />). Just as drives (hard disks, DVDs, FDs) are
17455 attached to storage controllers in a real computer, virtual drives
17456 (represented by <link to="IMediumAttachment" />) are attached to virtual
17457 storage controllers, represented by this interface.
17458
17459 As opposed to physical hardware, VirtualBox has a very generic concept
17460 of a storage controller, and for purposes of the Main API, all virtual
17461 storage is attached to virtual machines via instances of this interface.
17462 There are five types of such virtual storage controllers: IDE, SCSI, SATA,
17463 SAS and Floppy (see <link to="#bus" />). Depending on which of these four
17464 is used, certain sub-types may be available and can be selected in
17465 <link to="#controllerType" />.
17466
17467 Depending on these settings, the guest operating system might see
17468 significantly different virtual hardware.
17469 </desc>
17470
17471 <attribute name="name" type="wstring" readonly="yes">
17472 <desc>
17473 Name of the storage controller, as originally specified with
17474 <link to="IMachine::addStorageController" />. This then uniquely
17475 identifies this controller with other method calls such as
17476 <link to="IMachine::attachDevice" /> and <link to="IMachine::mountMedium" />.
17477 </desc>
17478 </attribute>
17479
17480 <attribute name="maxDevicesPerPortCount" type="unsigned long" readonly="yes">
17481 <desc>
17482 Maximum number of devices which can be attached to one port.
17483 </desc>
17484 </attribute>
17485
17486 <attribute name="minPortCount" type="unsigned long" readonly="yes">
17487 <desc>
17488 Minimum number of ports that <link to="IStorageController::portCount"/> can be set to.
17489 </desc>
17490 </attribute>
17491
17492 <attribute name="maxPortCount" type="unsigned long" readonly="yes">
17493 <desc>
17494 Maximum number of ports that <link to="IStorageController::portCount"/> can be set to.
17495 </desc>
17496 </attribute>
17497
17498 <attribute name="instance" type="unsigned long">
17499 <desc>
17500 The instance number of the device in the running VM.
17501 </desc>
17502 </attribute>
17503
17504 <attribute name="portCount" type="unsigned long">
17505 <desc>
17506 The number of currently usable ports on the controller.
17507 The minimum and maximum number of ports for one controller are
17508 stored in <link to="IStorageController::minPortCount"/>
17509 and <link to="IStorageController::maxPortCount"/>.
17510 </desc>
17511 </attribute>
17512
17513 <attribute name="bus" type="StorageBus" readonly="yes">
17514 <desc>
17515 The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy).
17516 </desc>
17517 </attribute>
17518
17519 <attribute name="controllerType" type="StorageControllerType">
17520 <desc>
17521 The exact variant of storage controller hardware presented
17522 to the guest.
17523 Depending on this value, VirtualBox will provide a different
17524 virtual storage controller hardware to the guest.
17525 For SATA, SAS and floppy controllers, only one variant is
17526 available, but for IDE and SCSI, there are several.
17527
17528 For SCSI controllers, the default type is LsiLogic.
17529 </desc>
17530 </attribute>
17531
17532 <attribute name="useHostIOCache" type="boolean">
17533 <desc>
17534 If true, the storage controller emulation will use a dedicated I/O thread, enable the host I/O
17535 caches and use synchronous file APIs on the host. This was the only option in the API before
17536 VirtualBox 3.2 and is still the default for IDE controllers.
17537
17538 If false, the host I/O cache will be disabled for image files attached to this storage controller.
17539 Instead, the storage controller emulation will use asynchronous I/O APIs on the host. This makes
17540 it possible to turn off the host I/O caches because the emulation can handle unaligned access to
17541 the file. This should be used on OS X and Linux hosts if a high I/O load is expected or many
17542 virtual machines are running at the same time to prevent I/O cache related hangs.
17543 This option new with the API of VirtualBox 3.2 and is now the default for non-IDE storage controllers.
17544 </desc>
17545 </attribute>
17546
17547 <attribute name="bootable" type="boolean" readonly="yes">
17548 <desc>
17549 Returns whether it is possible to boot from disks attached to this controller.
17550 </desc>
17551 </attribute>
17552 </interface>
17553
17554<if target="wsdl">
17555
17556 <!--
17557 // IManagedObjectRef
17558 /////////////////////////////////////////////////////////////////////////
17559 -->
17560
17561 <interface
17562 name="IManagedObjectRef" extends="$unknown"
17563 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
17564 internal="yes"
17565 wsmap="managed"
17566 wscpp="hardcoded"
17567 >
17568 <desc>
17569 Managed object reference.
17570
17571 Only within the webservice, a managed object reference (which is really
17572 an opaque number) allows a webservice client to address an object
17573 that lives in the address space of the webservice server.
17574
17575 Behind each managed object reference, there is a COM object that lives
17576 in the webservice server's address space. The COM object is not freed
17577 until the managed object reference is released, either by an explicit
17578 call to <link to="IManagedObjectRef::release" /> or by logging off from
17579 the webservice (<link to="IWebsessionManager::logoff" />), which releases
17580 all objects created during the webservice session.
17581
17582 Whenever a method call of the VirtualBox API returns a COM object, the
17583 webservice representation of that method will instead return a
17584 managed object reference, which can then be used to invoke methods
17585 on that object.
17586 </desc>
17587
17588 <method name="getInterfaceName">
17589 <desc>
17590 Returns the name of the interface that this managed object represents,
17591 for example, "IMachine", as a string.
17592 </desc>
17593 <param name="return" type="wstring" dir="return"/>
17594 </method>
17595
17596 <method name="release">
17597 <desc>
17598 Releases this managed object reference and frees the resources that
17599 were allocated for it in the webservice server process. After calling
17600 this method, the identifier of the reference can no longer be used.
17601 </desc>
17602 </method>
17603
17604 </interface>
17605
17606 <!--
17607 // IWebsessionManager
17608 /////////////////////////////////////////////////////////////////////////
17609 -->
17610
17611 <interface
17612 name="IWebsessionManager" extends="$unknown"
17613 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
17614 internal="yes"
17615 wsmap="global"
17616 wscpp="hardcoded"
17617 >
17618 <desc>
17619 Websession manager. This provides essential services
17620 to webservice clients.
17621 </desc>
17622 <method name="logon">
17623 <desc>
17624 Logs a new client onto the webservice and returns a managed object reference to
17625 the IVirtualBox instance, which the client can then use as a basis to further
17626 queries, since all calls to the VirtualBox API are based on the IVirtualBox
17627 interface, in one way or the other.
17628 </desc>
17629 <param name="username" type="wstring" dir="in"/>
17630 <param name="password" type="wstring" dir="in"/>
17631 <param name="return" type="IVirtualBox" dir="return"/>
17632 </method>
17633
17634 <method name="getSessionObject">
17635 <desc>
17636 Returns a managed object reference to the internal ISession object that was created
17637 for this web service session when the client logged on.
17638
17639 <see><link to="ISession"/></see>
17640 </desc>
17641 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
17642 <param name="return" type="ISession" dir="return"/>
17643 </method>
17644
17645 <method name="logoff">
17646 <desc>
17647 Logs off the client who has previously logged on with <link to="IWebsessionManager::logon" />
17648 and destroys all resources associated with the session (most importantly, all
17649 managed objects created in the server while the session was active).
17650 </desc>
17651 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
17652 </method>
17653
17654 </interface>
17655
17656</if>
17657
17658 <!--
17659 // IPerformanceCollector & friends
17660 /////////////////////////////////////////////////////////////////////////
17661 -->
17662
17663 <interface
17664 name="IPerformanceMetric" extends="$unknown"
17665 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
17666 >
17667 <desc>
17668 The IPerformanceMetric interface represents parameters of the given
17669 performance metric.
17670 </desc>
17671
17672 <attribute name="metricName" type="wstring" readonly="yes">
17673 <desc>
17674 Name of the metric.
17675 </desc>
17676 </attribute>
17677
17678 <attribute name="object" type="$unknown" readonly="yes">
17679 <desc>
17680 Object this metric belongs to.
17681 </desc>
17682 </attribute>
17683
17684 <attribute name="description" type="wstring" readonly="yes">
17685 <desc>
17686 Textual description of the metric.
17687 </desc>
17688 </attribute>
17689
17690 <attribute name="period" type="unsigned long" readonly="yes">
17691 <desc>
17692 Time interval between samples, measured in seconds.
17693 </desc>
17694 </attribute>
17695
17696 <attribute name="count" type="unsigned long" readonly="yes">
17697 <desc>
17698 Number of recent samples retained by the performance collector for this
17699 metric.
17700
17701 When the collected sample count exceeds this number, older samples
17702 are discarded.
17703 </desc>
17704 </attribute>
17705
17706 <attribute name="unit" type="wstring" readonly="yes">
17707 <desc>
17708 Unit of measurement.
17709 </desc>
17710 </attribute>
17711
17712 <attribute name="minimumValue" type="long" readonly="yes">
17713 <desc>
17714 Minimum possible value of this metric.
17715 </desc>
17716 </attribute>
17717
17718 <attribute name="maximumValue" type="long" readonly="yes">
17719 <desc>
17720 Maximum possible value of this metric.
17721 </desc>
17722 </attribute>
17723 </interface>
17724
17725 <interface
17726 name="IPerformanceCollector" extends="$unknown"
17727 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
17728 wsmap="managed"
17729 >
17730 <desc>
17731 The IPerformanceCollector interface represents a service that collects
17732 and stores performance metrics data.
17733
17734 Performance metrics are associated with objects of interfaces like IHost
17735 and IMachine. Each object has a distinct set of performance metrics. The
17736 set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
17737
17738 Metric data is collected at the specified intervals and is retained
17739 internally. The interval and the number of retained samples can be set
17740 with <link to="IPerformanceCollector::setupMetrics" />. Both metric data
17741 and collection settings are not persistent, they are discarded as soon as
17742 VBoxSVC process terminates. Moreover, metric settings and data associated
17743 with a particular VM only exist while VM is running. They disappear as
17744 soon as VM shuts down. It is not possible to set up metrics for machines
17745 that are powered off. One needs to start VM first, then set up metric
17746 collection parameters.
17747
17748 Metrics are organized hierarchically, with each level separated by a
17749 slash (/) character. Generally, the scheme for metric names is like this:
17750
17751 <tt>Category/Metric[/SubMetric][:aggregation]</tt>
17752
17753 "Category/Metric" together form the base metric name. A base metric is
17754 the smallest unit for which a sampling interval and the number of
17755 retained samples can be set. Only base metrics can be enabled and
17756 disabled. All sub-metrics are collected when their base metric is
17757 collected. Collected values for any set of sub-metrics can be queried
17758 with <link to="IPerformanceCollector::queryMetricsData" />.
17759
17760 For example "CPU/Load/User:avg" metric name stands for the "CPU"
17761 category, "Load" metric, "User" submetric, "average" aggregate. An
17762 aggregate function is computed over all retained data. Valid aggregate
17763 functions are:
17764
17765 <ul>
17766 <li>avg -- average</li>
17767 <li>min -- minimum</li>
17768 <li>max -- maximum</li>
17769 </ul>
17770
17771 When setting up metric parameters, querying metric data, enabling or
17772 disabling metrics wildcards can be used in metric names to specify a
17773 subset of metrics. For example, to select all CPU-related metrics
17774 use <tt>CPU/*</tt>, all averages can be queried using <tt>*:avg</tt> and
17775 so on. To query metric values without aggregates <tt>*:</tt> can be used.
17776
17777 The valid names for base metrics are:
17778
17779 <ul>
17780 <li>CPU/Load</li>
17781 <li>CPU/MHz</li>
17782 <li>RAM/Usage</li>
17783 <li>RAM/VMM</li>
17784 </ul>
17785
17786 The general sequence for collecting and retrieving the metrics is:
17787 <ul>
17788 <li>
17789 Obtain an instance of IPerformanceCollector with
17790 <link to="IVirtualBox::performanceCollector" />
17791 </li>
17792 <li>
17793 Allocate and populate an array with references to objects the metrics
17794 will be collected for. Use references to IHost and IMachine objects.
17795 </li>
17796 <li>
17797 Allocate and populate an array with base metric names the data will
17798 be collected for.
17799 </li>
17800 <li>
17801 Call <link to="IPerformanceCollector::setupMetrics" />. From now on
17802 the metric data will be collected and stored.
17803 </li>
17804 <li>
17805 Wait for the data to get collected.
17806 </li>
17807 <li>
17808 Allocate and populate an array with references to objects the metric
17809 values will be queried for. You can re-use the object array used for
17810 setting base metrics.
17811 </li>
17812 <li>
17813 Allocate and populate an array with metric names the data will be
17814 collected for. Note that metric names differ from base metric names.
17815 </li>
17816 <li>
17817 Call <link to="IPerformanceCollector::queryMetricsData" />. The data
17818 that have been collected so far are returned. Note that the values
17819 are still retained internally and data collection continues.
17820 </li>
17821 </ul>
17822
17823 For an example of usage refer to the following files in VirtualBox SDK:
17824 <ul>
17825 <li>
17826 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
17827 </li>
17828 <li>
17829 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
17830 </li>
17831 </ul>
17832 </desc>
17833
17834 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
17835 <desc>
17836 Array of unique names of metrics.
17837
17838 This array represents all metrics supported by the performance
17839 collector. Individual objects do not necessarily support all of them.
17840 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
17841 list of supported metrics for a particular object.
17842 </desc>
17843 </attribute>
17844
17845 <method name="getMetrics">
17846 <desc>
17847 Returns parameters of specified metrics for a set of objects.
17848 <note>
17849 @c Null metrics array means all metrics. @c Null object array means
17850 all existing objects.
17851 </note>
17852 </desc>
17853 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17854 <desc>
17855 Metric name filter. Currently, only a comma-separated list of metrics
17856 is supported.
17857 </desc>
17858 </param>
17859 <param name="objects" type="$unknown" dir="in" safearray="yes">
17860 <desc>
17861 Set of objects to return metric parameters for.
17862 </desc>
17863 </param>
17864 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
17865 <desc>
17866 Array of returned metric parameters.
17867 </desc>
17868 </param>
17869 </method>
17870
17871 <method name="setupMetrics">
17872 <desc>
17873 Sets parameters of specified base metrics for a set of objects. Returns
17874 an array of <link to="IPerformanceMetric" /> describing the metrics
17875 have been affected.
17876 <note>
17877 @c Null or empty metric name array means all metrics. @c Null or
17878 empty object array means all existing objects. If metric name array
17879 contains a single element and object array contains many, the single
17880 metric name array element is applied to each object array element to
17881 form metric/object pairs.
17882 </note>
17883 </desc>
17884 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17885 <desc>
17886 Metric name filter. Comma-separated list of metrics with wildcard
17887 support.
17888 </desc>
17889 </param>
17890 <param name="objects" type="$unknown" dir="in" safearray="yes">
17891 <desc>
17892 Set of objects to setup metric parameters for.
17893 </desc>
17894 </param>
17895 <param name="period" type="unsigned long" dir="in">
17896 <desc>
17897 Time interval in seconds between two consecutive samples of
17898 performance data.
17899 </desc>
17900 </param>
17901 <param name="count" type="unsigned long" dir="in">
17902 <desc>
17903 Number of samples to retain in performance data history. Older
17904 samples get discarded.
17905 </desc>
17906 </param>
17907 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
17908 <desc>
17909 Array of metrics that have been modified by the call to this method.
17910 </desc>
17911 </param>
17912 </method>
17913
17914 <method name="enableMetrics">
17915 <desc>
17916 Turns on collecting specified base metrics. Returns an array of
17917 <link to="IPerformanceMetric" /> describing the metrics have been
17918 affected.
17919 <note>
17920 @c Null or empty metric name array means all metrics. @c Null or
17921 empty object array means all existing objects. If metric name array
17922 contains a single element and object array contains many, the single
17923 metric name array element is applied to each object array element to
17924 form metric/object pairs.
17925 </note>
17926 </desc>
17927 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17928 <desc>
17929 Metric name filter. Comma-separated list of metrics with wildcard
17930 support.
17931 </desc>
17932 </param>
17933 <param name="objects" type="$unknown" dir="in" safearray="yes">
17934 <desc>
17935 Set of objects to enable metrics for.
17936 </desc>
17937 </param>
17938 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
17939 <desc>
17940 Array of metrics that have been modified by the call to this method.
17941 </desc>
17942 </param>
17943 </method>
17944
17945 <method name="disableMetrics">
17946 <desc>
17947 Turns off collecting specified base metrics. Returns an array of
17948 <link to="IPerformanceMetric" /> describing the metrics have been
17949 affected.
17950 <note>
17951 @c Null or empty metric name array means all metrics. @c Null or
17952 empty object array means all existing objects. If metric name array
17953 contains a single element and object array contains many, the single
17954 metric name array element is applied to each object array element to
17955 form metric/object pairs.
17956 </note>
17957 </desc>
17958 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17959 <desc>
17960 Metric name filter. Comma-separated list of metrics with wildcard
17961 support.
17962 </desc>
17963 </param>
17964 <param name="objects" type="$unknown" dir="in" safearray="yes">
17965 <desc>
17966 Set of objects to disable metrics for.
17967 </desc>
17968 </param>
17969 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
17970 <desc>
17971 Array of metrics that have been modified by the call to this method.
17972 </desc>
17973 </param>
17974 </method>
17975
17976 <method name="queryMetricsData">
17977 <desc>
17978 Queries collected metrics data for a set of objects.
17979
17980 The data itself and related metric information are returned in seven
17981 parallel and one flattened array of arrays. Elements of
17982 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
17983 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
17984 the same index describe one set of values corresponding to a single
17985 metric.
17986
17987 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
17988 start and length of a sub-array is indicated by
17989 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
17990 value for metric <tt>metricNames[i]</tt> is at
17991 <tt>returnData[returnIndices[i]]</tt>.
17992
17993 <note>
17994 @c Null or empty metric name array means all metrics. @c Null or
17995 empty object array means all existing objects. If metric name array
17996 contains a single element and object array contains many, the single
17997 metric name array element is applied to each object array element to
17998 form metric/object pairs.
17999 </note>
18000 <note>
18001 Data collection continues behind the scenes after call to @c
18002 queryMetricsData. The return data can be seen as the snapshot of the
18003 current state at the time of @c queryMetricsData call. The internally
18004 kept metric values are not cleared by the call. This makes possible
18005 querying different subsets of metrics or aggregates with subsequent
18006 calls. If periodic querying is needed it is highly suggested to query
18007 the values with @c interval*count period to avoid confusion. This way
18008 a completely new set of data values will be provided by each query.
18009 </note>
18010 </desc>
18011 <param name="metricNames" type="wstring" dir="in" safearray="yes">
18012 <desc>
18013 Metric name filter. Comma-separated list of metrics with wildcard
18014 support.
18015 </desc>
18016 </param>
18017 <param name="objects" type="$unknown" dir="in" safearray="yes">
18018 <desc>
18019 Set of objects to query metrics for.
18020 </desc>
18021 </param>
18022 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
18023 <desc>
18024 Names of metrics returned in @c returnData.
18025 </desc>
18026 </param>
18027 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
18028 <desc>
18029 Objects associated with metrics returned in @c returnData.
18030 </desc>
18031 </param>
18032 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
18033 <desc>
18034 Units of measurement for each returned metric.
18035 </desc>
18036 </param>
18037 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
18038 <desc>
18039 Divisor that should be applied to return values in order to get
18040 floating point values. For example:
18041 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
18042 will retrieve the floating point value of i-th sample of the first
18043 metric.
18044 </desc>
18045 </param>
18046 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
18047 <desc>
18048 Sequence numbers of the first elements of value sequences of
18049 particular metrics returned in @c returnData. For aggregate metrics
18050 it is the sequence number of the sample the aggregate started
18051 calculation from.
18052 </desc>
18053 </param>
18054 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
18055 <desc>
18056 Indices of the first elements of value sequences of particular
18057 metrics returned in @c returnData.
18058 </desc>
18059 </param>
18060 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
18061 <desc>
18062 Lengths of value sequences of particular metrics.
18063 </desc>
18064 </param>
18065 <param name="returnData" type="long" dir="return" safearray="yes">
18066 <desc>
18067 Flattened array of all metric data containing sequences of values for
18068 each metric.
18069 </desc>
18070 </param>
18071 </method>
18072
18073 </interface>
18074
18075 <enum
18076 name="NATAliasMode"
18077 uuid="67772168-50d9-11df-9669-7fb714ee4fa1"
18078 >
18079 <desc></desc>
18080 <const name="AliasLog" value="0x1">
18081 <desc></desc>
18082 </const>
18083 <const name="AliasProxyOnly" value="0x02">
18084 <desc></desc>
18085 </const>
18086 <const name="AliasUseSamePorts" value="0x04">
18087 <desc></desc>
18088 </const>
18089 </enum>
18090
18091 <enum
18092 name="NATProtocol"
18093 uuid="e90164be-eb03-11de-94af-fff9b1c1b19f"
18094 >
18095 <desc>Protocol definitions used with NAT port-forwarding rules.</desc>
18096 <const name="UDP" value="0">
18097 <desc>Port-forwarding uses UDP protocol.</desc>
18098 </const>
18099 <const name="TCP" value="1">
18100 <desc>Port-forwarding uses TCP protocol.</desc>
18101 </const>
18102 </enum>
18103
18104 <interface
18105 name="INATEngine" extends="$unknown"
18106 uuid="26451b99-3b2d-4dcb-8e4b-d63654218175"
18107 wsmap="managed"
18108 >
18109 <desc>Interface for managing a NAT engine which is used with a virtual machine. This
18110 allows for changing NAT behavior such as port-forwarding rules. This interface is
18111 used in the <link to="INetworkAdapter::NATEngine" /> attribute.</desc>
18112 <attribute name="network" type="wstring">
18113 <desc>The network attribute of the NAT engine (the same value is used with built-in
18114 DHCP server to fill corresponding fields of DHCP leases).</desc>
18115 </attribute>
18116 <attribute name="hostIP" type="wstring">
18117 <desc>IP of host interface to bind all opened sockets to.
18118 <note>Changing this does not change binding of port forwarding.</note>
18119 </desc>
18120 </attribute>
18121 <attribute name="TFTPPrefix" type="wstring">
18122 <desc>TFTP prefix attribute which is used with the built-in DHCP server to fill
18123 the corresponding fields of DHCP leases.</desc>
18124 </attribute>
18125 <attribute name="TFTPBootFile" type="wstring">
18126 <desc>TFTP boot file attribute which is used with the built-in DHCP server to fill
18127 the corresponding fields of DHCP leases.</desc>
18128 </attribute>
18129 <attribute name="TFTPNextServer" type="wstring">
18130 <desc>TFTP server attribute which is used with the built-in DHCP server to fill
18131 the corresponding fields of DHCP leases.
18132 <note>The preferred form is IPv4 addresses.</note>
18133 </desc>
18134 </attribute>
18135 <attribute name="aliasMode" type="unsigned long">
18136 <desc></desc>
18137 </attribute>
18138 <attribute name="DNSPassDomain" type="boolean">
18139 <desc>Whether the DHCP server should pass the DNS domain used by the host.</desc>
18140 </attribute>
18141 <attribute name="DNSProxy" type="boolean">
18142 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
18143 of the DNS proxy and process traffic using DNS servers registered on the host.</desc>
18144 </attribute>
18145 <attribute name="DNSUseHostResolver" type="boolean">
18146 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
18147 of the DNS proxy and process traffic using the host resolver mechanism.</desc>
18148 </attribute>
18149 <attribute name="redirects" type="wstring" readonly="yes" safearray="yes">
18150 <desc>Array of NAT port-forwarding rules in string representation, in the following
18151 format: "name,protocol id,host ip,host port,guest ip,guest port".</desc>
18152 </attribute>
18153 <method name="setNetworkSettings">
18154 <desc>Sets network configuration of the NAT engine.</desc>
18155 <param name="mtu" type="unsigned long" dir="in">
18156 <desc>MTU (maximum transmission unit) of the NAT engine in bytes.</desc>
18157 </param>
18158 <param name="sockSnd" type="unsigned long" dir="in">
18159 <desc>Capacity of the socket send buffer in bytes when creating a new socket.</desc>
18160 </param>
18161 <param name="sockRcv" type="unsigned long" dir="in">
18162 <desc>Capacity of the socket receive buffer in bytes when creating a new socket.</desc>
18163 </param>
18164 <param name="TcpWndSnd" type="unsigned long" dir="in">
18165 <desc>Initial size of the NAT engine's sending TCP window in bytes when
18166 establishing a new TCP connection.</desc>
18167 </param>
18168 <param name="TcpWndRcv" type="unsigned long" dir="in">
18169 <desc>Initial size of the NAT engine's receiving TCP window in bytes when
18170 establishing a new TCP connection.</desc>
18171 </param>
18172 </method>
18173 <method name="getNetworkSettings">
18174 <desc>Returns network configuration of NAT engine. See <link to="#setNetworkSettings" />
18175 for parameter descriptions.</desc>
18176 <param name="mtu" type="unsigned long" dir="out" />
18177 <param name="sockSnd" type="unsigned long" dir="out" />
18178 <param name="sockRcv" type="unsigned long" dir="out" />
18179 <param name="TcpWndSnd" type="unsigned long" dir="out" />
18180 <param name="TcpWndRcv" type="unsigned long" dir="out" />
18181 </method>
18182 <method name="addRedirect">
18183 <desc>Adds a new NAT port-forwarding rule.</desc>
18184 <param name="name" type="wstring" dir="in">
18185 <desc>The name of the rule. An empty name is acceptable, in which case the NAT engine
18186 auto-generates one using the other parameters.</desc>
18187 </param>
18188 <param name="proto" type="NATProtocol" dir="in">
18189 <desc>Protocol handled with the rule.</desc>
18190 </param>
18191 <param name="hostIP" type="wstring" dir="in">
18192 <desc>IP of the host interface to which the rule should apply. An empty ip address is
18193 acceptable, in which case the NAT engine binds the handling socket to any interface.</desc>
18194 </param>
18195 <param name="hostPort" type="unsigned short" dir="in">
18196 <desc>The port number to listen on.</desc>
18197 </param>
18198 <param name="guestIP" type="wstring" dir="in">
18199 <desc>The IP address of the guest which the NAT engine will forward matching packets
18200 to. An empty IP address is acceptable, in which case the NAT engine will forward
18201 packets to the first DHCP lease (x.x.x.15).</desc>
18202 </param>
18203 <param name="guestPort" type="unsigned short" dir="in">
18204 <desc>The port number to forward.</desc>
18205 </param>
18206 </method>
18207 <method name="removeRedirect">
18208 <desc>Removes a port-forwarding rule that was previously registered.</desc>
18209 <param name="name" type="wstring" dir="in">
18210 <desc>The name of the rule to delete.</desc>
18211 </param>
18212 </method>
18213 </interface>
18214
18215 <!--
18216 // IExtPackManager
18217 /////////////////////////////////////////////////////////////////////////
18218 -->
18219
18220 <interface
18221 name="IExtPackPlugIn" extends="$unknown"
18222 uuid="58000040-e718-4746-bbce-4b86d96da461"
18223 wsmap="suppress"
18224 >
18225 <desc>
18226 Interface for keeping information about a plug-in that ships with an
18227 extension pack.
18228 </desc>
18229 <attribute name="name" type="wstring" readonly="yes">
18230 <desc>The plug-in name.</desc>
18231 </attribute>
18232 <attribute name="description" type="wstring" readonly="yes">
18233 <desc>The plug-in description.</desc>
18234 </attribute>
18235 <attribute name="frontend" type="wstring" readonly="yes">
18236 <desc>
18237 The name of the frontend or component name this plug-in plugs into.
18238 </desc>
18239 </attribute>
18240 <attribute name="modulePath" type="wstring" readonly="yes">
18241 <desc> The module path. </desc>
18242 </attribute>
18243 </interface>
18244
18245 <interface
18246 name="IExtPackBase" extends="$unknown"
18247 uuid="f79b75d8-2890-4f34-ffff-ffffa144e82c"
18248 wsmap="suppress"
18249 >
18250 <desc>
18251 Interface for querying information about an extension pack as well as
18252 accessing COM objects within it.
18253 </desc>
18254 <attribute name="name" type="wstring" readonly="yes">
18255 <desc>The extension pack name. This is unique.</desc>
18256 </attribute>
18257 <attribute name="description" type="wstring" readonly="yes">
18258 <desc>The extension pack description.</desc>
18259 </attribute>
18260 <attribute name="version" type="wstring" readonly="yes">
18261 <desc>
18262 The extension pack version string. This is restricted to the dotted
18263 version number and optionally a build indicator. No tree revision or
18264 tag will be included in the string as those things are available as
18265 separate properties. An optional publisher tag may be present like for
18266 <link to="IVirtualBox::version"/>.
18267
18268 Examples: "1.2.3", "1.2.3_BETA1" and "1.2.3_RC2".
18269 </desc>
18270 </attribute>
18271 <attribute name="revision" type="unsigned long" readonly="yes">
18272 <desc>The extension pack internal revision number.</desc>
18273 </attribute>
18274 <attribute name="edition" type="wstring" readonly="yes">
18275 <desc>
18276 Edition indicator. This is usually empty.
18277
18278 Can for instance be used to help distinguishing between two editions
18279 of the same extension pack where only the license, service contract or
18280 something differs.
18281 </desc>
18282 </attribute>
18283 <attribute name="VRDEModule" type="wstring" readonly="yes">
18284 <desc>The name of the VRDE module if the extension pack sports one.</desc>
18285 </attribute>
18286 <attribute name="plugIns" type="IExtPackPlugIn" safearray="yes" readonly="yes">
18287 <desc>Plug-ins provided by this extension pack.</desc>
18288 </attribute>
18289 <attribute name="usable" type="boolean" readonly="yes">
18290 <desc>
18291 Indicates whether the extension pack is usable or not.
18292
18293 There are a number of reasons why an extension pack might be unusable,
18294 typical examples would be broken installation/file or that it is
18295 incompatible with the current VirtualBox version.
18296 </desc>
18297 </attribute>
18298 <attribute name="whyUnusable" type="wstring" readonly="yes">
18299 <desc>
18300 String indicating why the extension pack is not usable. This is an
18301 empty string if usable and always a non-empty string if not usable.
18302 </desc>
18303 </attribute>
18304 <attribute name="showLicense" type="boolean" readonly="yes">
18305 <desc>Whether to show the license before installation</desc>
18306 </attribute>
18307 <attribute name="license" type="wstring" readonly="yes">
18308 <desc>
18309 The default HTML license text for the extension pack. Same as
18310 calling <link to="#queryLicense">queryLicense</link> with
18311 preferredLocale and preferredLanguage as empty strings and format set
18312 to html.
18313 </desc>
18314 </attribute>
18315
18316 <method name="queryLicense">
18317 <desc>
18318 Full feature version of the license attribute.
18319 </desc>
18320 <param name="preferredLocale" type="wstring" dir="in">
18321 <desc>
18322 The preferred license locale. Pass an empty string to get the default
18323 license.
18324 </desc>
18325 </param>
18326 <param name="preferredLanguage" type="wstring" dir="in">
18327 <desc>
18328 The preferred license language. Pass an empty string to get the
18329 default language for the locale.
18330 </desc>
18331 </param>
18332 <param name="format" type="wstring" dir="in">
18333 <desc>
18334 The license format: html, rtf or txt. If a license is present there
18335 will always be an HTML of it, the rich text format (RTF) and plain
18336 text (txt) versions are optional. If
18337 </desc>
18338 </param>
18339 <param name="licenseText" type="wstring" dir="return">
18340 <desc>The license text.</desc>
18341 </param>
18342 </method>
18343
18344 </interface>
18345
18346 <interface
18347 name="IExtPack" extends="IExtPackBase"
18348 uuid="431685da-3618-4ebc-b038-833ba829b4b2"
18349 wsmap="suppress"
18350 >
18351 <desc>
18352 Interface for querying information about an extension pack as well as
18353 accessing COM objects within it.
18354 </desc>
18355 <method name="queryObject">
18356 <desc>
18357 Queries the IUnknown interface to an object in the extension pack
18358 main module. This allows plug-ins and others to talk directly to an
18359 extension pack.
18360 </desc>
18361 <param name="objUuid" type="wstring" dir="in">
18362 <desc>The object ID. What exactly this is </desc>
18363 </param>
18364 <param name="returnInterface" type="$unknown" dir="return">
18365 <desc>The queried interface.</desc>
18366 </param>
18367 </method>
18368 </interface>
18369
18370 <interface
18371 name="IExtPackFile" extends="IExtPackBase"
18372 uuid="b6b49f55-efcc-4f08-b486-56e8d8afb10b"
18373 wsmap="suppress"
18374 >
18375 <desc>
18376 Extension pack file (aka tarball, .vbox-extpack) representation returned
18377 by <link to="IExtPackManager::openExtPackFile"/>. This provides the base
18378 extension pack information with the addition of the file name.
18379 </desc>
18380 <attribute name="filePath" type="wstring" readonly="yes">
18381 <desc>
18382 The path to the extension pack file.
18383 </desc>
18384 </attribute>
18385
18386 <method name="install">
18387 <desc>
18388 Install the extension pack.
18389 </desc>
18390 <param name="replace" type="boolean" dir="in">
18391 <desc>
18392 Set this to automatically uninstall any existing extension pack with
18393 the same name as the one being installed.
18394 </desc>
18395 </param>
18396 <param name="displayInfo" type="wstring" dir="in">
18397 <desc>
18398 Platform specific display information. Reserved for future hacks.
18399 </desc>
18400 </param>
18401 <param name="progess" type="IProgress" dir="return">
18402 <desc>
18403 Progress object for the operation.
18404 </desc>
18405 </param>
18406 </method>
18407 </interface>
18408
18409 <interface
18410 name="IExtPackManager" extends="$unknown"
18411 uuid="3295e6ce-b051-47b2-9514-2c588bfe7554"
18412 wsmap="suppress"
18413 >
18414 <desc>
18415 Interface for managing VirtualBox Extension Packs.
18416
18417 TODO: Describe extension packs, how they are managed and how to create
18418 one.
18419 </desc>
18420
18421 <attribute name="installedExtPacks" type="IExtPack" safearray="yes" readonly="yes">
18422 <desc>
18423 List of the installed extension packs.
18424 </desc>
18425 </attribute>
18426
18427 <method name="find">
18428 <desc>
18429 Returns the extension pack with the specified name if found.
18430
18431 <result name="VBOX_E_OBJECT_NOT_FOUND">
18432 No extension pack matching @a name was found.
18433 </result>
18434 </desc>
18435 <param name="name" type="wstring" dir="in">
18436 <desc>The name of the extension pack to locate.</desc>
18437 </param>
18438 <param name="returnData" type="IExtPack" dir="return">
18439 <desc>The extension pack if found.</desc>
18440 </param>
18441 </method>
18442
18443 <method name="openExtPackFile">
18444 <desc>
18445 Attempts to open an extension pack file in preparation for
18446 installation.
18447 </desc>
18448 <param name="path" type="wstring" dir="in">
18449 <desc>The path of the extension pack tarball. This can optionally be
18450 followed by a "::SHA-256=hex-digit" of the tarball. </desc>
18451 </param>
18452 <param name="file" type="IExtPackFile" dir="return">
18453 <desc>The interface of the extension pack file object.</desc>
18454 </param>
18455 </method>
18456
18457 <method name="uninstall">
18458 <desc>Uninstalls an extension pack, removing all related files.</desc>
18459 <param name="name" type="wstring" dir="in">
18460 <desc>The name of the extension pack to uninstall.</desc>
18461 </param>
18462 <param name="forcedRemoval" type="boolean" dir="in">
18463 <desc>
18464 Forced removal of the extension pack. This means that the uninstall
18465 hook will not be called.
18466 </desc>
18467 </param>
18468 <param name="displayInfo" type="wstring" dir="in">
18469 <desc>
18470 Platform specific display information. Reserved for future hacks.
18471 </desc>
18472 </param>
18473 <param name="progess" type="IProgress" dir="return">
18474 <desc>
18475 Progress object for the operation.
18476 </desc>
18477 </param>
18478 </method>
18479
18480 <method name="cleanup">
18481 <desc>Cleans up failed installs and uninstalls</desc>
18482 </method>
18483
18484 <method name="queryAllPlugInsForFrontend">
18485 <desc>
18486 Gets the path to all the plug-in modules for a given frontend.
18487
18488 This is a convenience method that is intended to simplify the plug-in
18489 loading process for a frontend.
18490 </desc>
18491 <param name="frontendName" type="wstring" dir="in">
18492 <desc>The name of the frontend or component.</desc>
18493 </param>
18494 <param name="plugInModules" type="wstring" dir="return" safearray="yes">
18495 <desc>Array containing the plug-in modules (full paths).</desc>
18496 </param>
18497 </method>
18498
18499 <method name="isExtPackUsable">
18500 <desc>Check if the given extension pack is loaded and usable.</desc>
18501 <param name="name" type="wstring" dir="in">
18502 <desc>The name of the extension pack to check for.</desc>
18503 </param>
18504 <param name="usable" type="boolean" dir="return">
18505 <desc>Is the given extension pack loaded and usable.</desc>
18506 </param>
18507 </method>
18508
18509 </interface>
18510
18511 <!--
18512 // BandwidthGroupType
18513 /////////////////////////////////////////////////////////////////////////
18514 -->
18515 <enum
18516 name="BandwidthGroupType"
18517 uuid="1d92b67d-dc69-4be9-ad4c-93a01e1e0c8e">
18518
18519 <desc>
18520 Type of a bandwidth control group.
18521 </desc>
18522
18523 <const name="Null" value="0">
18524 <desc>
18525 Null type, must be first.
18526 </desc>
18527 </const>
18528
18529 <const name="Disk" value="1">
18530 <desc>
18531 The bandwidth group controls disk I/O.
18532 </desc>
18533 </const>
18534
18535 <const name="Network" value="2">
18536 <desc>
18537 The bandwidth group controls network I/O.
18538 </desc>
18539 </const>
18540
18541 </enum>
18542
18543 <!--
18544 // IBandwidthGroup
18545 /////////////////////////////////////////////////////////////////////////
18546 -->
18547 <interface
18548 name="IBandwidthGroup" extends="$unknown"
18549 uuid="badea2d7-0261-4146-89f0-6a57cc34833d"
18550 wsmap="managed"
18551 >
18552 <desc>Represents one bandwidth group.</desc>
18553
18554 <attribute name="name" type="wstring" readonly="yes">
18555 <desc>Name of the group.</desc>
18556 </attribute>
18557
18558 <attribute name="type" type="BandwidthGroupType" readonly="yes">
18559 <desc>Type of the group.</desc>
18560 </attribute>
18561
18562 <attribute name="reference" type="unsigned long" readonly="yes">
18563 <desc>How many devices/medium attachements use this group.</desc>
18564 </attribute>
18565
18566 <attribute name="maxBytesPerSec" type="long long">
18567 <desc>The maximum number of bytes which can be transfered by all
18568 entities attached to this group during one second.</desc>
18569 </attribute>
18570
18571 </interface>
18572
18573 <!--
18574 // IBandwidthControl
18575 /////////////////////////////////////////////////////////////////////////
18576 -->
18577 <interface
18578 name="IBandwidthControl" extends="$unknown"
18579 uuid="e2eb3930-d2f4-4f87-be17-0707e30f019f"
18580 wsmap="managed"
18581 >
18582 <desc>
18583 Controls the bandwidth groups of one machine used to cap I/O done by a VM.
18584 This includes network and disk I/O.
18585 </desc>
18586
18587 <attribute name="numGroups" type="unsigned long" readonly="yes">
18588 <desc>
18589 The current number of existing bandwidth groups managed.
18590 </desc>
18591 </attribute>
18592
18593 <method name="createBandwidthGroup">
18594 <desc>
18595 Creates a new bandwidth group.
18596 </desc>
18597
18598 <param name="name" type="wstring" dir="in">
18599 <desc>Name of the bandwidth group.</desc>
18600 </param>
18601 <param name="type" type="BandwidthGroupType" dir="in">
18602 <desc>The type of the bandwidth group (network or disk).</desc>
18603 </param>
18604 <param name="maxBytesPerSec" type="long long" dir="in">
18605 <desc>The maximum number of bytes which can be transfered by all
18606 entities attached to this group during one second.</desc>
18607 </param>
18608 </method>
18609
18610 <method name="deleteBandwidthGroup">
18611 <desc>
18612 Deletes a new bandwidth group.
18613 </desc>
18614
18615 <param name="name" type="wstring" dir="in">
18616 <desc>Name of the bandwidth group to delete.</desc>
18617 </param>
18618 </method>
18619
18620 <method name="getBandwidthGroup" const="yes">
18621 <desc>
18622 Get a bandwidth group by name.
18623 </desc>
18624
18625 <param name="name" type="wstring" dir="in">
18626 <desc>Name of the bandwidth group to get.</desc>
18627 </param>
18628 <param name="bandwidthGroup" type="IBandwidthGroup" dir="return">
18629 <desc>Where to store the bandwidth group on success.</desc>
18630 </param>
18631 </method>
18632
18633 <method name="getAllBandwidthGroups" const="yes">
18634 <desc>
18635 Get all managed bandwidth groups.
18636 </desc>
18637
18638 <param name="bandwidthGroups" type="IBandwidthGroup" dir="return" safearray="yes">
18639 <desc>The array of managed bandwidth groups.</desc>
18640 </param>
18641 </method>
18642 </interface>
18643
18644 <!--
18645 // IVirtualBoxClient
18646 /////////////////////////////////////////////////////////////////////////
18647 -->
18648
18649 <interface
18650 name="IVirtualBoxClient" extends="$unknown"
18651 uuid="d191281f-b0cb-4d83-a8fa-0d9fd6ba234c"
18652 wsmap="suppress"
18653 >
18654 <desc>
18655 Convenience interface for client applications. Treat this as a
18656 singleton, i.e. never create more than one instance of this interface.
18657
18658 At the moment only available for clients of the local API (not usable
18659 via the webservice). Once the session logic is redesigned this might
18660 change.
18661 </desc>
18662
18663 <attribute name="virtualBox" type="IVirtualBox" readonly="yes">
18664 <desc>
18665 Reference to the server-side API root object.
18666 </desc>
18667 </attribute>
18668
18669 <attribute name="session" type="ISession" readonly="yes">
18670 <desc>
18671 Create a new session object and return the reference to it.
18672 </desc>
18673 </attribute>
18674
18675 <attribute name="eventSource" type="IEventSource" readonly="yes">
18676 <desc>
18677 Event source for VirtualBoxClient events.
18678 </desc>
18679 </attribute>
18680
18681 <method name="checkMachineError">
18682 <desc>
18683 Perform error checking before using an <link to="IMachine"/> object.
18684 Generally useful before starting a VM and all other uses. If anything
18685 is not as it should be then this method will return an appropriate
18686 error.
18687 </desc>
18688
18689 <param name="machine" type="IMachine" dir="in">
18690 <desc>The machine object to check.</desc>
18691 </param>
18692 </method>
18693 </interface>
18694
18695 <!--
18696 // Events
18697 /////////////////////////////////////////////////////////////////////////
18698 -->
18699 <enum
18700 name="VBoxEventType"
18701 uuid="c51645b3-7108-4dce-b5a3-bbf5e4f69ed2"
18702 >
18703
18704 <desc>
18705 Type of an event.
18706 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
18707 </desc>
18708
18709 <const name="Invalid" value="0">
18710 <desc>
18711 Invalid event, must be first.
18712 </desc>
18713 </const>
18714
18715 <const name="Any" value="1">
18716 <desc>
18717 Wildcard for all events.
18718 Events of this type are never delivered, and only used in
18719 <link to="IEventSource::registerListener"/> call to simplify registration.
18720 </desc>
18721 </const>
18722
18723 <const name="Vetoable" value="2">
18724 <desc>
18725 Wildcard for all vetoable events. Events of this type are never delivered, and only
18726 used in <link to="IEventSource::registerListener"/> call to simplify registration.
18727 </desc>
18728 </const>
18729
18730 <const name="MachineEvent" value="3">
18731 <desc>
18732 Wildcard for all machine events. Events of this type are never delivered, and only used in
18733 <link to="IEventSource::registerListener"/> call to simplify registration.
18734 </desc>
18735 </const>
18736
18737 <const name="SnapshotEvent" value="4">
18738 <desc>
18739 Wildcard for all snapshot events. Events of this type are never delivered, and only used in
18740 <link to="IEventSource::registerListener"/> call to simplify registration.
18741 </desc>
18742 </const>
18743
18744 <const name="InputEvent" value="5">
18745 <desc>
18746 Wildcard for all input device (keyboard, mouse) events.
18747 Events of this type are never delivered, and only used in
18748 <link to="IEventSource::registerListener"/> call to simplify registration.
18749 </desc>
18750 </const>
18751
18752 <const name="LastWildcard" value="31">
18753 <desc>
18754 Last wildcard.
18755 </desc>
18756 </const>
18757
18758 <const name="OnMachineStateChanged" value="32">
18759 <desc>
18760 See <link to="IMachineStateChangedEvent">IMachineStateChangedEvent</link>.
18761 </desc>
18762 </const>
18763 <const name="OnMachineDataChanged" value="33">
18764 <desc>
18765 See <link to="IMachineDataChangedEvent">IMachineDataChangedEvent</link>.
18766 </desc>
18767 </const>
18768 <const name="OnExtraDataChanged" value="34">
18769 <desc>
18770 See <link to="IExtraDataChangedEvent">IExtraDataChangedEvent</link>.
18771 </desc>
18772 </const>
18773 <const name="OnExtraDataCanChange" value="35">
18774 <desc>
18775 See <link to="IExtraDataCanChangeEvent">IExtraDataCanChangeEvent</link>.
18776 </desc>
18777 </const>
18778 <const name="OnMediumRegistered" value="36">
18779 <desc>
18780 See <link to="IMediumRegisteredEvent">IMediumRegisteredEvent</link>.
18781 </desc>
18782 </const>
18783 <const name="OnMachineRegistered" value="37">
18784 <desc>
18785 See <link to="IMachineRegisteredEvent">IMachineRegisteredEvent</link>.
18786 </desc>
18787 </const>
18788 <const name="OnSessionStateChanged" value="38">
18789 <desc>
18790 See <link to="ISessionStateChangedEvent">ISessionStateChangedEvent</link>.
18791 </desc>
18792 </const>
18793 <const name="OnSnapshotTaken" value="39">
18794 <desc>
18795 See <link to="ISnapshotTakenEvent">ISnapshotTakenEvent</link>.
18796 </desc>
18797 </const>
18798 <const name="OnSnapshotDeleted" value="40">
18799 <desc>
18800 See <link to="ISnapshotDeletedEvent">ISnapshotDeletedEvent</link>.
18801 </desc>
18802 </const>
18803 <const name="OnSnapshotChanged" value="41">
18804 <desc>
18805 See <link to="ISnapshotChangedEvent">ISnapshotChangedEvent</link>.
18806 </desc>
18807 </const>
18808 <const name="OnGuestPropertyChanged" value="42">
18809 <desc>
18810 See <link to="IGuestPropertyChangedEvent">IGuestPropertyChangedEvent</link>.
18811 </desc>
18812 </const>
18813 <!-- Console events -->
18814 <const name="OnMousePointerShapeChanged" value="43">
18815 <desc>
18816 See <link to="IMousePointerShapeChangedEvent">IMousePointerShapeChangedEvent</link>.
18817 </desc>
18818 </const>
18819 <const name="OnMouseCapabilityChanged" value="44">
18820 <desc>
18821 See <link to="IMouseCapabilityChangedEvent">IMouseCapabilityChangedEvent</link>.
18822 </desc>
18823 </const>
18824 <const name="OnKeyboardLedsChanged" value="45">
18825 <desc>
18826 See <link to="IKeyboardLedsChangedEvent">IKeyboardLedsChangedEvent</link>.
18827 </desc>
18828 </const>
18829 <const name="OnStateChanged" value="46">
18830 <desc>
18831 See <link to="IStateChangedEvent">IStateChangedEvent</link>.
18832 </desc>
18833 </const>
18834 <const name="OnAdditionsStateChanged" value="47">
18835 <desc>
18836 See <link to="IAdditionsStateChangedEvent">IAdditionsStateChangedEvent</link>.
18837 </desc>
18838 </const>
18839 <const name="OnNetworkAdapterChanged" value="48">
18840 <desc>
18841 See <link to="INetworkAdapterChangedEvent">INetworkAdapterChangedEvent</link>.
18842 </desc>
18843 </const>
18844 <const name="OnSerialPortChanged" value="49">
18845 <desc>
18846 See <link to="ISerialPortChangedEvent">ISerialPortChangedEvent</link>.
18847 </desc>
18848 </const>
18849 <const name="OnParallelPortChanged" value="50">
18850 <desc>
18851 See <link to="IParallelPortChangedEvent">IParallelPortChangedEvent</link>.
18852 </desc>
18853 </const>
18854 <const name="OnStorageControllerChanged" value="51">
18855 <desc>
18856 See <link to="IStorageControllerChangedEvent">IStorageControllerChangedEvent</link>.
18857 </desc>
18858 </const>
18859 <const name="OnMediumChanged" value="52">
18860 <desc>
18861 See <link to="IMediumChangedEvent">IMediumChangedEvent</link>.
18862 </desc>
18863 </const>
18864 <const name="OnVRDEServerChanged" value="53">
18865 <desc>
18866 See <link to="IVRDEServerChangedEvent">IVRDEServerChangedEvent</link>.
18867 </desc>
18868 </const>
18869 <const name="OnUSBControllerChanged" value="54">
18870 <desc>
18871 See <link to="IUSBControllerChangedEvent">IUSBControllerChangedEvent</link>.
18872 </desc>
18873 </const>
18874 <const name="OnUSBDeviceStateChanged" value="55">
18875 <desc>
18876 See <link to="IUSBDeviceStateChangedEvent">IUSBDeviceStateChangedEvent</link>.
18877 </desc>
18878 </const>
18879 <const name="OnSharedFolderChanged" value="56">
18880 <desc>
18881 See <link to="ISharedFolderChangedEvent">ISharedFolderChangedEvent</link>.
18882 </desc>
18883 </const>
18884 <const name="OnRuntimeError" value="57">
18885 <desc>
18886 See <link to="IRuntimeErrorEvent">IRuntimeErrorEvent</link>.
18887 </desc>
18888 </const>
18889 <const name="OnCanShowWindow" value="58">
18890 <desc>
18891 See <link to="ICanShowWindowEvent">ICanShowWindowEvent</link>.
18892 </desc>
18893 </const>
18894 <const name="OnShowWindow" value="59">
18895 <desc>
18896 See <link to="IShowWindowEvent">IShowWindowEvent</link>.
18897 </desc>
18898 </const>
18899 <const name="OnCPUChanged" value="60">
18900 <desc>
18901 See <link to="ICPUChangedEvent">ICPUChangedEvent</link>.
18902 </desc>
18903 </const>
18904 <const name="OnVRDEServerInfoChanged" value="61">
18905 <desc>
18906 See <link to="IVRDEServerInfoChangedEvent">IVRDEServerInfoChangedEvent</link>.
18907 </desc>
18908 </const>
18909 <const name="OnEventSourceChanged" value="62">
18910 <desc>
18911 See <link to="IEventSourceChangedEvent">IEventSourceChangedEvent</link>.
18912 </desc>
18913 </const>
18914 <const name="OnCPUExecutionCapChanged" value="63">
18915 <desc>
18916 See <link to="ICPUExecutionCapChangedEvent">ICPUExecutionCapChangedEvent</link>.
18917 </desc>
18918 </const>
18919 <const name="OnGuestKeyboard" value="64">
18920 <desc>
18921 See <link to="IGuestKeyboardEvent">IGuestKeyboardEvent</link>.
18922 </desc>
18923 </const>
18924 <const name="OnGuestMouse" value="65">
18925 <desc>
18926 See <link to="IGuestMouseEvent">IGuestMouseEvent</link>.
18927 </desc>
18928 </const>
18929 <const name="OnNATRedirect" value="66">
18930 <desc>
18931 See <link to="INATRedirectEvent">INATRedirectEvent</link>.
18932 </desc>
18933 </const>
18934 <const name="OnHostPCIDevicePlug" value="67">
18935 <desc>
18936 See <link to="IHostPCIDevicePlugEvent">IHostPCIDevicePlugEvent</link>.
18937 </desc>
18938 </const>
18939 <const name="OnVBoxSVCAvailabilityChanged" value="68">
18940 <desc>
18941 See <link to="IVBoxSVCAvailabilityChangedEvent">IVBoxSVCAvailablityChangedEvent</link>.
18942 </desc>
18943 </const>
18944 <const name="OnBandwidthGroupChanged" value="69">
18945 <desc>
18946 See <link to="IBandwidthGroupChangedEvent">IBandwidthGroupChangedEvent</link>.
18947 </desc>
18948 </const>
18949 <const name="OnGuestMonitorChanged" value="70">
18950 <desc>
18951 See <link to="IGuestMonitorChangedEvent">IGuestMonitorChangedEvent</link>.
18952 </desc>
18953 </const>
18954 <const name="OnStorageDeviceChanged" value="71">
18955 <desc>
18956 See <link to="IStorageDeviceChangedEvent">IStorageDeviceChangedEvent</link>.
18957 </desc>
18958 </const>
18959 <const name="OnClipboardModeChanged" value="72">
18960 <desc>
18961 See <link to="IClipboardModeChangedEvent">IClipboardModeChangedEvent</link>.
18962 </desc>
18963 </const>
18964 <const name="OnDragAndDropModeChanged" value="73">
18965 <desc>
18966 See <link to="IDragAndDropModeChangedEvent">IDragAndDropModeChangedEvent</link>.
18967 </desc>
18968 </const>
18969 <const name="OnNATNetworkChanged" value="74">
18970 <desc>
18971 See <link to="INATNetworkChangedEvent">INATNetworkChangedEvent</link>.
18972 </desc>
18973 </const>
18974 <const name="OnNATNetworkStartStop" value="75">
18975 <desc>
18976 See <link to="INATNetworkStartStopEvent">INATNetworkStartStopEvent</link>.
18977 </desc>
18978 </const>
18979 <const name="OnNATNetworkAlter" value="76">
18980 <desc>
18981 See <link to="INATNetworkAlterEvent">INATNetworkAlterEvent</link>.
18982 </desc>
18983 </const>
18984 <const name="OnNATNetworkCreationDeletion" value="77">
18985 <desc>
18986 See <link to="INATNetworkCreationDeletionEvent">INATNetworkCreationDeletionEvent</link>.
18987 </desc>
18988 </const>
18989 <const name="OnNATNetworkSetting" value="78">
18990 <desc>
18991 See <link to="INATNetworkSettingEvent">INATNetworkSettingEvent</link>.
18992 </desc>
18993 </const>
18994 <const name="OnNATNetworkPortForward" value="79">
18995 <desc>
18996 See <link to="INATNetworkPortForwardEvent">INATNetworkPortForwardEvent</link>.
18997 </desc>
18998 </const>
18999 <const name="OnGuestSessionStateChanged" value="80">
19000 <desc>
19001 TODO
19002 </desc>
19003 </const>
19004 <const name="OnGuestSessionRegistered" value="81">
19005 <desc>
19006 TODO
19007 </desc>
19008 </const>
19009 <const name="OnGuestProcessRegistered" value="82">
19010 <desc>
19011 TODO
19012 </desc>
19013 </const>
19014 <const name="OnGuestProcessStateChanged" value="83">
19015 <desc>
19016 TODO
19017 </desc>
19018 </const>
19019 <const name="OnGuestProcessInputNotify" value="84">
19020 <desc>
19021 TODO
19022 </desc>
19023 </const>
19024 <const name="OnGuestProcessOutput" value="85">
19025 <desc>
19026 TODO
19027 </desc>
19028 </const>
19029 <const name="OnGuestFileRegistered" value="86">
19030 <desc>
19031 TODO
19032 </desc>
19033 </const>
19034 <const name="OnGuestFileStateChanged" value="87">
19035 <desc>
19036 TODO
19037 </desc>
19038 </const>
19039 <const name="OnGuestFileOffsetChanged" value="88">
19040 <desc>
19041 TODO
19042 </desc>
19043 </const>
19044 <const name="OnGuestFileRead" value="89">
19045 <desc>
19046 For performance reasons ... TODO
19047 </desc>
19048 </const>
19049 <const name="OnGuestFileWrite" value="90">
19050 <desc>
19051 For performance reasons ... TODO
19052 </desc>
19053 </const>
19054 <!-- Last event marker -->
19055 <const name="Last" value="91">
19056 <desc>
19057 Must be last event, used for iterations and structures relying on numerical event values.
19058 </desc>
19059 </const>
19060
19061 </enum>
19062
19063 <interface
19064 name="IEventSource" extends="$unknown"
19065 uuid="9b6e1aee-35f3-4f4d-b5bb-ed0ecefd8538"
19066 wsmap="managed"
19067 >
19068 <desc>
19069 Event source. Generally, any object which could generate events can be an event source,
19070 or aggregate one. To simplify using one-way protocols such as webservices running on top of HTTP(S),
19071 an event source can work with listeners in either active or passive mode. In active mode it is up to
19072 the IEventSource implementation to call <link to="IEventListener::handleEvent" />, in passive mode the
19073 event source keeps track of pending events for each listener and returns available events on demand.
19074
19075 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
19076 </desc>
19077
19078 <method name="createListener">
19079 <desc>
19080 Creates a new listener object, useful for passive mode.
19081 </desc>
19082 <param name="listener" type="IEventListener" dir="return"/>
19083 </method>
19084
19085 <method name="createAggregator">
19086 <desc>
19087 Creates an aggregator event source, collecting events from multiple sources.
19088 This way a single listener can listen for events coming from multiple sources,
19089 using a single blocking <link to="#getEvent"/> on the returned aggregator.
19090 </desc>
19091 <param name="subordinates" type="IEventSource" dir="in" safearray="yes">
19092 <desc>
19093 Subordinate event source this one aggregatres.
19094 </desc>
19095 </param>
19096 <param name="result" type="IEventSource" dir="return">
19097 <desc>
19098 Event source aggregating passed sources.
19099 </desc>
19100 </param>
19101 </method>
19102
19103 <method name="registerListener">
19104 <desc>
19105 Register an event listener.
19106
19107 <note>
19108 To avoid system overload, the VirtualBox server process checks if passive event
19109 listeners call <link to="IEventSource::getEvent"/> frequently enough. In the
19110 current implementation, if more than 500 pending events are detected for a passive
19111 event listener, it is forcefully unregistered by the system, and further
19112 <link to="#getEvent" /> calls will return @c VBOX_E_OBJECT_NOT_FOUND.
19113 </note>
19114 </desc>
19115 <param name="listener" type="IEventListener" dir="in">
19116 <desc>Listener to register.</desc>
19117 </param>
19118 <param name="interesting" type="VBoxEventType" dir="in" safearray="yes">
19119 <desc>
19120 Event types listener is interested in. One can use wildcards like -
19121 <link to="VBoxEventType_Any"/> to specify wildcards, matching more
19122 than one event.
19123 </desc>
19124 </param>
19125 <param name="active" type="boolean" dir="in">
19126 <desc>
19127 Which mode this listener is operating in.
19128 In active mode, <link to="IEventListener::handleEvent" /> is called directly.
19129 In passive mode, an internal event queue is created for this this IEventListener.
19130 For each event coming in, it is added to queues for all interested registered passive
19131 listeners. It is then up to the external code to call the listener's
19132 <link to="IEventListener::handleEvent" /> method. When done with an event, the
19133 external code must call <link to="#eventProcessed" />.
19134 </desc>
19135 </param>
19136 </method>
19137
19138 <method name="unregisterListener">
19139 <desc>
19140 Unregister an event listener. If listener is passive, and some waitable events are still
19141 in queue they are marked as processed automatically.
19142 </desc>
19143 <param name="listener" type="IEventListener" dir="in">
19144 <desc>Listener to unregister.</desc>
19145 </param>
19146 </method>
19147
19148 <method name="fireEvent">
19149 <desc>
19150 Fire an event for this source.
19151 </desc>
19152 <param name="event" type="IEvent" dir="in">
19153 <desc>Event to deliver.</desc>
19154 </param>
19155 <param name="timeout" type="long" dir="in">
19156 <desc>
19157 Maximum time to wait for event processing (if event is waitable), in ms;
19158 0 = no wait, -1 = indefinite wait.
19159 </desc>
19160 </param>
19161 <param name="result" type="boolean" dir="return">
19162 <desc>true if an event was delivered to all targets, or is non-waitable.</desc>
19163 </param>
19164 </method>
19165
19166 <method name="getEvent">
19167 <desc>
19168 Get events from this peer's event queue (for passive mode). Calling this method
19169 regularly is required for passive event listeners to avoid system overload;
19170 see <link to="IEventSource::registerListener" /> for details.
19171
19172 <result name="VBOX_E_OBJECT_NOT_FOUND">
19173 Listener is not registered, or autounregistered.
19174 </result>
19175 </desc>
19176 <param name="listener" type="IEventListener" dir="in">
19177 <desc>Which listener to get data for.</desc>
19178 </param>
19179 <param name="timeout" type="long" dir="in">
19180 <desc>
19181 Maximum time to wait for events, in ms;
19182 0 = no wait, -1 = indefinite wait.
19183 </desc>
19184 </param>
19185 <param name="event" type="IEvent" dir="return">
19186 <desc>Event retrieved, or null if none available.</desc>
19187 </param>
19188 </method>
19189
19190 <method name="eventProcessed">
19191 <desc>
19192 Must be called for waitable events after a particular listener finished its
19193 event processing. When all listeners of a particular event have called this
19194 method, the system will then call <link to="IEvent::setProcessed" />.
19195 </desc>
19196 <param name="listener" type="IEventListener" dir="in">
19197 <desc>Which listener processed event.</desc>
19198 </param>
19199 <param name="event" type="IEvent" dir="in">
19200 <desc>Which event.</desc>
19201 </param>
19202 </method>
19203
19204 </interface>
19205
19206 <interface
19207 name="IEventListener" extends="$unknown"
19208 uuid="67099191-32e7-4f6c-85ee-422304c71b90"
19209 wsmap="managed"
19210 >
19211 <desc>
19212 Event listener. An event listener can work in either active or passive mode, depending on the way
19213 it was registered.
19214 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
19215 </desc>
19216
19217 <method name="handleEvent">
19218 <desc>
19219 Handle event callback for active listeners. It is not called for
19220 passive listeners. After calling <link to="#handleEvent"/> on all active listeners
19221 and having received acknowledgement from all passive listeners via
19222 <link to="IEventSource::eventProcessed"/>, the event is marked as
19223 processed and <link to="IEvent::waitProcessed"/> will return
19224 immediately.
19225 </desc>
19226 <param name="event" type="IEvent" dir="in">
19227 <desc>Event available.</desc>
19228 </param>
19229 </method>
19230
19231 </interface>
19232
19233 <interface
19234 name="IEvent" extends="$unknown"
19235 uuid="0ca2adba-8f30-401b-a8cd-fe31dbe839c0"
19236 wsmap="managed"
19237 >
19238 <desc>
19239 Abstract parent interface for VirtualBox events. Actual events will typically implement
19240 a more specific interface which derives from this (see below).
19241
19242 <b>Introduction to VirtualBox events</b>
19243
19244 Generally speaking, an event (represented by this interface) signals that something
19245 happened, while an event listener (see <link to="IEventListener" />) represents an
19246 entity that is interested in certain events. In order for this to work with
19247 unidirectional protocols (i.e. web services), the concepts of passive and active
19248 listener are used.
19249
19250 Event consumers can register themselves as listeners, providing an array of
19251 events they are interested in (see <link to="IEventSource::registerListener" />).
19252 When an event triggers, the listener is notified about the event. The exact
19253 mechanism of the notification depends on whether the listener was registered as
19254 an active or passive listener:
19255
19256 <ul>
19257 <li>An active listener is very similar to a callback: it is a function invoked
19258 by the API. As opposed to the callbacks that were used in the API before
19259 VirtualBox 4.0 however, events are now objects with an interface hierarchy.
19260 </li>
19261
19262 <li>Passive listeners are somewhat trickier to implement, but do not require
19263 a client function to be callable, which is not an option with scripting
19264 languages or web service clients. Internally the <link to="IEventSource" />
19265 implementation maintains an event queue for each passive listener, and
19266 newly arrived events are put in this queue. When the listener calls
19267 <link to="IEventSource::getEvent"/>, first element from its internal event
19268 queue is returned. When the client completes processing of an event,
19269 the <link to="IEventSource::eventProcessed" /> function must be called,
19270 acknowledging that the event was processed. It supports implementing
19271 waitable events. On passive listener unregistration, all events from its
19272 queue are auto-acknowledged.
19273 </li>
19274 </ul>
19275
19276 Waitable events are useful in situations where the event generator wants to track
19277 delivery or a party wants to wait until all listeners have completed the event. A
19278 typical example would be a vetoable event (see <link to="IVetoEvent" />) where a
19279 listeners might veto a certain action, and thus the event producer has to make
19280 sure that all listeners have processed the event and not vetoed before taking
19281 the action.
19282
19283 A given event may have both passive and active listeners at the same time.
19284
19285 <b>Using events</b>
19286
19287 Any VirtualBox object capable of producing externally visible events provides an
19288 @c eventSource read-only attribute, which is of the type <link to="IEventSource" />.
19289 This event source object is notified by VirtualBox once something has happened, so
19290 consumers may register event listeners with this event source. To register a listener,
19291 an object implementing the <link to="IEventListener" /> interface must be provided.
19292 For active listeners, such an object is typically created by the consumer, while for
19293 passive listeners <link to="IEventSource::createListener" /> should be used. Please
19294 note that a listener created with <link to="IEventSource::createListener"/> must not be used as an active listener.
19295
19296 Once created, the listener must be registered to listen for the desired events
19297 (see <link to="IEventSource::registerListener" />), providing an array of
19298 <link to="VBoxEventType" /> enums. Those elements can either be the individual
19299 event IDs or wildcards matching multiple event IDs.
19300
19301 After registration, the callback's <link to="IEventListener::handleEvent" /> method is
19302 called automatically when the event is triggered, while passive listeners have to call
19303 <link to="IEventSource::getEvent" /> and <link to="IEventSource::eventProcessed" /> in
19304 an event processing loop.
19305
19306 The IEvent interface is an abstract parent interface for all such VirtualBox events
19307 coming in. As a result, the standard use pattern inside <link to="IEventListener::handleEvent" />
19308 or the event processing loop is to check the <link to="#type" /> attribute of the event and
19309 then cast to the appropriate specific interface using @c QueryInterface().
19310 </desc>
19311
19312 <attribute name="type" readonly="yes" type="VBoxEventType">
19313 <desc>
19314 Event type.
19315 </desc>
19316 </attribute>
19317
19318 <attribute name="source" readonly="yes" type="IEventSource">
19319 <desc>
19320 Source of this event.
19321 </desc>
19322 </attribute>
19323
19324 <attribute name="waitable" readonly="yes" type="boolean">
19325 <desc>
19326 If we can wait for this event being processed. If false, <link to="#waitProcessed"/> returns immediately,
19327 and <link to="#setProcessed"/> doesn't make sense. Non-waitable events are generally better performing,
19328 as no additional overhead associated with waitability imposed.
19329 Waitable events are needed when one need to be able to wait for particular event processed,
19330 for example for vetoable changes, or if event refers to some resource which need to be kept immutable
19331 until all consumers confirmed events.
19332 </desc>
19333 </attribute>
19334
19335 <method name="setProcessed">
19336 <desc>
19337 Internal method called by the system when all listeners of a particular event have called
19338 <link to="IEventSource::eventProcessed" />. This should not be called by client code.
19339 </desc>
19340 </method>
19341
19342 <method name="waitProcessed">
19343 <desc>
19344 Wait until time outs, or this event is processed. Event must be waitable for this operation to have
19345 described semantics, for non-waitable returns true immediately.
19346 </desc>
19347 <param name="timeout" type="long" dir="in">
19348 <desc>
19349 Maximum time to wait for event processeing, in ms;
19350 0 = no wait, -1 = indefinite wait.
19351 </desc>
19352 </param>
19353 <param name="result" type="boolean" dir="return">
19354 <desc>If this event was processed before timeout.</desc>
19355 </param>
19356 </method>
19357 </interface>
19358
19359
19360 <interface
19361 name="IReusableEvent" extends="IEvent"
19362 uuid="69bfb134-80f6-4266-8e20-16371f68fa25"
19363 wsmap="managed"
19364 >
19365 <desc>Base abstract interface for all reusable events.</desc>
19366
19367 <attribute name="generation" readonly="yes" type="unsigned long">
19368 <desc>Current generation of event, incremented on reuse.</desc>
19369 </attribute>
19370
19371 <method name="reuse">
19372 <desc>
19373 Marks an event as reused, increments 'generation', fields shall no
19374 longer be considered valid.
19375 </desc>
19376 </method>
19377 </interface>
19378
19379 <interface
19380 name="IMachineEvent" extends="IEvent"
19381 uuid="92ed7b1a-0d96-40ed-ae46-a564d484325e"
19382 wsmap="managed" id="MachineEvent"
19383 >
19384 <desc>Base abstract interface for all machine events.</desc>
19385
19386 <attribute name="machineId" readonly="yes" type="uuid" mod="string">
19387 <desc>ID of the machine this event relates to.</desc>
19388 </attribute>
19389
19390 </interface>
19391
19392 <interface
19393 name="IMachineStateChangedEvent" extends="IMachineEvent"
19394 uuid="5748F794-48DF-438D-85EB-98FFD70D18C9"
19395 wsmap="managed" autogen="VBoxEvent" id="OnMachineStateChanged"
19396 >
19397 <desc>Machine state change event.</desc>
19398
19399 <attribute name="state" readonly="yes" type="MachineState">
19400 <desc>New execution state.</desc>
19401 </attribute>
19402 </interface>
19403
19404 <interface
19405 name="IMachineDataChangedEvent" extends="IMachineEvent"
19406 uuid="abe94809-2e88-4436-83d7-50f3e64d0503"
19407 wsmap="managed" autogen="VBoxEvent" id="OnMachineDataChanged"
19408 >
19409 <desc>
19410 Any of the settings of the given machine has changed.
19411 </desc>
19412
19413 <attribute name="temporary" readonly="yes" type="boolean">
19414 <desc>@c true if the settings change is temporary. All permanent
19415 settings changes will trigger an event, and only temporary settings
19416 changes for running VMs will trigger an event. Note: sending events
19417 for temporary changes is NOT IMPLEMENTED.</desc>
19418 </attribute>
19419 </interface>
19420
19421 <interface
19422 name="IMediumRegisteredEvent" extends="IEvent"
19423 uuid="53fac49a-b7f1-4a5a-a4ef-a11dd9c2a458"
19424 wsmap="managed" autogen="VBoxEvent" id="OnMediumRegistered"
19425 >
19426 <desc>
19427 The given medium was registered or unregistered
19428 within this VirtualBox installation.
19429 </desc>
19430
19431 <attribute name="mediumId" readonly="yes" type="uuid" mod="string">
19432 <desc>ID of the medium this event relates to.</desc>
19433 </attribute>
19434
19435 <attribute name="mediumType" readonly="yes" type="DeviceType">
19436 <desc>Type of the medium this event relates to.</desc>
19437 </attribute>
19438
19439 <attribute name="registered" type="boolean" readonly="yes">
19440 <desc>
19441 If @c true, the medium was registered, otherwise it was
19442 unregistered.
19443 </desc>
19444 </attribute>
19445 </interface>
19446
19447 <interface
19448 name="IMachineRegisteredEvent" extends="IMachineEvent"
19449 uuid="c354a762-3ff2-4f2e-8f09-07382ee25088"
19450 wsmap="managed" autogen="VBoxEvent" id="OnMachineRegistered"
19451 >
19452 <desc>
19453 The given machine was registered or unregistered
19454 within this VirtualBox installation.
19455 </desc>
19456
19457 <attribute name="registered" type="boolean" readonly="yes">
19458 <desc>
19459 If @c true, the machine was registered, otherwise it was
19460 unregistered.
19461 </desc>
19462 </attribute>
19463 </interface>
19464
19465 <interface
19466 name="ISessionStateChangedEvent" extends="IMachineEvent"
19467 uuid="714a3eef-799a-4489-86cd-fe8e45b2ff8e"
19468 wsmap="managed" autogen="VBoxEvent" id="OnSessionStateChanged"
19469 >
19470 <desc>
19471 The state of the session for the given machine was changed.
19472 <see><link to="IMachine::sessionState"/></see>
19473 </desc>
19474
19475 <attribute name="state" type="SessionState" readonly="yes">
19476 <desc>
19477 New session state.
19478 </desc>
19479 </attribute>
19480 </interface>
19481
19482 <interface
19483 name="IGuestPropertyChangedEvent" extends="IMachineEvent"
19484 uuid="3f63597a-26f1-4edb-8dd2-6bddd0912368"
19485 wsmap="managed" autogen="VBoxEvent" id="OnGuestPropertyChanged"
19486 >
19487 <desc>
19488 Notification when a guest property has changed.
19489 </desc>
19490
19491 <attribute name="name" readonly="yes" type="wstring">
19492 <desc>
19493 The name of the property that has changed.
19494 </desc>
19495 </attribute>
19496
19497 <attribute name="value" readonly="yes" type="wstring">
19498 <desc>
19499 The new property value.
19500 </desc>
19501 </attribute>
19502
19503 <attribute name="flags" readonly="yes" type="wstring">
19504 <desc>
19505 The new property flags.
19506 </desc>
19507 </attribute>
19508
19509 </interface>
19510
19511 <interface
19512 name="ISnapshotEvent" extends="IMachineEvent"
19513 uuid="21637b0e-34b8-42d3-acfb-7e96daf77c22"
19514 wsmap="managed" id="SnapshotEvent"
19515 >
19516 <desc>Base interface for all snapshot events.</desc>
19517
19518 <attribute name="snapshotId" readonly="yes" type="uuid" mod="string">
19519 <desc>ID of the snapshot this event relates to.</desc>
19520 </attribute>
19521
19522 </interface>
19523
19524 <interface
19525 name="ISnapshotTakenEvent" extends="ISnapshotEvent"
19526 uuid="d27c0b3d-6038-422c-b45e-6d4a0503d9f1"
19527 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotTaken"
19528 >
19529 <desc>
19530 A new snapshot of the machine has been taken.
19531 <see><link to="ISnapshot"/></see>
19532 </desc>
19533 </interface>
19534
19535 <interface
19536 name="ISnapshotDeletedEvent" extends="ISnapshotEvent"
19537 uuid="c48f3401-4a9e-43f4-b7a7-54bd285e22f4"
19538 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotDeleted"
19539 >
19540 <desc>
19541 Snapshot of the given machine has been deleted.
19542
19543 <note>
19544 This notification is delivered <b>after</b> the snapshot
19545 object has been uninitialized on the server (so that any
19546 attempt to call its methods will return an error).
19547 </note>
19548
19549 <see><link to="ISnapshot"/></see>
19550 </desc>
19551 </interface>
19552
19553 <interface
19554 name="ISnapshotChangedEvent" extends="ISnapshotEvent"
19555 uuid="07541941-8079-447a-a33e-47a69c7980db"
19556 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotChanged"
19557 >
19558 <desc>
19559 Snapshot properties (name and/or description) have been changed.
19560 <see><link to="ISnapshot"/></see>
19561 </desc>
19562 </interface>
19563
19564 <interface
19565 name="IMousePointerShapeChangedEvent" extends="IEvent"
19566 uuid="a6dcf6e8-416b-4181-8c4a-45ec95177aef"
19567 wsmap="managed" autogen="VBoxEvent" id="OnMousePointerShapeChanged"
19568 >
19569 <desc>
19570 Notification when the guest mouse pointer shape has
19571 changed. The new shape data is given.
19572 </desc>
19573
19574 <attribute name="visible" type="boolean" readonly="yes">
19575 <desc>
19576 Flag whether the pointer is visible.
19577 </desc>
19578 </attribute>
19579 <attribute name="alpha" type="boolean" readonly="yes">
19580 <desc>
19581 Flag whether the pointer has an alpha channel.
19582 </desc>
19583 </attribute>
19584 <attribute name="xhot" type="unsigned long" readonly="yes">
19585 <desc>
19586 The pointer hot spot X coordinate.
19587 </desc>
19588 </attribute>
19589 <attribute name="yhot" type="unsigned long" readonly="yes">
19590 <desc>
19591 The pointer hot spot Y coordinate.
19592 </desc>
19593 </attribute>
19594 <attribute name="width" type="unsigned long" readonly="yes">
19595 <desc>
19596 Width of the pointer shape in pixels.
19597 </desc>
19598 </attribute>
19599 <attribute name="height" type="unsigned long" readonly="yes">
19600 <desc>
19601 Height of the pointer shape in pixels.
19602 </desc>
19603 </attribute>
19604 <attribute name="shape" type="octet" safearray="yes" readonly="yes">
19605 <desc>
19606 Shape buffer arrays.
19607
19608 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
19609 followed by a 32-bpp XOR (color) mask.
19610
19611 For pointers without alpha channel the XOR mask pixels are 32
19612 bit values: (lsb)BGR0(msb). For pointers with alpha channel
19613 the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
19614
19615 An AND mask is used for pointers with alpha channel, so if the
19616 callback does not support alpha, the pointer could be
19617 displayed as a normal color pointer.
19618
19619 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
19620 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
19621 height</tt>. The padding bits at the end of each scanline are
19622 undefined.
19623
19624 The XOR mask follows the AND mask on the next 4-byte aligned
19625 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
19626 Bytes in the gap between the AND and the XOR mask are undefined.
19627 The XOR mask scanlines have no gap between them and the size of
19628 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
19629
19630 <note>
19631 If @a shape is 0, only the pointer visibility is changed.
19632 </note>
19633 </desc>
19634 </attribute>
19635 </interface>
19636
19637 <interface
19638 name="IMouseCapabilityChangedEvent" extends="IEvent"
19639 uuid="d633ad48-820c-4207-b46c-6bd3596640d5"
19640 wsmap="managed" autogen="VBoxEvent" id="OnMouseCapabilityChanged"
19641 >
19642 <desc>
19643 Notification when the mouse capabilities reported by the
19644 guest have changed. The new capabilities are passed.
19645 </desc>
19646 <attribute name="supportsAbsolute" type="boolean" readonly="yes">
19647 <desc>
19648 Supports absolute coordinates.
19649 </desc>
19650 </attribute>
19651 <attribute name="supportsRelative" type="boolean" readonly="yes">
19652 <desc>
19653 Supports relative coordinates.
19654 </desc>
19655 </attribute>
19656 <attribute name="needsHostCursor" type="boolean" readonly="yes">
19657 <desc>
19658 If host cursor is needed.
19659 </desc>
19660 </attribute>
19661 </interface>
19662
19663 <interface
19664 name="IKeyboardLedsChangedEvent" extends="IEvent"
19665 uuid="6DDEF35E-4737-457B-99FC-BC52C851A44F"
19666 wsmap="managed" autogen="VBoxEvent" id="OnKeyboardLedsChanged"
19667 >
19668 <desc>
19669 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
19670 to alter the state of the keyboard LEDs.
19671 </desc>
19672 <attribute name="numLock" type="boolean" readonly="yes">
19673 <desc>
19674 NumLock status.
19675 </desc>
19676 </attribute>
19677 <attribute name="capsLock" type="boolean" readonly="yes">
19678 <desc>
19679 CapsLock status.
19680 </desc>
19681 </attribute>
19682 <attribute name="scrollLock" type="boolean" readonly="yes">
19683 <desc>
19684 ScrollLock status.
19685 </desc>
19686 </attribute>
19687 </interface>
19688
19689 <interface
19690 name="IStateChangedEvent" extends="IEvent"
19691 uuid="4376693C-CF37-453B-9289-3B0F521CAF27"
19692 wsmap="managed" autogen="VBoxEvent" id="OnStateChanged"
19693 >
19694 <desc>
19695 Notification when the execution state of the machine has changed.
19696 The new state is given.
19697 </desc>
19698 <attribute name="state" type="MachineState" readonly="yes">
19699 <desc>
19700 New machine state.
19701 </desc>
19702 </attribute>
19703 </interface>
19704
19705 <interface
19706 name="IAdditionsStateChangedEvent" extends="IEvent"
19707 uuid="D70F7915-DA7C-44C8-A7AC-9F173490446A"
19708 wsmap="managed" autogen="VBoxEvent" id="OnAdditionsStateChanged"
19709 >
19710 <desc>
19711 Notification when a Guest Additions property changes.
19712 Interested callees should query IGuest attributes to
19713 find out what has changed.
19714 </desc>
19715 </interface>
19716
19717 <interface
19718 name="INetworkAdapterChangedEvent" extends="IEvent"
19719 uuid="08889892-1EC6-4883-801D-77F56CFD0103"
19720 wsmap="managed" autogen="VBoxEvent" id="OnNetworkAdapterChanged"
19721 >
19722 <desc>
19723 Notification when a property of one of the
19724 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
19725 changes. Interested callees should use INetworkAdapter methods and
19726 attributes to find out what has changed.
19727 </desc>
19728 <attribute name="networkAdapter" type="INetworkAdapter" readonly="yes">
19729 <desc>
19730 Network adapter that is subject to change.
19731 </desc>
19732 </attribute>
19733 </interface>
19734
19735 <interface
19736 name="ISerialPortChangedEvent" extends="IEvent"
19737 uuid="3BA329DC-659C-488B-835C-4ECA7AE71C6C"
19738 wsmap="managed" autogen="VBoxEvent" id="OnSerialPortChanged"
19739 >
19740 <desc>
19741 Notification when a property of one of the
19742 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
19743 Interested callees should use ISerialPort methods and attributes
19744 to find out what has changed.
19745 </desc>
19746 <attribute name="serialPort" type="ISerialPort" readonly="yes">
19747 <desc>
19748 Serial port that is subject to change.
19749 </desc>
19750 </attribute>
19751 </interface>
19752
19753 <interface
19754 name="IParallelPortChangedEvent" extends="IEvent"
19755 uuid="813C99FC-9849-4F47-813E-24A75DC85615"
19756 wsmap="managed" autogen="VBoxEvent" id="OnParallelPortChanged"
19757 >
19758 <desc>
19759 Notification when a property of one of the
19760 virtual <link to="IMachine::getParallelPort">parallel ports</link>
19761 changes. Interested callees should use ISerialPort methods and
19762 attributes to find out what has changed.
19763 </desc>
19764 <attribute name="parallelPort" type="IParallelPort" readonly="yes">
19765 <desc>
19766 Parallel port that is subject to change.
19767 </desc>
19768 </attribute>
19769 </interface>
19770
19771 <interface
19772 name="IStorageControllerChangedEvent" extends="IEvent"
19773 uuid="715212BF-DA59-426E-8230-3831FAA52C56"
19774 wsmap="managed" autogen="VBoxEvent" id="OnStorageControllerChanged"
19775 >
19776 <desc>
19777 Notification when a
19778 <link to="IMachine::mediumAttachments">medium attachment</link>
19779 changes.
19780 </desc>
19781 </interface>
19782
19783 <interface
19784 name="IMediumChangedEvent" extends="IEvent"
19785 uuid="0FE2DA40-5637-472A-9736-72019EABD7DE"
19786 wsmap="managed" autogen="VBoxEvent" id="OnMediumChanged"
19787 >
19788 <desc>
19789 Notification when a
19790 <link to="IMachine::mediumAttachments">medium attachment</link>
19791 changes.
19792 </desc>
19793 <attribute name="mediumAttachment" type="IMediumAttachment" readonly="yes">
19794 <desc>
19795 Medium attachment that is subject to change.
19796 </desc>
19797 </attribute>
19798 </interface>
19799
19800 <interface
19801 name="IClipboardModeChangedEvent" extends="IEvent"
19802 uuid="cac21692-7997-4595-a731-3a509db604e5"
19803 wsmap="managed" autogen="VBoxEvent" id="OnClipboardModeChanged"
19804 >
19805 <desc>
19806 Notification when the shared clipboard mode changes.
19807 </desc>
19808 <attribute name="clipboardMode" type="ClipboardMode" readonly="yes">
19809 <desc>
19810 The new clipboard mode.
19811 </desc>
19812 </attribute>
19813 </interface>
19814
19815 <interface
19816 name="IDragAndDropModeChangedEvent" extends="IEvent"
19817 uuid="e90b8850-ac8e-4dff-8059-4100ae2c3c3d"
19818 wsmap="managed" autogen="VBoxEvent" id="OnDragAndDropModeChanged"
19819 >
19820 <desc>
19821 Notification when the drag'n'drop mode changes.
19822 </desc>
19823 <attribute name="dragAndDropMode" type="DragAndDropMode" readonly="yes">
19824 <desc>
19825 The new drag'n'drop mode.
19826 </desc>
19827 </attribute>
19828 </interface>
19829
19830 <interface
19831 name="ICPUChangedEvent" extends="IEvent"
19832 uuid="4da2dec7-71b2-4817-9a64-4ed12c17388e"
19833 wsmap="managed" autogen="VBoxEvent" id="OnCPUChanged"
19834 >
19835 <desc>
19836 Notification when a CPU changes.
19837 </desc>
19838 <attribute name="CPU" type="unsigned long" readonly="yes">
19839 <desc>
19840 The CPU which changed.
19841 </desc>
19842 </attribute>
19843 <attribute name="add" type="boolean" readonly="yes">
19844 <desc>
19845 Flag whether the CPU was added or removed.
19846 </desc>
19847 </attribute>
19848 </interface>
19849
19850 <interface
19851 name="ICPUExecutionCapChangedEvent" extends="IEvent"
19852 uuid="dfa7e4f5-b4a4-44ce-85a8-127ac5eb59dc"
19853 wsmap="managed" autogen="VBoxEvent" id="OnCPUExecutionCapChanged"
19854 >
19855 <desc>
19856 Notification when the CPU execution cap changes.
19857 </desc>
19858 <attribute name="executionCap" type="unsigned long" readonly="yes">
19859 <desc>
19860 The new CPU execution cap value. (1-100)
19861 </desc>
19862 </attribute>
19863 </interface>
19864
19865 <interface
19866 name="IGuestKeyboardEvent" extends="IEvent"
19867 uuid="88394258-7006-40d4-b339-472ee3801844"
19868 wsmap="managed" autogen="VBoxEvent" id="OnGuestKeyboard"
19869 >
19870 <desc>
19871 Notification when guest keyboard event happens.
19872 </desc>
19873 <attribute name="scancodes" type="long" safearray="yes" readonly="yes">
19874 <desc>
19875 Array of scancodes.
19876 </desc>
19877 </attribute>
19878 </interface>
19879
19880 <interface
19881 name="IGuestMouseEvent" extends="IReusableEvent"
19882 uuid="1f85d35c-c524-40ff-8e98-307000df0992"
19883 wsmap="managed" autogen="VBoxEvent" id="OnGuestMouse"
19884 >
19885 <desc>
19886 Notification when guest mouse event happens.
19887 </desc>
19888
19889 <attribute name="absolute" type="boolean" readonly="yes">
19890 <desc>
19891 If this event is relative or absolute.
19892 </desc>
19893 </attribute>
19894
19895 <attribute name="x" type="long" readonly="yes">
19896 <desc>
19897 New X position, or X delta.
19898 </desc>
19899 </attribute>
19900
19901 <attribute name="y" type="long" readonly="yes">
19902 <desc>
19903 New Y position, or Y delta.
19904 </desc>
19905 </attribute>
19906
19907 <attribute name="z" type="long" readonly="yes">
19908 <desc>
19909 Z delta.
19910 </desc>
19911 </attribute>
19912
19913 <attribute name="w" type="long" readonly="yes">
19914 <desc>
19915 W delta.
19916 </desc>
19917 </attribute>
19918
19919 <attribute name="buttons" type="long" readonly="yes">
19920 <desc>
19921 Button state bitmask.
19922 </desc>
19923 </attribute>
19924
19925 </interface>
19926
19927 <interface
19928 name="IGuestSessionEvent" extends="IEvent"
19929 uuid="b9acd33f-647d-45ac-8fe9-f49b3183ba37"
19930 wsmap="managed"
19931 >
19932 <desc>Base abstract interface for all guest session events.</desc>
19933
19934 <attribute name="session" type="IGuestSession" readonly="yes">
19935 <desc>Guest session that is subject to change.</desc>
19936 </attribute>
19937
19938 </interface>
19939
19940 <interface
19941 name="IGuestSessionStateChangedEvent" extends="IGuestSessionEvent"
19942 uuid="9c288479-6564-451d-9574-7e7ac0b7e443"
19943 wsmap="managed" autogen="VBoxEvent" id="OnGuestSessionStateChanged"
19944 >
19945 <desc>
19946 TODO
19947 </desc>
19948
19949 <attribute name="id" type="unsigned long" readonly="yes">
19950 <desc>
19951 TODO
19952 </desc>
19953 </attribute>
19954 <attribute name="status" type="GuestSessionStatus" readonly="yes">
19955 <desc>
19956 TODO
19957 </desc>
19958 </attribute>
19959 <attribute name="error" type="IGuestErrorInfo" readonly="yes">
19960 <desc>
19961 TODO
19962 </desc>
19963 </attribute>
19964
19965 </interface>
19966
19967 <interface
19968 name="IGuestSessionRegisteredEvent" extends="IGuestSessionEvent"
19969 uuid="b79de686-eabd-4fa6-960a-f1756c99ea1c"
19970 wsmap="managed" autogen="VBoxEvent" id="OnGuestSessionRegistered"
19971 >
19972 <desc>
19973 TODO
19974 </desc>
19975
19976 <attribute name="registered" type="boolean" readonly="yes">
19977 <desc>
19978 TODO
19979 </desc>
19980 </attribute>
19981
19982 </interface>
19983
19984 <interface
19985 name="IGuestProcessEvent" extends="IGuestSessionEvent"
19986 uuid="2405f0e5-6588-40a3-9b0a-68c05ba52c4b"
19987 wsmap="managed"
19988 >
19989 <desc>Base abstract interface for all guest process events.</desc>
19990
19991 <attribute name="process" type="IGuestProcess" readonly="yes">
19992 <desc>
19993 TODO
19994 </desc>
19995 </attribute>
19996 <attribute name="pid" type="unsigned long" readonly="yes">
19997 <desc>
19998 TODO
19999 </desc>
20000 </attribute>
20001
20002 </interface>
20003
20004 <interface
20005 name="IGuestProcessRegisteredEvent" extends="IGuestProcessEvent"
20006 uuid="1d89e2b3-c6ea-45b6-9d43-dc6f70cc9f02"
20007 wsmap="managed" autogen="VBoxEvent" id="OnGuestProcessRegistered"
20008 >
20009 <desc>
20010 TODO
20011 </desc>
20012
20013 <attribute name="registered" type="boolean" readonly="yes">
20014 <desc>
20015 TODO
20016 </desc>
20017 </attribute>
20018
20019 </interface>
20020
20021 <interface
20022 name="IGuestProcessStateChangedEvent" extends="IGuestProcessEvent"
20023 uuid="9360d372-d4d9-4948-8e67-e0a0e603acf9"
20024 wsmap="managed" autogen="VBoxEvent" id="OnGuestProcessStateChanged"
20025 >
20026 <desc>
20027 TODO
20028 </desc>
20029
20030 <attribute name="status" type="ProcessStatus" readonly="yes">
20031 <desc>
20032 TODO
20033 </desc>
20034 </attribute>
20035 <attribute name="error" type="IGuestErrorInfo" readonly="yes">
20036 <desc>
20037 TODO
20038 </desc>
20039 </attribute>
20040
20041 </interface>
20042
20043 <interface
20044 name="IGuestProcessIOEvent" extends="IGuestProcessEvent"
20045 uuid="9ea9227c-e9bb-49b3-bfc7-c5171e93ef38"
20046 wsmap="managed"
20047 >
20048 <desc>
20049 Base abstract interface for all guest process input/output (IO) events.
20050 </desc>
20051
20052 <attribute name="handle" type="unsigned long" readonly="yes">
20053 <desc>
20054 TODO
20055 </desc>
20056 </attribute>
20057
20058 <attribute name="processed" type="unsigned long" readonly="yes">
20059 <desc>
20060 TODO
20061 </desc>
20062 </attribute>
20063
20064 </interface>
20065
20066 <interface
20067 name="IGuestProcessInputNotifyEvent" extends="IGuestProcessIOEvent"
20068 uuid="0de887f2-b7db-4616-aac6-cfb94d89ba78"
20069 wsmap="managed" autogen="VBoxEvent" id="OnGuestProcessInputNotify"
20070 >
20071 <desc>
20072 TODO
20073 </desc>
20074
20075 <attribute name="status" type="ProcessInputStatus" readonly="yes">
20076 <desc>
20077 TODO
20078 </desc>
20079 </attribute>
20080
20081 </interface>
20082
20083 <interface
20084 name="IGuestProcessOutputEvent" extends="IGuestProcessIOEvent"
20085 uuid="d3d5f1ee-bcb2-4905-a7ab-cc85448a742b"
20086 wsmap="managed" autogen="VBoxEvent" id="OnGuestProcessOutput"
20087 >
20088 <desc>
20089 TODO
20090 </desc>
20091
20092 <attribute name="data" type="octet" safearray="yes" readonly="yes">
20093 <desc>
20094 TODO
20095 </desc>
20096 </attribute>
20097
20098 </interface>
20099
20100 <interface
20101 name="IGuestFileEvent" extends="IGuestSessionEvent"
20102 uuid="c8adb7b0-057d-4391-b928-f14b06b710c5"
20103 wsmap="managed"
20104 >
20105 <desc>Base abstract interface for all guest file events.</desc>
20106
20107 <attribute name="file" type="IGuestFile" readonly="yes">
20108 <desc>
20109 TODO
20110 </desc>
20111 </attribute>
20112
20113 </interface>
20114
20115 <interface
20116 name="IGuestFileRegisteredEvent" extends="IGuestFileEvent"
20117 uuid="d0d93830-70a2-487e-895e-d3fc9679f7b3"
20118 wsmap="managed" autogen="VBoxEvent" id="OnGuestFileRegistered"
20119 >
20120 <desc>
20121 TODO
20122 </desc>
20123
20124 <attribute name="registered" type="boolean" readonly="yes">
20125 <desc>
20126 TODO
20127 </desc>
20128 </attribute>
20129
20130 </interface>
20131
20132 <interface
20133 name="IGuestFileStateChangedEvent" extends="IGuestFileEvent"
20134 uuid="841951c4-4df3-4ee1-bb99-91e5761c18ff"
20135 wsmap="managed" autogen="VBoxEvent" id="OnGuestFileStateChanged"
20136 >
20137 <desc>
20138 TODO
20139 </desc>
20140
20141 <attribute name="status" type="FileStatus" readonly="yes">
20142 <desc>
20143 TODO
20144 </desc>
20145 </attribute>
20146 <attribute name="error" type="IGuestErrorInfo" readonly="yes">
20147 <desc>
20148 TODO
20149 </desc>
20150 </attribute>
20151 <!-- Note: No events for reads/writes for performance reasons.
20152 See dedidcated events IGuestFileReadEvent and
20153 IGuestFileWriteEvent. -->
20154
20155 </interface>
20156
20157 <interface
20158 name="IGuestFileIOEvent" extends="IGuestFileEvent"
20159 uuid="b5191a7c-9536-4ef8-820e-3b0e17e5bbc8"
20160 wsmap="managed"
20161 >
20162 <desc>
20163 Base abstract interface for all guest file input/output (IO) events.
20164 </desc>
20165
20166 <attribute name="offset" type="long long" readonly="yes">
20167 <desc>
20168 TODO
20169 </desc>
20170 </attribute>
20171 <attribute name="processed" type="unsigned long" readonly="yes">
20172 <desc>
20173 TODO
20174 </desc>
20175
20176 </attribute>
20177
20178 </interface>
20179
20180 <interface
20181 name="IGuestFileOffsetChangedEvent" extends="IGuestFileIOEvent"
20182 uuid="e8f79a21-1207-4179-94cf-ca250036308f"
20183 wsmap="managed" autogen="VBoxEvent" id="OnGuestFileOffsetChanged"
20184 >
20185 <desc>
20186 TODO
20187 </desc>
20188
20189 </interface>
20190
20191 <interface
20192 name="IGuestFileReadEvent" extends="IGuestFileIOEvent"
20193 uuid="4ee3cbcb-486f-40db-9150-deee3fd24189"
20194 wsmap="managed" autogen="VBoxEvent" id="OnGuestFileRead"
20195 >
20196 <desc>
20197 TODO
20198 </desc>
20199
20200 <attribute name="data" type="octet" safearray="yes" readonly="yes">
20201 <desc>
20202 TODO
20203 </desc>
20204 </attribute>
20205
20206 </interface>
20207
20208 <interface
20209 name="IGuestFileWriteEvent" extends="IGuestFileIOEvent"
20210 uuid="e062a915-3cf5-4c0a-bc90-9b8d4cc94d89"
20211 wsmap="managed" autogen="VBoxEvent" id="OnGuestFileWrite"
20212 >
20213 <desc>
20214 TODO
20215 </desc>
20216
20217 </interface>
20218
20219 <interface
20220 name="IVRDEServerChangedEvent" extends="IEvent"
20221 uuid="a06fd66a-3188-4c8c-8756-1395e8cb691c"
20222 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerChanged"
20223 >
20224 <desc>
20225 Notification when a property of the
20226 <link to="IMachine::VRDEServer">VRDE server</link> changes.
20227 Interested callees should use IVRDEServer methods and attributes to
20228 find out what has changed.
20229 </desc>
20230 </interface>
20231
20232 <interface
20233 name="IVRDEServerInfoChangedEvent" extends="IEvent"
20234 uuid="dd6a1080-e1b7-4339-a549-f0878115596e"
20235 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerInfoChanged"
20236 >
20237 <desc>
20238 Notification when the status of the VRDE server changes. Interested callees
20239 should use <link to="IConsole::VRDEServerInfo">IVRDEServerInfo</link>
20240 attributes to find out what is the current status.
20241 </desc>
20242 </interface>
20243
20244 <interface
20245 name="IUSBControllerChangedEvent" extends="IEvent"
20246 uuid="93BADC0C-61D9-4940-A084-E6BB29AF3D83"
20247 wsmap="managed" autogen="VBoxEvent" id="OnUSBControllerChanged"
20248 >
20249 <desc>
20250 Notification when a property of the virtual
20251 <link to="IMachine::USBController">USB controller</link> changes.
20252 Interested callees should use IUSBController methods and attributes to
20253 find out what has changed.
20254 </desc>
20255 </interface>
20256
20257 <interface
20258 name="IUSBDeviceStateChangedEvent" extends="IEvent"
20259 uuid="806da61b-6679-422a-b629-51b06b0c6d93"
20260 wsmap="managed" autogen="VBoxEvent" id="OnUSBDeviceStateChanged"
20261 >
20262 <desc>
20263 Notification when a USB device is attached to or detached from
20264 the virtual USB controller.
20265
20266 This notification is sent as a result of the indirect
20267 request to attach the device because it matches one of the
20268 machine USB filters, or as a result of the direct request
20269 issued by <link to="IConsole::attachUSBDevice"/> or
20270 <link to="IConsole::detachUSBDevice"/>.
20271
20272 This notification is sent in case of both a succeeded and a
20273 failed request completion. When the request succeeds, the
20274 @a error parameter is @c null, and the given device has been
20275 already added to (when @a attached is @c true) or removed from
20276 (when @a attached is @c false) the collection represented by
20277 <link to="IConsole::USBDevices"/>. On failure, the collection
20278 doesn't change and the @a error parameter represents the error
20279 message describing the failure.
20280 </desc>
20281 <attribute name="device" type="IUSBDevice" readonly="yes">
20282 <desc>
20283 Device that is subject to state change.
20284 </desc>
20285 </attribute>
20286 <attribute name="attached" type="boolean" readonly="yes">
20287 <desc>
20288 @c true if the device was attached and @c false otherwise.
20289 </desc>
20290 </attribute>
20291 <attribute name="error" type="IVirtualBoxErrorInfo" readonly="yes">
20292 <desc>
20293 @c null on success or an error message object on failure.
20294 </desc>
20295 </attribute>
20296 </interface>
20297
20298 <interface
20299 name="ISharedFolderChangedEvent" extends="IEvent"
20300 uuid="B66349B5-3534-4239-B2DE-8E1535D94C0B"
20301 wsmap="managed" autogen="VBoxEvent" id="OnSharedFolderChanged"
20302 >
20303 <desc>
20304 Notification when a shared folder is added or removed.
20305 The @a scope argument defines one of three scopes:
20306 <link to="IVirtualBox::sharedFolders">global shared folders</link>
20307 (<link to="Scope_Global">Global</link>),
20308 <link to="IMachine::sharedFolders">permanent shared folders</link> of
20309 the machine (<link to="Scope_Machine">Machine</link>) or <link
20310 to="IConsole::sharedFolders">transient shared folders</link> of the
20311 machine (<link to="Scope_Session">Session</link>). Interested callees
20312 should use query the corresponding collections to find out what has
20313 changed.
20314 </desc>
20315 <attribute name="scope" type="Scope" readonly="yes">
20316 <desc>
20317 Scope of the notification.
20318 </desc>
20319 </attribute>
20320 </interface>
20321
20322 <interface
20323 name="IRuntimeErrorEvent" extends="IEvent"
20324 uuid="883DD18B-0721-4CDE-867C-1A82ABAF914C"
20325 wsmap="managed" autogen="VBoxEvent" id="OnRuntimeError"
20326 >
20327 <desc>
20328 Notification when an error happens during the virtual
20329 machine execution.
20330
20331 There are three kinds of runtime errors:
20332 <ul>
20333 <li><i>fatal</i></li>
20334 <li><i>non-fatal with retry</i></li>
20335 <li><i>non-fatal warnings</i></li>
20336 </ul>
20337
20338 <b>Fatal</b> errors are indicated by the @a fatal parameter set
20339 to @c true. In case of fatal errors, the virtual machine
20340 execution is always paused before calling this notification, and
20341 the notification handler is supposed either to immediately save
20342 the virtual machine state using <link to="IConsole::saveState"/>
20343 or power it off using <link to="IConsole::powerDown"/>.
20344 Resuming the execution can lead to unpredictable results.
20345
20346 <b>Non-fatal</b> errors and warnings are indicated by the
20347 @a fatal parameter set to @c false. If the virtual machine
20348 is in the Paused state by the time the error notification is
20349 received, it means that the user can <i>try to resume</i> the machine
20350 execution after attempting to solve the problem that caused the
20351 error. In this case, the notification handler is supposed
20352 to show an appropriate message to the user (depending on the
20353 value of the @a id parameter) that offers several actions such
20354 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
20355 wants to retry, the notification handler should continue
20356 the machine execution using the <link to="IConsole::resume"/>
20357 call. If the machine execution is not Paused during this
20358 notification, then it means this notification is a <i>warning</i>
20359 (for example, about a fatal condition that can happen very soon);
20360 no immediate action is required from the user, the machine
20361 continues its normal execution.
20362
20363 Note that in either case the notification handler
20364 <b>must not</b> perform any action directly on a thread
20365 where this notification is called. Everything it is allowed to
20366 do is to post a message to another thread that will then talk
20367 to the user and take the corresponding action.
20368
20369 Currently, the following error identifiers are known:
20370 <ul>
20371 <li><tt>"HostMemoryLow"</tt></li>
20372 <li><tt>"HostAudioNotResponding"</tt></li>
20373 <li><tt>"VDIStorageFull"</tt></li>
20374 <li><tt>"3DSupportIncompatibleAdditions"</tt></li>
20375 </ul>
20376 </desc>
20377 <attribute name="fatal" type="boolean" readonly="yes">
20378 <desc>
20379 Whether the error is fatal or not.
20380 </desc>
20381 </attribute>
20382 <attribute name="id" type="wstring" readonly="yes">
20383 <desc>
20384 Error identifier.
20385 </desc>
20386 </attribute>
20387 <attribute name="message" type="wstring" readonly="yes">
20388 <desc>
20389 Optional error message.
20390 </desc>
20391 </attribute>
20392 </interface>
20393
20394
20395 <interface
20396 name="IEventSourceChangedEvent" extends="IEvent"
20397 uuid="e7932cb8-f6d4-4ab6-9cbf-558eb8959a6a"
20398 waitable="yes"
20399 wsmap="managed" autogen="VBoxEvent" id="OnEventSourceChanged"
20400 >
20401 <desc>
20402 Notification when an event source state changes (listener added or removed).
20403 </desc>
20404
20405 <attribute name="listener" type="IEventListener" readonly="yes">
20406 <desc>
20407 Event listener which has changed.
20408 </desc>
20409 </attribute>
20410
20411 <attribute name="add" type="boolean" readonly="yes">
20412 <desc>
20413 Flag whether listener was added or removed.
20414 </desc>
20415 </attribute>
20416 </interface>
20417
20418 <interface
20419 name="IExtraDataChangedEvent" extends="IEvent"
20420 uuid="024F00CE-6E0B-492A-A8D0-968472A94DC7"
20421 wsmap="managed" autogen="VBoxEvent" id="OnExtraDataChanged"
20422 >
20423 <desc>
20424 Notification when machine specific or global extra data
20425 has changed.
20426 </desc>
20427 <attribute name="machineId" type="uuid" mod="string" readonly="yes">
20428 <desc>
20429 ID of the machine this event relates to.
20430 Null for global extra data changes.
20431 </desc>
20432 </attribute>
20433 <attribute name="key" type="wstring" readonly="yes">
20434 <desc>
20435 Extra data key that has changed.
20436 </desc>
20437 </attribute>
20438 <attribute name="value" type="wstring" readonly="yes">
20439 <desc>
20440 Extra data value for the given key.
20441 </desc>
20442 </attribute>
20443 </interface>
20444
20445 <interface
20446 name="IVetoEvent" extends="IEvent"
20447 uuid="9a1a4130-69fe-472f-ac10-c6fa25d75007"
20448 wsmap="managed"
20449 >
20450 <desc>Base abstract interface for veto events.</desc>
20451
20452 <method name="addVeto">
20453 <desc>
20454 Adds a veto on this event.
20455 </desc>
20456 <param name="reason" type="wstring" dir="in">
20457 <desc>
20458 Reason for veto, could be null or empty string.
20459 </desc>
20460 </param>
20461 </method>
20462
20463 <method name="isVetoed">
20464 <desc>
20465 If this event was vetoed.
20466 </desc>
20467 <param name="result" type="boolean" dir="return">
20468 <desc>
20469 Reason for veto.
20470 </desc>
20471 </param>
20472 </method>
20473
20474 <method name="getVetos">
20475 <desc>
20476 Current veto reason list, if size is 0 - no veto.
20477 </desc>
20478 <param name="result" type="wstring" dir="return" safearray="yes">
20479 <desc>
20480 Array of reasons for veto provided by different event handlers.
20481 </desc>
20482 </param>
20483 </method>
20484
20485 </interface>
20486
20487 <interface
20488 name="IExtraDataCanChangeEvent" extends="IVetoEvent"
20489 uuid="245d88bd-800a-40f8-87a6-170d02249a55"
20490 wsmap="managed" autogen="VBoxEvent" id="OnExtraDataCanChange"
20491 waitable="true"
20492 >
20493 <desc>
20494 Notification when someone tries to change extra data for
20495 either the given machine or (if @c null) global extra data.
20496 This gives the chance to veto against changes.
20497 </desc>
20498 <attribute name="machineId" type="uuid" mod="string" readonly="yes">
20499 <desc>
20500 ID of the machine this event relates to.
20501 Null for global extra data changes.
20502 </desc>
20503 </attribute>
20504 <attribute name="key" type="wstring" readonly="yes">
20505 <desc>
20506 Extra data key that has changed.
20507 </desc>
20508 </attribute>
20509 <attribute name="value" type="wstring" readonly="yes">
20510 <desc>
20511 Extra data value for the given key.
20512 </desc>
20513 </attribute>
20514 </interface>
20515
20516 <interface
20517 name="ICanShowWindowEvent" extends="IVetoEvent"
20518 uuid="adf292b0-92c9-4a77-9d35-e058b39fe0b9"
20519 wsmap="managed" autogen="VBoxEvent" id="OnCanShowWindow"
20520 waitable="true"
20521 >
20522 <desc>
20523 Notification when a call to
20524 <link to="IMachine::canShowConsoleWindow"/> is made by a
20525 front-end to check if a subsequent call to
20526 <link to="IMachine::showConsoleWindow"/> can succeed.
20527
20528 The callee should give an answer appropriate to the current
20529 machine state using event veto. This answer must
20530 remain valid at least until the next
20531 <link to="IConsole::state">machine state</link> change.
20532 </desc>
20533 </interface>
20534
20535 <interface
20536 name="IShowWindowEvent" extends="IEvent"
20537 uuid="B0A0904D-2F05-4D28-855F-488F96BAD2B2"
20538 wsmap="managed" autogen="VBoxEvent" id="OnShowWindow"
20539 waitable="true"
20540 >
20541 <desc>
20542 Notification when a call to
20543 <link to="IMachine::showConsoleWindow"/>
20544 requests the console window to be activated and brought to
20545 foreground on the desktop of the host PC.
20546
20547 This notification should cause the VM console process to
20548 perform the requested action as described above. If it is
20549 impossible to do it at a time of this notification, this
20550 method should return a failure.
20551
20552 Note that many modern window managers on many platforms
20553 implement some sort of focus stealing prevention logic, so
20554 that it may be impossible to activate a window without the
20555 help of the currently active application (which is supposedly
20556 an initiator of this notification). In this case, this method
20557 must return a non-zero identifier that represents the
20558 top-level window of the VM console process. The caller, if it
20559 represents a currently active process, is responsible to use
20560 this identifier (in a platform-dependent manner) to perform
20561 actual window activation.
20562
20563 This method must set @a winId to zero if it has performed all
20564 actions necessary to complete the request and the console
20565 window is now active and in foreground, to indicate that no
20566 further action is required on the caller's side.
20567 </desc>
20568 <attribute name="winId" type="long long">
20569 <desc>
20570 Platform-dependent identifier of the top-level VM console
20571 window, or zero if this method has performed all actions
20572 necessary to implement the <i>show window</i> semantics for
20573 the given platform and/or this VirtualBox front-end.
20574 </desc>
20575 </attribute>
20576 </interface>
20577
20578 <interface
20579 name="INATRedirectEvent" extends="IMachineEvent"
20580 uuid="24eef068-c380-4510-bc7c-19314a7352f1"
20581 wsmap="managed" autogen="VBoxEvent" id="OnNATRedirect"
20582 >
20583 <desc>
20584 Notification when NAT redirect rule added or removed.
20585 </desc>
20586 <attribute name="slot" type="unsigned long" readonly="yes">
20587 <desc>
20588 Adapter which NAT attached to.
20589 </desc>
20590 </attribute>
20591 <attribute name="remove" type="boolean" readonly="yes">
20592 <desc>
20593 Whether rule remove or add.
20594 </desc>
20595 </attribute>
20596 <attribute name="name" type="wstring" readonly="yes">
20597 <desc>
20598 Name of the rule.
20599 </desc>
20600 </attribute>
20601 <attribute name="proto" type="NATProtocol" readonly="yes">
20602 <desc>
20603 Protocol (TCP or UDP) of the redirect rule.
20604 </desc>
20605 </attribute>
20606 <attribute name="hostIP" type="wstring" readonly="yes">
20607 <desc>
20608 Host ip address to bind socket on.
20609 </desc>
20610 </attribute>
20611 <attribute name="hostPort" type="long" readonly="yes">
20612 <desc>
20613 Host port to bind socket on.
20614 </desc>
20615 </attribute>
20616 <attribute name="guestIP" type="wstring" readonly="yes">
20617 <desc>
20618 Guest ip address to redirect to.
20619 </desc>
20620 </attribute>
20621 <attribute name="guestPort" type="long" readonly="yes">
20622 <desc>
20623 Guest port to redirect to.
20624 </desc>
20625 </attribute>
20626 </interface>
20627
20628 <interface
20629 name="IHostPCIDevicePlugEvent" extends="IMachineEvent"
20630 waitable="yes"
20631 uuid="a0bad6df-d612-47d3-89d4-db3992533948"
20632 wsmap="managed" autogen="VBoxEvent" id="OnHostPCIDevicePlug"
20633 >
20634 <desc>
20635 Notification when host PCI device is plugged/unplugged. Plugging
20636 usually takes place on VM startup, unplug - when
20637 <link to="IMachine::detachHostPCIDevice"/> is called.
20638
20639 <see><link to="IMachine::detachHostPCIDevice"/></see>
20640
20641 </desc>
20642
20643 <attribute name="plugged" type="boolean" readonly="yes">
20644 <desc>
20645 If device successfully plugged or unplugged.
20646 </desc>
20647 </attribute>
20648
20649 <attribute name="success" type="boolean" readonly="yes">
20650 <desc>
20651 If operation was successful, if false - 'message' attribute
20652 may be of interest.
20653 </desc>
20654 </attribute>
20655
20656 <attribute name="attachment" type="IPCIDeviceAttachment" readonly="yes">
20657 <desc>
20658 Attachment info for this device.
20659 </desc>
20660 </attribute>
20661
20662 <attribute name="message" type="wstring" readonly="yes">
20663 <desc>
20664 Optional error message.
20665 </desc>
20666 </attribute>
20667
20668 </interface>
20669
20670 <interface
20671 name="IVBoxSVCAvailabilityChangedEvent" extends="IEvent"
20672 uuid="97c78fcd-d4fc-485f-8613-5af88bfcfcdc"
20673 wsmap="managed" autogen="VBoxEvent" id="OnVBoxSVCAvailabilityChanged"
20674 >
20675 <desc>
20676 Notification when VBoxSVC becomes unavailable (due to a crash or similar
20677 unexpected circumstances) or available again.
20678 </desc>
20679
20680 <attribute name="available" type="boolean" readonly="yes">
20681 <desc>
20682 Whether VBoxSVC is available now.
20683 </desc>
20684 </attribute>
20685 </interface>
20686
20687 <interface
20688 name="IBandwidthGroupChangedEvent" extends="IEvent"
20689 uuid="334df94a-7556-4cbc-8c04-043096b02d82"
20690 wsmap="managed" autogen="VBoxEvent" id="OnBandwidthGroupChanged"
20691 >
20692 <desc>
20693 Notification when one of the bandwidth groups changed
20694 </desc>
20695 <attribute name="bandwidthGroup" type="IBandwidthGroup" readonly="yes">
20696 <desc>
20697 The changed bandwidth group.
20698 </desc>
20699 </attribute>
20700 </interface>
20701
20702 <enum
20703 name="GuestMonitorChangedEventType"
20704 uuid="ef172985-7e36-4297-95be-e46396968d66"
20705 >
20706
20707 <desc>
20708 How the guest monitor has been changed.
20709 </desc>
20710
20711 <const name="Enabled" value="0">
20712 <desc>
20713 The guest monitor has been enabled by the guest.
20714 </desc>
20715 </const>
20716
20717 <const name="Disabled" value="1">
20718 <desc>
20719 The guest monitor has been disabled by the guest.
20720 </desc>
20721 </const>
20722
20723 <const name="NewOrigin" value="2">
20724 <desc>
20725 The guest monitor origin has changed in the guest.
20726 </desc>
20727 </const>
20728 </enum>
20729
20730 <interface
20731 name="IGuestMonitorChangedEvent" extends="IEvent"
20732 uuid="0f7b8a22-c71f-4a36-8e5f-a77d01d76090"
20733 wsmap="managed" autogen="VBoxEvent" id="OnGuestMonitorChanged"
20734 >
20735 <desc>
20736 Notification when the guest enables one of its monitors.
20737 </desc>
20738
20739 <attribute name="changeType" type="GuestMonitorChangedEventType" readonly="yes">
20740 <desc>
20741 What was changed for this guest monitor.
20742 </desc>
20743 </attribute>
20744
20745 <attribute name="screenId" type="unsigned long" readonly="yes">
20746 <desc>
20747 The monitor which was changed.
20748 </desc>
20749 </attribute>
20750
20751 <attribute name="originX" type="unsigned long" readonly="yes">
20752 <desc>
20753 Physical X origin relative to the primary screen.
20754 Valid for Enabled and NewOrigin.
20755 </desc>
20756 </attribute>
20757
20758 <attribute name="originY" type="unsigned long" readonly="yes">
20759 <desc>
20760 Physical Y origin relative to the primary screen.
20761 Valid for Enabled and NewOrigin.
20762 </desc>
20763 </attribute>
20764
20765 <attribute name="width" type="unsigned long" readonly="yes">
20766 <desc>
20767 Width of the screen.
20768 Valid for Enabled.
20769 </desc>
20770 </attribute>
20771
20772 <attribute name="height" type="unsigned long" readonly="yes">
20773 <desc>
20774 Height of the screen.
20775 Valid for Enabled.
20776 </desc>
20777 </attribute>
20778
20779 </interface>
20780
20781 <interface
20782 name="IStorageDeviceChangedEvent" extends="IEvent"
20783 uuid="232e9151-ae84-4b8e-b0f3-5c20c35caac9"
20784 wsmap="managed" autogen="VBoxEvent" id="OnStorageDeviceChanged"
20785 >
20786 <desc>
20787 Notification when a
20788 <link to="IMachine::mediumAttachments">storage device</link>
20789 is attached or removed.
20790 </desc>
20791 <attribute name="storageDevice" type="IMediumAttachment" readonly="yes">
20792 <desc>
20793 Storage device that is subject to change.
20794 </desc>
20795 </attribute>
20796 <attribute name="removed" type="boolean" readonly="yes">
20797 <desc>
20798 Flag whether the device was removed or added to the VM.
20799 </desc>
20800 </attribute>
20801 <attribute name="silent" type="boolean" readonly="yes">
20802 <desc>
20803 Flag whether the guest should be notified about the change.
20804 </desc>
20805 </attribute>
20806 </interface>
20807 <interface
20808 name="INATNetworkChangedEvent" extends="IEvent"
20809 uuid="101ae042-1a29-4a19-92cf-02285773f3b5"
20810 wsmap="managed" autogen="VBoxEvent" id="OnNATNetworkChanged"
20811 >
20812 <!-- network name is common setting for all event types -->
20813 <attribute name="NetworkName" type="wstring" readonly="yes"/>
20814 </interface>
20815 <!-- base class for start/stop events -->
20816 <interface name="INATNetworkStartStopEvent" extends="INATNetworkChangedEvent"
20817 uuid="269d8f6b-fa1e-4cee-91c7-6d8496bea3c1"
20818 wsmap="managed" autogen="VBoxEvent" id="OnNATNetworkStartStop">
20819 <attribute name="startEvent" type="boolean" readonly="yes">
20820 <desc>
20821 IsStartEvent is true when NAT network is started and false on stopping.
20822 </desc>
20823 </attribute>
20824 </interface>
20825
20826 <!-- base class for modification events -->
20827 <interface name="INATNetworkAlterEvent" extends="INATNetworkChangedEvent"
20828 uuid="3f5a0822-163a-43b1-ad16-8d58b0ef6e75"
20829 wsmap="managed" autogen="VBoxEvent" id="OnNATNetworkAlter"/>
20830
20831 <interface name="INATNetworkCreationDeletionEvent" extends="INATNetworkAlterEvent"
20832 uuid="8d984a7e-b855-40b8-ab0c-44d3515b4528"
20833 wsmap="managed" autogen="VBoxEvent" id="OnNATNetworkCreationDeletion">
20834 <attribute name="creationEvent" type="boolean" readonly="yes"/>
20835 </interface>
20836 <interface name="INATNetworkSettingEvent" extends="INATNetworkAlterEvent"
20837 uuid="9db3a9e6-7f29-4aae-a627-5a282c83092c"
20838 wsmap="managed" autogen="VBoxEvent" id="OnNATNetworkSetting">
20839 <attribute name="enabled" type="boolean" readonly="yes"/>
20840 <attribute name="network" type="wstring" readonly="yes"/>
20841 <attribute name="gateway" type="wstring" readonly="yes"/>
20842 <attribute name="advertiseDefaultIPv6RouteEnabled" type="boolean" readonly="yes"/>
20843 <attribute name="needDhcpServer" type="boolean" readonly="yes"/>
20844 </interface>
20845 <interface name="INATNetworkPortForwardEvent" extends="INATNetworkAlterEvent"
20846 uuid="2514881b-23d0-430a-a7ff-7ed7f05534bc"
20847 wsmap="managed" autogen="VBoxEvent" id="OnNATNetworkPortForward">
20848 <attribute name="create" type="boolean" readonly="yes"/>
20849 <attribute name="ipv6" type="boolean" readonly="yes"/>
20850 <attribute name="name" type="wstring" readonly="yes"/>
20851 <attribute name="proto" type="NATProtocol" readonly="yes"/>
20852 <attribute name="hostIp" type="wstring" readonly="yes"/>
20853 <attribute name="hostPort" type="long" readonly="yes"/>
20854 <attribute name="guestIp" type="wstring" readonly="yes"/>
20855 <attribute name="guestPort" type="long" readonly="yes"/>
20856 </interface>
20857
20858 <module name="VBoxSVC" context="LocalServer">
20859 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
20860 namespace="virtualbox.org">
20861 <interface name="IVirtualBox" default="yes"/>
20862 </class>
20863 </module>
20864
20865 <module name="VBoxC" context="InprocServer" threadingModel="Free">
20866 <class name="VirtualBoxClient" uuid="dd3fc71d-26c0-4fe1-bf6f-67f633265bba"
20867 namespace="virtualbox.org">
20868 <interface name="IVirtualBoxClient" default="yes"/>
20869 </class>
20870
20871 <class name="Session" uuid="3C02F46D-C9D2-4F11-A384-53F0CF917214"
20872 namespace="virtualbox.org">
20873 <interface name="ISession" default="yes"/>
20874 </class>
20875 </module>
20876
20877</library>
20878
20879</idl>
20880
20881<!-- vim: set shiftwidth=2 tabstop=2 expandtab: -->
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette