VirtualBox

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

Last change on this file since 37375 was 37375, checked in by vboxsync, 14 years ago

GuestCtrl: Added APIs for guest directory enumeration, guest file existence and copy from guest support, some API renaming/cleanup (work in progress).

  • Property svn:eol-style set to native
File size: 629.8 KB
Line 
1<?xml version="1.0" ?>
2
3<!--
4
5 Copyright (C) 2006-2011 Oracle Corporation
6
7 This file is part of VirtualBox Open Source Edition (OSE), as
8 available from http://www.215389.xyz. 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</desc>
110
111<if target="midl">
112 <cpp line="enum {"/>
113 <cpp line=" kTypeLibraryMajorVersion = 1,"/>
114 <cpp line=" kTypeLibraryMinorVersion = 0"/>
115 <cpp line="};"/>
116</if>
117
118<if target="xpidl">
119 <!-- NS_IMPL_THREADSAFE_ISUPPORTSxx_CI macros are placed here, for convenience -->
120 <cpp>
121/* currently, nsISupportsImpl.h lacks the below-like macros */
122
123#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI NS_IMPL_QUERY_INTERFACE1_CI
124#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI NS_IMPL_QUERY_INTERFACE2_CI
125#define NS_IMPL_THREADSAFE_QUERY_INTERFACE3_CI NS_IMPL_QUERY_INTERFACE3_CI
126#define NS_IMPL_THREADSAFE_QUERY_INTERFACE4_CI NS_IMPL_QUERY_INTERFACE4_CI
127
128
129#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
130# define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
131 NS_IMPL_THREADSAFE_ADDREF(_class) \
132 NS_IMPL_THREADSAFE_RELEASE(_class) \
133 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI(_class, _interface) \
134 NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
135#endif
136
137#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
138# define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
139 NS_IMPL_THREADSAFE_ADDREF(_class) \
140 NS_IMPL_THREADSAFE_RELEASE(_class) \
141 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
142 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
143#endif
144
145#ifndef NS_IMPL_THREADSAFE_ISUPPORTS3_CI
146# define NS_IMPL_THREADSAFE_ISUPPORTS3_CI(_class, _i1, _i2, _i3) \
147 NS_IMPL_THREADSAFE_ADDREF(_class) \
148 NS_IMPL_THREADSAFE_RELEASE(_class) \
149 NS_IMPL_THREADSAFE_QUERY_INTERFACE3_CI(_class, _i1, _i2, _i3) \
150 NS_IMPL_CI_INTERFACE_GETTER3(_class, _i1, _i2, _i3)
151#endif
152
153#ifndef NS_IMPL_THREADSAFE_ISUPPORTS4_CI
154# define NS_IMPL_THREADSAFE_ISUPPORTS4_CI(_class, _i1, _i2, _i3, _i4) \
155 NS_IMPL_THREADSAFE_ADDREF(_class) \
156 NS_IMPL_THREADSAFE_RELEASE(_class) \
157 NS_IMPL_THREADSAFE_QUERY_INTERFACE4_CI(_class, _i1, _i2, _i3, _i4) \
158 NS_IMPL_CI_INTERFACE_GETTER4(_class, _i1, _i2, _i3, _i4)
159#endif
160
161#ifndef NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
162# define NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
163 NS_INTERFACE_MAP_BEGIN(_class) \
164 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
165 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
166 NS_IMPL_QUERY_CLASSINFO(_class) \
167 NS_INTERFACE_MAP_END
168#endif
169
170#ifndef NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
171# define NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
172 _i2, _ic2) \
173 NS_INTERFACE_MAP_BEGIN(_class) \
174 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
175 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
176 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
177 NS_IMPL_QUERY_CLASSINFO(_class) \
178 NS_INTERFACE_MAP_END
179#endif
180
181#ifndef NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI
182# define NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI(_class, _i1, _ic1, \
183 _i2, _ic2, _i3, _ic3) \
184 NS_INTERFACE_MAP_BEGIN(_class) \
185 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
186 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
187 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i3, _ic3) \
188 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
189 NS_IMPL_QUERY_CLASSINFO(_class) \
190 NS_INTERFACE_MAP_END
191#endif
192
193#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
194#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
195#define NS_IMPL_THREADSAFE_QUERY_INTERFACE3_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI
196
197#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI
198# define NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI(_class, _i1, _ic1) \
199 NS_IMPL_THREADSAFE_ADDREF(_class) \
200 NS_IMPL_THREADSAFE_RELEASE(_class) \
201 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
202 NS_IMPL_CI_INTERFACE_GETTER1(_class, _i1)
203#endif
204
205#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI
206# define NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI(_class, _i1, _ic1, \
207 _i2, _ic2) \
208 NS_IMPL_THREADSAFE_ADDREF(_class) \
209 NS_IMPL_THREADSAFE_RELEASE(_class) \
210 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
211 _i2, _ic2) \
212 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
213#endif
214
215#ifndef NS_IMPL_THREADSAFE_ISUPPORTS3_AMBIGUOUS_CI
216# define NS_IMPL_THREADSAFE_ISUPPORTS3_AMBIGUOUS_CI(_class, _i1, _ic1, \
217 _i2, _ic2, _i3, _ic3) \
218 NS_IMPL_THREADSAFE_ADDREF(_class) \
219 NS_IMPL_THREADSAFE_RELEASE(_class) \
220 NS_IMPL_THREADSAFE_QUERY_INTERFACE3_AMBIGUOUS_CI(_class, _i1, _ic1, \
221 _i2, _ic2, _i3, _ic3) \
222 NS_IMPL_CI_INTERFACE_GETTER3(_class, _i1, _i2, _i3)
223#endif
224
225 </cpp>
226</if>
227
228<library
229 name="VirtualBox"
230 uuid="46137EEC-703B-4fe5-AFD4-7C9BBBBA0259"
231 version="1.3"
232 desc="VirtualBox Type Library"
233 appUuid="819B4D85-9CEE-493C-B6FC-64FFE759B3C9"
234 supportsErrorInfo="yes"
235>
236
237
238 <!--
239 // COM result codes for VirtualBox
240 /////////////////////////////////////////////////////////////////////////
241 -->
242
243 <descGroup id="VirtualBox_COM_result_codes" title="VirtualBox COM result codes">
244 <desc>
245 This section describes all VirtualBox-specific COM result codes that may
246 be returned by methods of VirtualBox COM interfaces in addition to
247 standard COM result codes.
248
249 Note that along with the result code, every VirtualBox method returns
250 extended error information through the IVirtualBoxErrorInfo interface on
251 failure. This interface is a preferred way to present the error to the end
252 user because it contains a human readable description of the error. Raw
253 result codes, both standard and described in this section, are intended to
254 be used by programs to analyze the reason of a failure and select an
255 appropriate course of action without involving the end user (for example,
256 retry the operation later or make a different call).
257
258 The standard COM result codes that may originate from our methods include:
259
260 <table>
261 <tr><td>E_INVALIDARG</td>
262 <td>
263 Returned when the value of the method's argument is not within the range
264 of valid values. This should not be confused with situations when the
265 value is within the range but simply doesn't suit the current object
266 state and there is a possibility that it will be accepted later (in such
267 cases VirtualBox-specific codes are returned, for example,
268 <link to="VBOX_E_OBJECT_NOT_FOUND"/>).
269 </td>
270 </tr>
271 <tr><td>E_POINTER</td>
272 <td>
273 Returned if a memory pointer for the output argument is invalid (for
274 example, @c null). When pointers representing input arguments (such
275 as strings) are invalid, E_INVALIDARG is returned.
276 </td>
277 </tr>
278 <tr><td>E_ACCESSDENIED</td>
279 <td>
280 Returned when the called object is not ready. Since the lifetime of a
281 public COM object cannot be fully controlled by the implementation,
282 VirtualBox maintains the readiness state for all objects it creates and
283 returns this code in response to any method call on the object that was
284 deactivated by VirtualBox and is not functioning any more.
285 </td>
286 </tr>
287 <tr><td>E_OUTOFMEMORY</td>
288 <td>
289 Returned when a memory allocation operation fails.
290 </td>
291 </tr>
292 </table>
293 </desc>
294 </descGroup>
295
296 <!--
297 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
298 everything in <result>/<desc> after (and including) the first dot, so express
299 the matter of the error code in the first sentence and keep it short.
300 -->
301
302 <result name="VBOX_E_OBJECT_NOT_FOUND" value="0x80BB0001">
303 <desc>
304 Object corresponding to the supplied arguments does not exist.
305 </desc>
306 </result>
307
308 <result name="VBOX_E_INVALID_VM_STATE" value="0x80BB0002">
309 <desc>
310 Current virtual machine state prevents the operation.
311 </desc>
312 </result>
313
314 <result name="VBOX_E_VM_ERROR" value="0x80BB0003">
315 <desc>
316 Virtual machine error occurred attempting the operation.
317 </desc>
318 </result>
319
320 <result name="VBOX_E_FILE_ERROR" value="0x80BB0004">
321 <desc>
322 File not accessible or erroneous file contents.
323 </desc>
324 </result>
325
326 <result name="VBOX_E_IPRT_ERROR" value="0x80BB0005">
327 <desc>
328 Runtime subsystem error.
329 </desc>
330 </result>
331
332 <result name="VBOX_E_PDM_ERROR" value="0x80BB0006">
333 <desc>
334 Pluggable Device Manager error.
335 </desc>
336 </result>
337
338 <result name="VBOX_E_INVALID_OBJECT_STATE" value="0x80BB0007">
339 <desc>
340 Current object state prohibits operation.
341 </desc>
342 </result>
343
344 <result name="VBOX_E_HOST_ERROR" value="0x80BB0008">
345 <desc>
346 Host operating system related error.
347 </desc>
348 </result>
349
350 <result name="VBOX_E_NOT_SUPPORTED" value="0x80BB0009">
351 <desc>
352 Requested operation is not supported.
353 </desc>
354 </result>
355
356 <result name="VBOX_E_XML_ERROR" value="0x80BB000A">
357 <desc>
358 Invalid XML found.
359 </desc>
360 </result>
361
362 <result name="VBOX_E_INVALID_SESSION_STATE" value="0x80BB000B">
363 <desc>
364 Current session state prohibits operation.
365 </desc>
366 </result>
367
368 <result name="VBOX_E_OBJECT_IN_USE" value="0x80BB000C">
369 <desc>
370 Object being in use prohibits operation.
371 </desc>
372 </result>
373
374 <!--
375 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
376 everything in <result>/<desc> after (and including) the first dot, so express
377 the matter of the error code in the first sentence and keep it short.
378 -->
379
380 <descGroup/>
381
382 <!--
383 // all common enums
384 /////////////////////////////////////////////////////////////////////////
385 -->
386
387 <enum
388 name="SettingsVersion"
389 uuid="52bd6f5f-1adb-4493-975d-581a9c4b803f"
390 >
391 <desc>
392 Settings version of VirtualBox settings files. This is written to
393 the "version" attribute of the root "VirtualBox" element in the settings
394 file XML and indicates which VirtualBox version wrote the file.
395 </desc>
396
397 <const name="Null" value="0">
398 <desc>Null value, indicates invalid version.</desc>
399 </const>
400 <const name="v1_0" value="1">
401 <desc>Legacy settings version, not currently supported.</desc>
402 </const>
403 <const name="v1_1" value="2">
404 <desc>Legacy settings version, not currently supported.</desc>
405 </const>
406 <const name="v1_2" value="3">
407 <desc>Legacy settings version, not currently supported.</desc>
408 </const>
409 <const name="v1_3pre" value="4">
410 <desc>Legacy settings version, not currently supported.</desc>
411 </const>
412 <const name="v1_3" value="5">
413 <desc>Settings version "1.3", written by VirtualBox 2.0.12.</desc>
414 <!--
415 Machine XML: Capitalization of Uart, Lpt elements and many attributes changed.
416 -->
417 </const>
418 <const name="v1_4" value="6">
419 <desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
420 <!--
421 VirtualBox.xml: big DiskRegistry -> MediaRegistry revamp, various HardDisk types merged
422 (was VirtualDiskImage, VMDKImage, VHDImage, ISCSIHardDisk, CustomHardDisk, DiffHardDisk)
423 -->
424 </const>
425 <const name="v1_5" value="7">
426 <desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
427 <!--
428 2008-09-04: 2.0.0 released
429 2008-11-20: settings version 1.5 introduced
430 2008-12-17: 2.1.0 released
431 Machine changes:
432 guest OS identifiers changed;
433 Machine/Hardware/Display/MonitorCount renamed to monitorCount;
434 Machine/Hardware/Display/Accelerate3D renamed to accelerate3D;
435 Machine/Hardware/CPU/CPUCount/@count changed to CPU/@count
436 -->
437 </const>
438 <const name="v1_6" value="8">
439 <desc>Settings version "1.6", written by VirtualBox 2.1.4 (at least).</desc>
440 <!--
441 2008-12-17: 2.1.0 released
442 2008-12-19: settings version 1.6 introduced (is in 2.1 branch)
443 2009-04-08: 2.2.0 released
444 Machine changes: remove all Machine/Hardware/Network/Adapter/HostInterface[@TAPSetup or @TAPTerminate]/ attributes (done)
445 -->
446 </const>
447 <const name="v1_7" value="9">
448 <desc>Settings version "1.7", written by VirtualBox 2.2.x and 3.0.x.</desc>
449 <!--
450 2008-12-17: 2.1.0 released
451 2009-03-11: settings version 1.7 introduced (is in 2.2 branch)
452 2009-04-08: 2.2.0 released
453 VirtualBox.xml additions: NetserviceRegistry with DHCPServers (done)
454 Machine changes: HardDiskAttachments is now StorageControllers (done)
455 -->
456 </const>
457 <const name="v1_8" value="10">
458 <desc>Intermediate settings version "1.8", understood by VirtualBox 3.1.x.</desc>
459 <!--
460 Machine additions: Display/@accelerate2DVideo (done)
461 -->
462 </const>
463 <const name="v1_9" value="11">
464 <desc>Settings version "1.9", written by VirtualBox 3.1.x.</desc>
465 <!--
466 The big storage controller / DVD / Floppy rework (done)
467 -->
468 </const>
469 <const name="v1_10" value="12">
470 <desc>Settings version "1.10", written by VirtualBox 3.2.x.</desc>
471 <!--
472 Machine changes: RTC localOrUTC (done)
473 CPU hot-plug support
474 -->
475 </const>
476 <const name="v1_11" value="13">
477 <desc>Settings version "1.11", written by VirtualBox 4.0.x.</desc>
478 <!--
479 Machine changes: HD Audio controller, per-machine disk registries,
480 /@format attribute for DVD and floppy images.
481 -->
482 </const>
483 <const name="v1_12" value="14">
484 <desc>Settings version "1.12", written by VirtualBox 4.1.x.</desc>
485 <!--
486 Machine changes: raw PCI device attachment;
487 NetworkAdapter changes: bandwidth group.
488 -->
489 </const>
490
491 <const name="Future" value="99999">
492 <desc>Settings version greater than "1.11", written by a future VirtualBox version.</desc>
493 </const>
494 </enum>
495
496 <enum
497 name="AccessMode"
498 uuid="1da0007c-ddf7-4be8-bcac-d84a1558785f"
499 >
500 <desc>
501 Access mode for opening files.
502 </desc>
503
504 <const name="ReadOnly" value="1"/>
505 <const name="ReadWrite" value="2"/>
506 </enum>
507
508 <enum
509 name="MachineState"
510 uuid="ec6c6a9e-113d-4ff4-b44f-0b69f21c97fe"
511 >
512 <desc>
513 Virtual machine execution state.
514
515 This enumeration represents possible values of the <link
516 to="IMachine::state"/> attribute.
517
518 Below is the basic virtual machine state diagram. It shows how the state
519 changes during virtual machine execution. The text in square braces shows
520 a method of the IConsole interface that performs the given state
521 transition.
522
523 <pre>
524 +---------[powerDown()] &lt;- Stuck &lt;--[failure]-+
525 V |
526 +-&gt; PoweredOff --+--&gt;[powerUp()]--&gt; Starting --+ | +-----[resume()]-----+
527 | | | | V |
528 | Aborted -----+ +--&gt; Running --[pause()]--&gt; Paused
529 | | ^ | ^ |
530 | Saved -----------[powerUp()]--&gt; Restoring -+ | | | |
531 | ^ | | | |
532 | | +-----------------------------------------+-|-------------------+ +
533 | | | | |
534 | | +-- Saving &lt;--------[takeSnapshot()]&lt;-------+---------------------+
535 | | | |
536 | +-------- Saving &lt;--------[saveState()]&lt;----------+---------------------+
537 | | |
538 +-------------- Stopping -------[powerDown()]&lt;----------+---------------------+
539 </pre>
540
541 Note that states to the right from PoweredOff, Aborted and Saved in the
542 above diagram are called <i>online VM states</i>. These states
543 represent the virtual machine which is being executed in a dedicated
544 process (usually with a GUI window attached to it where you can see the
545 activity of the virtual machine and interact with it). There are two
546 special pseudo-states, FirstOnline and LastOnline, that can be used in
547 relational expressions to detect if the given machine state is online or
548 not:
549
550 <pre>
551 if (machine.GetState() &gt;= MachineState_FirstOnline &amp;&amp;
552 machine.GetState() &lt;= MachineState_LastOnline)
553 {
554 ...the machine is being executed...
555 }
556 </pre>
557
558 When the virtual machine is in one of the online VM states (that is, being
559 executed), only a few machine settings can be modified. Methods working
560 with such settings contain an explicit note about that. An attempt to
561 change any other setting or perform a modifying operation during this time
562 will result in the @c VBOX_E_INVALID_VM_STATE error.
563
564 All online states except Running, Paused and Stuck are transitional: they
565 represent temporary conditions of the virtual machine that will last as
566 long as the operation that initiated such a condition.
567
568 The Stuck state is a special case. It means that execution of the machine
569 has reached the "Guru Meditation" condition. This condition indicates an
570 internal VMM (virtual machine manager) failure which may happen as a
571 result of either an unhandled low-level virtual hardware exception or one
572 of the recompiler exceptions (such as the <i>too-many-traps</i>
573 condition).
574
575 Note also that any online VM state may transit to the Aborted state. This
576 happens if the process that is executing the virtual machine terminates
577 unexpectedly (for example, crashes). Other than that, the Aborted state is
578 equivalent to PoweredOff.
579
580 There are also a few additional state diagrams that do not deal with
581 virtual machine execution and therefore are shown separately. The states
582 shown on these diagrams are called <i>offline VM states</i> (this includes
583 PoweredOff, Aborted and Saved too).
584
585 The first diagram shows what happens when a lengthy setup operation is
586 being executed (such as <link to="IMachine::attachDevice"/>).
587
588 <pre>
589 +----------------------------------(same state as before the call)------+
590 | |
591 +-&gt; PoweredOff --+ |
592 | | |
593 |-&gt; Aborted -----+--&gt;[lengthy VM configuration call] --&gt; SettingUp -----+
594 | |
595 +-&gt; Saved -------+
596 </pre>
597
598 The next two diagrams demonstrate the process of taking a snapshot of a
599 powered off virtual machine, restoring the state to that as of a snapshot
600 or deleting a snapshot, respectively.
601
602 <pre>
603 +----------------------------------(same state as before the call)------+
604 | |
605 +-&gt; PoweredOff --+ |
606 | +--&gt;[takeSnapshot()] -------------------&gt; Saving ------+
607 +-&gt; Aborted -----+
608
609 +-&gt; PoweredOff --+
610 | |
611 | Aborted -----+--&gt;[restoreSnapshot() ]-------&gt; RestoringSnapshot -+
612 | | [deleteSnapshot() ]-------&gt; DeletingSnapshot --+
613 +-&gt; Saved -------+ |
614 | |
615 +---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
616 </pre>
617
618 Note that the Saving state is present in both the offline state group and
619 online state group. Currently, the only way to determine what group is
620 assumed in a particular case is to remember the previous machine state: if
621 it was Running or Paused, then Saving is an online state, otherwise it is
622 an offline state. This inconsistency may be removed in one of the future
623 versions of VirtualBox by adding a new state.
624
625 <note internal="yes">
626 For whoever decides to touch this enum: In order to keep the
627 comparisons involving FirstOnline and LastOnline pseudo-states valid,
628 the numeric values of these states must be correspondingly updated if
629 needed: for any online VM state, the condition
630 <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
631 @c true. The same relates to transient states for which
632 the condition <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
633 @c true.
634 </note>
635 </desc>
636
637 <const name="Null" value="0">
638 <desc>Null value (never used by the API).</desc>
639 </const>
640 <const name="PoweredOff" value="1">
641 <desc>
642 The machine is not running and has no saved execution state; it has
643 either never been started or been shut down successfully.
644 </desc>
645 </const>
646 <const name="Saved" value="2">
647 <desc>
648 The machine is not currently running, but the execution state of the machine
649 has been saved to an external file when it was running, from where
650 it can be resumed.
651 </desc>
652 </const>
653 <const name="Teleported" value="3">
654 <desc>
655 The machine was teleported to a different host (or process) and then
656 powered off. Take care when powering it on again may corrupt resources
657 it shares with the teleportation target (e.g. disk and network).
658 </desc>
659 </const>
660 <const name="Aborted" value="4">
661 <desc>
662 The process running the machine has terminated abnormally. This may
663 indicate a crash of the VM process in host execution context, or
664 the VM process has been terminated externally.
665 </desc>
666 </const>
667 <const name="Running" value="5">
668 <desc>
669 The machine is currently being executed.
670 <note internal="yes">
671 For whoever decides to touch this enum: In order to keep the
672 comparisons in the old source code valid, this state must immediately
673 precede the Paused state.
674 TODO: Lift this spectacularly wonderful restriction.
675 </note>
676 </desc>
677 </const>
678 <const name="Paused" value="6">
679 <desc>
680 Execution of the machine has been paused.
681 <note internal="yes">
682 For whoever decides to touch this enum: In order to keep the
683 comparisons in the old source code valid, this state must immediately
684 follow the Running state.
685 TODO: Lift this spectacularly wonderful restriction.
686 </note>
687 </desc>
688 </const>
689 <const name="Stuck" value="7">
690 <desc>
691 Execution of the machine has reached the "Guru Meditation"
692 condition. This indicates a severe error in the hypervisor itself.
693 <note internal="yes">
694 bird: Why this uncool name? Could we rename it to "GuruMeditation" or
695 "Guru", perhaps? Or are there some other VMM states that are
696 intended to be lumped in here as well?
697 </note>
698 </desc>
699 </const>
700 <const name="Teleporting" value="8">
701 <desc>
702 The machine is about to be teleported to a different host or process.
703 It is possible to pause a machine in this state, but it will go to the
704 @c TeleportingPausedVM state and it will not be
705 possible to resume it again unless the teleportation fails.
706 </desc>
707 </const>
708 <const name="LiveSnapshotting" value="9">
709 <desc>
710 A live snapshot is being taken. The machine is running normally, but
711 some of the runtime configuration options are inaccessible. Also, if
712 paused while in this state it will transition to
713 @c Saving and it will not be resume the
714 execution until the snapshot operation has completed.
715 </desc>
716 </const>
717 <const name="Starting" value="10">
718 <desc>
719 Machine is being started after powering it on from a
720 zero execution state.
721 </desc>
722 </const>
723 <const name="Stopping" value="11">
724 <desc>
725 Machine is being normally stopped powering it off, or after the guest OS
726 has initiated a shutdown sequence.
727 </desc>
728 </const>
729 <const name="Saving" value="12">
730 <desc>
731 Machine is saving its execution state to a file, or an online
732 snapshot of the machine is being taken.
733 </desc>
734 </const>
735 <const name="Restoring" value="13">
736 <desc>
737 Execution state of the machine is being restored from a file
738 after powering it on from the saved execution state.
739 </desc>
740 </const>
741 <const name="TeleportingPausedVM" value="14">
742 <desc>
743 The machine is being teleported to another host or process, but it is
744 not running. This is the paused variant of the
745 @c state.
746 </desc>
747 </const>
748 <const name="TeleportingIn" value="15">
749 <desc>
750 Teleporting the machine state in from another host or process.
751 </desc>
752 </const>
753 <const name="FaultTolerantSyncing" value="16">
754 <desc>
755 The machine is being synced with a fault tolerant VM running elsewhere.
756 </desc>
757 </const>
758 <const name="DeletingSnapshotOnline" value="17">
759 <desc>
760 Like @c DeletingSnapshot, but the merging of media is ongoing in
761 the background while the machine is running.
762 </desc>
763 </const>
764 <const name="DeletingSnapshotPaused" value="18">
765 <desc>
766 Like @c DeletingSnapshotOnline, but the machine was paused when the
767 merging of differencing media was started.
768 </desc>
769 </const>
770 <const name="RestoringSnapshot" value="19">
771 <desc>
772 A machine snapshot is being restored; this typically does not take long.
773 </desc>
774 </const>
775 <const name="DeletingSnapshot" value="20">
776 <desc>
777 A machine snapshot is being deleted; this can take a long time since this
778 may require merging differencing media. This value indicates that the
779 machine is not running while the snapshot is being deleted.
780 </desc>
781 </const>
782 <const name="SettingUp" value="21">
783 <desc>
784 Lengthy setup operation is in progress.
785 </desc>
786 </const>
787
788 <const name="FirstOnline" value="5" wsmap="suppress"> <!-- Running -->
789 <desc>
790 Pseudo-state: first online state (for use in relational expressions).
791 </desc>
792 </const>
793 <const name="LastOnline" value="18" wsmap="suppress"> <!-- DeletingSnapshotPaused -->
794 <desc>
795 Pseudo-state: last online state (for use in relational expressions).
796 </desc>
797 </const>
798
799 <const name="FirstTransient" value="8" wsmap="suppress"> <!-- Teleporting -->
800 <desc>
801 Pseudo-state: first transient state (for use in relational expressions).
802 </desc>
803 </const>
804 <const name="LastTransient" value="21" wsmap="suppress"> <!-- SettingUp -->
805 <desc>
806 Pseudo-state: last transient state (for use in relational expressions).
807 </desc>
808 </const>
809
810 </enum>
811
812 <enum
813 name="SessionState"
814 uuid="cf2700c0-ea4b-47ae-9725-7810114b94d8"
815 >
816 <desc>
817 Session state. This enumeration represents possible values of
818 <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
819 attributes.
820 </desc>
821
822 <const name="Null" value="0">
823 <desc>Null value (never used by the API).</desc>
824 </const>
825 <const name="Unlocked" value="1">
826 <desc>
827 In <link to="IMachine::sessionState"/>, this means that the machine
828 is not locked for any sessions.
829
830 In <link to="ISession::state"/>, this means that no machine is
831 currently locked for this session.
832 </desc>
833 </const>
834 <const name="Locked" value="2">
835 <desc>
836 In <link to="IMachine::sessionState"/>, this means that the machine
837 is currently locked for a session, whose process identifier can
838 then be found in the <link to="IMachine::sessionPid" /> attribute.
839
840 In <link to="ISession::state"/>, this means that a machine is
841 currently locked for this session, and the mutable machine object
842 can be found in the <link to="ISession::machine"/> attribute
843 (see <link to="IMachine::lockMachine" /> for details).
844 </desc>
845 </const>
846 <const name="Spawning" value="3">
847 <desc>
848 A new process is being spawned for the machine as a result of
849 <link to="IMachine::launchVMProcess"/> call. This state also occurs
850 as a short transient state during an <link to="IMachine::lockMachine"/>
851 call.
852 </desc>
853 </const>
854 <const name="Unlocking" value="4">
855 <desc>
856 The session is being unlocked.
857 </desc>
858 </const>
859 </enum>
860
861 <enum
862 name="CPUPropertyType"
863 uuid="24d356a6-2f45-4abd-b977-1cbe9c4701f5"
864 >
865 <desc>
866 Virtual CPU property type. This enumeration represents possible values of the
867 IMachine get- and setCPUProperty methods.
868 </desc>
869 <const name="Null" value="0">
870 <desc>Null value (never used by the API).</desc>
871 </const>
872 <const name="PAE" value="1">
873 <desc>
874 This setting determines whether VirtualBox will expose the Physical Address
875 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
876 is not available, it will not be reported.
877 </desc>
878 </const>
879 <const name="Synthetic" value="2">
880 <desc>
881 This setting determines whether VirtualBox will expose a synthetic CPU to the guest to allow
882 teleporting between host systems that differ significantly.
883 </desc>
884 </const>
885 </enum>
886
887
888 <enum
889 name="HWVirtExPropertyType"
890 uuid="ce81dfdd-d2b8-4a90-bbea-40ee8b7ffcee"
891 >
892 <desc>
893 Hardware virtualization property type. This enumeration represents possible values
894 for the <link to="IMachine::getHWVirtExProperty"/> and
895 <link to="IMachine::setHWVirtExProperty"/> methods.
896 </desc>
897 <const name="Null" value="0">
898 <desc>Null value (never used by the API).</desc>
899 </const>
900 <const name="Enabled" value="1">
901 <desc>
902 Whether hardware virtualization (VT-x/AMD-V) is enabled at all. If
903 such extensions are not available, they will not be used.
904 </desc>
905 </const>
906 <const name="Exclusive" value="2">
907 <desc>
908 Whether hardware virtualization is used exclusively by VirtualBox. When enabled,
909 VirtualBox assumes it can acquire full and exclusive access to the VT-x or AMD-V
910 feature of the host. To share these with other hypervisors, you must disable this property.
911 </desc>
912 </const>
913 <const name="VPID" value="3">
914 <desc>
915 Whether VT-x VPID is enabled. If this extension is not available, it will not be used.
916 </desc>
917 </const>
918 <const name="NestedPaging" value="4">
919 <desc>
920 Whether Nested Paging is enabled. If this extension is not available, it will not be used.
921 </desc>
922 </const>
923 <const name="LargePages" value="5">
924 <desc>
925 Whether large page allocation is enabled; requires nested paging and a 64 bits host.
926 </desc>
927 </const>
928 <const name="Force" value="6">
929 <desc>
930 Whether the VM should fail to start if hardware virtualization (VT-x/AMD-V) cannot be used. If
931 not set, there will be an automatic fallback to software virtualization.
932 </desc>
933 </const>
934 </enum>
935
936 <enum
937 name="FaultToleranceState"
938 uuid="5124f7ec-6b67-493c-9dee-ee45a44114e1"
939 >
940 <desc>
941 Used with <link to="IMachine::faultToleranceState" />.
942 </desc>
943 <const name="Inactive" value="1">
944 <desc>No fault tolerance enabled.</desc>
945 </const>
946 <const name="Master" value="2">
947 <desc>Fault tolerant master VM.</desc>
948 </const>
949 <const name="Standby" value="3">
950 <desc>Fault tolerant standby VM.</desc>
951 </const>
952 </enum>
953
954 <enum
955 name="LockType"
956 uuid="138b53f8-db4b-47c5-b32b-4ef52f769413"
957 >
958 <desc>
959 Used with <link to="IMachine::lockMachine" />.
960 </desc>
961 <const name="Write" value="2">
962 <desc>Lock the machine for writing.</desc>
963 </const>
964 <const name="Shared" value="1">
965 <desc>Request only a shared read lock for remote-controlling the machine.</desc>
966 </const>
967 </enum>
968
969 <enum
970 name="SessionType"
971 uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
972 >
973 <desc>
974 Session type. This enumeration represents possible values of the
975 <link to="ISession::type"/> attribute.
976 </desc>
977
978 <const name="Null" value="0">
979 <desc>Null value (never used by the API).</desc>
980 </const>
981 <const name="WriteLock" value="1">
982 <desc>
983 Session has acquired an exclusive write lock on a machine
984 using <link to="IMachine::lockMachine"/>.
985 </desc>
986 </const>
987 <const name="Remote" value="2">
988 <desc>
989 Session has launched a VM process using
990 <link to="IMachine::launchVMProcess"/>
991 </desc>
992 </const>
993 <const name="Shared" value="3">
994 <desc>
995 Session has obtained a link to another session using
996 <link to="IMachine::lockMachine"/>
997 </desc>
998 </const>
999 </enum>
1000
1001 <enum
1002 name="DeviceType"
1003 uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
1004 >
1005 <desc>
1006 Device type.
1007 </desc>
1008 <const name="Null" value="0">
1009 <desc>
1010 Null value, may also mean "no device" (not allowed for
1011 <link to="IConsole::getDeviceActivity"/>).
1012 </desc>
1013 </const>
1014 <const name="Floppy" value="1">
1015 <desc>Floppy device.</desc>
1016 </const>
1017 <const name="DVD" value="2">
1018 <desc>CD/DVD-ROM device.</desc>
1019 </const>
1020 <const name="HardDisk" value="3">
1021 <desc>Hard disk device.</desc>
1022 </const>
1023 <const name="Network" value="4">
1024 <desc>Network device.</desc>
1025 </const>
1026 <const name="USB" value="5">
1027 <desc>USB device.</desc>
1028 </const>
1029 <const name="SharedFolder" value="6">
1030 <desc>Shared folder device.</desc>
1031 </const>
1032 </enum>
1033
1034 <enum
1035 name="DeviceActivity"
1036 uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
1037 >
1038 <desc>
1039 Device activity for <link to="IConsole::getDeviceActivity"/>.
1040 </desc>
1041
1042 <const name="Null" value="0"/>
1043 <const name="Idle" value="1"/>
1044 <const name="Reading" value="2"/>
1045 <const name="Writing" value="3"/>
1046 </enum>
1047
1048 <enum
1049 name="ClipboardMode"
1050 uuid="33364716-4008-4701-8f14-be0fa3d62950"
1051 >
1052 <desc>
1053 Host-Guest clipboard interchange mode.
1054 </desc>
1055
1056 <const name="Disabled" value="0"/>
1057 <const name="HostToGuest" value="1"/>
1058 <const name="GuestToHost" value="2"/>
1059 <const name="Bidirectional" value="3"/>
1060 </enum>
1061
1062 <enum
1063 name="Scope"
1064 uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
1065 >
1066 <desc>
1067 Scope of the operation.
1068
1069 A generic enumeration used in various methods to define the action or
1070 argument scope.
1071 </desc>
1072
1073 <const name="Global" value="0"/>
1074 <const name="Machine" value="1"/>
1075 <const name="Session" value="2"/>
1076 </enum>
1077
1078 <enum
1079 name="BIOSBootMenuMode"
1080 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
1081 >
1082 <desc>
1083 BIOS boot menu mode.
1084 </desc>
1085
1086 <const name="Disabled" value="0"/>
1087 <const name="MenuOnly" value="1"/>
1088 <const name="MessageAndMenu" value="2"/>
1089 </enum>
1090
1091 <enum
1092 name="ProcessorFeature"
1093 uuid="64c38e6b-8bcf-45ad-ac03-9b406287c5bf"
1094 >
1095 <desc>
1096 CPU features.
1097 </desc>
1098
1099 <const name="HWVirtEx" value="0"/>
1100 <const name="PAE" value="1"/>
1101 <const name="LongMode" value="2"/>
1102 <const name="NestedPaging" value="3"/>
1103 </enum>
1104
1105 <enum
1106 name="FirmwareType"
1107 uuid="b903f264-c230-483e-ac74-2b37ce60d371"
1108 >
1109 <desc>
1110 Firmware type.
1111 </desc>
1112 <const name="BIOS" value="1">
1113 <desc>BIOS Firmware.</desc>
1114 </const>
1115 <const name="EFI" value="2">
1116 <desc>EFI Firmware, bitness detected basing on OS type.</desc>
1117 </const>
1118 <const name="EFI32" value="3">
1119 <desc>Efi firmware, 32-bit.</desc>
1120 </const>
1121 <const name="EFI64" value="4">
1122 <desc>Efi firmware, 64-bit.</desc>
1123 </const>
1124 <const name="EFIDUAL" value="5">
1125 <desc>Efi firmware, combined 32 and 64-bit.</desc>
1126 </const>
1127 </enum>
1128
1129 <enum
1130 name="PointingHidType"
1131 uuid="0d3c17a2-821a-4b2e-ae41-890c6c60aa97"
1132 >
1133 <desc>
1134 Type of pointing device used in a virtual machine.
1135 </desc>
1136 <const name="None" value="1">
1137 <desc>No mouse.</desc>
1138 </const>
1139 <const name="PS2Mouse" value="2">
1140 <desc>PS/2 auxiliary device, a.k.a. mouse.</desc>
1141 </const>
1142 <const name="USBMouse" value="3">
1143 <desc>USB mouse (relative pointer).</desc>
1144 </const>
1145 <const name="USBTablet" value="4">
1146 <desc>USB tablet (absolute pointer).</desc>
1147 </const>
1148 <const name="ComboMouse" value="5">
1149 <desc>Combined device, working as PS/2 or USB mouse, depending on guest behavior.
1150 Using of such device can have negative performance implications. </desc>
1151 </const>
1152 </enum>
1153
1154 <enum
1155 name="KeyboardHidType"
1156 uuid="5a5b0996-3a3e-44bb-9019-56979812cbcc"
1157 >
1158 <desc>
1159 Type of keyboard device used in a virtual machine.
1160 </desc>
1161 <const name="None" value="1">
1162 <desc>No keyboard.</desc>
1163 </const>
1164 <const name="PS2Keyboard" value="2">
1165 <desc>PS/2 keyboard.</desc>
1166 </const>
1167 <const name="USBKeyboard" value="3">
1168 <desc>USB keyboard.</desc>
1169 </const>
1170 <const name="ComboKeyboard" value="4">
1171 <desc>Combined device, working as PS/2 or USB keyboard, depending on guest behavior.
1172 Using of such device can have negative performance implications. </desc>
1173 </const>
1174 </enum>
1175
1176 <!--
1177 // IVirtualBoxErrorInfo
1178 /////////////////////////////////////////////////////////////////////////
1179 -->
1180
1181 <interface
1182 name="IVirtualBoxErrorInfo" extends="$errorinfo"
1183 uuid="e053d3c0-f493-491b-a735-3a9f0b1feed4"
1184 supportsErrorInfo="no"
1185 wsmap="managed"
1186 >
1187 <desc>
1188 The IVirtualBoxErrorInfo interface represents extended error information.
1189
1190 Extended error information can be set by VirtualBox components after
1191 unsuccessful or partially successful method invocation. This information
1192 can be retrieved by the calling party as an IVirtualBoxErrorInfo object
1193 and then shown to the client in addition to the plain 32-bit result code.
1194
1195 In MS COM, this interface extends the IErrorInfo interface,
1196 in XPCOM, it extends the nsIException interface. In both cases,
1197 it provides a set of common attributes to retrieve error
1198 information.
1199
1200 Sometimes invocation of some component's method may involve methods of
1201 other components that may also fail (independently of this method's
1202 failure), or a series of non-fatal errors may precede a fatal error that
1203 causes method failure. In cases like that, it may be desirable to preserve
1204 information about all errors happened during method invocation and deliver
1205 it to the caller. The <link to="#next"/> attribute is intended
1206 specifically for this purpose and allows to represent a chain of errors
1207 through a single IVirtualBoxErrorInfo object set after method invocation.
1208
1209 <note>errors are stored to a chain in the reverse order, i.e. the
1210 initial error object you query right after method invocation is the last
1211 error set by the callee, the object it points to in the @a next attribute
1212 is the previous error and so on, up to the first error (which is the last
1213 in the chain).</note>
1214 </desc>
1215
1216 <attribute name="resultCode" type="long" readonly="yes">
1217 <desc>
1218 Result code of the error.
1219 Usually, it will be the same as the result code returned
1220 by the method that provided this error information, but not
1221 always. For example, on Win32, CoCreateInstance() will most
1222 likely return E_NOINTERFACE upon unsuccessful component
1223 instantiation attempt, but not the value the component factory
1224 returned. Value is typed 'long', not 'result',
1225 to make interface usable from scripting languages.
1226 <note>
1227 In MS COM, there is no equivalent.
1228 In XPCOM, it is the same as nsIException::result.
1229 </note>
1230 </desc>
1231 </attribute>
1232
1233 <attribute name="interfaceID" type="uuid" mod="string" readonly="yes">
1234 <desc>
1235 UUID of the interface that defined the error.
1236 <note>
1237 In MS COM, it is the same as IErrorInfo::GetGUID, except for the
1238 data type.
1239 In XPCOM, there is no equivalent.
1240 </note>
1241 </desc>
1242 </attribute>
1243
1244 <attribute name="component" type="wstring" readonly="yes">
1245 <desc>
1246 Name of the component that generated the error.
1247 <note>
1248 In MS COM, it is the same as IErrorInfo::GetSource.
1249 In XPCOM, there is no equivalent.
1250 </note>
1251 </desc>
1252 </attribute>
1253
1254 <attribute name="text" type="wstring" readonly="yes">
1255 <desc>
1256 Text description of the error.
1257 <note>
1258 In MS COM, it is the same as IErrorInfo::GetDescription.
1259 In XPCOM, it is the same as nsIException::message.
1260 </note>
1261 </desc>
1262 </attribute>
1263
1264 <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
1265 <desc>
1266 Next error object if there is any, or @c null otherwise.
1267 <note>
1268 In MS COM, there is no equivalent.
1269 In XPCOM, it is the same as nsIException::inner.
1270 </note>
1271 </desc>
1272 </attribute>
1273
1274 </interface>
1275
1276 <!--
1277 // IVirtualBox
1278 /////////////////////////////////////////////////////////////////////////
1279 -->
1280
1281 <interface
1282 name="IDHCPServer" extends="$unknown"
1283 uuid="6cfe387c-74fb-4ca7-bff6-973bec8af7a3"
1284 wsmap="managed"
1285 >
1286 <desc>
1287 The IDHCPServer interface represents the vbox dhcp server configuration.
1288
1289 To enumerate all the dhcp servers on the host, use the
1290 <link to="IVirtualBox::DHCPServers"/> attribute.
1291 </desc>
1292
1293 <attribute name="enabled" type="boolean">
1294 <desc>
1295 specifies if the dhcp server is enabled
1296 </desc>
1297 </attribute>
1298
1299 <attribute name="IPAddress" type="wstring" readonly="yes">
1300 <desc>
1301 specifies server IP
1302 </desc>
1303 </attribute>
1304
1305 <attribute name="networkMask" type="wstring" readonly="yes">
1306 <desc>
1307 specifies server network mask
1308 </desc>
1309 </attribute>
1310
1311 <attribute name="networkName" type="wstring" readonly="yes">
1312 <desc>
1313 specifies internal network name the server is used for
1314 </desc>
1315 </attribute>
1316
1317 <attribute name="lowerIP" type="wstring" readonly="yes">
1318 <desc>
1319 specifies from IP address in server address range
1320 </desc>
1321 </attribute>
1322
1323 <attribute name="upperIP" type="wstring" readonly="yes">
1324 <desc>
1325 specifies to IP address in server address range
1326 </desc>
1327 </attribute>
1328
1329 <method name="setConfiguration">
1330 <desc>
1331 configures the server
1332 <result name="E_INVALIDARG">
1333 invalid configuration supplied
1334 </result>
1335 </desc>
1336 <param name="IPAddress" type="wstring" dir="in">
1337 <desc>
1338 server IP address
1339 </desc>
1340 </param>
1341 <param name="networkMask" type="wstring" dir="in">
1342 <desc>
1343 server network mask
1344 </desc>
1345 </param>
1346 <param name="FromIPAddress" type="wstring" dir="in">
1347 <desc>
1348 server From IP address for address range
1349 </desc>
1350 </param>
1351 <param name="ToIPAddress" type="wstring" dir="in">
1352 <desc>
1353 server To IP address for address range
1354 </desc>
1355 </param>
1356 </method>
1357
1358 <method name="start">
1359 <desc>
1360 Starts DHCP server process.
1361 <result name="E_FAIL">
1362 Failed to start the process.
1363 </result>
1364 </desc>
1365 <param name="networkName" type="wstring" dir="in">
1366 <desc>
1367 Name of internal network DHCP server should attach to.
1368 </desc>
1369 </param>
1370 <param name="trunkName" type="wstring" dir="in">
1371 <desc>
1372 Name of internal network trunk.
1373 </desc>
1374 </param>
1375 <param name="trunkType" type="wstring" dir="in">
1376 <desc>
1377 Type of internal network trunk.
1378 </desc>
1379 </param>
1380 </method>
1381
1382 <method name="stop">
1383 <desc>
1384 Stops DHCP server process.
1385 <result name="E_FAIL">
1386 Failed to stop the process.
1387 </result>
1388 </desc>
1389 </method>
1390 </interface>
1391
1392 <interface
1393 name="IVirtualBox" extends="$unknown"
1394 uuid="bc166b9b-9b62-4145-b1f6-6c39068aaf00"
1395 wsmap="managed"
1396 >
1397 <desc>
1398 The IVirtualBox interface represents the main interface exposed by the
1399 product that provides virtual machine management.
1400
1401 An instance of IVirtualBox is required for the product to do anything
1402 useful. Even though the interface does not expose this, internally,
1403 IVirtualBox is implemented as a singleton and actually lives in the
1404 process of the VirtualBox server (VBoxSVC.exe). This makes sure that
1405 IVirtualBox can track the state of all virtual machines on a particular
1406 host, regardless of which frontend started them.
1407
1408 To enumerate all the virtual machines on the host, use the
1409 <link to="IVirtualBox::machines"/> attribute.
1410 </desc>
1411
1412 <attribute name="version" type="wstring" readonly="yes">
1413 <desc>
1414 A string representing the version number of the product. The
1415 format is 3 integer numbers divided by dots (e.g. 1.0.1). The
1416 last number represents the build number and will frequently change.
1417 </desc>
1418 </attribute>
1419
1420 <attribute name="revision" type="unsigned long" readonly="yes">
1421 <desc>
1422 The internal build revision number of the product.
1423 </desc>
1424 </attribute>
1425
1426 <attribute name="packageType" type="wstring" readonly="yes">
1427 <desc>
1428 A string representing the package type of this product. The
1429 format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
1430 SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
1431 is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
1432 this.
1433 </desc>
1434 </attribute>
1435
1436 <attribute name="APIVersion" type="wstring" readonly="yes">
1437 <desc>
1438 A string representing the VirtualBox API version number. The format is
1439 2 integer numbers divided by an underscore (e.g. 1_0). After the
1440 first public release of packages with a particular API version the
1441 API will not be changed in an incompatible way. Note that this
1442 guarantee does not apply to development builds, and also there is no
1443 guarantee that this version is identical to the first two integer
1444 numbers of the package version.
1445 </desc>
1446 </attribute>
1447
1448 <attribute name="homeFolder" type="wstring" readonly="yes">
1449 <desc>
1450 Full path to the directory where the global settings file,
1451 <tt>VirtualBox.xml</tt>, is stored.
1452
1453 In this version of VirtualBox, the value of this property is
1454 always <tt>&lt;user_dir&gt;/.VirtualBox</tt> (where
1455 <tt>&lt;user_dir&gt;</tt> is the path to the user directory,
1456 as determined by the host OS), and cannot be changed.
1457
1458 This path is also used as the base to resolve relative paths in
1459 places where relative paths are allowed (unless otherwise
1460 expressly indicated).
1461 </desc>
1462 </attribute>
1463
1464 <attribute name="settingsFilePath" type="wstring" readonly="yes">
1465 <desc>
1466 Full name of the global settings file.
1467 The value of this property corresponds to the value of
1468 <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
1469 </desc>
1470 </attribute>
1471
1472 <attribute name="host" type="IHost" readonly="yes">
1473 <desc>Associated host object.</desc>
1474 </attribute>
1475
1476 <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
1477 <desc>Associated system information object.</desc>
1478 </attribute>
1479
1480 <attribute name="machines" type="IMachine" readonly="yes" safearray="yes">
1481 <desc>
1482 Array of machine objects registered within this VirtualBox instance.
1483 </desc>
1484 </attribute>
1485
1486 <attribute name="hardDisks" type="IMedium" readonly="yes" safearray="yes">
1487 <desc>
1488 Array of medium objects known to this VirtualBox installation.
1489
1490 This array contains only base media. All differencing
1491 media of the given base medium can be enumerated using
1492 <link to="IMedium::children"/>.
1493 </desc>
1494 </attribute>
1495
1496 <attribute name="DVDImages" type="IMedium" readonly="yes" safearray="yes">
1497 <desc>
1498 Array of CD/DVD image objects currently in use by this VirtualBox instance.
1499 </desc>
1500 </attribute>
1501
1502 <attribute name="floppyImages" type="IMedium" readonly="yes" safearray="yes">
1503 <desc>
1504 Array of floppy image objects currently in use by this VirtualBox instance.
1505 </desc>
1506 </attribute>
1507
1508 <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
1509
1510 <attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
1511
1512 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
1513 <desc>
1514 Collection of global shared folders. Global shared folders are
1515 available to all virtual machines.
1516
1517 New shared folders are added to the collection using
1518 <link to="#createSharedFolder"/>. Existing shared folders can be
1519 removed using <link to="#removeSharedFolder"/>.
1520
1521 <note>
1522 In the current version of the product, global shared folders are not
1523 implemented and therefore this collection is always empty.
1524 </note>
1525 </desc>
1526 </attribute>
1527
1528 <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
1529 <desc>
1530 Associated performance collector object.
1531 </desc>
1532 </attribute>
1533
1534 <attribute name="DHCPServers" type="IDHCPServer" safearray="yes" readonly="yes">
1535 <desc>
1536 DHCP servers.
1537 </desc>
1538 </attribute>
1539
1540 <attribute name="eventSource" type="IEventSource" readonly="yes">
1541 <desc>
1542 Event source for VirtualBox events.
1543 </desc>
1544 </attribute>
1545
1546 <attribute name="extensionPackManager" type="IExtPackManager" readonly="yes">
1547 <desc>
1548 The extension pack manager.
1549 </desc>
1550 </attribute>
1551
1552
1553 <method name="composeMachineFilename">
1554 <desc>
1555 Returns a recommended full path of the settings file name for a new virtual
1556 machine.
1557
1558 This API serves two purposes:
1559
1560 <ul>
1561 <li>It gets called by <link to="#createMachine" /> if NULL is specified
1562 for the @a settingsFile argument there, which means that API should use
1563 a recommended default file name.</li>
1564
1565 <li>It can be called manually by a client software before creating a machine,
1566 e.g. if that client wants to pre-create the machine directory to create
1567 virtual hard disks in that directory together with the new machine
1568 settings file. In that case, the file name should be stripped from the
1569 full settings file path returned by this function to obtain the
1570 machine directory.</li>
1571 </ul>
1572
1573 See <link to="IMachine::name"/> and <link to="#createMachine"/> for more
1574 details about the machine name.
1575
1576 If @a baseFolder is a @c null or empty string (which is recommended), the
1577 default machine settings folder
1578 (see <link to="ISystemProperties::defaultMachineFolder" />) will be used as
1579 a base folder for the created machine, resulting in a file name like
1580 "/home/user/VirtualBox VMs/name/name.vbox". Otherwise the given base folder
1581 will be used.
1582
1583 This method does not access the host disks. In particular, it does not check
1584 for whether a machine of this name already exists.
1585 </desc>
1586 <param name="name" type="wstring" dir="in">
1587 <desc>Suggested machine name.</desc>
1588 </param>
1589 <param name="baseFolder" type="wstring" dir="in">
1590 <desc>Base machine folder (optional).</desc>
1591 </param>
1592 <param name="file" type="wstring" dir="return">
1593 <desc>Fully qualified path where the machine would be created.</desc>
1594 </param>
1595 </method>
1596
1597 <method name="createMachine">
1598 <desc>
1599 Creates a new virtual machine by creating a machine settings file at
1600 the given location.
1601
1602 VirtualBox machine settings files use a custom XML dialect. Starting
1603 with VirtualBox 4.0, a ".vbox" extension is recommended, but not enforced,
1604 and machine files can be created at arbitrary locations.
1605
1606 However, it is is recommended that machines be created in the default
1607 machine folder (e.g. "/home/user/VirtualBox VMs/name/name.vbox"; see
1608 <link to="ISystemProperties::defaultMachineFolder" />). If you specify
1609 NULL for the @a settingsFile argument, <link to="#composeMachineFilename" />
1610 is called automatically to have such a recommended name composed based
1611 on the machine name given in the @a name argument.
1612
1613 If the resulting settings file already exists, this method will fail,
1614 unless @a forceOverwrite is set.
1615
1616 The new machine is created unregistered, with the initial configuration
1617 set according to the specified guest OS type. A typical sequence of
1618 actions to create a new virtual machine is as follows:
1619
1620 <ol>
1621 <li>
1622 Call this method to have a new machine created. The returned machine
1623 object will be "mutable" allowing to change any machine property.
1624 </li>
1625
1626 <li>
1627 Configure the machine using the appropriate attributes and methods.
1628 </li>
1629
1630 <li>
1631 Call <link to="IMachine::saveSettings" /> to write the settings
1632 to the machine's XML settings file. The configuration of the newly
1633 created machine will not be saved to disk until this method is
1634 called.
1635 </li>
1636
1637 <li>
1638 Call <link to="#registerMachine" /> to add the machine to the list
1639 of machines known to VirtualBox.
1640 </li>
1641 </ol>
1642
1643 The specified guest OS type identifier must match an ID of one of known
1644 guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
1645 array.
1646
1647 Optionally, you may specify an UUID of to assign to the created machine.
1648 However, this is not recommended and you should normally pass an empty
1649 (@c null) UUID to this method so that a new UUID will be automatically
1650 generated for every created machine. You can use UUID
1651 00000000-0000-0000-0000-000000000000 as @c null value.
1652
1653 <note>
1654 There is no way to change the name of the settings file or
1655 subfolder of the created machine directly.
1656 </note>
1657
1658 <result name="VBOX_E_OBJECT_NOT_FOUND">
1659 @a osTypeId is invalid.
1660 </result>
1661 <result name="VBOX_E_FILE_ERROR">
1662 Resulting settings file name is invalid or the settings file already
1663 exists or could not be created due to an I/O error.
1664 </result>
1665 <result name="E_INVALIDARG">
1666 @a name is empty or @c null.
1667 </result>
1668 </desc>
1669
1670 <param name="settingsFile" type="wstring" dir="in">
1671 <desc>Fully qualified path where the settings file should be created,
1672 or NULL for a default folder and file based on the @a name argument
1673 (see <link to="#composeMachineFilename" />).</desc>
1674 </param>
1675 <param name="name" type="wstring" dir="in">
1676 <desc>Machine name.</desc>
1677 </param>
1678 <param name="osTypeId" type="wstring" dir="in">
1679 <desc>Guest OS Type ID.</desc>
1680 </param>
1681 <param name="id" type="uuid" mod="string" dir="in">
1682 <desc>Machine UUID (optional).</desc>
1683 </param>
1684 <param name="forceOverwrite" type="boolean" dir="in">
1685 <desc>If true, an existing machine settings file will be overwritten.</desc>
1686 </param>
1687 <param name="machine" type="IMachine" dir="return">
1688 <desc>Created machine object.</desc>
1689 </param>
1690 </method>
1691
1692 <method name="openMachine">
1693 <desc>
1694 Opens a virtual machine from the existing settings file.
1695 The opened machine remains unregistered until you call
1696 <link to="#registerMachine"/>.
1697
1698 The specified settings file name must be fully qualified.
1699 The file must exist and be a valid machine XML settings file
1700 whose contents will be used to construct the machine object.
1701
1702 <result name="VBOX_E_FILE_ERROR">
1703 Settings file name invalid, not found or sharing violation.
1704 </result>
1705 </desc>
1706 <param name="settingsFile" type="wstring" dir="in">
1707 <desc>
1708 Name of the machine settings file.
1709 </desc>
1710 </param>
1711 <param name="machine" type="IMachine" dir="return">
1712 <desc>Opened machine object.</desc>
1713 </param>
1714 <note>
1715 <link to="IMachine::settingsModified"/> will return
1716 @c false for the created machine, until any of machine settings
1717 are changed.
1718 </note>
1719 </method>
1720
1721 <method name="registerMachine">
1722 <desc>
1723
1724 Registers the machine previously created using
1725 <link to="#createMachine"/> or opened using
1726 <link to="#openMachine"/> within this VirtualBox installation. After
1727 successful method invocation, the
1728 <link to="IMachineRegisteredEvent"/> event is fired.
1729
1730 <note>
1731 This method implicitly calls <link to="IMachine::saveSettings"/>
1732 to save all current machine settings before registering it.
1733 </note>
1734
1735 <result name="VBOX_E_OBJECT_NOT_FOUND">
1736 No matching virtual machine found.
1737 </result>
1738 <result name="VBOX_E_INVALID_OBJECT_STATE">
1739 Virtual machine was not created within this VirtualBox instance.
1740 </result>
1741
1742 </desc>
1743 <param name="machine" type="IMachine" dir="in"/>
1744 </method>
1745
1746 <method name="findMachine">
1747 <desc>
1748 Attempts to find a virtual machine given its name or UUID.
1749
1750 <note>Inaccessible machines cannot be found by name, only by UUID, because their name
1751 cannot safely be determined.</note>
1752
1753 <result name="VBOX_E_OBJECT_NOT_FOUND">
1754 Could not find registered machine matching @a nameOrId.
1755 </result>
1756
1757 </desc>
1758 <param name="nameOrId" type="wstring" dir="in">
1759 <desc>What to search for. This can either be the UUID or the name of a virtual machine.</desc>
1760 </param>
1761 <param name="machine" type="IMachine" dir="return">
1762 <desc>Machine object, if found.</desc>
1763 </param>
1764 </method>
1765
1766 <method name="createAppliance">
1767 <desc>
1768 Creates a new appliance object, which represents an appliance in the Open Virtual Machine
1769 Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
1770 machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
1771 </desc>
1772 <param name="appliance" type="IAppliance" dir="return">
1773 <desc>New appliance.</desc>
1774 </param>
1775 </method>
1776
1777 <method name="createHardDisk">
1778 <desc>
1779 Creates a new base medium object that will use the given storage
1780 format and location for medium data.
1781
1782 The actual storage unit is not created by this method. In order to
1783 do it, and before you are able to attach the created medium to
1784 virtual machines, you must call one of the following methods to
1785 allocate a format-specific storage unit at the specified location:
1786 <ul>
1787 <li><link to="IMedium::createBaseStorage"/></li>
1788 <li><link to="IMedium::createDiffStorage"/></li>
1789 </ul>
1790
1791 Some medium attributes, such as <link to="IMedium::id"/>, may
1792 remain uninitialized until the medium storage unit is successfully
1793 created by one of the above methods.
1794
1795 After the storage unit is successfully created, it will be
1796 accessible through the <link to="#findMedium"/> method and can
1797 be found in the <link to="#hardDisks"/> array.
1798
1799 The list of all storage formats supported by this VirtualBox
1800 installation can be obtained using
1801 <link to="ISystemProperties::mediumFormats"/>. If the @a format
1802 attribute is empty or @c null then the default storage format
1803 specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
1804 be used for creating a storage unit of the medium.
1805
1806 Note that the format of the location string is storage format specific.
1807 See <link to="IMedium::location"/> and IMedium for more details.
1808
1809 <result name="VBOX_E_OBJECT_NOT_FOUND">
1810 @a format identifier is invalid. See
1811 <link to="ISystemProperties::mediumFormats"/>.
1812 </result>
1813 <result name="VBOX_E_FILE_ERROR">
1814 @a location is a not valid file name (for file-based formats only).
1815 </result>
1816 </desc>
1817 <param name="format" type="wstring" dir="in">
1818 <desc>
1819 Identifier of the storage format to use for the new medium.
1820 </desc>
1821 </param>
1822 <param name="location" type="wstring" dir="in">
1823 <desc>
1824 Location of the storage unit for the new medium.
1825 </desc>
1826 </param>
1827 <param name="medium" type="IMedium" dir="return">
1828 <desc>Created medium object.</desc>
1829 </param>
1830 </method>
1831
1832 <method name="openMedium">
1833 <desc>
1834 Opens a medium from an existing storage location.
1835
1836 Once a medium has been opened, it can be passed to other VirtualBox
1837 methods, in particular to <link to="IMachine::attachDevice" />.
1838
1839 Depending on the given device type, the file at the storage location
1840 must be in one of the media formats understood by VirtualBox:
1841
1842 <ul>
1843 <li>With a "HardDisk" device type, the file must be a hard disk image
1844 in one of the formats supported by VirtualBox (see
1845 <link to="ISystemProperties::mediumFormats" />).
1846 After this method succeeds, if the medium is a base medium, it
1847 will be added to the <link to="#hardDisks"/> array attribute. </li>
1848 <li>With a "DVD" device type, the file must be an ISO 9960 CD/DVD image.
1849 After this method succeeds, the medium will be added to the
1850 <link to="#DVDImages"/> array attribute.</li>
1851 <li>With a "Floppy" device type, the file must be an RAW floppy image.
1852 After this method succeeds, the medium will be added to the
1853 <link to="#floppyImages"/> array attribute.</li>
1854 </ul>
1855
1856 After having been opened, the medium can be found by the <link to="#findMedium"/>
1857 method and can be attached to virtual machines. See <link to="IMedium" /> for more details.
1858
1859 The UUID of the newly opened medium will either be retrieved from the
1860 storage location, if the format supports it (e.g. for hard disk images),
1861 or a new UUID will be randomly generated (e.g. for ISO and RAW files).
1862 If for some reason you need to change the medium's UUID, use
1863 <link to="IMedium::setIDs" />.
1864
1865 If a differencing hard disk medium is to be opened by this method, the
1866 operation will succeed only if its parent medium and all ancestors,
1867 if any, are already known to this VirtualBox installation (for example,
1868 were opened by this method before).
1869
1870 This method attempts to guess the storage format of the specified medium
1871 by reading medium data at the specified location.
1872
1873 If @a accessMode is ReadWrite (which it should be for hard disks and floppies),
1874 the image is opened for read/write access and must have according permissions,
1875 as VirtualBox may actually write status information into the disk's metadata
1876 sections.
1877
1878 Note that write access is required for all typical hard disk usage in VirtualBox,
1879 since VirtualBox may need to write metadata such as a UUID into the image.
1880 The only exception is opening a source image temporarily for copying and
1881 cloning (see <link to="IMedium::cloneTo" /> when the image will be closed
1882 again soon.
1883
1884 The format of the location string is storage format specific. See
1885 <link to="IMedium::location"/> and IMedium for more details.
1886
1887 <result name="VBOX_E_FILE_ERROR">
1888 Invalid medium storage file location or could not find the medium
1889 at the specified location.
1890 </result>
1891 <result name="VBOX_E_IPRT_ERROR">
1892 Could not get medium storage format.
1893 </result>
1894 <result name="E_INVALIDARG">
1895 Invalid medium storage format.
1896 </result>
1897 <result name="VBOX_E_INVALID_OBJECT_STATE">
1898 Medium has already been added to a media registry.
1899 </result>
1900 </desc>
1901 <param name="location" type="wstring" dir="in">
1902 <desc>
1903 Location of the storage unit that contains medium data in one of
1904 the supported storage formats.
1905 </desc>
1906 </param>
1907 <param name="deviceType" type="DeviceType" dir="in">
1908 <desc>
1909 Must be one of "HardDisk", "DVD" or "Floppy".
1910 </desc>
1911 </param>
1912 <param name="accessMode" type="AccessMode" dir="in">
1913 <desc>Whether to open the image in read/write or read-only mode. For
1914 a "DVD" device type, this is ignored and read-only mode is always assumed.</desc>
1915 </param>
1916 <param name="medium" type="IMedium" dir="return">
1917 <desc>Opened medium object.</desc>
1918 </param>
1919 </method>
1920
1921 <method name="findMedium">
1922 <desc>
1923 Returns a medium of the given type that uses the given fully qualified
1924 location or UUID to store medium data.
1925
1926 The given medium must be known to this VirtualBox installation, i.e.
1927 it must be previously created by <link to="#createHardDisk"/> or opened
1928 by <link to="#openMedium"/>.
1929
1930 The search is done by comparing the value of the @a location argument to
1931 the <link to="IMedium::location"/> and <link to="IMedium::id" />
1932 attributes of each known medium.
1933
1934 On case sensitive file systems, a case sensitive comparison is performed,
1935 otherwise the case of symbols in the file path is ignored.
1936
1937 <result name="VBOX_E_OBJECT_NOT_FOUND">
1938 No medium object matching @a location found.
1939 </result>
1940 </desc>
1941 <param name="location" type="wstring" dir="in">
1942 <desc>What to search for. This can either be the UUID or the location string of an open medium.</desc>
1943 </param>
1944 <param name="type" type="DeviceType" dir="in">
1945 <desc>Device type (must be HardDisk, DVD or Floppy)</desc>
1946 </param>
1947 <param name="medium" type="IMedium" dir="return">
1948 <desc>Medium object, if found.</desc>
1949 </param>
1950 </method>
1951
1952 <method name="getGuestOSType">
1953 <desc>
1954 Returns an object describing the specified guest OS type.
1955
1956 The requested guest OS type is specified using a string which is a
1957 mnemonic identifier of the guest operating system, such as
1958 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
1959 particular virtual machine can be read or set using the
1960 <link to="IMachine::OSTypeId"/> attribute.
1961
1962 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
1963 available guest OS type objects. Each object has an
1964 <link to="IGuestOSType::id"/> attribute which contains an identifier of
1965 the guest OS this object describes.
1966
1967 <result name="E_INVALIDARG">
1968 @a id is not a valid Guest OS type.
1969 </result>
1970
1971 </desc>
1972 <param name="id" type="uuid" mod="string" dir="in">
1973 <desc>Guest OS type ID string.</desc>
1974 </param>
1975 <param name="type" type="IGuestOSType" dir="return">
1976 <desc>Guest OS type object.</desc>
1977 </param>
1978 </method>
1979
1980 <method name="createSharedFolder">
1981 <desc>
1982 Creates a new global shared folder by associating the given logical
1983 name with the given host path, adds it to the collection of shared
1984 folders and starts sharing it. Refer to the description of
1985 <link to="ISharedFolder"/> to read more about logical names.
1986 <note>
1987 In the current implementation, this operation is not
1988 implemented.
1989 </note>
1990 </desc>
1991 <param name="name" type="wstring" dir="in">
1992 <desc>Unique logical name of the shared folder.</desc>
1993 </param>
1994 <param name="hostPath" type="wstring" dir="in">
1995 <desc>Full path to the shared folder in the host file system.</desc>
1996 </param>
1997 <param name="writable" type="boolean" dir="in">
1998 <desc>Whether the share is writable or readonly</desc>
1999 </param>
2000 <param name="automount" type="boolean" dir="in">
2001 <desc>Whether the share gets automatically mounted by the guest
2002 or not.</desc>
2003 </param>
2004 </method>
2005
2006 <method name="removeSharedFolder">
2007 <desc>
2008 Removes the global shared folder with the given name previously
2009 created by <link to="#createSharedFolder"/> from the collection of
2010 shared folders and stops sharing it.
2011 <note>
2012 In the current implementation, this operation is not
2013 implemented.
2014 </note>
2015 </desc>
2016 <param name="name" type="wstring" dir="in">
2017 <desc>Logical name of the shared folder to remove.</desc>
2018 </param>
2019 </method>
2020
2021 <method name="getExtraDataKeys">
2022 <desc>
2023 Returns an array representing the global extra data keys which currently
2024 have values defined.
2025 </desc>
2026 <param name="value" type="wstring" dir="return" safearray="yes">
2027 <desc>Array of extra data keys.</desc>
2028 </param>
2029 </method>
2030
2031 <method name="getExtraData">
2032 <desc>
2033 Returns associated global extra data.
2034
2035 If the requested data @a key does not exist, this function will
2036 succeed and return an empty string in the @a value argument.
2037
2038 <result name="VBOX_E_FILE_ERROR">
2039 Settings file not accessible.
2040 </result>
2041 <result name="VBOX_E_XML_ERROR">
2042 Could not parse the settings file.
2043 </result>
2044
2045 </desc>
2046 <param name="key" type="wstring" dir="in">
2047 <desc>Name of the data key to get.</desc>
2048 </param>
2049 <param name="value" type="wstring" dir="return">
2050 <desc>Value of the requested data key.</desc>
2051 </param>
2052 </method>
2053
2054 <method name="setExtraData">
2055 <desc>
2056 Sets associated global extra data.
2057
2058 If you pass @c null or empty string as a key @a value, the given @a key
2059 will be deleted.
2060
2061 <note>
2062 Before performing the actual data change, this method will ask all
2063 registered event listener using the
2064 <link to="IExtraDataCanChangeEvent"/>
2065 notification for a permission. If one of the listeners refuses the
2066 new value, the change will not be performed.
2067 </note>
2068 <note>
2069 On success, the
2070 <link to="IExtraDataChangedEvent"/> notification
2071 is called to inform all registered listeners about a successful data
2072 change.
2073 </note>
2074
2075 <result name="VBOX_E_FILE_ERROR">
2076 Settings file not accessible.
2077 </result>
2078 <result name="VBOX_E_XML_ERROR">
2079 Could not parse the settings file.
2080 </result>
2081 <result name="E_ACCESSDENIED">
2082 Modification request refused.
2083 </result>
2084
2085 </desc>
2086 <param name="key" type="wstring" dir="in">
2087 <desc>Name of the data key to set.</desc>
2088 </param>
2089 <param name="value" type="wstring" dir="in">
2090 <desc>Value to assign to the key.</desc>
2091 </param>
2092 </method>
2093
2094 <!--method name="createDHCPServerForInterface">
2095 <desc>
2096 Creates a dhcp server settings to be used for the given interface
2097 <result name="E_INVALIDARG">
2098 Host network interface @a name already exists.
2099 </result>
2100 </desc>
2101 <param name="interface" type="IHostNetworkInterface" dir="in">
2102 <desc>Network Interface</desc>
2103 </param>
2104 <param name="server" type="IDHCPServer" dir="out">
2105 <desc>Dhcp server settings</desc>
2106 </param>
2107 </method-->
2108
2109 <method name="createDHCPServer">
2110 <desc>
2111 Creates a dhcp server settings to be used for the given internal network name
2112 <result name="E_INVALIDARG">
2113 Host network interface @a name already exists.
2114 </result>
2115 </desc>
2116 <param name="name" type="wstring" dir="in">
2117 <desc>server name</desc>
2118 </param>
2119 <param name="server" type="IDHCPServer" dir="return">
2120 <desc>Dhcp server settings</desc>
2121 </param>
2122 </method>
2123
2124 <method name="findDHCPServerByNetworkName">
2125 <desc>
2126 Searches a dhcp server settings to be used for the given internal network name
2127 <result name="E_INVALIDARG">
2128 Host network interface @a name already exists.
2129 </result>
2130
2131 </desc>
2132 <param name="name" type="wstring" dir="in">
2133 <desc>server name</desc>
2134 </param>
2135 <param name="server" type="IDHCPServer" dir="return">
2136 <desc>Dhcp server settings</desc>
2137 </param>
2138 </method>
2139
2140 <!--method name="findDHCPServerForInterface">
2141 <desc>
2142 Searches a dhcp server settings to be used for the given interface
2143 <result name="E_INVALIDARG">
2144 Host network interface @a name already exists.
2145 </result>
2146 </desc>
2147 <param name="interface" type="IHostNetworkInterface" dir="in">
2148 <desc>Network Interface</desc>
2149 </param>
2150 <param name="server" type="IDHCPServer" dir="out">
2151 <desc>Dhcp server settings</desc>
2152 </param>
2153 </method-->
2154
2155 <method name="removeDHCPServer">
2156 <desc>
2157 Removes the dhcp server settings
2158 <result name="E_INVALIDARG">
2159 Host network interface @a name already exists.
2160 </result>
2161 </desc>
2162 <param name="server" type="IDHCPServer" dir="in">
2163 <desc>Dhcp server settings to be removed</desc>
2164 </param>
2165 </method>
2166
2167
2168 <method name="checkFirmwarePresent">
2169 <desc>
2170 Check if this VirtualBox installation has a firmware
2171 of the given type available, either system-wide or per-user.
2172 Optionally, this may return a hint where this firmware can be
2173 downloaded from.
2174 </desc>
2175 <param name="firmwareType" type="FirmwareType" dir="in">
2176 <desc>
2177 Type of firmware to check.
2178 </desc>
2179 </param>
2180 <param name="version" type="wstring" dir="in">
2181 <desc>Expected version number, usually empty string (presently ignored).</desc>
2182 </param>
2183
2184 <param name="url" type="wstring" dir="out">
2185 <desc>
2186 Suggested URL to download this firmware from.
2187 </desc>
2188 </param>
2189
2190 <param name="file" type="wstring" dir="out">
2191 <desc>
2192 Filename of firmware, only valid if result == TRUE.
2193 </desc>
2194 </param>
2195
2196 <param name="result" type="boolean" dir="return">
2197 <desc>If firmware of this type and version is available.</desc>
2198 </param>
2199 </method>
2200
2201 </interface>
2202
2203 <!--
2204 // IVFSExplorer
2205 /////////////////////////////////////////////////////////////////////////
2206 -->
2207
2208 <enum
2209 name="VFSType"
2210 uuid="813999ba-b949-48a8-9230-aadc6285e2f2"
2211 >
2212 <desc>
2213 Virtual file systems supported by VFSExplorer.
2214 </desc>
2215
2216 <const name="File" value="1" />
2217 <const name="Cloud" value="2" />
2218 <const name="S3" value="3" />
2219 <const name="WebDav" value="4" />
2220 </enum>
2221
2222 <enum
2223 name="VFSFileType"
2224 uuid="714333cd-44e2-415f-a245-d378fa9b1242"
2225 >
2226 <desc>
2227 File types known by VFSExplorer.
2228 </desc>
2229
2230 <const name="Unknown" value="1" />
2231 <const name="Fifo" value="2" />
2232 <const name="DevChar" value="3" />
2233 <const name="Directory" value="4" />
2234 <const name="DevBlock" value="5" />
2235 <const name="File" value="6" />
2236 <const name="SymLink" value="7" />
2237 <const name="Socket" value="8" />
2238 <const name="WhiteOut" value="9" />
2239 </enum>
2240
2241 <interface
2242 name="IVFSExplorer" extends="$unknown"
2243 uuid="003d7f92-d38e-487f-b790-8c5e8631cb2f"
2244 wsmap="managed"
2245 >
2246 <desc>
2247 The VFSExplorer interface unifies access to different file system
2248 types. This includes local file systems as well remote file systems like
2249 S3. For a list of supported types see <link to="VFSType" />.
2250 An instance of this is returned by <link to="IAppliance::createVFSExplorer" />.
2251 </desc>
2252
2253 <attribute name="path" type="wstring" readonly="yes">
2254 <desc>Returns the current path in the virtual file system.</desc>
2255 </attribute>
2256
2257 <attribute name="type" type="VFSType" readonly="yes">
2258 <desc>Returns the file system type which is currently in use.</desc>
2259 </attribute>
2260
2261 <method name="update">
2262 <desc>Updates the internal list of files/directories from the
2263 current directory level. Use <link to="#entryList" /> to get the full list
2264 after a call to this method.</desc>
2265
2266 <param name="aProgress" type="IProgress" dir="return">
2267 <desc>Progress object to track the operation completion.</desc>
2268 </param>
2269 </method>
2270
2271 <method name="cd">
2272 <desc>Change the current directory level.</desc>
2273
2274 <param name="aDir" type="wstring" dir="in">
2275 <desc>The name of the directory to go in.</desc>
2276 </param>
2277
2278 <param name="aProgress" type="IProgress" dir="return">
2279 <desc>Progress object to track the operation completion.</desc>
2280 </param>
2281 </method>
2282
2283 <method name="cdUp">
2284 <desc>Go one directory upwards from the current directory level.</desc>
2285
2286 <param name="aProgress" type="IProgress" dir="return">
2287 <desc>Progress object to track the operation completion.</desc>
2288 </param>
2289 </method>
2290
2291 <method name="entryList">
2292 <desc>Returns a list of files/directories after a call to <link
2293 to="#update" />. The user is responsible for keeping this internal
2294 list up do date.</desc>
2295
2296 <param name="aNames" type="wstring" safearray="yes" dir="out">
2297 <desc>The list of names for the entries.</desc>
2298 </param>
2299
2300 <param name="aTypes" type="unsigned long" safearray="yes" dir="out">
2301 <desc>The list of types for the entries.</desc>
2302 </param>
2303
2304 <param name="aSizes" type="unsigned long" safearray="yes" dir="out">
2305 <desc>The list of sizes (in bytes) for the entries.</desc>
2306 </param>
2307
2308 <param name="aModes" type="unsigned long" safearray="yes" dir="out">
2309 <desc>The list of file modes (in octal form) for the entries.</desc>
2310 </param>
2311 </method>
2312
2313 <method name="exists">
2314 <desc>Checks if the given file list exists in the current directory
2315 level.</desc>
2316
2317 <param name="aNames" type="wstring" safearray="yes" dir="in">
2318 <desc>The names to check.</desc>
2319 </param>
2320
2321 <param name="aExists" type="wstring" safearray="yes" dir="return">
2322 <desc>The names which exist.</desc>
2323 </param>
2324 </method>
2325
2326 <method name="remove">
2327 <desc>Deletes the given files in the current directory level.</desc>
2328
2329 <param name="aNames" type="wstring" safearray="yes" dir="in">
2330 <desc>The names to remove.</desc>
2331 </param>
2332
2333 <param name="aProgress" type="IProgress" dir="return">
2334 <desc>Progress object to track the operation completion.</desc>
2335 </param>
2336 </method>
2337
2338 </interface>
2339
2340 <!--
2341 // IAppliance
2342 /////////////////////////////////////////////////////////////////////////
2343 -->
2344
2345 <interface
2346 name="IAppliance" extends="$unknown"
2347 uuid="7b148032-4124-4f46-b56a-b48ac1273f5a"
2348 wsmap="managed"
2349 >
2350 <desc>
2351 Represents a platform-independent appliance in OVF format. An instance of this is returned
2352 by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
2353 virtual machines within an appliance with VirtualBox.
2354
2355 The OVF standard suggests two different physical file formats:
2356
2357 <ol>
2358 <li>If the appliance is distributed as a set of files, there must be at least one XML descriptor
2359 file that conforms to the OVF standard and carries an <tt>.ovf</tt> file extension. If
2360 this descriptor file references other files such as disk images, as OVF appliances typically
2361 do, those additional files must be in the same directory as the descriptor file.</li>
2362
2363 <li>If the appliance is distributed as a single file, it must be in TAR format and have the
2364 <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
2365 files and optionally other files.
2366
2367 At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
2368 be added with a later version.</li>
2369 </ol>
2370
2371 <b>Importing</b> an OVF appliance into VirtualBox as instances of
2372 <link to="IMachine" /> involves the following sequence of API calls:
2373
2374 <ol>
2375 <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
2376 </li>
2377
2378 <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
2379 would like to import. So long as this file is syntactically valid, this will succeed
2380 and fill the appliance object with the parsed data from the OVF file.
2381 </li>
2382
2383 <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
2384 contents of the IAppliance attributes accordingly. These can be inspected by a
2385 VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
2386 user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
2387 instances of <link to="IVirtualSystemDescription" /> which represent the virtual
2388 systems (machines) in the OVF, which in turn describe the virtual hardware prescribed
2389 by the OVF (network and hardware adapters, virtual disk images, memory size and so on).
2390 The GUI can then give the user the option to confirm and/or change these suggestions.
2391 </li>
2392
2393 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2394 virtual system (machine) to override the suggestions made by the interpret() routine.
2395 </li>
2396
2397 <li>Finally, call <link to="#importMachines" /> to create virtual machines in
2398 VirtualBox as instances of <link to="IMachine" /> that match the information in the
2399 virtual system descriptions. After this call succeeded, the UUIDs of the machines created
2400 can be found in the <link to="#machines" /> array attribute.
2401 </li>
2402 </ol>
2403
2404 <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
2405
2406 <ol>
2407 <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
2408 an empty IAppliance object.
2409 </li>
2410
2411 <li>For each machine you would like to export, call <link to="IMachine::export" />
2412 with the IAppliance object you just created. Each such call creates one instance of
2413 <link to="IVirtualSystemDescription" /> inside the appliance.
2414 </li>
2415
2416 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2417 virtual system (machine) to override the suggestions made by the export() routine.
2418 </li>
2419
2420 <li>Finally, call <link to="#write" /> with a path specification to have the OVF
2421 file written.</li>
2422 </ol>
2423
2424 </desc>
2425
2426 <attribute name="path" type="wstring" readonly="yes">
2427 <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
2428 the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
2429 <link to="#write" /> (for export).
2430 This attribute is empty until one of these methods has been called.
2431 </desc>
2432 </attribute>
2433
2434 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
2435 <desc>
2436 Array of virtual disk definitions. One such description exists for each
2437 disk definition in the OVF; each string array item represents one such piece of
2438 disk information, with the information fields separated by tab (\\t) characters.
2439
2440 The caller should be prepared for additional fields being appended to
2441 this string in future versions of VirtualBox and therefore check for
2442 the number of tabs in the strings returned.
2443
2444 In the current version, the following eight fields are returned per string
2445 in the array:
2446
2447 <ol>
2448 <li>Disk ID (unique string identifier given to disk)</li>
2449
2450 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
2451
2452 <li>Populated size (optional unsigned integer indicating the current size of the
2453 disk; can be approximate; -1 if unspecified)</li>
2454
2455 <li>Format (string identifying the disk format, typically
2456 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
2457
2458 <li>Reference (where to find the disk image, typically a file name; if empty,
2459 then the disk should be created on import)</li>
2460
2461 <li>Image size (optional unsigned integer indicating the size of the image,
2462 which need not necessarily be the same as the values specified above, since
2463 the image may be compressed or sparse; -1 if not specified)</li>
2464
2465 <li>Chunk size (optional unsigned integer if the image is split into chunks;
2466 presently unsupported and always -1)</li>
2467
2468 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
2469 </ol>
2470 </desc>
2471 </attribute>
2472
2473 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
2474 <desc> Array of virtual system descriptions. One such description is created
2475 for each virtual system (machine) found in the OVF.
2476 This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::export" />
2477 (for export) has been called.
2478 </desc>
2479 </attribute>
2480
2481 <attribute name="machines" type="wstring" readonly="yes" safearray="yes">
2482 <desc>
2483 Contains the UUIDs of the machines created from the information in this appliances. This is only
2484 relevant for the import case, and will only contain data after a call to <link to="#importMachines" />
2485 succeeded.
2486 </desc>
2487 </attribute>
2488
2489 <method name="read">
2490 <desc>
2491 Reads an OVF file into the appliance object.
2492
2493 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
2494 mere fact that this method returns successfully does not mean that VirtualBox supports all
2495 features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
2496 </desc>
2497 <param name="file" type="wstring" dir="in">
2498 <desc>
2499 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2500 on whether the appliance is distributed as a set of files or as a single file, respectively).
2501 </desc>
2502 </param>
2503 <param name="aProgress" type="IProgress" dir="return">
2504 <desc>Progress object to track the operation completion.</desc>
2505 </param>
2506 </method>
2507
2508 <method name="interpret">
2509 <desc>
2510 Interprets the OVF data that was read when the appliance was constructed. After
2511 calling this method, one can inspect the
2512 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
2513 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
2514 the appliance.
2515
2516 Calling this method is the second step of importing an appliance into VirtualBox;
2517 see <link to="IAppliance" /> for an overview.
2518
2519 After calling this method, one should call <link to="#getWarnings" /> to find out
2520 if problems were encountered during the processing which might later lead to
2521 errors.
2522 </desc>
2523 </method>
2524
2525 <method name="importMachines">
2526 <desc>
2527 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
2528 and other interfaces that match the information contained in the appliance as
2529 closely as possible, as represented by the import instructions in the
2530 <link to="#virtualSystemDescriptions" /> array.
2531
2532 Calling this method is the final step of importing an appliance into VirtualBox;
2533 see <link to="IAppliance" /> for an overview.
2534
2535 Since importing the appliance will most probably involve copying and converting
2536 disk images, which can take a long time, this method operates asynchronously and
2537 returns an IProgress object to allow the caller to monitor the progress.
2538
2539 After the import succeeded, the UUIDs of the IMachine instances created can be
2540 retrieved from the <link to="#machines" /> array attribute.
2541 </desc>
2542
2543 <param name="aProgress" type="IProgress" dir="return">
2544 <desc>Progress object to track the operation completion.</desc>
2545 </param>
2546 </method>
2547
2548 <method name="createVFSExplorer">
2549 <desc>Returns a <link to="IVFSExplorer" /> object for the given URI.</desc>
2550
2551 <param name="aUri" type="wstring" dir="in">
2552 <desc>The URI describing the file system to use.</desc>
2553 </param>
2554
2555 <param name="aExplorer" type="IVFSExplorer" dir="return">
2556 <desc></desc>
2557 </param>
2558 </method>
2559
2560 <method name="write">
2561 <desc>
2562 Writes the contents of the appliance exports into a new OVF file.
2563
2564 Calling this method is the final step of exporting an appliance from VirtualBox;
2565 see <link to="IAppliance" /> for an overview.
2566
2567 Since exporting the appliance will most probably involve copying and converting
2568 disk images, which can take a long time, this method operates asynchronously and
2569 returns an IProgress object to allow the caller to monitor the progress.
2570 </desc>
2571 <param name="format" type="wstring" dir="in">
2572 <desc>
2573 Output format, as a string. Currently supported formats are "ovf-0.9" and "ovf-1.0";
2574 future versions of VirtualBox may support additional formats.
2575 </desc>
2576 </param>
2577 <param name="manifest" type="boolean" dir="in">
2578 <desc>
2579 Indicate if the optional manifest file (.mf) should be written. The manifest file
2580 is used for integrity checks prior import.
2581 </desc>
2582 </param>
2583 <param name="path" type="wstring" dir="in">
2584 <desc>
2585 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2586 on whether the appliance is distributed as a set of files or as a single file, respectively).
2587 </desc>
2588 </param>
2589 <param name="progress" type="IProgress" dir="return">
2590 <desc>Progress object to track the operation completion.</desc>
2591 </param>
2592 </method>
2593
2594 <method name="getWarnings">
2595 <desc>Returns textual warnings which occurred during execution of <link to="#interpret" />.</desc>
2596
2597 <param name="aWarnings" type="wstring" dir="return" safearray="yes">
2598 <desc></desc>
2599 </param>
2600 </method>
2601
2602 </interface>
2603
2604 <enum
2605 name="VirtualSystemDescriptionType"
2606 uuid="c0f8f135-3a1d-417d-afa6-b38b95a91f90"
2607 >
2608 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
2609 a configuration value.</desc>
2610
2611 <const name="Ignore" value="1" />
2612 <const name="OS" value="2" />
2613 <const name="Name" value="3" />
2614 <const name="Product" value="4" />
2615 <const name="Vendor" value="5" />
2616 <const name="Version" value="6" />
2617 <const name="ProductUrl" value="7" />
2618 <const name="VendorUrl" value="8" />
2619 <const name="Description" value="9" />
2620 <const name="License" value="10" />
2621 <const name="Miscellaneous" value="11" />
2622 <const name="CPU" value="12" />
2623 <const name="Memory" value="13" />
2624 <const name="HardDiskControllerIDE" value="14" />
2625 <const name="HardDiskControllerSATA" value="15" />
2626 <const name="HardDiskControllerSCSI" value="16" />
2627 <const name="HardDiskControllerSAS" value="17" />
2628 <const name="HardDiskImage" value="18" />
2629 <const name="Floppy" value="19" />
2630 <const name="CDROM" value="20" />
2631 <const name="NetworkAdapter" value="21" />
2632 <const name="USBController" value="22" />
2633 <const name="SoundCard" value="23" />
2634
2635 </enum>
2636
2637 <enum
2638 name="VirtualSystemDescriptionValueType"
2639 uuid="56d9403f-3425-4118-9919-36f2a9b8c77c"
2640 >
2641 <desc>Used with <link to="IVirtualSystemDescription::getValuesByType" /> to describe the value
2642 type to fetch.</desc>
2643
2644 <const name="Reference" value="1" />
2645 <const name="Original" value="2" />
2646 <const name="Auto" value="3" />
2647 <const name="ExtraConfig" value="4" />
2648
2649 </enum>
2650
2651 <interface
2652 name="IVirtualSystemDescription" extends="$unknown"
2653 uuid="d7525e6c-531a-4c51-8e04-41235083a3d8"
2654 wsmap="managed"
2655 >
2656
2657 <desc>Represents one virtual system (machine) in an appliance. This interface is used in
2658 the <link to="IAppliance::virtualSystemDescriptions" /> array. After
2659 <link to="IAppliance::interpret" /> has been called, that array contains information
2660 about how the virtual systems described in the OVF should best be imported into
2661 VirtualBox virtual machines. See <link to="IAppliance" /> for the steps required to
2662 import an OVF into VirtualBox.
2663 </desc>
2664
2665 <attribute name="count" type="unsigned long" readonly="yes">
2666 <desc>Return the number of virtual system description entries.</desc>
2667 </attribute>
2668
2669 <method name="getDescription">
2670 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
2671 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
2672
2673 The list below identifies the value sets that are possible depending on the
2674 <link to="VirtualSystemDescriptionType" /> enum value in the array item in @a aTypes[]. In each case,
2675 the array item with the same index in @a aOvfValues[] will contain the original value as contained
2676 in the OVF file (just for informational purposes), and the corresponding item in @a aVBoxValues[]
2677 will contain a suggested value to be used for VirtualBox. Depending on the description type,
2678 the @a aExtraConfigValues[] array item may also be used.
2679
2680 <ul>
2681 <li>
2682 "OS": the guest operating system type. There must be exactly one such array item on import. The
2683 corresponding item in @a aVBoxValues[] contains the suggested guest operating system for VirtualBox.
2684 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
2685 item in @a aOvfValues[] will contain a numerical value that described the operating system in the OVF.
2686 </li>
2687 <li>
2688 "Name": the name to give to the new virtual machine. There can be at most one such array item;
2689 if none is present on import, then an automatic name will be created from the operating system
2690 type. The corresponding item im @a aOvfValues[] will contain the suggested virtual machine name
2691 from the OVF file, and @a aVBoxValues[] will contain a suggestion for a unique VirtualBox
2692 <link to="IMachine" /> name that does not exist yet.
2693 </li>
2694 <li>
2695 "Description": an arbitrary description.
2696 </li>
2697 <li>
2698 "License": the EULA section from the OVF, if present. It is the responsibility of the calling
2699 code to display such a license for agreement; the Main API does not enforce any such policy.
2700 </li>
2701 <li>
2702 Miscellaneous: reserved for future use.
2703 </li>
2704 <li>
2705 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
2706 </li>
2707 <li>
2708 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
2709 is present on import, then VirtualBox will set a meaningful default based on the operating system
2710 type.
2711 </li>
2712 <li>
2713 "HardDiskControllerIDE": an IDE hard disk controller. There can be at most two such items.
2714 An optional value in @a aOvfValues[] and @a aVBoxValues[] can be "PIIX3" or "PIIX4" to specify
2715 the type of IDE controller; this corresponds to the ResourceSubType element which VirtualBox
2716 writes into the OVF.
2717 The matching item in the @a aRefs[] array will contain an integer that items of the "Harddisk"
2718 type can use to specify which hard disk controller a virtual disk should be connected to.
2719 Note that in OVF, an IDE controller has two channels, corresponding to "master" and "slave"
2720 in traditional terminology, whereas the IDE storage controller that VirtualBox supports in
2721 its virtual machines supports four channels (primary master, primary slave, secondary master,
2722 secondary slave) and thus maps to two IDE controllers in the OVF sense.
2723 </li>
2724 <li>
2725 "HardDiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
2726 has no value in @a aOvfValues[] or @a aVBoxValues[].
2727 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
2728 </li>
2729 <li>
2730 "HardDiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
2731 The items in @a aOvfValues[] and @a aVBoxValues[] will either be "LsiLogic", "BusLogic" or
2732 "LsiLogicSas". (Note that in OVF, the LsiLogicSas controller is treated as a SCSI controller
2733 whereas VirtualBox considers it a class of storage controllers of its own; see
2734 <link to="StorageControllerType" />).
2735 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
2736 </li>
2737 <li>
2738 "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
2739 arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
2740
2741 The array item in @a aOvfValues[] will contain the file specification from the OVF file (without
2742 a path since the image file should be in the same location as the OVF file itself), whereas the
2743 item in @a aVBoxValues[] will contain a qualified path specification to where VirtualBox uses the
2744 hard disk image. This means that on import the image will be copied and converted from the
2745 "ovf" location to the "vbox" location; on export, this will be handled the other way round.
2746
2747 The matching item in the @a aExtraConfigValues[] array must contain a string of the following
2748 format: "controller=&lt;index&gt;;channel=&lt;c&gt;"
2749 In this string, &lt;index&gt; must be an integer specifying the hard disk controller to connect
2750 the image to. That number must be the index of an array item with one of the hard disk controller
2751 types (HardDiskControllerSCSI, HardDiskControllerSATA, HardDiskControllerIDE).
2752 In addition, &lt;c&gt; must specify the channel to use on that controller. For IDE controllers,
2753 this can be 0 or 1 for master or slave, respectively. For compatibility with VirtualBox versions
2754 before 3.2, the values 2 and 3 (for secondary master and secondary slave) are also supported, but
2755 no longer exported. For SATA and SCSI controllers, the channel can range from 0-29.
2756 </li>
2757 <li>
2758 "CDROM": a virtual CD-ROM drive. The matching item in @a aExtraConfigValue[] contains the same
2759 attachment information as with "HardDiskImage" items.
2760 </li>
2761 <li>
2762 "CDROM": a virtual floppy drive. The matching item in @a aExtraConfigValue[] contains the same
2763 attachment information as with "HardDiskImage" items.
2764 </li>
2765 <li>
2766 "NetworkAdapter": a network adapter. The array item in @a aVBoxValues[] will specify the hardware
2767 for the network adapter, whereas the array item in @a aExtraConfigValues[] will have a string
2768 of the "type=&lt;X&gt;" format, where &lt;X&gt; must be either "NAT" or "Bridged".
2769 </li>
2770 <li>
2771 "USBController": a USB controller. There can be at most one such item. If and only if such an
2772 item ispresent, USB support will be enabled for the new virtual machine.
2773 </li>
2774 <li>
2775 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
2776 present, sound support will be enabled for the new virtual machine. Note that the virtual
2777 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
2778 may be different from the virtual soundcard expected by the appliance.
2779 </li>
2780 </ul>
2781
2782 </desc>
2783
2784 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
2785 <desc></desc>
2786 </param>
2787
2788 <param name="aRefs" type="wstring" dir="out" safearray="yes">
2789 <desc></desc>
2790 </param>
2791
2792 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
2793 <desc></desc>
2794 </param>
2795
2796 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
2797 <desc></desc>
2798 </param>
2799
2800 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
2801 <desc></desc>
2802 </param>
2803
2804 </method>
2805
2806 <method name="getDescriptionByType">
2807 <desc>This is the same as <link to="#getDescription" /> except that you can specify which types
2808 should be returned.</desc>
2809
2810 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
2811 <desc></desc>
2812 </param>
2813
2814 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
2815 <desc></desc>
2816 </param>
2817
2818 <param name="aRefs" type="wstring" dir="out" safearray="yes">
2819 <desc></desc>
2820 </param>
2821
2822 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
2823 <desc></desc>
2824 </param>
2825
2826 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
2827 <desc></desc>
2828 </param>
2829
2830 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
2831 <desc></desc>
2832 </param>
2833
2834 </method>
2835
2836 <method name="getValuesByType">
2837 <desc>This is the same as <link to="#getDescriptionByType" /> except that you can specify which
2838 value types should be returned. See <link to="VirtualSystemDescriptionValueType" /> for possible
2839 values.</desc>
2840
2841 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
2842 <desc></desc>
2843 </param>
2844
2845 <param name="aWhich" type="VirtualSystemDescriptionValueType" dir="in">
2846 <desc></desc>
2847 </param>
2848
2849 <param name="aValues" type="wstring" dir="return" safearray="yes">
2850 <desc></desc>
2851 </param>
2852
2853 </method>
2854
2855 <method name="setFinalValues">
2856 <desc>
2857 This method allows the appliance's user to change the configuration for the virtual
2858 system descriptions. For each array item returned from <link to="#getDescription" />,
2859 you must pass in one boolean value and one configuration value.
2860
2861 Each item in the boolean array determines whether the particular configuration item
2862 should be enabled.
2863 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
2864 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
2865 and SoundCard.
2866
2867 For the "vbox" and "extra configuration" values, if you pass in the same arrays
2868 as returned in the aVBoxValues and aExtraConfigValues arrays from getDescription(),
2869 the configuration remains unchanged. Please see the documentation for getDescription()
2870 for valid configuration values for the individual array item types. If the
2871 corresponding item in the aEnabled array is @c false, the configuration value is ignored.
2872 </desc>
2873
2874 <param name="aEnabled" type="boolean" dir="in" safearray="yes">
2875 <desc></desc>
2876 </param>
2877
2878 <param name="aVBoxValues" type="wstring" dir="in" safearray="yes">
2879 <desc></desc>
2880 </param>
2881
2882 <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
2883 <desc></desc>
2884 </param>
2885 </method>
2886
2887 <method name="addDescription">
2888 <desc>
2889 This method adds an additional description entry to the stack of already
2890 available descriptions for this virtual system. This is handy for writing
2891 values which aren't directly supported by VirtualBox. One example would
2892 be the License type of <link to="VirtualSystemDescriptionType" />.
2893 </desc>
2894
2895 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
2896 <desc></desc>
2897 </param>
2898
2899 <param name="aVBoxValue" type="wstring" dir="in">
2900 <desc></desc>
2901 </param>
2902
2903 <param name="aExtraConfigValue" type="wstring" dir="in">
2904 <desc></desc>
2905 </param>
2906 </method>
2907 </interface>
2908
2909
2910 <!--
2911 // IMachine
2912 /////////////////////////////////////////////////////////////////////////
2913 -->
2914
2915 <interface
2916 name="IInternalMachineControl" extends="$unknown"
2917 uuid="8e723ab0-812c-5662-dd8e-7ebc89637acf"
2918 internal="yes"
2919 wsmap="suppress"
2920 >
2921 <method name="setRemoveSavedStateFile">
2922 <desc>
2923 Updates the flag whether the saved state file is removed on a
2924 machine state change from Saved to PoweredOff.
2925 </desc>
2926 <param name="aRemove" type="boolean" dir="in"/>
2927 </method>
2928
2929 <method name="updateState">
2930 <desc>
2931 Updates the VM state.
2932 <note>
2933 This operation will also update the settings file with the correct
2934 information about the saved state file and delete this file from disk
2935 when appropriate.
2936 </note>
2937 </desc>
2938 <param name="state" type="MachineState" dir="in"/>
2939 </method>
2940
2941 <method name="getIPCId">
2942 <param name="id" type="wstring" dir="return"/>
2943 </method>
2944
2945 <method name="beginPowerUp">
2946 <desc>
2947 Tells VBoxSVC that <link to="IConsole::powerUp"/> is under ways and
2948 gives it the progress object that should be part of any pending
2949 <link to="IMachine::launchVMProcess"/> operations. The progress
2950 object may be called back to reflect an early cancelation, so some care
2951 have to be taken with respect to any cancelation callbacks. The console
2952 object will call <link to="IInternalMachineControl::endPowerUp"/>
2953 to signal the completion of the progress object.
2954 </desc>
2955 <param name="aProgress" type="IProgress" dir="in" />
2956 </method>
2957
2958 <method name="endPowerUp">
2959 <desc>
2960 Tells VBoxSVC that <link to="IConsole::powerUp"/> has completed.
2961 This method may query status information from the progress object it
2962 received in <link to="IInternalMachineControl::beginPowerUp"/> and copy
2963 it over to any in-progress <link to="IMachine::launchVMProcess"/>
2964 call in order to complete that progress object.
2965 </desc>
2966 <param name="result" type="long" dir="in"/>
2967 </method>
2968
2969 <method name="beginPoweringDown">
2970 <desc>
2971 Called by the VM process to inform the server it wants to
2972 stop the VM execution and power down.
2973 </desc>
2974 <param name="progress" type="IProgress" dir="out">
2975 <desc>
2976 Progress object created by VBoxSVC to wait until
2977 the VM is powered down.
2978 </desc>
2979 </param>
2980 </method>
2981
2982 <method name="endPoweringDown">
2983 <desc>
2984 Called by the VM process to inform the server that powering
2985 down previously requested by #beginPoweringDown is either
2986 successfully finished or there was a failure.
2987
2988 <result name="VBOX_E_FILE_ERROR">
2989 Settings file not accessible.
2990 </result>
2991 <result name="VBOX_E_XML_ERROR">
2992 Could not parse the settings file.
2993 </result>
2994
2995 </desc>
2996
2997 <param name="result" type="long" dir="in">
2998 <desc>@c S_OK to indicate success.
2999 </desc>
3000 </param>
3001 <param name="errMsg" type="wstring" dir="in">
3002 <desc>@c human readable error message in case of failure.
3003 </desc>
3004 </param>
3005 </method>
3006
3007 <method name="runUSBDeviceFilters">
3008 <desc>
3009 Asks the server to run USB devices filters of the associated
3010 machine against the given USB device and tell if there is
3011 a match.
3012 <note>
3013 Intended to be used only for remote USB devices. Local
3014 ones don't require to call this method (this is done
3015 implicitly by the Host and USBProxyService).
3016 </note>
3017 </desc>
3018 <param name="device" type="IUSBDevice" dir="in"/>
3019 <param name="matched" type="boolean" dir="out"/>
3020 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
3021 </method>
3022
3023 <method name="captureUSBDevice">
3024 <desc>
3025 Requests a capture of the given host USB device.
3026 When the request is completed, the VM process will
3027 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3028 notification.
3029 </desc>
3030 <param name="id" type="uuid" mod="string" dir="in"/>
3031 </method>
3032
3033 <method name="detachUSBDevice">
3034 <desc>
3035 Notification that a VM is going to detach (@a done = @c false) or has
3036 already detached (@a done = @c true) the given USB device.
3037 When the @a done = @c true request is completed, the VM process will
3038 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
3039 notification.
3040 <note>
3041 In the @a done = @c true case, the server must run its own filters
3042 and filters of all VMs but this one on the detached device
3043 as if it were just attached to the host computer.
3044 </note>
3045 </desc>
3046 <param name="id" type="uuid" mod="string" dir="in"/>
3047 <param name="done" type="boolean" dir="in"/>
3048 </method>
3049
3050 <method name="autoCaptureUSBDevices">
3051 <desc>
3052 Requests a capture all matching USB devices attached to the host.
3053 When the request is completed, the VM process will
3054 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3055 notification per every captured device.
3056 </desc>
3057 </method>
3058
3059 <method name="detachAllUSBDevices">
3060 <desc>
3061 Notification that a VM that is being powered down. The done
3062 parameter indicates whether which stage of the power down
3063 we're at. When @a done = @c false the VM is announcing its
3064 intentions, while when @a done = @c true the VM is reporting
3065 what it has done.
3066 <note>
3067 In the @a done = @c true case, the server must run its own filters
3068 and filters of all VMs but this one on all detach devices as
3069 if they were just attached to the host computer.
3070 </note>
3071 </desc>
3072 <param name="done" type="boolean" dir="in"/>
3073 </method>
3074
3075 <method name="onSessionEnd">
3076 <desc>
3077 Triggered by the given session object when the session is about
3078 to close normally.
3079 </desc>
3080 <param name="session" type="ISession" dir="in">
3081 <desc>Session that is being closed</desc>
3082 </param>
3083 <param name="progress" type="IProgress" dir="return">
3084 <desc>
3085 Used to wait until the corresponding machine is actually
3086 dissociated from the given session on the server.
3087 Returned only when this session is a direct one.
3088 </desc>
3089 </param>
3090 </method>
3091
3092 <method name="beginSavingState">
3093 <desc>
3094 Called by the VM process to inform the server it wants to
3095 save the current state and stop the VM execution.
3096 </desc>
3097 <param name="progress" type="IProgress" dir="out">
3098 <desc>
3099 Progress object created by VBoxSVC to wait until
3100 the state is saved.
3101 </desc>
3102 </param>
3103 <param name="stateFilePath" type="wstring" dir="out">
3104 <desc>
3105 File path the VM process must save the execution state to.
3106 </desc>
3107 </param>
3108 </method>
3109
3110 <method name="endSavingState">
3111 <desc>
3112 Called by the VM process to inform the server that saving
3113 the state previously requested by #beginSavingState is either
3114 successfully finished or there was a failure.
3115
3116 <result name="VBOX_E_FILE_ERROR">
3117 Settings file not accessible.
3118 </result>
3119 <result name="VBOX_E_XML_ERROR">
3120 Could not parse the settings file.
3121 </result>
3122
3123 </desc>
3124
3125 <param name="result" type="long" dir="in">
3126 <desc>@c S_OK to indicate success.
3127 </desc>
3128 </param>
3129 <param name="errMsg" type="wstring" dir="in">
3130 <desc>@c human readable error message in case of failure.
3131 </desc>
3132 </param>
3133 </method>
3134
3135 <method name="adoptSavedState">
3136 <desc>
3137 Gets called by IConsole::adoptSavedState.
3138 <result name="VBOX_E_FILE_ERROR">
3139 Invalid saved state file path.
3140 </result>
3141 </desc>
3142 <param name="savedStateFile" type="wstring" dir="in">
3143 <desc>Path to the saved state file to adopt.</desc>
3144 </param>
3145 </method>
3146
3147 <method name="beginTakingSnapshot">
3148 <desc>
3149 Called from the VM process to request from the server to perform the
3150 server-side actions of creating a snapshot (creating differencing images
3151 and the snapshot object).
3152
3153 <result name="VBOX_E_FILE_ERROR">
3154 Settings file not accessible.
3155 </result>
3156 <result name="VBOX_E_XML_ERROR">
3157 Could not parse the settings file.
3158 </result>
3159 </desc>
3160 <param name="initiator" type="IConsole" dir="in">
3161 <desc>The console object that initiated this call.</desc>
3162 </param>
3163 <param name="name" type="wstring" dir="in">
3164 <desc>Snapshot name.</desc>
3165 </param>
3166 <param name="description" type="wstring" dir="in">
3167 <desc>Snapshot description.</desc>
3168 </param>
3169 <param name="consoleProgress" type="IProgress" dir="in">
3170 <desc>
3171 Progress object created by the VM process tracking the
3172 snapshot's progress. This has the following sub-operations:
3173 <ul>
3174 <li>setting up (weight 1);</li>
3175 <li>one for each medium attachment that needs a differencing image (weight 1 each);</li>
3176 <li>another one to copy the VM state (if offline with saved state, weight is VM memory size in MB);</li>
3177 <li>another one to save the VM state (if online, weight is VM memory size in MB);</li>
3178 <li>finishing up (weight 1)</li>
3179 </ul>
3180 </desc>
3181 </param>
3182 <param name="fTakingSnapshotOnline" type="boolean" dir="in">
3183 <desc>
3184 Whether this is an online snapshot (i.e. the machine is running).
3185 </desc>
3186 </param>
3187 <param name="stateFilePath" type="wstring" dir="out">
3188 <desc>
3189 File path the VM process must save the execution state to.
3190 </desc>
3191 </param>
3192 </method>
3193
3194 <method name="endTakingSnapshot">
3195 <desc>
3196 Called by the VM process to inform the server that the snapshot
3197 previously requested by #beginTakingSnapshot is either
3198 successfully taken or there was a failure.
3199 </desc>
3200
3201 <param name="success" type="boolean" dir="in">
3202 <desc>@c true to indicate success and @c false otherwise</desc>
3203 </param>
3204 </method>
3205
3206 <method name="deleteSnapshot">
3207 <desc>
3208 Gets called by IConsole::deleteSnapshot.
3209 <result name="VBOX_E_INVALID_OBJECT_STATE">
3210 Snapshot has more than one child snapshot.
3211 </result>
3212 </desc>
3213 <param name="initiator" type="IConsole" dir="in">
3214 <desc>The console object that initiated this call.</desc>
3215 </param>
3216 <param name="id" type="uuid" mod="string" dir="in">
3217 <desc>UUID of the snapshot to delete.</desc>
3218 </param>
3219 <param name="machineState" type="MachineState" dir="out">
3220 <desc>New machine state after this operation is started.</desc>
3221 </param>
3222 <param name="progress" type="IProgress" dir="return">
3223 <desc>Progress object to track the operation completion.</desc>
3224 </param>
3225 </method>
3226
3227 <method name="finishOnlineMergeMedium">
3228 <desc>
3229 Gets called by IConsole::onlineMergeMedium.
3230 </desc>
3231 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
3232 <desc>The medium attachment which needs to be cleaned up.</desc>
3233 </param>
3234 <param name="source" type="IMedium" dir="in">
3235 <desc>Merge source medium.</desc>
3236 </param>
3237 <param name="target" type="IMedium" dir="in">
3238 <desc>Merge target medium.</desc>
3239 </param>
3240 <param name="mergeForward" type="boolean" dir="in">
3241 <desc>Merge direction.</desc>
3242 </param>
3243 <param name="parentForTarget" type="IMedium" dir="in">
3244 <desc>For forward merges: new parent for target medium.</desc>
3245 </param>
3246 <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
3247 <desc>For backward merges: list of media which need their parent UUID
3248 updated.</desc>
3249 </param>
3250 </method>
3251
3252 <method name="restoreSnapshot">
3253 <desc>
3254 Gets called by IConsole::RestoreSnapshot.
3255 </desc>
3256 <param name="initiator" type="IConsole" dir="in">
3257 <desc>The console object that initiated this call.</desc>
3258 </param>
3259 <param name="snapshot" type="ISnapshot" dir="in">
3260 <desc>The snapshot to restore the VM state from.</desc>
3261 </param>
3262 <param name="machineState" type="MachineState" dir="out">
3263 <desc>New machine state after this operation is started.</desc>
3264 </param>
3265 <param name="progress" type="IProgress" dir="return">
3266 <desc>Progress object to track the operation completion.</desc>
3267 </param>
3268 </method>
3269
3270 <method name="pullGuestProperties">
3271 <desc>
3272 Get the list of the guest properties matching a set of patterns along
3273 with their values, time stamps and flags and give responsibility for
3274 managing properties to the console.
3275 </desc>
3276 <param name="name" type="wstring" dir="out" safearray="yes">
3277 <desc>
3278 The names of the properties returned.
3279 </desc>
3280 </param>
3281 <param name="value" type="wstring" dir="out" safearray="yes">
3282 <desc>
3283 The values of the properties returned. The array entries match the
3284 corresponding entries in the @a name array.
3285 </desc>
3286 </param>
3287 <param name="timestamp" type="long long" dir="out" safearray="yes">
3288 <desc>
3289 The time stamps of the properties returned. The array entries match
3290 the corresponding entries in the @a name array.
3291 </desc>
3292 </param>
3293 <param name="flags" type="wstring" dir="out" safearray="yes">
3294 <desc>
3295 The flags of the properties returned. The array entries match the
3296 corresponding entries in the @a name array.
3297 </desc>
3298 </param>
3299 </method>
3300
3301 <method name="pushGuestProperty">
3302 <desc>
3303 Update a single guest property in IMachine.
3304 </desc>
3305 <param name="name" type="wstring" dir="in">
3306 <desc>
3307 The name of the property to be updated.
3308 </desc>
3309 </param>
3310 <param name="value" type="wstring" dir="in">
3311 <desc>
3312 The value of the property.
3313 </desc>
3314 </param>
3315 <param name="timestamp" type="long long" dir="in">
3316 <desc>
3317 The timestamp of the property.
3318 </desc>
3319 </param>
3320 <param name="flags" type="wstring" dir="in">
3321 <desc>
3322 The flags of the property.
3323 </desc>
3324 </param>
3325 </method>
3326
3327 <method name="lockMedia">
3328 <desc>
3329 Locks all media attached to the machine for writing and parents of
3330 attached differencing media (if any) for reading. This operation is
3331 atomic so that if it fails no media is actually locked.
3332
3333 This method is intended to be called when the machine is in Starting or
3334 Restoring state. The locked media will be automatically unlocked when
3335 the machine is powered off or crashed.
3336 </desc>
3337 </method>
3338 <method name="unlockMedia">
3339 <desc>
3340 Unlocks all media previously locked using
3341 <link to="IInternalMachineControl::lockMedia"/>.
3342
3343 This method is intended to be used with teleportation so that it is
3344 possible to teleport between processes on the same machine.
3345 </desc>
3346 </method>
3347 </interface>
3348
3349 <interface
3350 name="IBIOSSettings" extends="$unknown"
3351 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
3352 wsmap="managed"
3353 >
3354 <desc>
3355 The IBIOSSettings interface represents BIOS settings of the virtual
3356 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
3357 </desc>
3358 <attribute name="logoFadeIn" type="boolean">
3359 <desc>Fade in flag for BIOS logo animation.</desc>
3360 </attribute>
3361
3362 <attribute name="logoFadeOut" type="boolean">
3363 <desc>Fade out flag for BIOS logo animation.</desc>
3364 </attribute>
3365
3366 <attribute name="logoDisplayTime" type="unsigned long">
3367 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
3368 </attribute>
3369
3370 <attribute name="logoImagePath" type="wstring">
3371 <desc>
3372 Local file system path for external BIOS splash image. Empty string
3373 means the default image is shown on boot.
3374 </desc>
3375 </attribute>
3376
3377 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
3378 <desc>Mode of the BIOS boot device menu.</desc>
3379 </attribute>
3380
3381 <attribute name="ACPIEnabled" type="boolean">
3382 <desc>ACPI support flag.</desc>
3383 </attribute>
3384
3385 <attribute name="IOAPICEnabled" type="boolean">
3386 <desc>
3387 IO APIC support flag. If set, VirtualBox will provide an IO APIC
3388 and support IRQs above 15.
3389 </desc>
3390 </attribute>
3391
3392 <attribute name="timeOffset" type="long long">
3393 <desc>
3394 Offset in milliseconds from the host system time. This allows for
3395 guests running with a different system date/time than the host.
3396 It is equivalent to setting the system date/time in the BIOS except
3397 it is not an absolute value but a relative one. Guest Additions
3398 time synchronization honors this offset.
3399 </desc>
3400 </attribute>
3401
3402 <attribute name="PXEDebugEnabled" type="boolean">
3403 <desc>
3404 PXE debug logging flag. If set, VirtualBox will write extensive
3405 PXE trace information to the release log.
3406 </desc>
3407 </attribute>
3408
3409 </interface>
3410
3411 <enum
3412 name="CleanupMode"
3413 uuid="67897c50-7cca-47a9-83f6-ce8fd8eb5441"
3414 >
3415 <desc>Cleanup mode, used with <link to="IMachine::unregister" />.
3416 </desc>
3417 <const name="UnregisterOnly" value="1">
3418 <desc>Unregister only the machine, but neither delete snapshots nor detach media.</desc>
3419 </const>
3420 <const name="DetachAllReturnNone" value="2">
3421 <desc>Delete all snapshots and detach all media but return none; this will keep all media registered.</desc>
3422 </const>
3423 <const name="DetachAllReturnHardDisksOnly" value="3">
3424 <desc>Delete all snapshots, detach all media and return hard disks for closing, but not removable media.</desc>
3425 </const>
3426 <const name="Full" value="4">
3427 <desc>Delete all snapshots, detach all media and return all media for closing.</desc>
3428 </const>
3429 </enum>
3430
3431 <interface
3432 name="IPciAddress" extends="$unknown"
3433 uuid="D88B324F-DB19-4D3B-A1A9-BF5B127199A8"
3434 wsmap="struct"
3435 >
3436
3437 <desc>
3438 Address on the PCI bus.
3439 </desc>
3440
3441 <attribute name="bus" type="short">
3442 <desc>
3443 Bus number.
3444 </desc>
3445 </attribute>
3446
3447 <attribute name="device" type="short">
3448 <desc>
3449 Device number.
3450 </desc>
3451 </attribute>
3452
3453 <attribute name="devFunction" type="short">
3454 <desc>
3455 Device function number.
3456 </desc>
3457 </attribute>
3458
3459 <method name="asLong">
3460 <desc>
3461 Convert PCI address into long.
3462 </desc>
3463 <param name="result" type="long" dir="return" />
3464 </method>
3465
3466 <method name="fromLong">
3467 <desc>
3468 Make PCI address from long.
3469 </desc>
3470 <param name="number" type="long" dir="in" />
3471 </method>
3472 </interface>
3473
3474 <interface
3475 name="IPciDeviceAttachment" extends="$unknown"
3476 uuid="91f33d6f-e621-4f70-a77e-15f0e3c714d5"
3477 wsmap="struct"
3478 >
3479
3480 <desc>
3481 Information about PCI attachments.
3482 </desc>
3483
3484 <attribute name="name" type="wstring" readonly="yes">
3485 <desc>
3486 Device name.
3487 </desc>
3488 </attribute>
3489
3490 <attribute name="isPhysicalDevice" type="boolean" readonly="yes">
3491 <desc>
3492 If this is physical or virtual device.
3493 </desc>
3494 </attribute>
3495
3496 <attribute name="hostAddress" type="long" readonly="yes">
3497 <desc>
3498 Address of device on the host, applicable only to host devices.
3499 </desc>
3500 </attribute>
3501
3502 <attribute name="guestAddress" type="long" readonly="yes">
3503 <desc>
3504 Address of device on the guest.
3505 </desc>
3506 </attribute>
3507
3508 </interface>
3509
3510
3511 <interface
3512 name="IMachine" extends="$unknown"
3513 uuid="59d09c78-2558-45c8-a95e-8761d70fdc95"
3514 wsmap="managed"
3515 >
3516 <desc>
3517 The IMachine interface represents a virtual machine, or guest, created
3518 in VirtualBox.
3519
3520 This interface is used in two contexts. First of all, a collection of
3521 objects implementing this interface is stored in the
3522 <link to="IVirtualBox::machines"/> attribute which lists all the virtual
3523 machines that are currently registered with this VirtualBox
3524 installation. Also, once a session has been opened for the given virtual
3525 machine (e.g. the virtual machine is running), the machine object
3526 associated with the open session can be queried from the session object;
3527 see <link to="ISession"/> for details.
3528
3529 The main role of this interface is to expose the settings of the virtual
3530 machine and provide methods to change various aspects of the virtual
3531 machine's configuration. For machine objects stored in the
3532 <link to="IVirtualBox::machines"/> collection, all attributes are
3533 read-only unless explicitly stated otherwise in individual attribute
3534 and method descriptions.
3535
3536 In order to change a machine setting, a session for this machine must be
3537 opened using one of the <link to="IMachine::lockMachine" /> or
3538 <link to="IMachine::launchVMProcess"/> methods. After the
3539 machine has been successfully locked for a session, a mutable machine object
3540 needs to be queried from the session object and then the desired settings
3541 changes can be applied to the returned object using IMachine attributes and
3542 methods. See the <link to="ISession"/> interface description for more
3543 information about sessions.
3544
3545 Note that IMachine does not provide methods to control virtual machine
3546 execution (such as start the machine, or power it down) -- these methods
3547 are grouped in a separate interface called <link to="IConsole" />.
3548
3549 <see>ISession, IConsole</see>
3550 </desc>
3551
3552 <attribute name="parent" type="IVirtualBox" readonly="yes">
3553 <desc>Associated parent object.</desc>
3554 </attribute>
3555
3556 <attribute name="accessible" type="boolean" readonly="yes">
3557 <desc>
3558 Whether this virtual machine is currently accessible or not.
3559
3560 A machine is always deemed accessible unless it is registered <i>and</i>
3561 its settings file cannot be read or parsed (either because the file itself
3562 is unavailable or has invalid XML contents).
3563
3564 Every time this property is read, the accessibility state of
3565 this machine is re-evaluated. If the returned value is @c false,
3566 the <link to="#accessError"/> property may be used to get the
3567 detailed error information describing the reason of
3568 inaccessibility, including XML error messages.
3569
3570 When the machine is inaccessible, only the following properties
3571 can be used on it:
3572 <ul>
3573 <li><link to="#parent"/></li>
3574 <li><link to="#id"/></li>
3575 <li><link to="#settingsFilePath"/></li>
3576 <li><link to="#accessible"/></li>
3577 <li><link to="#accessError"/></li>
3578 </ul>
3579
3580 An attempt to access any other property or method will return
3581 an error.
3582
3583 The only possible action you can perform on an inaccessible
3584 machine is to unregister it using the
3585 <link to="IMachine::unregister"/> call (or, to check
3586 for the accessibility state once more by querying this
3587 property).
3588
3589 <note>
3590 In the current implementation, once this property returns
3591 @c true, the machine will never become inaccessible
3592 later, even if its settings file cannot be successfully
3593 read/written any more (at least, until the VirtualBox
3594 server is restarted). This limitation may be removed in
3595 future releases.
3596 </note>
3597 </desc>
3598 </attribute>
3599
3600 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
3601 <desc>
3602 Error information describing the reason of machine
3603 inaccessibility.
3604
3605 Reading this property is only valid after the last call to
3606 <link to="#accessible"/> returned @c false (i.e. the
3607 machine is currently inaccessible). Otherwise, a @c null
3608 IVirtualBoxErrorInfo object will be returned.
3609 </desc>
3610 </attribute>
3611
3612 <attribute name="name" type="wstring">
3613 <desc>
3614 Name of the virtual machine.
3615
3616 Besides being used for human-readable identification purposes
3617 everywhere in VirtualBox, the virtual machine name is also used
3618 as a name of the machine's settings file and as a name of the
3619 subdirectory this settings file resides in. Thus, every time you
3620 change the value of this property, the settings file will be
3621 renamed once you call <link to="#saveSettings"/> to confirm the
3622 change. The containing subdirectory will be also renamed, but
3623 only if it has exactly the same name as the settings file
3624 itself prior to changing this property (for backward compatibility
3625 with previous API releases). The above implies the following
3626 limitations:
3627 <ul>
3628 <li>The machine name cannot be empty.</li>
3629 <li>The machine name can contain only characters that are valid
3630 file name characters according to the rules of the file
3631 system used to store VirtualBox configuration.</li>
3632 <li>You cannot have two or more machines with the same name
3633 if they use the same subdirectory for storing the machine
3634 settings files.</li>
3635 <li>You cannot change the name of the machine if it is running,
3636 or if any file in the directory containing the settings file
3637 is being used by another running machine or by any other
3638 process in the host operating system at a time when
3639 <link to="#saveSettings"/> is called.
3640 </li>
3641 </ul>
3642 If any of the above limitations are hit, <link to="#saveSettings"/>
3643 will return an appropriate error message explaining the exact
3644 reason and the changes you made to this machine will not be saved.
3645
3646 Starting with VirtualBox 4.0, a “.vbox” extension of the settings
3647 file is recommended, but not enforced. (Previous versions always
3648 used a generic ".xml" extension.)
3649 </desc>
3650 </attribute>
3651
3652 <attribute name="description" type="wstring">
3653 <desc>
3654 Description of the virtual machine.
3655
3656 The description attribute can contain any text and is
3657 typically used to describe the hardware and software
3658 configuration of the virtual machine in detail (i.e. network
3659 settings, versions of the installed software and so on).
3660 </desc>
3661 </attribute>
3662
3663 <attribute name="id" type="uuid" mod="string" readonly="yes">
3664 <desc>UUID of the virtual machine.</desc>
3665 </attribute>
3666
3667 <attribute name="OSTypeId" type="wstring">
3668 <desc>
3669 User-defined identifier of the Guest OS type.
3670 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
3671 an IGuestOSType object representing details about the given
3672 Guest OS type.
3673 <note>
3674 This value may differ from the value returned by
3675 <link to="IGuest::OSTypeId"/> if Guest Additions are
3676 installed to the guest OS.
3677 </note>
3678 </desc>
3679 </attribute>
3680
3681 <attribute name="HardwareVersion" type="wstring">
3682 <desc>Hardware version identifier. Internal use only for now.</desc>
3683 </attribute>
3684
3685 <attribute name="hardwareUUID" type="uuid" mod="string">
3686 <desc>
3687 The UUID presented to the guest via memory tables, hardware and guest
3688 properties. For most VMs this is the same as the @a id, but for VMs
3689 which have been cloned or teleported it may be the same as the source
3690 VM. This latter is because the guest shouldn't notice that it was
3691 cloned or teleported.
3692 </desc>
3693 </attribute>
3694
3695 <attribute name="CPUCount" type="unsigned long">
3696 <desc>Number of virtual CPUs in the VM.</desc>
3697 </attribute>
3698
3699 <attribute name="CPUHotPlugEnabled" type="boolean">
3700 <desc>
3701 This setting determines whether VirtualBox allows CPU
3702 hotplugging for this machine.</desc>
3703 </attribute>
3704
3705 <attribute name="CPUExecutionCap" type="unsigned long">
3706 <desc>
3707 Means to limit the number of CPU cycles a guest can use. The unit
3708 is percentage of host CPU cycles per second. The valid range
3709 is 1 - 100. 100 (the default) implies no limit.
3710 </desc>
3711 </attribute>
3712
3713 <attribute name="memorySize" type="unsigned long">
3714 <desc>System memory size in megabytes.</desc>
3715 </attribute>
3716
3717 <attribute name="memoryBalloonSize" type="unsigned long">
3718 <desc>Memory balloon size in megabytes.</desc>
3719 </attribute>
3720
3721 <attribute name="PageFusionEnabled" type="boolean">
3722 <desc>
3723 This setting determines whether VirtualBox allows page
3724 fusion for this machine (64 bits host only).
3725 </desc>
3726 </attribute>
3727
3728 <attribute name="VRAMSize" type="unsigned long">
3729 <desc>Video memory size in megabytes.</desc>
3730 </attribute>
3731
3732 <attribute name="accelerate3DEnabled" type="boolean" default="false">
3733 <desc>
3734 This setting determines whether VirtualBox allows this machine to make
3735 use of the 3D graphics support available on the host.</desc>
3736 </attribute>
3737
3738 <attribute name="accelerate2DVideoEnabled" type="boolean" default="false">
3739 <desc>
3740 This setting determines whether VirtualBox allows this machine to make
3741 use of the 2D video acceleration support available on the host.</desc>
3742 </attribute>
3743
3744 <attribute name="monitorCount" type="unsigned long">
3745 <desc>
3746 Number of virtual monitors.
3747 <note>
3748 Only effective on Windows XP and later guests with
3749 Guest Additions installed.
3750 </note>
3751 </desc>
3752 </attribute>
3753
3754 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
3755 <desc>Object containing all BIOS settings.</desc>
3756 </attribute>
3757
3758 <attribute name="firmwareType" type="FirmwareType">
3759 <desc>Type of firmware (such as legacy BIOS or EFI), used for initial
3760 bootstrap in this VM.</desc>
3761 </attribute>
3762
3763 <attribute name="pointingHidType" type="PointingHidType">
3764 <desc>Type of pointing HID (such as mouse or tablet) used in this VM.
3765 The default is typically "PS2Mouse" but can vary depending on the
3766 requirements of the guest operating system.</desc>
3767 </attribute>
3768
3769 <attribute name="keyboardHidType" type="KeyboardHidType">
3770 <desc>Type of keyboard HID used in this VM.
3771 The default is typically "PS2Keyboard" but can vary depending on the
3772 requirements of the guest operating system.</desc>
3773 </attribute>
3774
3775 <attribute name="hpetEnabled" type="boolean">
3776 <desc>This attribute controls if High Precision Event Timer (HPET) is
3777 enabled in this VM. Use this property if you want to provide guests
3778 with additional time source, or if guest requires HPET to function correctly.
3779 Default is false.</desc>
3780 </attribute>
3781
3782 <attribute name="chipsetType" type="ChipsetType">
3783 <desc>Chipset type used in this VM.</desc>
3784 </attribute>
3785
3786 <attribute name="snapshotFolder" type="wstring">
3787 <desc>
3788 Full path to the directory used to store snapshot data
3789 (differencing media and saved state files) of this machine.
3790
3791 The initial value of this property is
3792 <tt>&lt;</tt><link to="#settingsFilePath">
3793 path_to_settings_file</link><tt>&gt;/&lt;</tt>
3794 <link to="#id">machine_uuid</link>
3795 <tt>&gt;</tt>.
3796
3797 Currently, it is an error to try to change this property on
3798 a machine that has snapshots (because this would require to
3799 move possibly large files to a different location).
3800 A separate method will be available for this purpose later.
3801
3802 <note>
3803 Setting this property to @c null or to an empty string will restore
3804 the initial value.
3805 </note>
3806 <note>
3807 When setting this property, the specified path can be
3808 absolute (full path) or relative to the directory where the
3809 <link to="#settingsFilePath">machine settings file</link>
3810 is located. When reading this property, a full path is
3811 always returned.
3812 </note>
3813 <note>
3814 The specified path may not exist, it will be created
3815 when necessary.
3816 </note>
3817 </desc>
3818 </attribute>
3819
3820 <attribute name="VRDEServer" type="IVRDEServer" readonly="yes">
3821 <desc>VirtualBox Remote Desktop Extension (VRDE) server object.</desc>
3822 </attribute>
3823
3824 <attribute name="mediumAttachments" type="IMediumAttachment" readonly="yes" safearray="yes">
3825 <desc>Array of media attached to this machine.</desc>
3826 </attribute>
3827
3828 <attribute name="USBController" type="IUSBController" readonly="yes">
3829 <desc>
3830 Associated USB controller object.
3831
3832 <note>
3833 If USB functionality is not available in the given edition of
3834 VirtualBox, this method will set the result code to @c E_NOTIMPL.
3835 </note>
3836 </desc>
3837 </attribute>
3838
3839 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
3840 <desc>Associated audio adapter, always present.</desc>
3841 </attribute>
3842
3843 <attribute name="storageControllers" type="IStorageController" readonly="yes" safearray="yes">
3844 <desc>Array of storage controllers attached to this machine.</desc>
3845 </attribute>
3846
3847 <attribute name="settingsFilePath" type="wstring" readonly="yes">
3848 <desc>
3849 Full name of the file containing machine settings data.
3850 </desc>
3851 </attribute>
3852
3853 <attribute name="settingsModified" type="boolean" readonly="yes">
3854 <desc>
3855 Whether the settings of this machine have been modified
3856 (but neither yet saved nor discarded).
3857 <note>
3858 Reading this property is only valid on instances returned
3859 by <link to="ISession::machine"/> and on new machines
3860 created by <link to="IVirtualBox::createMachine"/> or opened
3861 by <link to="IVirtualBox::openMachine"/> but not
3862 yet registered, or on unregistered machines after calling
3863 <link to="IMachine::unregister"/>. For all other
3864 cases, the settings can never be modified.
3865 </note>
3866 <note>
3867 For newly created unregistered machines, the value of this
3868 property is always @c true until <link to="#saveSettings"/>
3869 is called (no matter if any machine settings have been
3870 changed after the creation or not). For opened machines
3871 the value is set to @c false (and then follows to normal rules).
3872 </note>
3873 </desc>
3874 </attribute>
3875
3876 <attribute name="sessionState" type="SessionState" readonly="yes">
3877 <desc>Current session state for this machine.</desc>
3878 </attribute>
3879
3880 <attribute name="sessionType" type="wstring" readonly="yes">
3881 <desc>
3882 Type of the session. If <link to="#sessionState"/> is
3883 Spawning or Locked, this attribute contains the
3884 same value as passed to the
3885 <link to="IMachine::launchVMProcess"/> method in the
3886 @a type parameter. If the session was used with
3887 <link to="IMachine::lockMachine" />, or if
3888 <link to="#sessionState"/> is SessionClosed, the value of this
3889 attribute is an empty string.
3890 </desc>
3891 </attribute>
3892
3893 <attribute name="sessionPid" type="unsigned long" readonly="yes">
3894 <desc>
3895 Identifier of the session process. This attribute contains the
3896 platform-dependent identifier of the process whose session was
3897 used with <link to="IMachine::lockMachine" /> call. The returned
3898 value is only valid if <link to="#sessionState"/> is Locked or
3899 Unlocking by the time this property is read.
3900 </desc>
3901 </attribute>
3902
3903 <attribute name="state" type="MachineState" readonly="yes">
3904 <desc>Current execution state of this machine.</desc>
3905 </attribute>
3906
3907 <attribute name="lastStateChange" type="long long" readonly="yes">
3908 <desc>
3909 Time stamp of the last execution state change,
3910 in milliseconds since 1970-01-01 UTC.
3911 </desc>
3912 </attribute>
3913
3914 <attribute name="stateFilePath" type="wstring" readonly="yes">
3915 <desc>
3916 Full path to the file that stores the execution state of
3917 the machine when it is in the <link to="MachineState_Saved"/> state.
3918 <note>
3919 When the machine is not in the Saved state, this attribute is
3920 an empty string.
3921 </note>
3922 </desc>
3923 </attribute>
3924
3925 <attribute name="logFolder" type="wstring" readonly="yes">
3926 <desc>
3927 Full path to the folder that stores a set of rotated log files
3928 recorded during machine execution. The most recent log file is
3929 named <tt>VBox.log</tt>, the previous log file is
3930 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
3931 in the current version).
3932 </desc>
3933 </attribute>
3934
3935 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
3936 <desc>
3937 Current snapshot of this machine. This is @c null if the machine
3938 currently has no snapshots. If it is not @c null, then it was
3939 set by one of <link to="IConsole::takeSnapshot" />,
3940 <link to="IConsole::deleteSnapshot" />
3941 or <link to="IConsole::restoreSnapshot" />, depending on which
3942 was called last. See <link to="ISnapshot"/> for details.
3943 </desc>
3944 </attribute>
3945
3946 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
3947 <desc>
3948 Number of snapshots taken on this machine. Zero means the
3949 machine doesn't have any snapshots.
3950 </desc>
3951 </attribute>
3952
3953 <attribute name="currentStateModified" type="boolean" readonly="yes">
3954 <desc>
3955 Returns @c true if the current state of the machine is not
3956 identical to the state stored in the current snapshot.
3957
3958 The current state is identical to the current snapshot only
3959 directly after one of the following calls are made:
3960
3961 <ul>
3962 <li><link to="IConsole::restoreSnapshot"/>
3963 </li>
3964 <li><link to="IConsole::takeSnapshot"/> (issued on a
3965 "powered off" or "saved" machine, for which
3966 <link to="#settingsModified"/> returns @c false)
3967 </li>
3968 </ul>
3969
3970 The current state remains identical until one of the following
3971 happens:
3972 <ul>
3973 <li>settings of the machine are changed</li>
3974 <li>the saved state is deleted</li>
3975 <li>the current snapshot is deleted</li>
3976 <li>an attempt to execute the machine is made</li>
3977 </ul>
3978
3979 <note>
3980 For machines that don't have snapshots, this property is
3981 always @c false.
3982 </note>
3983 </desc>
3984 </attribute>
3985
3986 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
3987 <desc>
3988 Collection of shared folders for this machine (permanent shared
3989 folders). These folders are shared automatically at machine startup
3990 and available only to the guest OS installed within this machine.
3991
3992 New shared folders are added to the collection using
3993 <link to="#createSharedFolder"/>. Existing shared folders can be
3994 removed using <link to="#removeSharedFolder"/>.
3995 </desc>
3996 </attribute>
3997
3998 <attribute name="clipboardMode" type="ClipboardMode">
3999 <desc>
4000 Synchronization mode between the host OS clipboard
4001 and the guest OS clipboard.
4002 </desc>
4003 </attribute>
4004
4005 <attribute name="guestPropertyNotificationPatterns" type="wstring">
4006 <desc>
4007 A comma-separated list of simple glob patterns. Changes to guest
4008 properties whose name matches one of the patterns will generate an
4009 <link to="IGuestPropertyChangedEvent"/> signal.
4010 </desc>
4011 </attribute>
4012
4013 <attribute name="teleporterEnabled" type="boolean">
4014 <desc>
4015 When set to @a true, the virtual machine becomes a target teleporter
4016 the next time it is powered on. This can only set to @a true when the
4017 VM is in the @a PoweredOff or @a Aborted state.
4018
4019 <!-- This property is automatically set to @a false when the VM is powered
4020 on. (bird: This doesn't work yet ) -->
4021 </desc>
4022 </attribute>
4023
4024 <attribute name="teleporterPort" type="unsigned long">
4025 <desc>
4026 The TCP port the target teleporter will listen for incoming
4027 teleportations on.
4028
4029 0 means the port is automatically selected upon power on. The actual
4030 value can be read from this property while the machine is waiting for
4031 incoming teleportations.
4032 </desc>
4033 </attribute>
4034
4035 <attribute name="teleporterAddress" type="wstring">
4036 <desc>
4037 The address the target teleporter will listen on. If set to an empty
4038 string, it will listen on all addresses.
4039 </desc>
4040 </attribute>
4041
4042 <attribute name="teleporterPassword" type="wstring">
4043 <desc>
4044 The password to check for on the target teleporter. This is just a
4045 very basic measure to prevent simple hacks and operators accidentally
4046 beaming a virtual machine to the wrong place.
4047 </desc>
4048 </attribute>
4049
4050 <attribute name="faultToleranceState" type="FaultToleranceState">
4051 <desc>
4052 Fault tolerance state; disabled, source or target.
4053 This property can be changed at any time. If you change it for a running
4054 VM, then the fault tolerance address and port must be set beforehand.
4055 </desc>
4056 </attribute>
4057
4058 <attribute name="faultTolerancePort" type="unsigned long">
4059 <desc>
4060 The TCP port the fault tolerance source or target will use for
4061 communication.
4062 </desc>
4063 </attribute>
4064
4065 <attribute name="faultToleranceAddress" type="wstring">
4066 <desc>
4067 The address the fault tolerance source or target.
4068 </desc>
4069 </attribute>
4070
4071 <attribute name="faultTolerancePassword" type="wstring">
4072 <desc>
4073 The password to check for on the standby VM. This is just a
4074 very basic measure to prevent simple hacks and operators accidentally
4075 choosing the wrong standby VM.
4076 </desc>
4077 </attribute>
4078
4079 <attribute name="faultToleranceSyncInterval" type="unsigned long">
4080 <desc>
4081 The interval in ms used for syncing the state between source and target.
4082 </desc>
4083 </attribute>
4084
4085 <attribute name="RTCUseUTC" type="boolean">
4086 <desc>
4087 When set to @a true, the RTC device of the virtual machine will run
4088 in UTC time, otherwise in local time. Especially Unix guests prefer
4089 the time in UTC.
4090 </desc>
4091 </attribute>
4092
4093 <attribute name="ioCacheEnabled" type="boolean">
4094 <desc>
4095 When set to @a true, the builtin I/O cache of the virtual machine
4096 will be enabled.
4097 </desc>
4098 </attribute>
4099
4100 <attribute name="ioCacheSize" type="unsigned long">
4101 <desc>
4102 Maximum size of the I/O cache in MB.
4103 </desc>
4104 </attribute>
4105
4106 <attribute name="bandwidthControl" type="IBandwidthControl" readonly="yes">
4107 <desc>
4108 Bandwidth control manager.
4109 </desc>
4110 </attribute>
4111
4112 <attribute name="pciDeviceAssignments" type="IPciDeviceAttachment" readonly="yes" safearray="yes">
4113 <desc>Array of PCI devices assigned to this machine, to get list of all PCI devices
4114 attached to the machine use IConsole::attachedPciDevices attribute, as
4115 this attribute is intended to list only devices additional to what
4116 described in virtual hardware config. Usually, this list keeps host's
4117 physical devices assigned to the particular machine.
4118 </desc>
4119 </attribute>
4120
4121 <method name="lockMachine">
4122 <desc>
4123 Locks the machine for the given session to enable the caller
4124 to make changes to the machine or start the VM or control
4125 VM execution.
4126
4127 There are two ways to lock a machine for such uses:
4128
4129 <ul>
4130 <li>If you want to make changes to the machine settings,
4131 you must obtain an exclusive write lock on the machine
4132 by setting @a lockType to @c Write.
4133
4134 This will only succeed if no other process has locked
4135 the machine to prevent conflicting changes. Only after
4136 an exclusive write lock has been obtained using this method, one
4137 can change all VM settings or execute the VM in the process
4138 space of the session object. (Note that the latter is only of
4139 interest if you actually want to write a new front-end for
4140 virtual machines; but this API gets called internally by
4141 the existing front-ends such as VBoxHeadless and the VirtualBox
4142 GUI to acquire a write lock on the machine that they are running.)
4143
4144 On success, write-locking the machine for a session creates
4145 a second copy of the IMachine object. It is this second object
4146 upon which changes can be made; in VirtualBox terminology, the
4147 second copy is "mutable". It is only this second, mutable machine
4148 object upon which you can call methods that change the
4149 machine state. After having called this method, you can
4150 obtain this second, mutable machine object using the
4151 <link to="ISession::machine" /> attribute.
4152 </li>
4153 <li>If you only want to check the machine state or control
4154 machine execution without actually changing machine
4155 settings (e.g. to get access to VM statistics or take
4156 a snapshot or save the machine state), then set the
4157 @a lockType argument to @c Shared.
4158
4159 If no other session has obtained a lock, you will obtain an
4160 exclusive write lock as described above. However, if another
4161 session has already obtained such a lock, then a link to that
4162 existing session will be established which allows you
4163 to control that existing session.
4164
4165 To find out which type of lock was obtained, you can
4166 inspect <link to="ISession::type" />, which will have been
4167 set to either @c WriteLock or @c Shared.
4168 </li>
4169 </ul>
4170
4171 In either case, you can get access to the <link to="IConsole" />
4172 object which controls VM execution.
4173
4174 Also in all of the above cases, one must always call
4175 <link to="ISession::unlockMachine" /> to release the lock on the machine, or
4176 the machine's state will eventually be set to "Aborted".
4177
4178 To change settings on a machine, the following sequence is typically
4179 performed:
4180
4181 <ol>
4182 <li>Call this method to obtain an exclusive write lock for the current session.</li>
4183
4184 <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
4185
4186 <li>Change the settings of the machine by invoking IMachine methods.</li>
4187
4188 <li>Call <link to="IMachine::saveSettings" />.</li>
4189
4190 <li>Release the write lock by calling <link to="ISession::unlockMachine"/>.</li>
4191 </ol>
4192
4193 <result name="E_UNEXPECTED">
4194 Virtual machine not registered.
4195 </result>
4196 <result name="E_ACCESSDENIED">
4197 Process not started by OpenRemoteSession.
4198 </result>
4199 <result name="VBOX_E_INVALID_OBJECT_STATE">
4200 Session already open or being opened.
4201 </result>
4202 <result name="VBOX_E_VM_ERROR">
4203 Failed to assign machine to session.
4204 </result>
4205 </desc>
4206 <param name="session" type="ISession" dir="in">
4207 <desc>
4208 Session object for which the machine will be locked.
4209 </desc>
4210 </param>
4211 <param name="lockType" type="LockType" dir="in">
4212 <desc>
4213 If set to @c Write, then attempt to acquire an exclusive write lock or fail.
4214 If set to @c Shared, then either acquire an exclusive write lock or establish
4215 a link to an existing session.
4216 </desc>
4217 </param>
4218 </method>
4219
4220 <method name="launchVMProcess">
4221 <desc>
4222 Spawns a new process that will execute the virtual machine and obtains a shared
4223 lock on the machine for the calling session.
4224
4225 If launching the VM succeeds, the new VM process will create its own session
4226 and write-lock the machine for it, preventing conflicting changes from other
4227 processes. If the machine is already locked (because it is already running or
4228 because another session has a write lock), launching the VM process will therefore
4229 fail. Reversely, future attempts to obtain a write lock will also fail while the
4230 machine is running.
4231
4232 The caller's session object remains separate from the session opened by the new
4233 VM process. It receives its own <link to="IConsole" /> object which can be used
4234 to control machine execution, but it cannot be used to change all VM settings
4235 which would be available after a <link to="#lockMachine" /> call.
4236
4237 The caller must eventually release the session's shared lock by calling
4238 <link to="ISession::unlockMachine" /> on the local session object once this call
4239 has returned. However, the session's state (see <link to="ISession::state" />)
4240 will not return to "Unlocked" until the remote session has also unlocked
4241 the machine (i.e. the machine has stopped running).
4242
4243 Launching a VM process can take some time (a new VM is started in a new process,
4244 for which memory and other resources need to be set up). Because of this,
4245 an <link to="IProgress" /> object is returned to allow the caller to wait
4246 for this asynchronous operation to be completed. Until then, the caller's
4247 session object remains in the "Unlocked" state, and its <link to="ISession::machine" />
4248 and <link to="ISession::console" /> attributes cannot be accessed.
4249 It is recommended to use <link to="IProgress::waitForCompletion" /> or
4250 similar calls to wait for completion. Completion is signalled when the VM
4251 is powered on. If launching the VM fails, error messages can be queried
4252 via the progress object, if available.
4253
4254 The progress object will have at least 2 sub-operations. The first
4255 operation covers the period up to the new VM process calls powerUp.
4256 The subsequent operations mirror the <link to="IConsole::powerUp"/>
4257 progress object. Because <link to="IConsole::powerUp"/> may require
4258 some extra sub-operations, the <link to="IProgress::operationCount"/>
4259 may change at the completion of operation.
4260
4261 For details on the teleportation progress operation, see
4262 <link to="IConsole::powerUp"/>.
4263
4264 The @a environment argument is a string containing definitions of
4265 environment variables in the following format:
4266 @code
4267 NAME[=VALUE]\n
4268 NAME[=VALUE]\n
4269 ...
4270 @endcode
4271 where <tt>\\n</tt> is the new line character. These environment
4272 variables will be appended to the environment of the VirtualBox server
4273 process. If an environment variable exists both in the server process
4274 and in this list, the value from this list takes precedence over the
4275 server's variable. If the value of the environment variable is
4276 omitted, this variable will be removed from the resulting environment.
4277 If the environment string is @c null or empty, the server environment
4278 is inherited by the started process as is.
4279
4280 <result name="E_UNEXPECTED">
4281 Virtual machine not registered.
4282 </result>
4283 <result name="E_INVALIDARG">
4284 Invalid session type @a type.
4285 </result>
4286 <result name="VBOX_E_OBJECT_NOT_FOUND">
4287 No machine matching @a machineId found.
4288 </result>
4289 <result name="VBOX_E_INVALID_OBJECT_STATE">
4290 Session already open or being opened.
4291 </result>
4292 <result name="VBOX_E_IPRT_ERROR">
4293 Launching process for machine failed.
4294 </result>
4295 <result name="VBOX_E_VM_ERROR">
4296 Failed to assign machine to session.
4297 </result>
4298 </desc>
4299 <param name="session" type="ISession" dir="in">
4300 <desc>
4301 Client session object to which the VM process will be connected (this
4302 must be in "Unlocked" state).
4303 </desc>
4304 </param>
4305 <param name="type" type="wstring" dir="in">
4306 <desc>
4307 Front-end to use for the new VM process. The following are currently supported:
4308 <ul>
4309 <li><tt>"gui"</tt>: VirtualBox Qt GUI front-end</li>
4310 <li><tt>"headless"</tt>: VBoxHeadless (VRDE Server) front-end</li>
4311 <li><tt>"sdl"</tt>: VirtualBox SDL front-end</li>
4312 <li><tt>"emergencystop"</tt>: reserved value, used for aborting
4313 the currently running VM or session owner. In this case the
4314 @a session parameter may be @c NULL (if it is non-null it isn't
4315 used in any way), and the @a progress return value will be always
4316 NULL. The operation completes immediately.</li>
4317 </ul>
4318 </desc>
4319 </param>
4320 <param name="environment" type="wstring" dir="in">
4321 <desc>
4322 Environment to pass to the VM process.
4323 </desc>
4324 </param>
4325 <param name="progress" type="IProgress" dir="return">
4326 <desc>Progress object to track the operation completion.</desc>
4327 </param>
4328 </method>
4329
4330 <method name="setBootOrder">
4331 <desc>
4332 Puts the given device to the specified position in
4333 the boot order.
4334
4335 To indicate that no device is associated with the given position,
4336 <link to="DeviceType_Null"/> should be used.
4337
4338 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4339
4340 <result name="E_INVALIDARG">
4341 Boot @a position out of range.
4342 </result>
4343 <result name="E_NOTIMPL">
4344 Booting from USB @a device currently not supported.
4345 </result>
4346
4347 </desc>
4348 <param name="position" type="unsigned long" dir="in">
4349 <desc>
4350 Position in the boot order (@c 1 to the total number of
4351 devices the machine can boot from, as returned by
4352 <link to="ISystemProperties::maxBootPosition"/>).
4353 </desc>
4354 </param>
4355 <param name="device" type="DeviceType" dir="in">
4356 <desc>
4357 The type of the device used to boot at the given position.
4358 </desc>
4359 </param>
4360 </method>
4361
4362 <method name="getBootOrder" const="yes">
4363 <desc>
4364 Returns the device type that occupies the specified
4365 position in the boot order.
4366
4367 @todo [remove?]
4368 If the machine can have more than one device of the returned type
4369 (such as hard disks), then a separate method should be used to
4370 retrieve the individual device that occupies the given position.
4371
4372 If here are no devices at the given position, then
4373 <link to="DeviceType_Null"/> is returned.
4374
4375 @todo getHardDiskBootOrder(), getNetworkBootOrder()
4376
4377 <result name="E_INVALIDARG">
4378 Boot @a position out of range.
4379 </result>
4380
4381 </desc>
4382 <param name="position" type="unsigned long" dir="in">
4383 <desc>
4384 Position in the boot order (@c 1 to the total number of
4385 devices the machine can boot from, as returned by
4386 <link to="ISystemProperties::maxBootPosition"/>).
4387 </desc>
4388 </param>
4389 <param name="device" type="DeviceType" dir="return">
4390 <desc>
4391 Device at the given position.
4392 </desc>
4393 </param>
4394 </method>
4395
4396 <method name="attachDevice">
4397 <desc>
4398 Attaches a device and optionally mounts a medium to the given storage
4399 controller (<link to="IStorageController" />, identified by @a name),
4400 at the indicated port and device.
4401
4402 This method is intended for managing storage devices in general while a
4403 machine is powered off. It can be used to attach and detach fixed
4404 and removable media. The following kind of media can be attached
4405 to a machine:
4406
4407 <ul>
4408 <li>For fixed and removable media, you can pass in a medium that was
4409 previously opened using <link to="IVirtualBox::openMedium" />.
4410 </li>
4411
4412 <li>Only for storage devices supporting removable media (such as
4413 DVDs and floppies), you can also specify a null pointer to
4414 indicate an empty drive or one of the medium objects listed
4415 in the <link to="IHost::DVDDrives" /> and <link to="IHost::floppyDrives"/>
4416 arrays to indicate a host drive.
4417 For removable devices, you can also use <link to="IMachine::mountMedium"/>
4418 to change the media while the machine is running.
4419 </li>
4420 </ul>
4421
4422 In a VM's default configuration of virtual machines, the secondary
4423 master of the IDE controller is used for a CD/DVD drive.
4424
4425 After calling this returns successfully, a new instance of
4426 <link to="IMediumAttachment"/> will appear in the machine's list of medium
4427 attachments (see <link to="IMachine::mediumAttachments"/>).
4428
4429 See <link to="IMedium"/> and <link to="IMediumAttachment"/> for more
4430 information about attaching media.
4431
4432 The specified device slot must not have a device attached to it,
4433 or this method will fail.
4434
4435 <note>
4436 You cannot attach a device to a newly created machine until
4437 this machine's settings are saved to disk using
4438 <link to="#saveSettings"/>.
4439 </note>
4440 <note>
4441 If the medium is being attached indirectly, a new differencing medium
4442 will implicitly be created for it and attached instead. If the
4443 changes made to the machine settings (including this indirect
4444 attachment) are later cancelled using <link to="#discardSettings"/>,
4445 this implicitly created differencing medium will implicitly
4446 be deleted.
4447 </note>
4448
4449 <result name="E_INVALIDARG">
4450 SATA device, SATA port, IDE port or IDE slot out of range, or
4451 file or UUID not found.
4452 </result>
4453 <result name="VBOX_E_INVALID_OBJECT_STATE">
4454 Machine must be registered before media can be attached.
4455 </result>
4456 <result name="VBOX_E_INVALID_VM_STATE">
4457 Invalid machine state.
4458 </result>
4459 <result name="VBOX_E_OBJECT_IN_USE">
4460 A medium is already attached to this or another virtual machine.
4461 </result>
4462
4463 </desc>
4464 <param name="name" type="wstring" dir="in">
4465 <desc>Name of the storage controller to attach the device to.</desc>
4466 </param>
4467 <param name="controllerPort" type="long" dir="in">
4468 <desc>Port to attach the device to. For an IDE controller, 0 specifies
4469 the primary controller and 1 specifies the secondary controller.
4470 For a SCSI controller, this must range from 0 to 15; for a SATA controller,
4471 from 0 to 29; for an SAS controller, from 0 to 7.</desc>
4472 </param>
4473 <param name="device" type="long" dir="in">
4474 <desc>Device slot in the given port to attach the device to. This is only
4475 relevant for IDE controllers, for which 0 specifies the master device and
4476 1 specifies the slave device. For all other controller types, this must
4477 be 0.</desc>
4478 </param>
4479 <param name="type" type="DeviceType" dir="in">
4480 <desc>Device type of the attached device. For media opened by
4481 <link to="IVirtualBox::openMedium" />, this must match the device type
4482 specified there.</desc>
4483 </param>
4484 <param name="medium" type="IMedium" dir="in">
4485 <desc>Medium to mount or NULL for an empty drive.</desc>
4486 </param>
4487 </method>
4488
4489 <method name="detachDevice">
4490 <desc>
4491 Detaches the device attached to a device slot of the specified bus.
4492
4493 Detaching the device from the virtual machine is deferred. This means
4494 that the medium remains associated with the machine when this method
4495 returns and gets actually de-associated only after a successful
4496 <link to="#saveSettings"/> call. See <link to="IMedium"/>
4497 for more detailed information about attaching media.
4498
4499 <note>
4500 You cannot detach a device from a running machine.
4501 </note>
4502 <note>
4503 Detaching differencing media implicitly created by <link
4504 to="#attachDevice"/> for the indirect attachment using this
4505 method will <b>not</b> implicitly delete them. The
4506 <link to="IMedium::deleteStorage"/> operation should be
4507 explicitly performed by the caller after the medium is successfully
4508 detached and the settings are saved with
4509 <link to="#saveSettings"/>, if it is the desired action.
4510 </note>
4511
4512 <result name="VBOX_E_INVALID_VM_STATE">
4513 Attempt to detach medium from a running virtual machine.
4514 </result>
4515 <result name="VBOX_E_OBJECT_NOT_FOUND">
4516 No medium attached to given slot/bus.
4517 </result>
4518 <result name="VBOX_E_NOT_SUPPORTED">
4519 Medium format does not support storage deletion.
4520 </result>
4521
4522 </desc>
4523 <param name="name" type="wstring" dir="in">
4524 <desc>Name of the storage controller to detach the medium from.</desc>
4525 </param>
4526 <param name="controllerPort" type="long" dir="in">
4527 <desc>Port number to detach the medium from.</desc>
4528 </param>
4529 <param name="device" type="long" dir="in">
4530 <desc>Device slot number to detach the medium from.</desc>
4531 </param>
4532 </method>
4533
4534 <method name="passthroughDevice">
4535 <desc>
4536 Sets the passthrough mode of an existing DVD device. Changing the
4537 setting while the VM is running is forbidden. The setting is only used
4538 if at VM start the device is configured as a host DVD drive, in all
4539 other cases it is ignored. The device must already exist; see
4540 <link to="IMachine::attachDevice"/> for how to attach a new device.
4541
4542 The @a controllerPort and @a device parameters specify the device slot and
4543 have have the same meaning as with <link to="IMachine::attachDevice" />.
4544
4545 <result name="E_INVALIDARG">
4546 SATA device, SATA port, IDE port or IDE slot out of range.
4547 </result>
4548 <result name="VBOX_E_INVALID_OBJECT_STATE">
4549 Attempt to modify an unregistered virtual machine.
4550 </result>
4551 <result name="VBOX_E_INVALID_VM_STATE">
4552 Invalid machine state.
4553 </result>
4554
4555 </desc>
4556 <param name="name" type="wstring" dir="in">
4557 <desc>Name of the storage controller.</desc>
4558 </param>
4559 <param name="controllerPort" type="long" dir="in">
4560 <desc>Storage controller port.</desc>
4561 </param>
4562 <param name="device" type="long" dir="in">
4563 <desc>Device slot in the given port.</desc>
4564 </param>
4565 <param name="passthrough" type="boolean" dir="in">
4566 <desc>New value for the passthrough setting.</desc>
4567 </param>
4568 </method>
4569
4570 <method name="setBandwidthGroupForDevice">
4571 <desc>
4572 Sets the bandwidth group of an existing storage device.
4573 The device must already exist; see <link to="IMachine::attachDevice"/>
4574 for how to attach a new device.
4575
4576 The @a controllerPort and @a device parameters specify the device slot and
4577 have have the same meaning as with <link to="IMachine::attachDevice" />.
4578
4579 <result name="E_INVALIDARG">
4580 SATA device, SATA port, IDE port or IDE slot out of range.
4581 </result>
4582 <result name="VBOX_E_INVALID_OBJECT_STATE">
4583 Attempt to modify an unregistered virtual machine.
4584 </result>
4585 <result name="VBOX_E_INVALID_VM_STATE">
4586 Invalid machine state.
4587 </result>
4588
4589 </desc>
4590 <param name="name" type="wstring" dir="in">
4591 <desc>Name of the storage controller.</desc>
4592 </param>
4593 <param name="controllerPort" type="long" dir="in">
4594 <desc>Storage controller port.</desc>
4595 </param>
4596 <param name="device" type="long" dir="in">
4597 <desc>Device slot in the given port.</desc>
4598 </param>
4599 <param name="bandwidthGroup" type="IBandwidthGroup" dir="in">
4600 <desc>New value for the bandwidth group or NULL for no group.</desc>
4601 </param>
4602 </method>
4603
4604 <method name="mountMedium">
4605 <desc>
4606 Mounts a medium (<link to="IMedium" />, identified
4607 by the given UUID @a id) to the given storage controller
4608 (<link to="IStorageController" />, identified by @a name),
4609 at the indicated port and device. The device must already exist;
4610 see <link to="IMachine::attachDevice"/> for how to attach a new device.
4611
4612 This method is intended only for managing removable media, where the
4613 device is fixed but media is changeable at runtime (such as DVDs
4614 and floppies). It cannot be used for fixed media such as hard disks.
4615
4616 The @a controllerPort and @a device parameters specify the device slot and
4617 have have the same meaning as with <link to="IMachine::attachDevice" />.
4618
4619 The specified device slot can have a medium mounted, which will be
4620 unmounted first. Specifying a zero UUID (or an empty string) for
4621 @a medium does just an unmount.
4622
4623 See <link to="IMedium"/> for more detailed information about
4624 attaching media.
4625
4626 <result name="E_INVALIDARG">
4627 SATA device, SATA port, IDE port or IDE slot out of range.
4628 </result>
4629 <result name="VBOX_E_INVALID_OBJECT_STATE">
4630 Attempt to attach medium to an unregistered virtual machine.
4631 </result>
4632 <result name="VBOX_E_INVALID_VM_STATE">
4633 Invalid machine state.
4634 </result>
4635 <result name="VBOX_E_OBJECT_IN_USE">
4636 Medium already attached to this or another virtual machine.
4637 </result>
4638
4639 </desc>
4640 <param name="name" type="wstring" dir="in">
4641 <desc>Name of the storage controller to attach the medium to.</desc>
4642 </param>
4643 <param name="controllerPort" type="long" dir="in">
4644 <desc>Port to attach the medium to.</desc>
4645 </param>
4646 <param name="device" type="long" dir="in">
4647 <desc>Device slot in the given port to attach the medium to.</desc>
4648 </param>
4649 <param name="medium" type="IMedium" dir="in">
4650 <desc>Medium to mount or NULL for an empty drive.</desc>
4651 </param>
4652 <param name="force" type="boolean" dir="in">
4653 <desc>Allows to force unmount/mount of a medium which is locked by
4654 the device slot in the given port to attach the medium to.</desc>
4655 </param>
4656 </method>
4657
4658 <method name="getMedium" const="yes">
4659 <desc>
4660 Returns the virtual medium attached to a device slot of the specified
4661 bus.
4662
4663 Note that if the medium was indirectly attached by
4664 <link to="#mountMedium"/> to the given device slot then this
4665 method will return not the same object as passed to the
4666 <link to="#mountMedium"/> call. See <link to="IMedium"/> for
4667 more detailed information about mounting a medium.
4668
4669 <result name="VBOX_E_OBJECT_NOT_FOUND">
4670 No medium attached to given slot/bus.
4671 </result>
4672
4673 </desc>
4674 <param name="name" type="wstring" dir="in">
4675 <desc>Name of the storage controller the medium is attached to.</desc>
4676 </param>
4677 <param name="controllerPort" type="long" dir="in">
4678 <desc>Port to query.</desc>
4679 </param>
4680 <param name="device" type="long" dir="in">
4681 <desc>Device slot in the given port to query.</desc>
4682 </param>
4683 <param name="medium" type="IMedium" dir="return">
4684 <desc>Attached medium object.</desc>
4685 </param>
4686 </method>
4687
4688 <method name="getMediumAttachmentsOfController" const="yes">
4689 <desc>
4690 Returns an array of medium attachments which are attached to the
4691 the controller with the given name.
4692
4693 <result name="VBOX_E_OBJECT_NOT_FOUND">
4694 A storage controller with given name doesn't exist.
4695 </result>
4696 </desc>
4697 <param name="name" type="wstring" dir="in"/>
4698 <param name="mediumAttachments" type="IMediumAttachment" safearray="yes" dir="return"/>
4699 </method>
4700
4701 <method name="getMediumAttachment" const="yes">
4702 <desc>
4703 Returns a medium attachment which corresponds to the controller with
4704 the given name, on the given port and device slot.
4705
4706 <result name="VBOX_E_OBJECT_NOT_FOUND">
4707 No attachment exists for the given controller/port/device combination.
4708 </result>
4709 </desc>
4710 <param name="name" type="wstring" dir="in"/>
4711 <param name="controllerPort" type="long" dir="in"/>
4712 <param name="device" type="long" dir="in"/>
4713 <param name="attachment" type="IMediumAttachment" dir="return"/>
4714 </method>
4715
4716 <method name="attachHostPciDevice">
4717 <desc>
4718 Attaches host PCI device with the given (host) PCI address to the
4719 PCI bus of the virtual machine. Please note, that this operation
4720 is two phase, as real attachment will happen when VM will start,
4721 and most information will be delivered as IHostPciDevicePlugEvent
4722 on IVirtualBox event source.
4723
4724 <see>IHostPciDevicePlugEvent</see>
4725
4726 <result name="VBOX_E_INVALID_VM_STATE">
4727 Virtual machine state is not stopped (PCI hotplug not yet implemented).
4728 </result>
4729 <result name="VBOX_E_PDM_ERROR">
4730 Virtual machine does not have a PCI controller allowing attachment of physical devices.
4731 </result>
4732 <result name="VBOX_E_NOT_SUPPORTED">
4733 Hardware or host OS doesn't allow PCI device passthrought.
4734 </result>
4735 </desc>
4736 <param name="hostAddress" type="long" dir="in">
4737 <desc>Address of the host PCI device.</desc>
4738 </param>
4739 <param name="desiredGuestAddress" type="long" dir="in">
4740 <desc>Desired position of this device on guest PCI bus.</desc>
4741 </param>
4742 <param name="tryToUnbind" type="boolean" dir="in">
4743 <desc>If VMM shall try to unbind existing drivers from the
4744 device before attaching it to the guest.</desc>
4745 </param>
4746 </method>
4747
4748 <method name="detachHostPciDevice">
4749 <desc>
4750 Detach host PCI device from the virtual machine.
4751 Also HostPciDevicePlugEvent on IVirtualBox event source
4752 will be delivered. As currently we don't support hot device
4753 unplug, IHostPciDevicePlugEvent event is delivered immediately.
4754
4755 <see>IHostPciDevicePlugEvent</see>
4756
4757 <result name="VBOX_E_INVALID_VM_STATE">
4758 Virtual machine state is not stopped (PCI hotplug not yet implemented).
4759 </result>
4760 <result name="VBOX_E_OBJECT_NOT_FOUND">
4761 This host device is not attached to this machine.
4762 </result>
4763 <result name="VBOX_E_PDM_ERROR">
4764 Virtual machine does not have a PCI controller allowing attachment of physical devices.
4765 </result>
4766 <result name="VBOX_E_NOT_SUPPORTED">
4767 Hardware or host OS doesn't allow PCI device passthrought.
4768 </result>
4769 </desc>
4770 <param name="hostAddress" type="long" dir="in">
4771 <desc>Address of the host PCI device.</desc>
4772 </param>
4773 </method>
4774
4775 <method name="getNetworkAdapter" const="yes">
4776 <desc>
4777 Returns the network adapter associated with the given slot.
4778 Slots are numbered sequentially, starting with zero. The total
4779 number of adapters per machine is defined by the
4780 <link to="ISystemProperties::getMaxNetworkAdapters"/> property,
4781 so the maximum slot number is one less than that property's value.
4782
4783 <result name="E_INVALIDARG">
4784 Invalid @a slot number.
4785 </result>
4786
4787 </desc>
4788 <param name="slot" type="unsigned long" dir="in"/>
4789 <param name="adapter" type="INetworkAdapter" dir="return"/>
4790 </method>
4791
4792 <method name="addStorageController">
4793 <desc>
4794 Adds a new storage controller (SCSI, SAS or SATA controller) to the
4795 machine and returns it as an instance of
4796 <link to="IStorageController" />.
4797
4798 @a name identifies the controller for subsequent calls such as
4799 <link to="#getStorageControllerByName" />,
4800 <link to="#getStorageControllerByInstance" />,
4801 <link to="#removeStorageController" />,
4802 <link to="#attachDevice" /> or <link to="#mountMedium" />.
4803
4804 After the controller has been added, you can set its exact
4805 type by setting the <link to="IStorageController::controllerType" />.
4806
4807 <result name="VBOX_E_OBJECT_IN_USE">
4808 A storage controller with given name exists already.
4809 </result>
4810 <result name="E_INVALIDARG">
4811 Invalid @a controllerType.
4812 </result>
4813 </desc>
4814 <param name="name" type="wstring" dir="in"/>
4815 <param name="connectionType" type="StorageBus" dir="in"/>
4816 <param name="controller" type="IStorageController" dir="return"/>
4817 </method>
4818
4819 <method name="getStorageControllerByName" const="yes">
4820 <desc>
4821 Returns a storage controller with the given name.
4822
4823 <result name="VBOX_E_OBJECT_NOT_FOUND">
4824 A storage controller with given name doesn't exist.
4825 </result>
4826 </desc>
4827 <param name="name" type="wstring" dir="in"/>
4828 <param name="storageController" type="IStorageController" dir="return"/>
4829 </method>
4830
4831 <method name="getStorageControllerByInstance" const="yes">
4832 <desc>
4833 Returns a storage controller with the given instance number.
4834
4835 <result name="VBOX_E_OBJECT_NOT_FOUND">
4836 A storage controller with given instance number doesn't exist.
4837 </result>
4838 </desc>
4839 <param name="instance" type="unsigned long" dir="in"/>
4840 <param name="storageController" type="IStorageController" dir="return"/>
4841 </method>
4842
4843 <method name="removeStorageController">
4844 <desc>
4845 Removes a storage controller from the machine.
4846
4847 <result name="VBOX_E_OBJECT_NOT_FOUND">
4848 A storage controller with given name doesn't exist.
4849 </result>
4850 </desc>
4851 <param name="name" type="wstring" dir="in"/>
4852 </method>
4853
4854 <method name="setStorageControllerBootable">
4855 <desc>
4856 Sets the bootable flag of the storage controller with the given name.
4857
4858 <result name="VBOX_E_OBJECT_NOT_FOUND">
4859 A storage controller with given name doesn't exist.
4860 </result>
4861 <result name="VBOX_E_OBJECT_IN_USE">
4862 Another storage controller is marked as bootable already.
4863 </result>
4864 </desc>
4865 <param name="name" type="wstring" dir="in"/>
4866 <param name="bootable" type="boolean" dir="in"/>
4867 </method>
4868
4869 <method name="getSerialPort" const="yes">
4870 <desc>
4871 Returns the serial port associated with the given slot.
4872 Slots are numbered sequentially, starting with zero. The total
4873 number of serial ports per machine is defined by the
4874 <link to="ISystemProperties::serialPortCount"/> property,
4875 so the maximum slot number is one less than that property's value.
4876
4877 <result name="E_INVALIDARG">
4878 Invalid @a slot number.
4879 </result>
4880
4881 </desc>
4882 <param name="slot" type="unsigned long" dir="in"/>
4883 <param name="port" type="ISerialPort" dir="return"/>
4884 </method>
4885
4886 <method name="getParallelPort" const="yes">
4887 <desc>
4888 Returns the parallel port associated with the given slot.
4889 Slots are numbered sequentially, starting with zero. The total
4890 number of parallel ports per machine is defined by the
4891 <link to="ISystemProperties::parallelPortCount"/> property,
4892 so the maximum slot number is one less than that property's value.
4893
4894 <result name="E_INVALIDARG">
4895 Invalid @a slot number.
4896 </result>
4897
4898 </desc>
4899 <param name="slot" type="unsigned long" dir="in"/>
4900 <param name="port" type="IParallelPort" dir="return"/>
4901 </method>
4902
4903 <method name="getExtraDataKeys">
4904 <desc>
4905 Returns an array representing the machine-specific extra data keys
4906 which currently have values defined.
4907 </desc>
4908 <param name="value" type="wstring" dir="return" safearray="yes">
4909 <desc>Array of extra data keys.</desc>
4910 </param>
4911 </method>
4912
4913 <method name="getExtraData">
4914 <desc>
4915 Returns associated machine-specific extra data.
4916
4917 If the requested data @a key does not exist, this function will
4918 succeed and return an empty string in the @a value argument.
4919
4920 <result name="VBOX_E_FILE_ERROR">
4921 Settings file not accessible.
4922 </result>
4923 <result name="VBOX_E_XML_ERROR">
4924 Could not parse the settings file.
4925 </result>
4926
4927 </desc>
4928 <param name="key" type="wstring" dir="in">
4929 <desc>Name of the data key to get.</desc>
4930 </param>
4931 <param name="value" type="wstring" dir="return">
4932 <desc>Value of the requested data key.</desc>
4933 </param>
4934 </method>
4935
4936 <method name="setExtraData">
4937 <desc>
4938 Sets associated machine-specific extra data.
4939
4940 If you pass @c null or an empty string as a key @a value, the given
4941 @a key will be deleted.
4942
4943 <note>
4944 Before performing the actual data change, this method will ask all
4945 registered listeners using the
4946 <link to="IExtraDataCanChangeEvent"/>
4947 notification for a permission. If one of the listeners refuses the
4948 new value, the change will not be performed.
4949 </note>
4950 <note>
4951 On success, the
4952 <link to="IExtraDataChangedEvent"/> notification
4953 is called to inform all registered listeners about a successful data
4954 change.
4955 </note>
4956 <note>
4957 This method can be called outside the machine session and therefore
4958 it's a caller's responsibility to handle possible race conditions
4959 when several clients change the same key at the same time.
4960 </note>
4961
4962 <result name="VBOX_E_FILE_ERROR">
4963 Settings file not accessible.
4964 </result>
4965 <result name="VBOX_E_XML_ERROR">
4966 Could not parse the settings file.
4967 </result>
4968
4969 </desc>
4970 <param name="key" type="wstring" dir="in">
4971 <desc>Name of the data key to set.</desc>
4972 </param>
4973 <param name="value" type="wstring" dir="in">
4974 <desc>Value to assign to the key.</desc>
4975 </param>
4976 </method>
4977
4978 <method name="getCPUProperty" const="yes">
4979 <desc>
4980 Returns the virtual CPU boolean value of the specified property.
4981
4982 <result name="E_INVALIDARG">
4983 Invalid property.
4984 </result>
4985
4986 </desc>
4987 <param name="property" type="CPUPropertyType" dir="in">
4988 <desc>
4989 Property type to query.
4990 </desc>
4991 </param>
4992 <param name="value" type="boolean" dir="return">
4993 <desc>
4994 Property value.
4995 </desc>
4996 </param>
4997 </method>
4998
4999 <method name="setCPUProperty">
5000 <desc>
5001 Sets the virtual CPU boolean value of the specified property.
5002
5003 <result name="E_INVALIDARG">
5004 Invalid property.
5005 </result>
5006
5007 </desc>
5008 <param name="property" type="CPUPropertyType" dir="in">
5009 <desc>
5010 Property type to query.
5011 </desc>
5012 </param>
5013 <param name="value" type="boolean" dir="in">
5014 <desc>
5015 Property value.
5016 </desc>
5017 </param>
5018 </method>
5019
5020 <method name="getCPUIDLeaf" const="yes">
5021 <desc>
5022 Returns the virtual CPU cpuid information for the specified leaf.
5023
5024 Currently supported index values for cpuid:
5025 Standard CPUID leafs: 0 - 0xA
5026 Extended CPUID leafs: 0x80000000 - 0x8000000A
5027
5028 See the Intel and AMD programmer's manuals for detailed information
5029 about the cpuid instruction and its leafs.
5030 <result name="E_INVALIDARG">
5031 Invalid id.
5032 </result>
5033
5034 </desc>
5035 <param name="id" type="unsigned long" dir="in">
5036 <desc>
5037 CPUID leaf index.
5038 </desc>
5039 </param>
5040 <param name="valEax" type="unsigned long" dir="out">
5041 <desc>
5042 CPUID leaf value for register eax.
5043 </desc>
5044 </param>
5045 <param name="valEbx" type="unsigned long" dir="out">
5046 <desc>
5047 CPUID leaf value for register ebx.
5048 </desc>
5049 </param>
5050 <param name="valEcx" type="unsigned long" dir="out">
5051 <desc>
5052 CPUID leaf value for register ecx.
5053 </desc>
5054 </param>
5055 <param name="valEdx" type="unsigned long" dir="out">
5056 <desc>
5057 CPUID leaf value for register edx.
5058 </desc>
5059 </param>
5060 </method>
5061
5062 <method name="setCPUIDLeaf">
5063 <desc>
5064 Sets the virtual CPU cpuid information for the specified leaf. Note that these values
5065 are not passed unmodified. VirtualBox clears features that it doesn't support.
5066
5067 Currently supported index values for cpuid:
5068 Standard CPUID leafs: 0 - 0xA
5069 Extended CPUID leafs: 0x80000000 - 0x8000000A
5070
5071 See the Intel and AMD programmer's manuals for detailed information
5072 about the cpuid instruction and its leafs.
5073
5074 Do not use this method unless you know exactly what you're doing. Misuse can lead to
5075 random crashes inside VMs.
5076 <result name="E_INVALIDARG">
5077 Invalid id.
5078 </result>
5079
5080 </desc>
5081 <param name="id" type="unsigned long" dir="in">
5082 <desc>
5083 CPUID leaf index.
5084 </desc>
5085 </param>
5086 <param name="valEax" type="unsigned long" dir="in">
5087 <desc>
5088 CPUID leaf value for register eax.
5089 </desc>
5090 </param>
5091 <param name="valEbx" type="unsigned long" dir="in">
5092 <desc>
5093 CPUID leaf value for register ebx.
5094 </desc>
5095 </param>
5096 <param name="valEcx" type="unsigned long" dir="in">
5097 <desc>
5098 CPUID leaf value for register ecx.
5099 </desc>
5100 </param>
5101 <param name="valEdx" type="unsigned long" dir="in">
5102 <desc>
5103 CPUID leaf value for register edx.
5104 </desc>
5105 </param>
5106 </method>
5107
5108 <method name="removeCPUIDLeaf">
5109 <desc>
5110 Removes the virtual CPU cpuid leaf for the specified index
5111
5112 <result name="E_INVALIDARG">
5113 Invalid id.
5114 </result>
5115
5116 </desc>
5117 <param name="id" type="unsigned long" dir="in">
5118 <desc>
5119 CPUID leaf index.
5120 </desc>
5121 </param>
5122 </method>
5123
5124 <method name="removeAllCPUIDLeaves">
5125 <desc>
5126 Removes all the virtual CPU cpuid leaves
5127 </desc>
5128 </method>
5129
5130 <method name="getHWVirtExProperty" const="yes">
5131 <desc>
5132 Returns the value of the specified hardware virtualization boolean property.
5133
5134 <result name="E_INVALIDARG">
5135 Invalid property.
5136 </result>
5137
5138 </desc>
5139 <param name="property" type="HWVirtExPropertyType" dir="in">
5140 <desc>
5141 Property type to query.
5142 </desc>
5143 </param>
5144 <param name="value" type="boolean" dir="return">
5145 <desc>
5146 Property value.
5147 </desc>
5148 </param>
5149 </method>
5150
5151 <method name="setHWVirtExProperty">
5152 <desc>
5153 Sets a new value for the specified hardware virtualization boolean property.
5154
5155 <result name="E_INVALIDARG">
5156 Invalid property.
5157 </result>
5158
5159 </desc>
5160 <param name="property" type="HWVirtExPropertyType" dir="in">
5161 <desc>
5162 Property type to set.
5163 </desc>
5164 </param>
5165 <param name="value" type="boolean" dir="in">
5166 <desc>
5167 New property value.
5168 </desc>
5169 </param>
5170 </method>
5171
5172 <method name="saveSettings">
5173 <desc>
5174 Saves any changes to machine settings made since the session
5175 has been opened or a new machine has been created, or since the
5176 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
5177 For registered machines, new settings become visible to all
5178 other VirtualBox clients after successful invocation of this
5179 method.
5180 <note>
5181 The method sends <link to="IMachineDataChangedEvent"/>
5182 notification event after the configuration has been successfully
5183 saved (only for registered machines).
5184 </note>
5185 <note>
5186 Calling this method is only valid on instances returned
5187 by <link to="ISession::machine"/> and on new machines
5188 created by <link to="IVirtualBox::createMachine"/> but not
5189 yet registered, or on unregistered machines after calling
5190 <link to="IMachine::unregister"/>.
5191 </note>
5192
5193 <result name="VBOX_E_FILE_ERROR">
5194 Settings file not accessible.
5195 </result>
5196 <result name="VBOX_E_XML_ERROR">
5197 Could not parse the settings file.
5198 </result>
5199 <result name="E_ACCESSDENIED">
5200 Modification request refused.
5201 </result>
5202
5203 </desc>
5204 </method>
5205
5206 <method name="discardSettings">
5207 <desc>
5208 Discards any changes to the machine settings made since the session
5209 has been opened or since the last call to <link to="#saveSettings"/>
5210 or <link to="#discardSettings"/>.
5211 <note>
5212 Calling this method is only valid on instances returned
5213 by <link to="ISession::machine"/> and on new machines
5214 created by <link to="IVirtualBox::createMachine"/> or
5215 opened by <link to="IVirtualBox::openMachine"/> but not
5216 yet registered, or on unregistered machines after calling
5217 <link to="IMachine::unregister"/>.
5218 </note>
5219
5220 <result name="VBOX_E_INVALID_VM_STATE">
5221 Virtual machine is not mutable.
5222 </result>
5223
5224 </desc>
5225 </method>
5226
5227 <method name="unregister">
5228 <desc>
5229 Unregisters a machine previously registered with
5230 <link to="IVirtualBox::registerMachine"/> and optionally do additional
5231 cleanup before the machine is unregistered.
5232
5233 This method does not delete any files. It only changes the machine configuration and
5234 the list of registered machines in the VirtualBox object. To delete the files which
5235 belonged to the machine, including the XML file of the machine itself, call
5236 <link to="#delete"/>, optionally with the array of IMedium objects which was returned
5237 from this method.
5238
5239 How thoroughly this method cleans up the machine configuration before unregistering
5240 the machine depends on the @a cleanupMode argument.
5241
5242 <ul>
5243 <li>With "UnregisterOnly", the machine will only be unregistered, but no additional
5244 cleanup will be performed. The call will fail if the machine is in "Saved" state
5245 or has any snapshots or any media attached (see <link to="IMediumAttachment" />).
5246 It is the responsibility of the caller to delete all such configuration in this mode.
5247 In this mode, the API behaves like the former @c IVirtualBox::unregisterMachine() API
5248 which it replaces.</li>
5249 <li>With "DetachAllReturnNone", the call will succeed even if the machine is in "Saved"
5250 state or if it has snapshots or media attached. All media attached to the current machine
5251 state or in snapshots will be detached. No medium objects will be returned;
5252 all of the machine's media will remain open.</li>
5253 <li>With "DetachAllReturnHardDisksOnly", the call will behave like with "DetachAllReturnNone",
5254 except that all the hard disk medium objects which were detached from the machine will
5255 be returned as an array. This allows for quickly passing them to the <link to="#delete" />
5256 API for closing and deletion.</li>
5257 <li>With "Full", the call will behave like with "DetachAllReturnHardDisksOnly", except
5258 that all media will be returned in the array, including removable media like DVDs and
5259 floppies. This might be useful if the user wants to inspect in detail which media were
5260 attached to the machine. Be careful when passing the media array to <link to="#delete" />
5261 in that case because users will typically want to preserve ISO and RAW image files.</li>
5262 </ul>
5263
5264 A typical implementation will use "DetachAllReturnHardDisksOnly" and then pass the
5265 resulting IMedium array to <link to="#delete"/>. This way, the machine is completely
5266 deleted with all its saved states and hard disk images, but images for removable
5267 drives (such as ISO and RAW files) will remain on disk.
5268
5269 This API does not verify whether the media files returned in the array are still
5270 attached to other machines (i.e. shared between several machines). If such a shared
5271 image is passed to <link to="#delete" /> however, closing the image will fail there
5272 and the image will be silently skipped.
5273
5274 This API may, however, move media from this machine's media registry to other media
5275 registries (see <link to="IMedium" /> for details on media registries). For machines
5276 created with VirtualBox 4.0 or later, if media from this machine's media registry
5277 are also attached to another machine (shared attachments), each such medium will be
5278 moved to another machine's registry. This is because without this machine's media
5279 registry, the other machine cannot find its media any more and would become inaccessible.
5280
5281 This API implicitly calls <link to="#saveSettings"/> to save all current machine settings
5282 before unregistering it. It may also silently call saveSettings() on other machines
5283 if media are moved to other machines' media registries.
5284
5285 After successful method invocation, the <link to="IMachineRegisteredEvent"/> event
5286 is fired.
5287
5288 The call will fail if the machine is currently locked (see <link to="ISession" />).
5289
5290 <note>
5291 If the given machine is inaccessible (see <link to="#accessible"/>), it
5292 will be unregistered and fully uninitialized right afterwards. As a result,
5293 the returned machine object will be unusable and an attempt to call
5294 <b>any</b> method will return the "Object not ready" error.
5295 </note>
5296
5297 <result name="VBOX_E_INVALID_OBJECT_STATE">
5298 Machine is currently locked for a session.
5299 </result>
5300 </desc>
5301
5302 <param name="cleanupMode" type="CleanupMode" dir="in">
5303 <desc>How to clean up after the machine has been unregistered.</desc>
5304 </param>
5305 <param name="aMedia" type="IMedium" safearray="yes" dir="return">
5306 <desc>List of media detached from the machine, depending on the @a cleanupMode parameter.</desc>
5307 </param>
5308 </method>
5309
5310 <method name="delete">
5311 <desc>
5312 Deletes the files associated with this machine from disk. If medium objects are passed
5313 in with the @a aMedia argument, they are closed and, if closing was successful, their
5314 storage files are deleted as well. For convenience, this array of media files can be
5315 the same as the one returned from a previous <link to="#unregister" /> call.
5316
5317 This method must only be called on machines which are either write-locked (i.e. on instances
5318 returned by <link to="ISession::machine"/>) or on unregistered machines (i.e. not yet
5319 registered machines created by <link to="IVirtualBox::createMachine"/> or opened by
5320 <link to="IVirtualBox::openMachine"/>, or after having called <link to="#unregister"/>).
5321
5322 The following files will be deleted by this method:
5323 <ul>
5324 <li>If <link to="#unregister" /> had been previously called with a @a cleanupMode
5325 argument other than "UnregisterOnly", this will delete all saved state files that
5326 the machine had in use; possibly one if the machine was in "Saved" state and one
5327 for each online snapshot that the machine had.</li>
5328 <li>On each medium object passed in the @a aMedia array, this will call
5329 <link to="IMedium::close" />. If that succeeds, this will attempt to delete the
5330 medium's storage on disk. Since the close() call will fail if the medium is still
5331 in use, e.g. because it is still attached to a second machine; in that case the
5332 storage will not be deleted.</li>
5333 <li>Finally, the machine's own XML file will be deleted.</li>
5334 </ul>
5335
5336 Since deleting large disk image files can be a time-consuming I/O operation, this
5337 method operates asynchronously and returns an IProgress object to allow the caller
5338 to monitor the progress. There will be one sub-operation for each file that is
5339 being deleted (saved state or medium storage file).
5340
5341 <note>
5342 <link to="#settingsModified"/> will return @c true after this
5343 method successfully returns.
5344 </note>
5345
5346 <result name="VBOX_E_INVALID_VM_STATE">
5347 Machine is registered but not write-locked.
5348 </result>
5349 <result name="VBOX_E_IPRT_ERROR">
5350 Could not delete the settings file.
5351 </result>
5352 </desc>
5353 <param name="aMedia" type="IMedium" safearray="yes" dir="in">
5354 <desc>List of media to be closed and whose storage files will be deleted.</desc>
5355 </param>
5356 <param name="aProgress" type="IProgress" dir="return">
5357 <desc>Progress object to track the operation completion.</desc>
5358 </param>
5359 </method>
5360
5361 <method name="export">
5362 <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
5363 steps required to export VirtualBox machines to OVF.
5364 </desc>
5365
5366 <param name="aAppliance" type="IAppliance" dir="in">
5367 <desc>Appliance to export this machine to.</desc>
5368 </param>
5369 <param name="location" type="wstring" dir="in">
5370 <desc>The target location.</desc>
5371 </param>
5372 <param name="aDescription" type="IVirtualSystemDescription" dir="return">
5373 <desc>VirtualSystemDescription object which is created for this machine.</desc>
5374 </param>
5375 </method >
5376
5377 <method name="findSnapshot">
5378 <desc>
5379 Returns a snapshot of this machine with the given name or UUID.
5380
5381 Returns a snapshot of this machine with the given UUID.
5382 A @c null argument can be used to obtain the first snapshot
5383 taken on this machine. To traverse the whole tree of snapshots
5384 starting from the root, inspect the root snapshot's
5385 <link to="ISnapshot::children" /> attribute and recurse over those children.
5386
5387 <result name="VBOX_E_OBJECT_NOT_FOUND">
5388 Virtual machine has no snapshots or snapshot not found.
5389 </result>
5390
5391 </desc>
5392 <param name="nameOrId" type="wstring" dir="in">
5393 <desc>What to search for. Name or UUID of the snapshot to find</desc>
5394 </param>
5395 <param name="snapshot" type="ISnapshot" dir="return">
5396 <desc>Snapshot object with the given name.</desc>
5397 </param>
5398 </method>
5399
5400 <method name="createSharedFolder">
5401 <desc>
5402 Creates a new permanent shared folder by associating the given logical
5403 name with the given host path, adds it to the collection of shared
5404 folders and starts sharing it. Refer to the description of
5405 <link to="ISharedFolder"/> to read more about logical names.
5406
5407 <result name="VBOX_E_OBJECT_IN_USE">
5408 Shared folder already exists.
5409 </result>
5410 <result name="VBOX_E_FILE_ERROR">
5411 Shared folder @a hostPath not accessible.
5412 </result>
5413
5414 </desc>
5415 <param name="name" type="wstring" dir="in">
5416 <desc>Unique logical name of the shared folder.</desc>
5417 </param>
5418 <param name="hostPath" type="wstring" dir="in">
5419 <desc>Full path to the shared folder in the host file system.</desc>
5420 </param>
5421 <param name="writable" type="boolean" dir="in">
5422 <desc>Whether the share is writable or readonly.</desc>
5423 </param>
5424 <param name="automount" type="boolean" dir="in">
5425 <desc>Whether the share gets automatically mounted by the guest
5426 or not.</desc>
5427 </param>
5428 </method>
5429
5430 <method name="removeSharedFolder">
5431 <desc>
5432 Removes the permanent shared folder with the given name previously
5433 created by <link to="#createSharedFolder"/> from the collection of
5434 shared folders and stops sharing it.
5435
5436 <result name="VBOX_E_INVALID_VM_STATE">
5437 Virtual machine is not mutable.
5438 </result>
5439 <result name="VBOX_E_OBJECT_NOT_FOUND">
5440 Shared folder @a name does not exist.
5441 </result>
5442
5443 </desc>
5444 <param name="name" type="wstring" dir="in">
5445 <desc>Logical name of the shared folder to remove.</desc>
5446 </param>
5447 </method>
5448
5449 <method name="canShowConsoleWindow">
5450 <desc>
5451 Returns @c true if the VM console process can activate the
5452 console window and bring it to foreground on the desktop of
5453 the host PC.
5454 <note>
5455 This method will fail if a session for this machine is not
5456 currently open.
5457 </note>
5458
5459 <result name="VBOX_E_INVALID_VM_STATE">
5460 Machine session is not open.
5461 </result>
5462
5463 </desc>
5464 <param name="canShow" type="boolean" dir="return">
5465 <desc>
5466 @c true if the console window can be shown and @c false otherwise.
5467 </desc>
5468 </param>
5469 </method>
5470
5471 <method name="showConsoleWindow">
5472 <desc>
5473 Activates the console window and brings it to foreground on
5474 the desktop of the host PC. Many modern window managers on
5475 many platforms implement some sort of focus stealing
5476 prevention logic, so that it may be impossible to activate
5477 a window without the help of the currently active
5478 application. In this case, this method will return a non-zero
5479 identifier that represents the top-level window of the VM
5480 console process. The caller, if it represents a currently
5481 active process, is responsible to use this identifier (in a
5482 platform-dependent manner) to perform actual window
5483 activation.
5484 <note>
5485 This method will fail if a session for this machine is not
5486 currently open.
5487 </note>
5488
5489 <result name="VBOX_E_INVALID_VM_STATE">
5490 Machine session is not open.
5491 </result>
5492
5493 </desc>
5494 <param name="winId" type="long long" dir="return">
5495 <desc>
5496 Platform-dependent identifier of the top-level VM console
5497 window, or zero if this method has performed all actions
5498 necessary to implement the <i>show window</i> semantics for
5499 the given platform and/or VirtualBox front-end.
5500 </desc>
5501 </param>
5502 </method>
5503
5504 <method name="getGuestProperty" const="yes">
5505 <desc>
5506 Reads an entry from the machine's guest property store.
5507
5508 <result name="VBOX_E_INVALID_VM_STATE">
5509 Machine session is not open.
5510 </result>
5511
5512 </desc>
5513 <param name="name" type="wstring" dir="in">
5514 <desc>
5515 The name of the property to read.
5516 </desc>
5517 </param>
5518 <param name="value" type="wstring" dir="out">
5519 <desc>
5520 The value of the property. If the property does not exist then this
5521 will be empty.
5522 </desc>
5523 </param>
5524 <param name="timestamp" type="long long" dir="out">
5525 <desc>
5526 The time at which the property was last modified, as seen by the
5527 server process.
5528 </desc>
5529 </param>
5530 <param name="flags" type="wstring" dir="out">
5531 <desc>
5532 Additional property parameters, passed as a comma-separated list of
5533 "name=value" type entries.
5534 </desc>
5535 </param>
5536 </method>
5537
5538 <method name="getGuestPropertyValue" const="yes">
5539 <desc>
5540 Reads a value from the machine's guest property store.
5541
5542 <result name="VBOX_E_INVALID_VM_STATE">
5543 Machine session is not open.
5544 </result>
5545
5546 </desc>
5547 <param name="property" type="wstring" dir="in">
5548 <desc>
5549 The name of the property to read.
5550 </desc>
5551 </param>
5552 <param name="value" type="wstring" dir="return">
5553 <desc>
5554 The value of the property. If the property does not exist then this
5555 will be empty.
5556 </desc>
5557 </param>
5558 </method>
5559
5560 <method name="getGuestPropertyTimestamp" const="yes">
5561 <desc>
5562 Reads a property timestamp from the machine's guest property store.
5563
5564 <result name="VBOX_E_INVALID_VM_STATE">
5565 Machine session is not open.
5566 </result>
5567
5568 </desc>
5569 <param name="property" type="wstring" dir="in">
5570 <desc>
5571 The name of the property to read.
5572 </desc>
5573 </param>
5574 <param name="value" type="long long" dir="return">
5575 <desc>
5576 The timestamp. If the property does not exist then this will be
5577 empty.
5578 </desc>
5579 </param>
5580 </method>
5581
5582 <method name="setGuestProperty">
5583 <desc>
5584 Sets, changes or deletes an entry in the machine's guest property
5585 store.
5586
5587 <result name="E_ACCESSDENIED">
5588 Property cannot be changed.
5589 </result>
5590 <result name="E_INVALIDARG">
5591 Invalid @a flags.
5592 </result>
5593 <result name="VBOX_E_INVALID_VM_STATE">
5594 Virtual machine is not mutable or session not open.
5595 </result>
5596 <result name="VBOX_E_INVALID_OBJECT_STATE">
5597 Cannot set transient property when machine not running.
5598 </result>
5599
5600 </desc>
5601 <param name="property" type="wstring" dir="in">
5602 <desc>
5603 The name of the property to set, change or delete.
5604 </desc>
5605 </param>
5606 <param name="value" type="wstring" dir="in">
5607 <desc>
5608 The new value of the property to set, change or delete. If the
5609 property does not yet exist and value is non-empty, it will be
5610 created. If the value is @c null or empty, the property will be
5611 deleted if it exists.
5612 </desc>
5613 </param>
5614 <param name="flags" type="wstring" dir="in">
5615 <desc>
5616 Additional property parameters, passed as a comma-separated list of
5617 "name=value" type entries.
5618 </desc>
5619 </param>
5620 </method>
5621
5622 <method name="setGuestPropertyValue">
5623 <desc>
5624 Sets, changes or deletes a value in the machine's guest property
5625 store. The flags field will be left unchanged or created empty for a
5626 new property.
5627
5628 <result name="E_ACCESSDENIED">
5629 Property cannot be changed.
5630 </result>
5631 <result name="VBOX_E_INVALID_VM_STATE">
5632 Virtual machine is not mutable or session not open.
5633 </result>
5634 <result name="VBOX_E_INVALID_OBJECT_STATE">
5635 Cannot set transient property when machine not running.
5636 </result>
5637 </desc>
5638
5639 <param name="property" type="wstring" dir="in">
5640 <desc>
5641 The name of the property to set, change or delete.
5642 </desc>
5643 </param>
5644 <param name="value" type="wstring" dir="in">
5645 <desc>
5646 The new value of the property to set, change or delete. If the
5647 property does not yet exist and value is non-empty, it will be
5648 created. If the value is @c null or empty, the property will be
5649 deleted if it exists.
5650 </desc>
5651 </param>
5652 </method>
5653
5654 <method name="enumerateGuestProperties">
5655 <desc>
5656 Return a list of the guest properties matching a set of patterns along
5657 with their values, time stamps and flags.
5658 </desc>
5659 <param name="patterns" type="wstring" dir="in">
5660 <desc>
5661 The patterns to match the properties against, separated by '|'
5662 characters. If this is empty or @c null, all properties will match.
5663 </desc>
5664 </param>
5665 <param name="name" type="wstring" dir="out" safearray="yes">
5666 <desc>
5667 The names of the properties returned.
5668 </desc>
5669 </param>
5670 <param name="value" type="wstring" dir="out" safearray="yes">
5671 <desc>
5672 The values of the properties returned. The array entries match the
5673 corresponding entries in the @a name array.
5674 </desc>
5675 </param>
5676 <param name="timestamp" type="long long" dir="out" safearray="yes">
5677 <desc>
5678 The time stamps of the properties returned. The array entries match
5679 the corresponding entries in the @a name array.
5680 </desc>
5681 </param>
5682 <param name="flags" type="wstring" dir="out" safearray="yes">
5683 <desc>
5684 The flags of the properties returned. The array entries match the
5685 corresponding entries in the @a name array.
5686 </desc>
5687 </param>
5688 </method>
5689
5690 <method name="querySavedGuestSize">
5691 <desc>
5692 Returns the guest dimensions from the saved state.
5693 </desc>
5694 <param name="screenId" type="unsigned long" dir="in">
5695 <desc>
5696 Saved guest screen to query info from.
5697 </desc>
5698 </param>
5699 <param name="width" type="unsigned long" dir="out">
5700 <desc>
5701 Guest width at the time of the saved state was taken.
5702 </desc>
5703 </param>
5704 <param name="height" type="unsigned long" dir="out">
5705 <desc>
5706 Guest height at the time of the saved state was taken.
5707 </desc>
5708 </param>
5709 </method>
5710
5711 <method name="querySavedThumbnailSize">
5712 <desc>
5713 Returns size in bytes and dimensions in pixels of a saved thumbnail bitmap from saved state.
5714 </desc>
5715 <param name="screenId" type="unsigned long" dir="in">
5716 <desc>
5717 Saved guest screen to query info from.
5718 </desc>
5719 </param>
5720 <param name="size" type="unsigned long" dir="out">
5721 <desc>
5722 Size of buffer required to store the bitmap.
5723 </desc>
5724 </param>
5725 <param name="width" type="unsigned long" dir="out">
5726 <desc>
5727 Bitmap width.
5728 </desc>
5729 </param>
5730 <param name="height" type="unsigned long" dir="out">
5731 <desc>
5732 Bitmap height.
5733 </desc>
5734 </param>
5735 </method>
5736
5737 <method name="readSavedThumbnailToArray">
5738 <desc>
5739 Thumbnail is retrieved to an array of bytes in uncompressed 32-bit BGRA or RGBA format.
5740 </desc>
5741 <param name="screenId" type="unsigned long" dir="in">
5742 <desc>
5743 Saved guest screen to read from.
5744 </desc>
5745 </param>
5746 <param name="BGR" type="boolean" dir="in">
5747 <desc>
5748 How to order bytes in the pixel. A pixel consists of 4 bytes. If this parameter is true, then
5749 bytes order is: B, G, R, 0xFF. If this parameter is false, then bytes order is: R, G, B, 0xFF.
5750 </desc>
5751 </param>
5752 <param name="width" type="unsigned long" dir="out">
5753 <desc>
5754 Bitmap width.
5755 </desc>
5756 </param>
5757 <param name="height" type="unsigned long" dir="out">
5758 <desc>
5759 Bitmap height.
5760 </desc>
5761 </param>
5762 <param name="data" type="octet" safearray="yes" dir="return">
5763 <desc>
5764 Array with resulting bitmap data.
5765 </desc>
5766 </param>
5767 </method>
5768
5769 <method name="readSavedThumbnailPNGToArray">
5770 <desc>
5771 Thumbnail in PNG format is retrieved to an array of bytes.
5772 </desc>
5773 <param name="screenId" type="unsigned long" dir="in">
5774 <desc>
5775 Saved guest screen to read from.
5776 </desc>
5777 </param>
5778 <param name="width" type="unsigned long" dir="out">
5779 <desc>
5780 Image width.
5781 </desc>
5782 </param>
5783 <param name="height" type="unsigned long" dir="out">
5784 <desc>
5785 Image height.
5786 </desc>
5787 </param>
5788 <param name="data" type="octet" dir="return" safearray="yes">
5789 <desc>
5790 Array with resulting PNG data.
5791 </desc>
5792 </param>
5793 </method>
5794
5795 <method name="querySavedScreenshotPNGSize">
5796 <desc>
5797 Returns size in bytes and dimensions of a saved PNG image of screenshot from saved state.
5798 </desc>
5799 <param name="screenId" type="unsigned long" dir="in">
5800 <desc>
5801 Saved guest screen to query info from.
5802 </desc>
5803 </param>
5804 <param name="size" type="unsigned long" dir="out">
5805 <desc>
5806 Size of buffer required to store the PNG binary data.
5807 </desc>
5808 </param>
5809 <param name="width" type="unsigned long" dir="out">
5810 <desc>
5811 Image width.
5812 </desc>
5813 </param>
5814 <param name="height" type="unsigned long" dir="out">
5815 <desc>
5816 Image height.
5817 </desc>
5818 </param>
5819 </method>
5820
5821 <method name="readSavedScreenshotPNGToArray">
5822 <desc>
5823 Screenshot in PNG format is retrieved to an array of bytes.
5824 </desc>
5825 <param name="screenId" type="unsigned long" dir="in">
5826 <desc>
5827 Saved guest screen to read from.
5828 </desc>
5829 </param>
5830 <param name="width" type="unsigned long" dir="out">
5831 <desc>
5832 Image width.
5833 </desc>
5834 </param>
5835 <param name="height" type="unsigned long" dir="out">
5836 <desc>
5837 Image height.
5838 </desc>
5839 </param>
5840 <param name="data" type="octet" dir="return" safearray="yes">
5841 <desc>
5842 Array with resulting PNG data.
5843 </desc>
5844 </param>
5845 </method>
5846
5847 <method name="hotPlugCPU">
5848 <desc>
5849 Plugs a CPU into the machine.
5850 </desc>
5851 <param name="cpu" type="unsigned long" dir="in">
5852 <desc>
5853 The CPU id to insert.
5854 </desc>
5855 </param>
5856 </method>
5857
5858 <method name="hotUnplugCPU">
5859 <desc>
5860 Removes a CPU from the machine.
5861 </desc>
5862 <param name="cpu" type="unsigned long" dir="in">
5863 <desc>
5864 The CPU id to remove.
5865 </desc>
5866 </param>
5867 </method>
5868
5869 <method name="getCPUStatus">
5870 <desc>
5871 Returns the current status of the given CPU.
5872 </desc>
5873 <param name="cpu" type="unsigned long" dir="in">
5874 <desc>
5875 The CPU id to check for.
5876 </desc>
5877 </param>
5878 <param name="attached" type="boolean" dir="return">
5879 <desc>
5880 Status of the CPU.
5881 </desc>
5882 </param>
5883 </method>
5884
5885 <method name="queryLogFilename">
5886 <desc>
5887 Queries for the VM log file name of an given index. Returns an empty
5888 string if a log file with that index doesn't exists.
5889 </desc>
5890 <param name="idx" type="unsigned long" dir="in">
5891 <desc>
5892 Which log file name to query. 0=current log file.
5893 </desc>
5894 </param>
5895 <param name="filename" type="wstring" dir="return">
5896 <desc>
5897 On return the full path to the log file or an empty string on error.
5898 </desc>
5899 </param>
5900 </method>
5901
5902 <method name="readLog">
5903 <desc>
5904 Reads the VM log file. The chunk size is limited, so even if you
5905 ask for a big piece there might be less data returned.
5906 </desc>
5907 <param name="idx" type="unsigned long" dir="in">
5908 <desc>
5909 Which log file to read. 0=current log file.
5910 </desc>
5911 </param>
5912 <param name="offset" type="long long" dir="in">
5913 <desc>
5914 Offset in the log file.
5915 </desc>
5916 </param>
5917 <param name="size" type="long long" dir="in">
5918 <desc>
5919 Chunk size to read in the log file.
5920 </desc>
5921 </param>
5922 <param name="data" type="octet" dir="return" safearray="yes">
5923 <desc>
5924 Data read from the log file. A data size of 0 means end of file
5925 if the requested chunk size was not 0. This is the unprocessed
5926 file data, i.e. the line ending style depends on the platform of
5927 the system the server is running on.
5928 </desc>
5929 </param>
5930 </method>
5931
5932 <method name="cloneTo">
5933 <desc>
5934 Creates a clone of this machine, either as a full clone (which means
5935 creating independent copies of the hard disk media), or as a linked
5936 clone (which uses its own differencing media, sharing the parent media
5937 with the source machine).
5938
5939 The target machine object must have been created previously with
5940 <link to="IVirtualBox::createMachine"/>, and all the settings will be
5941 transferred except the VM name, hardware UUID and the network card
5942 MAC addresses. These can be set after the clone operation if required.
5943 The operation is performed asynchronously, so the machine object will
5944 be not be usable until the @a progress object signals completion. If
5945 any step of the machine clone operation fails this will abort the
5946 operation. The result will be a machine which is not a complete clone.
5947 It is the responsibility of the caller to delete this incomplete
5948 machine if desired with <link to="#unregister"/> and/or
5949 <link to="#delete"/>.
5950
5951 <result name="E_INVALIDARG">
5952 @a target is @c null.
5953 </result>
5954 </desc>
5955
5956 <param name="target" type="IMachine" dir="in">
5957 <desc>Target machine object.</desc>
5958 </param>
5959 <param name="fullClone" type="boolean" dir="in">
5960 <desc>Selects whether a full or linked clone is created.</desc>
5961 </param>
5962 <param name="progress" type="IProgress" dir="return">
5963 <desc>Progress object to track the operation completion.</desc>
5964 </param>
5965 </method>
5966
5967 </interface>
5968
5969 <!--
5970 // IConsole
5971 /////////////////////////////////////////////////////////////////////////
5972 -->
5973
5974 <interface
5975 name="IVRDEServerInfo" extends="$unknown"
5976 uuid="714434a1-58c3-4aab-9049-7652c5df113b"
5977 wsmap="struct"
5978 >
5979 <desc>
5980 Contains information about the remote desktop (VRDE) server capabilities and status.
5981 This is used in the <link to="IConsole::VRDEServerInfo" /> attribute.
5982 </desc>
5983
5984 <attribute name="active" type="boolean" readonly="yes">
5985 <desc>
5986 Whether the remote desktop connection is active.
5987 </desc>
5988 </attribute>
5989
5990 <attribute name="port" type="long" readonly="yes">
5991 <desc>
5992 VRDE server port number. If this property is equal to <tt>0</tt>, then
5993 the VRDE server failed to start, usually because there are no free IP
5994 ports to bind to. If this property is equal to <tt>-1</tt>, then the VRDE
5995 server has not yet been started.
5996 </desc>
5997 </attribute>
5998
5999 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
6000 <desc>
6001 How many times a client connected.
6002 </desc>
6003 </attribute>
6004
6005 <attribute name="beginTime" type="long long" readonly="yes">
6006 <desc>
6007 When the last connection was established, in milliseconds since 1970-01-01 UTC.
6008 </desc>
6009 </attribute>
6010
6011 <attribute name="endTime" type="long long" readonly="yes">
6012 <desc>
6013 When the last connection was terminated or the current time, if
6014 connection is still active, in milliseconds since 1970-01-01 UTC.
6015 </desc>
6016 </attribute>
6017
6018 <attribute name="bytesSent" type="long long" readonly="yes">
6019 <desc>
6020 How many bytes were sent in last or current, if still active, connection.
6021 </desc>
6022 </attribute>
6023
6024 <attribute name="bytesSentTotal" type="long long" readonly="yes">
6025 <desc>
6026 How many bytes were sent in all connections.
6027 </desc>
6028 </attribute>
6029
6030 <attribute name="bytesReceived" type="long long" readonly="yes">
6031 <desc>
6032 How many bytes were received in last or current, if still active, connection.
6033 </desc>
6034 </attribute>
6035
6036 <attribute name="bytesReceivedTotal" type="long long" readonly="yes">
6037 <desc>
6038 How many bytes were received in all connections.
6039 </desc>
6040 </attribute>
6041
6042 <attribute name="user" type="wstring" readonly="yes">
6043 <desc>
6044 Login user name supplied by the client.
6045 </desc>
6046 </attribute>
6047
6048 <attribute name="domain" type="wstring" readonly="yes">
6049 <desc>
6050 Login domain name supplied by the client.
6051 </desc>
6052 </attribute>
6053
6054 <attribute name="clientName" type="wstring" readonly="yes">
6055 <desc>
6056 The client name supplied by the client.
6057 </desc>
6058 </attribute>
6059
6060 <attribute name="clientIP" type="wstring" readonly="yes">
6061 <desc>
6062 The IP address of the client.
6063 </desc>
6064 </attribute>
6065
6066 <attribute name="clientVersion" type="unsigned long" readonly="yes">
6067 <desc>
6068 The client software version number.
6069 </desc>
6070 </attribute>
6071
6072 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
6073 <desc>
6074 Public key exchange method used when connection was established.
6075 Values: 0 - RDP4 public key exchange scheme.
6076 1 - X509 certificates were sent to client.
6077 </desc>
6078 </attribute>
6079
6080 </interface>
6081
6082 <interface
6083 name="IConsole" extends="$unknown"
6084 uuid="515e8e8d-f932-4d8e-9f32-79a52aead882"
6085 wsmap="managed"
6086 >
6087 <desc>
6088 The IConsole interface represents an interface to control virtual
6089 machine execution.
6090
6091 A console object gets created when a machine has been locked for a
6092 particular session (client process) using <link to="IMachine::lockMachine" />
6093 or <link to="IMachine::launchVMProcess"/>. The console object can
6094 then be found in the session's <link to="ISession::console" /> attribute.
6095
6096 Methods of the IConsole interface allow the caller to query the current
6097 virtual machine execution state, pause the machine or power it down, save
6098 the machine state or take a snapshot, attach and detach removable media
6099 and so on.
6100
6101 <see>ISession</see>
6102 </desc>
6103
6104 <attribute name="machine" type="IMachine" readonly="yes">
6105 <desc>
6106 Machine object for this console session.
6107 <note>
6108 This is a convenience property, it has the same value as
6109 <link to="ISession::machine"/> of the corresponding session
6110 object.
6111 </note>
6112 </desc>
6113 </attribute>
6114
6115 <attribute name="state" type="MachineState" readonly="yes">
6116 <desc>
6117 Current execution state of the machine.
6118 <note>
6119 This property always returns the same value as the corresponding
6120 property of the IMachine object for this console session.
6121 For the process that owns (executes) the VM, this is the
6122 preferable way of querying the VM state, because no IPC
6123 calls are made.
6124 </note>
6125 </desc>
6126 </attribute>
6127
6128 <attribute name="guest" type="IGuest" readonly="yes">
6129 <desc>Guest object.</desc>
6130 </attribute>
6131
6132 <attribute name="keyboard" type="IKeyboard" readonly="yes">
6133 <desc>
6134 Virtual keyboard object.
6135 <note>
6136 If the machine is not running, any attempt to use
6137 the returned object will result in an error.
6138 </note>
6139 </desc>
6140 </attribute>
6141
6142 <attribute name="mouse" type="IMouse" readonly="yes">
6143 <desc>
6144 Virtual mouse object.
6145 <note>
6146 If the machine is not running, any attempt to use
6147 the returned object will result in an error.
6148 </note>
6149 </desc>
6150 </attribute>
6151
6152 <attribute name="display" type="IDisplay" readonly="yes">
6153 <desc>Virtual display object.
6154 <note>
6155 If the machine is not running, any attempt to use
6156 the returned object will result in an error.
6157 </note>
6158 </desc>
6159 </attribute>
6160
6161 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
6162 <desc>Debugging interface.</desc>
6163 </attribute>
6164
6165 <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
6166 <desc>
6167 Collection of USB devices currently attached to the virtual
6168 USB controller.
6169 <note>
6170 The collection is empty if the machine is not running.
6171 </note>
6172 </desc>
6173 </attribute>
6174
6175 <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
6176 <desc>
6177 List of USB devices currently attached to the remote VRDE client.
6178 Once a new device is physically attached to the remote host computer,
6179 it appears in this list and remains there until detached.
6180 </desc>
6181 </attribute>
6182
6183 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
6184 <desc>
6185 Collection of shared folders for the current session. These folders
6186 are called transient shared folders because they are available to the
6187 guest OS running inside the associated virtual machine only for the
6188 duration of the session (as opposed to
6189 <link to="IMachine::sharedFolders"/> which represent permanent shared
6190 folders). When the session is closed (e.g. the machine is powered down),
6191 these folders are automatically discarded.
6192
6193 New shared folders are added to the collection using
6194 <link to="#createSharedFolder"/>. Existing shared folders can be
6195 removed using <link to="#removeSharedFolder"/>.
6196 </desc>
6197 </attribute>
6198
6199 <attribute name="VRDEServerInfo" type="IVRDEServerInfo" readonly="yes">
6200 <desc>
6201 Interface that provides information on Remote Desktop Extension (VRDE) connection.
6202 </desc>
6203 </attribute>
6204
6205 <attribute name="eventSource" type="IEventSource" readonly="yes">
6206 <desc>
6207 Event source for console events.
6208 </desc>
6209 </attribute>
6210
6211 <attribute name="attachedPciDevices" type="IPciDeviceAttachment" readonly="yes" safearray="yes">
6212 <desc>Array of PCI devices attached to this machine.</desc>
6213 </attribute>
6214
6215 <method name="powerUp">
6216 <desc>
6217 Starts the virtual machine execution using the current machine
6218 state (that is, its current execution state, current settings and
6219 current storage devices).
6220
6221 <note>
6222 This method is only useful for front-ends that want to actually
6223 execute virtual machines in their own process (like the VirtualBox
6224 or VBoxSDL front-ends). Unless you are intending to write such a
6225 front-end, do not call this method. If you simply want to
6226 start virtual machine execution using one of the existing front-ends
6227 (for example the VirtualBox GUI or headless server), use
6228 <link to="IMachine::launchVMProcess"/> instead; these
6229 front-ends will power up the machine automatically for you.
6230 </note>
6231
6232 If the machine is powered off or aborted, the execution will
6233 start from the beginning (as if the real hardware were just
6234 powered on).
6235
6236 If the machine is in the <link to="MachineState_Saved"/> state,
6237 it will continue its execution the point where the state has
6238 been saved.
6239
6240 If the machine <link to="IMachine::teleporterEnabled"/> property is
6241 enabled on the machine being powered up, the machine will wait for an
6242 incoming teleportation in the <link to="MachineState_TeleportingIn"/>
6243 state. The returned progress object will have at least three
6244 operations where the last three are defined as: (1) powering up and
6245 starting TCP server, (2) waiting for incoming teleportations, and
6246 (3) perform teleportation. These operations will be reflected as the
6247 last three operations of the progress objected returned by
6248 <link to="IMachine::launchVMProcess"/> as well.
6249
6250 <see>#saveState</see>
6251
6252 <result name="VBOX_E_INVALID_VM_STATE">
6253 Virtual machine already running.
6254 </result>
6255 <result name="VBOX_E_HOST_ERROR">
6256 Host interface does not exist or name not set.
6257 </result>
6258 <result name="VBOX_E_FILE_ERROR">
6259 Invalid saved state file.
6260 </result>
6261 </desc>
6262 <param name="progress" type="IProgress" dir="return">
6263 <desc>Progress object to track the operation completion.</desc>
6264 </param>
6265 </method>
6266
6267 <method name="powerUpPaused">
6268 <desc>
6269 Identical to powerUp except that the VM will enter the
6270 <link to="MachineState_Paused"/> state, instead of
6271 <link to="MachineState_Running"/>.
6272
6273 <see>#powerUp</see>
6274 <result name="VBOX_E_INVALID_VM_STATE">
6275 Virtual machine already running.
6276 </result>
6277 <result name="VBOX_E_HOST_ERROR">
6278 Host interface does not exist or name not set.
6279 </result>
6280 <result name="VBOX_E_FILE_ERROR">
6281 Invalid saved state file.
6282 </result>
6283 </desc>
6284 <param name="progress" type="IProgress" dir="return">
6285 <desc>Progress object to track the operation completion.</desc>
6286 </param>
6287 </method>
6288
6289 <method name="powerDown">
6290 <desc>
6291 Initiates the power down procedure to stop the virtual machine
6292 execution.
6293
6294 The completion of the power down procedure is tracked using the returned
6295 IProgress object. After the operation is complete, the machine will go
6296 to the PoweredOff state.
6297 <result name="VBOX_E_INVALID_VM_STATE">
6298 Virtual machine must be Running, Paused or Stuck to be powered down.
6299 </result>
6300 </desc>
6301 <param name="progress" type="IProgress" dir="return">
6302 <desc>Progress object to track the operation completion.</desc>
6303 </param>
6304 </method>
6305
6306 <method name="reset">
6307 <desc>Resets the virtual machine.
6308 <result name="VBOX_E_INVALID_VM_STATE">
6309 Virtual machine not in Running state.
6310 </result>
6311 <result name="VBOX_E_VM_ERROR">
6312 Virtual machine error in reset operation.
6313 </result>
6314 </desc>
6315 </method>
6316
6317 <method name="pause">
6318 <desc>Pauses the virtual machine execution.
6319 <result name="VBOX_E_INVALID_VM_STATE">
6320 Virtual machine not in Running state.
6321 </result>
6322 <result name="VBOX_E_VM_ERROR">
6323 Virtual machine error in suspend operation.
6324 </result>
6325 </desc>
6326 </method>
6327
6328 <method name="resume">
6329 <desc>Resumes the virtual machine execution.
6330 <result name="VBOX_E_INVALID_VM_STATE">
6331 Virtual machine not in Paused state.
6332 </result>
6333 <result name="VBOX_E_VM_ERROR">
6334 Virtual machine error in resume operation.
6335 </result>
6336 </desc>
6337 </method>
6338
6339 <method name="powerButton">
6340 <desc>Sends the ACPI power button event to the guest.
6341 <result name="VBOX_E_INVALID_VM_STATE">
6342 Virtual machine not in Running state.
6343 </result>
6344 <result name="VBOX_E_PDM_ERROR">
6345 Controlled power off failed.
6346 </result>
6347 </desc>
6348 </method>
6349
6350 <method name="sleepButton">
6351 <desc>Sends the ACPI sleep button event to the guest.
6352 <result name="VBOX_E_INVALID_VM_STATE">
6353 Virtual machine not in Running state.
6354 </result>
6355 <result name="VBOX_E_PDM_ERROR">
6356 Sending sleep button event failed.
6357 </result>
6358 </desc>
6359 </method>
6360
6361 <method name="getPowerButtonHandled">
6362 <desc>Checks if the last power button event was handled by guest.
6363 <result name="VBOX_E_PDM_ERROR">
6364 Checking if the event was handled by the guest OS failed.
6365 </result>
6366 </desc>
6367 <param name="handled" type="boolean" dir="return"/>
6368 </method>
6369
6370 <method name="getGuestEnteredACPIMode">
6371 <desc>Checks if the guest entered the ACPI mode G0 (working) or
6372 G1 (sleeping). If this method returns @c false, the guest will
6373 most likely not respond to external ACPI events.
6374 <result name="VBOX_E_INVALID_VM_STATE">
6375 Virtual machine not in Running state.
6376 </result>
6377 </desc>
6378 <param name="entered" type="boolean" dir="return"/>
6379 </method>
6380
6381 <method name="saveState">
6382 <desc>
6383 Saves the current execution state of a running virtual machine
6384 and stops its execution.
6385
6386 After this operation completes, the machine will go to the
6387 Saved state. Next time it is powered up, this state will
6388 be restored and the machine will continue its execution from
6389 the place where it was saved.
6390
6391 This operation differs from taking a snapshot to the effect
6392 that it doesn't create new differencing media. Also, once
6393 the machine is powered up from the state saved using this method,
6394 the saved state is deleted, so it will be impossible to return
6395 to this state later.
6396
6397 <note>
6398 On success, this method implicitly calls
6399 <link to="IMachine::saveSettings"/> to save all current machine
6400 settings (including runtime changes to the DVD medium, etc.).
6401 Together with the impossibility to change any VM settings when it is
6402 in the Saved state, this guarantees adequate hardware
6403 configuration of the machine when it is restored from the saved
6404 state file.
6405 </note>
6406
6407 <note>
6408 The machine must be in the Running or Paused state, otherwise
6409 the operation will fail.
6410 </note>
6411 <result name="VBOX_E_INVALID_VM_STATE">
6412 Virtual machine state neither Running nor Paused.
6413 </result>
6414 <result name="VBOX_E_FILE_ERROR">
6415 Failed to create directory for saved state file.
6416 </result>
6417
6418 <see><link to="#takeSnapshot"/></see>
6419 </desc>
6420 <param name="progress" type="IProgress" dir="return">
6421 <desc>Progress object to track the operation completion.</desc>
6422 </param>
6423 </method>
6424
6425 <method name="adoptSavedState">
6426 <desc>
6427 Associates the given saved state file to the virtual machine.
6428
6429 On success, the machine will go to the Saved state. Next time it is
6430 powered up, it will be restored from the adopted saved state and
6431 continue execution from the place where the saved state file was
6432 created.
6433
6434 The specified saved state file path may be absolute or relative to the
6435 folder the VM normally saves the state to (usually,
6436 <link to="IMachine::snapshotFolder"/>).
6437
6438 <note>
6439 It's a caller's responsibility to make sure the given saved state
6440 file is compatible with the settings of this virtual machine that
6441 represent its virtual hardware (memory size, storage disk configuration
6442 etc.). If there is a mismatch, the behavior of the virtual machine
6443 is undefined.
6444 </note>
6445 <result name="VBOX_E_INVALID_VM_STATE">
6446 Virtual machine state neither PoweredOff nor Aborted.
6447 </result>
6448 </desc>
6449 <param name="savedStateFile" type="wstring" dir="in">
6450 <desc>Path to the saved state file to adopt.</desc>
6451 </param>
6452 </method>
6453
6454 <method name="discardSavedState">
6455 <desc>
6456 Forcibly resets the machine to "Powered Off" state if it is
6457 currently in the "Saved" state (previously created by <link to="#saveState"/>).
6458 Next time the machine is powered up, a clean boot will occur.
6459 <note>
6460 This operation is equivalent to resetting or powering off
6461 the machine without doing a proper shutdown of the guest
6462 operating system; as with resetting a running phyiscal
6463 computer, it can can lead to data loss.
6464 </note>
6465 If @a fRemoveFile is @c true, the file in the machine directory
6466 into which the machine state was saved is also deleted. If
6467 this is @c false, then the state can be recovered and later
6468 re-inserted into a machine using <link to="#adoptSavedState" />.
6469 The location of the file can be found in the
6470 <link to="IMachine::stateFilePath" /> attribute.
6471 <result name="VBOX_E_INVALID_VM_STATE">
6472 Virtual machine not in state Saved.
6473 </result>
6474 </desc>
6475 <param name="fRemoveFile" type="boolean" dir="in" >
6476 <desc>Whether to also remove the saved state file.</desc>
6477 </param>
6478 </method>
6479
6480 <method name="getDeviceActivity">
6481 <desc>
6482 Gets the current activity type of a given device or device group.
6483 <result name="E_INVALIDARG">
6484 Invalid device type.
6485 </result>
6486 </desc>
6487 <param name="type" type="DeviceType" dir="in"/>
6488 <param name="activity" type="DeviceActivity" dir="return"/>
6489 </method>
6490
6491 <method name="attachUSBDevice">
6492 <desc>
6493 Attaches a host USB device with the given UUID to the
6494 USB controller of the virtual machine.
6495
6496 The device needs to be in one of the following states:
6497 <link to="USBDeviceState_Busy"/>,
6498 <link to="USBDeviceState_Available"/> or
6499 <link to="USBDeviceState_Held"/>,
6500 otherwise an error is immediately returned.
6501
6502 When the device state is
6503 <link to="USBDeviceState_Busy">Busy</link>, an error may also
6504 be returned if the host computer refuses to release it for some reason.
6505
6506 <see>IUSBController::deviceFilters, USBDeviceState</see>
6507 <result name="VBOX_E_INVALID_VM_STATE">
6508 Virtual machine state neither Running nor Paused.
6509 </result>
6510 <result name="VBOX_E_PDM_ERROR">
6511 Virtual machine does not have a USB controller.
6512 </result>
6513 </desc>
6514 <param name="id" type="uuid" mod="string" dir="in">
6515 <desc>UUID of the host USB device to attach.</desc>
6516 </param>
6517 </method>
6518
6519 <method name="detachUSBDevice">
6520 <desc>
6521 Detaches an USB device with the given UUID from the USB controller
6522 of the virtual machine.
6523
6524 After this method succeeds, the VirtualBox server re-initiates
6525 all USB filters as if the device were just physically attached
6526 to the host, but filters of this machine are ignored to avoid
6527 a possible automatic re-attachment.
6528
6529 <see>IUSBController::deviceFilters, USBDeviceState</see>
6530
6531 <result name="VBOX_E_PDM_ERROR">
6532 Virtual machine does not have a USB controller.
6533 </result>
6534 <result name="E_INVALIDARG">
6535 USB device not attached to this virtual machine.
6536 </result>
6537 </desc>
6538 <param name="id" type="uuid" mod="string" dir="in">
6539 <desc>UUID of the USB device to detach.</desc>
6540 </param>
6541 <param name="device" type="IUSBDevice" dir="return">
6542 <desc>Detached USB device.</desc>
6543 </param>
6544 </method>
6545
6546 <method name="findUSBDeviceByAddress">
6547 <desc>
6548 Searches for a USB device with the given host address.
6549
6550 <result name="VBOX_E_OBJECT_NOT_FOUND">
6551 Given @c name does not correspond to any USB device.
6552 </result>
6553
6554 <see>IUSBDevice::address</see>
6555 </desc>
6556 <param name="name" type="wstring" dir="in">
6557 <desc>
6558 Address of the USB device (as assigned by the host) to
6559 search for.
6560 </desc>
6561 </param>
6562 <param name="device" type="IUSBDevice" dir="return">
6563 <desc>Found USB device object.</desc>
6564 </param>
6565 </method>
6566
6567 <method name="findUSBDeviceById">
6568 <desc>
6569 Searches for a USB device with the given UUID.
6570
6571 <result name="VBOX_E_OBJECT_NOT_FOUND">
6572 Given @c id does not correspond to any USB device.
6573 </result>
6574
6575 <see>IUSBDevice::id</see>
6576 </desc>
6577 <param name="id" type="uuid" mod="string" dir="in">
6578 <desc>UUID of the USB device to search for.</desc>
6579 </param>
6580 <param name="device" type="IUSBDevice" dir="return">
6581 <desc>Found USB device object.</desc>
6582 </param>
6583 </method>
6584
6585 <method name="createSharedFolder">
6586 <desc>
6587 Creates a transient new shared folder by associating the given logical
6588 name with the given host path, adds it to the collection of shared
6589 folders and starts sharing it. Refer to the description of
6590 <link to="ISharedFolder"/> to read more about logical names.
6591
6592 <result name="VBOX_E_INVALID_VM_STATE">
6593 Virtual machine in Saved state or currently changing state.
6594 </result>
6595 <result name="VBOX_E_FILE_ERROR">
6596 Shared folder already exists or not accessible.
6597 </result>
6598 </desc>
6599 <param name="name" type="wstring" dir="in">
6600 <desc>Unique logical name of the shared folder.</desc>
6601 </param>
6602 <param name="hostPath" type="wstring" dir="in">
6603 <desc>Full path to the shared folder in the host file system.</desc>
6604 </param>
6605 <param name="writable" type="boolean" dir="in">
6606 <desc>Whether the share is writable or readonly</desc>
6607 </param>
6608 <param name="automount" type="boolean" dir="in">
6609 <desc>Whether the share gets automatically mounted by the guest
6610 or not.</desc>
6611 </param>
6612 </method>
6613
6614 <method name="removeSharedFolder">
6615 <desc>
6616 Removes a transient shared folder with the given name previously
6617 created by <link to="#createSharedFolder"/> from the collection of
6618 shared folders and stops sharing it.
6619 <result name="VBOX_E_INVALID_VM_STATE">
6620 Virtual machine in Saved state or currently changing state.
6621 </result>
6622 <result name="VBOX_E_FILE_ERROR">
6623 Shared folder does not exists.
6624 </result>
6625 </desc>
6626 <param name="name" type="wstring" dir="in">
6627 <desc>Logical name of the shared folder to remove.</desc>
6628 </param>
6629 </method>
6630
6631 <method name="takeSnapshot">
6632 <desc>
6633 Saves the current execution state
6634 and all settings of the machine and creates differencing images
6635 for all normal (non-independent) media.
6636 See <link to="ISnapshot" /> for an introduction to snapshots.
6637
6638 This method can be called for a PoweredOff, Saved (see
6639 <link to="#saveState"/>), Running or
6640 Paused virtual machine. When the machine is PoweredOff, an
6641 offline snapshot is created. When the machine is Running a live
6642 snapshot is created, and an online snapshot is is created when Paused.
6643
6644 The taken snapshot is always based on the
6645 <link to="IMachine::currentSnapshot">current snapshot</link>
6646 of the associated virtual machine and becomes a new current snapshot.
6647
6648 <note>
6649 This method implicitly calls <link to="IMachine::saveSettings"/> to
6650 save all current machine settings before taking an offline snapshot.
6651 </note>
6652
6653 <result name="VBOX_E_INVALID_VM_STATE">
6654 Virtual machine currently changing state.
6655 </result>
6656 </desc>
6657 <param name="name" type="wstring" dir="in">
6658 <desc>Short name for the snapshot.</desc>
6659 </param>
6660 <param name="description" type="wstring" dir="in">
6661 <desc>Optional description of the snapshot.</desc>
6662 </param>
6663 <param name="progress" type="IProgress" dir="return">
6664 <desc>Progress object to track the operation completion.</desc>
6665 </param>
6666 </method>
6667
6668 <method name="deleteSnapshot">
6669 <desc>
6670 Starts deleting the specified snapshot asynchronously.
6671 See <link to="ISnapshot" /> for an introduction to snapshots.
6672
6673 The execution state and settings of the associated machine stored in
6674 the snapshot will be deleted. The contents of all differencing media of
6675 this snapshot will be merged with the contents of their dependent child
6676 media to keep the medium chain valid (in other words, all changes
6677 represented by media being deleted will be propagated to their child
6678 medium). After that, this snapshot's differencing medium will be
6679 deleted. The parent of this snapshot will become a new parent for all
6680 its child snapshots.
6681
6682 If the deleted snapshot is the current one, its parent snapshot will
6683 become a new current snapshot. The current machine state is not directly
6684 affected in this case, except that currently attached differencing
6685 media based on media of the deleted snapshot will be also merged as
6686 described above.
6687
6688 If the deleted snapshot is the first or current snapshot, then the
6689 respective IMachine attributes will be adjusted. Deleting the current
6690 snapshot will also implicitly call <link to="IMachine::saveSettings"/>
6691 to make all current machine settings permanent.
6692
6693 Deleting a snapshot has the following preconditions:
6694
6695 <ul>
6696 <li>Child media of all normal media of the deleted snapshot
6697 must be accessible (see <link to="IMedium::state"/>) for this
6698 operation to succeed. In particular, this means that all virtual
6699 machines whose media are directly or indirectly based on the
6700 media of deleted snapshot must be powered off.</li>
6701
6702 <li>You cannot delete the snapshot if a medium attached to it has
6703 more than once child medium (differencing images) because otherwise
6704 merging would be impossible. This might be the case if there is
6705 more than one child snapshot or differencing images were created
6706 for other reason (e.g. implicitly because of multiple machine
6707 attachments).</li>
6708 </ul>
6709
6710
6711 The virtual machine's <link to="IMachine::state">state</link> is
6712 changed to "DeletingSnapshot", "DeletingSnapshotOnline" or
6713 "DeletingSnapshotPaused" while this operation is in progress.
6714
6715 <note>
6716 Merging medium contents can be very time and disk space
6717 consuming, if these media are big in size and have many
6718 children. However, if the snapshot being deleted is the last
6719 (head) snapshot on the branch, the operation will be rather
6720 quick.
6721 </note>
6722 <result name="VBOX_E_INVALID_VM_STATE">
6723 The running virtual machine prevents deleting this snapshot. This
6724 happens only in very specific situations, usually snapshots can be
6725 deleted without trouble while a VM is running. The error message
6726 text explains the reason for the failure.
6727 </result>
6728 </desc>
6729 <param name="id" type="uuid" mod="string" dir="in">
6730 <desc>UUID of the snapshot to delete.</desc>
6731 </param>
6732 <param name="progress" type="IProgress" dir="return">
6733 <desc>Progress object to track the operation completion.</desc>
6734 </param>
6735 </method>
6736
6737 <method name="restoreSnapshot">
6738 <desc>
6739 Starts resetting the machine's current state to the state contained
6740 in the given snapshot, asynchronously. All current settings of the
6741 machine will be reset and changes stored in differencing media
6742 will be lost.
6743 See <link to="ISnapshot" /> for an introduction to snapshots.
6744
6745 After this operation is successfully completed, new empty differencing
6746 media are created for all normal media of the machine.
6747
6748 If the given snapshot is an online snapshot, the machine will go to
6749 the <link to="MachineState_Saved"> saved state</link>, so that the
6750 next time it is powered on, the execution state will be restored
6751 from the state of the snapshot.
6752
6753 <note>
6754 The machine must not be running, otherwise the operation will fail.
6755 </note>
6756
6757 <note>
6758 If the machine state is <link to="MachineState_Saved">Saved</link>
6759 prior to this operation, the saved state file will be implicitly
6760 deleted (as if <link to="IConsole::discardSavedState"/> were
6761 called).
6762 </note>
6763
6764 <result name="VBOX_E_INVALID_VM_STATE">
6765 Virtual machine is running.
6766 </result>
6767 </desc>
6768 <param name="snapshot" type="ISnapshot" dir="in">
6769 <desc>The snapshot to restore the VM state from.</desc>
6770 </param>
6771 <param name="progress" type="IProgress" dir="return">
6772 <desc>Progress object to track the operation completion.</desc>
6773 </param>
6774 </method>
6775
6776 <method name="teleport">
6777 <desc>
6778 Teleport the VM to a different host machine or process.
6779
6780 TODO explain the details.
6781
6782 <result name="VBOX_E_INVALID_VM_STATE">
6783 Virtual machine not running or paused.
6784 </result>
6785 </desc>
6786 <param name="hostname" type="wstring" dir="in">
6787 <desc>The name or IP of the host to teleport to.</desc>
6788 </param>
6789 <param name="tcpport" type="unsigned long" dir="in">
6790 <desc>The TCP port to connect to (1..65535).</desc>
6791 </param>
6792 <param name="password" type="wstring" dir="in">
6793 <desc>The password.</desc>
6794 </param>
6795 <param name="maxDowntime" type="unsigned long" dir="in">
6796 <desc>
6797 The maximum allowed downtime given as milliseconds. 0 is not a valid
6798 value. Recommended value: 250 ms.
6799
6800 The higher the value is, the greater the chance for a successful
6801 teleportation. A small value may easily result in the teleportation
6802 process taking hours and eventually fail.
6803
6804 <note>
6805 The current implementation treats this a guideline, not as an
6806 absolute rule.
6807 </note>
6808 </desc>
6809 </param>
6810 <param name="progress" type="IProgress" dir="return">
6811 <desc>Progress object to track the operation completion.</desc>
6812 </param>
6813 </method>
6814
6815 </interface>
6816
6817 <!--
6818 // IHost
6819 /////////////////////////////////////////////////////////////////////////
6820 -->
6821
6822 <enum
6823 name="HostNetworkInterfaceMediumType"
6824 uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
6825 >
6826 <desc>
6827 Type of encapsulation. Ethernet encapsulation includes both wired and
6828 wireless Ethernet connections.
6829 <see>IHostNetworkInterface</see>
6830 </desc>
6831
6832 <const name="Unknown" value="0">
6833 <desc>
6834 The type of interface cannot be determined.
6835 </desc>
6836 </const>
6837 <const name="Ethernet" value="1">
6838 <desc>
6839 Ethernet frame encapsulation.
6840 </desc>
6841 </const>
6842 <const name="PPP" value="2">
6843 <desc>
6844 Point-to-point protocol encapsulation.
6845 </desc>
6846 </const>
6847 <const name="SLIP" value="3">
6848 <desc>
6849 Serial line IP encapsulation.
6850 </desc>
6851 </const>
6852 </enum>
6853
6854 <enum
6855 name="HostNetworkInterfaceStatus"
6856 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
6857 >
6858 <desc>
6859 Current status of the interface.
6860 <see>IHostNetworkInterface</see>
6861 </desc>
6862
6863 <const name="Unknown" value="0">
6864 <desc>
6865 The state of interface cannot be determined.
6866 </desc>
6867 </const>
6868 <const name="Up" value="1">
6869 <desc>
6870 The interface is fully operational.
6871 </desc>
6872 </const>
6873 <const name="Down" value="2">
6874 <desc>
6875 The interface is not functioning.
6876 </desc>
6877 </const>
6878 </enum>
6879
6880 <enum
6881 name="HostNetworkInterfaceType"
6882 uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
6883 >
6884 <desc>
6885 Network interface type.
6886 </desc>
6887 <const name="Bridged" value="1"/>
6888 <const name="HostOnly" value="2"/>
6889 </enum>
6890
6891 <interface
6892 name="IHostNetworkInterface" extends="$unknown"
6893 uuid="ce6fae58-7642-4102-b5db-c9005c2320a8"
6894 wsmap="managed"
6895 >
6896 <desc>
6897 Represents one of host's network interfaces. IP V6 address and network
6898 mask are strings of 32 hexdecimal digits grouped by four. Groups are
6899 separated by colons.
6900 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
6901 </desc>
6902 <attribute name="name" type="wstring" readonly="yes">
6903 <desc>Returns the host network interface name.</desc>
6904 </attribute>
6905
6906 <attribute name="id" type="uuid" mod="string" readonly="yes">
6907 <desc>Returns the interface UUID.</desc>
6908 </attribute>
6909
6910 <attribute name="networkName" type="wstring" readonly="yes">
6911 <desc>Returns the name of a virtual network the interface gets attached to.</desc>
6912 </attribute>
6913
6914 <attribute name="dhcpEnabled" type="boolean" readonly="yes">
6915 <desc>Specifies whether the DHCP is enabled for the interface.</desc>
6916 </attribute>
6917
6918 <attribute name="IPAddress" type="wstring" readonly="yes">
6919 <desc>Returns the IP V4 address of the interface.</desc>
6920 </attribute>
6921
6922 <attribute name="networkMask" type="wstring" readonly="yes">
6923 <desc>Returns the network mask of the interface.</desc>
6924 </attribute>
6925
6926 <attribute name="IPV6Supported" type="boolean" readonly="yes">
6927 <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
6928 </attribute>
6929
6930 <attribute name="IPV6Address" type="wstring" readonly="yes">
6931 <desc>Returns the IP V6 address of the interface.</desc>
6932 </attribute>
6933
6934 <attribute name="IPV6NetworkMaskPrefixLength" type="unsigned long" readonly="yes">
6935 <desc>Returns the length IP V6 network mask prefix of the interface.</desc>
6936 </attribute>
6937
6938 <attribute name="hardwareAddress" type="wstring" readonly="yes">
6939 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
6940 </attribute>
6941
6942 <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
6943 <desc>Type of protocol encapsulation used.</desc>
6944 </attribute>
6945
6946 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
6947 <desc>Status of the interface.</desc>
6948 </attribute>
6949
6950 <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
6951 <desc>specifies the host interface type.</desc>
6952 </attribute>
6953
6954 <method name="enableStaticIpConfig">
6955 <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
6956 <param name="IPAddress" type="wstring" dir="in">
6957 <desc>
6958 IP address.
6959 </desc>
6960 </param>
6961 <param name="networkMask" type="wstring" dir="in">
6962 <desc>
6963 network mask.
6964 </desc>
6965 </param>
6966 </method>
6967
6968 <method name="enableStaticIpConfigV6">
6969 <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
6970 <param name="IPV6Address" type="wstring" dir="in">
6971 <desc>
6972 IP address.
6973 </desc>
6974 </param>
6975 <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
6976 <desc>
6977 network mask.
6978 </desc>
6979 </param>
6980 </method>
6981
6982 <method name="enableDynamicIpConfig">
6983 <desc>enables the dynamic IP configuration.</desc>
6984 </method>
6985
6986 <method name="dhcpRediscover">
6987 <desc>refreshes the IP configuration for dhcp-enabled interface.</desc>
6988 </method>
6989
6990 </interface>
6991
6992 <interface
6993 name="IHost" extends="$unknown"
6994 uuid="dab4a2b8-c735-4f08-94fc-9bec84182e2f"
6995 wsmap="managed"
6996 >
6997 <desc>
6998 The IHost interface represents the physical machine that this VirtualBox
6999 installation runs on.
7000
7001 An object implementing this interface is returned by the
7002 <link to="IVirtualBox::host" /> attribute. This interface contains
7003 read-only information about the host's physical hardware (such as what
7004 processors and disks are available, what the host operating system is,
7005 and so on) and also allows for manipulating some of the host's hardware,
7006 such as global USB device filters and host interface networking.
7007
7008 </desc>
7009 <attribute name="DVDDrives" type="IMedium" readonly="yes" safearray="yes">
7010 <desc>List of DVD drives available on the host.</desc>
7011 </attribute>
7012
7013 <attribute name="floppyDrives" type="IMedium" readonly="yes" safearray="yes">
7014 <desc>List of floppy drives available on the host.</desc>
7015 </attribute>
7016
7017 <attribute name="USBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
7018 <desc>
7019 List of USB devices currently attached to the host.
7020 Once a new device is physically attached to the host computer,
7021 it appears in this list and remains there until detached.
7022
7023 <note>
7024 If USB functionality is not available in the given edition of
7025 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7026 </note>
7027 </desc>
7028 </attribute>
7029
7030 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
7031 <desc>
7032 List of USB device filters in action.
7033 When a new device is physically attached to the host computer,
7034 filters from this list are applied to it (in order they are stored
7035 in the list). The first matched filter will determine the
7036 <link to="IHostUSBDeviceFilter::action">action</link>
7037 performed on the device.
7038
7039 Unless the device is ignored by these filters, filters of all
7040 currently running virtual machines
7041 (<link to="IUSBController::deviceFilters"/>) are applied to it.
7042
7043 <note>
7044 If USB functionality is not available in the given edition of
7045 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7046 </note>
7047
7048 <see>IHostUSBDeviceFilter, USBDeviceState</see>
7049 </desc>
7050 </attribute>
7051
7052 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
7053 <desc>List of host network interfaces currently defined on the host.</desc>
7054 </attribute>
7055
7056 <attribute name="processorCount" type="unsigned long" readonly="yes">
7057 <desc>Number of (logical) CPUs installed in the host system.</desc>
7058 </attribute>
7059
7060 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
7061 <desc>Number of (logical) CPUs online in the host system.</desc>
7062 </attribute>
7063
7064 <attribute name="processorCoreCount" type="unsigned long" readonly="yes">
7065 <desc>Number of physical processor cores installed in the host system.</desc>
7066 </attribute>
7067
7068 <method name="getProcessorSpeed">
7069 <desc>Query the (approximate) maximum speed of a specified host CPU in
7070 Megahertz.
7071 </desc>
7072 <param name="cpuId" type="unsigned long" dir="in">
7073 <desc>
7074 Identifier of the CPU.
7075 </desc>
7076 </param>
7077 <param name="speed" type="unsigned long" dir="return">
7078 <desc>
7079 Speed value. 0 is returned if value is not known or @a cpuId is
7080 invalid.
7081 </desc>
7082 </param>
7083 </method>
7084
7085 <method name="getProcessorFeature">
7086 <desc>Query whether a CPU feature is supported or not.</desc>
7087 <param name="feature" type="ProcessorFeature" dir="in">
7088 <desc>
7089 CPU Feature identifier.
7090 </desc>
7091 </param>
7092 <param name="supported" type="boolean" dir="return">
7093 <desc>
7094 Feature is supported or not.
7095 </desc>
7096 </param>
7097 </method>
7098
7099 <method name="getProcessorDescription">
7100 <desc>Query the model string of a specified host CPU.
7101 </desc>
7102 <param name="cpuId" type="unsigned long" dir="in">
7103 <desc>
7104 Identifier of the CPU.
7105 <note>
7106 The current implementation might not necessarily return the
7107 description for this exact CPU.
7108 </note>
7109 </desc>
7110 </param>
7111 <param name="description" type="wstring" dir="return">
7112 <desc>
7113 Model string. An empty string is returned if value is not known or
7114 @a cpuId is invalid.
7115 </desc>
7116 </param>
7117 </method>
7118
7119 <method name="getProcessorCPUIDLeaf">
7120 <desc>
7121 Returns the CPU cpuid information for the specified leaf.
7122 </desc>
7123 <param name="cpuId" type="unsigned long" dir="in">
7124 <desc>
7125 Identifier of the CPU. The CPU most be online.
7126 <note>
7127 The current implementation might not necessarily return the
7128 description for this exact CPU.
7129 </note>
7130 </desc>
7131 </param>
7132 <param name="leaf" type="unsigned long" dir="in">
7133 <desc>
7134 CPUID leaf index (eax).
7135 </desc>
7136 </param>
7137 <param name="subLeaf" type="unsigned long" dir="in">
7138 <desc>
7139 CPUID leaf sub index (ecx). This currently only applies to cache
7140 information on Intel CPUs. Use 0 if retrieving values for
7141 <link to="IMachine::setCPUIDLeaf"/>.
7142 </desc>
7143 </param>
7144 <param name="valEax" type="unsigned long" dir="out">
7145 <desc>
7146 CPUID leaf value for register eax.
7147 </desc>
7148 </param>
7149 <param name="valEbx" type="unsigned long" dir="out">
7150 <desc>
7151 CPUID leaf value for register ebx.
7152 </desc>
7153 </param>
7154 <param name="valEcx" type="unsigned long" dir="out">
7155 <desc>
7156 CPUID leaf value for register ecx.
7157 </desc>
7158 </param>
7159 <param name="valEdx" type="unsigned long" dir="out">
7160 <desc>
7161 CPUID leaf value for register edx.
7162 </desc>
7163 </param>
7164 </method>
7165
7166 <attribute name="memorySize" type="unsigned long" readonly="yes">
7167 <desc>Amount of system memory in megabytes installed in the host system.</desc>
7168 </attribute>
7169
7170 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
7171 <desc>Available system memory in the host system.</desc>
7172 </attribute>
7173
7174 <attribute name="operatingSystem" type="wstring" readonly="yes">
7175 <desc>Name of the host system's operating system.</desc>
7176 </attribute>
7177
7178 <attribute name="OSVersion" type="wstring" readonly="yes">
7179 <desc>Host operating system's version string.</desc>
7180 </attribute>
7181
7182 <attribute name="UTCTime" type="long long" readonly="yes">
7183 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
7184 </attribute>
7185
7186 <attribute name="Acceleration3DAvailable" type="boolean" readonly="yes">
7187 <desc>Returns @c true when the host supports 3D hardware acceleration.</desc>
7188 </attribute>
7189
7190 <method name="createHostOnlyNetworkInterface">
7191 <desc>
7192 Creates a new adapter for Host Only Networking.
7193 <result name="E_INVALIDARG">
7194 Host network interface @a name already exists.
7195 </result>
7196 </desc>
7197 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
7198 <desc>
7199 Created host interface object.
7200 </desc>
7201 </param>
7202 <param name="progress" type="IProgress" dir="return">
7203 <desc>
7204 Progress object to track the operation completion.
7205 </desc>
7206 </param>
7207 </method>
7208
7209 <method name="removeHostOnlyNetworkInterface">
7210 <desc>
7211 Removes the given Host Only Networking interface.
7212 <result name="VBOX_E_OBJECT_NOT_FOUND">
7213 No host network interface matching @a id found.
7214 </result>
7215 </desc>
7216 <param name="id" type="uuid" mod="string" dir="in">
7217 <desc>
7218 Adapter GUID.
7219 </desc>
7220 </param>
7221 <param name="progress" type="IProgress" dir="return">
7222 <desc>
7223 Progress object to track the operation completion.
7224 </desc>
7225 </param>
7226 </method>
7227
7228 <method name="createUSBDeviceFilter">
7229 <desc>
7230 Creates a new USB device filter. All attributes except
7231 the filter name are set to empty (any match),
7232 <i>active</i> is @c false (the filter is not active).
7233
7234 The created filter can be added to the list of filters using
7235 <link to="#insertUSBDeviceFilter"/>.
7236
7237 <see>#USBDeviceFilters</see>
7238 </desc>
7239 <param name="name" type="wstring" dir="in">
7240 <desc>
7241 Filter name. See <link to="IUSBDeviceFilter::name"/> for more information.
7242 </desc>
7243 </param>
7244 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
7245 <desc>Created filter object.</desc>
7246 </param>
7247 </method>
7248
7249 <method name="insertUSBDeviceFilter">
7250 <desc>
7251 Inserts the given USB device to the specified position
7252 in the list of filters.
7253
7254 Positions are numbered starting from @c 0. If the specified
7255 position is equal to or greater than the number of elements in
7256 the list, the filter is added at the end of the collection.
7257
7258 <note>
7259 Duplicates are not allowed, so an attempt to insert a
7260 filter already in the list is an error.
7261 </note>
7262 <note>
7263 If USB functionality is not available in the given edition of
7264 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7265 </note>
7266
7267 <see>#USBDeviceFilters</see>
7268
7269 <result name="VBOX_E_INVALID_OBJECT_STATE">
7270 USB device filter is not created within this VirtualBox instance.
7271 </result>
7272 <result name="E_INVALIDARG">
7273 USB device filter already in list.
7274 </result>
7275
7276 </desc>
7277 <param name="position" type="unsigned long" dir="in">
7278 <desc>Position to insert the filter to.</desc>
7279 </param>
7280 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
7281 <desc>USB device filter to insert.</desc>
7282 </param>
7283 </method>
7284
7285 <method name="removeUSBDeviceFilter">
7286 <desc>
7287 Removes a USB device filter from the specified position in the
7288 list of filters.
7289
7290 Positions are numbered starting from @c 0. Specifying a
7291 position equal to or greater than the number of elements in
7292 the list will produce an error.
7293
7294 <note>
7295 If USB functionality is not available in the given edition of
7296 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7297 </note>
7298
7299 <see>#USBDeviceFilters</see>
7300
7301 <result name="E_INVALIDARG">
7302 USB device filter list empty or invalid @a position.
7303 </result>
7304
7305 </desc>
7306 <param name="position" type="unsigned long" dir="in">
7307 <desc>Position to remove the filter from.</desc>
7308 </param>
7309 </method>
7310
7311 <method name="findHostDVDDrive">
7312 <desc>
7313 Searches for a host DVD drive with the given @c name.
7314
7315 <result name="VBOX_E_OBJECT_NOT_FOUND">
7316 Given @c name does not correspond to any host drive.
7317 </result>
7318
7319 </desc>
7320 <param name="name" type="wstring" dir="in">
7321 <desc>Name of the host drive to search for</desc>
7322 </param>
7323 <param name="drive" type="IMedium" dir="return">
7324 <desc>Found host drive object</desc>
7325 </param>
7326 </method>
7327
7328 <method name="findHostFloppyDrive">
7329 <desc>
7330 Searches for a host floppy drive with the given @c name.
7331
7332 <result name="VBOX_E_OBJECT_NOT_FOUND">
7333 Given @c name does not correspond to any host floppy drive.
7334 </result>
7335
7336 </desc>
7337 <param name="name" type="wstring" dir="in">
7338 <desc>Name of the host floppy drive to search for</desc>
7339 </param>
7340 <param name="drive" type="IMedium" dir="return">
7341 <desc>Found host floppy drive object</desc>
7342 </param>
7343 </method>
7344
7345 <method name="findHostNetworkInterfaceByName">
7346 <desc>
7347 Searches through all host network interfaces for an interface with
7348 the given @c name.
7349 <note>
7350 The method returns an error if the given @c name does not
7351 correspond to any host network interface.
7352 </note>
7353 </desc>
7354 <param name="name" type="wstring" dir="in">
7355 <desc>Name of the host network interface to search for.</desc>
7356 </param>
7357 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
7358 <desc>Found host network interface object.</desc>
7359 </param>
7360 </method>
7361 <method name="findHostNetworkInterfaceById">
7362 <desc>
7363 Searches through all host network interfaces for an interface with
7364 the given GUID.
7365 <note>
7366 The method returns an error if the given GUID does not
7367 correspond to any host network interface.
7368 </note>
7369 </desc>
7370 <param name="id" type="uuid" mod="string" dir="in">
7371 <desc>GUID of the host network interface to search for.</desc>
7372 </param>
7373 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
7374 <desc>Found host network interface object.</desc>
7375 </param>
7376 </method>
7377 <method name="findHostNetworkInterfacesOfType">
7378 <desc>
7379 Searches through all host network interfaces and returns a list of interfaces of the specified type
7380 </desc>
7381 <param name="type" type="HostNetworkInterfaceType" dir="in">
7382 <desc>type of the host network interfaces to search for.</desc>
7383 </param>
7384 <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
7385 <desc>Found host network interface objects.</desc>
7386 </param>
7387 </method>
7388
7389 <method name="findUSBDeviceById">
7390 <desc>
7391 Searches for a USB device with the given UUID.
7392
7393 <result name="VBOX_E_OBJECT_NOT_FOUND">
7394 Given @c id does not correspond to any USB device.
7395 </result>
7396
7397 <see>IHostUSBDevice::id</see>
7398 </desc>
7399 <param name="id" type="uuid" mod="string" dir="in">
7400 <desc>UUID of the USB device to search for.</desc>
7401 </param>
7402 <param name="device" type="IHostUSBDevice" dir="return">
7403 <desc>Found USB device object.</desc>
7404 </param>
7405 </method>
7406
7407 <method name="findUSBDeviceByAddress">
7408 <desc>
7409 Searches for a USB device with the given host address.
7410
7411 <result name="VBOX_E_OBJECT_NOT_FOUND">
7412 Given @c name does not correspond to any USB device.
7413 </result>
7414
7415 <see>IHostUSBDevice::address</see>
7416 </desc>
7417 <param name="name" type="wstring" dir="in">
7418 <desc>
7419 Address of the USB device (as assigned by the host) to
7420 search for.
7421 </desc>
7422 </param>
7423 <param name="device" type="IHostUSBDevice" dir="return">
7424 <desc>Found USB device object.</desc>
7425 </param>
7426 </method>
7427
7428 <method name="generateMACAddress">
7429 <desc>
7430 Generates a valid Ethernet MAC address, 12 hexadecimal characters.
7431 </desc>
7432 <param name="address" type="wstring" dir="return">
7433 <desc>New Ethernet MAC address.</desc>
7434 </param>
7435 </method>
7436
7437 </interface>
7438
7439 <!--
7440 // ISystemProperties
7441 /////////////////////////////////////////////////////////////////////////
7442 -->
7443
7444 <interface
7445 name="ISystemProperties"
7446 extends="$unknown"
7447 uuid="2f89cdfe-2d10-43d4-b37f-61760f877f29"
7448 wsmap="managed"
7449 >
7450 <desc>
7451 The ISystemProperties interface represents global properties of the given
7452 VirtualBox installation.
7453
7454 These properties define limits and default values for various attributes
7455 and parameters. Most of the properties are read-only, but some can be
7456 changed by a user.
7457 </desc>
7458
7459 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
7460 <desc>Minimum guest system memory in Megabytes.</desc>
7461 </attribute>
7462
7463 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
7464 <desc>Maximum guest system memory in Megabytes.</desc>
7465 </attribute>
7466
7467 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
7468 <desc>Minimum guest video memory in Megabytes.</desc>
7469 </attribute>
7470
7471 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
7472 <desc>Maximum guest video memory in Megabytes.</desc>
7473 </attribute>
7474
7475 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
7476 <desc>Minimum CPU count.</desc>
7477 </attribute>
7478
7479 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
7480 <desc>Maximum CPU count.</desc>
7481 </attribute>
7482
7483 <attribute name="maxGuestMonitors" type="unsigned long" readonly="yes">
7484 <desc>Maximum of monitors which could be connected.</desc>
7485 </attribute>
7486
7487 <attribute name="infoVDSize" type="long long" readonly="yes">
7488 <desc>Maximum size of a virtual disk image in bytes. Informational value,
7489 does not reflect the limits of any virtual disk image format.</desc>
7490 </attribute>
7491
7492 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
7493 <desc>
7494 Maximum number of serial ports associated with every
7495 <link to="IMachine"/> instance.
7496 </desc>
7497 </attribute>
7498
7499 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
7500 <desc>
7501 Maximum number of parallel ports associated with every
7502 <link to="IMachine"/> instance.
7503 </desc>
7504 </attribute>
7505
7506 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
7507 <desc>
7508 Maximum device position in the boot order. This value corresponds
7509 to the total number of devices a machine can boot from, to make it
7510 possible to include all possible devices to the boot list.
7511 <see><link to="IMachine::setBootOrder"/></see>
7512 </desc>
7513 </attribute>
7514
7515 <attribute name="defaultMachineFolder" type="wstring">
7516 <desc>
7517 Full path to the default directory used to create new or open
7518 existing machines when a machine settings file name contains no
7519 path.
7520
7521 Starting with VirtualBox 4.0, by default, this attribute contains
7522 the full path of folder named "VirtualBox VMs" in the user's
7523 home directory, which depends on the host platform.
7524
7525 When setting this attribute, a full path must be specified.
7526 Setting this property to @c null or an empty string or the
7527 special value "Machines" (for compatibility reasons) will restore
7528 that default value.
7529
7530 If the folder specified herein does not exist, it will be created
7531 automatically as needed.
7532
7533 <see>
7534 <link to="IVirtualBox::createMachine"/>,
7535 <link to="IVirtualBox::openMachine"/>
7536 </see>
7537 </desc>
7538 </attribute>
7539
7540 <attribute name="mediumFormats" type="IMediumFormat" safearray="yes" readonly="yes">
7541 <desc>
7542 List of all medium storage formats supported by this VirtualBox
7543 installation.
7544
7545 Keep in mind that the medium format identifier
7546 (<link to="IMediumFormat::id"/>) used in other API calls like
7547 <link to="IVirtualBox::createHardDisk"/> to refer to a particular
7548 medium format is a case-insensitive string. This means that, for
7549 example, all of the following strings:
7550 <pre>
7551 "VDI"
7552 "vdi"
7553 "VdI"</pre>
7554 refer to the same medium format.
7555
7556 Note that the virtual medium framework is backend-based, therefore
7557 the list of supported formats depends on what backends are currently
7558 installed.
7559
7560 <see>
7561 <link to="IMediumFormat"/>,
7562 </see>
7563 </desc>
7564 </attribute>
7565
7566 <attribute name="defaultHardDiskFormat" type="wstring">
7567 <desc>
7568 Identifier of the default medium format used by VirtualBox.
7569
7570 The medium format set by this attribute is used by VirtualBox
7571 when the medium format was not specified explicitly. One example is
7572 <link to="IVirtualBox::createHardDisk"/> with the empty
7573 format argument. A more complex example is implicit creation of
7574 differencing media when taking a snapshot of a virtual machine:
7575 this operation will try to use a format of the parent medium first
7576 and if this format does not support differencing media the default
7577 format specified by this argument will be used.
7578
7579 The list of supported medium formats may be obtained by the
7580 <link to="#mediumFormats"/> call. Note that the default medium
7581 format must have a capability to create differencing media;
7582 otherwise operations that create media implicitly may fail
7583 unexpectedly.
7584
7585 The initial value of this property is <tt>"VDI"</tt> in the current
7586 version of the VirtualBox product, but may change in the future.
7587
7588 <note>
7589 Setting this property to @c null or empty string will restore the
7590 initial value.
7591 </note>
7592
7593 <see>
7594 <link to="#mediumFormats"/>,
7595 <link to="IMediumFormat::id"/>,
7596 <link to="IVirtualBox::createHardDisk"/>
7597 </see>
7598 </desc>
7599 </attribute>
7600
7601 <attribute name="freeDiskSpaceWarning" type="long long">
7602 <desc>Issue a warning if the free disk space is below (or in some disk
7603 intensive operation is expected to go below) the given size in
7604 bytes.</desc>
7605 </attribute>
7606
7607 <attribute name="freeDiskSpacePercentWarning" type="unsigned long">
7608 <desc>Issue a warning if the free disk space is below (or in some disk
7609 intensive operation is expected to go below) the given percentage.</desc>
7610 </attribute>
7611
7612 <attribute name="freeDiskSpaceError" type="long long">
7613 <desc>Issue an error if the free disk space is below (or in some disk
7614 intensive operation is expected to go below) the given size in
7615 bytes.</desc>
7616 </attribute>
7617
7618 <attribute name="freeDiskSpacePercentError" type="unsigned long">
7619 <desc>Issue an error if the free disk space is below (or in some disk
7620 intensive operation is expected to go below) the given percentage.</desc>
7621 </attribute>
7622
7623 <attribute name="VRDEAuthLibrary" type="wstring">
7624 <desc>
7625 Library that provides authentication for Remote Desktop clients. The library
7626 is used if a virtual machine's authentication type is set to "external"
7627 in the VM RemoteDisplay configuration.
7628
7629 The system library extension (".DLL" or ".so") must be omitted.
7630 A full path can be specified; if not, then the library must reside on the
7631 system's default library path.
7632
7633 The default value of this property is <tt>"VBoxAuth"</tt>. There is a library
7634 of that name in one of the default VirtualBox library directories.
7635
7636 For details about VirtualBox authentication libraries and how to implement
7637 them, please refer to the VirtualBox manual.
7638
7639 <note>
7640 Setting this property to @c null or empty string will restore the
7641 initial value.
7642 </note>
7643 </desc>
7644 </attribute>
7645
7646 <attribute name="webServiceAuthLibrary" type="wstring">
7647 <desc>
7648 Library that provides authentication for webservice clients. The library
7649 is used if a virtual machine's authentication type is set to "external"
7650 in the VM RemoteDisplay configuration and will be called from
7651 within the <link to="IWebsessionManager::logon" /> implementation.
7652
7653 As opposed to <link to="ISystemProperties::VRDEAuthLibrary" />,
7654 there is no per-VM setting for this, as the webservice is a global
7655 resource (if it is running). Only for this setting (for the webservice),
7656 setting this value to a literal <tt>"null"</tt> string disables authentication,
7657 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
7658 no matter what user name and password are supplied.
7659
7660 The initial value of this property is <tt>"VBoxAuth"</tt>,
7661 meaning that the webservice will use the same authentication
7662 library that is used by default for VRDE (again, see
7663 <link to="ISystemProperties::VRDEAuthLibrary" />).
7664 The format and calling convention of authentication libraries
7665 is the same for the webservice as it is for VRDE.
7666
7667 <note>
7668 Setting this property to @c null or empty string will restore the
7669 initial value.
7670 </note>
7671 </desc>
7672 </attribute>
7673
7674 <attribute name="defaultVRDEExtPack" type="wstring">
7675 <desc>
7676 The name of the extension pack providing the default VRDE.
7677
7678 This attribute is for choosing between multiple extension packs
7679 providing VRDE. If only one is installed, it will automatically be the
7680 default one. The attribute value can be empty if no VRDE extension
7681 pack is installed.
7682
7683 For details about VirtualBox Remote Desktop Extension and how to
7684 implement one, please refer to the VirtualBox SDK.
7685 </desc>
7686 </attribute>
7687
7688 <attribute name="LogHistoryCount" type="unsigned long">
7689 <desc>
7690 This value specifies how many old release log files are kept.
7691 </desc>
7692 </attribute>
7693
7694 <attribute name="defaultAudioDriver" type="AudioDriverType" readonly="yes">
7695 <desc>This value hold the default audio driver for the current
7696 system.</desc>
7697 </attribute>
7698
7699
7700 <method name="getMaxNetworkAdapters">
7701 <desc>
7702 Maximum total number of network adapters associated with every
7703 <link to="IMachine"/> instance.
7704 </desc>
7705
7706 <param name="chipset" type="ChipsetType" dir="in">
7707 <desc>The chipset type to get the value for.</desc>
7708 </param>
7709
7710
7711 <param name="maxNetworkAdapters" type="unsigned long" dir="return">
7712 <desc>The maximum total number of network adapters allowed.</desc>
7713 </param>
7714
7715 </method>
7716
7717 <method name="getMaxNetworkAdaptersOfType">
7718 <desc>
7719 Maximum number of network adapters of a given attachment type,
7720 associated with every <link to="IMachine"/> instance.
7721 </desc>
7722
7723 <param name="chipset" type="ChipsetType" dir="in">
7724 <desc>The chipset type to get the value for.</desc>
7725 </param>
7726
7727 <param name="type" type="NetworkAttachmentType" dir="in">
7728 <desc>Type of attachment.</desc>
7729 </param>
7730
7731 <param name="maxNetworkAdapters" type="unsigned long" dir="return">
7732 <desc>The maximum number of network adapters allowed for
7733 particular chipset and attachment type.</desc>
7734 </param>
7735
7736 </method>
7737
7738
7739 <method name="getMaxDevicesPerPortForStorageBus">
7740 <desc>Returns the maximum number of devices which can be attached to a port
7741 for the given storage bus.</desc>
7742
7743 <param name="bus" type="StorageBus" dir="in">
7744 <desc>The storage bus type to get the value for.</desc>
7745 </param>
7746
7747 <param name="maxDevicesPerPort" type="unsigned long" dir="return">
7748 <desc>The maximum number of devices which can be attached to the port for the given
7749 storage bus.</desc>
7750 </param>
7751 </method>
7752
7753 <method name="getMinPortCountForStorageBus">
7754 <desc>Returns the minimum number of ports the given storage bus supports.</desc>
7755
7756 <param name="bus" type="StorageBus" dir="in">
7757 <desc>The storage bus type to get the value for.</desc>
7758 </param>
7759
7760 <param name="minPortCount" type="unsigned long" dir="return">
7761 <desc>The minimum number of ports for the given storage bus.</desc>
7762 </param>
7763 </method>
7764
7765 <method name="getMaxPortCountForStorageBus">
7766 <desc>Returns the maximum number of ports the given storage bus supports.</desc>
7767
7768 <param name="bus" type="StorageBus" dir="in">
7769 <desc>The storage bus type to get the value for.</desc>
7770 </param>
7771
7772 <param name="maxPortCount" type="unsigned long" dir="return">
7773 <desc>The maximum number of ports for the given storage bus.</desc>
7774 </param>
7775 </method>
7776
7777 <method name="getMaxInstancesOfStorageBus">
7778 <desc>Returns the maximum number of storage bus instances which
7779 can be configured for each VM. This corresponds to the number of
7780 storage controllers one can have. Value may depend on chipset type
7781 used.</desc>
7782
7783 <param name="chipset" type="ChipsetType" dir="in">
7784 <desc>The chipset type to get the value for.</desc>
7785 </param>
7786
7787 <param name="bus" type="StorageBus" dir="in">
7788 <desc>The storage bus type to get the value for.</desc>
7789 </param>
7790
7791 <param name="maxInstances" type="unsigned long" dir="return">
7792 <desc>The maximum number of instances for the given storage bus.</desc>
7793 </param>
7794 </method>
7795
7796 <method name="getDeviceTypesForStorageBus">
7797 <desc>Returns list of all the supported device types
7798 (<link to="DeviceType"/>) for the given type of storage
7799 bus.</desc>
7800
7801 <param name="bus" type="StorageBus" dir="in">
7802 <desc>The storage bus type to get the value for.</desc>
7803 </param>
7804
7805 <param name="deviceTypes" type="DeviceType" safearray="yes" dir="return">
7806 <desc>The list of all supported device types for the given storage bus.</desc>
7807 </param>
7808 </method>
7809
7810 <method name="getDefaultIoCacheSettingForStorageController">
7811 <desc>Returns the default I/O cache setting for the
7812 given storage controller</desc>
7813
7814 <param name="controllerType" type="StorageControllerType" dir="in">
7815 <desc>The storage controller to the setting for.</desc>
7816 </param>
7817
7818 <param name="enabled" type="boolean" dir="return">
7819 <desc>Returned flag indicating the default value</desc>
7820 </param>
7821 </method>
7822 </interface>
7823
7824 <!--
7825 // IGuest
7826 /////////////////////////////////////////////////////////////////////////
7827 -->
7828
7829 <interface
7830 name="IGuestOSType" extends="$unknown"
7831 uuid="432c1546-1354-4abf-bf08-878a32a373f5"
7832 wsmap="struct"
7833 >
7834 <desc>
7835 </desc>
7836
7837 <attribute name="familyId" type="wstring" readonly="yes">
7838 <desc>Guest OS family identifier string.</desc>
7839 </attribute>
7840
7841 <attribute name="familyDescription" type="wstring" readonly="yes">
7842 <desc>Human readable description of the guest OS family.</desc>
7843 </attribute>
7844
7845 <attribute name="id" type="wstring" readonly="yes">
7846 <desc>Guest OS identifier string.</desc>
7847 </attribute>
7848
7849 <attribute name="description" type="wstring" readonly="yes">
7850 <desc>Human readable description of the guest OS.</desc>
7851 </attribute>
7852
7853 <attribute name="is64Bit" type="boolean" readonly="yes">
7854 <desc>Returns @c true if the given OS is 64-bit</desc>
7855 </attribute>
7856
7857 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
7858 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
7859 </attribute>
7860
7861 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
7862 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
7863 </attribute>
7864
7865 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
7866 <desc>Recommended RAM size in Megabytes.</desc>
7867 </attribute>
7868
7869 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
7870 <desc>Recommended video RAM size in Megabytes.</desc>
7871 </attribute>
7872
7873 <attribute name="recommendedHDD" type="long long" readonly="yes">
7874 <desc>Recommended hard disk size in bytes.</desc>
7875 </attribute>
7876
7877 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
7878 <desc>Returns recommended network adapter for this OS type.</desc>
7879 </attribute>
7880
7881 <attribute name="recommendedPae" type="boolean" readonly="yes">
7882 <desc>Returns @c true if using PAE is recommended for this OS type.</desc>
7883 </attribute>
7884
7885 <attribute name="recommendedDvdStorageController" type="StorageControllerType" readonly="yes">
7886 <desc>Recommended storage controller type for DVD/CD drives.</desc>
7887 </attribute>
7888
7889 <attribute name="recommendedDvdStorageBus" type="StorageBus" readonly="yes">
7890 <desc>Recommended storage bus type for DVD/CD drives.</desc>
7891 </attribute>
7892
7893 <attribute name="recommendedHdStorageController" type="StorageControllerType" readonly="yes">
7894 <desc>Recommended storage controller type for HD drives.</desc>
7895 </attribute>
7896
7897 <attribute name="recommendedHdStorageBus" type="StorageBus" readonly="yes">
7898 <desc>Recommended storage bus type for HD drives.</desc>
7899 </attribute>
7900
7901 <attribute name="recommendedFirmware" type="FirmwareType" readonly="yes">
7902 <desc>Recommended firmware type.</desc>
7903 </attribute>
7904
7905 <attribute name="recommendedUsbHid" type="boolean" readonly="yes">
7906 <desc>Returns @c true if using USB Human Interface Devices, such as keyboard and mouse recommended.</desc>
7907 </attribute>
7908
7909 <attribute name="recommendedHpet" type="boolean" readonly="yes">
7910 <desc>Returns @c true if using HPET is recommended for this OS type.</desc>
7911 </attribute>
7912
7913 <attribute name="recommendedUsbTablet" type="boolean" readonly="yes">
7914 <desc>Returns @c true if using a USB Tablet is recommended.</desc>
7915 </attribute>
7916
7917 <attribute name="recommendedRtcUseUtc" type="boolean" readonly="yes">
7918 <desc>Returns @c true if the RTC of this VM should be set to UTC</desc>
7919 </attribute>
7920
7921 <attribute name="recommendedChipset" type="ChipsetType" readonly="yes">
7922 <desc>Recommended chipset type.</desc>
7923 </attribute>
7924
7925 <attribute name="recommendedAudioController" type="AudioControllerType" readonly="yes">
7926 <desc>Recommended audio type.</desc>
7927 </attribute>
7928
7929 </interface>
7930
7931 <enum
7932 name="AdditionsFacilityType"
7933 uuid="98f7f957-89fb-49b6-a3b1-31e3285eb1d8"
7934 >
7935 <desc>
7936 Guest Additions facility IDs.
7937 </desc>
7938
7939 <const name="None" value="0">
7940 <desc>No/invalid facility.</desc>
7941 </const>
7942 <const name="VBoxGuestDriver" value="20">
7943 <desc>VirtualBox base driver (VBoxGuest).</desc>
7944 </const>
7945 <const name="VBoxService" value="100">
7946 <desc>VirtualBox system service (VBoxService).</desc>
7947 </const>
7948 <const name="VBoxTrayClient" value="101">
7949 <desc>VirtualBox desktop integration (VBoxTray on Windows, VBoxClient on non-Windows).</desc>
7950 </const>
7951 <const name="Seamless" value="1000">
7952 <desc>Seamless guest desktop integration.</desc>
7953 </const>
7954 <const name="Graphics" value="1100">
7955 <desc>Guest graphics mode. If not enabled, seamless rendering will not work, resize hints
7956 are not immediately acted on and guest display resizes are probably not initiated by
7957 the guest additions.
7958 </desc>
7959 </const>
7960 <const name="All" value="2147483646">
7961 <desc>All facilities selected.</desc>
7962 </const>
7963 </enum>
7964
7965 <enum
7966 name="AdditionsFacilityClass"
7967 uuid="446451b2-c88d-4e5d-84c9-91bc7f533f5f"
7968 >
7969 <desc>
7970 Guest Additions facility classes.
7971 </desc>
7972
7973 <const name="None" value="0">
7974 <desc>No/invalid class.</desc>
7975 </const>
7976 <const name="Driver" value="10">
7977 <desc>Driver.</desc>
7978 </const>
7979 <const name="Service" value="30">
7980 <desc>System service.</desc>
7981 </const>
7982 <const name="Program" value="50">
7983 <desc>Program.</desc>
7984 </const>
7985 <const name="Feature" value="100">
7986 <desc>Feature.</desc>
7987 </const>
7988 <const name="ThirdParty" value="999">
7989 <desc>Third party.</desc>
7990 </const>
7991 <const name="All" value="2147483646">
7992 <desc>All facility classes selected.</desc>
7993 </const>
7994 </enum>
7995
7996 <enum
7997 name="AdditionsFacilityStatus"
7998 uuid="ce06f9e1-394e-4fe9-9368-5a88c567dbde"
7999 >
8000 <desc>
8001 Guest Additions facility states.
8002 </desc>
8003
8004 <const name="Inactive" value="0">
8005 <desc>Facility is not active.</desc>
8006 </const>
8007 <const name="Paused" value="1">
8008 <desc>Facility has been paused.</desc>
8009 </const>
8010 <const name="PreInit" value="20">
8011 <desc>Facility is preparing to initialize.</desc>
8012 </const>
8013 <const name="Init" value="30">
8014 <desc>Facility is initializing.</desc>
8015 </const>
8016 <const name="Active" value="50">
8017 <desc>Facility is up and running.</desc>
8018 </const>
8019 <const name="Terminating" value="100">
8020 <desc>Facility is shutting down.</desc>
8021 </const>
8022 <const name="Terminated" value="101">
8023 <desc>Facility successfully shut down.</desc>
8024 </const>
8025 <const name="Failed" value="800">
8026 <desc>Facility failed to start.</desc>
8027 </const>
8028 <const name="Unknown" value="999">
8029 <desc>Facility status is unknown.</desc>
8030 </const>
8031 </enum>
8032
8033 <interface
8034 name="IAdditionsFacility" extends="$unknown"
8035 uuid="54992946-6af1-4e49-98ec-58b558b7291e"
8036 wsmap="struct"
8037 >
8038 <desc>
8039 Structure representing a Guest Additions facility.
8040 </desc>
8041
8042 <attribute name="classType" type="AdditionsFacilityClass" readonly="yes">
8043 <desc>The class this facility is part of.</desc>
8044 </attribute>
8045
8046 <attribute name="lastUpdated" type="long long" readonly="yes">
8047 <desc>
8048 Time stamp of the last status update,
8049 in milliseconds since 1970-01-01 UTC.
8050 </desc>
8051 </attribute>
8052
8053 <attribute name="name" type="wstring" readonly="yes">
8054 <desc>The facility's friendly name.</desc>
8055 </attribute>
8056
8057 <attribute name="status" type="AdditionsFacilityStatus" readonly="yes">
8058 <desc>The current status.</desc>
8059 </attribute>
8060
8061 <attribute name="type" type="AdditionsFacilityType" readonly="yes">
8062 <desc>The facility's type ID.</desc>
8063 </attribute>
8064 </interface>
8065
8066 <enum
8067 name="AdditionsRunLevelType"
8068 uuid="a25417ee-a9dd-4f5b-b0dc-377860087754"
8069 >
8070 <desc>
8071 Guest Additions run level type.
8072 </desc>
8073
8074 <const name="None" value="0">
8075 <desc>Guest Additions are not loaded.</desc>
8076 </const>
8077 <const name="System" value="1">
8078 <desc>Guest drivers are loaded.</desc>
8079 </const>
8080 <const name="Userland" value="2">
8081 <desc>Common components (such as application services) are loaded.</desc>
8082 </const>
8083 <const name="Desktop" value="3">
8084 <desc>Per-user desktop components are loaded.</desc>
8085 </const>
8086 </enum>
8087
8088 <enum
8089 name="AdditionsUpdateFlag"
8090 uuid="726a818d-18d6-4389-94e8-3e9e6826171a"
8091 >
8092 <desc>
8093 Guest Additions update flags.
8094 </desc>
8095
8096 <const name="None" value="0">
8097 <desc>No flag set.</desc>
8098 </const>
8099 <const name="WaitForUpdateStartOnly" value="1">
8100 <desc>Only wait for the update process being started and do not
8101 wait while peforming the actual update.</desc>
8102 </const>
8103 </enum>
8104
8105 <enum
8106 name="ExecuteProcessFlag"
8107 uuid="3258e8a5-ba0c-43d5-86b5-cf91405fddc0"
8108 >
8109 <desc>
8110 Guest process execution flags.
8111 </desc>
8112
8113 <const name="None" value="0">
8114 <desc>No flag set.</desc>
8115 </const>
8116 <const name="WaitForProcessStartOnly" value="1">
8117 <desc>Only use the specified timeout value to wait for starting the guest process - the guest
8118 process itself then uses an infinite timeout.</desc>
8119 </const>
8120 <const name="IgnoreOrphanedProcesses" value="2">
8121 <desc>Do not report an error when executed processes are still alive when VBoxService or the guest OS is shutting down.</desc>
8122 </const>
8123 <const name="Hidden" value="4">
8124 <desc>Don't show the started process according to the guest OS guidelines.</desc>
8125 </const>
8126 </enum>
8127
8128 <enum
8129 name="ExecuteProcessStatus"
8130 uuid="153768d9-d971-4098-8b5a-c5cb1ab9ea88"
8131 >
8132 <desc>
8133 Guest process execution status.
8134 </desc>
8135 <const name="Undefined" value="0">
8136 <desc>Process is in an undefined state.</desc>
8137 </const>
8138
8139 <const name="Started" value="1">
8140 <desc>Process has been started.</desc>
8141 </const>
8142 <const name="TerminatedNormally" value="2">
8143 <desc>Process terminated normally.</desc>
8144 </const>
8145 <const name="TerminatedSignal" value="3">
8146 <desc>Process terminated via signal.</desc>
8147 </const>
8148 <const name="TerminatedAbnormally" value="4">
8149 <desc>Process terminated abnormally.</desc>
8150 </const>
8151 <const name="TimedOutKilled" value="5">
8152 <desc>Process timed out and was killed.</desc>
8153 </const>
8154 <const name="TimedOutAbnormally" value="6">
8155 <desc>Process timed out and was not killed successfully.</desc>
8156 </const>
8157 <const name="Down" value="7">
8158 <desc>Service/OS is stopping, process was killed.</desc>
8159 </const>
8160 <const name="Error" value="8">
8161 <desc>Something went wrong (error code in flags).</desc>
8162 </const>
8163 </enum>
8164
8165 <enum
8166 name="ProcessInputFlag"
8167 uuid="5d38c1dd-2604-4ddf-92e5-0c0cdd3bdbd5"
8168 >
8169 <desc>
8170 Guest process input flags.
8171 </desc>
8172 <const name="None" value="0">
8173 <desc>No flag set.</desc>
8174 </const>
8175 <const name="EndOfFile" value="1">
8176 <desc>End of file (input) reached.</desc>
8177 </const>
8178 </enum>
8179
8180 <enum
8181 name="ProcessOutputFlag"
8182 uuid="9979e85a-52bb-40b7-870c-57115e27e0f1"
8183 >
8184 <desc>
8185 Guest process output flags for specifying which
8186 type of output to retrieve.
8187 </desc>
8188 <const name="None" value="0">
8189 <desc>No flags set. Get output from stdout.</desc>
8190 </const>
8191 <const name="StdErr" value="1">
8192 <desc>Get output from stderr.</desc>
8193 </const>
8194 </enum>
8195
8196 <enum
8197 name="CopyFileFlag"
8198 uuid="23f79fdf-738a-493d-b80b-42d607c9b916"
8199 >
8200 <desc>
8201 Host/Guest copy flags. At the moment none of these flags
8202 are implemented.
8203 </desc>
8204 <const name="None" value="0">
8205 <desc>No flag set.</desc>
8206 </const>
8207 <const name="Recursive" value="1">
8208 <desc>Copy directories recursively.</desc>
8209 </const>
8210 <const name="Update" value="2">
8211 <desc>Only copy when the source file is newer than the destination file or when the destination file is missing.</desc>
8212 </const>
8213 <const name="FollowLinks" value="4">
8214 <desc>Follow symbolic links.</desc>
8215 </const>
8216 </enum>
8217
8218 <enum
8219 name="DirectoryCreateFlag"
8220 uuid="bd721b0e-ced5-4f79-b368-249897c32a36"
8221 >
8222 <desc>
8223 Directory creation flags.
8224 </desc>
8225 <const name="None" value="0">
8226 <desc>No flag set.</desc>
8227 </const>
8228 <const name="Parents" value="1">
8229 <desc>No error if existing, make parent directories as needed.</desc>
8230 </const>
8231 </enum>
8232
8233 <enum
8234 name="DirectoryOpenFlag"
8235 uuid="fc8f6203-0072-4f34-bd08-0b35e50bf071"
8236 >
8237 <desc>
8238 Directory open flags.
8239 </desc>
8240 <const name="None" value="0">
8241 <desc>No flag set.</desc>
8242 </const>
8243 </enum>
8244
8245 <enum
8246 name="GuestDirEntryType"
8247 uuid="6d19d924-1b77-4fc8-b369-a3b2c85c8241"
8248 >
8249 <desc>
8250 Guest directory entry type.
8251 </desc>
8252 <const name="Unknown" value="0">
8253 <desc>Unknown.</desc>
8254 </const>
8255 <const name="Directory" value="4">
8256 <desc>Regular file.</desc>
8257 </const>
8258 <const name="File" value="10">
8259 <desc>Regular file.</desc>
8260 </const>
8261 <const name="Symlink" value="12">
8262 <desc>Symbolic link.</desc>
8263 </const>
8264 </enum>
8265
8266 <interface
8267 name="IGuestDirEntry" extends="$unknown"
8268 uuid="20a66efc-c2f6-4438-826f-38454c04369e"
8269 wsmap="struct"
8270 >
8271 <desc>
8272 Structure representing a directory entry on the guest OS.
8273 </desc>
8274 <attribute name="nodeId" type="long long" readonly="yes">
8275 <desc>The unique identifier (within the guest's file system) of this file system object.</desc>
8276 </attribute>
8277 <attribute name="name" type="wstring" readonly="yes">
8278 <desc>The filename.</desc>
8279 </attribute>
8280 <attribute name="type" type="GuestDirEntryType" readonly="yes">
8281 <desc>The entry type.</desc>
8282 </attribute>
8283 </interface>
8284
8285 <interface
8286 name="IGuest" extends="$unknown"
8287 uuid="44637074-a613-48cd-9b5d-77117f971529"
8288 wsmap="managed"
8289 >
8290 <desc>
8291 The IGuest interface represents information about the operating system
8292 running inside the virtual machine. Used in
8293 <link to="IConsole::guest"/>.
8294
8295 IGuest provides information about the guest operating system, whether
8296 Guest Additions are installed and other OS-specific virtual machine
8297 properties.
8298 </desc>
8299
8300 <attribute name="OSTypeId" type="wstring" readonly="yes">
8301 <desc>
8302 Identifier of the Guest OS type as reported by the Guest
8303 Additions.
8304 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
8305 an IGuestOSType object representing details about the given
8306 Guest OS type.
8307 <note>
8308 If Guest Additions are not installed, this value will be
8309 the same as <link to="IMachine::OSTypeId"/>.
8310 </note>
8311 </desc>
8312 </attribute>
8313
8314 <attribute name="additionsRunLevel" type="AdditionsRunLevelType" readonly="yes">
8315 <desc>
8316 Current run level of the Guest Additions.
8317 </desc>
8318 </attribute>
8319
8320 <attribute name="additionsVersion" type="wstring" readonly="yes">
8321 <desc>
8322 Version of the Guest Additions including the revision (3 decimal numbers
8323 separated by dots + revision number) installed on the guest or empty
8324 when the Additions are not installed.
8325 </desc>
8326 </attribute>
8327
8328 <attribute name="facilities" type="IAdditionsFacility" readonly="yes" safearray="yes">
8329 <desc>
8330 Array of current known facilities. Only returns facilities where a status is known,
8331 e.g. facilities with an unknown status will not be returned.
8332 </desc>
8333 </attribute>
8334
8335 <attribute name="memoryBalloonSize" type="unsigned long">
8336 <desc>Guest system memory balloon size in megabytes (transient property).</desc>
8337 </attribute>
8338
8339 <attribute name="statisticsUpdateInterval" type="unsigned long">
8340 <desc>Interval to update guest statistics in seconds.</desc>
8341 </attribute>
8342
8343 <method name="internalGetStatistics">
8344 <desc>
8345 Internal method; do not use as it might change at any time.
8346 </desc>
8347 <param name="cpuUser" type="unsigned long" dir="out">
8348 <desc>Percentage of processor time spent in user mode as seen by the guest.</desc>
8349 </param>
8350 <param name="cpuKernel" type="unsigned long" dir="out">
8351 <desc>Percentage of processor time spent in kernel mode as seen by the guest.</desc>
8352 </param>
8353 <param name="cpuIdle" type="unsigned long" dir="out">
8354 <desc>Percentage of processor time spent idling as seen by the guest.</desc>
8355 </param>
8356 <param name="memTotal" type="unsigned long" dir="out">
8357 <desc>Total amount of physical guest RAM.</desc>
8358 </param>
8359 <param name="memFree" type="unsigned long" dir="out">
8360 <desc>Free amount of physical guest RAM.</desc>
8361 </param>
8362 <param name="memBalloon" type="unsigned long" dir="out">
8363 <desc>Amount of ballooned physical guest RAM.</desc>
8364 </param>
8365 <param name="memShared" type="unsigned long" dir="out">
8366 <desc>Amount of shared physical guest RAM.</desc>
8367 </param>
8368 <param name="memCache" type="unsigned long" dir="out">
8369 <desc>Total amount of guest (disk) cache memory.</desc>
8370 </param>
8371 <param name="pagedTotal" type="unsigned long" dir="out">
8372 <desc>Total amount of space in the page file.</desc>
8373 </param>
8374 <param name="memAllocTotal" type="unsigned long" dir="out">
8375 <desc>Total amount of memory allocated by the hypervisor.</desc>
8376 </param>
8377 <param name="memFreeTotal" type="unsigned long" dir="out">
8378 <desc>Total amount of free memory available in the hypervisor.</desc>
8379 </param>
8380 <param name="memBalloonTotal" type="unsigned long" dir="out">
8381 <desc>Total amount of memory ballooned by the hypervisor.</desc>
8382 </param>
8383 <param name="memSharedTotal" type="unsigned long" dir="out">
8384 <desc>Total amount of shared memory in the hypervisor.</desc>
8385 </param>
8386 </method>
8387
8388 <method name="getFacilityStatus">
8389 <desc>
8390 Get the current status of a Guest Additions facility.
8391 </desc>
8392 <param name="facility" type="AdditionsFacilityType" dir="in">
8393 <desc>Facility to check status for.</desc>
8394 </param>
8395 <param name="timestamp" type="long long" dir="out">
8396 <desc>Timestamp (in ms) of last status update seen by the host.</desc>
8397 </param>
8398 <param name="status" type="AdditionsFacilityStatus" dir="return">
8399 <desc>The current (latest) facility status.</desc>
8400 </param>
8401 </method>
8402
8403 <method name="getAdditionsStatus">
8404 <desc>
8405 Retrieve the current status of a certain Guest Additions run level.
8406
8407 <result name="VBOX_E_NOT_SUPPORTED">
8408 Wrong status level specified.
8409 </result>
8410
8411 </desc>
8412 <param name="level" type="AdditionsRunLevelType" dir="in">
8413 <desc>Status level to check</desc>
8414 </param>
8415 <param name="active" type="boolean" dir="return">
8416 <desc>Flag whether the status level has been reached or not</desc>
8417 </param>
8418 </method>
8419
8420 <method name="setCredentials">
8421 <desc>
8422 Store login credentials that can be queried by guest operating
8423 systems with Additions installed. The credentials are transient
8424 to the session and the guest may also choose to erase them. Note
8425 that the caller cannot determine whether the guest operating system
8426 has queried or made use of the credentials.
8427
8428 <result name="VBOX_E_VM_ERROR">
8429 VMM device is not available.
8430 </result>
8431
8432 </desc>
8433 <param name="userName" type="wstring" dir="in">
8434 <desc>User name string, can be empty</desc>
8435 </param>
8436 <param name="password" type="wstring" dir="in">
8437 <desc>Password string, can be empty</desc>
8438 </param>
8439 <param name="domain" type="wstring" dir="in">
8440 <desc>Domain name (guest logon scheme specific), can be empty</desc>
8441 </param>
8442 <param name="allowInteractiveLogon" type="boolean" dir="in">
8443 <desc>
8444 Flag whether the guest should alternatively allow the user to
8445 interactively specify different credentials. This flag might
8446 not be supported by all versions of the Additions.
8447 </desc>
8448 </param>
8449 </method>
8450
8451 <method name="executeProcess">
8452 <desc>
8453 Executes an existing program inside the guest VM.
8454
8455 <result name="VBOX_E_IPRT_ERROR">
8456 Could not execute process.
8457 </result>
8458
8459 </desc>
8460 <param name="execName" type="wstring" dir="in">
8461 <desc>
8462 Full path name of the command to execute on the guest; the
8463 commands has to exists in the guest VM in order to be executed.
8464 </desc>
8465 </param>
8466 <param name="flags" type="unsigned long" dir="in">
8467 <desc>
8468 <link to="ExecuteProcessFlag"/> flags.
8469 </desc>
8470 </param>
8471 <param name="arguments" type="wstring" safearray="yes" dir="in">
8472 <desc>
8473 Array of arguments passed to the execution command.
8474 </desc>
8475 </param>
8476 <param name="environment" type="wstring" safearray="yes" dir="in">
8477 <desc>
8478 Environment variables that can be set while the command is being
8479 executed, in form of "NAME=VALUE"; one pair per entry. To unset a
8480 variable just set its name ("NAME") without a value.
8481 </desc>
8482 </param>
8483 <param name="userName" type="wstring" dir="in">
8484 <desc>
8485 User name under which the command will be executed; has to exist
8486 and have the appropriate rights to execute programs in the VM.
8487 </desc>
8488 </param>
8489 <param name="password" type="wstring" dir="in">
8490 <desc>
8491 Password of the user account specified.
8492 </desc>
8493 </param>
8494 <param name="timeoutMS" type="unsigned long" dir="in">
8495 <desc>
8496 The maximum timeout value (in msec) to wait for finished program
8497 execution. Pass 0 for an infinite timeout.
8498 </desc>
8499 </param>
8500 <param name="pid" type="unsigned long" dir="out">
8501 <desc>
8502 The PID (process ID) of the started command for later reference.
8503 </desc>
8504 </param>
8505 <param name="progress" type="IProgress" dir="return">
8506 <desc>Progress object to track the operation completion.</desc>
8507 </param>
8508 </method>
8509
8510 <method name="getProcessOutput">
8511 <desc>
8512 Retrieves output of a formerly started process.
8513
8514 <result name="VBOX_E_IPRT_ERROR">
8515 Could not retrieve output.
8516 </result>
8517
8518 </desc>
8519 <param name="pid" type="unsigned long" dir="in">
8520 <desc>
8521 Process id returned by earlier executeProcess() call.
8522 </desc>
8523 </param>
8524 <param name="flags" type="unsigned long" dir="in">
8525 <desc>
8526 <link to="ProcessOutputFlag"/> flags.
8527 </desc>
8528 </param>
8529 <param name="timeoutMS" type="unsigned long" dir="in">
8530 <desc>
8531 The maximum timeout value (in msec) to wait for output
8532 data. Pass 0 for an infinite timeout.
8533 </desc>
8534 </param>
8535 <param name="size" type="long long" dir="in">
8536 <desc>
8537 Size in bytes to read in the buffer.
8538 </desc>
8539 </param>
8540 <param name="data" type="octet" safearray="yes" dir="return">
8541 <desc>
8542 Buffer for retrieving the actual output. A data size of 0 means end of file
8543 if the requested size was not 0. This is the unprocessed
8544 output data, i.e. the line ending style depends on the platform of
8545 the system the server is running on.
8546 </desc>
8547 </param>
8548 </method>
8549
8550 <method name="getProcessStatus">
8551 <desc>
8552 Retrieves status, exit code and the exit reason of a formerly started process.
8553
8554 <result name="VBOX_E_IPRT_ERROR">
8555 Process with specified PID was not found.
8556 </result>
8557
8558 </desc>
8559 <param name="pid" type="unsigned long" dir="in">
8560 <desc>
8561 Process id returned by earlier executeProcess() call.
8562 </desc>
8563 </param>
8564 <param name="exitcode" type="unsigned long" dir="out">
8565 <desc>
8566 The exit code (if available).
8567 </desc>
8568 </param>
8569 <param name="flags" type="unsigned long" dir="out">
8570 <desc>
8571 Additional flags of process status. Not used at the moment and
8572 must be set to 0.
8573 </desc>
8574 </param>
8575 <param name="reason" type="ExecuteProcessStatus" dir="return">
8576 <desc>
8577 The current process status.
8578 </desc>
8579 </param>
8580 </method>
8581
8582 <method name="copyFromGuest">
8583 <desc>
8584 Copies files/directories from guest to the host.
8585
8586 <result name="VBOX_E_IPRT_ERROR">
8587 Error while copying.
8588 </result>
8589
8590 </desc>
8591 <param name="source" type="wstring" dir="in">
8592 <desc>
8593 Source file on the guest to copy.
8594 </desc>
8595 </param>
8596 <param name="dest" type="wstring" dir="in">
8597 <desc>
8598 Destination path on the host.
8599 </desc>
8600 </param>
8601 <param name="userName" type="wstring" dir="in">
8602 <desc>
8603 User name under which the copy command will be executed; the
8604 user has to exist and have the appropriate rights to read from
8605 the source path.
8606 </desc>
8607 </param>
8608 <param name="password" type="wstring" dir="in">
8609 <desc>
8610 Password of the user account specified.
8611 </desc>
8612 </param>
8613 <param name="flags" type="unsigned long" dir="in">
8614 <desc>
8615 <link to="CopyFileFlag"/> flags. Not used at the moment and should be set to 0.
8616 </desc>
8617 </param>
8618 <param name="progress" type="IProgress" dir="return">
8619 <desc>Progress object to track the operation completion.</desc>
8620 </param>
8621 </method>
8622
8623 <method name="copyToGuest">
8624 <desc>
8625 Copies files/directories from host to the guest.
8626
8627 <result name="VBOX_E_IPRT_ERROR">
8628 Error while copying.
8629 </result>
8630
8631 </desc>
8632 <param name="source" type="wstring" dir="in">
8633 <desc>
8634 Source file on the host to copy.
8635 </desc>
8636 </param>
8637 <param name="dest" type="wstring" dir="in">
8638 <desc>
8639 Destination path on the guest.
8640 </desc>
8641 </param>
8642 <param name="userName" type="wstring" dir="in">
8643 <desc>
8644 User name under which the copy command will be executed; the
8645 user has to exist and have the appropriate rights to write to
8646 the destination path.
8647 </desc>
8648 </param>
8649 <param name="password" type="wstring" dir="in">
8650 <desc>
8651 Password of the user account specified.
8652 </desc>
8653 </param>
8654 <param name="flags" type="unsigned long" dir="in">
8655 <desc>
8656 <link to="CopyFileFlag"/> flags. Not used at the moment and should be set to 0.
8657 </desc>
8658 </param>
8659 <param name="progress" type="IProgress" dir="return">
8660 <desc>Progress object to track the operation completion.</desc>
8661 </param>
8662 </method>
8663
8664 <method name="directoryClose">
8665 <desc>
8666 Closes a formerly opened guest directory.
8667
8668 <result name="VBOX_E_IPRT_ERROR">
8669 Error while closing directory.
8670 </result>
8671
8672 </desc>
8673 <param name="handle" type="unsigned long" dir="in">
8674 <desc>
8675 Handle of opened directory to close.
8676 </desc>
8677 </param>
8678 </method>
8679
8680 <method name="directoryCreate">
8681 <desc>
8682 Creates a directory on the guest.
8683
8684 <result name="VBOX_E_IPRT_ERROR">
8685 Error while creating directory.
8686 </result>
8687
8688 </desc>
8689 <param name="directory" type="wstring" dir="in">
8690 <desc>
8691 Directory to create.
8692 </desc>
8693 </param>
8694 <param name="userName" type="wstring" dir="in">
8695 <desc>
8696 User name under which the directory creation will be executed; the
8697 user has to exist and have the appropriate rights to create the
8698 desired directory.
8699 </desc>
8700 </param>
8701 <param name="password" type="wstring" dir="in">
8702 <desc>
8703 Password of the user account specified.
8704 </desc>
8705 </param>
8706 <param name="mode" type="unsigned long" dir="in">
8707 <desc>
8708 File mode.
8709 </desc>
8710 </param>
8711 <param name="flags" type="unsigned long" dir="in">
8712 <desc>
8713 <link to="DirectoryCreateFlag"/> flags.
8714 </desc>
8715 </param>
8716 </method>
8717
8718 <method name="directoryOpen">
8719 <desc>
8720 Opens a directory on the guest.
8721
8722 <result name="VBOX_E_IPRT_ERROR">
8723 Error while opening / reading directory.
8724 </result>
8725
8726 </desc>
8727 <param name="directory" type="wstring" dir="in">
8728 <desc>
8729 Directory to read.
8730 </desc>
8731 </param>
8732 <param name="filter" type="wstring" dir="in">
8733 <desc>
8734 Directory filter (DOS style wildcards). Set to empty
8735 string if no filter required.
8736 </desc>
8737 </param>
8738 <param name="flags" type="unsigned long" dir="in">
8739 <desc>
8740 <link to="DirectoryOpenFlag"/> flags.
8741 </desc>
8742 </param>
8743 <param name="userName" type="wstring" dir="in">
8744 <desc>
8745 User name under which the directory reading will be performed; the
8746 user has to exist and have the appropriate rights to access / read the
8747 desired directory.
8748 </desc>
8749 </param>
8750 <param name="password" type="wstring" dir="in">
8751 <desc>
8752 Password of the user account specified.
8753 </desc>
8754 </param>
8755 <param name="handle" type="unsigned long" dir="out">
8756 <desc>
8757 Handle of opened directory returned by openDirectory.
8758 </desc>
8759 </param>
8760 </method>
8761
8762 <method name="directoryRead">
8763 <desc>
8764 Reads the next directory entry of an opened guest directory.
8765
8766 <result name="VBOX_E_IPRT_ERROR">
8767 Error while opening / reading directory.
8768 </result>
8769
8770 </desc>
8771 <param name="handle" type="unsigned long" dir="in">
8772 <desc>
8773 Handle of opened directory returned by openDirectory.
8774 </desc>
8775 </param>
8776 <param name="entry" type="IGuestDirEntry" dir="out">
8777 <desc>
8778 Information about next directory entry on success.
8779 </desc>
8780 </param>
8781 </method>
8782
8783 <method name="fileExists">
8784 <desc>
8785 Checks if the specified file name exists and is a regular file.
8786
8787 <result name="VBOX_E_IPRT_ERROR">
8788 Error while looking up information.
8789 </result>
8790
8791 </desc>
8792 <param name="file" type="wstring" dir="in">
8793 <desc>
8794 Full path of file to check.
8795 </desc>
8796 </param>
8797 <param name="userName" type="wstring" dir="in">
8798 <desc>
8799 User name under which the lookup will be performed; the
8800 user has to exist and have the appropriate rights to access / read the
8801 desired directory.
8802 </desc>
8803 </param>
8804 <param name="password" type="wstring" dir="in">
8805 <desc>
8806 Password of the user account specified.
8807 </desc>
8808 </param>
8809 <param name="exists" type="boolean" dir="out">
8810 <desc>
8811 True if it's a regular file, false if it isn't (or doesn't exist).
8812 </desc>
8813 </param>
8814 </method>
8815
8816 <method name="setProcessInput">
8817 <desc>
8818 Sends input into a formerly started process.
8819
8820 <result name="VBOX_E_IPRT_ERROR">
8821 Could not send input.
8822 </result>
8823
8824 </desc>
8825 <param name="pid" type="unsigned long" dir="in">
8826 <desc>
8827 Process id returned by earlier executeProcess() call.
8828 </desc>
8829 </param>
8830 <param name="flags" type="unsigned long" dir="in">
8831 <desc>
8832 <link to="ProcessInputFlag"/> flags.
8833 </desc>
8834 </param>
8835 <param name="timeoutMS" type="unsigned long" dir="in">
8836 <desc>
8837 The maximum timeout value (in msec) to wait for getting the
8838 data transfered to the guest. Pass 0 for an infinite timeout.
8839 </desc>
8840 </param>
8841 <param name="data" type="octet" dir="in" safearray="yes">
8842 <desc>
8843 Buffer of input data to send to the started process to.
8844 </desc>
8845 </param>
8846 <param name="written" type="unsigned long" dir="return">
8847 <desc>
8848 Number of bytes written.
8849 </desc>
8850 </param>
8851 </method>
8852
8853 <method name="updateGuestAdditions">
8854 <desc>
8855 Updates already installed Guest Additions in a VM
8856 (Windows guests only).
8857
8858 <result name="VBOX_E_IPRT_ERROR">
8859 Error while updating.
8860 </result>
8861
8862 </desc>
8863 <param name="source" type="wstring" dir="in">
8864 <desc>
8865 Path to the Guest Additions .ISO file to use for the upate.
8866 </desc>
8867 </param>
8868 <param name="flags" type="unsigned long" dir="in">
8869 <desc>
8870 <link to="AdditionsUpdateFlag"/> flags.
8871 </desc>
8872 </param>
8873 <param name="progress" type="IProgress" dir="return">
8874 <desc>Progress object to track the operation completion.</desc>
8875 </param>
8876 </method>
8877
8878 </interface>
8879
8880
8881 <!--
8882 // IProgress
8883 /////////////////////////////////////////////////////////////////////////
8884 -->
8885
8886 <interface
8887 name="IProgress" extends="$unknown"
8888 uuid="c20238e4-3221-4d3f-8891-81ce92d9f913"
8889 wsmap="managed"
8890 >
8891 <desc>
8892 The IProgress interface is used to track and control
8893 asynchronous tasks within VirtualBox.
8894
8895 An instance of this is returned every time VirtualBox starts
8896 an asynchronous task (in other words, a separate thread) which
8897 continues to run after a method call returns. For example,
8898 <link to="IConsole::saveState" />, which saves the state of
8899 a running virtual machine, can take a long time to complete.
8900 To be able to display a progress bar, a user interface such as
8901 the VirtualBox graphical user interface can use the IProgress
8902 object returned by that method.
8903
8904 Note that IProgress is a "read-only" interface in the sense
8905 that only the VirtualBox internals behind the Main API can
8906 create and manipulate progress objects, whereas client code
8907 can only use the IProgress object to monitor a task's
8908 progress and, if <link to="#cancelable" /> is @c true,
8909 cancel the task by calling <link to="#cancel" />.
8910
8911 A task represented by IProgress consists of either one or
8912 several sub-operations that run sequentially, one by one (see
8913 <link to="#operation" /> and <link to="#operationCount" />).
8914 Every operation is identified by a number (starting from 0)
8915 and has a separate description.
8916
8917 You can find the individual percentage of completion of the current
8918 operation in <link to="#operationPercent" /> and the
8919 percentage of completion of the task as a whole
8920 in <link to="#percent" />.
8921
8922 Similarly, you can wait for the completion of a particular
8923 operation via <link to="#waitForOperationCompletion" /> or
8924 for the completion of the whole task via
8925 <link to="#waitForCompletion" />.
8926 </desc>
8927
8928 <attribute name="id" type="uuid" mod="string" readonly="yes">
8929 <desc>ID of the task.</desc>
8930 </attribute>
8931
8932 <attribute name="description" type="wstring" readonly="yes">
8933 <desc>Description of the task.</desc>
8934 </attribute>
8935
8936 <attribute name="initiator" type="$unknown" readonly="yes">
8937 <desc>Initiator of the task.</desc>
8938 </attribute>
8939
8940 <attribute name="cancelable" type="boolean" readonly="yes">
8941 <desc>Whether the task can be interrupted.</desc>
8942 </attribute>
8943
8944 <attribute name="percent" type="unsigned long" readonly="yes">
8945 <desc>
8946 Current progress value of the task as a whole, in percent.
8947 This value depends on how many operations are already complete.
8948 Returns 100 if <link to="#completed" /> is @c true.
8949 </desc>
8950 </attribute>
8951
8952 <attribute name="timeRemaining" type="long" readonly="yes">
8953 <desc>
8954 Estimated remaining time until the task completes, in
8955 seconds. Returns 0 once the task has completed; returns -1
8956 if the remaining time cannot be computed, in particular if
8957 the current progress is 0.
8958
8959 Even if a value is returned, the estimate will be unreliable
8960 for low progress values. It will become more reliable as the
8961 task progresses; it is not recommended to display an ETA
8962 before at least 20% of a task have completed.
8963 </desc>
8964 </attribute>
8965
8966 <attribute name="completed" type="boolean" readonly="yes">
8967 <desc>Whether the task has been completed.</desc>
8968 </attribute>
8969
8970 <attribute name="canceled" type="boolean" readonly="yes">
8971 <desc>Whether the task has been canceled.</desc>
8972 </attribute>
8973
8974 <attribute name="resultCode" type="long" readonly="yes">
8975 <desc>
8976 Result code of the progress task.
8977 Valid only if <link to="#completed"/> is @c true.
8978 </desc>
8979 </attribute>
8980
8981 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
8982 <desc>
8983 Extended information about the unsuccessful result of the
8984 progress operation. May be @c null if no extended information
8985 is available.
8986 Valid only if <link to="#completed"/> is @c true and
8987 <link to="#resultCode"/> indicates a failure.
8988 </desc>
8989 </attribute>
8990
8991 <attribute name="operationCount" type="unsigned long" readonly="yes">
8992 <desc>
8993 Number of sub-operations this task is divided into.
8994 Every task consists of at least one suboperation.
8995 </desc>
8996 </attribute>
8997
8998 <attribute name="operation" type="unsigned long" readonly="yes">
8999 <desc>Number of the sub-operation being currently executed.</desc>
9000 </attribute>
9001
9002 <attribute name="operationDescription" type="wstring" readonly="yes">
9003 <desc>
9004 Description of the sub-operation being currently executed.
9005 </desc>
9006 </attribute>
9007
9008 <attribute name="operationPercent" type="unsigned long" readonly="yes">
9009 <desc>Progress value of the current sub-operation only, in percent.</desc>
9010 </attribute>
9011
9012 <attribute name="operationWeight" type="unsigned long" readonly="yes">
9013 <desc>Weight value of the current sub-operation only.</desc>
9014 </attribute>
9015
9016 <attribute name="timeout" type="unsigned long">
9017 <desc>
9018 When non-zero, this specifies the number of milliseconds after which
9019 the operation will automatically be canceled. This can only be set on
9020 cancelable objects.
9021 </desc>
9022 </attribute>
9023
9024 <method name="setCurrentOperationProgress">
9025 <desc>Internal method, not to be called externally.</desc>
9026 <param name="percent" type="unsigned long" dir="in" />
9027 </method>
9028 <method name="setNextOperation">
9029 <desc>Internal method, not to be called externally.</desc>
9030 <param name="nextOperationDescription" type="wstring" dir="in" />
9031 <param name="nextOperationsWeight" type="unsigned long" dir="in" />
9032 </method>
9033
9034 <method name="waitForCompletion">
9035 <desc>
9036 Waits until the task is done (including all sub-operations)
9037 with a given timeout in milliseconds; specify -1 for an indefinite wait.
9038
9039 Note that the VirtualBox/XPCOM/COM/native event queues of the calling
9040 thread are not processed while waiting. Neglecting event queues may
9041 have dire consequences (degrade performance, resource hogs,
9042 deadlocks, etc.), this is specially so for the main thread on
9043 platforms using XPCOM. Callers are adviced wait for short periods
9044 and service their event queues between calls, or to create a worker
9045 thread to do the waiting.
9046
9047 <result name="VBOX_E_IPRT_ERROR">
9048 Failed to wait for task completion.
9049 </result>
9050 </desc>
9051
9052 <param name="timeout" type="long" dir="in">
9053 <desc>
9054 Maximum time in milliseconds to wait or -1 to wait indefinitely.
9055 </desc>
9056 </param>
9057 </method>
9058
9059 <method name="waitForOperationCompletion">
9060 <desc>
9061 Waits until the given operation is done with a given timeout in
9062 milliseconds; specify -1 for an indefinite wait.
9063
9064 See <link to="#waitForCompletion"> for event queue considerations.</link>
9065
9066 <result name="VBOX_E_IPRT_ERROR">
9067 Failed to wait for operation completion.
9068 </result>
9069
9070 </desc>
9071 <param name="operation" type="unsigned long" dir="in">
9072 <desc>
9073 Number of the operation to wait for.
9074 Must be less than <link to="#operationCount"/>.
9075 </desc>
9076 </param>
9077 <param name="timeout" type="long" dir="in">
9078 <desc>
9079 Maximum time in milliseconds to wait or -1 to wait indefinitely.
9080 </desc>
9081 </param>
9082 </method>
9083
9084 <method name="waitForAsyncProgressCompletion">
9085 <desc>
9086 Waits until the other task is completed (including all
9087 sub-operations) and forward all changes from the other progress to
9088 this progress. This means sub-operation number, description, percent
9089 and so on.
9090
9091 You have to take care on setting up at least the same count on
9092 sub-operations in this progress object like there are in the other
9093 progress object.
9094
9095 If the other progress object supports cancel and this object gets any
9096 cancel request (when here enabled as well), it will be forwarded to
9097 the other progress object.
9098
9099 If there is an error in the other progress, this error isn't
9100 automatically transfered to this progress object. So you have to
9101 check any operation error within the other progress object, after
9102 this method returns.
9103 </desc>
9104
9105 <param name="pProgressAsync" type="IProgress" dir="in">
9106 <desc>
9107 The progress object of the asynchrony process.
9108 </desc>
9109 </param>
9110 </method>
9111
9112 <method name="cancel">
9113 <desc>
9114 Cancels the task.
9115 <note>
9116 If <link to="#cancelable"/> is @c false, then this method will fail.
9117 </note>
9118
9119 <result name="VBOX_E_INVALID_OBJECT_STATE">
9120 Operation cannot be canceled.
9121 </result>
9122
9123 </desc>
9124 </method>
9125
9126 </interface>
9127
9128 <!--
9129 // ISnapshot
9130 /////////////////////////////////////////////////////////////////////////
9131 -->
9132
9133 <interface
9134 name="ISnapshot" extends="$unknown"
9135 uuid="1a2d0551-58a4-4107-857e-ef414fc42ffc"
9136 wsmap="managed"
9137 >
9138 <desc>
9139 The ISnapshot interface represents a snapshot of the virtual
9140 machine.
9141
9142 Together with the differencing media that are created
9143 when a snapshot is taken, a machine can be brought back to
9144 the exact state it was in when the snapshot was taken.
9145
9146 The ISnapshot interface has no methods, only attributes; snapshots
9147 are controlled through methods of the <link to="IConsole" /> interface
9148 which also manage the media associated with the snapshot.
9149 The following operations exist:
9150
9151 <ul>
9152 <li><link to="IConsole::takeSnapshot"/> creates a new snapshot
9153 by creating new, empty differencing images for the machine's
9154 media and saving the VM settings and (if the VM is running)
9155 the current VM state in the snapshot.
9156
9157 The differencing images will then receive all data written to
9158 the machine's media, while their parent (base) images
9159 remain unmodified after the snapshot has been taken (see
9160 <link to="IMedium" /> for details about differencing images).
9161 This simplifies restoring a machine to the state of a snapshot:
9162 only the differencing images need to be deleted.
9163
9164 The current machine state is not changed by taking a snapshot
9165 except that <link to="IMachine::currentSnapshot" /> is set to
9166 the newly created snapshot, which is also added to the machine's
9167 snapshots tree.
9168 </li>
9169
9170 <li><link to="IConsole::restoreSnapshot"/> resets a machine to
9171 the state of a previous snapshot by deleting the differencing
9172 image of each of the machine's media and setting the machine's
9173 settings and state to the state that was saved in the snapshot (if any).
9174
9175 This destroys the machine's current state. After calling this,
9176 <link to="IMachine::currentSnapshot" /> points to the snapshot
9177 that was restored.
9178 </li>
9179
9180 <li><link to="IConsole::deleteSnapshot"/> deletes a snapshot
9181 without affecting the current machine state.
9182
9183 This does not change the current machine state, but instead frees the
9184 resources allocated when the snapshot was taken: the settings and machine
9185 state file are deleted (if any), and the snapshot's differencing image for
9186 each of the machine's media gets merged with its parent image.
9187
9188 Neither the current machine state nor other snapshots are affected
9189 by this operation, except that parent media will be modified
9190 to contain the disk data associated with the snapshot being deleted.
9191
9192 When deleting the current snapshot, the <link to="IMachine::currentSnapshot" />
9193 attribute is set to the current snapshot's parent or NULL if it
9194 has no parent. Otherwise the attribute is unchanged.
9195 </li>
9196 </ul>
9197
9198 Each snapshot contains a copy of virtual machine's settings (hardware
9199 configuration etc.). This copy is contained in an immutable (read-only)
9200 instance of <link to="IMachine" /> which is available from the snapshot's
9201 <link to="#machine" /> attribute. When restoring the snapshot, these
9202 settings are copied back to the original machine.
9203
9204 In addition, if the machine was running when the
9205 snapshot was taken (<link to="IMachine::state"/> is <link to="MachineState_Running"/>),
9206 the current VM state is saved in the snapshot (similarly to what happens
9207 when a VM's state is saved). The snapshot is then said to be <i>online</i>
9208 because when restoring it, the VM will be running.
9209
9210 If the machine was in <link to="MachineState_Saved">saved</link> saved,
9211 the snapshot receives a copy of the execution state file
9212 (<link to="IMachine::stateFilePath"/>).
9213
9214 Otherwise, if the machine was not running (<link to="MachineState_PoweredOff"/>
9215 or <link to="MachineState_Aborted"/>), the snapshot is <i>offline</i>;
9216 it then contains a so-called "zero execution state", representing a
9217 machine that is powered off.
9218 </desc>
9219
9220 <attribute name="id" type="uuid" mod="string" readonly="yes">
9221 <desc>UUID of the snapshot.</desc>
9222 </attribute>
9223
9224 <attribute name="name" type="wstring">
9225 <desc>Short name of the snapshot.
9226 <note>Setting this attribute causes <link to="IMachine::saveSettings" /> to
9227 be called implicitly.</note>
9228 </desc>
9229 </attribute>
9230
9231 <attribute name="description" type="wstring">
9232 <desc>Optional description of the snapshot.
9233 <note>Setting this attribute causes <link to="IMachine::saveSettings" /> to
9234 be called implicitly.</note>
9235 </desc>
9236 </attribute>
9237
9238 <attribute name="timeStamp" type="long long" readonly="yes">
9239 <desc>
9240 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
9241 </desc>
9242 </attribute>
9243
9244 <attribute name="online" type="boolean" readonly="yes">
9245 <desc>
9246 @c true if this snapshot is an online snapshot and @c false otherwise.
9247
9248 When this attribute is @c true, the
9249 <link to="IMachine::stateFilePath"/> attribute of the
9250 <link to="#machine"/> object associated with this snapshot
9251 will point to the saved state file. Otherwise, it will be
9252 an empty string.
9253 </desc>
9254 </attribute>
9255
9256 <attribute name="machine" type="IMachine" readonly="yes">
9257 <desc>
9258 Virtual machine this snapshot is taken on. This object
9259 stores all settings the machine had when taking this snapshot.
9260 <note>
9261 The returned machine object is immutable, i.e. no
9262 any settings can be changed.
9263 </note>
9264 </desc>
9265 </attribute>
9266
9267 <attribute name="parent" type="ISnapshot" readonly="yes">
9268 <desc>
9269 Parent snapshot (a snapshot this one is based on), or
9270 @c null if the snapshot has no parent (i.e. is the first snapshot).
9271 </desc>
9272 </attribute>
9273
9274 <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
9275 <desc>
9276 Child snapshots (all snapshots having this one as a parent).
9277 By inspecting this attribute starting with a machine's root snapshot
9278 (which can be obtained by calling <link to="IMachine::findSnapshot" />
9279 with a @c null UUID), a machine's snapshots tree can be iterated over.
9280 </desc>
9281 </attribute>
9282
9283 </interface>
9284
9285
9286 <!--
9287 // IMedium
9288 /////////////////////////////////////////////////////////////////////////
9289 -->
9290
9291 <enum
9292 name="MediumState"
9293 uuid="ef41e980-e012-43cd-9dea-479d4ef14d13"
9294 >
9295 <desc>
9296 Virtual medium state.
9297 <see>IMedium</see>
9298 </desc>
9299
9300 <const name="NotCreated" value="0">
9301 <desc>
9302 Associated medium storage does not exist (either was not created yet or
9303 was deleted).
9304 </desc>
9305 </const>
9306 <const name="Created" value="1">
9307 <desc>
9308 Associated storage exists and accessible; this gets set if the
9309 accessibility check performed by <link to="IMedium::refreshState" />
9310 was successful.
9311 </desc>
9312 </const>
9313 <const name="LockedRead" value="2">
9314 <desc>
9315 Medium is locked for reading (see <link to="IMedium::lockRead"/>),
9316 no data modification is possible.
9317 </desc>
9318 </const>
9319 <const name="LockedWrite" value="3">
9320 <desc>
9321 Medium is locked for writing (see <link to="IMedium::lockWrite"/>),
9322 no concurrent data reading or modification is possible.
9323 </desc>
9324 </const>
9325 <const name="Inaccessible" value="4">
9326 <desc>
9327 Medium accessibility check (see <link to="IMedium::refreshState" />) has
9328 not yet been performed, or else, associated medium storage is not
9329 accessible. In the first case, <link to="IMedium::lastAccessError"/>
9330 is empty, in the second case, it describes the error that occurred.
9331 </desc>
9332 </const>
9333 <const name="Creating" value="5">
9334 <desc>
9335 Associated medium storage is being created.
9336 </desc>
9337 </const>
9338 <const name="Deleting" value="6">
9339 <desc>
9340 Associated medium storage is being deleted.
9341 </desc>
9342 </const>
9343 </enum>
9344
9345 <enum
9346 name="MediumType"
9347 uuid="fe663fb5-c244-4e1b-9d81-c628b417dd04"
9348 >
9349 <desc>
9350 Virtual medium type. For each <link to="IMedium" />, this defines how the medium is
9351 attached to a virtual machine (see <link to="IMediumAttachment" />) and what happens
9352 when a snapshot (see <link to="ISnapshot" />) is taken of a virtual machine which has
9353 the medium attached. At the moment DVD and floppy media are always of type "writethrough".
9354 </desc>
9355
9356 <const name="Normal" value="0">
9357 <desc>
9358 Normal medium (attached directly or indirectly, preserved
9359 when taking snapshots).
9360 </desc>
9361 </const>
9362 <const name="Immutable" value="1">
9363 <desc>
9364 Immutable medium (attached indirectly, changes are wiped out
9365 the next time the virtual machine is started).
9366 </desc>
9367 </const>
9368 <const name="Writethrough" value="2">
9369 <desc>
9370 Write through medium (attached directly, ignored when
9371 taking snapshots).
9372 </desc>
9373 </const>
9374 <const name="Shareable" value="3">
9375 <desc>
9376 Allow using this medium concurrently by several machines.
9377 <note>Present since VirtualBox 3.2.0, and accepted since 3.2.8.</note>
9378 </desc>
9379 </const>
9380 <const name="Readonly" value="4">
9381 <desc>
9382 A readonly medium, which can of course be used by several machines.
9383 <note>Present and accepted since VirtualBox 4.0.</note>
9384 </desc>
9385 </const>
9386 <const name="MultiAttach" value="5">
9387 <desc>
9388 A medium which is is indirectly attached, so that one base medium can
9389 be used for several VMs which have their own differencing medium to
9390 store their modifications. In some sense a variant of Immutable
9391 with unset AutoReset flag in each differencing medium.
9392 <note>Present and accepted since VirtualBox 4.0.</note>
9393 </desc>
9394 </const>
9395 </enum>
9396
9397 <enum
9398 name="MediumVariant"
9399 uuid="584ea502-143b-4ab0-ad14-d1028fdf0316"
9400 >
9401 <desc>
9402 Virtual medium image variant. More than one flag may be set.
9403 <see>IMedium</see>
9404 </desc>
9405
9406 <const name="Standard" value="0">
9407 <desc>
9408 No particular variant requested, results in using the backend default.
9409 </desc>
9410 </const>
9411 <const name="VmdkSplit2G" value="0x01">
9412 <desc>
9413 VMDK image split in chunks of less than 2GByte.
9414 </desc>
9415 </const>
9416 <const name="VmdkStreamOptimized" value="0x04">
9417 <desc>
9418 VMDK streamOptimized image. Special import/export format which is
9419 read-only/append-only.
9420 </desc>
9421 </const>
9422 <const name="VmdkESX" value="0x08">
9423 <desc>
9424 VMDK format variant used on ESX products.
9425 </desc>
9426 </const>
9427 <const name="Fixed" value="0x10000">
9428 <desc>
9429 Fixed image. Only allowed for base images.
9430 </desc>
9431 </const>
9432 <const name="Diff" value="0x20000">
9433 <desc>
9434 Differencing image. Only allowed for child images.
9435 </desc>
9436 </const>
9437 </enum>
9438
9439 <interface
9440 name="IMediumAttachment" extends="$unknown"
9441 uuid="aa4b4840-934f-454d-9a28-23e8f4235edf"
9442 wsmap="struct"
9443 >
9444 <desc>
9445 The IMediumAttachment interface links storage media to virtual machines.
9446 For each medium (<link to="IMedium"/>) which has been attached to a
9447 storage controller (<link to="IStorageController"/>) of a machine
9448 (<link to="IMachine"/>) via the <link to="IMachine::attachDevice" />
9449 method, one instance of IMediumAttachment is added to the machine's
9450 <link to="IMachine::mediumAttachments"/> array attribute.
9451
9452 Each medium attachment specifies the storage controller as well as a
9453 port and device number and the IMedium instance representing a virtual
9454 hard disk or floppy or DVD image.
9455
9456 For removable media (DVDs or floppies), there are two additional
9457 options. For one, the IMedium instance can be @c null to represent
9458 an empty drive with no media inserted (see <link to="IMachine::mountMedium" />);
9459 secondly, the medium can be one of the pseudo-media for host drives
9460 listed in <link to="IHost::DVDDrives"/> or <link to="IHost::floppyDrives"/>.
9461
9462 <h3>Attaching Hard Disks</h3>
9463
9464 Hard disks are attached to virtual machines using the
9465 <link to="IMachine::attachDevice"/> method and detached using the
9466 <link to="IMachine::detachDevice"/> method. Depending on a medium's
9467 type (see <link to="IMedium::type" />), hard disks are attached either
9468 <i>directly</i> or <i>indirectly</i>.
9469
9470 When a hard disk is being attached directly, it is associated with the
9471 virtual machine and used for hard disk operations when the machine is
9472 running. When a hard disk is being attached indirectly, a new differencing
9473 hard disk linked to it is implicitly created and this differencing hard
9474 disk is associated with the machine and used for hard disk operations.
9475 This also means that if <link to="IMachine::attachDevice"/> performs
9476 a direct attachment then the same hard disk will be returned in response
9477 to the subsequent <link to="IMachine::getMedium"/> call; however if
9478 an indirect attachment is performed then
9479 <link to="IMachine::getMedium"/> will return the implicitly created
9480 differencing hard disk, not the original one passed to <link
9481 to="IMachine::attachDevice"/>. In detail:
9482
9483 <ul>
9484 <li><b>Normal base</b> hard disks that do not have children (i.e.
9485 differencing hard disks linked to them) and that are not already
9486 attached to virtual machines in snapshots are attached <b>directly</b>.
9487 Otherwise, they are attached <b>indirectly</b> because having
9488 dependent children or being part of the snapshot makes it impossible
9489 to modify hard disk contents without breaking the integrity of the
9490 dependent party. The <link to="IMedium::readOnly"/> attribute allows to
9491 quickly determine the kind of the attachment for the given hard
9492 disk. Note that if a normal base hard disk is to be indirectly
9493 attached to a virtual machine with snapshots then a special
9494 procedure called <i>smart attachment</i> is performed (see below).</li>
9495 <li><b>Normal differencing</b> hard disks are like normal base hard disks:
9496 they are attached <b>directly</b> if they do not have children and are
9497 not attached to virtual machines in snapshots, and <b>indirectly</b>
9498 otherwise. Note that the smart attachment procedure is never performed
9499 for differencing hard disks.</li>
9500 <li><b>Immutable</b> hard disks are always attached <b>indirectly</b> because
9501 they are designed to be non-writable. If an immutable hard disk is
9502 attached to a virtual machine with snapshots then a special
9503 procedure called smart attachment is performed (see below).</li>
9504 <li><b>Writethrough</b> hard disks are always attached <b>directly</b>,
9505 also as designed. This also means that writethrough hard disks cannot
9506 have other hard disks linked to them at all.</li>
9507 <li><b>Shareable</b> hard disks are always attached <b>directly</b>,
9508 also as designed. This also means that shareable hard disks cannot
9509 have other hard disks linked to them at all. They behave almost
9510 like writethrough hard disks, except that shareable hard disks can
9511 be attached to several virtual machines which are running, allowing
9512 concurrent accesses. You need special cluster software running in
9513 the virtual machines to make use of such disks.</li>
9514 </ul>
9515
9516 Note that the same hard disk, regardless of its type, may be attached to
9517 more than one virtual machine at a time. In this case, the machine that is
9518 started first gains exclusive access to the hard disk and attempts to
9519 start other machines having this hard disk attached will fail until the
9520 first machine is powered down.
9521
9522 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
9523 that the given hard disk remains associated with the given machine after a
9524 successful <link to="IMachine::detachDevice"/> call until
9525 <link to="IMachine::saveSettings"/> is called to save all changes to
9526 machine settings to disk. This deferring is necessary to guarantee that
9527 the hard disk configuration may be restored at any time by a call to
9528 <link to="IMachine::discardSettings"/> before the settings
9529 are saved (committed).
9530
9531 Note that if <link to="IMachine::discardSettings"/> is called after
9532 indirectly attaching some hard disks to the machine but before a call to
9533 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
9534 all differencing hard disks implicitly created by
9535 <link to="IMachine::attachDevice"/> for these indirect attachments.
9536 Such implicitly created hard disks will also be immediately deleted when
9537 detached explicitly using the <link to="IMachine::detachDevice"/>
9538 call if it is made before <link to="IMachine::saveSettings"/>. This
9539 implicit deletion is safe because newly created differencing hard
9540 disks do not contain any user data.
9541
9542 However, keep in mind that detaching differencing hard disks that were
9543 implicitly created by <link to="IMachine::attachDevice"/>
9544 before the last <link to="IMachine::saveSettings"/> call will
9545 <b>not</b> implicitly delete them as they may already contain some data
9546 (for example, as a result of virtual machine execution). If these hard
9547 disks are no more necessary, the caller can always delete them explicitly
9548 using <link to="IMedium::deleteStorage"/> after they are actually de-associated
9549 from this machine by the <link to="IMachine::saveSettings"/> call.
9550
9551 <h3>Smart Attachment</h3>
9552
9553 When normal base or immutable hard disks are indirectly attached to a
9554 virtual machine then some additional steps are performed to make sure the
9555 virtual machine will have the most recent "view" of the hard disk being
9556 attached. These steps include walking through the machine's snapshots
9557 starting from the current one and going through ancestors up to the first
9558 snapshot. Hard disks attached to the virtual machine in all
9559 of the encountered snapshots are checked whether they are descendants of
9560 the given normal base or immutable hard disk. The first found child (which
9561 is the differencing hard disk) will be used instead of the normal base or
9562 immutable hard disk as a parent for creating a new differencing hard disk
9563 that will be actually attached to the machine. And only if no descendants
9564 are found or if the virtual machine does not have any snapshots then the
9565 normal base or immutable hard disk will be used itself as a parent for
9566 this differencing hard disk.
9567
9568 It is easier to explain what smart attachment does using the
9569 following example:
9570 <pre>
9571BEFORE attaching B.vdi: AFTER attaching B.vdi:
9572
9573Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
9574 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
9575 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
9576 Snapshot 4 (none) Snapshot 4 (none)
9577 CurState (none) CurState (D3->D2.vdi)
9578
9579 NOT
9580 ...
9581 CurState (D3->B.vdi)
9582 </pre>
9583 The first column is the virtual machine configuration before the base hard
9584 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
9585 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
9586 mean that the hard disk that is actually attached to the machine is a
9587 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
9588 another hard disk, <tt>B.vdi</tt>.
9589
9590 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
9591 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
9592 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
9593 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
9594 it cannot be attached directly and needs an indirect attachment (i.e.
9595 implicit creation of a new differencing hard disk). Due to the smart
9596 attachment procedure, the new differencing hard disk
9597 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
9598 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
9599 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
9600 machine.
9601
9602 Note that if there is more than one descendant hard disk of the given base
9603 hard disk found in a snapshot, and there is an exact device, channel and
9604 bus match, then this exact match will be used. Otherwise, the youngest
9605 descendant will be picked up.
9606
9607 There is one more important aspect of the smart attachment procedure which
9608 is not related to snapshots at all. Before walking through the snapshots
9609 as described above, the backup copy of the current list of hard disk
9610 attachment is searched for descendants. This backup copy is created when
9611 the hard disk configuration is changed for the first time after the last
9612 <link to="IMachine::saveSettings"/> call and used by
9613 <link to="IMachine::discardSettings"/> to undo the recent hard disk
9614 changes. When such a descendant is found in this backup copy, it will be
9615 simply re-attached back, without creating a new differencing hard disk for
9616 it. This optimization is necessary to make it possible to re-attach the
9617 base or immutable hard disk to a different bus, channel or device slot
9618 without losing the contents of the differencing hard disk actually
9619 attached to the machine in place of it.
9620
9621 </desc>
9622
9623 <attribute name="medium" type="IMedium" readonly="yes">
9624 <desc>Medium object associated with this attachment; it
9625 can be @c null for removable devices.</desc>
9626 </attribute>
9627
9628 <attribute name="controller" type="wstring" readonly="yes">
9629 <desc>Name of the storage controller of this attachment; this
9630 refers to one of the controllers in <link to="IMachine::storageControllers" />
9631 by name.</desc>
9632 </attribute>
9633
9634 <attribute name="port" type="long" readonly="yes">
9635 <desc>Port number of this attachment.
9636 See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
9637 </desc>
9638 </attribute>
9639
9640 <attribute name="device" type="long" readonly="yes">
9641 <desc>Device slot number of this attachment.
9642 See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
9643 </desc>
9644 </attribute>
9645
9646 <attribute name="type" type="DeviceType" readonly="yes">
9647 <desc>Device type of this attachment.</desc>
9648 </attribute>
9649
9650 <attribute name="passthrough" type="boolean" readonly="yes">
9651 <desc>Pass I/O requests through to a device on the host.</desc>
9652 </attribute>
9653
9654 <attribute name="bandwidthGroup" type="IBandwidthGroup" readonly="yes">
9655 <desc>The bandwidth group this medium attachment is assigned to.</desc>
9656 </attribute>
9657
9658 </interface>
9659
9660 <interface
9661 name="IMedium" extends="$unknown"
9662 uuid="9edda847-1279-4b0a-9af7-9d66251ccc18"
9663 wsmap="managed"
9664 >
9665 <desc>
9666 The IMedium interface represents virtual storage for a machine's
9667 hard disks, CD/DVD or floppy drives. It will typically represent
9668 a disk image on the host, for example a VDI or VMDK file representing
9669 a virtual hard disk, or an ISO or RAW file representing virtual
9670 removable media, but can also point to a network location (e.g.
9671 for iSCSI targets).
9672
9673 Instances of IMedium are connected to virtual machines by way of medium
9674 attachments, which link the storage medium to a particular device slot
9675 of a storage controller of the virtual machine.
9676 In the VirtualBox API, virtual storage is therefore always represented
9677 by the following chain of object links:
9678
9679 <ul>
9680 <li><link to="IMachine::storageControllers"/> contains an array of
9681 storage controllers (IDE, SATA, SCSI, SAS or a floppy controller;
9682 these are instances of <link to="IStorageController"/>).</li>
9683 <li><link to="IMachine::mediumAttachments"/> contains an array of
9684 medium attachments (instances of <link to="IMediumAttachment"/>
9685 created by <link to="IMachine::attachDevice" />),
9686 each containing a storage controller from the above array, a
9687 port/device specification, and an instance of IMedium representing
9688 the medium storage (image file).
9689
9690 For removable media, the storage medium is optional; a medium
9691 attachment with no medium represents a CD/DVD or floppy drive
9692 with no medium inserted. By contrast, hard disk attachments
9693 will always have an IMedium object attached.</li>
9694 <li>Each IMedium in turn points to a storage unit (such as a file
9695 on the host computer or a network resource) that holds actual
9696 data. This location is represented by the <link to="#location"/>
9697 attribute.</li>
9698 </ul>
9699
9700 Existing media are opened using <link to="IVirtualBox::openMedium"/>;
9701 new hard disk media can be created with the VirtualBox API using the
9702 <link to="IVirtualBox::createHardDisk"/> method. Differencing hard
9703 disks (see below) are usually implicitly created by VirtualBox as
9704 needed, but may also be created explicitly using <link to="#createDiffStorage"/>.
9705 VirtualBox cannot create CD/DVD or floppy images (ISO and RAW files); these
9706 should be created with external tools and then opened from within VirtualBox.
9707
9708 Only for CD/DVDs and floppies, an IMedium instance can also represent a host
9709 drive. In that case the <link to="#id" /> attribute contains the UUID of
9710 one of the drives in <link to="IHost::DVDDrives" /> or <link to="IHost::floppyDrives" />.
9711
9712 <h3>Media registries</h3>
9713
9714 When a medium has been opened or created using one of the aforementioned
9715 APIs, it becomes "known" to VirtualBox. Known media can be attached
9716 to virtual machines and accessed through <link to="IVirtualBox::findMedium"/>.
9717 They also appear in the global
9718 <link to="IVirtualBox::hardDisks" />,
9719 <link to="IVirtualBox::DVDImages" /> and
9720 <link to="IVirtualBox::floppyImages" /> arrays.
9721
9722 Prior to VirtualBox 4.0, opening a medium added it to a global media registry
9723 in the VirtualBox.xml file, which was shared between all machines and made
9724 transporting machines and their media from one host to another difficult.
9725
9726 Starting with VirtualBox 4.0, media are only added to a registry when they are
9727 <i>attached</i> to a machine using <link to="IMachine::attachDevice" />. For
9728 backwards compatibility, which registry a medium is added to depends on which
9729 VirtualBox version created a machine:
9730
9731 <ul>
9732 <li>If the medium has first been attached to a machine which was created by
9733 VirtualBox 4.0 or later, it is added to that machine's media registry in
9734 the machine XML settings file. This way all information about a machine's
9735 media attachments is contained in a single file and can be transported
9736 easily.</li>
9737 <li>For older media attachments (i.e. if the medium was first attached to a
9738 machine which was created with a VirtualBox version before 4.0), media
9739 continue to be registered in the global VirtualBox settings file, for
9740 backwards compatibility.</li>
9741 </ul>
9742
9743 See <link to="IVirtualBox::openMedium" /> for more information.
9744
9745 Media are removed from media registries by the <link to="#close"/>,
9746 <link to="#deleteStorage"/> and <link to="#mergeTo"/> methods.
9747
9748 <h3>Accessibility checks</h3>
9749
9750 VirtualBox defers media accessibility checks until the <link to="#refreshState" />
9751 method is called explicitly on a medium. This is done to make the VirtualBox object
9752 ready for serving requests as fast as possible and let the end-user
9753 application decide if it needs to check media accessibility right away or not.
9754
9755 As a result, when VirtualBox starts up (e.g. the VirtualBox
9756 object gets created for the first time), all known media are in the
9757 "Inaccessible" state, but the value of the <link to="#lastAccessError"/>
9758 attribute is an empty string because no actual accessibility check has
9759 been made yet.
9760
9761 After calling <link to="#refreshState" />, a medium is considered
9762 <i>accessible</i> if its storage unit can be read. In that case, the
9763 <link to="#state"/> attribute has a value of "Created". If the storage
9764 unit cannot be read (for example, because it is located on a disconnected
9765 network resource, or was accidentally deleted outside VirtualBox),
9766 the medium is considered <i>inaccessible</i>, which is indicated by the
9767 "Inaccessible" state. The exact reason why the medium is inaccessible can be
9768 obtained by reading the <link to="#lastAccessError"/> attribute.
9769
9770 <h3>Medium types</h3>
9771
9772 There are five types of medium behavior which are stored in the
9773 <link to="#type"/> attribute (see <link to="MediumType" />) and
9774 which define the medium's behavior with attachments and snapshots.
9775
9776 All media can be also divided in two groups: <i>base</i> media and
9777 <i>differencing</i> media. A base medium contains all sectors of the
9778 medium data in its own storage and therefore can be used independently.
9779 In contrast, a differencing medium is a "delta" to some other medium and
9780 contains only those sectors which differ from that other medium, which is
9781 then called a <i>parent</i>. The differencing medium is said to be
9782 <i>linked to</i> that parent. The parent may be itself a differencing
9783 medium, thus forming a chain of linked media. The last element in that
9784 chain must always be a base medium. Note that several differencing
9785 media may be linked to the same parent medium.
9786
9787 Differencing media can be distinguished from base media by querying the
9788 <link to="#parent"/> attribute: base media do not have parents they would
9789 depend on, so the value of this attribute is always @c null for them.
9790 Using this attribute, it is possible to walk up the medium tree (from the
9791 child medium to its parent). It is also possible to walk down the tree
9792 using the <link to="#children"/> attribute.
9793
9794 Note that the type of all differencing media is "normal"; all other
9795 values are meaningless for them. Base media may be of any type.
9796
9797 <h3>Automatic composition of the file name part</h3>
9798
9799 Another extension to the <link to="IMedium::location"/> attribute is that
9800 there is a possibility to cause VirtualBox to compose a unique value for
9801 the file name part of the location using the UUID of the hard disk. This
9802 applies only to hard disks in <link to="MediumState_NotCreated"/> state,
9803 e.g. before the storage unit is created, and works as follows. You set the
9804 value of the <link to="IMedium::location"/> attribute to a location
9805 specification which only contains the path specification but not the file
9806 name part and ends with either a forward slash or a backslash character.
9807 In response, VirtualBox will generate a new UUID for the hard disk and
9808 compose the file name using the following pattern:
9809 <pre>
9810 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
9811 </pre>
9812 where <tt>&lt;path&gt;</tt> is the supplied path specification,
9813 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
9814 is the default extension for the storage format of this hard disk. After
9815 that, you may call any of the methods that create a new hard disk storage
9816 unit and they will use the generated UUID and file name.
9817 </desc>
9818
9819 <attribute name="id" type="uuid" mod="string" readonly="yes">
9820 <desc>
9821 UUID of the medium. For a newly created medium, this value is a randomly
9822 generated UUID.
9823
9824 <note>
9825 For media in one of MediumState_NotCreated, MediumState_Creating or
9826 MediumState_Deleting states, the value of this property is undefined
9827 and will most likely be an empty UUID.
9828 </note>
9829 </desc>
9830 </attribute>
9831
9832 <attribute name="description" type="wstring">
9833 <desc>
9834 Optional description of the medium. For a newly created medium the value
9835 of this attribute is an empty string.
9836
9837 Medium types that don't support this attribute will return E_NOTIMPL in
9838 attempt to get or set this attribute's value.
9839
9840 <note>
9841 For some storage types, reading this attribute may return an outdated
9842 (last known) value when <link to="#state"/> is <link
9843 to="MediumState_Inaccessible"/> or <link
9844 to="MediumState_LockedWrite"/> because the value of this attribute is
9845 stored within the storage unit itself. Also note that changing the
9846 attribute value is not possible in such case, as well as when the
9847 medium is the <link to="MediumState_LockedRead"/> state.
9848 </note>
9849 </desc>
9850 </attribute>
9851
9852 <attribute name="state" type="MediumState" readonly="yes">
9853 <desc>
9854 Returns the current medium state, which is the last state set by
9855 the accessibility check performed by <link to="#refreshState"/>.
9856 If that method has not yet been called on the medium, the state
9857 is "Inaccessible"; as opposed to truly inaccessible media, the
9858 value of <link to="#lastAccessError"/> will be an empty string in
9859 that case.
9860
9861 <note>As of version 3.1, this no longer performs an accessibility check
9862 automatically; call <link to="#refreshState"/> for that.
9863 </note>
9864 </desc>
9865 </attribute>
9866
9867 <attribute name="variant" type="unsigned long" readonly="yes">
9868 <desc>
9869 Returns the storage format variant information for this medium
9870 as a combination of the flags described at <link to="MediumVariant" />.
9871 Before <link to="#refreshState"/> is called this method returns
9872 an undefined value.
9873 </desc>
9874 </attribute>
9875
9876 <attribute name="location" type="wstring">
9877 <desc>
9878 Location of the storage unit holding medium data.
9879
9880 The format of the location string is medium type specific. For medium
9881 types using regular files in a host's file system, the location
9882 string is the full file name.
9883
9884 Some medium types may support changing the storage unit location by
9885 simply changing the value of this property. If this operation is not
9886 supported, the implementation will return E_NOTIMPL in attempt to set
9887 this attribute's value.
9888
9889 When setting a value of the location attribute which is a regular file
9890 in the host's file system, the given file name may be either relative to
9891 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
9892 absolute. Note that if the given location specification does not contain
9893 the file extension part then a proper default extension will be
9894 automatically appended by the implementation depending on the medium type.
9895 </desc>
9896 </attribute>
9897
9898 <attribute name="name" type="wstring" readonly="yes">
9899 <desc>
9900 Name of the storage unit holding medium data.
9901
9902 The returned string is a short version of the <link to="#location"/>
9903 attribute that is suitable for representing the medium in situations
9904 where the full location specification is too long (such as lists
9905 and comboboxes in GUI frontends). This string is also used by frontends
9906 to sort the media list alphabetically when needed.
9907
9908 For example, for locations that are regular files in the host's file
9909 system, the value of this attribute is just the file name (+ extension),
9910 without the path specification.
9911
9912 Note that as opposed to the <link to="#location"/> attribute, the name
9913 attribute will not necessary be unique for a list of media of the
9914 given type and format.
9915 </desc>
9916 </attribute>
9917
9918 <attribute name="deviceType" type="DeviceType" readonly="yes">
9919 <desc>Kind of device (DVD/Floppy/HardDisk) which is applicable to this
9920 medium.</desc>
9921 </attribute>
9922
9923 <attribute name="hostDrive" type="boolean" readonly="yes">
9924 <desc>True if this corresponds to a drive on the host.</desc>
9925 </attribute>
9926
9927 <attribute name="size" type="long long" readonly="yes">
9928 <desc>
9929 Physical size of the storage unit used to hold medium data (in bytes).
9930
9931 <note>
9932 For media whose <link to="#state"/> is <link
9933 to="MediumState_Inaccessible"/>, the value of this property is the
9934 last known size. For <link to="MediumState_NotCreated"/> media,
9935 the returned value is zero.
9936 </note>
9937 </desc>
9938 </attribute>
9939
9940 <attribute name="format" type="wstring" readonly="yes">
9941 <desc>
9942 Storage format of this medium.
9943
9944 The value of this attribute is a string that specifies a backend used
9945 to store medium data. The storage format is defined when you create a
9946 new medium or automatically detected when you open an existing medium,
9947 and cannot be changed later.
9948
9949 The list of all storage formats supported by this VirtualBox
9950 installation can be obtained using
9951 <link to="ISystemProperties::mediumFormats"/>.
9952 </desc>
9953 </attribute>
9954
9955 <attribute name="mediumFormat" type="IMediumFormat" readonly="yes">
9956 <desc>
9957 Storage medium format object corresponding to this medium.
9958
9959 The value of this attribute is a reference to the medium format object
9960 that specifies the backend properties used to store medium data. The
9961 storage format is defined when you create a new medium or automatically
9962 detected when you open an existing medium, and cannot be changed later.
9963
9964 <note>@c null is returned if there is no associated medium format
9965 object. This can e.g. happen for medium objects representing host
9966 drives and other special medium objects.</note>
9967 </desc>
9968 </attribute>
9969
9970 <attribute name="type" type="MediumType">
9971 <desc>
9972 Type (role) of this medium.
9973
9974 The following constraints apply when changing the value of this
9975 attribute:
9976 <ul>
9977 <li>If a medium is attached to a virtual machine (either in the
9978 current state or in one of the snapshots), its type cannot be
9979 changed.
9980 </li>
9981 <li>As long as the medium has children, its type cannot be set
9982 to <link to="MediumType_Writethrough"/>.
9983 </li>
9984 <li>The type of all differencing media is
9985 <link to="MediumType_Normal"/> and cannot be changed.
9986 </li>
9987 </ul>
9988
9989 The type of a newly created or opened medium is set to
9990 <link to="MediumType_Normal"/>, except for DVD and floppy media,
9991 which have a type of <link to="MediumType_Writethrough"/>.
9992 </desc>
9993 </attribute>
9994
9995 <attribute name="parent" type="IMedium" readonly="yes">
9996 <desc>
9997 Parent of this medium (the medium this medium is directly based
9998 on).
9999
10000 Only differencing media have parents. For base (non-differencing)
10001 media, @c null is returned.
10002 </desc>
10003 </attribute>
10004
10005 <attribute name="children" type="IMedium" safearray="yes" readonly="yes">
10006 <desc>
10007 Children of this medium (all differencing media directly based
10008 on this medium). A @c null array is returned if this medium
10009 does not have any children.
10010 </desc>
10011 </attribute>
10012
10013 <attribute name="base" type="IMedium" readonly="yes">
10014 <desc>
10015 Base medium of this medium.
10016
10017 If this is a differencing medium, its base medium is the medium
10018 the given medium branch starts from. For all other types of media, this
10019 property returns the medium object itself (i.e. the same object this
10020 property is read on).
10021 </desc>
10022 </attribute>
10023
10024 <attribute name="readOnly" type="boolean" readonly="yes">
10025 <desc>
10026 Returns @c true if this medium is read-only and @c false otherwise.
10027
10028 A medium is considered to be read-only when its contents cannot be
10029 modified without breaking the integrity of other parties that depend on
10030 this medium such as its child media or snapshots of virtual machines
10031 where this medium is attached to these machines. If there are no
10032 children and no such snapshots then there is no dependency and the
10033 medium is not read-only.
10034
10035 The value of this attribute can be used to determine the kind of the
10036 attachment that will take place when attaching this medium to a
10037 virtual machine. If the value is @c false then the medium will
10038 be attached directly. If the value is @c true then the medium
10039 will be attached indirectly by creating a new differencing child
10040 medium for that. See the interface description for more information.
10041
10042 Note that all <link to="MediumType_Immutable">Immutable</link> media
10043 are always read-only while all
10044 <link to="MediumType_Writethrough">Writethrough</link> media are
10045 always not.
10046
10047 <note>
10048 The read-only condition represented by this attribute is related to
10049 the medium type and usage, not to the current
10050 <link to="IMedium::state">medium state</link> and not to the read-only
10051 state of the storage unit.
10052 </note>
10053 </desc>
10054 </attribute>
10055
10056 <attribute name="logicalSize" type="long long" readonly="yes">
10057 <desc>
10058 Logical size of this medium (in bytes), as reported to the
10059 guest OS running inside the virtual machine this medium is
10060 attached to. The logical size is defined when the medium is created
10061 and cannot be changed later.
10062
10063 <note>
10064 Reading this property on a differencing medium will return the size
10065 of its <link to="#base"/> medium.
10066 </note>
10067 <note>
10068 For media whose state is <link to="#state"/> is <link
10069 to="MediumState_Inaccessible"/>, the value of this property is the
10070 last known logical size. For <link to="MediumState_NotCreated"/>
10071 media, the returned value is zero.
10072 </note>
10073 </desc>
10074 </attribute>
10075
10076 <attribute name="autoReset" type="boolean">
10077 <desc>
10078 Whether this differencing medium will be automatically reset each
10079 time a virtual machine it is attached to is powered up. This
10080 attribute is automatically set to @c true for the last
10081 differencing image of an "immutable" medium (see
10082 <link to="MediumType" />).
10083
10084 See <link to="#reset"/> for more information about resetting
10085 differencing media.
10086
10087 <note>
10088 Reading this property on a base (non-differencing) medium will
10089 always @c false. Changing the value of this property in this
10090 case is not supported.
10091 </note>
10092
10093 <result name="VBOX_E_NOT_SUPPORTED">
10094 This is not a differencing medium (when changing the attribute
10095 value).
10096 </result>
10097 </desc>
10098 </attribute>
10099
10100 <attribute name="lastAccessError" type="wstring" readonly="yes">
10101 <desc>
10102 Text message that represents the result of the last accessibility
10103 check performed by <link to="#refreshState"/>.
10104
10105 An empty string is returned if the last accessibility check
10106 was successful or has not yet been called. As a result, if
10107 <link to="#state" /> is "Inaccessible" and this attribute is empty,
10108 then <link to="#refreshState"/> has yet to be called; this is the
10109 default value of media after VirtualBox initialization.
10110 A non-empty string indicates a failure and should normally describe
10111 a reason of the failure (for example, a file read error).
10112 </desc>
10113 </attribute>
10114
10115 <attribute name="machineIds" type="uuid" mod="string" safearray="yes" readonly="yes">
10116 <desc>
10117 Array of UUIDs of all machines this medium is attached to.
10118
10119 A @c null array is returned if this medium is not attached to any
10120 machine or to any machine's snapshot.
10121
10122 <note>
10123 The returned array will include a machine even if this medium is not
10124 attached to that machine in the current state but attached to it in
10125 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
10126 details.
10127 </note>
10128 </desc>
10129 </attribute>
10130
10131 <method name="setIDs">
10132 <desc>
10133 Changes the UUID and parent UUID for a hard disk medium.
10134 </desc>
10135 <param name="setImageId" type="boolean" dir="in">
10136 <desc>
10137 Select whether a new image UUID is set or not.
10138 </desc>
10139 </param>
10140 <param name="imageId" type="uuid" mod="string" dir="in">
10141 <desc>
10142 New UUID for the image. If an empty string is passed, then a new
10143 UUID is automatically created, provided that @a setImageId is @c true.
10144 Specifying a zero UUID is not allowed.
10145 </desc>
10146 </param>
10147 <param name="setParentId" type="boolean" dir="in">
10148 <desc>
10149 Select whether a new parent UUID is set or not.
10150 </desc>
10151 </param>
10152 <param name="parentId" type="uuid" mod="string" dir="in">
10153 <desc>
10154 New parent UUID for the image. If an empty string is passed, then a
10155 new UUID is automatically created, provided @a setParentId is
10156 @c true. A zero UUID is valid.
10157 </desc>
10158 </param>
10159 <result name="E_INVALIDARG">
10160 Invalid parameter combination.
10161 </result>
10162 <result name="VBOX_E_NOT_SUPPORTED">
10163 Medium is not a hard disk medium.
10164 </result>
10165 </method>
10166
10167 <method name="refreshState">
10168 <desc>
10169 If the current medium state (see <link to="MediumState"/>) is one of
10170 "Created", "Inaccessible" or "LockedRead", then this performs an
10171 accessibility check on the medium and sets the value of the <link to="#state"/>
10172 attribute accordingly; that value is also returned for convenience.
10173
10174 For all other state values, this does not perform a refresh but returns
10175 the state only.
10176
10177 The refresh, if performed, may take a long time (several seconds or even
10178 minutes, depending on the storage unit location and format) because it performs an
10179 accessibility check of the storage unit. This check may cause a significant
10180 delay if the storage unit of the given medium is, for example, a file located
10181 on a network share which is not currently accessible due to connectivity
10182 problems. In that case, the call will not return until a timeout
10183 interval defined by the host OS for this operation expires. For this reason,
10184 it is recommended to never read this attribute on the main UI thread to avoid
10185 making the UI unresponsive.
10186
10187 If the last known state of the medium is "Created" and the accessibility
10188 check fails, then the state would be set to "Inaccessible", and
10189 <link to="#lastAccessError"/> may be used to get more details about the
10190 failure. If the state of the medium is "LockedRead", then it remains the
10191 same, and a non-empty value of <link to="#lastAccessError"/> will
10192 indicate a failed accessibility check in this case.
10193
10194 Note that not all medium states are applicable to all medium types.
10195 </desc>
10196 <param name="state" type="MediumState" dir="return">
10197 <desc>
10198 New medium state.
10199 </desc>
10200 </param>
10201 </method>
10202
10203 <method name="getSnapshotIds">
10204 <desc>
10205 Returns an array of UUIDs of all snapshots of the given machine where
10206 this medium is attached to.
10207
10208 If the medium is attached to the machine in the current state, then the
10209 first element in the array will always be the ID of the queried machine
10210 (i.e. the value equal to the @c machineId argument), followed by
10211 snapshot IDs (if any).
10212
10213 If the medium is not attached to the machine in the current state, then
10214 the array will contain only snapshot IDs.
10215
10216 The returned array may be @c null if this medium is not attached
10217 to the given machine at all, neither in the current state nor in one of
10218 the snapshots.
10219 </desc>
10220 <param name="machineId" type="uuid" mod="string" dir="in">
10221 <desc>
10222 UUID of the machine to query.
10223 </desc>
10224 </param>
10225 <param name="snapshotIds" type="uuid" mod="string" safearray="yes" dir="return">
10226 <desc>
10227 Array of snapshot UUIDs of the given machine using this medium.
10228 </desc>
10229 </param>
10230 </method>
10231
10232 <method name="lockRead">
10233 <desc>
10234 Locks this medium for reading.
10235
10236 A read lock is shared: many clients can simultaneously lock the
10237 same medium for reading unless it is already locked for writing (see
10238 <link to="#lockWrite"/>) in which case an error is returned.
10239
10240 When the medium is locked for reading, it cannot be modified
10241 from within VirtualBox. This means that any method that changes
10242 the properties of this medium or contents of the storage unit
10243 will return an error (unless explicitly stated otherwise). That
10244 includes an attempt to start a virtual machine that wants to
10245 write to the the medium.
10246
10247 When the virtual machine is started up, it locks for reading all
10248 media it uses in read-only mode. If some medium cannot be locked
10249 for reading, the startup procedure will fail.
10250 A medium is typically locked for reading while it is used by a running
10251 virtual machine but has a depending differencing image that receives
10252 the actual write operations. This way one base medium can have
10253 multiple child differencing images which can be written to
10254 simultaneously. Read-only media such as DVD and floppy images are
10255 also locked for reading only (so they can be in use by multiple
10256 machines simultaneously).
10257
10258 A medium is also locked for reading when it is the source of a
10259 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
10260
10261 The medium locked for reading must be unlocked using the <link
10262 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
10263 can be nested and must be followed by the same number of paired
10264 <link to="#unlockRead"/> calls.
10265
10266 This method sets the medium state (see <link to="#state"/>) to
10267 "LockedRead" on success. The medium's previous state must be
10268 one of "Created", "Inaccessible" or "LockedRead".
10269
10270 Locking an inaccessible medium is not an error; this method performs
10271 a logical lock that prevents modifications of this medium through
10272 the VirtualBox API, not a physical file-system lock of the underlying
10273 storage unit.
10274
10275 This method returns the current state of the medium
10276 <i>before</i> the operation.
10277
10278 <result name="VBOX_E_INVALID_OBJECT_STATE">
10279 Invalid medium state (e.g. not created, locked, inaccessible,
10280 creating, deleting).
10281 </result>
10282
10283 </desc>
10284 <param name="state" type="MediumState" dir="return">
10285 <desc>
10286 State of the medium after the operation.
10287 </desc>
10288 </param>
10289 </method>
10290
10291 <method name="unlockRead">
10292 <desc>
10293 Cancels the read lock previously set by <link to="#lockRead"/>.
10294
10295 For both success and failure, this method returns the current state
10296 of the medium <i>after</i> the operation.
10297
10298 See <link to="#lockRead"/> for more details.
10299
10300 <result name="VBOX_E_INVALID_OBJECT_STATE">
10301 Medium not locked for reading.
10302 </result>
10303
10304 </desc>
10305 <param name="state" type="MediumState" dir="return">
10306 <desc>
10307 State of the medium after the operation.
10308 </desc>
10309 </param>
10310 </method>
10311
10312 <method name="lockWrite">
10313 <desc>
10314 Locks this medium for writing.
10315
10316 A write lock, as opposed to <link to="#lockRead"/>, is
10317 exclusive: there may be only one client holding a write lock,
10318 and there may be no read locks while the write lock is held.
10319 As a result, read-locking fails if a write lock is held, and
10320 write-locking fails if either a read or another write lock is held.
10321
10322 When a medium is locked for writing, it cannot be modified
10323 from within VirtualBox, and it is not guaranteed that the values
10324 of its properties are up-to-date. Any method that changes the
10325 properties of this medium or contents of the storage unit will
10326 return an error (unless explicitly stated otherwise).
10327
10328 When a virtual machine is started up, it locks for writing all
10329 media it uses to write data to. If any medium could not be locked
10330 for writing, the startup procedure will fail. If a medium has
10331 differencing images, then while the machine is running, only
10332 the last ("leaf") differencing image is locked for writing,
10333 whereas its parents are locked for reading only.
10334
10335 A medium is also locked for writing when it is the target of a
10336 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
10337
10338 The medium locked for writing must be unlocked using the <link
10339 to="#unlockWrite"/> method. Write locks <i>cannot</i> be nested.
10340
10341 This method sets the medium state (see <link to="#state"/>) to
10342 "LockedWrite" on success. The medium's previous state must be
10343 either "Created" or "Inaccessible".
10344
10345 Locking an inaccessible medium is not an error; this method performs
10346 a logical lock that prevents modifications of this medium through
10347 the VirtualBox API, not a physical file-system lock of the underlying
10348 storage unit.
10349
10350 For both, success and failure, this method returns the current
10351 state of the medium <i>before</i> the operation.
10352
10353 <result name="VBOX_E_INVALID_OBJECT_STATE">
10354 Invalid medium state (e.g. not created, locked, inaccessible,
10355 creating, deleting).
10356 </result>
10357
10358 </desc>
10359 <param name="state" type="MediumState" dir="return">
10360 <desc>
10361 State of the medium after the operation.
10362 </desc>
10363 </param>
10364 </method>
10365
10366 <method name="unlockWrite">
10367 <desc>
10368 Cancels the write lock previously set by <link to="#lockWrite"/>.
10369
10370 For both success and failure, this method returns the current
10371 state of the medium <i>after</i> the operation.
10372
10373 See <link to="#lockWrite"/> for more details.
10374
10375 <result name="VBOX_E_INVALID_OBJECT_STATE">
10376 Medium not locked for writing.
10377 </result>
10378
10379 </desc>
10380 <param name="state" type="MediumState" dir="return">
10381 <desc>
10382 State of the medium after the operation.
10383 </desc>
10384 </param>
10385 </method>
10386
10387 <method name="close">
10388 <desc>
10389 Closes this medium.
10390
10391 The medium must not be attached to any known virtual machine
10392 and must not have any known child media, otherwise the
10393 operation will fail.
10394
10395 When the medium is successfully closed, it is removed from
10396 the list of registered media, but its storage unit is not
10397 deleted. In particular, this means that this medium can
10398 later be opened again using the <link to="IVirtualBox::openMedium"/>
10399 call.
10400
10401 Note that after this method successfully returns, the given medium
10402 object becomes uninitialized. This means that any attempt
10403 to call any of its methods or attributes will fail with the
10404 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
10405
10406 <result name="VBOX_E_INVALID_OBJECT_STATE">
10407 Invalid medium state (other than not created, created or
10408 inaccessible).
10409 </result>
10410 <result name="VBOX_E_OBJECT_IN_USE">
10411 Medium attached to virtual machine.
10412 </result>
10413 <result name="VBOX_E_FILE_ERROR">
10414 Settings file not accessible.
10415 </result>
10416 <result name="VBOX_E_XML_ERROR">
10417 Could not parse the settings file.
10418 </result>
10419
10420 </desc>
10421 </method>
10422
10423 <!-- property methods -->
10424
10425 <method name="getProperty">
10426 <desc>
10427 Returns the value of the custom medium property with the given name.
10428
10429 The list of all properties supported by the given medium format can
10430 be obtained with <link to="IMediumFormat::describeProperties"/>.
10431
10432 <note>If this method returns an empty string in @a value, the requested
10433 property is supported but currently not assigned any value.</note>
10434
10435 <result name="VBOX_E_OBJECT_NOT_FOUND">
10436 Requested property does not exist (not supported by the format).
10437 </result>
10438 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
10439 </desc>
10440 <param name="name" type="wstring" dir="in">
10441 <desc>Name of the property to get.</desc>
10442 </param>
10443 <param name="value" type="wstring" dir="return">
10444 <desc>Current property value.</desc>
10445 </param>
10446 </method>
10447
10448 <method name="setProperty">
10449 <desc>
10450 Sets the value of the custom medium property with the given name.
10451
10452 The list of all properties supported by the given medium format can
10453 be obtained with <link to="IMediumFormat::describeProperties"/>.
10454
10455 <note>Setting the property value to @c null or an empty string is
10456 equivalent to deleting the existing value. A default value (if it is
10457 defined for this property) will be used by the format backend in this
10458 case.</note>
10459
10460 <result name="VBOX_E_OBJECT_NOT_FOUND">
10461 Requested property does not exist (not supported by the format).
10462 </result>
10463 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
10464 </desc>
10465 <param name="name" type="wstring" dir="in">
10466 <desc>Name of the property to set.</desc>
10467 </param>
10468 <param name="value" type="wstring" dir="in">
10469 <desc>Property value to set.</desc>
10470 </param>
10471 </method>
10472
10473 <method name="getProperties">
10474 <desc>
10475 Returns values for a group of properties in one call.
10476
10477 The names of the properties to get are specified using the @a names
10478 argument which is a list of comma-separated property names or
10479 an empty string if all properties are to be returned.
10480 <note>Currently the value of this argument is ignored and the method
10481 always returns all existing properties.</note>
10482
10483 The list of all properties supported by the given medium format can
10484 be obtained with <link to="IMediumFormat::describeProperties"/>.
10485
10486 The method returns two arrays, the array of property names corresponding
10487 to the @a names argument and the current values of these properties.
10488 Both arrays have the same number of elements with each element at the
10489 given index in the first array corresponds to an element at the same
10490 index in the second array.
10491
10492 For properties that do not have assigned values, an empty string is
10493 returned at the appropriate index in the @a returnValues array.
10494
10495 </desc>
10496 <param name="names" type="wstring" dir="in">
10497 <desc>
10498 Names of properties to get.
10499 </desc>
10500 </param>
10501 <param name="returnNames" type="wstring" safearray="yes" dir="out">
10502 <desc>Names of returned properties.</desc>
10503 </param>
10504 <param name="returnValues" type="wstring" safearray="yes" dir="return">
10505 <desc>Values of returned properties.</desc>
10506 </param>
10507 </method>
10508
10509 <method name="setProperties">
10510 <desc>
10511 Sets values for a group of properties in one call.
10512
10513 The names of the properties to set are passed in the @a names
10514 array along with the new values for them in the @a values array. Both
10515 arrays have the same number of elements with each element at the given
10516 index in the first array corresponding to an element at the same index
10517 in the second array.
10518
10519 If there is at least one property name in @a names that is not valid,
10520 the method will fail before changing the values of any other properties
10521 from the @a names array.
10522
10523 Using this method over <link to="#setProperty"/> is preferred if you
10524 need to set several properties at once since it is more efficient.
10525
10526 The list of all properties supported by the given medium format can
10527 be obtained with <link to="IMediumFormat::describeProperties"/>.
10528
10529 Setting the property value to @c null or an empty string is equivalent
10530 to deleting the existing value. A default value (if it is defined for
10531 this property) will be used by the format backend in this case.
10532 </desc>
10533 <param name="names" type="wstring" safearray="yes" dir="in">
10534 <desc>Names of properties to set.</desc>
10535 </param>
10536 <param name="values" type="wstring" safearray="yes" dir="in">
10537 <desc>Values of properties to set.</desc>
10538 </param>
10539 </method>
10540
10541 <!-- storage methods -->
10542
10543 <method name="createBaseStorage">
10544 <desc>
10545 Starts creating a hard disk storage unit (fixed/dynamic, according
10546 to the variant flags) in in the background. The previous storage unit
10547 created for this object, if any, must first be deleted using
10548 <link to="#deleteStorage"/>, otherwise the operation will fail.
10549
10550 Before the operation starts, the medium is placed in
10551 <link to="MediumState_Creating"/> state. If the create operation
10552 fails, the medium will be placed back in <link to="MediumState_NotCreated"/>
10553 state.
10554
10555 After the returned progress object reports that the operation has
10556 successfully completed, the medium state will be set to <link
10557 to="MediumState_Created"/>, the medium will be remembered by this
10558 VirtualBox installation and may be attached to virtual machines.
10559
10560 <result name="VBOX_E_NOT_SUPPORTED">
10561 The variant of storage creation operation is not supported. See <link
10562 to="IMediumFormat::capabilities"/>.
10563 </result>
10564 </desc>
10565 <param name="logicalSize" type="long long" dir="in">
10566 <desc>Maximum logical size of the medium in bytes.</desc>
10567 </param>
10568 <param name="variant" type="unsigned long" dir="in">
10569 <desc>Exact image variant which should be created (as a combination of
10570 <link to="MediumVariant" /> flags).</desc>
10571 </param>
10572 <param name="progress" type="IProgress" dir="return">
10573 <desc>Progress object to track the operation completion.</desc>
10574 </param>
10575 </method>
10576
10577 <method name="deleteStorage">
10578 <desc>
10579 Starts deleting the storage unit of this medium.
10580
10581 The medium must not be attached to any known virtual machine and must
10582 not have any known child media, otherwise the operation will fail.
10583 It will also fail if there is no storage unit to delete or if deletion
10584 is already in progress, or if the medium is being in use (locked for
10585 read or for write) or inaccessible. Therefore, the only valid state for
10586 this operation to succeed is <link to="MediumState_Created"/>.
10587
10588 Before the operation starts, the medium is placed in
10589 <link to="MediumState_Deleting"/> state and gets removed from the list
10590 of remembered hard disks (media registry). If the delete operation
10591 fails, the medium will be remembered again and placed back to
10592 <link to="MediumState_Created"/> state.
10593
10594 After the returned progress object reports that the operation is
10595 complete, the medium state will be set to
10596 <link to="MediumState_NotCreated"/> and you will be able to use one of
10597 the storage creation methods to create it again.
10598
10599 <see>#close()</see>
10600
10601 <result name="VBOX_E_OBJECT_IN_USE">
10602 Medium is attached to a virtual machine.
10603 </result>
10604 <result name="VBOX_E_NOT_SUPPORTED">
10605 Storage deletion is not allowed because neither of storage creation
10606 operations are supported. See
10607 <link to="IMediumFormat::capabilities"/>.
10608 </result>
10609
10610 <note>
10611 If the deletion operation fails, it is not guaranteed that the storage
10612 unit still exists. You may check the <link to="IMedium::state"/> value
10613 to answer this question.
10614 </note>
10615 </desc>
10616 <param name="progress" type="IProgress" dir="return">
10617 <desc>Progress object to track the operation completion.</desc>
10618 </param>
10619 </method>
10620
10621 <!-- diff methods -->
10622
10623 <method name="createDiffStorage">
10624 <desc>
10625 Starts creating an empty differencing storage unit based on this
10626 medium in the format and at the location defined by the @a target
10627 argument.
10628
10629 The target medium must be in <link to="MediumState_NotCreated"/>
10630 state (i.e. must not have an existing storage unit). Upon successful
10631 completion, this operation will set the type of the target medium to
10632 <link to="MediumType_Normal"/> and create a storage unit necessary to
10633 represent the differencing medium data in the given format (according
10634 to the storage format of the target object).
10635
10636 After the returned progress object reports that the operation is
10637 successfully complete, the target medium gets remembered by this
10638 VirtualBox installation and may be attached to virtual machines.
10639
10640 <note>
10641 The medium will be set to <link to="MediumState_LockedRead"/>
10642 state for the duration of this operation.
10643 </note>
10644 <result name="VBOX_E_OBJECT_IN_USE">
10645 Medium not in @c NotCreated state.
10646 </result>
10647 </desc>
10648 <param name="target" type="IMedium" dir="in">
10649 <desc>Target medium.</desc>
10650 </param>
10651 <param name="variant" type="unsigned long" dir="in">
10652 <desc>Exact image variant which should be created (as a combination of
10653 <link to="MediumVariant" /> flags).</desc>
10654 </param>
10655 <param name="progress" type="IProgress" dir="return">
10656 <desc>Progress object to track the operation completion.</desc>
10657 </param>
10658 </method>
10659
10660 <method name="mergeTo">
10661 <desc>
10662 Starts merging the contents of this medium and all intermediate
10663 differencing media in the chain to the given target medium.
10664
10665 The target medium must be either a descendant of this medium or
10666 its ancestor (otherwise this method will immediately return a failure).
10667 It follows that there are two logical directions of the merge operation:
10668 from ancestor to descendant (<i>forward merge</i>) and from descendant to
10669 ancestor (<i>backward merge</i>). Let us consider the following medium
10670 chain:
10671
10672 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
10673
10674 Here, calling this method on the <tt>Base</tt> medium object with
10675 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
10676 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
10677 merge. Note that in both cases the contents of the resulting medium
10678 will be the same, the only difference is the medium object that takes
10679 the result of the merge operation. In case of the forward merge in the
10680 above example, the result will be written to <tt>Diff_2</tt>; in case of
10681 the backward merge, the result will be written to <tt>Base</tt>. In
10682 other words, the result of the operation is always stored in the target
10683 medium.
10684
10685 Upon successful operation completion, the storage units of all media in
10686 the chain between this (source) medium and the target medium, including
10687 the source medium itself, will be automatically deleted and the
10688 relevant medium objects (including this medium) will become
10689 uninitialized. This means that any attempt to call any of
10690 their methods or attributes will fail with the
10691 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
10692 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
10693 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> media.
10694 Note that <tt>Diff_2</tt> in this case will become a base medium
10695 itself since it will no longer be based on any other medium.
10696
10697 Considering the above, all of the following conditions must be met in
10698 order for the merge operation to succeed:
10699 <ul>
10700 <li>
10701 Neither this (source) medium nor any intermediate
10702 differencing medium in the chain between it and the target
10703 medium is attached to any virtual machine.
10704 </li>
10705 <li>
10706 Neither the source medium nor the target medium is an
10707 <link to="MediumType_Immutable"/> medium.
10708 </li>
10709 <li>
10710 The part of the medium tree from the source medium to the
10711 target medium is a linear chain, i.e. all medium in this
10712 chain have exactly one child which is the next medium in this
10713 chain. The only exception from this rule is the target medium in
10714 the forward merge operation; it is allowed to have any number of
10715 child media because the merge operation will not change its
10716 logical contents (as it is seen by the guest OS or by children).
10717 </li>
10718 <li>
10719 None of the involved media are in
10720 <link to="MediumState_LockedRead"/> or
10721 <link to="MediumState_LockedWrite"/> state.
10722 </li>
10723 </ul>
10724
10725 <note>
10726 This (source) medium and all intermediates will be placed to <link
10727 to="MediumState_Deleting"/> state and the target medium will be
10728 placed to <link to="MediumState_LockedWrite"/> state and for the
10729 duration of this operation.
10730 </note>
10731 </desc>
10732 <param name="target" type="IMedium" dir="in">
10733 <desc>Target medium.</desc>
10734 </param>
10735 <param name="progress" type="IProgress" dir="return">
10736 <desc>Progress object to track the operation completion.</desc>
10737 </param>
10738 </method>
10739
10740 <!-- clone method -->
10741
10742 <method name="cloneTo">
10743 <desc>
10744 Starts creating a clone of this medium in the format and at the
10745 location defined by the @a target argument.
10746
10747 The target medium must be either in <link to="MediumState_NotCreated"/>
10748 state (i.e. must not have an existing storage unit) or in
10749 <link to="MediumState_Created"/> state (i.e. created and not locked, and
10750 big enough to hold the data or else the copy will be partial). Upon
10751 successful completion, the cloned medium will contain exactly the
10752 same sector data as the medium being cloned, except that in the
10753 first case a new UUID for the clone will be randomly generated, and in
10754 the second case the UUID will remain unchanged.
10755
10756 The @a parent argument defines which medium will be the parent
10757 of the clone. Passing a @c null reference indicates that the clone will
10758 be a base image, i.e. completely independent. It is possible to specify
10759 an arbitrary medium for this parameter, including the parent of the
10760 medium which is being cloned. Even cloning to a child of the source
10761 medium is possible. Note that when cloning to an existing image, the
10762 @a parent irgument is ignored.
10763
10764 After the returned progress object reports that the operation is
10765 successfully complete, the target medium gets remembered by this
10766 VirtualBox installation and may be attached to virtual machines.
10767
10768 <note>
10769 This medium will be placed to <link to="MediumState_LockedRead"/>
10770 state for the duration of this operation.
10771 </note>
10772 <result name="E_NOTIMPL">
10773 The specified cloning variant is not supported at the moment.
10774 </result>
10775 </desc>
10776 <param name="target" type="IMedium" dir="in">
10777 <desc>Target medium.</desc>
10778 </param>
10779 <param name="variant" type="unsigned long" dir="in">
10780 <desc>Exact image variant which should be created (as a combination of
10781 <link to="MediumVariant" /> flags).</desc>
10782 </param>
10783 <param name="parent" type="IMedium" dir="in">
10784 <desc>Parent of the cloned medium.</desc>
10785 </param>
10786 <param name="progress" type="IProgress" dir="return">
10787 <desc>Progress object to track the operation completion.</desc>
10788 </param>
10789 </method>
10790
10791 <!-- other methods -->
10792
10793 <method name="compact">
10794 <desc>
10795 Starts compacting of this medium. This means that the medium is
10796 transformed into a possibly more compact storage representation.
10797 This potentially creates temporary images, which can require a
10798 substantial amount of additional disk space.
10799
10800 This medium will be placed to <link to="MediumState_LockedWrite"/>
10801 state and all its parent media (if any) will be placed to
10802 <link to="MediumState_LockedRead"/> state for the duration of this
10803 operation.
10804
10805 Please note that the results can be either returned straight away,
10806 or later as the result of the background operation via the object
10807 returned via the @a progress parameter.
10808
10809 <result name="VBOX_E_NOT_SUPPORTED">
10810 Medium format does not support compacting (but potentially
10811 needs it).
10812 </result>
10813 </desc>
10814 <param name="progress" type="IProgress" dir="return">
10815 <desc>Progress object to track the operation completion.</desc>
10816 </param>
10817 </method>
10818
10819 <method name="resize">
10820 <desc>
10821 Starts resizing this medium. This means that the nominal size of the
10822 medium is set to the new value. Both increasing and decreasing the
10823 size is possible, and there are no safety checks, since VirtualBox
10824 does not make any assumptions about the medium contents.
10825
10826 Resizing usually needs additional disk space, and possibly also
10827 some temporary disk space. Note that resize does not create a full
10828 temporary copy of the medium, so the additional disk space requirement
10829 is usually much lower than using the clone operation.
10830
10831 This medium will be placed to <link to="MediumState_LockedWrite"/>
10832 state for the duration of this operation.
10833
10834 Please note that the results can be either returned straight away,
10835 or later as the result of the background operation via the object
10836 returned via the @a progress parameter.
10837
10838 <result name="VBOX_E_NOT_SUPPORTED">
10839 Medium format does not support resizing.
10840 </result>
10841 </desc>
10842 <param name="logicalSize" type="long long" dir="in">
10843 <desc>New nominal capacity of the medium in bytes.</desc>
10844 </param>
10845 <param name="progress" type="IProgress" dir="return">
10846 <desc>Progress object to track the operation completion.</desc>
10847 </param>
10848 </method>
10849
10850 <method name="reset">
10851 <desc>
10852 Starts erasing the contents of this differencing medium.
10853
10854 This operation will reset the differencing medium to its initial
10855 state when it does not contain any sector data and any read operation is
10856 redirected to its parent medium. This automatically gets called
10857 during VM power-up for every medium whose <link to="#autoReset" />
10858 attribute is @c true.
10859
10860 The medium will be write-locked for the duration of this operation (see
10861 <link to="#lockWrite" />).
10862
10863 <result name="VBOX_E_NOT_SUPPORTED">
10864 This is not a differencing medium.
10865 </result>
10866 <result name="VBOX_E_INVALID_OBJECT_STATE">
10867 Medium is not in <link to="MediumState_Created"/> or
10868 <link to="MediumState_Inaccessible"/> state.
10869 </result>
10870 </desc>
10871 <param name="progress" type="IProgress" dir="return">
10872 <desc>Progress object to track the operation completion.</desc>
10873 </param>
10874 </method>
10875
10876 </interface>
10877
10878
10879 <!--
10880 // IMediumFormat
10881 /////////////////////////////////////////////////////////////////////////
10882 -->
10883
10884 <enum
10885 name="DataType"
10886 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
10887 >
10888 <const name="Int32" value="0"/>
10889 <const name="Int8" value="1"/>
10890 <const name="String" value="2"/>
10891 </enum>
10892
10893 <enum
10894 name="DataFlags"
10895 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
10896 >
10897 <const name="None" value="0x00"/>
10898 <const name="Mandatory" value="0x01"/>
10899 <const name="Expert" value="0x02"/>
10900 <const name="Array" value="0x04"/>
10901 <const name="FlagMask" value="0x07"/>
10902 </enum>
10903
10904 <enum
10905 name="MediumFormatCapabilities"
10906 uuid="7342ba79-7ce0-4d94-8f86-5ed5a185d9bd"
10907 >
10908 <desc>
10909 Medium format capability flags.
10910 </desc>
10911
10912 <const name="Uuid" value="0x01">
10913 <desc>
10914 Supports UUIDs as expected by VirtualBox code.
10915 </desc>
10916 </const>
10917
10918 <const name="CreateFixed" value="0x02">
10919 <desc>
10920 Supports creating fixed size images, allocating all space instantly.
10921 </desc>
10922 </const>
10923
10924 <const name="CreateDynamic" value="0x04">
10925 <desc>
10926 Supports creating dynamically growing images, allocating space on
10927 demand.
10928 </desc>
10929 </const>
10930
10931 <const name="CreateSplit2G" value="0x08">
10932 <desc>
10933 Supports creating images split in chunks of a bit less than 2 GBytes.
10934 </desc>
10935 </const>
10936
10937 <const name="Differencing" value="0x10">
10938 <desc>
10939 Supports being used as a format for differencing media (see <link
10940 to="IMedium::createDiffStorage"/>).
10941 </desc>
10942 </const>
10943
10944 <const name="Asynchronous" value="0x20">
10945 <desc>
10946 Supports asynchronous I/O operations for at least some configurations.
10947 </desc>
10948 </const>
10949
10950 <const name="File" value="0x40">
10951 <desc>
10952 The format backend operates on files (the <link to="IMedium::location"/>
10953 attribute of the medium specifies a file used to store medium
10954 data; for a list of supported file extensions see
10955 <link to="IMediumFormat::describeFileExtensions"/>).
10956 </desc>
10957 </const>
10958
10959 <const name="Properties" value="0x80">
10960 <desc>
10961 The format backend uses the property interface to configure the storage
10962 location and properties (the <link to="IMediumFormat::describeProperties"/>
10963 method is used to get access to properties supported by the given medium format).
10964 </desc>
10965 </const>
10966
10967 <const name="TcpNetworking" value="0x100">
10968 <desc>
10969 The format backend uses the TCP networking interface for network access.
10970 </desc>
10971 </const>
10972
10973 <const name="VFS" value="0x200">
10974 <desc>
10975 The format backend supports virtual filesystem functionality.
10976 </desc>
10977 </const>
10978
10979 <const name="CapabilityMask" value="0x3FF"/>
10980 </enum>
10981
10982 <interface
10983 name="IMediumFormat" extends="$unknown"
10984 uuid="4e9a873f-0599-434a-8345-619ef3fb3111"
10985 wsmap="managed"
10986 >
10987 <desc>
10988 The IMediumFormat interface represents a medium format.
10989
10990 Each medium format has an associated backend which is used to handle
10991 media stored in this format. This interface provides information
10992 about the properties of the associated backend.
10993
10994 Each medium format is identified by a string represented by the
10995 <link to="#id"/> attribute. This string is used in calls like
10996 <link to="IVirtualBox::createHardDisk"/> to specify the desired
10997 format.
10998
10999 The list of all supported medium formats can be obtained using
11000 <link to="ISystemProperties::mediumFormats"/>.
11001
11002 <see>IMedium</see>
11003 </desc>
11004
11005 <attribute name="id" type="wstring" readonly="yes">
11006 <desc>
11007 Identifier of this format.
11008
11009 The format identifier is a non-@c null non-empty ASCII string. Note that
11010 this string is case-insensitive. This means that, for example, all of
11011 the following strings:
11012 <pre>
11013 "VDI"
11014 "vdi"
11015 "VdI"</pre>
11016 refer to the same medium format.
11017
11018 This string is used in methods of other interfaces where it is necessary
11019 to specify a medium format, such as
11020 <link to="IVirtualBox::createHardDisk"/>.
11021 </desc>
11022 </attribute>
11023
11024 <attribute name="name" type="wstring" readonly="yes">
11025 <desc>
11026 Human readable description of this format.
11027
11028 Mainly for use in file open dialogs.
11029 </desc>
11030 </attribute>
11031
11032 <attribute name="capabilities" type="unsigned long" readonly="yes">
11033 <desc>
11034 Capabilities of the format as a set of bit flags.
11035
11036 For the meaning of individual capability flags see
11037 <link to="MediumFormatCapabilities"/>.
11038 </desc>
11039 </attribute>
11040
11041 <method name="describeFileExtensions">
11042 <desc>
11043 Returns two arrays describing the supported file extensions.
11044
11045 The first array contains the supported extensions and the seconds one
11046 the type each extension supports. Both have the same size.
11047
11048 Note that some backends do not work on files, so this array may be
11049 empty.
11050
11051 <see>IMediumFormat::capabilities</see>
11052 </desc>
11053 <param name="extensions" type="wstring" safearray="yes" dir="out">
11054 <desc>The array of supported extensions.</desc>
11055 </param>
11056 <param name="type" type="DeviceType" safearray="yes" dir="out">
11057 <desc>The array which indicates the device type for every given extension.</desc>
11058 </param>
11059 </method>
11060
11061 <method name="describeProperties">
11062 <desc>
11063 Returns several arrays describing the properties supported by this
11064 format.
11065
11066 An element with the given index in each array describes one
11067 property. Thus, the number of elements in each returned array is the
11068 same and corresponds to the number of supported properties.
11069
11070 The returned arrays are filled in only if the
11071 <link to="MediumFormatCapabilities_Properties"/> flag is set.
11072 All arguments must be non-@c null.
11073
11074 <see>DataType</see>
11075 <see>DataFlags</see>
11076 </desc>
11077
11078 <param name="names" type="wstring" safearray="yes" dir="out">
11079 <desc>Array of property names.</desc>
11080 </param>
11081 <param name="description" type="wstring" safearray="yes" dir="out">
11082 <desc>Array of property descriptions.</desc>
11083 </param>
11084 <param name="types" type="DataType" safearray="yes" dir="out">
11085 <desc>Array of property types.</desc>
11086 </param>
11087 <param name="flags" type="unsigned long" safearray="yes" dir="out">
11088 <desc>Array of property flags.</desc>
11089 </param>
11090 <param name="defaults" type="wstring" safearray="yes" dir="out">
11091 <desc>Array of default property values.</desc>
11092 </param>
11093 </method>
11094
11095 </interface>
11096
11097
11098 <!--
11099 // IKeyboard
11100 /////////////////////////////////////////////////////////////////////////
11101 -->
11102
11103 <interface
11104 name="IKeyboard" extends="$unknown"
11105 uuid="f6916ec5-a881-4237-898f-7de58cf88672"
11106 wsmap="managed"
11107 >
11108 <desc>
11109 The IKeyboard interface represents the virtual machine's keyboard. Used
11110 in <link to="IConsole::keyboard"/>.
11111
11112 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
11113 to the virtual machine.
11114
11115 </desc>
11116 <method name="putScancode">
11117 <desc>Sends a scancode to the keyboard.
11118
11119 <result name="VBOX_E_IPRT_ERROR">
11120 Could not send scan code to virtual keyboard.
11121 </result>
11122
11123 </desc>
11124 <param name="scancode" type="long" dir="in"/>
11125 </method>
11126
11127 <method name="putScancodes">
11128 <desc>Sends an array of scancodes to the keyboard.
11129
11130 <result name="VBOX_E_IPRT_ERROR">
11131 Could not send all scan codes to virtual keyboard.
11132 </result>
11133
11134 </desc>
11135 <param name="scancodes" type="long" dir="in" safearray="yes"/>
11136 <param name="codesStored" type="unsigned long" dir="return"/>
11137 </method>
11138
11139 <method name="putCAD">
11140 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
11141 function is nothing special, it is just a convenience function
11142 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
11143
11144 <result name="VBOX_E_IPRT_ERROR">
11145 Could not send all scan codes to virtual keyboard.
11146 </result>
11147
11148 </desc>
11149 </method>
11150
11151 <attribute name="eventSource" type="IEventSource" readonly="yes">
11152 <desc>
11153 Event source for keyboard events.
11154 </desc>
11155 </attribute>
11156
11157 </interface>
11158
11159
11160 <!--
11161 // IMouse
11162 /////////////////////////////////////////////////////////////////////////
11163 -->
11164
11165 <enum
11166 name="MouseButtonState"
11167 uuid="9ee094b8-b28a-4d56-a166-973cb588d7f8"
11168 >
11169 <desc>
11170 Mouse button state.
11171 </desc>
11172
11173 <const name="LeftButton" value="0x01"/>
11174 <const name="RightButton" value="0x02"/>
11175 <const name="MiddleButton" value="0x04"/>
11176 <const name="WheelUp" value="0x08"/>
11177 <const name="WheelDown" value="0x10"/>
11178 <const name="XButton1" value="0x20"/>
11179 <const name="XButton2" value="0x40"/>
11180 <const name="MouseStateMask" value="0x7F"/>
11181 </enum>
11182
11183 <interface
11184 name="IMouse" extends="$unknown"
11185 uuid="05044a52-7811-4f00-ae3a-0ab7ff707b10"
11186 wsmap="managed"
11187 >
11188 <desc>
11189 The IMouse interface represents the virtual machine's mouse. Used in
11190 <link to="IConsole::mouse"/>.
11191
11192 Through this interface, the virtual machine's virtual mouse can be
11193 controlled.
11194 </desc>
11195
11196 <attribute name="absoluteSupported" type="boolean" readonly="yes">
11197 <desc>
11198 Whether the guest OS supports absolute mouse pointer positioning
11199 or not.
11200 <note>
11201 You can use the <link to="IMouseCapabilityChangedEvent"/>
11202 event to be instantly informed about changes of this attribute
11203 during virtual machine execution.
11204 </note>
11205 <see><link to="#putMouseEventAbsolute"/></see>
11206 </desc>
11207 </attribute>
11208
11209 <attribute name="relativeSupported" type="boolean" readonly="yes">
11210 <desc>
11211 Whether the guest OS supports relative mouse pointer positioning
11212 or not.
11213 <note>
11214 You can use the <link to="IMouseCapabilityChangedEvent"/>
11215 event to be instantly informed about changes of this attribute
11216 during virtual machine execution.
11217 </note>
11218 <see><link to="#putMouseEvent"/></see>
11219 </desc>
11220 </attribute>
11221
11222 <attribute name="needsHostCursor" type="boolean" readonly="yes">
11223 <desc>
11224 Whether the guest OS can currently switch to drawing it's own mouse
11225 cursor on demand.
11226 <note>
11227 You can use the <link to="IMouseCapabilityChangedEvent"/>
11228 event to be instantly informed about changes of this attribute
11229 during virtual machine execution.
11230 </note>
11231 <see><link to="#putMouseEvent"/></see>
11232 </desc>
11233 </attribute>
11234
11235 <method name="putMouseEvent">
11236 <desc>
11237 Initiates a mouse event using relative pointer movements
11238 along x and y axis.
11239
11240 <result name="E_ACCESSDENIED">
11241 Console not powered up.
11242 </result>
11243 <result name="VBOX_E_IPRT_ERROR">
11244 Could not send mouse event to virtual mouse.
11245 </result>
11246
11247 </desc>
11248
11249 <param name="dx" type="long" dir="in">
11250 <desc>
11251 Amount of pixels the mouse should move to the right.
11252 Negative values move the mouse to the left.
11253 </desc>
11254 </param>
11255 <param name="dy" type="long" dir="in">
11256 <desc>
11257 Amount of pixels the mouse should move downwards.
11258 Negative values move the mouse upwards.
11259 </desc>
11260 </param>
11261 <param name="dz" type="long" dir="in">
11262 <desc>
11263 Amount of mouse wheel moves.
11264 Positive values describe clockwise wheel rotations,
11265 negative values describe counterclockwise rotations.
11266 </desc>
11267 </param>
11268 <param name="dw" type="long" dir="in">
11269 <desc>
11270 Amount of horizontal mouse wheel moves.
11271 Positive values describe a movement to the left,
11272 negative values describe a movement to the right.
11273 </desc>
11274 </param>
11275 <param name="buttonState" type="long" dir="in">
11276 <desc>
11277 The current state of mouse buttons. Every bit represents
11278 a mouse button as follows:
11279 <table>
11280 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
11281 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
11282 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
11283 </table>
11284 A value of <tt>1</tt> means the corresponding button is pressed.
11285 otherwise it is released.
11286 </desc>
11287 </param>
11288 </method>
11289
11290 <method name="putMouseEventAbsolute">
11291 <desc>
11292 Positions the mouse pointer using absolute x and y coordinates.
11293 These coordinates are expressed in pixels and
11294 start from <tt>[1,1]</tt> which corresponds to the top left
11295 corner of the virtual display.
11296
11297 <result name="E_ACCESSDENIED">
11298 Console not powered up.
11299 </result>
11300 <result name="VBOX_E_IPRT_ERROR">
11301 Could not send mouse event to virtual mouse.
11302 </result>
11303
11304 <note>
11305 This method will have effect only if absolute mouse
11306 positioning is supported by the guest OS.
11307 </note>
11308
11309 <see><link to="#absoluteSupported"/></see>
11310 </desc>
11311
11312 <param name="x" type="long" dir="in">
11313 <desc>
11314 X coordinate of the pointer in pixels, starting from @c 1.
11315 </desc>
11316 </param>
11317 <param name="y" type="long" dir="in">
11318 <desc>
11319 Y coordinate of the pointer in pixels, starting from @c 1.
11320 </desc>
11321 </param>
11322 <param name="dz" type="long" dir="in">
11323 <desc>
11324 Amount of mouse wheel moves.
11325 Positive values describe clockwise wheel rotations,
11326 negative values describe counterclockwise rotations.
11327 </desc>
11328 </param>
11329 <param name="dw" type="long" dir="in">
11330 <desc>
11331 Amount of horizontal mouse wheel moves.
11332 Positive values describe a movement to the left,
11333 negative values describe a movement to the right.
11334 </desc>
11335 </param>
11336 <param name="buttonState" type="long" dir="in">
11337 <desc>
11338 The current state of mouse buttons. Every bit represents
11339 a mouse button as follows:
11340 <table>
11341 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
11342 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
11343 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
11344 </table>
11345 A value of @c 1 means the corresponding button is pressed.
11346 otherwise it is released.
11347 </desc>
11348 </param>
11349 </method>
11350
11351 <attribute name="eventSource" type="IEventSource" readonly="yes">
11352 <desc>
11353 Event source for mouse events.
11354 </desc>
11355 </attribute>
11356
11357 </interface>
11358
11359 <!--
11360 // IDisplay
11361 /////////////////////////////////////////////////////////////////////////
11362 -->
11363
11364 <enum
11365 name="FramebufferPixelFormat"
11366 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
11367 >
11368 <desc>
11369 Format of the video memory buffer. Constants represented by this enum can
11370 be used to test for particular values of <link
11371 to="IFramebuffer::pixelFormat"/>. See also <link
11372 to="IFramebuffer::requestResize"/>.
11373
11374 See also www.fourcc.org for more information about FOURCC pixel formats.
11375 </desc>
11376
11377 <const name="Opaque" value="0">
11378 <desc>
11379 Unknown buffer format (the user may not assume any particular format of
11380 the buffer).
11381 </desc>
11382 </const>
11383 <const name="FOURCC_RGB" value="0x32424752">
11384 <desc>
11385 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
11386 bit layout).
11387 </desc>
11388 </const>
11389 </enum>
11390
11391 <interface
11392 name="IFramebuffer" extends="$unknown"
11393 uuid="b7ed347a-5765-40a0-ae1c-f543eb4ddeaf"
11394 wsmap="suppress"
11395 >
11396 <attribute name="address" type="octet" mod="ptr" readonly="yes">
11397 <desc>Address of the start byte of the frame buffer.</desc>
11398 </attribute>
11399
11400 <attribute name="width" type="unsigned long" readonly="yes">
11401 <desc>Frame buffer width, in pixels.</desc>
11402 </attribute>
11403
11404 <attribute name="height" type="unsigned long" readonly="yes">
11405 <desc>Frame buffer height, in pixels.</desc>
11406 </attribute>
11407
11408 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
11409 <desc>
11410 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
11411 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
11412 are: 8, 15, 16, 24 and 32.
11413 </desc>
11414 </attribute>
11415
11416 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
11417 <desc>
11418 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
11419 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
11420 size of the scan line must be aligned to 32 bits.
11421 </desc>
11422 </attribute>
11423
11424 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
11425 <desc>
11426 Frame buffer pixel format. It's either one of the values defined by <link
11427 to="FramebufferPixelFormat"/> or a raw FOURCC code.
11428 <note>
11429 This attribute must never return <link
11430 to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
11431 <link to="#address"/> points to must be always known.
11432 </note>
11433 </desc>
11434 </attribute>
11435
11436 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
11437 <desc>
11438 Defines whether this frame buffer uses the virtual video card's memory
11439 buffer (guest VRAM) directly or not. See <link
11440 to="IFramebuffer::requestResize"/> for more information.
11441 </desc>
11442 </attribute>
11443
11444 <attribute name="heightReduction" type="unsigned long" readonly="yes">
11445 <desc>
11446 Hint from the frame buffer about how much of the standard
11447 screen height it wants to use for itself. This information is
11448 exposed to the guest through the VESA BIOS and VMMDev interface
11449 so that it can use it for determining its video mode table. It
11450 is not guaranteed that the guest respects the value.
11451 </desc>
11452 </attribute>
11453
11454 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
11455 <desc>
11456 An alpha-blended overlay which is superposed over the frame buffer.
11457 The initial purpose is to allow the display of icons providing
11458 information about the VM state, including disk activity, in front
11459 ends which do not have other means of doing that. The overlay is
11460 designed to controlled exclusively by IDisplay. It has no locking
11461 of its own, and any changes made to it are not guaranteed to be
11462 visible until the affected portion of IFramebuffer is updated. The
11463 overlay can be created lazily the first time it is requested. This
11464 attribute can also return @c null to signal that the overlay is not
11465 implemented.
11466 </desc>
11467 </attribute>
11468
11469 <attribute name="winId" type="long long" readonly="yes">
11470 <desc>
11471 Platform-dependent identifier of the window where context of this
11472 frame buffer is drawn, or zero if there's no such window.
11473 </desc>
11474 </attribute>
11475
11476 <method name="lock">
11477 <desc>
11478 Locks the frame buffer.
11479 Gets called by the IDisplay object where this frame buffer is
11480 bound to.
11481 </desc>
11482 </method>
11483
11484 <method name="unlock">
11485 <desc>
11486 Unlocks the frame buffer.
11487 Gets called by the IDisplay object where this frame buffer is
11488 bound to.
11489 </desc>
11490 </method>
11491
11492 <method name="notifyUpdate">
11493 <desc>
11494 Informs about an update.
11495 Gets called by the display object where this buffer is
11496 registered.
11497 </desc>
11498 <param name="x" type="unsigned long" dir="in"/>
11499 <param name="y" type="unsigned long" dir="in"/>
11500 <param name="width" type="unsigned long" dir="in"/>
11501 <param name="height" type="unsigned long" dir="in"/>
11502 </method>
11503
11504 <method name="requestResize">
11505 <desc>
11506 Requests a size and pixel format change.
11507
11508 There are two modes of working with the video buffer of the virtual
11509 machine. The <i>indirect</i> mode implies that the IFramebuffer
11510 implementation allocates a memory buffer for the requested display mode
11511 and provides it to the virtual machine. In <i>direct</i> mode, the
11512 IFramebuffer implementation uses the memory buffer allocated and owned
11513 by the virtual machine. This buffer represents the video memory of the
11514 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
11515 usually faster because the implementation gets a raw pointer to the
11516 guest VRAM buffer which it can directly use for visualizing the contents
11517 of the virtual display, as opposed to the indirect mode where the
11518 contents of guest VRAM are copied to the memory buffer provided by
11519 the implementation every time a display update occurs.
11520
11521 It is important to note that the direct mode is really fast only when
11522 the implementation uses the given guest VRAM buffer directly, for
11523 example, by blitting it to the window representing the virtual machine's
11524 display, which saves at least one copy operation comparing to the
11525 indirect mode. However, using the guest VRAM buffer directly is not
11526 always possible: the format and the color depth of this buffer may be
11527 not supported by the target window, or it may be unknown (opaque) as in
11528 case of text or non-linear multi-plane VGA video modes. In this case,
11529 the indirect mode (that is always available) should be used as a
11530 fallback: when the guest VRAM contents are copied to the
11531 implementation-provided memory buffer, color and format conversion is
11532 done automatically by the underlying code.
11533
11534 The @a pixelFormat parameter defines whether the direct mode is
11535 available or not. If @a pixelFormat is <link
11536 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
11537 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
11538 @a bytesPerLine parameters must be ignored and the implementation must use
11539 the indirect mode (where it provides its own buffer in one of the
11540 supported formats). In all other cases, @a pixelFormat together with
11541 @a bitsPerPixel and @a bytesPerLine define the format of the video memory
11542 buffer pointed to by the @a VRAM parameter and the implementation is
11543 free to choose which mode to use. To indicate that this frame buffer uses
11544 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
11545 attribute must return @c true and <link to="#address"/> must
11546 return exactly the same address that is passed in the @a VRAM parameter
11547 of this method; otherwise it is assumed that the indirect strategy is
11548 chosen.
11549
11550 The @a width and @a height parameters represent the size of the
11551 requested display mode in both modes. In case of indirect mode, the
11552 provided memory buffer should be big enough to store data of the given
11553 display mode. In case of direct mode, it is guaranteed that the given
11554 @a VRAM buffer contains enough space to represent the display mode of the
11555 given size. Note that this frame buffer's <link to="#width"/> and <link
11556 to="#height"/> attributes must return exactly the same values as
11557 passed to this method after the resize is completed (see below).
11558
11559 The @a finished output parameter determines if the implementation has
11560 finished resizing the frame buffer or not. If, for some reason, the
11561 resize cannot be finished immediately during this call, @a finished
11562 must be set to @c false, and the implementation must call
11563 <link to="IDisplay::resizeCompleted"/> after it has returned from
11564 this method as soon as possible. If @a finished is @c false, the
11565 machine will not call any frame buffer methods until
11566 <link to="IDisplay::resizeCompleted"/> is called.
11567
11568 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
11569 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
11570 this frame buffer must return exactly the same values as specified in the
11571 parameters of this method, after the resize is completed. If the
11572 indirect mode is chosen, these attributes must return values describing
11573 the format of the implementation's own memory buffer <link
11574 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
11575 value must always correlate with <link to="#pixelFormat"/>. Note that
11576 the <link to="#pixelFormat"/> attribute must never return <link
11577 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
11578
11579 <note>
11580 This method is called by the IDisplay object under the
11581 <link to="#lock"/> provided by this IFramebuffer
11582 implementation. If this method returns @c false in @a finished, then
11583 this lock is not released until
11584 <link to="IDisplay::resizeCompleted"/> is called.
11585 </note>
11586 </desc>
11587 <param name="screenId" type="unsigned long" dir="in">
11588 <desc>
11589 Logical screen number. Must be used in the corresponding call to
11590 <link to="IDisplay::resizeCompleted"/> if this call is made.
11591 </desc>
11592 </param>
11593 <param name="pixelFormat" type="unsigned long" dir="in">
11594 <desc>
11595 Pixel format of the memory buffer pointed to by @a VRAM.
11596 See also <link to="FramebufferPixelFormat"/>.
11597 </desc>
11598 </param>
11599 <param name="VRAM" type="octet" mod="ptr" dir="in">
11600 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
11601 </param>
11602 <param name="bitsPerPixel" type="unsigned long" dir="in">
11603 <desc>Color depth, bits per pixel.</desc>
11604 </param>
11605 <param name="bytesPerLine" type="unsigned long" dir="in">
11606 <desc>Size of one scan line, in bytes.</desc>
11607 </param>
11608 <param name="width" type="unsigned long" dir="in">
11609 <desc>Width of the guest display, in pixels.</desc>
11610 </param>
11611 <param name="height" type="unsigned long" dir="in">
11612 <desc>Height of the guest display, in pixels.</desc>
11613 </param>
11614 <param name="finished" type="boolean" dir="return">
11615 <desc>
11616 Can the VM start using the new frame buffer immediately
11617 after this method returns or it should wait for
11618 <link to="IDisplay::resizeCompleted"/>.
11619 </desc>
11620 </param>
11621 </method>
11622
11623 <method name="videoModeSupported">
11624 <desc>
11625 Returns whether the frame buffer implementation is willing to
11626 support a given video mode. In case it is not able to render
11627 the video mode (or for some reason not willing), it should
11628 return @c false. Usually this method is called when the guest
11629 asks the VMM device whether a given video mode is supported
11630 so the information returned is directly exposed to the guest.
11631 It is important that this method returns very quickly.
11632 </desc>
11633 <param name="width" type="unsigned long" dir="in"/>
11634 <param name="height" type="unsigned long" dir="in"/>
11635 <param name="bpp" type="unsigned long" dir="in"/>
11636 <param name="supported" type="boolean" dir="return"/>
11637 </method>
11638
11639 <method name="getVisibleRegion">
11640 <desc>
11641 Returns the visible region of this frame buffer.
11642
11643 If the @a rectangles parameter is @c null then the value of the
11644 @a count parameter is ignored and the number of elements necessary to
11645 describe the current visible region is returned in @a countCopied.
11646
11647 If @a rectangles is not @c null but @a count is less
11648 than the required number of elements to store region data, the method
11649 will report a failure. If @a count is equal or greater than the
11650 required number of elements, then the actual number of elements copied
11651 to the provided array will be returned in @a countCopied.
11652
11653 <note>
11654 The address of the provided array must be in the process space of
11655 this IFramebuffer object.
11656 </note>
11657 <note>
11658 Method not yet implemented.
11659 </note>
11660 </desc>
11661 <param name="rectangles" type="octet" mod="ptr" dir="in">
11662 <desc>Pointer to the @c RTRECT array to receive region data.</desc>
11663 </param>
11664 <param name="count" type="unsigned long" dir="in">
11665 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
11666 </param>
11667 <param name="countCopied" type="unsigned long" dir="return">
11668 <desc>Number of elements copied to the @a rectangles array.</desc>
11669 </param>
11670 </method>
11671
11672 <method name="setVisibleRegion">
11673 <desc>
11674 Suggests a new visible region to this frame buffer. This region
11675 represents the area of the VM display which is a union of regions of
11676 all top-level windows of the guest operating system running inside the
11677 VM (if the Guest Additions for this system support this
11678 functionality). This information may be used by the frontends to
11679 implement the seamless desktop integration feature.
11680
11681 <note>
11682 The address of the provided array must be in the process space of
11683 this IFramebuffer object.
11684 </note>
11685 <note>
11686 The IFramebuffer implementation must make a copy of the provided
11687 array of rectangles.
11688 </note>
11689 <note>
11690 Method not yet implemented.
11691 </note>
11692 </desc>
11693 <param name="rectangles" type="octet" mod="ptr" dir="in">
11694 <desc>Pointer to the @c RTRECT array.</desc>
11695 </param>
11696 <param name="count" type="unsigned long" dir="in">
11697 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
11698 </param>
11699 </method>
11700
11701 <method name="processVHWACommand">
11702 <desc>
11703 Posts a Video HW Acceleration Command to the frame buffer for processing.
11704 The commands used for 2D video acceleration (DDraw surface creation/destroying, blitting, scaling, color conversion, overlaying, etc.)
11705 are posted from quest to the host to be processed by the host hardware.
11706
11707 <note>
11708 The address of the provided command must be in the process space of
11709 this IFramebuffer object.
11710 </note>
11711 </desc>
11712
11713 <param name="command" type="octet" mod="ptr" dir="in">
11714 <desc>Pointer to VBOXVHWACMD containing the command to execute.</desc>
11715 </param>
11716 </method>
11717
11718 </interface>
11719
11720 <interface
11721 name="IFramebufferOverlay" extends="IFramebuffer"
11722 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
11723 wsmap="suppress"
11724 >
11725 <desc>
11726 The IFramebufferOverlay interface represents an alpha blended overlay
11727 for displaying status icons above an IFramebuffer. It is always created
11728 not visible, so that it must be explicitly shown. It only covers a
11729 portion of the IFramebuffer, determined by its width, height and
11730 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
11731 that order) format, and may be written to directly. Do re-read the
11732 width though, after setting it, as it may be adjusted (increased) to
11733 make it more suitable for the front end.
11734 </desc>
11735 <attribute name="x" type="unsigned long" readonly="yes">
11736 <desc>X position of the overlay, relative to the frame buffer.</desc>
11737 </attribute>
11738
11739 <attribute name="y" type="unsigned long" readonly="yes">
11740 <desc>Y position of the overlay, relative to the frame buffer.</desc>
11741 </attribute>
11742
11743 <attribute name="visible" type="boolean" readonly="no">
11744 <desc>
11745 Whether the overlay is currently visible.
11746 </desc>
11747 </attribute>
11748
11749 <attribute name="alpha" type="unsigned long" readonly="no">
11750 <desc>
11751 The global alpha value for the overlay. This may or may not be
11752 supported by a given front end.
11753 </desc>
11754 </attribute>
11755
11756 <method name="move">
11757 <desc>
11758 Changes the overlay's position relative to the IFramebuffer.
11759 </desc>
11760 <param name="x" type="unsigned long" dir="in"/>
11761 <param name="y" type="unsigned long" dir="in"/>
11762 </method>
11763
11764 </interface>
11765
11766 <interface
11767 name="IDisplay" extends="$unknown"
11768 uuid="09EED313-CD56-4D06-BD56-FAC0F716B5DD"
11769 wsmap="managed"
11770 >
11771 <desc>
11772 The IDisplay interface represents the virtual machine's display.
11773
11774 The object implementing this interface is contained in each
11775 <link to="IConsole::display"/> attribute and represents the visual
11776 output of the virtual machine.
11777
11778 The virtual display supports pluggable output targets represented by the
11779 IFramebuffer interface. Examples of the output target are a window on
11780 the host computer or an RDP session's display on a remote computer.
11781 </desc>
11782 <method name="getScreenResolution">
11783 <desc>Queries display width, height and color depth for given screen.</desc>
11784 <param name="screenId" type="unsigned long" dir="in"/>
11785 <param name="width" type="unsigned long" dir="out"/>
11786 <param name="height" type="unsigned long" dir="out"/>
11787 <param name="bitsPerPixel" type="unsigned long" dir="out"/>
11788 </method>
11789
11790 <method name="setFramebuffer">
11791 <desc>
11792 Sets the framebuffer for given screen.
11793 </desc>
11794 <param name="screenId" type="unsigned long" dir="in"/>
11795 <param name="framebuffer" type="IFramebuffer" dir="in"/>
11796 </method>
11797
11798 <method name="getFramebuffer">
11799 <desc>
11800 Queries the framebuffer for given screen.
11801 </desc>
11802 <param name="screenId" type="unsigned long" dir="in"/>
11803 <param name="framebuffer" type="IFramebuffer" dir="out"/>
11804 <param name="xOrigin" type="long" dir="out"/>
11805 <param name="yOrigin" type="long" dir="out"/>
11806 </method>
11807
11808 <method name="setVideoModeHint">
11809 <desc>
11810 Asks VirtualBox to request the given video mode from
11811 the guest. This is just a hint and it cannot be guaranteed
11812 that the requested resolution will be used. Guest Additions
11813 are required for the request to be seen by guests. The caller
11814 should issue the request and wait for a resolution change and
11815 after a timeout retry.
11816
11817 Specifying @c 0 for either @a width, @a height or @a bitsPerPixel
11818 parameters means that the corresponding values should be taken from the
11819 current video mode (i.e. left unchanged).
11820
11821 If the guest OS supports multi-monitor configuration then the @a display
11822 parameter specifies the number of the guest display to send the hint to:
11823 @c 0 is the primary display, @c 1 is the first secondary and
11824 so on. If the multi-monitor configuration is not supported, @a display
11825 must be @c 0.
11826
11827 <result name="E_INVALIDARG">
11828 The @a display is not associated with any monitor.
11829 </result>
11830
11831 </desc>
11832 <param name="width" type="unsigned long" dir="in"/>
11833 <param name="height" type="unsigned long" dir="in"/>
11834 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
11835 <param name="display" type="unsigned long" dir="in"/>
11836 </method>
11837
11838 <method name="setSeamlessMode">
11839 <desc>
11840 Enables or disables seamless guest display rendering (seamless desktop
11841 integration) mode.
11842 <note>
11843 Calling this method has no effect if <link
11844 to="IGuest::getFacilityStatus"/> with facility <link to="AdditionsFacilityType::Seamless"/>
11845 does not return <link to="AdditionsFacilityStatus::Active"/>.
11846 </note>
11847 </desc>
11848 <param name="enabled" type="boolean" dir="in"/>
11849 </method>
11850
11851 <method name="takeScreenShot">
11852 <desc>
11853 Takes a screen shot of the requested size and copies it to the
11854 32-bpp buffer allocated by the caller and pointed to by @a address.
11855 A pixel consists of 4 bytes in order: B, G, R, 0.
11856
11857 <note>This API can be used only locally by a VM process through the
11858 COM/XPCOM C++ API as it requires pointer support. It is not
11859 available for scripting langages, Java or any webservice clients.
11860 Unless you are writing a new VM frontend use
11861 <link to="#takeScreenShotToArray" />.
11862 </note>
11863
11864 <result name="E_NOTIMPL">
11865 Feature not implemented.
11866 </result>
11867 <result name="VBOX_E_IPRT_ERROR">
11868 Could not take a screenshot.
11869 </result>
11870
11871 </desc>
11872 <param name="screenId" type="unsigned long" dir="in"/>
11873 <param name="address" type="octet" mod="ptr" dir="in"/>
11874 <param name="width" type="unsigned long" dir="in"/>
11875 <param name="height" type="unsigned long" dir="in"/>
11876 </method>
11877
11878 <method name="takeScreenShotToArray">
11879 <desc>
11880 Takes a guest screen shot of the requested size and returns it as
11881 an array of bytes in uncompressed 32-bit RGBA format.
11882 A pixel consists of 4 bytes in order: R, G, B, 0xFF.
11883
11884 This API is slow, but could be the only option to get guest screenshot
11885 for scriptable languages not allowed to manipulate with addresses
11886 directly.
11887
11888 <result name="E_NOTIMPL">
11889 Feature not implemented.
11890 </result>
11891 <result name="VBOX_E_IPRT_ERROR">
11892 Could not take a screenshot.
11893 </result>
11894 </desc>
11895 <param name="screenId" type="unsigned long" dir="in">
11896 <desc>
11897 Monitor to take screenshot from.
11898 </desc>
11899 </param>
11900 <param name="width" type="unsigned long" dir="in">
11901 <desc>
11902 Desired image width.
11903 </desc>
11904 </param>
11905 <param name="height" type="unsigned long" dir="in">
11906 <desc>
11907 Desired image height.
11908 </desc>
11909 </param>
11910 <param name="screenData" type="octet" dir="return" safearray="yes">
11911 <desc>
11912 Array with resulting screen data.
11913 </desc>
11914 </param>
11915 </method>
11916
11917 <method name="takeScreenShotPNGToArray">
11918 <desc>
11919 Takes a guest screen shot of the requested size and returns it as
11920 PNG image in array.
11921
11922 <result name="E_NOTIMPL">
11923 Feature not implemented.
11924 </result>
11925 <result name="VBOX_E_IPRT_ERROR">
11926 Could not take a screenshot.
11927 </result>
11928 </desc>
11929 <param name="screenId" type="unsigned long" dir="in">
11930 <desc>
11931 Monitor to take the screenshot from.
11932 </desc>
11933 </param>
11934 <param name="width" type="unsigned long" dir="in">
11935 <desc>
11936 Desired image width.
11937 </desc>
11938 </param>
11939 <param name="height" type="unsigned long" dir="in">
11940 <desc>
11941 Desired image height.
11942 </desc>
11943 </param>
11944 <param name="screenData" type="octet" dir="return" safearray="yes">
11945 <desc>
11946 Array with resulting screen data.
11947 </desc>
11948 </param>
11949 </method>
11950
11951 <method name="drawToScreen">
11952 <desc>
11953 Draws a 32-bpp image of the specified size from the given buffer
11954 to the given point on the VM display.
11955
11956 <result name="E_NOTIMPL">
11957 Feature not implemented.
11958 </result>
11959 <result name="VBOX_E_IPRT_ERROR">
11960 Could not draw to screen.
11961 </result>
11962
11963 </desc>
11964 <param name="screenId" type="unsigned long" dir="in">
11965 <desc>
11966 Monitor to take the screenshot from.
11967 </desc>
11968 </param>
11969 <param name="address" type="octet" mod="ptr" dir="in">
11970 <desc>
11971 Address to store the screenshot to
11972 </desc>
11973 </param>
11974 <param name="x" type="unsigned long" dir="in">
11975 <desc>
11976 Relative to the screen top left corner.
11977 </desc>
11978 </param>
11979 <param name="y" type="unsigned long" dir="in">
11980 <desc>
11981 Relative to the screen top left corner.
11982 </desc>
11983 </param>
11984 <param name="width" type="unsigned long" dir="in">
11985 <desc>
11986 Desired image width.
11987 </desc>
11988 </param>
11989 <param name="height" type="unsigned long" dir="in">
11990 <desc>
11991 Desired image height.
11992 </desc>
11993 </param>
11994 </method>
11995
11996 <method name="invalidateAndUpdate">
11997 <desc>
11998 Does a full invalidation of the VM display and instructs the VM
11999 to update it.
12000
12001 <result name="VBOX_E_IPRT_ERROR">
12002 Could not invalidate and update screen.
12003 </result>
12004
12005 </desc>
12006 </method>
12007
12008 <method name="resizeCompleted">
12009 <desc>
12010 Signals that a framebuffer has completed the resize operation.
12011
12012 <result name="VBOX_E_NOT_SUPPORTED">
12013 Operation only valid for external frame buffers.
12014 </result>
12015
12016 </desc>
12017 <param name="screenId" type="unsigned long" dir="in"/>
12018 </method>
12019
12020 <method name="completeVHWACommand">
12021 <desc>
12022 Signals that the Video HW Acceleration command has completed.
12023 </desc>
12024
12025 <param name="command" type="octet" mod="ptr" dir="in">
12026 <desc>Pointer to VBOXVHWACMD containing the completed command.</desc>
12027 </param>
12028 </method>
12029
12030 </interface>
12031
12032 <!--
12033 // INetworkAdapter
12034 /////////////////////////////////////////////////////////////////////////
12035 -->
12036
12037 <enum
12038 name="NetworkAttachmentType"
12039 uuid="2ac4bc71-6b82-417a-acd1-f7426d2570d6"
12040 >
12041 <desc>
12042 Network attachment type.
12043 </desc>
12044
12045 <const name="Null" value="0">
12046 <desc>Null value, also means "not attached".</desc>
12047 </const>
12048 <const name="NAT" value="1"/>
12049 <const name="Bridged" value="2"/>
12050 <const name="Internal" value="3"/>
12051 <const name="HostOnly" value="4"/>
12052 <const name="Generic" value="5"/>
12053 </enum>
12054
12055 <enum
12056 name="NetworkAdapterType"
12057 uuid="3c2281e4-d952-4e87-8c7d-24379cb6a81c"
12058 >
12059 <desc>
12060 Network adapter type.
12061 </desc>
12062
12063 <const name="Null" value="0">
12064 <desc>Null value (never used by the API).</desc>
12065 </const>
12066 <const name="Am79C970A" value="1">
12067 <desc>AMD PCNet-PCI II network card (Am79C970A).</desc>
12068 </const>
12069 <const name="Am79C973" value="2">
12070 <desc>AMD PCNet-FAST III network card (Am79C973).</desc>
12071 </const>
12072 <const name="I82540EM" value="3">
12073 <desc>Intel PRO/1000 MT Desktop network card (82540EM).</desc>
12074 </const>
12075 <const name="I82543GC" value="4">
12076 <desc>Intel PRO/1000 T Server network card (82543GC).</desc>
12077 </const>
12078 <const name="I82545EM" value="5">
12079 <desc>Intel PRO/1000 MT Server network card (82545EM).</desc>
12080 </const>
12081 <const name="Virtio" value="6">
12082 <desc>Virtio network device.</desc>
12083 </const>
12084 </enum>
12085
12086 <enum
12087 name="NetworkAdapterPromiscModePolicy"
12088 uuid="c963768a-376f-4c85-8d84-d8ced4b7269e"
12089 >
12090 <desc>
12091 The promiscuous mode policy of an interface.
12092 </desc>
12093
12094 <const name="Deny" value="1">
12095 <desc>Deny promiscuous mode requests.</desc>
12096 </const>
12097 <const name="AllowNetwork" value="2">
12098 <desc>
12099 Allow promicuous mode, but restrict the scope it to the internal
12100 network so that it only applies to other VMs.
12101 </desc>
12102 </const>
12103 <const name="AllowAll" value="3">
12104 <desc>
12105 Allow promicuous mode, include unrelated traffic going over the wire
12106 and internally on the host.
12107 </desc>
12108 </const>
12109 </enum>
12110
12111 <interface
12112 name="INetworkAdapter" extends="$unknown"
12113 uuid="b22f71f6-082e-4a1d-aaf2-3ce40e275dd9"
12114 wsmap="managed"
12115 >
12116 <desc>
12117 Represents a virtual network adapter that is attached to a virtual machine.
12118 Each virtual machine has a fixed number of network adapter slots with one
12119 instance of this attached to each of them. Call
12120 <link to="IMachine::getNetworkAdapter" /> to get the network adapter that
12121 is attached to a given slot in a given machine.
12122
12123 Each network adapter can be in one of five attachment modes, which are
12124 represented by the <link to="NetworkAttachmentType" /> enumeration;
12125 see the <link to="#attachmentType" /> attribute.
12126 </desc>
12127
12128 <attribute name="adapterType" type="NetworkAdapterType">
12129 <desc>
12130 Type of the virtual network adapter. Depending on this value,
12131 VirtualBox will provide a different virtual network hardware
12132 to the guest.
12133 </desc>
12134 </attribute>
12135
12136 <attribute name="slot" type="unsigned long" readonly="yes">
12137 <desc>
12138 Slot number this adapter is plugged into. Corresponds to
12139 the value you pass to <link to="IMachine::getNetworkAdapter"/>
12140 to obtain this instance.
12141 </desc>
12142 </attribute>
12143
12144 <attribute name="enabled" type="boolean">
12145 <desc>
12146 Flag whether the network adapter is present in the
12147 guest system. If disabled, the virtual guest hardware will
12148 not contain this network adapter. Can only be changed when
12149 the VM is not running.
12150 </desc>
12151 </attribute>
12152
12153 <attribute name="MACAddress" type="wstring">
12154 <desc>
12155 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
12156 it to @c null or an empty string, VirtualBox will generate a unique MAC address.
12157 </desc>
12158 </attribute>
12159
12160 <attribute name="attachmentType" type="NetworkAttachmentType">
12161 <desc>
12162 Sets/Gets network attachment type of this network adapter.
12163 </desc>
12164 </attribute>
12165
12166 <attribute name="bridgedInterface" type="wstring">
12167 <desc>
12168 Name of the network interface the VM should be bridged to.
12169 </desc>
12170 </attribute>
12171
12172 <attribute name="hostOnlyInterface" type="wstring">
12173 <desc>
12174 Name of the host only network interface the VM is attached to.
12175 </desc>
12176 </attribute>
12177
12178 <attribute name="internalNetwork" type="wstring">
12179 <desc>
12180 Name of the internal network the VM is attached to.
12181 </desc>
12182 </attribute>
12183
12184 <attribute name="NATNetwork" type="wstring">
12185 <desc>
12186 Name of the NAT network the VM is attached to.
12187 </desc>
12188 </attribute>
12189
12190 <attribute name="genericDriver" type="wstring">
12191 <desc>
12192 Name of the driver to use for the "Generic" network attachment type.
12193 </desc>
12194 </attribute>
12195
12196 <attribute name="cableConnected" type="boolean">
12197 <desc>
12198 Flag whether the adapter reports the cable as connected or not.
12199 It can be used to report offline situations to a VM.
12200 </desc>
12201 </attribute>
12202
12203 <attribute name="lineSpeed" type="unsigned long">
12204 <desc>
12205 Line speed reported by custom drivers, in units of 1 kbps.
12206 </desc>
12207 </attribute>
12208
12209 <attribute name="promiscModePolicy" type="NetworkAdapterPromiscModePolicy">
12210 <desc>
12211 The promiscuous mode policy of the network adapter when attached to an
12212 internal network, host only network or a bridge.
12213 </desc>
12214 </attribute>
12215
12216 <attribute name="traceEnabled" type="boolean">
12217 <desc>
12218 Flag whether network traffic from/to the network card should be traced.
12219 Can only be toggled when the VM is turned off.
12220 </desc>
12221 </attribute>
12222
12223 <attribute name="traceFile" type="wstring">
12224 <desc>
12225 Filename where a network trace will be stored. If not set, VBox-pid.pcap
12226 will be used.
12227 </desc>
12228 </attribute>
12229
12230 <attribute name="natDriver" type="INATEngine" readonly="yes">
12231 <desc>
12232 Points to the NAT engine which handles the network address translation
12233 for this interface. This is active only when the interface actually uses
12234 NAT.
12235 </desc>
12236 </attribute>
12237
12238 <attribute name="bootPriority" type="unsigned long">
12239 <desc>
12240 Network boot priority of the adapter. Priority 1 is highest. If not set,
12241 the priority is considered to be at the lowest possible setting.
12242 </desc>
12243 </attribute>
12244
12245 <attribute name="bandwidthGroup" type="IBandwidthGroup">
12246 <desc>The bandwidth group this network adapter is assigned to.</desc>
12247 </attribute>
12248
12249 <!-- property methods -->
12250
12251 <method name="getProperty">
12252 <desc>
12253 Returns the value of the network attachment property with the given name.
12254
12255 If the requested data @a key does not exist, this function will
12256 succeed and return an empty string in the @a value argument.
12257
12258 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
12259 </desc>
12260 <param name="key" type="wstring" dir="in">
12261 <desc>Name of the property to get.</desc>
12262 </param>
12263 <param name="value" type="wstring" dir="return">
12264 <desc>Current property value.</desc>
12265 </param>
12266 </method>
12267
12268 <method name="setProperty">
12269 <desc>
12270 Sets the value of the network attachment property with the given name.
12271
12272 Setting the property value to @c null or an empty string is equivalent
12273 to deleting the existing value.
12274
12275 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
12276 </desc>
12277 <param name="key" type="wstring" dir="in">
12278 <desc>Name of the property to set.</desc>
12279 </param>
12280 <param name="value" type="wstring" dir="in">
12281 <desc>Property value to set.</desc>
12282 </param>
12283 </method>
12284
12285 <method name="getProperties">
12286 <desc>
12287 Returns values for a group of properties in one call.
12288
12289 The names of the properties to get are specified using the @a names
12290 argument which is a list of comma-separated property names or
12291 an empty string if all properties are to be returned.
12292 <note>Currently the value of this argument is ignored and the method
12293 always returns all existing properties.</note>
12294
12295 The method returns two arrays, the array of property names corresponding
12296 to the @a names argument and the current values of these properties.
12297 Both arrays have the same number of elements with each element at the
12298 given index in the first array corresponds to an element at the same
12299 index in the second array.
12300 </desc>
12301 <param name="names" type="wstring" dir="in">
12302 <desc>
12303 Names of properties to get.
12304 </desc>
12305 </param>
12306 <param name="returnNames" type="wstring" safearray="yes" dir="out">
12307 <desc>Names of returned properties.</desc>
12308 </param>
12309 <param name="returnValues" type="wstring" safearray="yes" dir="return">
12310 <desc>Values of returned properties.</desc>
12311 </param>
12312 </method>
12313
12314 </interface>
12315
12316
12317 <!--
12318 // ISerialPort
12319 /////////////////////////////////////////////////////////////////////////
12320 -->
12321
12322 <enum
12323 name="PortMode"
12324 uuid="533b5fe3-0185-4197-86a7-17e37dd39d76"
12325 >
12326 <desc>
12327 The PortMode enumeration represents possible communication modes for
12328 the virtual serial port device.
12329 </desc>
12330
12331 <const name="Disconnected" value="0">
12332 <desc>Virtual device is not attached to any real host device.</desc>
12333 </const>
12334 <const name="HostPipe" value="1">
12335 <desc>Virtual device is attached to a host pipe.</desc>
12336 </const>
12337 <const name="HostDevice" value="2">
12338 <desc>Virtual device is attached to a host device.</desc>
12339 </const>
12340 <const name="RawFile" value="3">
12341 <desc>Virtual device is attached to a raw file.</desc>
12342 </const>
12343 </enum>
12344
12345 <interface
12346 name="ISerialPort" extends="$unknown"
12347 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
12348 wsmap="managed"
12349 >
12350
12351 <desc>
12352 The ISerialPort interface represents the virtual serial port device.
12353
12354 The virtual serial port device acts like an ordinary serial port
12355 inside the virtual machine. This device communicates to the real
12356 serial port hardware in one of two modes: host pipe or host device.
12357
12358 In host pipe mode, the #path attribute specifies the path to the pipe on
12359 the host computer that represents a serial port. The #server attribute
12360 determines if this pipe is created by the virtual machine process at
12361 machine startup or it must already exist before starting machine
12362 execution.
12363
12364 In host device mode, the #path attribute specifies the name of the
12365 serial port device on the host computer.
12366
12367 There is also a third communication mode: the disconnected mode. In this
12368 mode, the guest OS running inside the virtual machine will be able to
12369 detect the serial port, but all port write operations will be discarded
12370 and all port read operations will return no data.
12371
12372 <see>IMachine::getSerialPort</see>
12373 </desc>
12374
12375 <attribute name="slot" type="unsigned long" readonly="yes">
12376 <desc>
12377 Slot number this serial port is plugged into. Corresponds to
12378 the value you pass to <link to="IMachine::getSerialPort"/>
12379 to obtain this instance.
12380 </desc>
12381 </attribute>
12382
12383 <attribute name="enabled" type="boolean">
12384 <desc>
12385 Flag whether the serial port is enabled. If disabled,
12386 the serial port will not be reported to the guest OS.
12387 </desc>
12388 </attribute>
12389
12390 <attribute name="IOBase" type="unsigned long">
12391 <desc>Base I/O address of the serial port.</desc>
12392 </attribute>
12393
12394 <attribute name="IRQ" type="unsigned long">
12395 <desc>IRQ number of the serial port.</desc>
12396 </attribute>
12397
12398 <attribute name="hostMode" type="PortMode">
12399 <desc>
12400 How is this port connected to the host.
12401 <note>
12402 Changing this attribute may fail if the conditions for
12403 <link to="#path"/> are not met.
12404 </note>
12405 </desc>
12406 </attribute>
12407
12408 <attribute name="server" type="boolean">
12409 <desc>
12410 Flag whether this serial port acts as a server (creates a new pipe on
12411 the host) or as a client (uses the existing pipe). This attribute is
12412 used only when <link to="#hostMode"/> is PortMode_HostPipe.
12413 </desc>
12414 </attribute>
12415
12416 <attribute name="path" type="wstring">
12417 <desc>
12418 Path to the serial port's pipe on the host when <link to="ISerialPort::hostMode"/> is
12419 PortMode_HostPipe, or the host serial device name when
12420 <link to="ISerialPort::hostMode"/> is PortMode_HostDevice. For both
12421 cases, setting a @c null or empty string as the attribute's value
12422 is an error. Otherwise, the value of this property is ignored.
12423 </desc>
12424 </attribute>
12425
12426 </interface>
12427
12428 <!--
12429 // IParallelPort
12430 /////////////////////////////////////////////////////////////////////////
12431 -->
12432
12433 <interface
12434 name="IParallelPort" extends="$unknown"
12435 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
12436 wsmap="managed"
12437 >
12438
12439 <desc>
12440 The IParallelPort interface represents the virtual parallel port device.
12441
12442 The virtual parallel port device acts like an ordinary parallel port
12443 inside the virtual machine. This device communicates to the real
12444 parallel port hardware using the name of the parallel device on the host
12445 computer specified in the #path attribute.
12446
12447 Each virtual parallel port device is assigned a base I/O address and an
12448 IRQ number that will be reported to the guest operating system and used
12449 to operate the given parallel port from within the virtual machine.
12450
12451 <see>IMachine::getParallelPort</see>
12452 </desc>
12453
12454 <attribute name="slot" type="unsigned long" readonly="yes">
12455 <desc>
12456 Slot number this parallel port is plugged into. Corresponds to
12457 the value you pass to <link to="IMachine::getParallelPort"/>
12458 to obtain this instance.
12459 </desc>
12460 </attribute>
12461
12462 <attribute name="enabled" type="boolean">
12463 <desc>
12464 Flag whether the parallel port is enabled. If disabled,
12465 the parallel port will not be reported to the guest OS.
12466 </desc>
12467 </attribute>
12468
12469 <attribute name="IOBase" type="unsigned long">
12470 <desc>Base I/O address of the parallel port.</desc>
12471 </attribute>
12472
12473 <attribute name="IRQ" type="unsigned long">
12474 <desc>IRQ number of the parallel port.</desc>
12475 </attribute>
12476
12477 <attribute name="path" type="wstring">
12478 <desc>
12479 Host parallel device name. If this parallel port is enabled, setting a
12480 @c null or an empty string as this attribute's value will result in
12481 an error.
12482 </desc>
12483 </attribute>
12484
12485 </interface>
12486
12487
12488 <!--
12489 // IMachineDebugger
12490 /////////////////////////////////////////////////////////////////////////
12491 -->
12492
12493 <interface
12494 name="IMachineDebugger" extends="$unknown"
12495 uuid="1bfd2fa9-0d91-44d3-9515-368dcbb3eb4d"
12496 wsmap="suppress"
12497 >
12498 <method name="dumpGuestCore">
12499 <desc>
12500 Takes a core dump of the guest.
12501
12502 See include/VBox/dbgfcorefmt.h for details on the file format.
12503 </desc>
12504 <param name="filename" type="wstring" dir="in">
12505 <desc>
12506 The name of the output file. The file must not exist.
12507 </desc>
12508 </param>
12509 <param name="compression" type="wstring" dir="in">
12510 <desc>
12511 Reserved for future compression method indicator.
12512 </desc>
12513 </param>
12514 </method>
12515
12516 <method name="dumpHostProcessCore">
12517 <desc>
12518 Takes a core dump of the VM process on the host.
12519
12520 This feature is not implemented in the 4.0.0 release but it may show up
12521 in a dot release.
12522 </desc>
12523 <param name="filename" type="wstring" dir="in">
12524 <desc>
12525 The name of the output file. The file must not exist.
12526 </desc>
12527 </param>
12528 <param name="compression" type="wstring" dir="in">
12529 <desc>
12530 Reserved for future compression method indicator.
12531 </desc>
12532 </param>
12533 </method>
12534
12535 <method name="info">
12536 <desc>
12537 Interfaces with the info dumpers (DBGFInfo).
12538
12539 This feature is not implemented in the 4.0.0 release but it may show up
12540 in a dot release.
12541 </desc>
12542 <param name="name" type="wstring" dir="in">
12543 <desc>
12544 The name of the info item.
12545 </desc>
12546 </param>
12547 <param name="args" type="wstring" dir="in">
12548 <desc>
12549 Arguments to the info dumper.
12550 </desc>
12551 </param>
12552 <param name="info" type="wstring" dir="return">
12553 <desc>
12554 The into string.
12555 </desc>
12556 </param>
12557 </method>
12558
12559 <method name="injectNMI">
12560 <desc>
12561 Inject an NMI into a running VT-x/AMD-V VM.
12562 </desc>
12563 </method>
12564
12565 <method name="modifyLogGroups">
12566 <desc>
12567 Modifies the group settings of the debug logger.
12568
12569 This feature is not implemented in the 4.0.0 release but may show up
12570 in a dot release.
12571 </desc>
12572 <param name="settings" type="wstring" dir="in">
12573 <desc>The group settings string. See iprt/log.h for details.</desc>
12574 </param>
12575 </method>
12576
12577 <method name="modifyLogFlags">
12578 <desc>
12579 Modifies the debug logger flags.
12580
12581 This feature is not implemented in the 4.0.0 release but may show up
12582 in a dot release.
12583 </desc>
12584 <param name="settings" type="wstring" dir="in">
12585 <desc>The flags settings string. See iprt/log.h for details.</desc>
12586 </param>
12587 </method>
12588
12589 <method name="modifyLogDestinations">
12590 <desc>
12591 Modifies the debug logger destinations.
12592
12593 This feature is not implemented in the 4.0.0 release but may show up
12594 in a dot release.
12595 </desc>
12596 <param name="settings" type="wstring" dir="in">
12597 <desc>The destination settings string. See iprt/log.h for details.</desc>
12598 </param>
12599 </method>
12600
12601 <method name="readPhysicalMemory">
12602 <desc>
12603 Reads guest physical memory, no side effects (MMIO++).
12604
12605 This feature is not implemented in the 4.0.0 release but may show up
12606 in a dot release.
12607 </desc>
12608 <param name="address" type="long long" dir="in">
12609 <desc>The guest physical address.</desc>
12610 </param>
12611 <param name="size" type="unsigned long" dir="in">
12612 <desc>The number of bytes to read.</desc>
12613 </param>
12614 <param name="bytes" type="octet" safearray="yes" dir="return">
12615 <desc>The bytes read.</desc>
12616 </param>
12617 </method>
12618
12619 <method name="writePhysicalMemory">
12620 <desc>
12621 Writes guest physical memory, access handles (MMIO++) are ignored.
12622
12623 This feature is not implemented in the 4.0.0 release but may show up
12624 in a dot release.
12625 </desc>
12626 <param name="address" type="long long" dir="in">
12627 <desc>The guest physical address.</desc>
12628 </param>
12629 <param name="size" type="unsigned long" dir="in">
12630 <desc>The number of bytes to read.</desc>
12631 </param>
12632 <param name="bytes" type="octet" safearray="yes" dir="in">
12633 <desc>The bytes to write.</desc>
12634 </param>
12635 </method>
12636
12637 <method name="readVirtualMemory">
12638 <desc>
12639 Reads guest virtual memory, no side effects (MMIO++).
12640
12641 This feature is not implemented in the 4.0.0 release but may show up
12642 in a dot release.
12643 </desc>
12644 <param name="cpuId" type="unsigned long" dir="in">
12645 <desc>The identifier of the Virtual CPU.</desc>
12646 </param>
12647 <param name="address" type="long long" dir="in">
12648 <desc>The guest virtual address.</desc>
12649 </param>
12650 <param name="size" type="unsigned long" dir="in">
12651 <desc>The number of bytes to read.</desc>
12652 </param>
12653 <param name="bytes" type="octet" safearray="yes" dir="return">
12654 <desc>The bytes read.</desc>
12655 </param>
12656 </method>
12657
12658 <method name="writeVirtualMemory">
12659 <desc>
12660 Writes guest virtual memory, access handles (MMIO++) are ignored.
12661
12662 This feature is not implemented in the 4.0.0 release but may show up
12663 in a dot release.
12664 </desc>
12665 <param name="cpuId" type="unsigned long" dir="in">
12666 <desc>The identifier of the Virtual CPU.</desc>
12667 </param>
12668 <param name="address" type="long long" dir="in">
12669 <desc>The guest virtual address.</desc>
12670 </param>
12671 <param name="size" type="unsigned long" dir="in">
12672 <desc>The number of bytes to read.</desc>
12673 </param>
12674 <param name="bytes" type="octet" safearray="yes" dir="in">
12675 <desc>The bytes to write.</desc>
12676 </param>
12677 </method>
12678
12679 <method name="detectOS">
12680 <desc>
12681 Tries to (re-)detect the guest OS kernel.
12682
12683 This feature is not implemented in the 4.0.0 release but may show up
12684 in a dot release.
12685 </desc>
12686 <param name="os" type="wstring" dir="return">
12687 <desc>
12688 The detected OS kernel on success.
12689 </desc>
12690 </param>
12691 </method>
12692
12693 <method name="getRegister">
12694 <desc>
12695 Gets one register.
12696
12697 This feature is not implemented in the 4.0.0 release but may show up
12698 in a dot release.
12699 </desc>
12700 <param name="cpuId" type="unsigned long" dir="in">
12701 <desc>The identifier of the Virtual CPU.</desc>
12702 </param>
12703 <param name="name" type="wstring" dir="in">
12704 <desc>The register name, case is ignored.</desc>
12705 </param>
12706 <param name="value" type="wstring" dir="return">
12707 <desc>
12708 The register value. This is usually a hex value (always 0x prefixed)
12709 but other format may be used for floating point registers (TBD).
12710 </desc>
12711 </param>
12712 </method>
12713
12714 <method name="getRegisters">
12715 <desc>
12716 Gets all the registers for the given CPU.
12717
12718 This feature is not implemented in the 4.0.0 release but may show up
12719 in a dot release.
12720 </desc>
12721 <param name="cpuId" type="unsigned long" dir="in">
12722 <desc>The identifier of the Virtual CPU.</desc>
12723 </param>
12724 <param name="names" type="wstring" dir="out" safearray="yes">
12725 <desc>Array containing the lowercase register names.</desc>
12726 </param>
12727 <param name="values" type="wstring" dir="out" safearray="yes">
12728 <desc>
12729 Array paralell to the names holding the register values as if the
12730 register was returned by <link to="IMachineDebugger::getRegister"/>.
12731 </desc>
12732 </param>
12733 </method>
12734
12735 <method name="setRegister">
12736 <desc>
12737 Gets one register.
12738
12739 This feature is not implemented in the 4.0.0 release but may show up
12740 in a dot release.
12741 </desc>
12742 <param name="cpuId" type="unsigned long" dir="in">
12743 <desc>The identifier of the Virtual CPU.</desc>
12744 </param>
12745 <param name="name" type="wstring" dir="in">
12746 <desc>The register name, case is ignored.</desc>
12747 </param>
12748 <param name="value" type="wstring" dir="in">
12749 <desc>
12750 The new register value. Hexadecimal, decimal and octal formattings
12751 are supported in addition to any special formattings returned by
12752 the getters.
12753 </desc>
12754 </param>
12755 </method>
12756
12757 <method name="setRegisters">
12758 <desc>
12759 Sets zero or more registers atomically.
12760
12761 This feature is not implemented in the 4.0.0 release but may show up
12762 in a dot release.
12763 </desc>
12764 <param name="cpuId" type="unsigned long" dir="in">
12765 <desc>The identifier of the Virtual CPU.</desc>
12766 </param>
12767 <param name="names" type="wstring" dir="in" safearray="yes">
12768 <desc>Array containing the register names, case ignored.</desc>
12769 </param>
12770 <param name="values" type="wstring" dir="in" safearray="yes">
12771 <desc>
12772 Array paralell to the names holding the register values. See
12773 <link to="IMachineDebugger::setRegister"/> for formatting
12774 guidelines.
12775 </desc>
12776 </param>
12777 </method>
12778
12779 <method name="dumpGuestStack">
12780 <desc>
12781 Produce a simple stack dump using the current guest state.
12782
12783 This feature is not implemented in the 4.0.0 release but may show up
12784 in a dot release.
12785 </desc>
12786 <param name="cpuId" type="unsigned long" dir="in">
12787 <desc>The identifier of the Virtual CPU.</desc>
12788 </param>
12789 <param name="stack" type="wstring" dir="return">
12790 <desc>String containing the formatted stack dump.</desc>
12791 </param>
12792 </method>
12793
12794 <method name="resetStats">
12795 <desc>
12796 Reset VM statistics.
12797 </desc>
12798 <param name="pattern" type="wstring" dir="in">
12799 <desc>The selection pattern. A bit similar to filename globbing.</desc>
12800 </param>
12801 </method>
12802
12803 <method name="dumpStats">
12804 <desc>
12805 Dumps VM statistics.
12806 </desc>
12807 <param name="pattern" type="wstring" dir="in">
12808 <desc>The selection pattern. A bit similar to filename globbing.</desc>
12809 </param>
12810 </method>
12811
12812 <method name="getStats">
12813 <desc>
12814 Get the VM statistics in a XMLish format.
12815 </desc>
12816 <param name="pattern" type="wstring" dir="in">
12817 <desc>The selection pattern. A bit similar to filename globbing.</desc>
12818 </param>
12819 <param name="withDescriptions" type="boolean" dir="in">
12820 <desc>Whether to include the descriptions.</desc>
12821 </param>
12822 <param name="stats" type="wstring" dir="out">
12823 <desc>The XML document containing the statistics.</desc>
12824 </param>
12825 </method>
12826
12827 <attribute name="singlestep" type="boolean">
12828 <desc>Switch for enabling singlestepping.</desc>
12829 </attribute>
12830
12831 <attribute name="recompileUser" type="boolean">
12832 <desc>Switch for forcing code recompilation for user mode code.</desc>
12833 </attribute>
12834
12835 <attribute name="recompileSupervisor" type="boolean">
12836 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
12837 </attribute>
12838
12839 <attribute name="PATMEnabled" type="boolean">
12840 <desc>Switch for enabling and disabling the PATM component.</desc>
12841 </attribute>
12842
12843 <attribute name="CSAMEnabled" type="boolean">
12844 <desc>Switch for enabling and disabling the CSAM component.</desc>
12845 </attribute>
12846
12847 <attribute name="logEnabled" type="boolean">
12848 <desc>Switch for enabling and disabling the debug logger.</desc>
12849 </attribute>
12850
12851 <attribute name="logFlags" type="wstring" readonly="yes">
12852 <desc>The debug logger flags.</desc>
12853 </attribute>
12854
12855 <attribute name="logGroups" type="wstring" readonly="yes">
12856 <desc>The debug logger's group settings.</desc>
12857 </attribute>
12858
12859 <attribute name="logDestinations" type="wstring" readonly="yes">
12860 <desc>The debug logger's destination settings.</desc>
12861 </attribute>
12862
12863 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
12864 <desc>
12865 Flag indicating whether the VM is currently making use of CPU hardware
12866 virtualization extensions.
12867 </desc>
12868 </attribute>
12869
12870 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
12871 <desc>
12872 Flag indicating whether the VM is currently making use of the nested paging
12873 CPU hardware virtualization extension.
12874 </desc>
12875 </attribute>
12876
12877 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
12878 <desc>
12879 Flag indicating whether the VM is currently making use of the VPID
12880 VT-x extension.
12881 </desc>
12882 </attribute>
12883
12884 <attribute name="OSName" type="wstring" readonly="yes">
12885 <desc>
12886 Query the guest OS kernel name as detected by the DBGF.
12887
12888 This feature is not implemented in the 4.0.0 release but may show up
12889 in a dot release.
12890 </desc>
12891 </attribute>
12892
12893 <attribute name="OSVersion" type="wstring" readonly="yes">
12894 <desc>
12895 Query the guest OS kernel version string as detected by the DBGF.
12896
12897 This feature is not implemented in the 4.0.0 release but may show up
12898 in a dot release.
12899 </desc>
12900 </attribute>
12901
12902 <attribute name="PAEEnabled" type="boolean" readonly="yes">
12903 <desc>
12904 Flag indicating whether the VM is currently making use of the Physical
12905 Address Extension CPU feature.
12906 </desc>
12907 </attribute>
12908
12909 <attribute name="virtualTimeRate" type="unsigned long">
12910 <desc>
12911 The rate at which the virtual time runs expressed as a percentage.
12912 The accepted range is 2% to 20000%.
12913 </desc>
12914 </attribute>
12915
12916 <attribute name="VM" type="long long" readonly="yes">
12917 <desc>
12918 Gets the VM handle. This is only for internal use while
12919 we carve the details of this interface.
12920 </desc>
12921 </attribute>
12922
12923 </interface>
12924
12925 <!--
12926 // IUSBController
12927 /////////////////////////////////////////////////////////////////////////
12928 -->
12929
12930 <interface
12931 name="IUSBController" extends="$unknown"
12932 uuid="6fdcccc5-abd3-4fec-9387-2ad3914fc4a8"
12933 wsmap="managed"
12934 >
12935 <attribute name="enabled" type="boolean">
12936 <desc>
12937 Flag whether the USB controller is present in the
12938 guest system. If disabled, the virtual guest hardware will
12939 not contain any USB controller. Can only be changed when
12940 the VM is powered off.
12941 </desc>
12942 </attribute>
12943
12944 <attribute name="enabledEhci" type="boolean">
12945 <desc>
12946 Flag whether the USB EHCI controller is present in the
12947 guest system. If disabled, the virtual guest hardware will
12948 not contain a USB EHCI controller. Can only be changed when
12949 the VM is powered off.
12950 </desc>
12951 </attribute>
12952
12953 <attribute name="proxyAvailable" type="boolean" readonly="yes">
12954 <desc>
12955 Flag whether there is an USB proxy available.
12956 </desc>
12957 </attribute>
12958
12959 <attribute name="USBStandard" type="unsigned short" readonly="yes">
12960 <desc>
12961 USB standard version which the controller implements.
12962 This is a BCD which means that the major version is in the
12963 high byte and minor version is in the low byte.
12964 </desc>
12965 </attribute>
12966
12967 <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
12968 <desc>
12969 List of USB device filters associated with the machine.
12970
12971 If the machine is currently running, these filters are activated
12972 every time a new (supported) USB device is attached to the host
12973 computer that was not ignored by global filters
12974 (<link to="IHost::USBDeviceFilters"/>).
12975
12976 These filters are also activated when the machine is powered up.
12977 They are run against a list of all currently available USB
12978 devices (in states
12979 <link to="USBDeviceState_Available"/>,
12980 <link to="USBDeviceState_Busy"/>,
12981 <link to="USBDeviceState_Held"/>) that were not previously
12982 ignored by global filters.
12983
12984 If at least one filter matches the USB device in question, this
12985 device is automatically captured (attached to) the virtual USB
12986 controller of this machine.
12987
12988 <see>IUSBDeviceFilter, ::IUSBController</see>
12989 </desc>
12990 </attribute>
12991
12992 <method name="createDeviceFilter">
12993 <desc>
12994 Creates a new USB device filter. All attributes except
12995 the filter name are set to empty (any match),
12996 <i>active</i> is @c false (the filter is not active).
12997
12998 The created filter can then be added to the list of filters using
12999 <link to="#insertDeviceFilter"/>.
13000
13001 <result name="VBOX_E_INVALID_VM_STATE">
13002 The virtual machine is not mutable.
13003 </result>
13004
13005 <see>#deviceFilters</see>
13006 </desc>
13007 <param name="name" type="wstring" dir="in">
13008 <desc>
13009 Filter name. See <link to="IUSBDeviceFilter::name"/>
13010 for more info.
13011 </desc>
13012 </param>
13013 <param name="filter" type="IUSBDeviceFilter" dir="return">
13014 <desc>Created filter object.</desc>
13015 </param>
13016 </method>
13017
13018 <method name="insertDeviceFilter">
13019 <desc>
13020 Inserts the given USB device to the specified position
13021 in the list of filters.
13022
13023 Positions are numbered starting from <tt>0</tt>. If the specified
13024 position is equal to or greater than the number of elements in
13025 the list, the filter is added to the end of the collection.
13026
13027 <note>
13028 Duplicates are not allowed, so an attempt to insert a
13029 filter that is already in the collection, will return an
13030 error.
13031 </note>
13032
13033 <result name="VBOX_E_INVALID_VM_STATE">
13034 Virtual machine is not mutable.
13035 </result>
13036 <result name="E_INVALIDARG">
13037 USB device filter not created within this VirtualBox instance.
13038 </result>
13039 <result name="VBOX_E_INVALID_OBJECT_STATE">
13040 USB device filter already in list.
13041 </result>
13042
13043 <see>#deviceFilters</see>
13044 </desc>
13045 <param name="position" type="unsigned long" dir="in">
13046 <desc>Position to insert the filter to.</desc>
13047 </param>
13048 <param name="filter" type="IUSBDeviceFilter" dir="in">
13049 <desc>USB device filter to insert.</desc>
13050 </param>
13051 </method>
13052
13053 <method name="removeDeviceFilter">
13054 <desc>
13055 Removes a USB device filter from the specified position in the
13056 list of filters.
13057
13058 Positions are numbered starting from <tt>0</tt>. Specifying a
13059 position equal to or greater than the number of elements in
13060 the list will produce an error.
13061
13062 <see>#deviceFilters</see>
13063
13064 <result name="VBOX_E_INVALID_VM_STATE">
13065 Virtual machine is not mutable.
13066 </result>
13067 <result name="E_INVALIDARG">
13068 USB device filter list empty or invalid @a position.
13069 </result>
13070
13071 </desc>
13072 <param name="position" type="unsigned long" dir="in">
13073 <desc>Position to remove the filter from.</desc>
13074 </param>
13075 <param name="filter" type="IUSBDeviceFilter" dir="return">
13076 <desc>Removed USB device filter.</desc>
13077 </param>
13078 </method>
13079
13080 </interface>
13081
13082
13083 <!--
13084 // IUSBDevice
13085 /////////////////////////////////////////////////////////////////////////
13086 -->
13087
13088 <interface
13089 name="IUSBDevice" extends="$unknown"
13090 uuid="f8967b0b-4483-400f-92b5-8b675d98a85b"
13091 wsmap="managed"
13092 >
13093 <desc>
13094 The IUSBDevice interface represents a virtual USB device attached to the
13095 virtual machine.
13096
13097 A collection of objects implementing this interface is stored in the
13098 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
13099 attached to a running virtual machine's USB controller.
13100 </desc>
13101
13102 <attribute name="id" type="uuid" mod="string" readonly="yes">
13103 <desc>
13104 Unique USB device ID. This ID is built from #vendorId,
13105 #productId, #revision and #serialNumber.
13106 </desc>
13107 </attribute>
13108
13109 <attribute name="vendorId" type="unsigned short" readonly="yes">
13110 <desc>Vendor ID.</desc>
13111 </attribute>
13112
13113 <attribute name="productId" type="unsigned short" readonly="yes">
13114 <desc>Product ID.</desc>
13115 </attribute>
13116
13117 <attribute name="revision" type="unsigned short" readonly="yes">
13118 <desc>
13119 Product revision number. This is a packed BCD represented as
13120 unsigned short. The high byte is the integer part and the low
13121 byte is the decimal.
13122 </desc>
13123 </attribute>
13124
13125 <attribute name="manufacturer" type="wstring" readonly="yes">
13126 <desc>Manufacturer string.</desc>
13127 </attribute>
13128
13129 <attribute name="product" type="wstring" readonly="yes">
13130 <desc>Product string.</desc>
13131 </attribute>
13132
13133 <attribute name="serialNumber" type="wstring" readonly="yes">
13134 <desc>Serial number string.</desc>
13135 </attribute>
13136
13137 <attribute name="address" type="wstring" readonly="yes">
13138 <desc>Host specific address of the device.</desc>
13139 </attribute>
13140
13141 <attribute name="port" type="unsigned short" readonly="yes">
13142 <desc>
13143 Host USB port number the device is physically
13144 connected to.
13145 </desc>
13146 </attribute>
13147
13148 <attribute name="version" type="unsigned short" readonly="yes">
13149 <desc>
13150 The major USB version of the device - 1 or 2.
13151 </desc>
13152 </attribute>
13153
13154 <attribute name="portVersion" type="unsigned short" readonly="yes">
13155 <desc>
13156 The major USB version of the host USB port the device is
13157 physically connected to - 1 or 2. For devices not connected to
13158 anything this will have the same value as the version attribute.
13159 </desc>
13160 </attribute>
13161
13162 <attribute name="remote" type="boolean" readonly="yes">
13163 <desc>
13164 Whether the device is physically connected to a remote VRDE
13165 client or to a local host machine.
13166 </desc>
13167 </attribute>
13168
13169 </interface>
13170
13171
13172 <!--
13173 // IUSBDeviceFilter
13174 /////////////////////////////////////////////////////////////////////////
13175 -->
13176
13177 <interface
13178 name="IUSBDeviceFilter" extends="$unknown"
13179 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
13180 wsmap="managed"
13181 >
13182 <desc>
13183 The IUSBDeviceFilter interface represents an USB device filter used
13184 to perform actions on a group of USB devices.
13185
13186 This type of filters is used by running virtual machines to
13187 automatically capture selected USB devices once they are physically
13188 attached to the host computer.
13189
13190 A USB device is matched to the given device filter if and only if all
13191 attributes of the device match the corresponding attributes of the
13192 filter (that is, attributes are joined together using the logical AND
13193 operation). On the other hand, all together, filters in the list of
13194 filters carry the semantics of the logical OR operation. So if it is
13195 desirable to create a match like "this vendor id OR this product id",
13196 one needs to create two filters and specify "any match" (see below)
13197 for unused attributes.
13198
13199 All filter attributes used for matching are strings. Each string
13200 is an expression representing a set of values of the corresponding
13201 device attribute, that will match the given filter. Currently, the
13202 following filtering expressions are supported:
13203
13204 <ul>
13205 <li><i>Interval filters</i>. Used to specify valid intervals for
13206 integer device attributes (Vendor ID, Product ID and Revision).
13207 The format of the string is:
13208
13209 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
13210
13211 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
13212 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
13213 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
13214 is omitted before a dash (<tt>-</tt>), the minimum possible integer
13215 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
13216 possible integer is assumed.
13217 </li>
13218 <li><i>Boolean filters</i>. Used to specify acceptable values for
13219 boolean device attributes. The format of the string is:
13220
13221 <tt>true|false|yes|no|0|1</tt>
13222
13223 </li>
13224 <li><i>Exact match</i>. Used to specify a single value for the given
13225 device attribute. Any string that doesn't start with <tt>int:</tt>
13226 represents the exact match. String device attributes are compared to
13227 this string including case of symbols. Integer attributes are first
13228 converted to a string (see individual filter attributes) and then
13229 compared ignoring case.
13230
13231 </li>
13232 <li><i>Any match</i>. Any value of the corresponding device attribute
13233 will match the given filter. An empty or @c null string is
13234 used to construct this type of filtering expressions.
13235
13236 </li>
13237 </ul>
13238
13239 <note>
13240 On the Windows host platform, interval filters are not currently
13241 available. Also all string filter attributes
13242 (<link to="#manufacturer"/>, <link to="#product"/>,
13243 <link to="#serialNumber"/>) are ignored, so they behave as
13244 <i>any match</i> no matter what string expression is specified.
13245 </note>
13246
13247 <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
13248 </desc>
13249
13250 <attribute name="name" type="wstring">
13251 <desc>
13252 Visible name for this filter.
13253 This name is used to visually distinguish one filter from another,
13254 so it can neither be @c null nor an empty string.
13255 </desc>
13256 </attribute>
13257
13258 <attribute name="active" type="boolean">
13259 <desc>Whether this filter active or has been temporarily disabled.</desc>
13260 </attribute>
13261
13262 <attribute name="vendorId" type="wstring">
13263 <desc>
13264 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
13265 The string representation for the <i>exact matching</i>
13266 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
13267 (including leading zeroes).
13268 </desc>
13269 </attribute>
13270
13271 <attribute name="productId" type="wstring">
13272 <desc>
13273 <link to="IUSBDevice::productId">Product ID</link> filter.
13274 The string representation for the <i>exact matching</i>
13275 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
13276 (including leading zeroes).
13277 </desc>
13278 </attribute>
13279
13280 <attribute name="revision" type="wstring">
13281 <desc>
13282 <link to="IUSBDevice::productId">Product revision number</link>
13283 filter. The string representation for the <i>exact matching</i>
13284 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
13285 of the integer part of the revision, and <tt>F</tt> is the
13286 decimal digit of its fractional part (including leading and
13287 trailing zeros).
13288 Note that for interval filters, it's best to use the hexadecimal
13289 form, because the revision is stored as a 16 bit packed BCD value;
13290 so the expression <tt>int:0x0100-0x0199</tt> will match any
13291 revision from <tt>1.0</tt> to <tt>1.99</tt>.
13292 </desc>
13293 </attribute>
13294
13295 <attribute name="manufacturer" type="wstring">
13296 <desc>
13297 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
13298 </desc>
13299 </attribute>
13300
13301 <attribute name="product" type="wstring">
13302 <desc>
13303 <link to="IUSBDevice::product">Product</link> filter.
13304 </desc>
13305 </attribute>
13306
13307 <attribute name="serialNumber" type="wstring">
13308 <desc>
13309 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
13310 </desc>
13311 </attribute>
13312
13313 <attribute name="port" type="wstring">
13314 <desc>
13315 <link to="IUSBDevice::port">Host USB port</link> filter.
13316 </desc>
13317 </attribute>
13318
13319 <attribute name="remote" type="wstring">
13320 <desc>
13321 <link to="IUSBDevice::remote">Remote state</link> filter.
13322 <note>
13323 This filter makes sense only for machine USB filters,
13324 i.e. it is ignored by IHostUSBDeviceFilter objects.
13325 </note>
13326 </desc>
13327 </attribute>
13328
13329 <attribute name="maskedInterfaces" type="unsigned long">
13330 <desc>
13331 This is an advanced option for hiding one or more USB interfaces
13332 from the guest. The value is a bit mask where the bits that are set
13333 means the corresponding USB interface should be hidden, masked off
13334 if you like.
13335 This feature only works on Linux hosts.
13336 </desc>
13337 </attribute>
13338
13339 </interface>
13340
13341
13342 <!--
13343 // IHostUSBDevice
13344 /////////////////////////////////////////////////////////////////////////
13345 -->
13346
13347 <enum
13348 name="USBDeviceState"
13349 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
13350 >
13351 <desc>
13352 USB device state. This enumeration represents all possible states
13353 of the USB device physically attached to the host computer regarding
13354 its state on the host computer and availability to guest computers
13355 (all currently running virtual machines).
13356
13357 Once a supported USB device is attached to the host, global USB
13358 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
13359 either ignore the device, or put it to USBDeviceState_Held state, or do
13360 nothing. Unless the device is ignored by global filters, filters of all
13361 currently running guests (<link to="IUSBController::deviceFilters"/>) are
13362 activated that can put it to USBDeviceState_Captured state.
13363
13364 If the device was ignored by global filters, or didn't match
13365 any filters at all (including guest ones), it is handled by the host
13366 in a normal way. In this case, the device state is determined by
13367 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
13368 or USBDeviceState_Available, depending on the current device usage.
13369
13370 Besides auto-capturing based on filters, the device can be manually
13371 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
13372 state is USBDeviceState_Busy, USBDeviceState_Available or
13373 USBDeviceState_Held.
13374
13375 <note>
13376 Due to differences in USB stack implementations in Linux and Win32,
13377 states USBDeviceState_Busy and USBDeviceState_Unavailable are applicable
13378 only to the Linux version of the product. This also means that (<link
13379 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
13380 device state is USBDeviceState_Held.
13381 </note>
13382
13383 <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
13384 </desc>
13385
13386 <const name="NotSupported" value="0">
13387 <desc>
13388 Not supported by the VirtualBox server, not available to guests.
13389 </desc>
13390 </const>
13391 <const name="Unavailable" value="1">
13392 <desc>
13393 Being used by the host computer exclusively,
13394 not available to guests.
13395 </desc>
13396 </const>
13397 <const name="Busy" value="2">
13398 <desc>
13399 Being used by the host computer, potentially available to guests.
13400 </desc>
13401 </const>
13402 <const name="Available" value="3">
13403 <desc>
13404 Not used by the host computer, available to guests (the host computer
13405 can also start using the device at any time).
13406 </desc>
13407 </const>
13408 <const name="Held" value="4">
13409 <desc>
13410 Held by the VirtualBox server (ignored by the host computer),
13411 available to guests.
13412 </desc>
13413 </const>
13414 <const name="Captured" value="5">
13415 <desc>
13416 Captured by one of the guest computers, not available
13417 to anybody else.
13418 </desc>
13419 </const>
13420 </enum>
13421
13422 <interface
13423 name="IHostUSBDevice" extends="IUSBDevice"
13424 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
13425 wsmap="managed"
13426 >
13427 <desc>
13428 The IHostUSBDevice interface represents a physical USB device attached
13429 to the host computer.
13430
13431 Besides properties inherited from IUSBDevice, this interface adds the
13432 <link to="#state"/> property that holds the current state of the USB
13433 device.
13434
13435 <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
13436 </desc>
13437
13438 <attribute name="state" type="USBDeviceState" readonly="yes">
13439 <desc>
13440 Current state of the device.
13441 </desc>
13442 </attribute>
13443
13444 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
13445
13446 </interface>
13447
13448
13449 <!--
13450 // IHostUSBDeviceFilter
13451 /////////////////////////////////////////////////////////////////////////
13452 -->
13453
13454 <enum
13455 name="USBDeviceFilterAction"
13456 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
13457 >
13458 <desc>
13459 Actions for host USB device filters.
13460 <see>IHostUSBDeviceFilter, USBDeviceState</see>
13461 </desc>
13462
13463 <const name="Null" value="0">
13464 <desc>Null value (never used by the API).</desc>
13465 </const>
13466 <const name="Ignore" value="1">
13467 <desc>Ignore the matched USB device.</desc>
13468 </const>
13469 <const name="Hold" value="2">
13470 <desc>Hold the matched USB device.</desc>
13471 </const>
13472 </enum>
13473
13474 <interface
13475 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
13476 uuid="4cc70246-d74a-400f-8222-3900489c0374"
13477 wsmap="managed"
13478 >
13479 <desc>
13480 The IHostUSBDeviceFilter interface represents a global filter for a
13481 physical USB device used by the host computer. Used indirectly in
13482 <link to="IHost::USBDeviceFilters"/>.
13483
13484 Using filters of this type, the host computer determines the initial
13485 state of the USB device after it is physically attached to the
13486 host's USB controller.
13487
13488 <note>
13489 The <link to="IUSBDeviceFilter::remote"/> attribute is ignored by this type of
13490 filters, because it makes sense only for
13491 <link to="IUSBController::deviceFilters">machine USB filters</link>.
13492 </note>
13493
13494 <see>IHost::USBDeviceFilters</see>
13495 </desc>
13496
13497 <attribute name="action" type="USBDeviceFilterAction">
13498 <desc>
13499 Action performed by the host when an attached USB device
13500 matches this filter.
13501 </desc>
13502 </attribute>
13503
13504 </interface>
13505
13506 <!--
13507 // IAudioAdapter
13508 /////////////////////////////////////////////////////////////////////////
13509 -->
13510
13511 <enum
13512 name="AudioDriverType"
13513 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
13514 >
13515 <desc>
13516 Host audio driver type.
13517 </desc>
13518
13519 <const name="Null" value="0">
13520 <desc>Null value, also means "dummy audio driver".</desc>
13521 </const>
13522 <const name="WinMM" value="1">
13523 <desc>Windows multimedia (Windows hosts only).</desc>
13524 </const>
13525 <const name="OSS" value="2">
13526 <desc>Open Sound System (Linux hosts only).</desc>
13527 </const>
13528 <const name="ALSA" value="3">
13529 <desc>Advanced Linux Sound Architecture (Linux hosts only).</desc>
13530 </const>
13531 <const name="DirectSound" value="4">
13532 <desc>DirectSound (Windows hosts only).</desc>
13533 </const>
13534 <const name="CoreAudio" value="5">
13535 <desc>CoreAudio (Mac hosts only).</desc>
13536 </const>
13537 <const name="MMPM" value="6">
13538 <desc>Reserved for historical reasons.</desc>
13539 </const>
13540 <const name="Pulse" value="7">
13541 <desc>PulseAudio (Linux hosts only).</desc>
13542 </const>
13543 <const name="SolAudio" value="8">
13544 <desc>Solaris audio (Solaris hosts only).</desc>
13545 </const>
13546 </enum>
13547
13548 <enum
13549 name="AudioControllerType"
13550 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
13551 >
13552 <desc>
13553 Virtual audio controller type.
13554 </desc>
13555
13556 <const name="AC97" value="0"/>
13557 <const name="SB16" value="1"/>
13558 <const name="HDA" value="2"/>
13559 </enum>
13560
13561 <interface
13562 name="IAudioAdapter" extends="$unknown"
13563 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
13564 wsmap="managed"
13565 >
13566 <desc>
13567 The IAudioAdapter interface represents the virtual audio adapter of
13568 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
13569 </desc>
13570 <attribute name="enabled" type="boolean">
13571 <desc>
13572 Flag whether the audio adapter is present in the
13573 guest system. If disabled, the virtual guest hardware will
13574 not contain any audio adapter. Can only be changed when
13575 the VM is not running.
13576 </desc>
13577 </attribute>
13578 <attribute name="audioController" type="AudioControllerType">
13579 <desc>
13580 The audio hardware we emulate.
13581 </desc>
13582 </attribute>
13583 <attribute name="audioDriver" type="AudioDriverType">
13584 <desc>
13585 Audio driver the adapter is connected to. This setting
13586 can only be changed when the VM is not running.
13587 </desc>
13588 </attribute>
13589 </interface>
13590
13591 <enum
13592 name="AuthType"
13593 uuid="7eef6ef6-98c2-4dc2-ab35-10d2b292028d"
13594 >
13595 <desc>
13596 VirtualBox authentication type.
13597 </desc>
13598
13599 <const name="Null" value="0">
13600 <desc>Null value, also means "no authentication".</desc>
13601 </const>
13602 <const name="External" value="1"/>
13603 <const name="Guest" value="2"/>
13604 </enum>
13605
13606 <!--
13607 // IVRDEServer
13608 /////////////////////////////////////////////////////////////////////////
13609 -->
13610
13611 <interface
13612 name="IVRDEServer" extends="$unknown"
13613 uuid="be24e0db-e1d6-4d58-b85b-21053d1511b4"
13614 wsmap="managed"
13615 >
13616 <attribute name="enabled" type="boolean">
13617 <desc>VRDE server status.</desc>
13618 </attribute>
13619
13620 <attribute name="authType" type="AuthType">
13621 <desc>VRDE authentication method.</desc>
13622 </attribute>
13623
13624 <attribute name="authTimeout" type="unsigned long">
13625 <desc>Timeout for guest authentication. Milliseconds.</desc>
13626 </attribute>
13627
13628 <attribute name="allowMultiConnection" type="boolean">
13629 <desc>
13630 Flag whether multiple simultaneous connections to the VM are permitted.
13631 Note that this will be replaced by a more powerful mechanism in the future.
13632 </desc>
13633 </attribute>
13634
13635 <attribute name="reuseSingleConnection" type="boolean">
13636 <desc>
13637 Flag whether the existing connection must be dropped and a new connection
13638 must be established by the VRDE server, when a new client connects in single
13639 connection mode.
13640 </desc>
13641 </attribute>
13642
13643 <attribute name="VRDEExtPack" type="wstring">
13644 <desc>
13645 The name of Extension Pack providing VRDE for this VM. Overrides
13646 <link to="ISystemProperties::defaultVRDEExtPack"/>.
13647 </desc>
13648 </attribute>
13649
13650 <attribute name="AuthLibrary" type="wstring">
13651 <desc>
13652 Library used for authentication of RDP clients by this VM. Overrides
13653 <link to="ISystemProperties::VRDEAuthLibrary"/>.
13654 </desc>
13655 </attribute>
13656
13657 <attribute name="VRDEProperties" type="wstring" readonly="yes" safearray="yes">
13658 <desc>
13659 Array of names of properties, which are supported by this VRDE server.
13660 </desc>
13661 </attribute>
13662
13663 <method name="setVRDEProperty">
13664 <desc>
13665 Sets a VRDE specific property string.
13666
13667 If you pass @c null or empty string as a key @a value, the given @a key
13668 will be deleted.
13669
13670 </desc>
13671 <param name="key" type="wstring" dir="in">
13672 <desc>Name of the key to set.</desc>
13673 </param>
13674 <param name="value" type="wstring" dir="in">
13675 <desc>Value to assign to the key.</desc>
13676 </param>
13677 </method>
13678
13679 <method name="getVRDEProperty">
13680 <desc>
13681 Returns a VRDE specific property string.
13682
13683 If the requested data @a key does not exist, this function will
13684 succeed and return an empty string in the @a value argument.
13685
13686 </desc>
13687 <param name="key" type="wstring" dir="in">
13688 <desc>Name of the key to get.</desc>
13689 </param>
13690 <param name="value" type="wstring" dir="return">
13691 <desc>Value of the requested key.</desc>
13692 </param>
13693 </method>
13694
13695 </interface>
13696
13697
13698 <!--
13699 // ISharedFolder
13700 /////////////////////////////////////////////////////////////////////////
13701 -->
13702
13703 <interface
13704 name="ISharedFolder" extends="$unknown"
13705 uuid="8388da11-b559-4574-a5b7-2bd7acd5cef8"
13706 wsmap="struct"
13707 >
13708 <desc>
13709 The ISharedFolder interface represents a folder in the host computer's
13710 file system accessible from the guest OS running inside a virtual
13711 machine using an associated logical name.
13712
13713 There are three types of shared folders:
13714 <ul>
13715 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
13716 folders available to all virtual machines.</li>
13717 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
13718 VM-specific shared folders available to the given virtual machine at
13719 startup.</li>
13720 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
13721 VM-specific shared folders created in the session context (for
13722 example, when the virtual machine is running) and automatically
13723 discarded when the session is closed (the VM is powered off).</li>
13724 </ul>
13725
13726 Logical names of shared folders must be unique within the given scope
13727 (global, permanent or transient). However, they do not need to be unique
13728 across scopes. In this case, the definition of the shared folder in a
13729 more specific scope takes precedence over definitions in all other
13730 scopes. The order of precedence is (more specific to more general):
13731 <ol>
13732 <li>Transient definitions</li>
13733 <li>Permanent definitions</li>
13734 <li>Global definitions</li>
13735 </ol>
13736
13737 For example, if MyMachine has a shared folder named
13738 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
13739 transient shared folder named <tt>C_DRIVE</tt> (that points
13740 to <tt>C:\\\\WINDOWS</tt>) will change the definition
13741 of <tt>C_DRIVE</tt> in the guest OS so
13742 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
13743 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
13744 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
13745 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
13746 to <tt>C:\\</tt> if it still exists.
13747
13748 Note that permanent and transient shared folders of different machines
13749 are in different name spaces, so they don't overlap and don't need to
13750 have unique logical names.
13751
13752 <note>
13753 Global shared folders are not implemented in the current version of the
13754 product.
13755 </note>
13756 </desc>
13757
13758 <attribute name="name" type="wstring" readonly="yes">
13759 <desc>Logical name of the shared folder.</desc>
13760 </attribute>
13761
13762 <attribute name="hostPath" type="wstring" readonly="yes">
13763 <desc>Full path to the shared folder in the host file system.</desc>
13764 </attribute>
13765
13766 <attribute name="accessible" type="boolean" readonly="yes">
13767 <desc>
13768 Whether the folder defined by the host path is currently
13769 accessible or not.
13770 For example, the folder can be inaccessible if it is placed
13771 on the network share that is not available by the time
13772 this property is read.
13773 </desc>
13774 </attribute>
13775
13776 <attribute name="writable" type="boolean" readonly="yes">
13777 <desc>
13778 Whether the folder defined by the host path is writable or
13779 not.
13780 </desc>
13781 </attribute>
13782
13783 <attribute name="autoMount" type="boolean" readonly="yes">
13784 <desc>
13785 Whether the folder gets automatically mounted by the guest or not.
13786 </desc>
13787 </attribute>
13788
13789 <attribute name="lastAccessError" type="wstring" readonly="yes">
13790 <desc>
13791 Text message that represents the result of the last accessibility
13792 check.
13793
13794 Accessibility checks are performed each time the <link to="#accessible"/>
13795 attribute is read. An empty string is returned if the last
13796 accessibility check was successful. A non-empty string indicates a
13797 failure and should normally describe a reason of the failure (for
13798 example, a file read error).
13799 </desc>
13800 </attribute>
13801
13802 </interface>
13803
13804 <!--
13805 // ISession
13806 /////////////////////////////////////////////////////////////////////////
13807 -->
13808
13809 <interface
13810 name="IInternalSessionControl" extends="$unknown"
13811 uuid="3a975b65-27e7-42fa-9176-d097d7bd78d4"
13812 internal="yes"
13813 wsmap="suppress"
13814 >
13815 <method name="getPID">
13816 <desc>PID of the process that has created this Session object.
13817 </desc>
13818 <param name="pid" type="unsigned long" dir="return"/>
13819 </method>
13820
13821 <method name="getRemoteConsole">
13822 <desc>
13823 Returns the console object suitable for remote control.
13824
13825 <result name="VBOX_E_INVALID_VM_STATE">
13826 Session state prevents operation.
13827 </result>
13828 <result name="VBOX_E_INVALID_OBJECT_STATE">
13829 Session type prevents operation.
13830 </result>
13831
13832 </desc>
13833 <param name="console" type="IConsole" dir="return"/>
13834 </method>
13835
13836 <method name="assignMachine">
13837 <desc>
13838 Assigns the machine object associated with this direct-type
13839 session or informs the session that it will be a remote one
13840 (if @a machine == @c null).
13841
13842 <result name="VBOX_E_INVALID_VM_STATE">
13843 Session state prevents operation.
13844 </result>
13845 <result name="VBOX_E_INVALID_OBJECT_STATE">
13846 Session type prevents operation.
13847 </result>
13848
13849 </desc>
13850 <param name="machine" type="IMachine" dir="in"/>
13851 </method>
13852
13853 <method name="assignRemoteMachine">
13854 <desc>
13855 Assigns the machine and the (remote) console object associated with
13856 this remote-type session.
13857
13858 <result name="VBOX_E_INVALID_VM_STATE">
13859 Session state prevents operation.
13860 </result>
13861
13862 </desc>
13863 <param name="machine" type="IMachine" dir="in"/>
13864 <param name="console" type="IConsole" dir="in"/>
13865 </method>
13866
13867 <method name="updateMachineState">
13868 <desc>
13869 Updates the machine state in the VM process.
13870 Must be called only in certain cases
13871 (see the method implementation).
13872
13873 <result name="VBOX_E_INVALID_VM_STATE">
13874 Session state prevents operation.
13875 </result>
13876 <result name="VBOX_E_INVALID_OBJECT_STATE">
13877 Session type prevents operation.
13878 </result>
13879
13880 </desc>
13881 <param name="aMachineState" type="MachineState" dir="in"/>
13882 </method>
13883
13884 <method name="uninitialize">
13885 <desc>
13886 Uninitializes (closes) this session. Used by VirtualBox to close
13887 the corresponding remote session when the direct session dies
13888 or gets closed.
13889
13890 <result name="VBOX_E_INVALID_VM_STATE">
13891 Session state prevents operation.
13892 </result>
13893
13894 </desc>
13895 </method>
13896
13897 <method name="onNetworkAdapterChange">
13898 <desc>
13899 Triggered when settings of a network adapter of the
13900 associated virtual machine have changed.
13901
13902 <result name="VBOX_E_INVALID_VM_STATE">
13903 Session state prevents operation.
13904 </result>
13905 <result name="VBOX_E_INVALID_OBJECT_STATE">
13906 Session type prevents operation.
13907 </result>
13908
13909 </desc>
13910 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
13911 <param name="changeAdapter" type="boolean" dir="in"/>
13912 </method>
13913
13914 <method name="onSerialPortChange">
13915 <desc>
13916 Triggered when settings of a serial port of the
13917 associated virtual machine have changed.
13918
13919 <result name="VBOX_E_INVALID_VM_STATE">
13920 Session state prevents operation.
13921 </result>
13922 <result name="VBOX_E_INVALID_OBJECT_STATE">
13923 Session type prevents operation.
13924 </result>
13925
13926 </desc>
13927 <param name="serialPort" type="ISerialPort" dir="in"/>
13928 </method>
13929
13930 <method name="onParallelPortChange">
13931 <desc>
13932 Triggered when settings of a parallel port of the
13933 associated virtual machine have changed.
13934
13935 <result name="VBOX_E_INVALID_VM_STATE">
13936 Session state prevents operation.
13937 </result>
13938 <result name="VBOX_E_INVALID_OBJECT_STATE">
13939 Session type prevents operation.
13940 </result>
13941
13942 </desc>
13943 <param name="parallelPort" type="IParallelPort" dir="in"/>
13944 </method>
13945
13946 <method name="onStorageControllerChange">
13947 <desc>
13948 Triggered when settings of a storage controller of the
13949 associated virtual machine have changed.
13950
13951 <result name="VBOX_E_INVALID_VM_STATE">
13952 Session state prevents operation.
13953 </result>
13954 <result name="VBOX_E_INVALID_OBJECT_STATE">
13955 Session type prevents operation.
13956 </result>
13957
13958 </desc>
13959 </method>
13960
13961 <method name="onMediumChange">
13962 <desc>
13963 Triggered when attached media of the
13964 associated virtual machine have changed.
13965
13966 <result name="VBOX_E_INVALID_VM_STATE">
13967 Session state prevents operation.
13968 </result>
13969 <result name="VBOX_E_INVALID_OBJECT_STATE">
13970 Session type prevents operation.
13971 </result>
13972
13973 </desc>
13974
13975 <param name="mediumAttachment" type="IMediumAttachment" dir="in"/>
13976 <param name="force" type="boolean" dir="in"/>
13977 </method>
13978
13979 <method name="onStorageDeviceChange">
13980 <desc>
13981 Triggered when attached storage devices of the
13982 associated virtual machine have changed.
13983
13984 <result name="VBOX_E_INVALID_VM_STATE">
13985 Session state prevents operation.
13986 </result>
13987 <result name="VBOX_E_INVALID_OBJECT_STATE">
13988 Session type prevents operation.
13989 </result>
13990
13991 </desc>
13992
13993 <param name="mediumAttachment" type="IMediumAttachment" dir="in"/>
13994 <param name="remove" type="boolean" dir="in">
13995 <desc>TRUE if the device is removed, FALSE if it was added.</desc>
13996 </param>
13997 </method>
13998
13999 <method name="onCPUChange">
14000 <desc>
14001 Notification when a CPU changes.
14002 </desc>
14003 <param name="cpu" type="unsigned long" dir="in">
14004 <desc>The CPU which changed</desc>
14005 </param>
14006 <param name="add" type="boolean" dir="in">
14007 <desc>Flag whether the CPU was added or removed</desc>
14008 </param>
14009 </method>
14010
14011 <method name="onCPUExecutionCapChange">
14012 <desc>
14013 Notification when the CPU execution cap changes.
14014 </desc>
14015 <param name="executionCap" type="unsigned long" dir="in">
14016 <desc>The new CPU execution cap value. (1-100)</desc>
14017 </param>
14018 </method>
14019
14020 <method name="onVRDEServerChange">
14021 <desc>
14022 Triggered when settings of the VRDE server object of the
14023 associated virtual machine have changed.
14024
14025 <result name="VBOX_E_INVALID_VM_STATE">
14026 Session state prevents operation.
14027 </result>
14028 <result name="VBOX_E_INVALID_OBJECT_STATE">
14029 Session type prevents operation.
14030 </result>
14031
14032 </desc>
14033 <param name="restart" type="boolean" dir="in">
14034 <desc>Flag whether the server must be restarted</desc>
14035 </param>
14036 </method>
14037
14038 <method name="onUSBControllerChange">
14039 <desc>
14040 Triggered when settings of the USB controller object of the
14041 associated virtual machine have changed.
14042
14043 <result name="VBOX_E_INVALID_VM_STATE">
14044 Session state prevents operation.
14045 </result>
14046 <result name="VBOX_E_INVALID_OBJECT_STATE">
14047 Session type prevents operation.
14048 </result>
14049
14050 </desc>
14051 </method>
14052
14053 <method name="onSharedFolderChange">
14054 <desc>
14055 Triggered when a permanent (global or machine) shared folder has been
14056 created or removed.
14057 <note>
14058 We don't pass shared folder parameters in this notification because
14059 the order in which parallel notifications are delivered is not defined,
14060 therefore it could happen that these parameters were outdated by the
14061 time of processing this notification.
14062 </note>
14063
14064 <result name="VBOX_E_INVALID_VM_STATE">
14065 Session state prevents operation.
14066 </result>
14067 <result name="VBOX_E_INVALID_OBJECT_STATE">
14068 Session type prevents operation.
14069 </result>
14070
14071 </desc>
14072 <param name="global" type="boolean" dir="in"/>
14073 </method>
14074
14075 <method name="onUSBDeviceAttach">
14076 <desc>
14077 Triggered when a request to capture a USB device (as a result
14078 of matched USB filters or direct call to
14079 <link to="IConsole::attachUSBDevice"/>) has completed.
14080 A @c null @a error object means success, otherwise it
14081 describes a failure.
14082
14083 <result name="VBOX_E_INVALID_VM_STATE">
14084 Session state prevents operation.
14085 </result>
14086 <result name="VBOX_E_INVALID_OBJECT_STATE">
14087 Session type prevents operation.
14088 </result>
14089
14090 </desc>
14091 <param name="device" type="IUSBDevice" dir="in"/>
14092 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
14093 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
14094 </method>
14095
14096 <method name="onUSBDeviceDetach">
14097 <desc>
14098 Triggered when a request to release the USB device (as a result
14099 of machine termination or direct call to
14100 <link to="IConsole::detachUSBDevice"/>) has completed.
14101 A @c null @a error object means success, otherwise it
14102 describes a failure.
14103
14104 <result name="VBOX_E_INVALID_VM_STATE">
14105 Session state prevents operation.
14106 </result>
14107 <result name="VBOX_E_INVALID_OBJECT_STATE">
14108 Session type prevents operation.
14109 </result>
14110
14111 </desc>
14112 <param name="id" type="uuid" mod="string" dir="in"/>
14113 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
14114 </method>
14115
14116 <method name="onShowWindow">
14117 <desc>
14118 Called by <link to="IMachine::canShowConsoleWindow"/> and by
14119 <link to="IMachine::showConsoleWindow"/> in order to notify
14120 console listeners
14121 <link to="ICanShowWindowEvent"/>
14122 and <link to="IShowWindowEvent"/>.
14123
14124 <result name="VBOX_E_INVALID_OBJECT_STATE">
14125 Session type prevents operation.
14126 </result>
14127
14128 </desc>
14129 <param name="check" type="boolean" dir="in"/>
14130 <param name="canShow" type="boolean" dir="out"/>
14131 <param name="winId" type="long long" dir="out"/>
14132 </method>
14133
14134 <method name="onBandwidthGroupChange">
14135 <desc>
14136 Notification when one of the bandwidth groups change.
14137 </desc>
14138 <param name="bandwidthGroup" type="IBandwidthGroup" dir="in">
14139 <desc>The bandwidth group which changed.</desc>
14140 </param>
14141 </method>
14142
14143 <method name="accessGuestProperty">
14144 <desc>
14145 Called by <link to="IMachine::getGuestProperty"/> and by
14146 <link to="IMachine::setGuestProperty"/> in order to read and
14147 modify guest properties.
14148
14149 <result name="VBOX_E_INVALID_VM_STATE">
14150 Machine session is not open.
14151 </result>
14152 <result name="VBOX_E_INVALID_OBJECT_STATE">
14153 Session type is not direct.
14154 </result>
14155
14156 </desc>
14157 <param name="name" type="wstring" dir="in"/>
14158 <param name="value" type="wstring" dir="in"/>
14159 <param name="flags" type="wstring" dir="in"/>
14160 <param name="isSetter" type="boolean" dir="in"/>
14161 <param name="retValue" type="wstring" dir="out"/>
14162 <param name="retTimestamp" type="long long" dir="out"/>
14163 <param name="retFlags" type="wstring" dir="out"/>
14164 </method>
14165
14166 <method name="enumerateGuestProperties">
14167 <desc>
14168 Return a list of the guest properties matching a set of patterns along
14169 with their values, time stamps and flags.
14170
14171 <result name="VBOX_E_INVALID_VM_STATE">
14172 Machine session is not open.
14173 </result>
14174 <result name="VBOX_E_INVALID_OBJECT_STATE">
14175 Session type is not direct.
14176 </result>
14177
14178 </desc>
14179 <param name="patterns" type="wstring" dir="in">
14180 <desc>
14181 The patterns to match the properties against as a comma-separated
14182 string. If this is empty, all properties currently set will be
14183 returned.
14184 </desc>
14185 </param>
14186 <param name="key" type="wstring" dir="out" safearray="yes">
14187 <desc>
14188 The key names of the properties returned.
14189 </desc>
14190 </param>
14191 <param name="value" type="wstring" dir="out" safearray="yes">
14192 <desc>
14193 The values of the properties returned. The array entries match the
14194 corresponding entries in the @a key array.
14195 </desc>
14196 </param>
14197 <param name="timestamp" type="long long" dir="out" safearray="yes">
14198 <desc>
14199 The time stamps of the properties returned. The array entries match
14200 the corresponding entries in the @a key array.
14201 </desc>
14202 </param>
14203 <param name="flags" type="wstring" dir="out" safearray="yes">
14204 <desc>
14205 The flags of the properties returned. The array entries match the
14206 corresponding entries in the @a key array.
14207 </desc>
14208 </param>
14209 </method>
14210
14211 <method name="onlineMergeMedium">
14212 <desc>
14213 Triggers online merging of a hard disk. Used internally when deleting
14214 a snapshot while a VM referring to the same hard disk chain is running.
14215
14216 <result name="VBOX_E_INVALID_VM_STATE">
14217 Machine session is not open.
14218 </result>
14219 <result name="VBOX_E_INVALID_OBJECT_STATE">
14220 Session type is not direct.
14221 </result>
14222
14223 </desc>
14224 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
14225 <desc>The medium attachment to identify the medium chain.</desc>
14226 </param>
14227 <param name="sourceIdx" type="unsigned long" dir="in">
14228 <desc>The index of the source image in the chain.
14229 Redundant, but drastically reduces IPC.</desc>
14230 </param>
14231 <param name="targetIdx" type="unsigned long" dir="in">
14232 <desc>The index of the target image in the chain.
14233 Redundant, but drastically reduces IPC.</desc>
14234 </param>
14235 <param name="source" type="IMedium" dir="in">
14236 <desc>Merge source medium.</desc>
14237 </param>
14238 <param name="target" type="IMedium" dir="in">
14239 <desc>Merge target medium.</desc>
14240 </param>
14241 <param name="mergeForward" type="boolean" dir="in">
14242 <desc>Merge direction.</desc>
14243 </param>
14244 <param name="parentForTarget" type="IMedium" dir="in">
14245 <desc>For forward merges: new parent for target medium.</desc>
14246 </param>
14247 <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
14248 <desc>For backward merges: list of media which need their parent UUID
14249 updated.</desc>
14250 </param>
14251 <param name="progress" type="IProgress" dir="in">
14252 <desc>
14253 Progress object for this operation.
14254 </desc>
14255 </param>
14256 </method>
14257
14258 </interface>
14259
14260 <interface
14261 name="ISession" extends="$unknown"
14262 uuid="12F4DCDB-12B2-4EC1-B7CD-DDD9F6C5BF4D"
14263 wsmap="managed"
14264 >
14265 <desc>
14266 The ISession interface represents a client process and allows for locking
14267 virtual machines (represented by IMachine objects) to prevent conflicting
14268 changes to the machine.
14269
14270 Any caller wishing to manipulate a virtual machine needs to create a session
14271 object first, which lives in its own process space. Such session objects are
14272 then associated with <link to="IMachine" /> objects living in the VirtualBox
14273 server process to coordinate such changes.
14274
14275 There are two typical scenarios in which sessions are used:
14276
14277 <ul>
14278 <li>To alter machine settings or control a running virtual machine, one
14279 needs to lock a machine for a given session (client process) by calling
14280 <link to="IMachine::lockMachine"/>.
14281
14282 Whereas multiple sessions may control a running virtual machine, only
14283 one process can obtain a write lock on the machine to prevent conflicting
14284 changes. A write lock is also needed if a process wants to actually run a
14285 virtual machine in its own context, such as the VirtualBox GUI or
14286 VBoxHeadless front-ends. They must also lock a machine for their own
14287 sessions before they are allowed to power up the virtual machine.
14288
14289 As a result, no machine settings can be altered while another process is
14290 already using it, either because that process is modifying machine settings
14291 or because the machine is running.
14292 </li>
14293 <li>
14294 To start a VM using one of the existing VirtualBox front-ends (e.g. the
14295 VirtualBox GUI or VBoxHeadless), one would use
14296 <link to="IMachine::launchVMProcess"/>, which also takes a session object
14297 as its first parameter. This session then identifies the caller and lets the
14298 caller control the started machine (for example, pause machine execution or
14299 power it down) as well as be notified about machine execution state changes.
14300 </li>
14301 </ul>
14302
14303 How sessions objects are created in a client process depends on whether you use
14304 the Main API via COM or via the webservice:
14305
14306 <ul>
14307 <li>When using the COM API directly, an object of the Session class from the
14308 VirtualBox type library needs to be created. In regular COM C++ client code,
14309 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
14310 This object will then act as a local session object in further calls to open
14311 a session.
14312 </li>
14313
14314 <li>In the webservice, the session manager (IWebsessionManager) instead creates
14315 a session object automatically whenever <link to="IWebsessionManager::logon" />
14316 is called. A managed object reference to that session object can be retrieved by
14317 calling <link to="IWebsessionManager::getSessionObject" />.
14318 </li>
14319 </ul>
14320 </desc>
14321
14322 <attribute name="state" type="SessionState" readonly="yes">
14323 <desc>Current state of this session.</desc>
14324 </attribute>
14325
14326 <attribute name="type" type="SessionType" readonly="yes">
14327 <desc>
14328 Type of this session. The value of this attribute is valid only
14329 if the session currently has a machine locked (i.e. its
14330 <link to="#state" /> is Locked), otherwise an error will be returned.
14331 </desc>
14332 </attribute>
14333
14334 <attribute name="machine" type="IMachine" readonly="yes">
14335 <desc>Machine object associated with this session.</desc>
14336 </attribute>
14337
14338 <attribute name="console" type="IConsole" readonly="yes">
14339 <desc>Console object associated with this session.</desc>
14340 </attribute>
14341
14342 <method name="unlockMachine">
14343 <desc>
14344 Unlocks a machine that was previously locked for the current session.
14345
14346 Calling this method is required every time a machine has been locked
14347 for a particular session using the <link to="IMachine::launchVMProcess" />
14348 or <link to="IMachine::lockMachine" /> calls. Otherwise the state of
14349 the machine will be set to <link to="MachineState_Aborted" /> on the
14350 server, and changes made to the machine settings will be lost.
14351
14352 Generally, it is recommended to unlock all machines explicitly
14353 before terminating the application (regardless of the reason for
14354 the termination).
14355
14356 <note>
14357 Do not expect the session state (<link to="ISession::state" />
14358 to return to "Unlocked" immediately after you invoke this method,
14359 particularly if you have started a new VM process. The session
14360 state will automatically return to "Unlocked" once the VM is no
14361 longer executing, which can of course take a very long time.
14362 </note>
14363
14364 <result name="E_UNEXPECTED">
14365 Session is not locked.
14366 </result>
14367
14368 </desc>
14369 </method>
14370
14371 </interface>
14372
14373 <!--
14374 // IStorageController
14375 /////////////////////////////////////////////////////////////////////////
14376 -->
14377
14378 <enum
14379 name="StorageBus"
14380 uuid="eee67ab3-668d-4ef5-91e0-7025fe4a0d7a"
14381 >
14382 <desc>
14383 The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy);
14384 see <link to="IStorageController::bus" />.
14385 </desc>
14386 <const name="Null" value="0">
14387 <desc>@c null value. Never used by the API.</desc>
14388 </const>
14389 <const name="IDE" value="1"/>
14390 <const name="SATA" value="2"/>
14391 <const name="SCSI" value="3"/>
14392 <const name="Floppy" value="4"/>
14393 <const name="SAS" value="5"/>
14394 </enum>
14395
14396 <enum
14397 name="StorageControllerType"
14398 uuid="8a412b8a-f43e-4456-bd37-b474f0879a58"
14399 >
14400 <desc>
14401 The exact variant of storage controller hardware presented
14402 to the guest; see <link to="IStorageController::controllerType" />.
14403 </desc>
14404
14405 <const name="Null" value="0">
14406 <desc>@c null value. Never used by the API.</desc>
14407 </const>
14408 <const name="LsiLogic" value="1">
14409 <desc>A SCSI controller of the LsiLogic variant.</desc>
14410 </const>
14411 <const name="BusLogic" value="2">
14412 <desc>A SCSI controller of the BusLogic variant.</desc>
14413 </const>
14414 <const name="IntelAhci" value="3">
14415 <desc>An Intel AHCI SATA controller; this is the only variant for SATA.</desc>
14416 </const>
14417 <const name="PIIX3" value="4">
14418 <desc>An IDE controller of the PIIX3 variant.</desc>
14419 </const>
14420 <const name="PIIX4" value="5">
14421 <desc>An IDE controller of the PIIX4 variant.</desc>
14422 </const>
14423 <const name="ICH6" value="6">
14424 <desc>An IDE controller of the ICH6 variant.</desc>
14425 </const>
14426 <const name="I82078" value="7">
14427 <desc>A floppy disk controller; this is the only variant for floppy drives.</desc>
14428 </const>
14429 <const name="LsiLogicSas" value="8">
14430 <desc>A variant of the LsiLogic controller using SAS.</desc>
14431 </const>
14432 </enum>
14433
14434 <enum
14435 name="ChipsetType"
14436 uuid="8b4096a8-a7c3-4d3b-bbb1-05a0a51ec394"
14437 >
14438 <desc>
14439 Type of emulated chipset (mostly southbridge).
14440 </desc>
14441
14442 <const name="Null" value="0">
14443 <desc>@c null value. Never used by the API.</desc>
14444 </const>
14445 <const name="PIIX3" value="1">
14446 <desc>A PIIX3 (PCI IDE ISA Xcelerator) chipset.</desc>
14447 </const>
14448 <const name="ICH9" value="2">
14449 <desc>A ICH9 (I/O Controller Hub) chipset.</desc>
14450 </const>
14451 </enum>
14452
14453 <interface
14454 name="IStorageController" extends="$unknown"
14455 uuid="a1556333-09b6-46d9-bfb7-fc239b7fbe1e"
14456 wsmap="managed"
14457 >
14458 <desc>
14459 Represents a storage controller that is attached to a virtual machine
14460 (<link to="IMachine" />). Just as drives (hard disks, DVDs, FDs) are
14461 attached to storage controllers in a real computer, virtual drives
14462 (represented by <link to="IMediumAttachment" />) are attached to virtual
14463 storage controllers, represented by this interface.
14464
14465 As opposed to physical hardware, VirtualBox has a very generic concept
14466 of a storage controller, and for purposes of the Main API, all virtual
14467 storage is attached to virtual machines via instances of this interface.
14468 There are five types of such virtual storage controllers: IDE, SCSI, SATA,
14469 SAS and Floppy (see <link to="#bus" />). Depending on which of these four
14470 is used, certain sub-types may be available and can be selected in
14471 <link to="#controllerType" />.
14472
14473 Depending on these settings, the guest operating system might see
14474 significantly different virtual hardware.
14475 </desc>
14476
14477 <attribute name="name" type="wstring" readonly="yes">
14478 <desc>
14479 Name of the storage controller, as originally specified with
14480 <link to="IMachine::addStorageController" />. This then uniquely
14481 identifies this controller with other method calls such as
14482 <link to="IMachine::attachDevice" /> and <link to="IMachine::mountMedium" />.
14483 </desc>
14484 </attribute>
14485
14486 <attribute name="maxDevicesPerPortCount" type="unsigned long" readonly="yes">
14487 <desc>
14488 Maximum number of devices which can be attached to one port.
14489 </desc>
14490 </attribute>
14491
14492 <attribute name="minPortCount" type="unsigned long" readonly="yes">
14493 <desc>
14494 Minimum number of ports that <link to="IStorageController::portCount"/> can be set to.
14495 </desc>
14496 </attribute>
14497
14498 <attribute name="maxPortCount" type="unsigned long" readonly="yes">
14499 <desc>
14500 Maximum number of ports that <link to="IStorageController::portCount"/> can be set to.
14501 </desc>
14502 </attribute>
14503
14504 <attribute name="instance" type="unsigned long">
14505 <desc>
14506 The instance number of the device in the running VM.
14507 </desc>
14508 </attribute>
14509
14510 <attribute name="portCount" type="unsigned long">
14511 <desc>
14512 The number of currently usable ports on the controller.
14513 The minimum and maximum number of ports for one controller are
14514 stored in <link to="IStorageController::minPortCount"/>
14515 and <link to="IStorageController::maxPortCount"/>.
14516 </desc>
14517 </attribute>
14518
14519 <attribute name="bus" type="StorageBus" readonly="yes">
14520 <desc>
14521 The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy).
14522 </desc>
14523 </attribute>
14524
14525 <attribute name="controllerType" type="StorageControllerType">
14526 <desc>
14527 The exact variant of storage controller hardware presented
14528 to the guest.
14529 Depending on this value, VirtualBox will provide a different
14530 virtual storage controller hardware to the guest.
14531 For SATA, SAS and floppy controllers, only one variant is
14532 available, but for IDE and SCSI, there are several.
14533
14534 For SCSI controllers, the default type is LsiLogic.
14535 </desc>
14536 </attribute>
14537
14538 <attribute name="useHostIOCache" type="boolean">
14539 <desc>
14540 If true, the storage controller emulation will use a dedicated I/O thread, enable the host I/O
14541 caches and use synchronous file APIs on the host. This was the only option in the API before
14542 VirtualBox 3.2 and is still the default for IDE controllers.
14543
14544 If false, the host I/O cache will be disabled for image files attached to this storage controller.
14545 Instead, the storage controller emulation will use asynchronous I/O APIs on the host. This makes
14546 it possible to turn off the host I/O caches because the emulation can handle unaligned access to
14547 the file. This should be used on OS X and Linux hosts if a high I/O load is expected or many
14548 virtual machines are running at the same time to prevent I/O cache related hangs.
14549 This option new with the API of VirtualBox 3.2 and is now the default for non-IDE storage controllers.
14550 </desc>
14551 </attribute>
14552
14553 <attribute name="bootable" type="boolean" readonly="yes">
14554 <desc>
14555 Returns whether it is possible to boot from disks attached to this controller.
14556 </desc>
14557 </attribute>
14558
14559 <method name="getIDEEmulationPort">
14560 <desc>
14561 Gets the corresponding port number which is emulated as an IDE device.
14562 Works only with SATA controllers.
14563
14564 <result name="E_INVALIDARG">
14565 The @a devicePosition is not in the range 0 to 3.
14566 </result>
14567 <result name="E_NOTIMPL">
14568 The storage controller type is not SATAIntelAhci.
14569 </result>
14570
14571 </desc>
14572 <param name="devicePosition" type="long" dir="in"/>
14573 <param name="portNumber" type="long" dir="return"/>
14574 </method>
14575
14576 <method name="setIDEEmulationPort">
14577 <desc>
14578 Sets the port number which is emulated as an IDE device.
14579 Works only with SATA controllers.
14580
14581 <result name="E_INVALIDARG">
14582 The @a devicePosition is not in the range 0 to 3 or the
14583 @a portNumber is not in the range 0 to 29.
14584 </result>
14585 <result name="E_NOTIMPL">
14586 The storage controller type is not SATAIntelAhci.
14587 </result>
14588
14589 </desc>
14590 <param name="devicePosition" type="long" dir="in"/>
14591 <param name="portNumber" type="long" dir="in"/>
14592 </method>
14593
14594 </interface>
14595
14596<if target="wsdl">
14597
14598 <!--
14599 // IManagedObjectRef
14600 /////////////////////////////////////////////////////////////////////////
14601 -->
14602
14603 <interface
14604 name="IManagedObjectRef" extends="$unknown"
14605 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
14606 internal="yes"
14607 wsmap="managed"
14608 wscpp="hardcoded"
14609 >
14610 <desc>
14611 Managed object reference.
14612
14613 Only within the webservice, a managed object reference (which is really
14614 an opaque number) allows a webservice client to address an object
14615 that lives in the address space of the webservice server.
14616
14617 Behind each managed object reference, there is a COM object that lives
14618 in the webservice server's address space. The COM object is not freed
14619 until the managed object reference is released, either by an explicit
14620 call to <link to="IManagedObjectRef::release" /> or by logging off from
14621 the webservice (<link to="IWebsessionManager::logoff" />), which releases
14622 all objects created during the webservice session.
14623
14624 Whenever a method call of the VirtualBox API returns a COM object, the
14625 webservice representation of that method will instead return a
14626 managed object reference, which can then be used to invoke methods
14627 on that object.
14628 </desc>
14629
14630 <method name="getInterfaceName">
14631 <desc>
14632 Returns the name of the interface that this managed object represents,
14633 for example, "IMachine", as a string.
14634 </desc>
14635 <param name="return" type="wstring" dir="return"/>
14636 </method>
14637
14638 <method name="release">
14639 <desc>
14640 Releases this managed object reference and frees the resources that
14641 were allocated for it in the webservice server process. After calling
14642 this method, the identifier of the reference can no longer be used.
14643 </desc>
14644 </method>
14645
14646 </interface>
14647
14648 <!--
14649 // IWebsessionManager
14650 /////////////////////////////////////////////////////////////////////////
14651 -->
14652
14653 <interface
14654 name="IWebsessionManager" extends="$unknown"
14655 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
14656 internal="yes"
14657 wsmap="global"
14658 wscpp="hardcoded"
14659 >
14660 <desc>
14661 Websession manager. This provides essential services
14662 to webservice clients.
14663 </desc>
14664 <method name="logon">
14665 <desc>
14666 Logs a new client onto the webservice and returns a managed object reference to
14667 the IVirtualBox instance, which the client can then use as a basis to further
14668 queries, since all calls to the VirtualBox API are based on the IVirtualBox
14669 interface, in one way or the other.
14670 </desc>
14671 <param name="username" type="wstring" dir="in"/>
14672 <param name="password" type="wstring" dir="in"/>
14673 <param name="return" type="IVirtualBox" dir="return"/>
14674 </method>
14675
14676 <method name="getSessionObject">
14677 <desc>
14678 Returns a managed object reference to the internal ISession object that was created
14679 for this web service session when the client logged on.
14680
14681 <see>ISession</see>
14682 </desc>
14683 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
14684 <param name="return" type="ISession" dir="return"/>
14685 </method>
14686
14687 <method name="logoff">
14688 <desc>
14689 Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
14690 and destroys all resources associated with the session (most importantly, all
14691 managed objects created in the server while the session was active).
14692 </desc>
14693 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
14694 </method>
14695
14696 </interface>
14697
14698</if>
14699
14700 <!--
14701 // IPerformanceCollector & friends
14702 /////////////////////////////////////////////////////////////////////////
14703 -->
14704
14705 <interface
14706 name="IPerformanceMetric" extends="$unknown"
14707 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
14708 >
14709 <desc>
14710 The IPerformanceMetric interface represents parameters of the given
14711 performance metric.
14712 </desc>
14713
14714 <attribute name="metricName" type="wstring" readonly="yes">
14715 <desc>
14716 Name of the metric.
14717 </desc>
14718 </attribute>
14719
14720 <attribute name="object" type="$unknown" readonly="yes">
14721 <desc>
14722 Object this metric belongs to.
14723 </desc>
14724 </attribute>
14725
14726 <attribute name="description" type="wstring" readonly="yes">
14727 <desc>
14728 Textual description of the metric.
14729 </desc>
14730 </attribute>
14731
14732 <attribute name="period" type="unsigned long" readonly="yes">
14733 <desc>
14734 Time interval between samples, measured in seconds.
14735 </desc>
14736 </attribute>
14737
14738 <attribute name="count" type="unsigned long" readonly="yes">
14739 <desc>
14740 Number of recent samples retained by the performance collector for this
14741 metric.
14742
14743 When the collected sample count exceeds this number, older samples
14744 are discarded.
14745 </desc>
14746 </attribute>
14747
14748 <attribute name="unit" type="wstring" readonly="yes">
14749 <desc>
14750 Unit of measurement.
14751 </desc>
14752 </attribute>
14753
14754 <attribute name="minimumValue" type="long" readonly="yes">
14755 <desc>
14756 Minimum possible value of this metric.
14757 </desc>
14758 </attribute>
14759
14760 <attribute name="maximumValue" type="long" readonly="yes">
14761 <desc>
14762 Maximum possible value of this metric.
14763 </desc>
14764 </attribute>
14765 </interface>
14766
14767 <interface
14768 name="IPerformanceCollector" extends="$unknown"
14769 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
14770 wsmap="managed"
14771 >
14772 <desc>
14773 The IPerformanceCollector interface represents a service that collects
14774 and stores performance metrics data.
14775
14776 Performance metrics are associated with objects of interfaces like IHost
14777 and IMachine. Each object has a distinct set of performance metrics. The
14778 set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
14779
14780 Metric data is collected at the specified intervals and is retained
14781 internally. The interval and the number of retained samples can be set
14782 with <link to="IPerformanceCollector::setupMetrics" />. Both metric data
14783 and collection settings are not persistent, they are discarded as soon as
14784 VBoxSVC process terminates. Moreover, metric settings and data associated
14785 with a particular VM only exist while VM is running. They disappear as
14786 soon as VM shuts down. It is not possible to set up metrics for machines
14787 that are powered off. One needs to start VM first, then set up metric
14788 collection parameters.
14789
14790 Metrics are organized hierarchically, with each level separated by a
14791 slash (/) character. Generally, the scheme for metric names is like this:
14792
14793 <tt>Category/Metric[/SubMetric][:aggregation]</tt>
14794
14795 "Category/Metric" together form the base metric name. A base metric is
14796 the smallest unit for which a sampling interval and the number of
14797 retained samples can be set. Only base metrics can be enabled and
14798 disabled. All sub-metrics are collected when their base metric is
14799 collected. Collected values for any set of sub-metrics can be queried
14800 with <link to="IPerformanceCollector::queryMetricsData" />.
14801
14802 For example "CPU/Load/User:avg" metric name stands for the "CPU"
14803 category, "Load" metric, "User" submetric, "average" aggregate. An
14804 aggregate function is computed over all retained data. Valid aggregate
14805 functions are:
14806
14807 <ul>
14808 <li>avg -- average</li>
14809 <li>min -- minimum</li>
14810 <li>max -- maximum</li>
14811 </ul>
14812
14813 When setting up metric parameters, querying metric data, enabling or
14814 disabling metrics wildcards can be used in metric names to specify a
14815 subset of metrics. For example, to select all CPU-related metrics
14816 use <tt>CPU/*</tt>, all averages can be queried using <tt>*:avg</tt> and
14817 so on. To query metric values without aggregates <tt>*:</tt> can be used.
14818
14819 The valid names for base metrics are:
14820
14821 <ul>
14822 <li>CPU/Load</li>
14823 <li>CPU/MHz</li>
14824 <li>RAM/Usage</li>
14825 <li>RAM/VMM</li>
14826 </ul>
14827
14828 The general sequence for collecting and retrieving the metrics is:
14829 <ul>
14830 <li>
14831 Obtain an instance of IPerformanceCollector with
14832 <link to="IVirtualBox::performanceCollector" />
14833 </li>
14834 <li>
14835 Allocate and populate an array with references to objects the metrics
14836 will be collected for. Use references to IHost and IMachine objects.
14837 </li>
14838 <li>
14839 Allocate and populate an array with base metric names the data will
14840 be collected for.
14841 </li>
14842 <li>
14843 Call <link to="IPerformanceCollector::setupMetrics" />. From now on
14844 the metric data will be collected and stored.
14845 </li>
14846 <li>
14847 Wait for the data to get collected.
14848 </li>
14849 <li>
14850 Allocate and populate an array with references to objects the metric
14851 values will be queried for. You can re-use the object array used for
14852 setting base metrics.
14853 </li>
14854 <li>
14855 Allocate and populate an array with metric names the data will be
14856 collected for. Note that metric names differ from base metric names.
14857 </li>
14858 <li>
14859 Call <link to="IPerformanceCollector::queryMetricsData" />. The data
14860 that have been collected so far are returned. Note that the values
14861 are still retained internally and data collection continues.
14862 </li>
14863 </ul>
14864
14865 For an example of usage refer to the following files in VirtualBox SDK:
14866 <ul>
14867 <li>
14868 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
14869 </li>
14870 <li>
14871 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
14872 </li>
14873 </ul>
14874 </desc>
14875
14876 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
14877 <desc>
14878 Array of unique names of metrics.
14879
14880 This array represents all metrics supported by the performance
14881 collector. Individual objects do not necessarily support all of them.
14882 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
14883 list of supported metrics for a particular object.
14884 </desc>
14885 </attribute>
14886
14887 <method name="getMetrics">
14888 <desc>
14889 Returns parameters of specified metrics for a set of objects.
14890 <note>
14891 @c Null metrics array means all metrics. @c Null object array means
14892 all existing objects.
14893 </note>
14894 </desc>
14895 <param name="metricNames" type="wstring" dir="in" safearray="yes">
14896 <desc>
14897 Metric name filter. Currently, only a comma-separated list of metrics
14898 is supported.
14899 </desc>
14900 </param>
14901 <param name="objects" type="$unknown" dir="in" safearray="yes">
14902 <desc>
14903 Set of objects to return metric parameters for.
14904 </desc>
14905 </param>
14906 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
14907 <desc>
14908 Array of returned metric parameters.
14909 </desc>
14910 </param>
14911 </method>
14912
14913 <method name="setupMetrics">
14914 <desc>
14915 Sets parameters of specified base metrics for a set of objects. Returns
14916 an array of <link to="IPerformanceMetric" /> describing the metrics
14917 have been affected.
14918 <note>
14919 @c Null or empty metric name array means all metrics. @c Null or
14920 empty object array means all existing objects. If metric name array
14921 contains a single element and object array contains many, the single
14922 metric name array element is applied to each object array element to
14923 form metric/object pairs.
14924 </note>
14925 </desc>
14926 <param name="metricNames" type="wstring" dir="in" safearray="yes">
14927 <desc>
14928 Metric name filter. Comma-separated list of metrics with wildcard
14929 support.
14930 </desc>
14931 </param>
14932 <param name="objects" type="$unknown" dir="in" safearray="yes">
14933 <desc>
14934 Set of objects to setup metric parameters for.
14935 </desc>
14936 </param>
14937 <param name="period" type="unsigned long" dir="in">
14938 <desc>
14939 Time interval in seconds between two consecutive samples of
14940 performance data.
14941 </desc>
14942 </param>
14943 <param name="count" type="unsigned long" dir="in">
14944 <desc>
14945 Number of samples to retain in performance data history. Older
14946 samples get discarded.
14947 </desc>
14948 </param>
14949 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
14950 <desc>
14951 Array of metrics that have been modified by the call to this method.
14952 </desc>
14953 </param>
14954 </method>
14955
14956 <method name="enableMetrics">
14957 <desc>
14958 Turns on collecting specified base metrics. Returns an array of
14959 <link to="IPerformanceMetric" /> describing the metrics have been
14960 affected.
14961 <note>
14962 @c Null or empty metric name array means all metrics. @c Null or
14963 empty object array means all existing objects. If metric name array
14964 contains a single element and object array contains many, the single
14965 metric name array element is applied to each object array element to
14966 form metric/object pairs.
14967 </note>
14968 </desc>
14969 <param name="metricNames" type="wstring" dir="in" safearray="yes">
14970 <desc>
14971 Metric name filter. Comma-separated list of metrics with wildcard
14972 support.
14973 </desc>
14974 </param>
14975 <param name="objects" type="$unknown" dir="in" safearray="yes">
14976 <desc>
14977 Set of objects to enable metrics for.
14978 </desc>
14979 </param>
14980 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
14981 <desc>
14982 Array of metrics that have been modified by the call to this method.
14983 </desc>
14984 </param>
14985 </method>
14986
14987 <method name="disableMetrics">
14988 <desc>
14989 Turns off collecting specified base metrics. Returns an array of
14990 <link to="IPerformanceMetric" /> describing the metrics have been
14991 affected.
14992 <note>
14993 @c Null or empty metric name array means all metrics. @c Null or
14994 empty object array means all existing objects. If metric name array
14995 contains a single element and object array contains many, the single
14996 metric name array element is applied to each object array element to
14997 form metric/object pairs.
14998 </note>
14999 </desc>
15000 <param name="metricNames" type="wstring" dir="in" safearray="yes">
15001 <desc>
15002 Metric name filter. Comma-separated list of metrics with wildcard
15003 support.
15004 </desc>
15005 </param>
15006 <param name="objects" type="$unknown" dir="in" safearray="yes">
15007 <desc>
15008 Set of objects to disable metrics for.
15009 </desc>
15010 </param>
15011 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
15012 <desc>
15013 Array of metrics that have been modified by the call to this method.
15014 </desc>
15015 </param>
15016 </method>
15017
15018 <method name="queryMetricsData">
15019 <desc>
15020 Queries collected metrics data for a set of objects.
15021
15022 The data itself and related metric information are returned in seven
15023 parallel and one flattened array of arrays. Elements of
15024 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
15025 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
15026 the same index describe one set of values corresponding to a single
15027 metric.
15028
15029 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
15030 start and length of a sub-array is indicated by
15031 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
15032 value for metric <tt>metricNames[i]</tt> is at
15033 <tt>returnData[returnIndices[i]]</tt>.
15034
15035 <note>
15036 @c Null or empty metric name array means all metrics. @c Null or
15037 empty object array means all existing objects. If metric name array
15038 contains a single element and object array contains many, the single
15039 metric name array element is applied to each object array element to
15040 form metric/object pairs.
15041 </note>
15042 <note>
15043 Data collection continues behind the scenes after call to @c
15044 queryMetricsData. The return data can be seen as the snapshot of the
15045 current state at the time of @c queryMetricsData call. The internally
15046 kept metric values are not cleared by the call. This makes possible
15047 querying different subsets of metrics or aggregates with subsequent
15048 calls. If periodic querying is needed it is highly suggested to query
15049 the values with @c interval*count period to avoid confusion. This way
15050 a completely new set of data values will be provided by each query.
15051 </note>
15052 </desc>
15053 <param name="metricNames" type="wstring" dir="in" safearray="yes">
15054 <desc>
15055 Metric name filter. Comma-separated list of metrics with wildcard
15056 support.
15057 </desc>
15058 </param>
15059 <param name="objects" type="$unknown" dir="in" safearray="yes">
15060 <desc>
15061 Set of objects to query metrics for.
15062 </desc>
15063 </param>
15064 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
15065 <desc>
15066 Names of metrics returned in @c returnData.
15067 </desc>
15068 </param>
15069 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
15070 <desc>
15071 Objects associated with metrics returned in @c returnData.
15072 </desc>
15073 </param>
15074 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
15075 <desc>
15076 Units of measurement for each returned metric.
15077 </desc>
15078 </param>
15079 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
15080 <desc>
15081 Divisor that should be applied to return values in order to get
15082 floating point values. For example:
15083 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
15084 will retrieve the floating point value of i-th sample of the first
15085 metric.
15086 </desc>
15087 </param>
15088 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
15089 <desc>
15090 Sequence numbers of the first elements of value sequences of
15091 particular metrics returned in @c returnData. For aggregate metrics
15092 it is the sequence number of the sample the aggregate started
15093 calculation from.
15094 </desc>
15095 </param>
15096 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
15097 <desc>
15098 Indices of the first elements of value sequences of particular
15099 metrics returned in @c returnData.
15100 </desc>
15101 </param>
15102 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
15103 <desc>
15104 Lengths of value sequences of particular metrics.
15105 </desc>
15106 </param>
15107 <param name="returnData" type="long" dir="return" safearray="yes">
15108 <desc>
15109 Flattened array of all metric data containing sequences of values for
15110 each metric.
15111 </desc>
15112 </param>
15113 </method>
15114
15115 </interface>
15116
15117 <enum
15118 name="NATAliasMode"
15119 uuid="67772168-50d9-11df-9669-7fb714ee4fa1"
15120 >
15121 <desc></desc>
15122 <const name="AliasLog" value="0x1">
15123 <desc></desc>
15124 </const>
15125 <const name="AliasProxyOnly" value="0x02">
15126 <desc></desc>
15127 </const>
15128 <const name="AliasUseSamePorts" value="0x04">
15129 <desc></desc>
15130 </const>
15131 </enum>
15132
15133 <enum
15134 name="NATProtocol"
15135 uuid="e90164be-eb03-11de-94af-fff9b1c1b19f"
15136 >
15137 <desc>Protocol definitions used with NAT port-forwarding rules.</desc>
15138 <const name="UDP" value="0">
15139 <desc>Port-forwarding uses UDP protocol.</desc>
15140 </const>
15141 <const name="TCP" value="1">
15142 <desc>Port-forwarding uses TCP protocol.</desc>
15143 </const>
15144 </enum>
15145
15146 <interface
15147 name="INATEngine" extends="$unknown"
15148 uuid="4b286616-eb03-11de-b0fb-1701eca42246"
15149 wsmap="managed"
15150 >
15151 <desc>Interface for managing a NAT engine which is used with a virtual machine. This
15152 allows for changing NAT behavior such as port-forwarding rules. This interface is
15153 used in the <link to="INetworkAdapter::natDriver" /> attribute.</desc>
15154 <attribute name="network" type="wstring">
15155 <desc>The network attribute of the NAT engine (the same value is used with built-in
15156 DHCP server to fill corresponding fields of DHCP leases).</desc>
15157 </attribute>
15158 <attribute name="hostIP" type="wstring">
15159 <desc>IP of host interface to bind all opened sockets to.
15160 <note>Changing this does not change binding of port forwarding.</note>
15161 </desc>
15162 </attribute>
15163 <attribute name="tftpPrefix" type="wstring">
15164 <desc>TFTP prefix attribute which is used with the built-in DHCP server to fill
15165 the corresponding fields of DHCP leases.</desc>
15166 </attribute>
15167 <attribute name="tftpBootFile" type="wstring">
15168 <desc>TFTP boot file attribute which is used with the built-in DHCP server to fill
15169 the corresponding fields of DHCP leases.</desc>
15170 </attribute>
15171 <attribute name="tftpNextServer" type="wstring">
15172 <desc>TFTP server attribute which is used with the built-in DHCP server to fill
15173 the corresponding fields of DHCP leases.
15174 <note>The preferred form is IPv4 addresses.</note>
15175 </desc>
15176 </attribute>
15177 <attribute name="aliasMode" type="unsigned long">
15178 <desc></desc>
15179 </attribute>
15180 <attribute name="dnsPassDomain" type="boolean">
15181 <desc>Whether the DHCP server should pass the DNS domain used by the host.</desc>
15182 </attribute>
15183 <attribute name="dnsProxy" type="boolean">
15184 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
15185 of the DNS proxy and process traffic using DNS servers registered on the host.</desc>
15186 </attribute>
15187 <attribute name="dnsUseHostResolver" type="boolean">
15188 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
15189 of the DNS proxy and process traffic using the host resolver mechanism.</desc>
15190 </attribute>
15191 <attribute name="redirects" type="wstring" readonly="yes" safearray="yes">
15192 <desc>Array of NAT port-forwarding rules in string representation, in the following
15193 format: "name,protocol id,host ip,host port,guest ip,guest port".</desc>
15194 </attribute>
15195 <method name="setNetworkSettings">
15196 <desc>Sets network configuration of the NAT engine.</desc>
15197 <param name="mtu" type="unsigned long" dir="in">
15198 <desc>MTU (maximum transmission unit) of the NAT engine in bytes.</desc>
15199 </param>
15200 <param name="sockSnd" type="unsigned long" dir="in">
15201 <desc>Capacity of the socket send buffer in bytes when creating a new socket.</desc>
15202 </param>
15203 <param name="sockRcv" type="unsigned long" dir="in">
15204 <desc>Capacity of the socket receive buffer in bytes when creating a new socket.</desc>
15205 </param>
15206 <param name="TcpWndSnd" type="unsigned long" dir="in">
15207 <desc>Initial size of the NAT engine's sending TCP window in bytes when
15208 establishing a new TCP connection.</desc>
15209 </param>
15210 <param name="TcpWndRcv" type="unsigned long" dir="in">
15211 <desc>Initial size of the NAT engine's receiving TCP window in bytes when
15212 establishing a new TCP connection.</desc>
15213 </param>
15214 </method>
15215 <method name="getNetworkSettings">
15216 <desc>Returns network configuration of NAT engine. See <link to="#setNetworkSettings" />
15217 for parameter descriptions.</desc>
15218 <param name="mtu" type="unsigned long" dir="out" />
15219 <param name="sockSnd" type="unsigned long" dir="out" />
15220 <param name="sockRcv" type="unsigned long" dir="out" />
15221 <param name="TcpWndSnd" type="unsigned long" dir="out" />
15222 <param name="TcpWndRcv" type="unsigned long" dir="out" />
15223 </method>
15224 <method name="addRedirect">
15225 <desc>Adds a new NAT port-forwarding rule.</desc>
15226 <param name="name" type="wstring" dir="in">
15227 <desc>The name of the rule. An empty name is acceptable, in which case the NAT engine
15228 auto-generates one using the other parameters.</desc>
15229 </param>
15230 <param name="proto" type="NATProtocol" dir="in">
15231 <desc>Protocol handled with the rule.</desc>
15232 </param>
15233 <param name="hostIp" type="wstring" dir="in">
15234 <desc>IP of the host interface to which the rule should apply. An empty ip address is
15235 acceptable, in which case the NAT engine binds the handling socket to any interface.</desc>
15236 </param>
15237 <param name="hostPort" type="unsigned short" dir="in">
15238 <desc>The port number to listen on.</desc>
15239 </param>
15240 <param name="guestIp" type="wstring" dir="in">
15241 <desc>The IP address of the guest which the NAT engine will forward matching packets
15242 to. An empty IP address is acceptable, in which case the NAT engine will forward
15243 packets to the first DHCP lease (x.x.x.15).</desc>
15244 </param>
15245 <param name="guestPort" type="unsigned short" dir="in">
15246 <desc>The port number to forward.</desc>
15247 </param>
15248 </method>
15249 <method name="removeRedirect">
15250 <desc>Removes a port-forwarding rule that was previously registered.</desc>
15251 <param name="name" type="wstring" dir="in">
15252 <desc>The name of the rule to delete.</desc>
15253 </param>
15254 </method>
15255 </interface>
15256
15257 <!--
15258 // IExtPackManager
15259 /////////////////////////////////////////////////////////////////////////
15260 -->
15261
15262 <interface
15263 name="IExtPackPlugIn" extends="$unknown"
15264 uuid="58000040-e718-4746-bbce-4b86d96da461"
15265 wsmap="suppress"
15266 >
15267 <desc>
15268 Interface for keeping information about a plug-in that ships with an
15269 extension pack.
15270 </desc>
15271 <attribute name="name" type="wstring" readonly="yes">
15272 <desc>The plug-in name.</desc>
15273 </attribute>
15274 <attribute name="description" type="wstring" readonly="yes">
15275 <desc>The plug-in description.</desc>
15276 </attribute>
15277 <attribute name="frontend" type="wstring" readonly="yes">
15278 <desc>
15279 The name of the frontend or component name this plug-in plugs into.
15280 </desc>
15281 </attribute>
15282 <attribute name="modulePath" type="wstring" readonly="yes">
15283 <desc> The module path. </desc>
15284 </attribute>
15285 </interface>
15286
15287 <interface
15288 name="IExtPackBase" extends="$unknown"
15289 uuid="5ffb0b64-0ad6-467d-af62-1157e7dc3c99"
15290 wsmap="suppress"
15291 >
15292 <desc>
15293 Interface for querying information about an extension pack as well as
15294 accessing COM objects within it.
15295 </desc>
15296 <attribute name="name" type="wstring" readonly="yes">
15297 <desc>The extension pack name. This is unique.</desc>
15298 </attribute>
15299 <attribute name="description" type="wstring" readonly="yes">
15300 <desc>The extension pack description.</desc>
15301 </attribute>
15302 <attribute name="version" type="wstring" readonly="yes">
15303 <desc>
15304 The extension pack version string. This is on the same form as
15305 other VirtualBox version strings, i.e.: "1.2.3", "1.2.3_BETA1",
15306 "1.2.3-OSE", "1.2.3r45678", "1.2.3r45678-OSE", "1.2.3_BETA1-r45678"
15307 or "1.2.3_BETA1-r45678-OSE"
15308 </desc>
15309 </attribute>
15310 <attribute name="revision" type="unsigned long" readonly="yes">
15311 <desc>The extension pack internal revision number.</desc>
15312 </attribute>
15313 <attribute name="VRDEModule" type="wstring" readonly="yes">
15314 <desc>The name of the VRDE module if the extension pack sports one.</desc>
15315 </attribute>
15316 <attribute name="plugIns" type="IExtPackPlugIn" safearray="yes" readonly="yes">
15317 <desc>Plug-ins provided by this extension pack.</desc>
15318 </attribute>
15319 <attribute name="usable" type="boolean" readonly="yes">
15320 <desc>
15321 Indicates whether the extension pack is usable or not.
15322
15323 There are a number of reasons why an extension pack might be unusable,
15324 typical examples would be broken installation/file or that it is
15325 incompatible with the current VirtualBox version.
15326 </desc>
15327 </attribute>
15328 <attribute name="whyUnusable" type="wstring" readonly="yes">
15329 <desc>
15330 String indicating why the extension pack is not usable. This is an
15331 empty string if usable and always a non-empty string if not usable.
15332 </desc>
15333 </attribute>
15334 <attribute name="showLicense" type="boolean" readonly="yes">
15335 <desc>Whether to show the license before installation</desc>
15336 </attribute>
15337 <attribute name="license" type="wstring" readonly="yes">
15338 <desc>
15339 The default HTML license text for the extension pack. Same as
15340 calling <link to="#queryLicense">queryLicense</link> with
15341 preferredLocale and preferredLanguage as empty strings and format set
15342 to html.
15343 </desc>
15344 </attribute>
15345
15346 <method name="queryLicense">
15347 <desc>
15348 Full feature version of the license attribute.
15349 </desc>
15350 <param name="preferredLocale" type="wstring" dir="in">
15351 <desc>
15352 The preferred license locale. Pass an empty string to get the default
15353 license.
15354 </desc>
15355 </param>
15356 <param name="preferredLanguage" type="wstring" dir="in">
15357 <desc>
15358 The preferred license language. Pass an empty string to get the
15359 default language for the locale.
15360 </desc>
15361 </param>
15362 <param name="format" type="wstring" dir="in">
15363 <desc>
15364 The license format: html, rtf or txt. If a license is present there
15365 will always be an HTML of it, the rich text format (RTF) and plain
15366 text (txt) versions are optional. If
15367 </desc>
15368 </param>
15369 <param name="licenseText" type="wstring" dir="return">
15370 <desc>The license text.</desc>
15371 </param>
15372 </method>
15373
15374 </interface>
15375
15376 <interface
15377 name="IExtPack" extends="IExtPackBase"
15378 uuid="431685da-3618-4ebc-b038-833ba829b4b2"
15379 wsmap="suppress"
15380 >
15381 <desc>
15382 Interface for querying information about an extension pack as well as
15383 accessing COM objects within it.
15384 </desc>
15385 <method name="queryObject">
15386 <desc>
15387 Queries the IUnknown interface to an object in the extension pack
15388 main module. This allows plug-ins and others to talk directly to an
15389 extension pack.
15390 </desc>
15391 <param name="objUuid" type="wstring" dir="in">
15392 <desc>The object ID. What exactly this is </desc>
15393 </param>
15394 <param name="returnInterface" type="$unknown" dir="return">
15395 <desc>The queried interface.</desc>
15396 </param>
15397 </method>
15398 </interface>
15399
15400 <interface
15401 name="IExtPackFile" extends="IExtPackBase"
15402 uuid="b6b49f55-efcc-4f08-b486-56e8d8afb10b"
15403 wsmap="suppress"
15404 >
15405 <desc>
15406 Extension pack file (aka tarball, .vbox-extpack) representation returned
15407 by IExtPackManager::openExtPackFile. This provides the base extension
15408 pack information with the addition of the file name. It also provides an
15409 alternative to IExtPackManager::install.
15410 </desc>
15411 <attribute name="filePath" type="wstring" readonly="yes">
15412 <desc>
15413 The path to the extension pack file.
15414 </desc>
15415 </attribute>
15416
15417 <method name="install">
15418 <desc>
15419 Install the extension pack.
15420 </desc>
15421 <param name="replace" type="boolean" dir="in">
15422 <desc>
15423 Set this to automatically uninstall any existing extension pack with
15424 the same name as the one being installed.
15425 </desc>
15426 </param>
15427 <param name="displayInfo" type="wstring" dir="in">
15428 <desc>
15429 Platform specific display information. Reserved for future hacks.
15430 </desc>
15431 </param>
15432 <param name="progess" type="IProgress" dir="return">
15433 <desc>
15434 Progress object for the operation.
15435 </desc>
15436 </param>
15437 </method>
15438 </interface>
15439
15440 <interface
15441 name="IExtPackManager" extends="$unknown"
15442 uuid="2451b1ba-ab1c-42fb-b453-c58433bea8c7"
15443 wsmap="suppress"
15444 >
15445 <desc>
15446 Interface for managing VirtualBox Extension Packs.
15447
15448 TODO: Describe extension packs, how they are managed and how to create
15449 one.
15450 </desc>
15451
15452 <attribute name="installedExtPacks" type="IExtPack" safearray="yes" readonly="yes">
15453 <desc>
15454 List of the installed extension packs.
15455 </desc>
15456 </attribute>
15457
15458 <method name="find">
15459 <desc>
15460 Returns the extension pack with the specified name if found.
15461
15462 <result name="VBOX_E_OBJECT_NOT_FOUND">
15463 No extension pack matching @a name was found.
15464 </result>
15465 </desc>
15466 <param name="name" type="wstring" dir="in">
15467 <desc>The name of the extension pack to locate.</desc>
15468 </param>
15469 <param name="returnData" type="IExtPack" dir="return">
15470 <desc>The extension pack if found.</desc>
15471 </param>
15472 </method>
15473
15474 <method name="openExtPackFile">
15475 <desc>
15476 Attempts to open an extension pack file in preparation for
15477 installation.
15478 </desc>
15479 <param name="path" type="wstring" dir="in">
15480 <desc>The path of the extension pack tarball.</desc>
15481 </param>
15482 <param name="file" type="IExtPackFile" dir="return">
15483 <desc>The interface of the extension pack file object.</desc>
15484 </param>
15485 </method>
15486
15487 <method name="uninstall">
15488 <desc>Uninstalls an extension pack, removing all related files.</desc>
15489 <param name="name" type="wstring" dir="in">
15490 <desc>The name of the extension pack to uninstall.</desc>
15491 </param>
15492 <param name="forcedRemoval" type="boolean" dir="in">
15493 <desc>
15494 Forced removal of the extension pack. This means that the uninstall
15495 hook will not be called.
15496 </desc>
15497 </param>
15498 <param name="displayInfo" type="wstring" dir="in">
15499 <desc>
15500 Platform specific display information. Reserved for future hacks.
15501 </desc>
15502 </param>
15503 <param name="progess" type="IProgress" dir="return">
15504 <desc>
15505 Progress object for the operation.
15506 </desc>
15507 </param>
15508 </method>
15509
15510 <method name="cleanup">
15511 <desc>Cleans up failed installs and uninstalls</desc>
15512 </method>
15513
15514 <method name="QueryAllPlugInsForFrontend">
15515 <desc>
15516 Gets the path to all the plug-in modules for a given frontend.
15517
15518 This is a convenience method that is intended to simplify the plug-in
15519 loading process for a frontend.
15520 </desc>
15521 <param name="frontendName" type="wstring" dir="in">
15522 <desc>The name of the frontend or component.</desc>
15523 </param>
15524 <param name="plugInModules" type="wstring" dir="return" safearray="yes">
15525 <desc>Array containing the plug-in modules (full paths).</desc>
15526 </param>
15527 </method>
15528
15529 <method name="IsExtPackUsable">
15530 <desc>Check if the given extension pack is loaded and usable.</desc>
15531 <param name="name" type="wstring" dir="in">
15532 <desc>The name of the extension pack to check for.</desc>
15533 </param>
15534 <param name="usable" type="boolean" dir="return">
15535 <desc>Is the given extension pack loaded and usable.</desc>
15536 </param>
15537 </method>
15538
15539 </interface>
15540
15541 <!--
15542 // BandwidthGroupType
15543 /////////////////////////////////////////////////////////////////////////
15544 -->
15545 <enum
15546 name="BandwidthGroupType"
15547 uuid="1d92b67d-dc69-4be9-ad4c-93a01e1e0c8e">
15548
15549 <desc>
15550 Type of a bandwidth control group.
15551 </desc>
15552
15553 <const name="Null" value="0">
15554 <desc>
15555 Null type, must be first.
15556 </desc>
15557 </const>
15558
15559 <const name="Disk" value="1">
15560 <desc>
15561 The bandwidth group controls disk I/O.
15562 </desc>
15563 </const>
15564
15565 <const name="Network" value="2">
15566 <desc>
15567 The bandwidth group controls network I/O.
15568 </desc>
15569 </const>
15570
15571 </enum>
15572
15573 <!--
15574 // IBandwidthGroup
15575 /////////////////////////////////////////////////////////////////////////
15576 -->
15577 <interface
15578 name="IBandwidthGroup" extends="$unknown"
15579 uuid="badea2d7-0261-4146-89f0-6a57cc34833d"
15580 wsmap="managed"
15581 >
15582 <desc>Represents one bandwidth group.</desc>
15583
15584 <attribute name="name" type="wstring" readonly="yes">
15585 <desc>Name of the group.</desc>
15586 </attribute>
15587
15588 <attribute name="type" type="BandwidthGroupType" readonly="yes">
15589 <desc>Type of the group.</desc>
15590 </attribute>
15591
15592 <attribute name="reference" type="unsigned long" readonly="yes">
15593 <desc>How many devices/medium attachements use this group.</desc>
15594 </attribute>
15595
15596 <attribute name="maxMbPerSec" type="unsigned long">
15597 <desc>The maximum number of MBytes which can be transfered by all
15598 entities attached to this group during one second.</desc>
15599 </attribute>
15600
15601 </interface>
15602
15603 <!--
15604 // IBandwidthControl
15605 /////////////////////////////////////////////////////////////////////////
15606 -->
15607 <interface
15608 name="IBandwidthControl" extends="$unknown"
15609 uuid="d0a24db0-f756-11df-98cf-0800200c9a66"
15610 wsmap="managed"
15611 >
15612 <desc>
15613 Controls the bandwidth groups of one machine used to cap I/O done by a VM.
15614 This includes network and disk I/O.
15615 </desc>
15616
15617 <attribute name="numGroups" type="unsigned long" readonly="yes">
15618 <desc>
15619 The current number of existing bandwidth groups managed.
15620 </desc>
15621 </attribute>
15622
15623 <method name="CreateBandwidthGroup">
15624 <desc>
15625 Creates a new bandwidth group.
15626 </desc>
15627
15628 <param name="name" type="wstring" dir="in">
15629 <desc>Name of the bandwidth group.</desc>
15630 </param>
15631 <param name="type" type="BandwidthGroupType" dir="in">
15632 <desc>The type of the bandwidth group (network or disk).</desc>
15633 </param>
15634 <param name="maxMbPerSec" type="unsigned long" dir="in">
15635 <desc>The maximum number of MBytes which can be transfered by all
15636 entities attached to this group during one second.</desc>
15637 </param>
15638 </method>
15639
15640 <method name="DeleteBandwidthGroup">
15641 <desc>
15642 Deletes a new bandwidth group.
15643 </desc>
15644
15645 <param name="name" type="wstring" dir="in">
15646 <desc>Name of the bandwidth group to delete.</desc>
15647 </param>
15648 </method>
15649
15650 <method name="GetBandwidthGroup" const="yes">
15651 <desc>
15652 Get a bandwidth group by name.
15653 </desc>
15654
15655 <param name="name" type="wstring" dir="in">
15656 <desc>Name of the bandwidth group to get.</desc>
15657 </param>
15658 <param name="bandwidthGroup" type="IBandwidthGroup" dir="return">
15659 <desc>Where to store the bandwidth group on success.</desc>
15660 </param>
15661 </method>
15662
15663 <method name="GetAllBandwidthGroups" const="yes">
15664 <desc>
15665 Get all managed bandwidth groups.
15666 </desc>
15667
15668 <param name="bandwidthGroups" type="IBandwidthGroup" dir="return" safearray="yes">
15669 <desc>The array of managed bandwidth groups.</desc>
15670 </param>
15671 </method>
15672 </interface>
15673
15674 <!--
15675 // IVirtualBoxClient
15676 /////////////////////////////////////////////////////////////////////////
15677 -->
15678
15679 <interface
15680 name="IVirtualBoxClient" extends="$unknown"
15681 uuid="5fe0bd48-1181-40d1-991f-3b02f269a823"
15682 wsmap="suppress"
15683 >
15684 <desc>
15685 Convenience interface for client applications. Treat this as a
15686 singleton, i.e. never create more than one instance of this interface.
15687
15688 At the moment only available for clients of the local API (not usable
15689 via the webservice). Once the session logic is redesigned this might
15690 change.
15691 </desc>
15692
15693 <attribute name="virtualBox" type="IVirtualBox" readonly="yes">
15694 <desc>
15695 Reference to the server-side API root object.
15696 </desc>
15697 </attribute>
15698
15699 <attribute name="session" type="ISession" readonly="yes">
15700 <desc>
15701 Create a new session object and return the reference to it.
15702 </desc>
15703 </attribute>
15704
15705 <attribute name="eventSource" type="IEventSource" readonly="yes">
15706 <desc>
15707 Event source for VirtualBoxClient events.
15708 </desc>
15709 </attribute>
15710
15711 </interface>
15712
15713 <!--
15714 // Events
15715 /////////////////////////////////////////////////////////////////////////
15716 -->
15717 <enum
15718 name="VBoxEventType"
15719 uuid="cce48db6-8561-479d-8d46-1358bab45d4e"
15720 >
15721
15722 <desc>
15723 Type of an event.
15724 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
15725 </desc>
15726
15727 <const name="Invalid" value="0">
15728 <desc>
15729 Invalid event, must be first.
15730 </desc>
15731 </const>
15732
15733 <const name="Any" value="1">
15734 <desc>
15735 Wildcard for all events.
15736 Events of this type are never delivered, and only used in
15737 registerListener() call to simplify registration.
15738 </desc>
15739 </const>
15740
15741 <const name="Vetoable" value="2">
15742 <desc>
15743 Wildcard for all vetoable events. Events of this type are never delivered, and only
15744 used in registerListener() call to simplify registration.
15745 </desc>
15746 </const>
15747
15748 <const name="MachineEvent" value="3">
15749 <desc>
15750 Wildcard for all machine events. Events of this type are never delivered, and only used in
15751 registerListener() call to simplify registration.
15752 </desc>
15753 </const>
15754
15755 <const name="SnapshotEvent" value="4">
15756 <desc>
15757 Wildcard for all snapshot events. Events of this type are never delivered, and only used in
15758 registerListener() call to simplify registration.
15759 </desc>
15760 </const>
15761
15762 <const name="InputEvent" value="5">
15763 <desc>
15764 Wildcard for all input device (keyboard, mouse) events.
15765 Events of this type are never delivered, and only used in
15766 registerListener() call to simplify registration.
15767 </desc>
15768 </const>
15769
15770 <const name="LastWildcard" value="31">
15771 <desc>
15772 Last wildcard.
15773 </desc>
15774 </const>
15775
15776 <const name="OnMachineStateChanged" value="32">
15777 <desc>
15778 See <link to="IMachineStateChangedEvent">IMachineStateChangedEvent</link>.
15779 </desc>
15780 </const>
15781 <const name="OnMachineDataChanged" value="33">
15782 <desc>
15783 See <link to="IMachineDataChangedEvent">IMachineDataChangedEvent</link>.
15784 </desc>
15785 </const>
15786 <const name="OnExtraDataChanged" value="34">
15787 <desc>
15788 See <link to="IExtraDataChangedEvent">IExtraDataChangedEvent</link>.
15789 </desc>
15790 </const>
15791 <const name="OnExtraDataCanChange" value="35">
15792 <desc>
15793 See <link to="IExtraDataCanChangeEvent">IExtraDataCanChangeEvent</link>.
15794 </desc>
15795 </const>
15796 <const name="OnMediumRegistered" value="36">
15797 <desc>
15798 See <link to="IMediumRegisteredEvent">IMediumRegisteredEvent</link>.
15799 </desc>
15800 </const>
15801 <const name="OnMachineRegistered" value="37">
15802 <desc>
15803 See <link to="IMachineRegisteredEvent">IMachineRegisteredEvent</link>.
15804 </desc>
15805 </const>
15806 <const name="OnSessionStateChanged" value="38">
15807 <desc>
15808 See <link to="ISessionStateChangedEvent">ISessionStateChangedEvent</link>.
15809 </desc>
15810 </const>
15811 <const name="OnSnapshotTaken" value="39">
15812 <desc>
15813 See <link to="ISnapshotTakenEvent">ISnapshotTakenEvent</link>.
15814 </desc>
15815 </const>
15816 <const name="OnSnapshotDeleted" value="40">
15817 <desc>
15818 See <link to="ISnapshotDeletedEvent">ISnapshotDeletedEvent</link>.
15819 </desc>
15820 </const>
15821 <const name="OnSnapshotChanged" value="41">
15822 <desc>
15823 See <link to="ISnapshotChangedEvent">ISnapshotChangedEvent</link>.
15824 </desc>
15825 </const>
15826 <const name="OnGuestPropertyChanged" value="42">
15827 <desc>
15828 See <link to="IGuestPropertyChangedEvent">IGuestPropertyChangedEvent</link>.
15829 </desc>
15830 </const>
15831 <!-- Console events -->
15832 <const name="OnMousePointerShapeChanged" value="43">
15833 <desc>
15834 See <link to="IMousePointerShapeChangedEvent">IMousePointerShapeChangedEvent</link>.
15835 </desc>
15836 </const>
15837 <const name="OnMouseCapabilityChanged" value="44">
15838 <desc>
15839 See <link to="IMouseCapabilityChangedEvent">IMouseCapabilityChangedEvent</link>.
15840 </desc>
15841 </const>
15842 <const name="OnKeyboardLedsChanged" value="45">
15843 <desc>
15844 See <link to="IKeyboardLedsChangedEvent">IKeyboardLedsChangedEvent</link>.
15845 </desc>
15846 </const>
15847 <const name="OnStateChanged" value="46">
15848 <desc>
15849 See <link to="IStateChangedEvent">IStateChangedEvent</link>.
15850 </desc>
15851 </const>
15852 <const name="OnAdditionsStateChanged" value="47">
15853 <desc>
15854 See <link to="IAdditionsStateChangedEvent">IAdditionsStateChangedEvent</link>.
15855 </desc>
15856 </const>
15857 <const name="OnNetworkAdapterChanged" value="48">
15858 <desc>
15859 See <link to="INetworkAdapterChangedEvent">INetworkAdapterChangedEvent</link>.
15860 </desc>
15861 </const>
15862 <const name="OnSerialPortChanged" value="49">
15863 <desc>
15864 See <link to="ISerialPortChangedEvent">ISerialPortChangedEvent</link>.
15865 </desc>
15866 </const>
15867 <const name="OnParallelPortChanged" value="50">
15868 <desc>
15869 See <link to="IParallelPortChangedEvent">IParallelPortChangedEvent</link>.
15870 </desc>
15871 </const>
15872 <const name="OnStorageControllerChanged" value="51">
15873 <desc>
15874 See <link to="IStorageControllerChangedEvent">IStorageControllerChangedEvent</link>.
15875 </desc>
15876 </const>
15877 <const name="OnMediumChanged" value="52">
15878 <desc>
15879 See <link to="IMediumChangedEvent">IMediumChangedEvent</link>.
15880 </desc>
15881 </const>
15882 <const name="OnVRDEServerChanged" value="53">
15883 <desc>
15884 See <link to="IVRDEServerChangedEvent">IVRDEServerChangedEvent</link>.
15885 </desc>
15886 </const>
15887 <const name="OnUSBControllerChanged" value="54">
15888 <desc>
15889 See <link to="IUSBControllerChangedEvent">IUSBControllerChangedEvent</link>.
15890 </desc>
15891 </const>
15892 <const name="OnUSBDeviceStateChanged" value="55">
15893 <desc>
15894 See <link to="IUSBDeviceStateChangedEvent">IUSBDeviceStateChangedEvent</link>.
15895 </desc>
15896 </const>
15897 <const name="OnSharedFolderChanged" value="56">
15898 <desc>
15899 See <link to="ISharedFolderChangedEvent">ISharedFolderChangedEvent</link>.
15900 </desc>
15901 </const>
15902 <const name="OnRuntimeError" value="57">
15903 <desc>
15904 See <link to="IRuntimeErrorEvent">IRuntimeErrorEvent</link>.
15905 </desc>
15906 </const>
15907 <const name="OnCanShowWindow" value="58">
15908 <desc>
15909 See <link to="ICanShowWindowEvent">ICanShowWindowEvent</link>.
15910 </desc>
15911 </const>
15912 <const name="OnShowWindow" value="59">
15913 <desc>
15914 See <link to="IShowWindowEvent">IShowWindowEvent</link>.
15915 </desc>
15916 </const>
15917 <const name="OnCPUChanged" value="60">
15918 <desc>
15919 See <link to="ICPUChangedEvent">ICPUChangedEvent</link>.
15920 </desc>
15921 </const>
15922 <const name="OnVRDEServerInfoChanged" value="61">
15923 <desc>
15924 See <link to="IVRDEServerInfoChangedEvent">IVRDEServerInfoChangedEvent</link>.
15925 </desc>
15926 </const>
15927 <const name="OnEventSourceChanged" value="62">
15928 <desc>
15929 See <link to="IEventSourceChangedEvent">IEventSourceChangedEvent</link>.
15930 </desc>
15931 </const>
15932 <const name="OnCPUExecutionCapChanged" value="63">
15933 <desc>
15934 See <link to="ICPUExecutionCapChangedEvent">ICPUExecutionCapChangedEvent</link>.
15935 </desc>
15936 </const>
15937 <const name="OnGuestKeyboard" value="64">
15938 <desc>
15939 See <link to="IGuestKeyboardEvent">IGuestKeyboardEvent</link>.
15940 </desc>
15941 </const>
15942 <const name="OnGuestMouse" value="65">
15943 <desc>
15944 See <link to="IGuestMouseEvent">IGuestMouseEvent</link>.
15945 </desc>
15946 </const>
15947 <const name="OnNATRedirect" value="66">
15948 <desc>
15949 See <link to="INATRedirectEvent">INATRedirectEvent</link>.
15950 </desc>
15951 </const>
15952 <const name="OnHostPciDevicePlug" value="67">
15953 <desc>
15954 See <link to="IHostPciDevicePlugEvent">IHostPciDevicePlugEvent</link>.
15955 </desc>
15956 </const>
15957 <const name="OnVBoxSVCAvailabilityChanged" value="68">
15958 <desc>
15959 See <link to="IVBoxSVCAvailabilityChangedEvent">IVBoxSVCAvailablityChangedEvent</link>.
15960 </desc>
15961 </const>
15962 <const name="OnBandwidthGroupChanged" value="69">
15963 <desc>
15964 See <link to="IBandwidthGroupChangedEvent">IBandwidthGroupChangedEvent</link>.
15965 </desc>
15966 </const>
15967 <const name="OnGuestMonitorChanged" value="70">
15968 <desc>
15969 See <link to="IGuestMonitorChangedEvent">IGuestMonitorChangedEvent</link>.
15970 </desc>
15971 </const>
15972 <const name="OnStorageDeviceChanged" value="71">
15973 <desc>
15974 See <link to="IStorageDeviceChangedEvent">IStorageDeviceChangedEvent</link>.
15975 </desc>
15976 </const>
15977
15978 <!-- Last event marker -->
15979 <const name="Last" value="72">
15980 <desc>
15981 Must be last event, used for iterations and structures relying on numerical event values.
15982 </desc>
15983 </const>
15984
15985 </enum>
15986
15987 <interface
15988 name="IEventSource" extends="$unknown"
15989 uuid="9b6e1aee-35f3-4f4d-b5bb-ed0ecefd8538"
15990 wsmap="managed"
15991 >
15992 <desc>
15993 Event source. Generally, any object which could generate events can be an event source,
15994 or aggregate one. To simplify using one-way protocols such as webservices running on top of HTTP(S),
15995 an event source can work with listeners in either active or passive mode. In active mode it is up to
15996 the IEventSource implementation to call <link to="IEventListener::handleEvent" />, in passive mode the
15997 event source keeps track of pending events for each listener and returns available events on demand.
15998
15999 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
16000 </desc>
16001
16002 <method name="createListener">
16003 <desc>
16004 Creates a new listener object, useful for passive mode.
16005 </desc>
16006 <param name="listener" type="IEventListener" dir="return"/>
16007 </method>
16008
16009 <method name="createAggregator">
16010 <desc>
16011 Creates an aggregator event source, collecting events from multiple sources.
16012 This way a single listener can listen for events coming from multiple sources,
16013 using a single blocking getEvent() on the returned aggregator.
16014 </desc>
16015 <param name="subordinates" type="IEventSource" dir="in" safearray="yes">
16016 <desc>
16017 Subordinate event source this one aggregatres.
16018 </desc>
16019 </param>
16020 <param name="result" type="IEventSource" dir="return">
16021 <desc>
16022 Event source aggregating passed sources.
16023 </desc>
16024 </param>
16025 </method>
16026
16027 <method name="registerListener">
16028 <desc>
16029 Register an event listener.
16030
16031 <note>
16032 To avoid system overload, the VirtualBox server process checks if passive event
16033 listeners call <link to="IEventSource::getEvent"/> frequently enough. In the
16034 current implementation, if more than 500 pending events are detected for a passive
16035 event listener, it is forcefully unregistered by the system, and further
16036 <link to="#getEvent" /> calls will return @c VBOX_E_OBJECT_NOT_FOUND.
16037 </note>
16038 </desc>
16039 <param name="listener" type="IEventListener" dir="in">
16040 <desc>Listener to register.</desc>
16041 </param>
16042 <param name="interesting" type="VBoxEventType" dir="in" safearray="yes">
16043 <desc>
16044 Event types listener is interested in. One can use wildcards like -
16045 <link to="VBoxEventType_Any"/> to specify wildcards, matching more
16046 than one event.
16047 </desc>
16048 </param>
16049 <param name="active" type="boolean" dir="in">
16050 <desc>
16051 Which mode this listener is operating in.
16052 In active mode, <link to="IEventListener::handleEvent" /> is called directly.
16053 In passive mode, an internal event queue is created for this this IEventListener.
16054 For each event coming in, it is added to queues for all interested registered passive
16055 listeners. It is then up to the external code to call the listener's
16056 <link to="IEventListener::handleEvent" /> method. When done with an event, the
16057 external code must call <link to="#eventProcessed" />.
16058 </desc>
16059 </param>
16060 </method>
16061
16062 <method name="unregisterListener">
16063 <desc>
16064 Unregister an event listener. If listener is passive, and some waitable events are still
16065 in queue they are marked as processed automatically.
16066 </desc>
16067 <param name="listener" type="IEventListener" dir="in">
16068 <desc>Listener to unregister.</desc>
16069 </param>
16070 </method>
16071
16072 <method name="fireEvent">
16073 <desc>
16074 Fire an event for this source.
16075 </desc>
16076 <param name="event" type="IEvent" dir="in">
16077 <desc>Event to deliver.</desc>
16078 </param>
16079 <param name="timeout" type="long" dir="in">
16080 <desc>
16081 Maximum time to wait for event processing (if event is waitable), in ms;
16082 0 = no wait, -1 = indefinite wait.
16083 </desc>
16084 </param>
16085 <param name="result" type="boolean" dir="return">
16086 <desc>true if an event was delivered to all targets, or is non-waitable.</desc>
16087 </param>
16088 </method>
16089
16090 <method name="getEvent">
16091 <desc>
16092 Get events from this peer's event queue (for passive mode). Calling this method
16093 regularly is required for passive event listeners to avoid system overload;
16094 see <link to="IEventSource::registerListener" /> for details.
16095
16096 <result name="VBOX_E_OBJECT_NOT_FOUND">
16097 Listener is not registered, or autounregistered.
16098 </result>
16099 </desc>
16100 <param name="listener" type="IEventListener" dir="in">
16101 <desc>Which listener to get data for.</desc>
16102 </param>
16103 <param name="timeout" type="long" dir="in">
16104 <desc>
16105 Maximum time to wait for events, in ms;
16106 0 = no wait, -1 = indefinite wait.
16107 </desc>
16108 </param>
16109 <param name="event" type="IEvent" dir="return">
16110 <desc>Event retrieved, or null if none available.</desc>
16111 </param>
16112 </method>
16113
16114 <method name="eventProcessed">
16115 <desc>
16116 Must be called for waitable events after a particular listener finished its
16117 event processing. When all listeners of a particular event have called this
16118 method, the system will then call <link to="IEvent::setProcessed" />.
16119 </desc>
16120 <param name="listener" type="IEventListener" dir="in">
16121 <desc>Which listener processed event.</desc>
16122 </param>
16123 <param name="event" type="IEvent" dir="in">
16124 <desc>Which event.</desc>
16125 </param>
16126 </method>
16127
16128 </interface>
16129
16130 <interface
16131 name="IEventListener" extends="$unknown"
16132 uuid="67099191-32e7-4f6c-85ee-422304c71b90"
16133 wsmap="managed"
16134 >
16135 <desc>
16136 Event listener. An event listener can work in either active or passive mode, depending on the way
16137 it was registered.
16138 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
16139 </desc>
16140
16141 <method name="handleEvent">
16142 <desc>
16143 Handle event callback for active listeners. It is not called for passive listeners. After
16144 calling handleEvent() on all active listeners and having received acknowledgement from all
16145 passive listeners via IEventSource::eventProcessed(), the event is marked as processed and
16146 IEvent::waitProcessed() will return immediately.
16147 </desc>
16148 <param name="event" type="IEvent" dir="in">
16149 <desc>Event available.</desc>
16150 </param>
16151 </method>
16152
16153 </interface>
16154
16155 <interface
16156 name="IEvent" extends="$unknown"
16157 uuid="0ca2adba-8f30-401b-a8cd-fe31dbe839c0"
16158 wsmap="managed"
16159 >
16160 <desc>
16161 Abstract parent interface for VirtualBox events. Actual events will typically implement
16162 a more specific interface which derives from this (see below).
16163
16164 <b>Introduction to VirtualBox events</b>
16165
16166 Generally speaking, an event (represented by this interface) signals that something
16167 happened, while an event listener (see <link to="IEventListener" />) represents an
16168 entity that is interested in certain events. In order for this to work with
16169 unidirectional protocols (i.e. web services), the concepts of passive and active
16170 listener are used.
16171
16172 Event consumers can register themselves as listeners, providing an array of
16173 events they are interested in (see <link to="IEventSource::registerListener" />).
16174 When an event triggers, the listener is notified about the event. The exact
16175 mechanism of the notification depends on whether the listener was registered as
16176 an active or passive listener:
16177
16178 <ul>
16179 <li>An active listener is very similar to a callback: it is a function invoked
16180 by the API. As opposed to the callbacks that were used in the API before
16181 VirtualBox 4.0 however, events are now objects with an interface hierarchy.
16182 </li>
16183
16184 <li>Passive listeners are somewhat trickier to implement, but do not require
16185 a client function to be callable, which is not an option with scripting
16186 languages or web service clients. Internally the <link to="IEventSource" />
16187 implementation maintains an event queue for each passive listener, and
16188 newly arrived events are put in this queue. When the listener calls
16189 <link to="IEventSource::getEvent"/>, first element from its internal event
16190 queue is returned. When the client completes processing of an event,
16191 the <link to="IEventSource::eventProcessed" /> function must be called,
16192 acknowledging that the event was processed. It supports implementing
16193 waitable events. On passive listener unregistration, all events from its
16194 queue are auto-acknowledged.
16195 </li>
16196 </ul>
16197
16198 Waitable events are useful in situations where the event generator wants to track
16199 delivery or a party wants to wait until all listeners have completed the event. A
16200 typical example would be a vetoable event (see <link to="IVetoEvent" />) where a
16201 listeners might veto a certain action, and thus the event producer has to make
16202 sure that all listeners have processed the event and not vetoed before taking
16203 the action.
16204
16205 A given event may have both passive and active listeners at the same time.
16206
16207 <b>Using events</b>
16208
16209 Any VirtualBox object capable of producing externally visible events provides an
16210 @c eventSource read-only attribute, which is of the type <link to="IEventSource" />.
16211 This event source object is notified by VirtualBox once something has happened, so
16212 consumers may register event listeners with this event source. To register a listener,
16213 an object implementing the <link to="IEventListener" /> interface must be provided.
16214 For active listeners, such an object is typically created by the consumer, while for
16215 passive listeners <link to="IEventSource::createListener" /> should be used. Please
16216 note that a listener created with @c createListener() must not be used as an active listener.
16217
16218 Once created, the listener must be registered to listen for the desired events
16219 (see <link to="IEventSource::registerListener" />), providing an array of
16220 <link to="VBoxEventType" /> enums. Those elements can either be the individual
16221 event IDs or wildcards matching multiple event IDs.
16222
16223 After registration, the callback's <link to="IEventListener::handleEvent" /> method is
16224 called automatically when the event is triggered, while passive listeners have to call
16225 <link to="IEventSource::getEvent" /> and <link to="IEventSource::eventProcessed" /> in
16226 an event processing loop.
16227
16228 The IEvent interface is an abstract parent interface for all such VirtualBox events
16229 coming in. As a result, the standard use pattern inside <link to="IEventListener::handleEvent" />
16230 or the event processing loop is to check the <link to="#type" /> attribute of the event and
16231 then cast to the appropriate specific interface using @c QueryInterface().
16232 </desc>
16233
16234 <attribute name="type" readonly="yes" type="VBoxEventType">
16235 <desc>
16236 Event type.
16237 </desc>
16238 </attribute>
16239
16240 <attribute name="source" readonly="yes" type="IEventSource">
16241 <desc>
16242 Source of this event.
16243 </desc>
16244 </attribute>
16245
16246 <attribute name="waitable" readonly="yes" type="boolean">
16247 <desc>
16248 If we can wait for this event being processed. If false, waitProcessed() returns immediately,
16249 and setProcessed() doesn't make sense. Non-waitable events are generally better performing,
16250 as no additional overhead associated with waitability imposed.
16251 Waitable events are needed when one need to be able to wait for particular event processed,
16252 for example for vetoable changes, or if event refers to some resource which need to be kept immutable
16253 until all consumers confirmed events.
16254 </desc>
16255 </attribute>
16256
16257 <method name="setProcessed">
16258 <desc>
16259 Internal method called by the system when all listeners of a particular event have called
16260 <link to="IEventSource::eventProcessed" />. This should not be called by client code.
16261 </desc>
16262 </method>
16263
16264 <method name="waitProcessed">
16265 <desc>
16266 Wait until time outs, or this event is processed. Event must be waitable for this operation to have
16267 described semantics, for non-waitable returns true immediately.
16268 </desc>
16269 <param name="timeout" type="long" dir="in">
16270 <desc>
16271 Maximum time to wait for event processeing, in ms;
16272 0 = no wait, -1 = indefinite wait.
16273 </desc>
16274 </param>
16275 <param name="result" type="boolean" dir="return">
16276 <desc>If this event was processed before timeout.</desc>
16277 </param>
16278 </method>
16279 </interface>
16280
16281
16282 <interface
16283 name="IReusableEvent" extends="IEvent"
16284 uuid="69bfb134-80f6-4266-8e20-16371f68fa25"
16285 wsmap="managed"
16286 >
16287 <desc>Base abstract interface for all reusable events.</desc>
16288
16289 <attribute name="generation" readonly="yes" type="unsigned long">
16290 <desc>Current generation of event, incremented on reuse.</desc>
16291 </attribute>
16292
16293 <method name="reuse">
16294 <desc>
16295 Marks an event as reused, increments 'generation', fields shall no
16296 longer be considered valid.
16297 </desc>
16298 </method>
16299 </interface>
16300
16301 <interface
16302 name="IMachineEvent" extends="IEvent"
16303 uuid="92ed7b1a-0d96-40ed-ae46-a564d484325e"
16304 wsmap="managed" id="MachineEvent"
16305 >
16306 <desc>Base abstract interface for all machine events.</desc>
16307
16308 <attribute name="machineId" readonly="yes" type="uuid" mod="string">
16309 <desc>ID of the machine this event relates to.</desc>
16310 </attribute>
16311
16312 </interface>
16313
16314 <interface
16315 name="IMachineStateChangedEvent" extends="IMachineEvent"
16316 uuid="5748F794-48DF-438D-85EB-98FFD70D18C9"
16317 wsmap="managed" autogen="VBoxEvent" id="OnMachineStateChanged"
16318 >
16319 <desc>Machine state change event.</desc>
16320
16321 <attribute name="state" readonly="yes" type="MachineState">
16322 <desc>New execution state.</desc>
16323 </attribute>
16324 </interface>
16325
16326 <interface
16327 name="IMachineDataChangedEvent" extends="IMachineEvent"
16328 uuid="6AA70A6C-0DCA-4810-8C5C-457B278E3D49"
16329 wsmap="managed" autogen="VBoxEvent" id="OnMachineDataChanged"
16330 >
16331 <desc>
16332 Any of the settings of the given machine has changed.
16333 </desc>
16334 </interface>
16335
16336 <interface
16337 name="IMediumRegisteredEvent" extends="IEvent"
16338 uuid="53fac49a-b7f1-4a5a-a4ef-a11dd9c2a458"
16339 wsmap="managed" autogen="VBoxEvent" id="OnMediumRegistered"
16340 >
16341 <desc>
16342 The given medium was registered or unregistered
16343 within this VirtualBox installation.
16344 </desc>
16345
16346 <attribute name="mediumId" readonly="yes" type="uuid" mod="string">
16347 <desc>ID of the medium this event relates to.</desc>
16348 </attribute>
16349
16350 <attribute name="mediumType" readonly="yes" type="DeviceType">
16351 <desc>Type of the medium this event relates to.</desc>
16352 </attribute>
16353
16354 <attribute name="registered" type="boolean" readonly="yes">
16355 <desc>
16356 If @c true, the medium was registered, otherwise it was
16357 unregistered.
16358 </desc>
16359 </attribute>
16360 </interface>
16361
16362 <interface
16363 name="IMachineRegisteredEvent" extends="IMachineEvent"
16364 uuid="c354a762-3ff2-4f2e-8f09-07382ee25088"
16365 wsmap="managed" autogen="VBoxEvent" id="OnMachineRegistered"
16366 >
16367 <desc>
16368 The given machine was registered or unregistered
16369 within this VirtualBox installation.
16370 </desc>
16371
16372 <attribute name="registered" type="boolean" readonly="yes">
16373 <desc>
16374 If @c true, the machine was registered, otherwise it was
16375 unregistered.
16376 </desc>
16377 </attribute>
16378 </interface>
16379
16380 <interface
16381 name="ISessionStateChangedEvent" extends="IMachineEvent"
16382 uuid="714a3eef-799a-4489-86cd-fe8e45b2ff8e"
16383 wsmap="managed" autogen="VBoxEvent" id="OnSessionStateChanged"
16384 >
16385 <desc>
16386 The state of the session for the given machine was changed.
16387 <see>IMachine::sessionState</see>
16388 </desc>
16389
16390 <attribute name="state" type="SessionState" readonly="yes">
16391 <desc>
16392 New session state.
16393 </desc>
16394 </attribute>
16395 </interface>
16396
16397 <interface
16398 name="IGuestPropertyChangedEvent" extends="IMachineEvent"
16399 uuid="3f63597a-26f1-4edb-8dd2-6bddd0912368"
16400 wsmap="managed" autogen="VBoxEvent" id="OnGuestPropertyChanged"
16401 >
16402 <desc>
16403 Notification when a guest property has changed.
16404 </desc>
16405
16406 <attribute name="name" readonly="yes" type="wstring">
16407 <desc>
16408 The name of the property that has changed.
16409 </desc>
16410 </attribute>
16411
16412 <attribute name="value" readonly="yes" type="wstring">
16413 <desc>
16414 The new property value.
16415 </desc>
16416 </attribute>
16417
16418 <attribute name="flags" readonly="yes" type="wstring">
16419 <desc>
16420 The new property flags.
16421 </desc>
16422 </attribute>
16423
16424 </interface>
16425
16426 <interface
16427 name="ISnapshotEvent" extends="IMachineEvent"
16428 uuid="21637b0e-34b8-42d3-acfb-7e96daf77c22"
16429 wsmap="managed" id="SnapshotEvent"
16430 >
16431 <desc>Base interface for all snapshot events.</desc>
16432
16433 <attribute name="snapshotId" readonly="yes" type="uuid" mod="string">
16434 <desc>ID of the snapshot this event relates to.</desc>
16435 </attribute>
16436
16437 </interface>
16438
16439 <interface
16440 name="ISnapshotTakenEvent" extends="ISnapshotEvent"
16441 uuid="d27c0b3d-6038-422c-b45e-6d4a0503d9f1"
16442 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotTaken"
16443 >
16444 <desc>
16445 A new snapshot of the machine has been taken.
16446 <see>ISnapshot</see>
16447 </desc>
16448 </interface>
16449
16450 <interface
16451 name="ISnapshotDeletedEvent" extends="ISnapshotEvent"
16452 uuid="c48f3401-4a9e-43f4-b7a7-54bd285e22f4"
16453 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotDeleted"
16454 >
16455 <desc>
16456 Snapshot of the given machine has been deleted.
16457
16458 <note>
16459 This notification is delivered <b>after</b> the snapshot
16460 object has been uninitialized on the server (so that any
16461 attempt to call its methods will return an error).
16462 </note>
16463
16464 <see>ISnapshot</see>
16465 </desc>
16466 </interface>
16467
16468 <interface
16469 name="ISnapshotChangedEvent" extends="ISnapshotEvent"
16470 uuid="07541941-8079-447a-a33e-47a69c7980db"
16471 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotChanged"
16472 >
16473 <desc>
16474 Snapshot properties (name and/or description) have been changed.
16475 <see>ISnapshot</see>
16476 </desc>
16477 </interface>
16478
16479 <interface
16480 name="IMousePointerShapeChangedEvent" extends="IEvent"
16481 uuid="a6dcf6e8-416b-4181-8c4a-45ec95177aef"
16482 wsmap="managed" autogen="VBoxEvent" id="OnMousePointerShapeChanged"
16483 >
16484 <desc>
16485 Notification when the guest mouse pointer shape has
16486 changed. The new shape data is given.
16487 </desc>
16488
16489 <attribute name="visible" type="boolean" readonly="yes">
16490 <desc>
16491 Flag whether the pointer is visible.
16492 </desc>
16493 </attribute>
16494 <attribute name="alpha" type="boolean" readonly="yes">
16495 <desc>
16496 Flag whether the pointer has an alpha channel.
16497 </desc>
16498 </attribute>
16499 <attribute name="xhot" type="unsigned long" readonly="yes">
16500 <desc>
16501 The pointer hot spot X coordinate.
16502 </desc>
16503 </attribute>
16504 <attribute name="yhot" type="unsigned long" readonly="yes">
16505 <desc>
16506 The pointer hot spot Y coordinate.
16507 </desc>
16508 </attribute>
16509 <attribute name="width" type="unsigned long" readonly="yes">
16510 <desc>
16511 Width of the pointer shape in pixels.
16512 </desc>
16513 </attribute>
16514 <attribute name="height" type="unsigned long" readonly="yes">
16515 <desc>
16516 Height of the pointer shape in pixels.
16517 </desc>
16518 </attribute>
16519 <attribute name="shape" type="octet" safearray="yes" readonly="yes">
16520 <desc>
16521 Shape buffer arrays.
16522
16523 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
16524 followed by a 32-bpp XOR (color) mask.
16525
16526 For pointers without alpha channel the XOR mask pixels are 32
16527 bit values: (lsb)BGR0(msb). For pointers with alpha channel
16528 the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
16529
16530 An AND mask is used for pointers with alpha channel, so if the
16531 callback does not support alpha, the pointer could be
16532 displayed as a normal color pointer.
16533
16534 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
16535 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
16536 height</tt>. The padding bits at the end of each scanline are
16537 undefined.
16538
16539 The XOR mask follows the AND mask on the next 4-byte aligned
16540 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
16541 Bytes in the gap between the AND and the XOR mask are undefined.
16542 The XOR mask scanlines have no gap between them and the size of
16543 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
16544
16545 <note>
16546 If @a shape is 0, only the pointer visibility is changed.
16547 </note>
16548 </desc>
16549 </attribute>
16550 </interface>
16551
16552 <interface
16553 name="IMouseCapabilityChangedEvent" extends="IEvent"
16554 uuid="d633ad48-820c-4207-b46c-6bd3596640d5"
16555 wsmap="managed" autogen="VBoxEvent" id="OnMouseCapabilityChanged"
16556 >
16557 <desc>
16558 Notification when the mouse capabilities reported by the
16559 guest have changed. The new capabilities are passed.
16560 </desc>
16561 <attribute name="supportsAbsolute" type="boolean" readonly="yes">
16562 <desc>
16563 Supports absolute coordinates.
16564 </desc>
16565 </attribute>
16566 <attribute name="supportsRelative" type="boolean" readonly="yes">
16567 <desc>
16568 Supports relative coordinates.
16569 </desc>
16570 </attribute>
16571 <attribute name="needsHostCursor" type="boolean" readonly="yes">
16572 <desc>
16573 If host cursor is needed.
16574 </desc>
16575 </attribute>
16576 </interface>
16577
16578 <interface
16579 name="IKeyboardLedsChangedEvent" extends="IEvent"
16580 uuid="6DDEF35E-4737-457B-99FC-BC52C851A44F"
16581 wsmap="managed" autogen="VBoxEvent" id="OnKeyboardLedsChanged"
16582 >
16583 <desc>
16584 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
16585 to alter the state of the keyboard LEDs.
16586 </desc>
16587 <attribute name="numLock" type="boolean" readonly="yes">
16588 <desc>
16589 NumLock status.
16590 </desc>
16591 </attribute>
16592 <attribute name="capsLock" type="boolean" readonly="yes">
16593 <desc>
16594 CapsLock status.
16595 </desc>
16596 </attribute>
16597 <attribute name="scrollLock" type="boolean" readonly="yes">
16598 <desc>
16599 ScrollLock status.
16600 </desc>
16601 </attribute>
16602 </interface>
16603
16604 <interface
16605 name="IStateChangedEvent" extends="IEvent"
16606 uuid="4376693C-CF37-453B-9289-3B0F521CAF27"
16607 wsmap="managed" autogen="VBoxEvent" id="OnStateChanged"
16608 >
16609 <desc>
16610 Notification when the execution state of the machine has changed.
16611 The new state is given.
16612 </desc>
16613 <attribute name="state" type="MachineState" readonly="yes">
16614 <desc>
16615 New machine state.
16616 </desc>
16617 </attribute>
16618 </interface>
16619
16620 <interface
16621 name="IAdditionsStateChangedEvent" extends="IEvent"
16622 uuid="D70F7915-DA7C-44C8-A7AC-9F173490446A"
16623 wsmap="managed" autogen="VBoxEvent" id="OnAdditionsStateChanged"
16624 >
16625 <desc>
16626 Notification when a Guest Additions property changes.
16627 Interested callees should query IGuest attributes to
16628 find out what has changed.
16629 </desc>
16630 </interface>
16631
16632 <interface
16633 name="INetworkAdapterChangedEvent" extends="IEvent"
16634 uuid="08889892-1EC6-4883-801D-77F56CFD0103"
16635 wsmap="managed" autogen="VBoxEvent" id="OnNetworkAdapterChanged"
16636 >
16637 <desc>
16638 Notification when a property of one of the
16639 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
16640 changes. Interested callees should use INetworkAdapter methods and
16641 attributes to find out what has changed.
16642 </desc>
16643 <attribute name="networkAdapter" type="INetworkAdapter" readonly="yes">
16644 <desc>
16645 Network adapter that is subject to change.
16646 </desc>
16647 </attribute>
16648 </interface>
16649
16650 <interface
16651 name="ISerialPortChangedEvent" extends="IEvent"
16652 uuid="3BA329DC-659C-488B-835C-4ECA7AE71C6C"
16653 wsmap="managed" autogen="VBoxEvent" id="OnSerialPortChanged"
16654 >
16655 <desc>
16656 Notification when a property of one of the
16657 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
16658 Interested callees should use ISerialPort methods and attributes
16659 to find out what has changed.
16660 </desc>
16661 <attribute name="serialPort" type="ISerialPort" readonly="yes">
16662 <desc>
16663 Serial port that is subject to change.
16664 </desc>
16665 </attribute>
16666 </interface>
16667
16668 <interface
16669 name="IParallelPortChangedEvent" extends="IEvent"
16670 uuid="813C99FC-9849-4F47-813E-24A75DC85615"
16671 wsmap="managed" autogen="VBoxEvent" id="OnParallelPortChanged"
16672 >
16673 <desc>
16674 Notification when a property of one of the
16675 virtual <link to="IMachine::getParallelPort">parallel ports</link>
16676 changes. Interested callees should use ISerialPort methods and
16677 attributes to find out what has changed.
16678 </desc>
16679 <attribute name="parallelPort" type="IParallelPort" readonly="yes">
16680 <desc>
16681 Parallel port that is subject to change.
16682 </desc>
16683 </attribute>
16684 </interface>
16685
16686 <interface
16687 name="IStorageControllerChangedEvent" extends="IEvent"
16688 uuid="715212BF-DA59-426E-8230-3831FAA52C56"
16689 wsmap="managed" autogen="VBoxEvent" id="OnStorageControllerChanged"
16690 >
16691 <desc>
16692 Notification when a
16693 <link to="IMachine::mediumAttachments">medium attachment</link>
16694 changes.
16695 </desc>
16696 </interface>
16697
16698 <interface
16699 name="IMediumChangedEvent" extends="IEvent"
16700 uuid="0FE2DA40-5637-472A-9736-72019EABD7DE"
16701 wsmap="managed" autogen="VBoxEvent" id="OnMediumChanged"
16702 >
16703 <desc>
16704 Notification when a
16705 <link to="IMachine::mediumAttachments">medium attachment</link>
16706 changes.
16707 </desc>
16708 <attribute name="mediumAttachment" type="IMediumAttachment" readonly="yes">
16709 <desc>
16710 Medium attachment that is subject to change.
16711 </desc>
16712 </attribute>
16713 </interface>
16714
16715 <interface
16716 name="ICPUChangedEvent" extends="IEvent"
16717 uuid="D0F0BECC-EE17-4D17-A8CC-383B0EB55E9D"
16718 wsmap="managed" autogen="VBoxEvent" id="OnCPUChanged"
16719 >
16720 <desc>
16721 Notification when a CPU changes.
16722 </desc>
16723 <attribute name="cpu" type="unsigned long" readonly="yes">
16724 <desc>
16725 The CPU which changed.
16726 </desc>
16727 </attribute>
16728 <attribute name="add" type="boolean" readonly="yes">
16729 <desc>
16730 Flag whether the CPU was added or removed.
16731 </desc>
16732 </attribute>
16733 </interface>
16734
16735 <interface
16736 name="ICPUExecutionCapChangedEvent" extends="IEvent"
16737 uuid="dfa7e4f5-b4a4-44ce-85a8-127ac5eb59dc"
16738 wsmap="managed" autogen="VBoxEvent" id="OnCPUExecutionCapChanged"
16739 >
16740 <desc>
16741 Notification when the CPU execution cap changes.
16742 </desc>
16743 <attribute name="executionCap" type="unsigned long" readonly="yes">
16744 <desc>
16745 The new CPU execution cap value. (1-100)
16746 </desc>
16747 </attribute>
16748 </interface>
16749
16750 <interface
16751 name="IGuestKeyboardEvent" extends="IEvent"
16752 uuid="88394258-7006-40d4-b339-472ee3801844"
16753 wsmap="managed" autogen="VBoxEvent" id="OnGuestKeyboard"
16754 >
16755 <desc>
16756 Notification when guest keyboard event happens.
16757 </desc>
16758 <attribute name="scancodes" type="long" safearray="yes" readonly="yes">
16759 <desc>
16760 Array of scancodes.
16761 </desc>
16762 </attribute>
16763 </interface>
16764
16765 <interface
16766 name="IGuestMouseEvent" extends="IReusableEvent"
16767 uuid="1f85d35c-c524-40ff-8e98-307000df0992"
16768 wsmap="managed" autogen="VBoxEvent" id="OnGuestMouse"
16769 >
16770 <desc>
16771 Notification when guest mouse event happens.
16772 </desc>
16773
16774 <attribute name="absolute" type="boolean" readonly="yes">
16775 <desc>
16776 If this event is relative or absolute.
16777 </desc>
16778 </attribute>
16779
16780 <attribute name="x" type="long" readonly="yes">
16781 <desc>
16782 New X position, or X delta.
16783 </desc>
16784 </attribute>
16785
16786 <attribute name="y" type="long" readonly="yes">
16787 <desc>
16788 New Y position, or Y delta.
16789 </desc>
16790 </attribute>
16791
16792 <attribute name="z" type="long" readonly="yes">
16793 <desc>
16794 Z delta.
16795 </desc>
16796 </attribute>
16797
16798 <attribute name="w" type="long" readonly="yes">
16799 <desc>
16800 W delta.
16801 </desc>
16802 </attribute>
16803
16804 <attribute name="buttons" type="long" readonly="yes">
16805 <desc>
16806 Button state bitmask.
16807 </desc>
16808 </attribute>
16809
16810 </interface>
16811
16812
16813 <interface
16814 name="IVRDEServerChangedEvent" extends="IEvent"
16815 uuid="a06fd66a-3188-4c8c-8756-1395e8cb691c"
16816 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerChanged"
16817 >
16818 <desc>
16819 Notification when a property of the
16820 <link to="IMachine::VRDEServer">VRDE server</link> changes.
16821 Interested callees should use IVRDEServer methods and attributes to
16822 find out what has changed.
16823 </desc>
16824 </interface>
16825
16826 <interface
16827 name="IVRDEServerInfoChangedEvent" extends="IEvent"
16828 uuid="dd6a1080-e1b7-4339-a549-f0878115596e"
16829 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerInfoChanged"
16830 >
16831 <desc>
16832 Notification when the status of the VRDE server changes. Interested callees
16833 should use <link to="IConsole::VRDEServerInfo">IVRDEServerInfo</link>
16834 attributes to find out what is the current status.
16835 </desc>
16836 </interface>
16837
16838 <interface
16839 name="IUSBControllerChangedEvent" extends="IEvent"
16840 uuid="93BADC0C-61D9-4940-A084-E6BB29AF3D83"
16841 wsmap="managed" autogen="VBoxEvent" id="OnUSBControllerChanged"
16842 >
16843 <desc>
16844 Notification when a property of the virtual
16845 <link to="IMachine::USBController">USB controller</link> changes.
16846 Interested callees should use IUSBController methods and attributes to
16847 find out what has changed.
16848 </desc>
16849 </interface>
16850
16851 <interface
16852 name="IUSBDeviceStateChangedEvent" extends="IEvent"
16853 uuid="806da61b-6679-422a-b629-51b06b0c6d93"
16854 wsmap="managed" autogen="VBoxEvent" id="OnUSBDeviceStateChanged"
16855 >
16856 <desc>
16857 Notification when a USB device is attached to or detached from
16858 the virtual USB controller.
16859
16860 This notification is sent as a result of the indirect
16861 request to attach the device because it matches one of the
16862 machine USB filters, or as a result of the direct request
16863 issued by <link to="IConsole::attachUSBDevice"/> or
16864 <link to="IConsole::detachUSBDevice"/>.
16865
16866 This notification is sent in case of both a succeeded and a
16867 failed request completion. When the request succeeds, the
16868 @a error parameter is @c null, and the given device has been
16869 already added to (when @a attached is @c true) or removed from
16870 (when @a attached is @c false) the collection represented by
16871 <link to="IConsole::USBDevices"/>. On failure, the collection
16872 doesn't change and the @a error parameter represents the error
16873 message describing the failure.
16874 </desc>
16875 <attribute name="device" type="IUSBDevice" readonly="yes">
16876 <desc>
16877 Device that is subject to state change.
16878 </desc>
16879 </attribute>
16880 <attribute name="attached" type="boolean" readonly="yes">
16881 <desc>
16882 @c true if the device was attached and @c false otherwise.
16883 </desc>
16884 </attribute>
16885 <attribute name="error" type="IVirtualBoxErrorInfo" readonly="yes">
16886 <desc>
16887 @c null on success or an error message object on failure.
16888 </desc>
16889 </attribute>
16890 </interface>
16891
16892 <interface
16893 name="ISharedFolderChangedEvent" extends="IEvent"
16894 uuid="B66349B5-3534-4239-B2DE-8E1535D94C0B"
16895 wsmap="managed" autogen="VBoxEvent" id="OnSharedFolderChanged"
16896 >
16897 <desc>
16898 Notification when a shared folder is added or removed.
16899 The @a scope argument defines one of three scopes:
16900 <link to="IVirtualBox::sharedFolders">global shared folders</link>
16901 (<link to="Scope_Global">Global</link>),
16902 <link to="IMachine::sharedFolders">permanent shared folders</link> of
16903 the machine (<link to="Scope_Machine">Machine</link>) or <link
16904 to="IConsole::sharedFolders">transient shared folders</link> of the
16905 machine (<link to="Scope_Session">Session</link>). Interested callees
16906 should use query the corresponding collections to find out what has
16907 changed.
16908 </desc>
16909 <attribute name="scope" type="Scope" readonly="yes">
16910 <desc>
16911 Scope of the notification.
16912 </desc>
16913 </attribute>
16914 </interface>
16915
16916 <interface
16917 name="IRuntimeErrorEvent" extends="IEvent"
16918 uuid="883DD18B-0721-4CDE-867C-1A82ABAF914C"
16919 wsmap="managed" autogen="VBoxEvent" id="OnRuntimeError"
16920 >
16921 <desc>
16922 Notification when an error happens during the virtual
16923 machine execution.
16924
16925 There are three kinds of runtime errors:
16926 <ul>
16927 <li><i>fatal</i></li>
16928 <li><i>non-fatal with retry</i></li>
16929 <li><i>non-fatal warnings</i></li>
16930 </ul>
16931
16932 <b>Fatal</b> errors are indicated by the @a fatal parameter set
16933 to @c true. In case of fatal errors, the virtual machine
16934 execution is always paused before calling this notification, and
16935 the notification handler is supposed either to immediately save
16936 the virtual machine state using <link to="IConsole::saveState"/>
16937 or power it off using <link to="IConsole::powerDown"/>.
16938 Resuming the execution can lead to unpredictable results.
16939
16940 <b>Non-fatal</b> errors and warnings are indicated by the
16941 @a fatal parameter set to @c false. If the virtual machine
16942 is in the Paused state by the time the error notification is
16943 received, it means that the user can <i>try to resume</i> the machine
16944 execution after attempting to solve the problem that caused the
16945 error. In this case, the notification handler is supposed
16946 to show an appropriate message to the user (depending on the
16947 value of the @a id parameter) that offers several actions such
16948 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
16949 wants to retry, the notification handler should continue
16950 the machine execution using the <link to="IConsole::resume"/>
16951 call. If the machine execution is not Paused during this
16952 notification, then it means this notification is a <i>warning</i>
16953 (for example, about a fatal condition that can happen very soon);
16954 no immediate action is required from the user, the machine
16955 continues its normal execution.
16956
16957 Note that in either case the notification handler
16958 <b>must not</b> perform any action directly on a thread
16959 where this notification is called. Everything it is allowed to
16960 do is to post a message to another thread that will then talk
16961 to the user and take the corresponding action.
16962
16963 Currently, the following error identifiers are known:
16964 <ul>
16965 <li><tt>"HostMemoryLow"</tt></li>
16966 <li><tt>"HostAudioNotResponding"</tt></li>
16967 <li><tt>"VDIStorageFull"</tt></li>
16968 <li><tt>"3DSupportIncompatibleAdditions"</tt></li>
16969 </ul>
16970 </desc>
16971 <attribute name="fatal" type="boolean" readonly="yes">
16972 <desc>
16973 Whether the error is fatal or not.
16974 </desc>
16975 </attribute>
16976 <attribute name="id" type="wstring" readonly="yes">
16977 <desc>
16978 Error identifier.
16979 </desc>
16980 </attribute>
16981 <attribute name="message" type="wstring" readonly="yes">
16982 <desc>
16983 Optional error message.
16984 </desc>
16985 </attribute>
16986 </interface>
16987
16988
16989 <interface
16990 name="IEventSourceChangedEvent" extends="IEvent"
16991 uuid="e7932cb8-f6d4-4ab6-9cbf-558eb8959a6a"
16992 waitable="yes"
16993 wsmap="managed" autogen="VBoxEvent" id="OnEventSourceChanged"
16994 >
16995 <desc>
16996 Notification when an event source state changes (listener added or removed).
16997 </desc>
16998
16999 <attribute name="listener" type="IEventListener" readonly="yes">
17000 <desc>
17001 Event listener which has changed.
17002 </desc>
17003 </attribute>
17004
17005 <attribute name="add" type="boolean" readonly="yes">
17006 <desc>
17007 Flag whether listener was added or removed.
17008 </desc>
17009 </attribute>
17010 </interface>
17011
17012 <interface
17013 name="IExtraDataChangedEvent" extends="IEvent"
17014 uuid="024F00CE-6E0B-492A-A8D0-968472A94DC7"
17015 wsmap="managed" autogen="VBoxEvent" id="OnExtraDataChanged"
17016 >
17017 <desc>
17018 Notification when machine specific or global extra data
17019 has changed.
17020 </desc>
17021 <attribute name="machineId" type="uuid" mod="string" readonly="yes">
17022 <desc>
17023 ID of the machine this event relates to.
17024 Null for global extra data changes.
17025 </desc>
17026 </attribute>
17027 <attribute name="key" type="wstring" readonly="yes">
17028 <desc>
17029 Extra data key that has changed.
17030 </desc>
17031 </attribute>
17032 <attribute name="value" type="wstring" readonly="yes">
17033 <desc>
17034 Extra data value for the given key.
17035 </desc>
17036 </attribute>
17037 </interface>
17038
17039 <interface
17040 name="IVetoEvent" extends="IEvent"
17041 uuid="9a1a4130-69fe-472f-ac10-c6fa25d75007"
17042 wsmap="managed"
17043 >
17044 <desc>Base abstract interface for veto events.</desc>
17045
17046 <method name="addVeto">
17047 <desc>
17048 Adds a veto on this event.
17049 </desc>
17050 <param name="reason" type="wstring" dir="in">
17051 <desc>
17052 Reason for veto, could be null or empty string.
17053 </desc>
17054 </param>
17055 </method>
17056
17057 <method name="isVetoed">
17058 <desc>
17059 If this event was vetoed.
17060 </desc>
17061 <param name="result" type="boolean" dir="return">
17062 <desc>
17063 Reason for veto.
17064 </desc>
17065 </param>
17066 </method>
17067
17068 <method name="getVetos">
17069 <desc>
17070 Current veto reason list, if size is 0 - no veto.
17071 </desc>
17072 <param name="result" type="wstring" dir="return" safearray="yes">
17073 <desc>
17074 Array of reasons for veto provided by different event handlers.
17075 </desc>
17076 </param>
17077 </method>
17078
17079 </interface>
17080
17081 <interface
17082 name="IExtraDataCanChangeEvent" extends="IVetoEvent"
17083 uuid="245d88bd-800a-40f8-87a6-170d02249a55"
17084 wsmap="managed" autogen="VBoxEvent" id="OnExtraDataCanChange"
17085 waitable="true"
17086 >
17087 <desc>
17088 Notification when someone tries to change extra data for
17089 either the given machine or (if @c null) global extra data.
17090 This gives the chance to veto against changes.
17091 </desc>
17092 <attribute name="machineId" type="uuid" mod="string" readonly="yes">
17093 <desc>
17094 ID of the machine this event relates to.
17095 Null for global extra data changes.
17096 </desc>
17097 </attribute>
17098 <attribute name="key" type="wstring" readonly="yes">
17099 <desc>
17100 Extra data key that has changed.
17101 </desc>
17102 </attribute>
17103 <attribute name="value" type="wstring" readonly="yes">
17104 <desc>
17105 Extra data value for the given key.
17106 </desc>
17107 </attribute>
17108 </interface>
17109
17110 <interface
17111 name="ICanShowWindowEvent" extends="IVetoEvent"
17112 uuid="adf292b0-92c9-4a77-9d35-e058b39fe0b9"
17113 wsmap="managed" autogen="VBoxEvent" id="OnCanShowWindow"
17114 waitable="true"
17115 >
17116 <desc>
17117 Notification when a call to
17118 <link to="IMachine::canShowConsoleWindow"/> is made by a
17119 front-end to check if a subsequent call to
17120 <link to="IMachine::showConsoleWindow"/> can succeed.
17121
17122 The callee should give an answer appropriate to the current
17123 machine state using event veto. This answer must
17124 remain valid at least until the next
17125 <link to="IConsole::state">machine state</link> change.
17126 </desc>
17127 </interface>
17128
17129 <interface
17130 name="IShowWindowEvent" extends="IEvent"
17131 uuid="B0A0904D-2F05-4D28-855F-488F96BAD2B2"
17132 wsmap="managed" autogen="VBoxEvent" id="OnShowWindow"
17133 waitable="true"
17134 >
17135 <desc>
17136 Notification when a call to
17137 <link to="IMachine::showConsoleWindow"/>
17138 requests the console window to be activated and brought to
17139 foreground on the desktop of the host PC.
17140
17141 This notification should cause the VM console process to
17142 perform the requested action as described above. If it is
17143 impossible to do it at a time of this notification, this
17144 method should return a failure.
17145
17146 Note that many modern window managers on many platforms
17147 implement some sort of focus stealing prevention logic, so
17148 that it may be impossible to activate a window without the
17149 help of the currently active application (which is supposedly
17150 an initiator of this notification). In this case, this method
17151 must return a non-zero identifier that represents the
17152 top-level window of the VM console process. The caller, if it
17153 represents a currently active process, is responsible to use
17154 this identifier (in a platform-dependent manner) to perform
17155 actual window activation.
17156
17157 This method must set @a winId to zero if it has performed all
17158 actions necessary to complete the request and the console
17159 window is now active and in foreground, to indicate that no
17160 further action is required on the caller's side.
17161 </desc>
17162 <attribute name="winId" type="long long">
17163 <desc>
17164 Platform-dependent identifier of the top-level VM console
17165 window, or zero if this method has performed all actions
17166 necessary to implement the <i>show window</i> semantics for
17167 the given platform and/or this VirtualBox front-end.
17168 </desc>
17169 </attribute>
17170 </interface>
17171
17172 <interface
17173 name="INATRedirectEvent" extends="IMachineEvent"
17174 uuid="57DE97D7-3CBB-42A0-888F-610D5832D16B"
17175 wsmap="managed" autogen="VBoxEvent" id="OnNATRedirect"
17176 >
17177 <desc>
17178 Notification when NAT redirect rule added or removed.
17179 </desc>
17180 <attribute name="slot" type="unsigned long" readonly="yes">
17181 <desc>
17182 Adapter which NAT attached to.
17183 </desc>
17184 </attribute>
17185 <attribute name="remove" type="boolean" readonly="yes">
17186 <desc>
17187 Whether rule remove or add.
17188 </desc>
17189 </attribute>
17190 <attribute name="name" type="wstring" readonly="yes">
17191 <desc>
17192 Name of the rule.
17193 </desc>
17194 </attribute>
17195 <attribute name="proto" type="NATProtocol" readonly="yes">
17196 <desc>
17197 Protocol (TCP or UDP) of the redirect rule.
17198 </desc>
17199 </attribute>
17200 <attribute name="hostIp" type="wstring" readonly="yes">
17201 <desc>
17202 Host ip address to bind socket on.
17203 </desc>
17204 </attribute>
17205 <attribute name="hostPort" type="long" readonly="yes">
17206 <desc>
17207 Host port to bind socket on.
17208 </desc>
17209 </attribute>
17210 <attribute name="guestIp" type="wstring" readonly="yes">
17211 <desc>
17212 Guest ip address to redirect to.
17213 </desc>
17214 </attribute>
17215 <attribute name="guestPort" type="long" readonly="yes">
17216 <desc>
17217 Guest port to redirect to.
17218 </desc>
17219 </attribute>
17220 </interface>
17221
17222 <interface
17223 name="IHostPciDevicePlugEvent" extends="IMachineEvent"
17224 waitable="yes"
17225 uuid="9cebfc27-c579-4965-8eb7-d31794cd7dcf"
17226 wsmap="managed" autogen="VBoxEvent" id="OnHostPciDevicePlug"
17227 >
17228 <desc>
17229 Notification when host PCI device is plugged/unplugged. Plugging
17230 usually takes place on VM startup, unplug - when
17231 IMachine::DetachHostPciDevice is called.
17232
17233 <see>IMachine::DetachHostPciDevice</see>
17234
17235 </desc>
17236
17237 <attribute name="plugged" type="boolean" readonly="yes">
17238 <desc>
17239 If device successfully plugged or unplugged.
17240 </desc>
17241 </attribute>
17242
17243 <attribute name="success" type="boolean" readonly="yes">
17244 <desc>
17245 If operation was successful, if false - 'message' attribute
17246 may be of interest.
17247 </desc>
17248 </attribute>
17249
17250 <attribute name="attachment" type="IPciDeviceAttachment" readonly="yes">
17251 <desc>
17252 Attachment info for this device.
17253 </desc>
17254 </attribute>
17255
17256 <attribute name="message" type="wstring" readonly="yes">
17257 <desc>
17258 Optional error message.
17259 </desc>
17260 </attribute>
17261
17262 </interface>
17263
17264 <interface
17265 name="IVBoxSVCAvailabilityChangedEvent" extends="IEvent"
17266 uuid="97c78fcd-d4fc-485f-8613-5af88bfcfcdc"
17267 wsmap="managed" autogen="VBoxEvent" id="OnVBoxSVCAvailabilityChanged"
17268 >
17269 <desc>
17270 Notification when VBoxSVC becomes unavailable (due to a crash or similar
17271 unexpected circumstances) or available again.
17272 </desc>
17273
17274 <attribute name="available" type="boolean" readonly="yes">
17275 <desc>
17276 Whether VBoxSVC is available now.
17277 </desc>
17278 </attribute>
17279 </interface>
17280
17281 <interface
17282 name="IBandwidthGroupChangedEvent" extends="IEvent"
17283 uuid="334df94a-7556-4cbc-8c04-043096b02d82"
17284 wsmap="managed" autogen="VBoxEvent" id="OnBandwidthGroupChanged"
17285 >
17286 <desc>
17287 Notification when one of the bandwidth groups changed
17288 </desc>
17289 <attribute name="bandwidthGroup" type="IBandwidthGroup" readonly="yes">
17290 <desc>
17291 The changed bandwidth group.
17292 </desc>
17293 </attribute>
17294 </interface>
17295
17296 <enum
17297 name="GuestMonitorChangedEventType"
17298 uuid="ef172985-7e36-4297-95be-e46396968d66"
17299 >
17300
17301 <desc>
17302 How the guest monitor has been changed.
17303 </desc>
17304
17305 <const name="Enabled" value="0">
17306 <desc>
17307 The guest monitor has been enabled by the guest.
17308 </desc>
17309 </const>
17310
17311 <const name="Disabled" value="1">
17312 <desc>
17313 The guest monitor has been disabled by the guest.
17314 </desc>
17315 </const>
17316
17317 <const name="NewOrigin" value="2">
17318 <desc>
17319 The guest monitor origin has changed in the guest.
17320 </desc>
17321 </const>
17322 </enum>
17323
17324 <interface
17325 name="IGuestMonitorChangedEvent" extends="IEvent"
17326 uuid="0f7b8a22-c71f-4a36-8e5f-a77d01d76090"
17327 wsmap="managed" autogen="VBoxEvent" id="OnGuestMonitorChanged"
17328 >
17329 <desc>
17330 Notification when the guest enables one of its monitors.
17331 </desc>
17332
17333 <attribute name="changeType" type="GuestMonitorChangedEventType" readonly="yes">
17334 <desc>
17335 What was changed for this guest monitor.
17336 </desc>
17337 </attribute>
17338
17339 <attribute name="screenId" type="unsigned long" readonly="yes">
17340 <desc>
17341 The monitor which was changed.
17342 </desc>
17343 </attribute>
17344
17345 <attribute name="originX" type="unsigned long" readonly="yes">
17346 <desc>
17347 Physical X origin relative to the primary screen.
17348 Valid for Enabled and NewOrigin.
17349 </desc>
17350 </attribute>
17351
17352 <attribute name="originY" type="unsigned long" readonly="yes">
17353 <desc>
17354 Physical Y origin relative to the primary screen.
17355 Valid for Enabled and NewOrigin.
17356 </desc>
17357 </attribute>
17358
17359 <attribute name="width" type="unsigned long" readonly="yes">
17360 <desc>
17361 Width of the screen.
17362 Valid for Enabled.
17363 </desc>
17364 </attribute>
17365
17366 <attribute name="height" type="unsigned long" readonly="yes">
17367 <desc>
17368 Height of the screen.
17369 Valid for Enabled.
17370 </desc>
17371 </attribute>
17372
17373 </interface>
17374
17375 <interface
17376 name="IStorageDeviceChangedEvent" extends="IEvent"
17377 uuid="8a5c2dce-e341-49d4-afce-c95979f7d70c"
17378 wsmap="managed" autogen="VBoxEvent" id="OnStorageDeviceChanged"
17379 >
17380 <desc>
17381 Notification when a
17382 <link to="IMachine::mediumAttachments">storage device</link>
17383 is attached or removed.
17384 </desc>
17385 <attribute name="storageDevice" type="IMediumAttachment" readonly="yes">
17386 <desc>
17387 Storage device that is subject to change.
17388 </desc>
17389 </attribute>
17390 <attribute name="removed" type="boolean" readonly="yes">
17391 <desc>
17392 Flag whether the device was removed or added to the VM.
17393 </desc>
17394 </attribute>
17395 </interface>
17396
17397 <module name="VBoxSVC" context="LocalServer">
17398 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
17399 namespace="virtualbox.org">
17400 <interface name="IVirtualBox" default="yes"/>
17401 </class>
17402 </module>
17403
17404 <module name="VBoxC" context="InprocServer" threadingModel="Free">
17405 <class name="VirtualBoxClient" uuid="dd3fc71d-26c0-4fe1-bf6f-67f633265bba"
17406 namespace="virtualbox.org">
17407 <interface name="IVirtualBoxClient" default="yes"/>
17408 </class>
17409
17410 <class name="Session" uuid="3C02F46D-C9D2-4F11-A384-53F0CF917214"
17411 namespace="virtualbox.org">
17412 <interface name="ISession" default="yes"/>
17413 </class>
17414 </module>
17415
17416</library>
17417
17418</idl>
17419
17420<!-- vim: set shiftwidth=2 tabstop=2 expandtab: -->
Note: See TracBrowser for help on using the repository browser.

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