VirtualBox

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

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

Main,NAT: Managing port-forwarding at runtime. (xTracker/#4835).

  • Property svn:eol-style set to native
File size: 571.3 KB
Line 
1<?xml version="1.0" ?>
2
3<!--
4
5 Copyright (C) 2006-2010 Oracle Corporation
6
7 This file is part of VirtualBox Open Source Edition (OSE), as
8 available from http://www.virtualbox.org. This file is free software;
9 you can redistribute it and/or modify it under the terms of the GNU
10 General Public License (GPL) as published by the Free Software
11 Foundation, in version 2 as it comes in the "COPYING" file of the
12 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
13 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
14-->
15
16<!--
17 This is the master declaration for VirtualBox's Main API,
18 represented by COM/XPCOM and web service interfaces.
19
20 From this document, the build system generates several files
21 via XSLT that are then used during the build process.
22
23 Below is the list of XSL templates that operate on this file and
24 output files they generate. These XSL templates must be updated
25 whenever the schema of this file changes:
26
27 1. src/VBox/Main/idl/midl.xsl =>
28 out/<platform>/bin/sdk/idl/VirtualBox.idl
29 (MS COM interface definition file for Main API)
30
31 2. src/VBox/Main/idl/xpidl.xsl =>
32 out/<platform>/bin/sdk/idl/VirtualBox_XPCOM.idl
33 (XPCOM interface definition file for Main API)
34
35 3. src/VBox/Main/idl/doxygen.xsl =>
36 out/<platform>/obj/src/VBox/Main/VirtualBox.idl
37 (pseudo-IDL for Doxygen to generate the official Main API
38 documentation)
39
40 4. src/VBox/Main/webservice/*.xsl =>
41 a bunch of WSDL and C++ files
42 (VirtualBox web service sources and SOAP mappers;
43 see src/VBox/Main/webservice/Makefile.kmk for details)
44
45 5. src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl =>
46 out/<platform>/obj/src/VBox/Frontends/VirtualBox/VirtualBox/include/COMWrappers.h
47 (smart Qt-based C++ wrapper classes for COM interfaces
48 of the Main API)
49
50 6. src/VBox/Installer/win32/VirtualBox_TypeLib.xsl =>
51 out/<platform>/obj/src/VBox/Installer/win32/VirtualBox_TypeLib.wxi
52 (Main API TypeLib block for the WiX installer)
53
54 7. src/VBox/Runtime/common/err/errmsgvboxcom.xsl =>
55 out/<platform>/obj/Runtime/errmsgvboxcomdata.h
56 (<result> extraction for the %Rhrc format specifier)
57-->
58
59<idl>
60
61<desc>
62 Welcome to the <b>VirtualBox Main API documentation</b>. This documentation
63 describes the so-called <i>VirtualBox Main API</i> which comprises all public
64 COM interfaces and components provided by the VirtualBox server and by the
65 VirtualBox client library.
66
67 VirtualBox employs a client-server design, meaning that whenever any part of
68 VirtualBox is running -- be it the Qt GUI, the VBoxManage command-line
69 interface or any virtual machine --, a dedicated server process named
70 VBoxSVC runs in the background. This allows multiple processes working with
71 VirtualBox to cooperate without conflicts. These processes communicate to each
72 other using inter-process communication facilities provided by the COM
73 implementation of the host computer.
74
75 On Windows platforms, the VirtualBox Main API uses Microsoft COM, a native COM
76 implementation. On all other platforms, Mozilla XPCOM, an open-source COM
77 implementation, is used.
78
79 All the parts that a typical VirtualBox user interacts with (the Qt GUI
80 and the VBoxManage command-line interface) are technically
81 front-ends to the Main API and only use the interfaces that are documented
82 in this Main API documentation. This ensures that, with any given release
83 version of VirtualBox, all capabilities of the product that could be useful
84 to an external client program are always exposed by way of this API.
85
86 The VirtualBox Main API (also called the <i>VirtualBox COM library</i>)
87 contains two public component classes:
88 <tt>%VirtualBox.VirtualBox</tt> and <tt>%VirtualBox.Session</tt>, which
89 implement IVirtualBox and ISession interfaces respectively. These two classes
90 are of supreme importance and will be needed in order for any front-end
91 program to do anything useful. It is recommended to read the documentation of
92 the mentioned interfaces first.
93
94 The <tt>%VirtualBox.VirtualBox</tt> class is a singleton. This means that
95 there can be only one object of this class on the local machine at any given
96 time. This object is a parent of many other objects in the VirtualBox COM
97 library and lives in the VBoxSVC process. In fact, when you create an instance
98 of the <tt>VirtualBox.VirtualBox</tt>, the COM subsystem checks if the VBoxSVC
99 process is already running, starts it if not, and returns you a reference to
100 the <tt>VirtualBox</tt> object created in this process. When the last reference
101 to this object is released, the VBoxSVC process ends (with a 5 second delay to
102 protect from too frequent restarts).
103
104 The <tt>%VirtualBox.Session</tt> class is a regular component. You can create
105 as many <tt>Session</tt> objects as you need but all of them will live in a
106 process which issues the object instantiation call. <tt>Session</tt> objects
107 represent virtual machine sessions which are used to configure virtual
108 machines and control their execution.
109</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). Note that when pointers representing input
275 arguments (such 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 name="SettingsVersion"
388 uuid="52bd6f5f-1adb-4493-975d-581a9c4b803f"
389 >
390 <desc>Settings version of VirtualBox settings files. This is written to
391 the "version" attribute of the root "VirtualBox" element in the settings
392 file XML and indicates which VirtualBox version wrote the file.
393 </desc>
394
395 <const name="Null" value="0">
396 <desc>Null value, indicates invalid version.</desc>
397 </const>
398 <const name="v1_0" value="1">
399 <desc>Legacy settings version, not currently supported.</desc>
400 </const>
401 <const name="v1_1" value="2">
402 <desc>Legacy settings version, not currently supported.</desc>
403 </const>
404 <const name="v1_2" value="3">
405 <desc>Legacy settings version, not currently supported.</desc>
406 </const>
407 <const name="v1_3pre" value="4">
408 <desc>Legacy settings version, not currently supported.</desc>
409 </const>
410 <const name="v1_3" value="5">
411 <desc>Settings version "1.3", written by VirtualBox 2.0.12.</desc>
412 <!--
413 Machine XML: Capitalization of Uart, Lpt elements and many attributes changed.
414 -->
415 </const>
416 <const name="v1_4" value="6">
417 <desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
418 <!--
419 VirtualBox.xml: big DiskRegistry -> MediaRegistry revamp, various HardDisk types merged
420 (was VirtualDiskImage, VMDKImage, VHDImage, ISCSIHardDisk, CustomHardDisk, DiffHardDisk)
421 -->
422 </const>
423 <const name="v1_5" value="7">
424 <desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
425 <!-- 2008-09-04: 2.0.0 released
426 2008-11-20: settings version 1.5 introduced
427 2008-12-17: 2.1.0 released
428 Machine changes:
429 guest OS identifiers changed;
430 Machine/Hardware/Display/MonitorCount renamed to monitorCount;
431 Machine/Hardware/Display/Accelerate3D renamed to accelerate3D;
432 Machine/Hardware/CPU/CPUCount/@count changed to CPU/@count
433 -->
434 </const>
435 <const name="v1_6" value="8">
436 <desc>Settings version "1.6", written by VirtualBox 2.1.4 (at least).</desc>
437 <!-- 2008-12-17: 2.1.0 released
438 2008-12-19: settings version 1.6 introduced (is in 2.1 branch)
439 2009-04-08: 2.2.0 released
440 Machine changes: remove all Machine/Hardware/Network/Adapter/HostInterface[@TAPSetup or @TAPTerminate]/ attributes (done)
441 -->
442 </const>
443 <const name="v1_7" value="9">
444 <desc>Settings version "1.7", written by VirtualBox 2.2.x and 3.0.x.</desc>
445 <!-- 2008-12-17: 2.1.0 released
446 2009-03-11: settings version 1.7 introduced (is in 2.2 branch)
447 2009-04-08: 2.2.0 released
448 VirtualBox.xml additions: NetserviceRegistry with DHCPServers (done)
449 Machine changes: HardDiskAttachments is now StorageControllers (done)
450 -->
451 </const>
452 <const name="v1_8" value="10">
453 <desc>Intermediate settings version "1.8", understood by VirtualBox 3.1.x.</desc>
454 <!-- Machine additions: Display/@accelerate2DVideo (done)
455 -->
456 </const>
457 <const name="v1_9" value="11">
458 <desc>Settings version "1.9", written by VirtualBox 3.1.x.</desc>
459 <!-- The big storage controller / DVD / Floppy rework (done)
460 -->
461 </const>
462 <const name="v1_10" value="12">
463 <desc>Settings version "1.10", written by VirtualBox 3.2.x.</desc>
464 <!-- Machine changes: RTC localOrUTC (done)
465 CPU hot-plug support
466 -->
467 </const>
468 <const name="v1_11" value="13">
469 <desc>Settings version "1.11", written by VirtualBox 4.0.x.</desc>
470 <!-- Machine changes: HD Audio controller, per-machine disk registries,
471 /@format attribute for DVD and floppy images.
472 -->
473 </const>
474 <const name="Future" value="99999">
475 <desc>Settings version greater than "1.11", written by a future VirtualBox version.</desc>
476 </const>
477 </enum>
478
479 <enum
480 name="AccessMode"
481 uuid="1da0007c-ddf7-4be8-bcac-d84a1558785f"
482 >
483 <desc>
484 Access mode for opening files.
485 </desc>
486
487 <const name="ReadOnly" value="1"/>
488 <const name="ReadWrite" value="2"/>
489 </enum>
490
491 <enum
492 name="MachineState"
493 uuid="ec6c6a9e-113d-4ff4-b44f-0b69f21c97fe"
494 >
495 <desc>
496 Virtual machine execution state.
497
498 This enumeration represents possible values of the <link
499 to="IMachine::state"/> attribute.
500
501 Below is the basic virtual machine state diagram. It shows how the state
502 changes during virtual machine execution. The text in square braces shows
503 a method of the IConsole interface that performs the given state
504 transition.
505
506 <pre>
507 +---------[powerDown()] &lt;- Stuck &lt;--[failure]-+
508 V |
509 +-&gt; PoweredOff --+--&gt;[powerUp()]--&gt; Starting --+ | +-----[resume()]-----+
510 | | | | V |
511 | Aborted -----+ +--&gt; Running --[pause()]--&gt; Paused
512 | | ^ | ^ |
513 | Saved -----------[powerUp()]--&gt; Restoring -+ | | | |
514 | ^ | | | |
515 | | +-----------------------------------------+-|-------------------+ +
516 | | | | |
517 | | +-- Saving &lt;--------[takeSnapshot()]&lt;-------+---------------------+
518 | | | |
519 | +-------- Saving &lt;--------[saveState()]&lt;----------+---------------------+
520 | | |
521 +-------------- Stopping -------[powerDown()]&lt;----------+---------------------+
522 </pre>
523
524 Note that states to the right from PoweredOff, Aborted and Saved in the
525 above diagram are called <i>online VM states</i>. These states
526 represent the virtual machine which is being executed in a dedicated
527 process (usually with a GUI window attached to it where you can see the
528 activity of the virtual machine and interact with it). There are two
529 special pseudo-states, FirstOnline and LastOnline, that can be used in
530 relational expressions to detect if the given machine state is online or
531 not:
532
533 <pre>
534 if (machine.GetState() &gt;= MachineState_FirstOnline &amp;&amp;
535 machine.GetState() &lt;= MachineState_LastOnline)
536 {
537 ...the machine is being executed...
538 }
539 </pre>
540
541 When the virtual machine is in one of the online VM states (that is, being
542 executed), only a few machine settings can be modified. Methods working
543 with such settings contain an explicit note about that. An attempt to
544 change any oter setting or perform a modifying operation during this time
545 will result in the <link to="VBOX_E_INVALID_VM_STATE"/> error.
546
547 All online states except Running, Paused and Stuck are transitional: they
548 represent temporary conditions of the virtual machine that will last as
549 long as the operation that initiated such a condition.
550
551 The Stuck state is a special case. It means that execution of the machine
552 has reached the "Guru Meditation" condition. This condition indicates an
553 internal VMM (virtual machine manager) failure which may happen as a
554 result of either an unhandled low-level virtual hardware exception or one
555 of the recompiler exceptions (such as the <i>too-many-traps</i>
556 condition).
557
558 Note also that any online VM state may transit to the Aborted state. This
559 happens if the process that is executing the virtual machine terminates
560 unexpectedly (for example, crashes). Other than that, the Aborted state is
561 equivalent to PoweredOff.
562
563 There are also a few additional state diagrams that do not deal with
564 virtual machine execution and therefore are shown separately. The states
565 shown on these diagrams are called <i>offline VM states</i> (this includes
566 PoweredOff, Aborted and Saved too).
567
568 The first diagram shows what happens when a lengthy setup operation is
569 being executed (such as <link to="IMachine::attachDevice"/>).
570
571 <pre>
572 +----------------------------------(same state as before the call)------+
573 | |
574 +-&gt; PoweredOff --+ |
575 | | |
576 |-&gt; Aborted -----+--&gt;[lengthy VM configuration call] --&gt; SettingUp -----+
577 | |
578 +-&gt; Saved -------+
579 </pre>
580
581 The next two diagrams demonstrate the process of taking a snapshot of a
582 powered off virtual machine, restoring the state to that as of a snapshot
583 or deleting a snapshot, respectively.
584
585 <pre>
586 +----------------------------------(same state as before the call)------+
587 | |
588 +-&gt; PoweredOff --+ |
589 | +--&gt;[takeSnapshot()] -------------------&gt; Saving ------+
590 +-&gt; Aborted -----+
591
592 +-&gt; PoweredOff --+
593 | |
594 | Aborted -----+--&gt;[restoreSnapshot() ]-------&gt; RestoringSnapshot -+
595 | | [deleteSnapshot() ]-------&gt; DeletingSnapshot --+
596 +-&gt; Saved -------+ |
597 | |
598 +---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
599 </pre>
600
601 Note that the Saving state is present in both the offline state group and
602 online state group. Currently, the only way to determine what group is
603 assumed in a particular case is to remember the previous machine state: if
604 it was Running or Paused, then Saving is an online state, otherwise it is
605 an offline state. This inconsistency may be removed in one of the future
606 versions of VirtualBox by adding a new state.
607
608 <note internal="yes">
609 For whoever decides to touch this enum: In order to keep the
610 comparisons involving FirstOnline and LastOnline pseudo-states valid,
611 the numeric values of these states must be correspondingly updated if
612 needed: for any online VM state, the condition
613 <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
614 @c true. The same relates to transient states for which
615 the condition <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
616 @c true.
617 </note>
618 </desc>
619
620 <const name="Null" value="0">
621 <desc>Null value (never used by the API).</desc>
622 </const>
623 <const name="PoweredOff" value="1">
624 <desc>
625 The machine is not running and has no saved execution state; it has
626 either never been started or been shut down successfully.
627 </desc>
628 </const>
629 <const name="Saved" value="2">
630 <desc>
631 The machine is not currently running, but the execution state of the machine
632 has been saved to an external file when it was running, from where
633 it can be resumed.
634 </desc>
635 </const>
636 <const name="Teleported" value="3">
637 <desc>
638 The machine was teleported to a different host (or process) and then
639 powered off. Take care when powering it on again may corrupt resources
640 it shares with the teleportation target (e.g. disk and network).
641 </desc>
642 </const>
643 <const name="Aborted" value="4">
644 <desc>
645 The process running the machine has terminated abnormally. This may
646 indicate a crash of the VM process in host execution context, or
647 the VM process has been terminated externally.
648 </desc>
649 </const>
650 <const name="Running" value="5">
651 <desc>
652 The machine is currently being executed.
653 <note internal="yes">
654 For whoever decides to touch this enum: In order to keep the
655 comparisons in the old source code valid, this state must immediately
656 precede the Paused state.
657 TODO: Lift this spectacularly wonderful restriction.
658 </note>
659 </desc>
660 </const>
661 <const name="Paused" value="6">
662 <desc>
663 Execution of the machine has been paused.
664 <note internal="yes">
665 For whoever decides to touch this enum: In order to keep the
666 comparisons in the old source code valid, this state must immediately
667 follow the Running state.
668 TODO: Lift this spectacularly wonderful restriction.
669 </note>
670 </desc>
671 </const>
672 <const name="Stuck" value="7">
673 <desc>
674 Execution of the machine has reached the "Guru Meditation"
675 condition. This indicates a severe error in the hypervisor itself.
676 <note internal="yes">
677 bird: Why this uncool name? Could we rename it to "GuruMeditation" or
678 "Guru", perhaps? Or are there some other VMM states that are
679 intended to be lumped in here as well?
680 </note>
681 </desc>
682 </const>
683 <const name="Teleporting" value="8">
684 <desc>
685 The machine is about to be teleported to a different host or process.
686 It is possible to pause a machine in this state, but it will go to the
687 @c TeleportingPausedVM state and it will not be
688 possible to resume it again unless the teleportation fails.
689 </desc>
690 </const>
691 <const name="LiveSnapshotting" value="9">
692 <desc>
693 A live snapshot is being taken. The machine is running normally, but
694 some of the runtime configuration options are inaccessible. Also, if
695 paused while in this state it will transition to
696 @c Saving and it will not be resume the
697 execution until the snapshot operation has completed.
698 </desc>
699 </const>
700 <const name="Starting" value="10">
701 <desc>
702 Machine is being started after powering it on from a
703 zero execution state.
704 </desc>
705 </const>
706 <const name="Stopping" value="11">
707 <desc>
708 Machine is being normally stopped powering it off, or after the guest OS
709 has initiated a shutdown sequence.
710 </desc>
711 </const>
712 <const name="Saving" value="12">
713 <desc>
714 Machine is saving its execution state to a file, or an online
715 snapshot of the machine is being taken.
716 </desc>
717 </const>
718 <const name="Restoring" value="13">
719 <desc>
720 Execution state of the machine is being restored from a file
721 after powering it on from the saved execution state.
722 </desc>
723 </const>
724 <const name="TeleportingPausedVM" value="14">
725 <desc>
726 The machine is being teleported to another host or process, but it is
727 not running. This is the paused variant of the
728 @c state.
729 </desc>
730 </const>
731 <const name="TeleportingIn" value="15">
732 <desc>
733 Teleporting the machine state in from another host or process.
734 </desc>
735 </const>
736 <const name="FaultTolerantSyncing" value="16">
737 <desc>
738 The machine is being synced with a fault tolerant VM running elsewhere.
739 </desc>
740 </const>
741 <const name="DeletingSnapshotOnline" value="17">
742 <desc>
743 Like @c DeletingSnapshot, but the merging of media is ongoing in
744 the background while the machine is running.
745 </desc>
746 </const>
747 <const name="DeletingSnapshotPaused" value="18">
748 <desc>
749 Like @c DeletingSnapshotOnline, but the machine was paused when the
750 merging of differencing media was started.
751 </desc>
752 </const>
753 <const name="RestoringSnapshot" value="19">
754 <desc>
755 A machine snapshot is being restored; this typically does not take long.
756 </desc>
757 </const>
758 <const name="DeletingSnapshot" value="20">
759 <desc>
760 A machine snapshot is being deleted; this can take a long time since this
761 may require merging differencing media. This value indicates that the
762 machine is not running while the snapshot is being deleted.
763 </desc>
764 </const>
765 <const name="SettingUp" value="21">
766 <desc>
767 Lengthy setup operation is in progress.
768 </desc>
769 </const>
770
771 <const name="FirstOnline" value="5" wsmap="suppress"> <!-- Running -->
772 <desc>
773 Pseudo-state: first online state (for use in relational expressions).
774 </desc>
775 </const>
776 <const name="LastOnline" value="18" wsmap="suppress"> <!-- DeletingSnapshotPaused -->
777 <desc>
778 Pseudo-state: last online state (for use in relational expressions).
779 </desc>
780 </const>
781
782 <const name="FirstTransient" value="8" wsmap="suppress"> <!-- Teleporting -->
783 <desc>
784 Pseudo-state: first transient state (for use in relational expressions).
785 </desc>
786 </const>
787 <const name="LastTransient" value="21" wsmap="suppress"> <!-- SettingUp -->
788 <desc>
789 Pseudo-state: last transient state (for use in relational expressions).
790 </desc>
791 </const>
792
793 </enum>
794
795 <enum
796 name="SessionState"
797 uuid="cf2700c0-ea4b-47ae-9725-7810114b94d8"
798 >
799 <desc>
800 Session state. This enumeration represents possible values of
801 <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
802 attributes.
803 </desc>
804
805 <const name="Null" value="0">
806 <desc>Null value (never used by the API).</desc>
807 </const>
808 <const name="Unlocked" value="1">
809 <desc>
810 In <link to="IMachine::sessionState"/>, this means that the machine
811 is not locked for any sessions.
812
813 In <link to="ISession::state"/>, this means that no machine is
814 currently locked for this session.
815 </desc>
816 </const>
817 <const name="Locked" value="2">
818 <desc>
819 In <link to="IMachine::sessionState"/>, this means that the machine
820 is currently locked for a session, whose process identifier can
821 then be found in the <link to="IMachine::sessionPid" /> attribute.
822
823 In <link to="ISession::state"/>, this means that a machine is
824 currently locked for this session, and the mutable machine object
825 can be found in the <link to="ISession::machine"/> attribute
826 (see <link to="IMachine::lockMachine" /> for details).
827 </desc>
828 </const>
829 <const name="Spawning" value="3">
830 <desc>
831 A new process is being spawned for the machine as a result of
832 <link to="IMachine::launchVMProcess"/> call. This state also occurs
833 as a short transient state during an <link to="IMachine::lockMachine"/>
834 call.
835 </desc>
836 </const>
837 <const name="Unlocking" value="4">
838 <desc>
839 The session is being unlocked.
840 </desc>
841 </const>
842 </enum>
843
844 <enum
845 name="CPUPropertyType"
846 uuid="24d356a6-2f45-4abd-b977-1cbe9c4701f5"
847 >
848 <desc>
849 Virtual CPU property type. This enumeration represents possible values of the
850 IMachine get- and setCPUProperty methods.
851 </desc>
852 <const name="Null" value="0">
853 <desc>Null value (never used by the API).</desc>
854 </const>
855 <const name="PAE" value="1">
856 <desc>
857 This setting determines whether VirtualBox will expose the Physical Address
858 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
859 is not available, it will not be reported.
860 </desc>
861 </const>
862 <const name="Synthetic" value="2">
863 <desc>
864 This setting determines whether VirtualBox will expose a synthetic CPU to the guest to allow
865 teleporting between host systems that differ significantly.
866 </desc>
867 </const>
868 </enum>
869
870
871 <enum
872 name="HWVirtExPropertyType"
873 uuid="ce81dfdd-d2b8-4a90-bbea-40ee8b7ffcee"
874 >
875 <desc>
876 Hardware virtualization property type. This enumeration represents possible values
877 for the <link to="IMachine::getHWVirtExProperty"/> and
878 <link to="IMachine::setHWVirtExProperty"/> methods.
879 </desc>
880 <const name="Null" value="0">
881 <desc>Null value (never used by the API).</desc>
882 </const>
883 <const name="Enabled" value="1">
884 <desc>
885 Whether hardware virtualization (VT-x/AMD-V) is enabled at all. If
886 such extensions are not available, they will not be used.
887 </desc>
888 </const>
889 <const name="Exclusive" value="2">
890 <desc>
891 Whether hardware virtualization is used exclusively by VirtualBox. When enabled,
892 VirtualBox assumes it can acquire full and exclusive access to the VT-x or AMD-V
893 feature of the host. To share these with other hypervisors, you must disable this property.
894 </desc>
895 </const>
896 <const name="VPID" value="3">
897 <desc>
898 Whether VT-x VPID is enabled. If this extension is not available, it will not be used.
899 </desc>
900 </const>
901 <const name="NestedPaging" value="4">
902 <desc>
903 Whether Nested Paging is enabled. If this extension is not available, it will not be used.
904 </desc>
905 </const>
906 <const name="LargePages" value="5">
907 <desc>
908 Whether large page allocation is enabled; requires nested paging and a 64 bits host.
909 </desc>
910 </const>
911 <const name="Force" value="6">
912 <desc>
913 Whether the VM should fail to start if hardware virtualization (VT-x/AMD-V) cannot be used. If
914 not set, there will be an automatic fallback to software virtualization.
915 </desc>
916 </const>
917 </enum>
918
919 <enum
920 name="FaultToleranceState"
921 uuid="5124f7ec-6b67-493c-9dee-ee45a44114e1"
922 >
923 <desc>
924 Used with <link to="IMachine::faultToleranceState" />.
925 </desc>
926 <const name="Inactive" value="1">
927 <desc>No fault tolerance enabled.</desc>
928 </const>
929 <const name="Master" value="2">
930 <desc>Fault tolerant master VM.</desc>
931 </const>
932 <const name="Standby" value="3">
933 <desc>Fault tolerant standby VM.</desc>
934 </const>
935 </enum>
936
937 <enum
938 name="LockType"
939 uuid="138b53f8-db4b-47c5-b32b-4ef52f769413"
940 >
941 <desc>
942 Used with <link to="IMachine::lockMachine" />.
943 </desc>
944 <const name="Write" value="2">
945 <desc>Lock the machine for writing.</desc>
946 </const>
947 <const name="Shared" value="1">
948 <desc>Request only a shared read lock for remote-controlling the machine.</desc>
949 </const>
950 </enum>
951
952 <enum
953 name="SessionType"
954 uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
955 >
956 <desc>
957 Session type. This enumeration represents possible values of the
958 <link to="ISession::type"/> attribute.
959 </desc>
960
961 <const name="Null" value="0">
962 <desc>Null value (never used by the API).</desc>
963 </const>
964 <const name="WriteLock" value="1">
965 <desc>
966 Session has acquired an exclusive write lock on a machine
967 using <link to="IMachine::lockMachine"/>.
968 </desc>
969 </const>
970 <const name="Remote" value="2">
971 <desc>
972 Session has launched a VM process using
973 <link to="IMachine::launchVMProcess"/>
974 </desc>
975 </const>
976 <const name="Shared" value="3">
977 <desc>
978 Session has obtained a link to another session using
979 <link to="IMachine::lockMachine"/>
980 </desc>
981 </const>
982 </enum>
983
984 <enum
985 name="DeviceType"
986 uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
987 >
988 <desc>
989 Device type.
990 </desc>
991 <const name="Null" value="0">
992 <desc>
993 Null value, may also mean "no device" (not allowed for
994 <link to="IConsole::getDeviceActivity"/>).
995 </desc>
996 </const>
997 <const name="Floppy" value="1">
998 <desc>Floppy device.</desc>
999 </const>
1000 <const name="DVD" value="2">
1001 <desc>CD/DVD-ROM device.</desc>
1002 </const>
1003 <const name="HardDisk" value="3">
1004 <desc>Hard disk device.</desc>
1005 </const>
1006 <const name="Network" value="4">
1007 <desc>Network device.</desc>
1008 </const>
1009 <const name="USB" value="5">
1010 <desc>USB device.</desc>
1011 </const>
1012 <const name="SharedFolder" value="6">
1013 <desc>Shared folder device.</desc>
1014 </const>
1015 </enum>
1016
1017 <enum
1018 name="DeviceActivity"
1019 uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
1020 >
1021 <desc>
1022 Device activity for <link to="IConsole::getDeviceActivity"/>.
1023 </desc>
1024
1025 <const name="Null" value="0"/>
1026 <const name="Idle" value="1"/>
1027 <const name="Reading" value="2"/>
1028 <const name="Writing" value="3"/>
1029 </enum>
1030
1031 <enum
1032 name="ClipboardMode"
1033 uuid="33364716-4008-4701-8f14-be0fa3d62950"
1034 >
1035 <desc>
1036 Host-Guest clipboard interchange mode.
1037 </desc>
1038
1039 <const name="Disabled" value="0"/>
1040 <const name="HostToGuest" value="1"/>
1041 <const name="GuestToHost" value="2"/>
1042 <const name="Bidirectional" value="3"/>
1043 </enum>
1044
1045 <enum
1046 name="Scope"
1047 uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
1048 >
1049 <desc>
1050 Scope of the operation.
1051
1052 A generic enumeration used in various methods to define the action or
1053 argument scope.
1054 </desc>
1055
1056 <const name="Global" value="0"/>
1057 <const name="Machine" value="1"/>
1058 <const name="Session" value="2"/>
1059 </enum>
1060
1061 <enum
1062 name="BIOSBootMenuMode"
1063 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
1064 >
1065 <desc>
1066 BIOS boot menu mode.
1067 </desc>
1068
1069 <const name="Disabled" value="0"/>
1070 <const name="MenuOnly" value="1"/>
1071 <const name="MessageAndMenu" value="2"/>
1072 </enum>
1073
1074 <enum
1075 name="ProcessorFeature"
1076 uuid="64c38e6b-8bcf-45ad-ac03-9b406287c5bf"
1077 >
1078 <desc>
1079 CPU features.
1080 </desc>
1081
1082 <const name="HWVirtEx" value="0"/>
1083 <const name="PAE" value="1"/>
1084 <const name="LongMode" value="2"/>
1085 <const name="NestedPaging" value="3"/>
1086 </enum>
1087
1088 <enum
1089 name="FirmwareType"
1090 uuid="b903f264-c230-483e-ac74-2b37ce60d371"
1091 >
1092 <desc>
1093 Firmware type.
1094 </desc>
1095 <const name="BIOS" value="1">
1096 <desc>BIOS Firmware.</desc>
1097 </const>
1098 <const name="EFI" value="2">
1099 <desc>EFI Firmware, bitness detected basing on OS type.</desc>
1100 </const>
1101 <const name="EFI32" value="3">
1102 <desc>Efi firmware, 32-bit.</desc>
1103 </const>
1104 <const name="EFI64" value="4">
1105 <desc>Efi firmware, 64-bit.</desc>
1106 </const>
1107 <const name="EFIDUAL" value="5">
1108 <desc>Efi firmware, combined 32 and 64-bit.</desc>
1109 </const>
1110 </enum>
1111
1112 <enum
1113 name="PointingHidType"
1114 uuid="0d3c17a2-821a-4b2e-ae41-890c6c60aa97"
1115 >
1116 <desc>
1117 Type of pointing device used in a virtual machine.
1118 </desc>
1119 <const name="None" value="1">
1120 <desc>No mouse.</desc>
1121 </const>
1122 <const name="PS2Mouse" value="2">
1123 <desc>PS/2 auxiliary device, a.k.a. mouse.</desc>
1124 </const>
1125 <const name="USBMouse" value="3">
1126 <desc>USB mouse (relative pointer).</desc>
1127 </const>
1128 <const name="USBTablet" value="4">
1129 <desc>USB tablet (absolute pointer).</desc>
1130 </const>
1131 <const name="ComboMouse" value="5">
1132 <desc>Combined device, working as PS/2 or USB mouse, depending on guest behavior.
1133 Using of such device can have negative performance implications. </desc>
1134 </const>
1135 </enum>
1136
1137 <enum
1138 name="KeyboardHidType"
1139 uuid="5a5b0996-3a3e-44bb-9019-56979812cbcc"
1140 >
1141 <desc>
1142 Type of keyboard device used in a virtual machine.
1143 </desc>
1144 <const name="None" value="1">
1145 <desc>No keyboard.</desc>
1146 </const>
1147 <const name="PS2Keyboard" value="2">
1148 <desc>PS/2 keyboard.</desc>
1149 </const>
1150 <const name="USBKeyboard" value="3">
1151 <desc>USB keyboard.</desc>
1152 </const>
1153 <const name="ComboKeyboard" value="4">
1154 <desc>Combined device, working as PS/2 or USB keyboard, depending on guest behavior.
1155 Using of such device can have negative performance implications. </desc>
1156 </const>
1157 </enum>
1158
1159 <!--
1160 // IVirtualBoxErrorInfo
1161 /////////////////////////////////////////////////////////////////////////
1162 -->
1163
1164 <interface
1165 name="IVirtualBoxErrorInfo" extends="$errorinfo"
1166 uuid="e053d3c0-f493-491b-a735-3a9f0b1feed4"
1167 supportsErrorInfo="no"
1168 wsmap="managed"
1169 >
1170 <desc>
1171 The IVirtualBoxErrorInfo interface represents extended error information.
1172
1173 Extended error information can be set by VirtualBox components after
1174 unsuccessful or partially successful method invocation. This information
1175 can be retrieved by the calling party as an IVirtualBoxErrorInfo object
1176 and then shown to the client in addition to the plain 32-bit result code.
1177
1178 In MS COM, this interface extends the IErrorInfo interface,
1179 in XPCOM, it extends the nsIException interface. In both cases,
1180 it provides a set of common attributes to retrieve error
1181 information.
1182
1183 Sometimes invocation of some component's method may involve methods of
1184 other components that may also fail (independently of this method's
1185 failure), or a series of non-fatal errors may precede a fatal error that
1186 causes method failure. In cases like that, it may be desirable to preserve
1187 information about all errors happened during method invocation and deliver
1188 it to the caller. The <link to="#next"/> attribute is intended
1189 specifically for this purpose and allows to represent a chain of errors
1190 through a single IVirtualBoxErrorInfo object set after method invocation.
1191
1192 Note that errors are stored to a chain in the reverse order, i.e. the
1193 initial error object you query right after method invocation is the last
1194 error set by the callee, the object it points to in the @a next attribute
1195 is the previous error and so on, up to the first error (which is the last
1196 in the chain).
1197 </desc>
1198
1199 <attribute name="resultCode" type="long" readonly="yes">
1200 <desc>
1201 Result code of the error.
1202 Usually, it will be the same as the result code returned
1203 by the method that provided this error information, but not
1204 always. For example, on Win32, CoCreateInstance() will most
1205 likely return E_NOINTERFACE upon unsuccessful component
1206 instantiation attempt, but not the value the component factory
1207 returned. Value is typed 'long', not 'result',
1208 to make interface usable from scripting languages.
1209 <note>
1210 In MS COM, there is no equivalent.
1211 In XPCOM, it is the same as nsIException::result.
1212 </note>
1213 </desc>
1214 </attribute>
1215
1216 <attribute name="interfaceID" type="uuid" mod="string" readonly="yes">
1217 <desc>
1218 UUID of the interface that defined the error.
1219 <note>
1220 In MS COM, it is the same as IErrorInfo::GetGUID, except for the
1221 data type.
1222 In XPCOM, there is no equivalent.
1223 </note>
1224 </desc>
1225 </attribute>
1226
1227 <attribute name="component" type="wstring" readonly="yes">
1228 <desc>
1229 Name of the component that generated the error.
1230 <note>
1231 In MS COM, it is the same as IErrorInfo::GetSource.
1232 In XPCOM, there is no equivalent.
1233 </note>
1234 </desc>
1235 </attribute>
1236
1237 <attribute name="text" type="wstring" readonly="yes">
1238 <desc>
1239 Text description of the error.
1240 <note>
1241 In MS COM, it is the same as IErrorInfo::GetDescription.
1242 In XPCOM, it is the same as nsIException::message.
1243 </note>
1244 </desc>
1245 </attribute>
1246
1247 <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
1248 <desc>
1249 Next error object if there is any, or @c null otherwise.
1250 <note>
1251 In MS COM, there is no equivalent.
1252 In XPCOM, it is the same as nsIException::inner.
1253 </note>
1254 </desc>
1255 </attribute>
1256
1257 </interface>
1258
1259 <!--
1260 // IVirtualBox
1261 /////////////////////////////////////////////////////////////////////////
1262 -->
1263
1264 <interface
1265 name="IDHCPServer" extends="$unknown"
1266 uuid="6cfe387c-74fb-4ca7-bff6-973bec8af7a3"
1267 wsmap="managed"
1268 >
1269 <desc>
1270 The IDHCPServer interface represents the vbox dhcp server configuration.
1271
1272 To enumerate all the dhcp servers on the host, use the
1273 <link to="IVirtualBox::DHCPServers"/> attribute.
1274 </desc>
1275
1276 <attribute name="enabled" type="boolean">
1277 <desc>
1278 specifies if the dhcp server is enabled
1279 </desc>
1280 </attribute>
1281
1282 <attribute name="IPAddress" type="wstring" readonly="yes">
1283 <desc>
1284 specifies server IP
1285 </desc>
1286 </attribute>
1287
1288 <attribute name="networkMask" type="wstring" readonly="yes">
1289 <desc>
1290 specifies server network mask
1291 </desc>
1292 </attribute>
1293
1294 <attribute name="networkName" type="wstring" readonly="yes">
1295 <desc>
1296 specifies internal network name the server is used for
1297 </desc>
1298 </attribute>
1299
1300 <attribute name="lowerIP" type="wstring" readonly="yes">
1301 <desc>
1302 specifies from IP address in server address range
1303 </desc>
1304 </attribute>
1305
1306 <attribute name="upperIP" type="wstring" readonly="yes">
1307 <desc>
1308 specifies to IP address in server address range
1309 </desc>
1310 </attribute>
1311
1312 <method name="setConfiguration">
1313 <desc>
1314 configures the server
1315 <result name="E_INVALIDARG">
1316 invalid configuration supplied
1317 </result>
1318 </desc>
1319 <param name="IPAddress" type="wstring" dir="in">
1320 <desc>
1321 server IP address
1322 </desc>
1323 </param>
1324 <param name="networkMask" type="wstring" dir="in">
1325 <desc>
1326 server network mask
1327 </desc>
1328 </param>
1329 <param name="FromIPAddress" type="wstring" dir="in">
1330 <desc>
1331 server From IP address for address range
1332 </desc>
1333 </param>
1334 <param name="ToIPAddress" type="wstring" dir="in">
1335 <desc>
1336 server To IP address for address range
1337 </desc>
1338 </param>
1339 </method>
1340
1341 <method name="start">
1342 <desc>
1343 Starts DHCP server process.
1344 <result name="E_FAIL">
1345 Failed to start the process.
1346 </result>
1347 </desc>
1348 <param name="networkName" type="wstring" dir="in">
1349 <desc>
1350 Name of internal network DHCP server should attach to.
1351 </desc>
1352 </param>
1353 <param name="trunkName" type="wstring" dir="in">
1354 <desc>
1355 Name of internal network trunk.
1356 </desc>
1357 </param>
1358 <param name="trunkType" type="wstring" dir="in">
1359 <desc>
1360 Type of internal network trunk.
1361 </desc>
1362 </param>
1363 </method>
1364
1365 <method name="stop">
1366 <desc>
1367 Stops DHCP server process.
1368 <result name="E_FAIL">
1369 Failed to stop the process.
1370 </result>
1371 </desc>
1372 </method>
1373 </interface>
1374
1375 <interface
1376 name="IVirtualBox" extends="$unknown"
1377 uuid="e03d6527-9b72-43b5-b87f-88f1033d3866"
1378 wsmap="managed"
1379 >
1380 <desc>
1381 The IVirtualBox interface represents the main interface exposed by the
1382 product that provides virtual machine management.
1383
1384 An instance of IVirtualBox is required for the product to do anything
1385 useful. Even though the interface does not expose this, internally,
1386 IVirtualBox is implemented as a singleton and actually lives in the
1387 process of the VirtualBox server (VBoxSVC.exe). This makes sure that
1388 IVirtualBox can track the state of all virtual machines on a particular
1389 host, regardless of which frontend started them.
1390
1391 To enumerate all the virtual machines on the host, use the
1392 <link to="IVirtualBox::machines"/> attribute.
1393 </desc>
1394
1395 <attribute name="version" type="wstring" readonly="yes">
1396 <desc>
1397 A string representing the version number of the product. The
1398 format is 3 integer numbers divided by dots (e.g. 1.0.1). The
1399 last number represents the build number and will frequently change.
1400 </desc>
1401 </attribute>
1402
1403 <attribute name="revision" type="unsigned long" readonly="yes">
1404 <desc>
1405 The internal build revision number of the product.
1406 </desc>
1407 </attribute>
1408
1409 <attribute name="packageType" type="wstring" readonly="yes">
1410 <desc>
1411 A string representing the package type of this product. The
1412 format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
1413 SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
1414 is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
1415 this.
1416 </desc>
1417 </attribute>
1418
1419 <attribute name="homeFolder" type="wstring" readonly="yes">
1420 <desc>
1421 Full path to the directory where the global settings file,
1422 <tt>VirtualBox.xml</tt>, is stored.
1423
1424 In this version of VirtualBox, the value of this property is
1425 always <tt>&lt;user_dir&gt;/.VirtualBox</tt> (where
1426 <tt>&lt;user_dir&gt;</tt> is the path to the user directory,
1427 as determined by the host OS), and cannot be changed.
1428
1429 This path is also used as the base to resolve relative paths in
1430 places where relative paths are allowed (unless otherwise
1431 expressly indicated).
1432 </desc>
1433 </attribute>
1434
1435 <attribute name="settingsFilePath" type="wstring" readonly="yes">
1436 <desc>
1437 Full name of the global settings file.
1438 The value of this property corresponds to the value of
1439 <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
1440 </desc>
1441 </attribute>
1442
1443 <attribute name="host" type="IHost" readonly="yes">
1444 <desc>Associated host object.</desc>
1445 </attribute>
1446
1447 <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
1448 <desc>Associated system information object.</desc>
1449 </attribute>
1450
1451 <attribute name="machines" type="IMachine" readonly="yes" safearray="yes">
1452 <desc>
1453 Array of machine objects registered within this VirtualBox instance.
1454 </desc>
1455 </attribute>
1456
1457 <attribute name="hardDisks" type="IMedium" readonly="yes" safearray="yes">
1458 <desc>
1459 Array of medium objects known to this VirtualBox installation.
1460
1461 This array contains only base media. All differencing
1462 media of the given base medium can be enumerated using
1463 <link to="IMedium::children"/>.
1464 </desc>
1465 </attribute>
1466
1467 <attribute name="DVDImages" type="IMedium" readonly="yes" safearray="yes">
1468 <desc>
1469 Array of CD/DVD image objects currently in use by this VirtualBox instance.
1470 </desc>
1471 </attribute>
1472
1473 <attribute name="floppyImages" type="IMedium" readonly="yes" safearray="yes">
1474 <desc>
1475 Array of floppy image objects currently in use by this VirtualBox instance.
1476 </desc>
1477 </attribute>
1478
1479 <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
1480
1481 <attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
1482
1483 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
1484 <desc>
1485 Collection of global shared folders. Global shared folders are
1486 available to all virtual machines.
1487
1488 New shared folders are added to the collection using
1489 <link to="#createSharedFolder"/>. Existing shared folders can be
1490 removed using <link to="#removeSharedFolder"/>.
1491
1492 <note>
1493 In the current version of the product, global shared folders are not
1494 implemented and therefore this collection is always empty.
1495 </note>
1496 </desc>
1497 </attribute>
1498
1499 <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
1500 <desc>
1501 Associated performance collector object.
1502 </desc>
1503 </attribute>
1504
1505 <attribute name="DHCPServers" type="IDHCPServer" safearray="yes" readonly="yes">
1506 <desc>
1507 DHCP servers.
1508 </desc>
1509 </attribute>
1510
1511 <attribute name="eventSource" type="IEventSource" readonly="yes">
1512 <desc>
1513 Event source for VirtualBox events.
1514 </desc>
1515 </attribute>
1516
1517 <attribute name="extensionPackManager" type="IExtPackManager" readonly="yes">
1518 <desc>
1519 The extension pack manager.
1520 </desc>
1521 </attribute>
1522
1523
1524 <method name="composeMachineFilename">
1525 <desc>
1526 Returns a recommended full path of the settings file name for a new virtual
1527 machine.
1528
1529 This API serves two purposes:
1530
1531 <ul>
1532 <li>It gets called by <link to="#createMachine" /> if NULL is specified
1533 for the @a settingsFile argument there, which means that API should use
1534 a recommended default file name.</li>
1535
1536 <li>It can be called manually by a client software before creating a machine,
1537 e.g. if that client wants to pre-create the machine directory to create
1538 virtual hard disks in that directory together with the new machine
1539 settings file. In that case, the file name should be stripped from the
1540 full settings file path returned by this function to obtain the
1541 machine directory.</li>
1542 </ul>
1543
1544 See <link to="IMachine::name"/> and <link to="#createMachine"/> for more
1545 details about the machine name.
1546
1547 If @a baseFolder is a @c null or empty string (which is recommended), the
1548 default machine settings folder
1549 (see <link to="ISystemProperties::defaultMachineFolder" />) will be used as
1550 a base folder for the created machine, resulting in a file name like
1551 "/home/user/VirtualBox VMs/name/name.vbox". Otherwise the given base folder
1552 will be used.
1553
1554 This method does not access the host disks. In particular, it does not check
1555 for whether a machine of this name already exists.
1556 </desc>
1557 <param name="name" type="wstring" dir="in">
1558 <desc>Suggested machine name.</desc>
1559 </param>
1560 <param name="baseFolder" type="wstring" dir="in">
1561 <desc>Base machine folder (optional).</desc>
1562 </param>
1563 <param name="file" type="wstring" dir="return">
1564 <desc>Fully qualified path where the machine would be created.</desc>
1565 </param>
1566 </method>
1567
1568 <method name="createMachine">
1569 <desc>
1570 Creates a new virtual machine by creating a machine settings file at
1571 the given location.
1572
1573 VirtualBox machine settings files use a custom XML dialect. Starting
1574 with VirtualBox 4.0, a ".vbox" extension is recommended, but not enforced,
1575 and machine files can be created at arbitrary locations.
1576
1577 However, it is is recommended that machines be created in the default
1578 machine folder (e.g. "/home/user/VirtualBox VMs/name/name.vbox"; see
1579 <link to="ISystemProperties::defaultMachineFolder" />). If you specify
1580 NULL for the @a settingsFile argument, <link to="#composeMachineFilename" />
1581 is called automatically to have such a recommended name composed based
1582 on the machine name given in the @a name argument.
1583
1584 If the resulting settings file already exists, this method will fail,
1585 unless @a forceOverwrite is set.
1586
1587 The new machine is created unregistered, with the initial configuration
1588 set according to the specified guest OS type. A typical sequence of
1589 actions to create a new virtual machine is as follows:
1590
1591 <ol>
1592 <li>
1593 Call this method to have a new machine created. The returned machine
1594 object will be "mutable" allowing to change any machine property.
1595 </li>
1596
1597 <li>
1598 Configure the machine using the appropriate attributes and methods.
1599 </li>
1600
1601 <li>
1602 Call <link to="IMachine::saveSettings" /> to write the settings
1603 to the machine's XML settings file. The configuration of the newly
1604 created machine will not be saved to disk until this method is
1605 called.
1606 </li>
1607
1608 <li>
1609 Call <link to="#registerMachine" /> to add the machine to the list
1610 of machines known to VirtualBox.
1611 </li>
1612 </ol>
1613
1614 The specified guest OS type identifier must match an ID of one of known
1615 guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
1616 array.
1617
1618 Optionally, you may specify an UUID of to assign to the created machine.
1619 However, this is not recommended and you should normally pass an empty
1620 (@c null) UUID to this method so that a new UUID will be automatically
1621 generated for every created machine. You can use UUID
1622 00000000-0000-0000-0000-000000000000 as @c null value.
1623
1624 <note>
1625 There is no way to change the name of the settings file or
1626 subfolder of the created machine directly.
1627 </note>
1628
1629 <result name="VBOX_E_OBJECT_NOT_FOUND">
1630 @a osTypeId is invalid.
1631 </result>
1632 <result name="VBOX_E_FILE_ERROR">
1633 Resulting settings file name is invalid or the settings file already
1634 exists or could not be created due to an I/O error.
1635 </result>
1636 <result name="E_INVALIDARG">
1637 @a name is empty or @c null.
1638 </result>
1639 </desc>
1640
1641 <param name="settingsFile" type="wstring" dir="in">
1642 <desc>Fully qualified path where the settings file should be created,
1643 or NULL for a default folder and file based on the @a name argument
1644 (see <link to="#composeMachineFilename" />).</desc>
1645 </param>
1646 <param name="name" type="wstring" dir="in">
1647 <desc>Machine name.</desc>
1648 </param>
1649 <param name="osTypeId" type="wstring" dir="in">
1650 <desc>Guest OS Type ID.</desc>
1651 </param>
1652 <param name="id" type="uuid" mod="string" dir="in">
1653 <desc>Machine UUID (optional).</desc>
1654 </param>
1655 <param name="forceOverwrite" type="boolean" dir="in">
1656 <desc>If true, an existing machine settings file will be overwritten.</desc>
1657 </param>
1658 <param name="machine" type="IMachine" dir="return">
1659 <desc>Created machine object.</desc>
1660 </param>
1661 </method>
1662
1663 <method name="openMachine">
1664 <desc>
1665 Opens a virtual machine from the existing settings file.
1666 The opened machine remains unregistered until you call
1667 <link to="#registerMachine"/>.
1668
1669 The specified settings file name can be absolute
1670 (full path) or relative to the <link to="IVirtualBox::homeFolder">
1671 VirtualBox home directory</link>. This file must exist
1672 and must be a valid machine settings file whose contents
1673 will be used to construct the machine object.
1674
1675 <result name="VBOX_E_FILE_ERROR">
1676 Settings file name invalid, not found or sharing violation.
1677 </result>
1678 </desc>
1679 <param name="settingsFile" type="wstring" dir="in">
1680 <desc>
1681 Name of the machine settings file.
1682 </desc>
1683 </param>
1684 <param name="machine" type="IMachine" dir="return">
1685 <desc>Opened machine object.</desc>
1686 </param>
1687 <note>
1688 <link to="IMachine::settingsModified"/> will return
1689 @c false for the created machine, until any of machine settings
1690 are changed.
1691 </note>
1692 </method>
1693
1694 <method name="registerMachine">
1695 <desc>
1696
1697 Registers the machine previously created using
1698 <link to="#createMachine"/> or opened using
1699 <link to="#openMachine"/> within this VirtualBox installation. After
1700 successful method invocation, the
1701 <link to="IMachineRegisteredEvent"/> event is fired.
1702
1703 <note>
1704 This method implicitly calls <link to="IMachine::saveSettings"/>
1705 to save all current machine settings before registering it.
1706 </note>
1707
1708 <result name="VBOX_E_OBJECT_NOT_FOUND">
1709 No matching virtual machine found.
1710 </result>
1711 <result name="VBOX_E_INVALID_OBJECT_STATE">
1712 Virtual machine was not created within this VirtualBox instance.
1713 </result>
1714
1715 </desc>
1716 <param name="machine" type="IMachine" dir="in"/>
1717 </method>
1718
1719 <method name="findMachine">
1720 <desc>
1721 Attempts to find a virtual machine given its name or UUID.
1722
1723 <note>Inaccessible machines cannot be found by name, only by UUID, because their name
1724 cannot safely be determined.</note>
1725
1726 <result name="VBOX_E_OBJECT_NOT_FOUND">
1727 Could not find registered machine matching @a nameOrId.
1728 </result>
1729
1730 </desc>
1731 <param name="nameOrId" type="wstring" dir="in">
1732 <desc>What to search for. This can either be the UUID or the name of a virtual machine.</desc>
1733 </param>
1734 <param name="machine" type="IMachine" dir="return">
1735 <desc>Machine object, if found.</desc>
1736 </param>
1737 </method>
1738
1739 <method name="createAppliance">
1740 <desc>
1741 Creates a new appliance object, which represents an appliance in the Open Virtual Machine
1742 Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
1743 machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
1744 </desc>
1745 <param name="appliance" type="IAppliance" dir="return">
1746 <desc>New appliance.</desc>
1747 </param>
1748 </method>
1749
1750 <method name="createHardDisk">
1751 <desc>
1752 Creates a new base medium object that will use the given storage
1753 format and location for medium data.
1754
1755 Note that the actual storage unit is not created by this method. In
1756 order to do it, and before you are able to attach the created medium
1757 to virtual machines, you must call one of the following methods to
1758 allocate a format-specific storage unit at the specified location:
1759 <ul>
1760 <li><link to="IMedium::createBaseStorage"/></li>
1761 <li><link to="IMedium::createDiffStorage"/></li>
1762 </ul>
1763
1764 Some medium attributes, such as <link to="IMedium::id"/>, may
1765 remain uninitialized until the medium storage unit is successfully
1766 created by one of the above methods.
1767
1768 After the storage unit is successfully created, it will be
1769 accessible through the <link to="#findMedium"/> method and can
1770 be found in the <link to="#hardDisks"/> array.
1771
1772 The list of all storage formats supported by this VirtualBox
1773 installation can be obtained using
1774 <link to="ISystemProperties::mediumFormats"/>. If the @a format
1775 attribute is empty or @c null then the default storage format
1776 specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
1777 be used for creating a storage unit of the medium.
1778
1779 Note that the format of the location string is storage format specific.
1780 See <link to="IMedium::location"/> and IMedium for more details.
1781
1782 <result name="VBOX_E_OBJECT_NOT_FOUND">
1783 @a format identifier is invalid. See
1784 <link to="ISystemProperties::mediumFormats"/>.
1785 </result>
1786 <result name="VBOX_E_FILE_ERROR">
1787 @a location is a not valid file name (for file-based formats only).
1788 </result>
1789 </desc>
1790 <param name="format" type="wstring" dir="in">
1791 <desc>
1792 Identifier of the storage format to use for the new medium.
1793 </desc>
1794 </param>
1795 <param name="location" type="wstring" dir="in">
1796 <desc>
1797 Location of the storage unit for the new medium.
1798 </desc>
1799 </param>
1800 <param name="medium" type="IMedium" dir="return">
1801 <desc>Created medium object.</desc>
1802 </param>
1803 </method>
1804
1805 <method name="openMedium">
1806 <desc>
1807 Opens a medium from an existing storage location.
1808
1809 Once a medium has been opened, it can be passed to other VirtualBox
1810 methods, in particular to <link to="IMachine::attachDevice" />.
1811
1812 Depending on the given device type, the file at the storage location
1813 must be in one of the media formats understood by VirtualBox:
1814
1815 <ul>
1816 <li>With a "HardDisk" device type, the file must be a hard disk image
1817 in one of the formats supported by VirtualBox (see
1818 <link to="ISystemProperties::mediumFormats" />).
1819 After this method succeeds, if the medium is a base medium, it
1820 will be added to the <link to="#hardDisks"/> array attribute. </li>
1821 <li>With a "DVD" device type, the file must be an ISO 9960 CD/DVD image.
1822 After this method succeeds, the medium will be added to the
1823 <link to="#DVDImages"/> array attribute.</li>
1824 <li>With a "Floppy" device type, the file must be an RAW floppy image.
1825 After this method succeeds, the medium will be added to the
1826 <link to="#floppyImages"/> array attribute.</li>
1827 </ul>
1828
1829 After having been opened, the medium can be found by the <link to="#findMedium"/>
1830 method and can be attached to virtual machines. See <link to="IMedium" /> for more details.
1831
1832 The UUID of the newly opened medium will either be retrieved from the
1833 storage location, if the format supports it (e.g. for hard disk images),
1834 or a new UUID will be randomly generated (e.g. for ISO and RAW files).
1835 If for some reason you need to change the medium's UUID, use
1836 <link to="IMedium::setIDs" />.
1837
1838 If a differencing hard disk medium is to be opened by this method, the
1839 operation will succeed only if its parent medium and all ancestors,
1840 if any, are already known to this VirtualBox installation (for example,
1841 were opened by this method before).
1842
1843 This method attempts to guess the storage format of the specified medium
1844 by reading medium data at the specified location.
1845
1846 If @a accessMode is ReadWrite (which it should be for hard disks and floppies),
1847 the image is opened for read/write access and must have according permissions,
1848 as VirtualBox may actually write status information into the disk's metadata
1849 sections.
1850
1851 Note that write access is required for all typical hard disk usage in VirtualBox,
1852 since VirtualBox may need to write metadata such as a UUID into the image.
1853 The only exception is opening a source image temporarily for copying and
1854 cloning (see <link to="IMedium::cloneTo" /> when the image will be closed
1855 again soon.
1856
1857 The format of the location string is storage format specific. See
1858 <link to="IMedium::location"/> and IMedium for more details.
1859
1860 Prior to VirtualBox 4.0, opening a medium added it to a global media
1861 registry in the VirtualBox.xml file, which was shared between all machines
1862 and made transporting machines and their media from one host to another
1863 difficult.
1864
1865 Starting with VirtualBox 4.0, media are only added to a registry when
1866 they are attached to a machine. Machines created with VirtualBox 4.0
1867 or later can have their own media registry. As a result, a medium attached
1868 to such a machine will be remembered in that machine's XML settings file.
1869 Media attached to older machines will continue to be added to the global
1870 registry.
1871
1872 <result name="VBOX_E_FILE_ERROR">
1873 Invalid medium storage file location or could not find the medium
1874 at the specified location.
1875 </result>
1876 <result name="VBOX_E_IPRT_ERROR">
1877 Could not get medium storage format.
1878 </result>
1879 <result name="E_INVALIDARG">
1880 Invalid medium storage format.
1881 </result>
1882 <result name="VBOX_E_INVALID_OBJECT_STATE">
1883 Medium has already been added to a media registry.
1884 </result>
1885 </desc>
1886 <param name="location" type="wstring" dir="in">
1887 <desc>
1888 Location of the storage unit that contains medium data in one of
1889 the supported storage formats.
1890 </desc>
1891 </param>
1892 <param name="deviceType" type="DeviceType" dir="in">
1893 <desc>
1894 Must be one of "HardDisk", "DVD" or "Floppy".
1895 </desc>
1896 </param>
1897 <param name="accessMode" type="AccessMode" dir="in">
1898 <desc>Whether to open the image in read/write or read-only mode. For
1899 a "DVD" device type, this is ignored and read-only mode is always assumed.</desc>
1900 </param>
1901 <param name="medium" type="IMedium" dir="return">
1902 <desc>Opened medium object.</desc>
1903 </param>
1904 </method>
1905
1906 <method name="findMedium">
1907 <desc>
1908 Returns a medium of the given type that uses the given fully qualified
1909 location or UUID to store medium data.
1910
1911 The given medium must be known to this VirtualBox installation, i.e.
1912 it must be previously created by <link to="#createHardDisk"/> or opened
1913 by <link to="#openMedium"/>.
1914
1915 The search is done by comparing the value of the @a location argument to
1916 the <link to="IMedium::location"/> and <link to="IMedium::id" />
1917 attributes of each known medium.
1918
1919 On case sensitive file systems, a case sensitive comparison is performed,
1920 otherwise the case of symbols in the file path is ignored.
1921
1922 <result name="VBOX_E_OBJECT_NOT_FOUND">
1923 No medium object matching @a location found.
1924 </result>
1925 </desc>
1926 <param name="location" type="wstring" dir="in">
1927 <desc>What to search for. This can either be the UUID or the location string of an open medium.</desc>
1928 </param>
1929 <param name="type" type="DeviceType" dir="in">
1930 <desc>Device type (must be HardDisk, DVD or Floppy)</desc>
1931 </param>
1932 <param name="medium" type="IMedium" dir="return">
1933 <desc>Medium object, if found.</desc>
1934 </param>
1935 </method>
1936
1937 <method name="getGuestOSType">
1938 <desc>
1939 Returns an object describing the specified guest OS type.
1940
1941 The requested guest OS type is specified using a string which is a
1942 mnemonic identifier of the guest operating system, such as
1943 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
1944 particular virtual machine can be read or set using the
1945 <link to="IMachine::OSTypeId"/> attribute.
1946
1947 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
1948 available guest OS type objects. Each object has an
1949 <link to="IGuestOSType::id"/> attribute which contains an identifier of
1950 the guest OS this object describes.
1951
1952 <result name="E_INVALIDARG">
1953 @a id is not a valid Guest OS type.
1954 </result>
1955
1956 </desc>
1957 <param name="id" type="uuid" mod="string" dir="in">
1958 <desc>Guest OS type ID string.</desc>
1959 </param>
1960 <param name="type" type="IGuestOSType" dir="return">
1961 <desc>Guest OS type object.</desc>
1962 </param>
1963 </method>
1964
1965 <method name="createSharedFolder">
1966 <desc>
1967 Creates a new global shared folder by associating the given logical
1968 name with the given host path, adds it to the collection of shared
1969 folders and starts sharing it. Refer to the description of
1970 <link to="ISharedFolder"/> to read more about logical names.
1971 <note>
1972 In the current implementation, this operation is not
1973 implemented.
1974 </note>
1975 </desc>
1976 <param name="name" type="wstring" dir="in">
1977 <desc>Unique logical name of the shared folder.</desc>
1978 </param>
1979 <param name="hostPath" type="wstring" dir="in">
1980 <desc>Full path to the shared folder in the host file system.</desc>
1981 </param>
1982 <param name="writable" type="boolean" dir="in">
1983 <desc>Whether the share is writable or readonly</desc>
1984 </param>
1985 <param name="automount" type="boolean" dir="in">
1986 <desc>Whether the share gets automatically mounted by the guest
1987 or not.</desc>
1988 </param>
1989 </method>
1990
1991 <method name="removeSharedFolder">
1992 <desc>
1993 Removes the global shared folder with the given name previously
1994 created by <link to="#createSharedFolder"/> from the collection of
1995 shared folders and stops sharing it.
1996 <note>
1997 In the current implementation, this operation is not
1998 implemented.
1999 </note>
2000 </desc>
2001 <param name="name" type="wstring" dir="in">
2002 <desc>Logical name of the shared folder to remove.</desc>
2003 </param>
2004 </method>
2005
2006 <method name="getExtraDataKeys">
2007 <desc>
2008 Returns an array representing the global extra data keys which currently
2009 have values defined.
2010 </desc>
2011 <param name="value" type="wstring" dir="return" safearray="yes">
2012 <desc>Array of extra data keys.</desc>
2013 </param>
2014 </method>
2015
2016 <method name="getExtraData">
2017 <desc>
2018 Returns associated global extra data.
2019
2020 If the requested data @a key does not exist, this function will
2021 succeed and return an empty string in the @a value argument.
2022
2023 <result name="VBOX_E_FILE_ERROR">
2024 Settings file not accessible.
2025 </result>
2026 <result name="VBOX_E_XML_ERROR">
2027 Could not parse the settings file.
2028 </result>
2029
2030 </desc>
2031 <param name="key" type="wstring" dir="in">
2032 <desc>Name of the data key to get.</desc>
2033 </param>
2034 <param name="value" type="wstring" dir="return">
2035 <desc>Value of the requested data key.</desc>
2036 </param>
2037 </method>
2038
2039 <method name="setExtraData">
2040 <desc>
2041 Sets associated global extra data.
2042
2043 If you pass @c null or empty string as a key @a value, the given @a key
2044 will be deleted.
2045
2046 <note>
2047 Before performing the actual data change, this method will ask all
2048 registered event listener using the
2049 <link to="IExtraDataCanChangeEvent"/>
2050 notification for a permission. If one of the listeners refuses the
2051 new value, the change will not be performed.
2052 </note>
2053 <note>
2054 On success, the
2055 <link to="IExtraDataChangedEvent"/> notification
2056 is called to inform all registered listeners about a successful data
2057 change.
2058 </note>
2059
2060 <result name="VBOX_E_FILE_ERROR">
2061 Settings file not accessible.
2062 </result>
2063 <result name="VBOX_E_XML_ERROR">
2064 Could not parse the settings file.
2065 </result>
2066 <result name="E_ACCESSDENIED">
2067 Modification request refused.
2068 </result>
2069
2070 </desc>
2071 <param name="key" type="wstring" dir="in">
2072 <desc>Name of the data key to set.</desc>
2073 </param>
2074 <param name="value" type="wstring" dir="in">
2075 <desc>Value to assign to the key.</desc>
2076 </param>
2077 </method>
2078
2079 <!--method name="createDHCPServerForInterface">
2080 <desc>
2081 Creates a dhcp server settings to be used for the given interface
2082 <result name="E_INVALIDARG">
2083 Host network interface @a name already exists.
2084 </result>
2085 </desc>
2086 <param name="interface" type="IHostNetworkInterface" dir="in">
2087 <desc>Network Interface</desc>
2088 </param>
2089 <param name="server" type="IDHCPServer" dir="out">
2090 <desc>Dhcp server settings</desc>
2091 </param>
2092 </method-->
2093
2094 <method name="createDHCPServer">
2095 <desc>
2096 Creates a dhcp server settings to be used for the given internal network name
2097 <result name="E_INVALIDARG">
2098 Host network interface @a name already exists.
2099 </result>
2100 </desc>
2101 <param name="name" type="wstring" dir="in">
2102 <desc>server name</desc>
2103 </param>
2104 <param name="server" type="IDHCPServer" dir="return">
2105 <desc>Dhcp server settings</desc>
2106 </param>
2107 </method>
2108
2109 <method name="findDHCPServerByNetworkName">
2110 <desc>
2111 Searches 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
2116 </desc>
2117 <param name="name" type="wstring" dir="in">
2118 <desc>server name</desc>
2119 </param>
2120 <param name="server" type="IDHCPServer" dir="return">
2121 <desc>Dhcp server settings</desc>
2122 </param>
2123 </method>
2124
2125 <!--method name="findDHCPServerForInterface">
2126 <desc>
2127 Searches a dhcp server settings to be used for the given interface
2128 <result name="E_INVALIDARG">
2129 Host network interface @a name already exists.
2130 </result>
2131 </desc>
2132 <param name="interface" type="IHostNetworkInterface" dir="in">
2133 <desc>Network Interface</desc>
2134 </param>
2135 <param name="server" type="IDHCPServer" dir="out">
2136 <desc>Dhcp server settings</desc>
2137 </param>
2138 </method-->
2139
2140 <method name="removeDHCPServer">
2141 <desc>
2142 Removes the dhcp server settings
2143 <result name="E_INVALIDARG">
2144 Host network interface @a name already exists.
2145 </result>
2146 </desc>
2147 <param name="server" type="IDHCPServer" dir="in">
2148 <desc>Dhcp server settings to be removed</desc>
2149 </param>
2150 </method>
2151
2152
2153 <method name="checkFirmwarePresent">
2154 <desc>
2155 Check if this VirtualBox installation has a firmware
2156 of the given type available, either system-wide or per-user.
2157 Optionally, this may return a hint where this firmware can be
2158 downloaded from.
2159 </desc>
2160 <param name="firmwareType" type="FirmwareType" dir="in">
2161 <desc>
2162 Type of firmware to check.
2163 </desc>
2164 </param>
2165 <param name="version" type="wstring" dir="in">
2166 <desc>Expected version number, usually empty string (presently ignored).</desc>
2167 </param>
2168
2169 <param name="url" type="wstring" dir="out">
2170 <desc>
2171 Suggested URL to download this firmware from.
2172 </desc>
2173 </param>
2174
2175 <param name="file" type="wstring" dir="out">
2176 <desc>
2177 Filename of firmware, only valid if result == TRUE.
2178 </desc>
2179 </param>
2180
2181 <param name="result" type="boolean" dir="return">
2182 <desc>If firmware of this type and version is available.</desc>
2183 </param>
2184 </method>
2185
2186 <method name="VRDERegisterLibrary">
2187 <desc>
2188 Appends a VRDE library to this VirtualBox installation.
2189
2190 The library implements a VirtualBox Remote Desktop Extension (VRDE),
2191 which is used to remotely connect to the virtual machines.
2192
2193 The system library extension (".DLL" or ".so") must be omitted.
2194 The library must reside in the VirtualBox installation directory.
2195 </desc>
2196 <param name="name" type="wstring" dir="in">
2197 <desc>The library name.</desc>
2198 </param>
2199 </method>
2200
2201 <method name="VRDEUnregisterLibrary">
2202 <desc>
2203 Removes a VRDE library from this VirtualBox installation.
2204 </desc>
2205 <param name="name" type="wstring" dir="in">
2206 <desc>The library name.</desc>
2207 </param>
2208 </method>
2209
2210 <method name="VRDEListLibraries">
2211 <desc>
2212 List registered libraries.
2213 </desc>
2214 <param name="names" type="wstring" dir="return" safearray="yes">
2215 <desc>Array of names of the libraries.</desc>
2216 </param>
2217 </method>
2218
2219 <method name="VRDEIsLibraryRegistered">
2220 <desc>
2221 Check if the library is registered.
2222 </desc>
2223 <param name="name" type="wstring" dir="in">
2224 <desc>The library name.</desc>
2225 </param>
2226 <param name="registered" type="boolean" dir="return">
2227 <desc>Whether the library is registered.</desc>
2228 </param>
2229 </method>
2230
2231 </interface>
2232
2233 <!--
2234 // IVFSExplorer
2235 /////////////////////////////////////////////////////////////////////////
2236 -->
2237
2238 <enum
2239 name="VFSType"
2240 uuid="813999ba-b949-48a8-9230-aadc6285e2f2"
2241 >
2242 <desc>
2243 Virtual file systems supported by VFSExplorer.
2244 </desc>
2245
2246 <const name="File" value="1" />
2247 <const name="Cloud" value="2" />
2248 <const name="S3" value="3" />
2249 <const name="WebDav" value="4" />
2250 </enum>
2251
2252 <enum
2253 name="VFSFileType"
2254 uuid="714333cd-44e2-415f-a245-d378fa9b1242"
2255 >
2256 <desc>
2257 File types known by VFSExplorer.
2258 </desc>
2259
2260 <const name="Unknown" value="1" />
2261 <const name="Fifo" value="2" />
2262 <const name="DevChar" value="3" />
2263 <const name="Directory" value="4" />
2264 <const name="DevBlock" value="5" />
2265 <const name="File" value="6" />
2266 <const name="SymLink" value="7" />
2267 <const name="Socket" value="8" />
2268 <const name="WhiteOut" value="9" />
2269 </enum>
2270
2271 <interface
2272 name="IVFSExplorer" extends="$unknown"
2273 uuid="003d7f92-d38e-487f-b790-8c5e8631cb2f"
2274 wsmap="managed"
2275 >
2276 <desc>
2277 The VFSExplorer interface unifies access to different file system
2278 types. This includes local file systems as well remote file systems like
2279 S3. For a list of supported types see <link to="VFSType" />.
2280 An instance of this is returned by <link to="IAppliance::createVFSExplorer" />.
2281 </desc>
2282
2283 <attribute name="path" type="wstring" readonly="yes">
2284 <desc>Returns the current path in the virtual file system.</desc>
2285 </attribute>
2286
2287 <attribute name="type" type="VFSType" readonly="yes">
2288 <desc>Returns the file system type which is currently in use.</desc>
2289 </attribute>
2290
2291 <method name="update">
2292 <desc>Updates the internal list of files/directories from the
2293 current directory level. Use <link to="#entryList" /> to get the full list
2294 after a call to this method.</desc>
2295
2296 <param name="aProgress" type="IProgress" dir="return">
2297 <desc>Progress object to track the operation completion.</desc>
2298 </param>
2299 </method>
2300
2301 <method name="cd">
2302 <desc>Change the current directory level.</desc>
2303
2304 <param name="aDir" type="wstring" dir="in">
2305 <desc>The name of the directory to go in.</desc>
2306 </param>
2307
2308 <param name="aProgress" type="IProgress" dir="return">
2309 <desc>Progress object to track the operation completion.</desc>
2310 </param>
2311 </method>
2312
2313 <method name="cdUp">
2314 <desc>Go one directory upwards from the current directory level.</desc>
2315
2316 <param name="aProgress" type="IProgress" dir="return">
2317 <desc>Progress object to track the operation completion.</desc>
2318 </param>
2319 </method>
2320
2321 <method name="entryList">
2322 <desc>Returns a list of files/directories after a call to <link
2323 to="#update" />. The user is responsible for keeping this internal
2324 list up do date.</desc>
2325
2326 <param name="aNames" type="wstring" safearray="yes" dir="out">
2327 <desc>The list of names for the entries.</desc>
2328 </param>
2329
2330 <param name="aTypes" type="unsigned long" safearray="yes" dir="out">
2331 <desc>The list of types for the entries.</desc>
2332 </param>
2333
2334 <param name="aSizes" type="unsigned long" safearray="yes" dir="out">
2335 <desc>The list of sizes (in bytes) for the entries.</desc>
2336 </param>
2337
2338 <param name="aModes" type="unsigned long" safearray="yes" dir="out">
2339 <desc>The list of file modes (in octal form) for the entries.</desc>
2340 </param>
2341 </method>
2342
2343 <method name="exists">
2344 <desc>Checks if the given file list exists in the current directory
2345 level.</desc>
2346
2347 <param name="aNames" type="wstring" safearray="yes" dir="in">
2348 <desc>The names to check.</desc>
2349 </param>
2350
2351 <param name="aExists" type="wstring" safearray="yes" dir="return">
2352 <desc>The names which exist.</desc>
2353 </param>
2354 </method>
2355
2356 <method name="remove">
2357 <desc>Deletes the given files in the current directory level.</desc>
2358
2359 <param name="aNames" type="wstring" safearray="yes" dir="in">
2360 <desc>The names to remove.</desc>
2361 </param>
2362
2363 <param name="aProgress" type="IProgress" dir="return">
2364 <desc>Progress object to track the operation completion.</desc>
2365 </param>
2366 </method>
2367
2368 </interface>
2369
2370 <!--
2371 // IAppliance
2372 /////////////////////////////////////////////////////////////////////////
2373 -->
2374
2375 <interface
2376 name="IAppliance" extends="$unknown"
2377 uuid="7b148032-4124-4f46-b56a-b48ac1273f5a"
2378 wsmap="managed"
2379 >
2380 <desc>
2381 Represents a platform-independent appliance in OVF format. An instance of this is returned
2382 by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
2383 virtual machines within an appliance with VirtualBox.
2384
2385 The OVF standard suggests two different physical file formats:
2386
2387 <ol>
2388 <li>If the appliance is distributed as a set of files, there must be at least one XML descriptor
2389 file that conforms to the OVF standard and carries an <tt>.ovf</tt> file extension. If
2390 this descriptor file references other files such as disk images, as OVF appliances typically
2391 do, those additional files must be in the same directory as the descriptor file.</li>
2392
2393 <li>If the appliance is distributed as a single file, it must be in TAR format and have the
2394 <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
2395 files and optionally other files.
2396
2397 At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
2398 be added with a later version.</li>
2399 </ol>
2400
2401 <b>Importing</b> an OVF appliance into VirtualBox as instances of
2402 <link to="IMachine" /> involves the following sequence of API calls:
2403
2404 <ol>
2405 <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
2406 </li>
2407
2408 <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
2409 would like to import. So long as this file is syntactically valid, this will succeed
2410 and fill the appliance object with the parsed data from the OVF file.
2411 </li>
2412
2413 <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
2414 contents of the IAppliance attributes accordingly. These can be inspected by a
2415 VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
2416 user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
2417 instances of <link to="IVirtualSystemDescription" /> which represent the virtual
2418 systems (machines) in the OVF, which in turn describe the virtual hardware prescribed
2419 by the OVF (network and hardware adapters, virtual disk images, memory size and so on).
2420 The GUI can then give the user the option to confirm and/or change these suggestions.
2421 </li>
2422
2423 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2424 virtual system (machine) to override the suggestions made by the interpret() routine.
2425 </li>
2426
2427 <li>Finally, call <link to="#importMachines" /> to create virtual machines in
2428 VirtualBox as instances of <link to="IMachine" /> that match the information in the
2429 virtual system descriptions. After this call succeeded, the UUIDs of the machines created
2430 can be found in the <link to="#machines" /> array attribute.
2431 </li>
2432 </ol>
2433
2434 <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
2435
2436 <ol>
2437 <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
2438 an empty IAppliance object.
2439 </li>
2440
2441 <li>For each machine you would like to export, call <link to="IMachine::export" />
2442 with the IAppliance object you just created. Each such call creates one instance of
2443 <link to="IVirtualSystemDescription" /> inside the appliance.
2444 </li>
2445
2446 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2447 virtual system (machine) to override the suggestions made by the export() routine.
2448 </li>
2449
2450 <li>Finally, call <link to="#write" /> with a path specification to have the OVF
2451 file written.</li>
2452 </ol>
2453
2454 </desc>
2455
2456 <attribute name="path" type="wstring" readonly="yes">
2457 <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
2458 the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
2459 <link to="#write" /> (for export).
2460 This attribute is empty until one of these methods has been called.
2461 </desc>
2462 </attribute>
2463
2464 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
2465 <desc>
2466 Array of virtual disk definitions. One such description exists for each
2467 disk definition in the OVF; each string array item represents one such piece of
2468 disk information, with the information fields separated by tab (\t) characters.
2469
2470 The caller should be prepared for additional fields being appended to
2471 this string in future versions of VirtualBox and therefore check for
2472 the number of tabs in the strings returned.
2473
2474 In the current version, the following eight fields are returned per string
2475 in the array:
2476
2477 <ol>
2478 <li>Disk ID (unique string identifier given to disk)</li>
2479
2480 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
2481
2482 <li>Populated size (optional unsigned integer indicating the current size of the
2483 disk; can be approximate; -1 if unspecified)</li>
2484
2485 <li>Format (string identifying the disk format, typically
2486 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
2487
2488 <li>Reference (where to find the disk image, typically a file name; if empty,
2489 then the disk should be created on import)</li>
2490
2491 <li>Image size (optional unsigned integer indicating the size of the image,
2492 which need not necessarily be the same as the values specified above, since
2493 the image may be compressed or sparse; -1 if not specified)</li>
2494
2495 <li>Chunk size (optional unsigned integer if the image is split into chunks;
2496 presently unsupported and always -1)</li>
2497
2498 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
2499 </ol>
2500 </desc>
2501 </attribute>
2502
2503 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
2504 <desc> Array of virtual system descriptions. One such description is created
2505 for each virtual system (machine) found in the OVF.
2506 This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::export" />
2507 (for export) has been called.
2508 </desc>
2509 </attribute>
2510
2511 <attribute name="machines" type="wstring" readonly="yes" safearray="yes">
2512 <desc>
2513 Contains the UUIDs of the machines created from the information in this appliances. This is only
2514 relevant for the import case, and will only contain data after a call to <link to="#importMachines" />
2515 succeeded.
2516 </desc>
2517 </attribute>
2518
2519 <method name="read">
2520 <desc>
2521 Reads an OVF file into the appliance object.
2522
2523 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
2524 mere fact that this method returns successfully does not mean that VirtualBox supports all
2525 features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
2526 </desc>
2527 <param name="file" type="wstring" dir="in">
2528 <desc>
2529 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2530 on whether the appliance is distributed as a set of files or as a single file, respectively).
2531 </desc>
2532 </param>
2533 <param name="aProgress" type="IProgress" dir="return">
2534 <desc>Progress object to track the operation completion.</desc>
2535 </param>
2536 </method>
2537
2538 <method name="interpret">
2539 <desc>
2540 Interprets the OVF data that was read when the appliance was constructed. After
2541 calling this method, one can inspect the
2542 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
2543 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
2544 the appliance.
2545
2546 Calling this method is the second step of importing an appliance into VirtualBox;
2547 see <link to="IAppliance" /> for an overview.
2548
2549 After calling this method, one should call <link to="#getWarnings" /> to find out
2550 if problems were encountered during the processing which might later lead to
2551 errors.
2552 </desc>
2553 </method>
2554
2555 <method name="importMachines">
2556 <desc>
2557 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
2558 and other interfaces that match the information contained in the appliance as
2559 closely as possible, as represented by the import instructions in the
2560 <link to="#virtualSystemDescriptions" /> array.
2561
2562 Calling this method is the final step of importing an appliance into VirtualBox;
2563 see <link to="IAppliance" /> for an overview.
2564
2565 Since importing the appliance will most probably involve copying and converting
2566 disk images, which can take a long time, this method operates asynchronously and
2567 returns an IProgress object to allow the caller to monitor the progress.
2568
2569 After the import succeeded, the UUIDs of the IMachine instances created can be
2570 retrieved from the <link to="#machines" /> array attribute.
2571 </desc>
2572
2573 <param name="aProgress" type="IProgress" dir="return">
2574 <desc>Progress object to track the operation completion.</desc>
2575 </param>
2576 </method>
2577
2578 <method name="createVFSExplorer">
2579 <desc>Returns a <link to="IVFSExplorer" /> object for the given URI.</desc>
2580
2581 <param name="aUri" type="wstring" dir="in">
2582 <desc>The URI describing the file system to use.</desc>
2583 </param>
2584
2585 <param name="aExplorer" type="IVFSExplorer" dir="return">
2586 <desc></desc>
2587 </param>
2588 </method>
2589
2590 <method name="write">
2591 <desc>
2592 Writes the contents of the appliance exports into a new OVF file.
2593
2594 Calling this method is the final step of exporting an appliance from VirtualBox;
2595 see <link to="IAppliance" /> for an overview.
2596
2597 Since exporting the appliance will most probably involve copying and converting
2598 disk images, which can take a long time, this method operates asynchronously and
2599 returns an IProgress object to allow the caller to monitor the progress.
2600 </desc>
2601 <param name="format" type="wstring" dir="in">
2602 <desc>
2603 Output format, as a string. Currently supported formats are "ovf-0.9" and "ovf-1.0";
2604 future versions of VirtualBox may support additional formats.
2605 </desc>
2606 </param>
2607 <param name="manifest" type="boolean" dir="in">
2608 <desc>
2609 Indicate if the optional manifest file (.mf) should be written. The manifest file
2610 is used for integrity checks prior import.
2611 </desc>
2612 </param>
2613 <param name="path" type="wstring" dir="in">
2614 <desc>
2615 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2616 on whether the appliance is distributed as a set of files or as a single file, respectively).
2617 </desc>
2618 </param>
2619 <param name="progress" type="IProgress" dir="return">
2620 <desc>Progress object to track the operation completion.</desc>
2621 </param>
2622 </method>
2623
2624 <method name="getWarnings">
2625 <desc>Returns textual warnings which occurred during execution of <link to="#interpret" />.</desc>
2626
2627 <param name="aWarnings" type="wstring" dir="return" safearray="yes">
2628 <desc></desc>
2629 </param>
2630 </method>
2631
2632 </interface>
2633
2634 <enum
2635 name="VirtualSystemDescriptionType"
2636 uuid="c0f8f135-3a1d-417d-afa6-b38b95a91f90"
2637 >
2638 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
2639 a configuration value.</desc>
2640
2641 <const name="Ignore" value="1" />
2642 <const name="OS" value="2" />
2643 <const name="Name" value="3" />
2644 <const name="Product" value="4" />
2645 <const name="Vendor" value="5" />
2646 <const name="Version" value="6" />
2647 <const name="ProductUrl" value="7" />
2648 <const name="VendorUrl" value="8" />
2649 <const name="Description" value="9" />
2650 <const name="License" value="10" />
2651 <const name="Miscellaneous" value="11" />
2652 <const name="CPU" value="12" />
2653 <const name="Memory" value="13" />
2654 <const name="HardDiskControllerIDE" value="14" />
2655 <const name="HardDiskControllerSATA" value="15" />
2656 <const name="HardDiskControllerSCSI" value="16" />
2657 <const name="HardDiskControllerSAS" value="17" />
2658 <const name="HardDiskImage" value="18" />
2659 <const name="Floppy" value="19" />
2660 <const name="CDROM" value="20" />
2661 <const name="NetworkAdapter" value="21" />
2662 <const name="USBController" value="22" />
2663 <const name="SoundCard" value="23" />
2664
2665 </enum>
2666
2667 <enum
2668 name="VirtualSystemDescriptionValueType"
2669 uuid="56d9403f-3425-4118-9919-36f2a9b8c77c"
2670 >
2671 <desc>Used with <link to="IVirtualSystemDescription::getValuesByType" /> to describe the value
2672 type to fetch.</desc>
2673
2674 <const name="Reference" value="1" />
2675 <const name="Original" value="2" />
2676 <const name="Auto" value="3" />
2677 <const name="ExtraConfig" value="4" />
2678
2679 </enum>
2680
2681 <interface
2682 name="IVirtualSystemDescription" extends="$unknown"
2683 uuid="d7525e6c-531a-4c51-8e04-41235083a3d8"
2684 wsmap="managed"
2685 >
2686
2687 <desc>Represents one virtual system (machine) in an appliance. This interface is used in
2688 the <link to="IAppliance::virtualSystemDescriptions" /> array. After
2689 <link to="IAppliance::interpret" /> has been called, that array contains information
2690 about how the virtual systems described in the OVF should best be imported into
2691 VirtualBox virtual machines. See <link to="IAppliance" /> for the steps required to
2692 import an OVF into VirtualBox.
2693 </desc>
2694
2695 <attribute name="count" type="unsigned long" readonly="yes">
2696 <desc>Return the number of virtual system description entries.</desc>
2697 </attribute>
2698
2699 <method name="getDescription">
2700 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
2701 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
2702
2703 The list below identifies the value sets that are possible depending on the
2704 <link to="VirtualSystemDescriptionType" /> enum value in the array item in @a aTypes[]. In each case,
2705 the array item with the same index in @a aOvfValues[] will contain the original value as contained
2706 in the OVF file (just for informational purposes), and the corresponding item in @a aVBoxValues[]
2707 will contain a suggested value to be used for VirtualBox. Depending on the description type,
2708 the @a aExtraConfigValues[] array item may also be used.
2709
2710 <ul>
2711 <li>
2712 "OS": the guest operating system type. There must be exactly one such array item on import. The
2713 corresponding item in @a aVBoxValues[] contains the suggested guest operating system for VirtualBox.
2714 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
2715 item in @a aOvfValues[] will contain a numerical value that described the operating system in the OVF.
2716 </li>
2717 <li>
2718 "Name": the name to give to the new virtual machine. There can be at most one such array item;
2719 if none is present on import, then an automatic name will be created from the operating system
2720 type. The corresponding item im @a aOvfValues[] will contain the suggested virtual machine name
2721 from the OVF file, and @a aVBoxValues[] will contain a suggestion for a unique VirtualBox
2722 <link to="IMachine" /> name that does not exist yet.
2723 </li>
2724 <li>
2725 "Description": an arbitrary description.
2726 </li>
2727 <li>
2728 "License": the EULA section from the OVF, if present. It is the responsibility of the calling
2729 code to display such a license for agreement; the Main API does not enforce any such policy.
2730 </li>
2731 <li>
2732 Miscellaneous: reserved for future use.
2733 </li>
2734 <li>
2735 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
2736 </li>
2737 <li>
2738 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
2739 is present on import, then VirtualBox will set a meaningful default based on the operating system
2740 type.
2741 </li>
2742 <li>
2743 "HardDiskControllerIDE": an IDE hard disk controller. There can be at most two such items.
2744 An optional value in @a aOvfValues[] and @a aVBoxValues[] can be "PIIX3" or "PIIX4" to specify
2745 the type of IDE controller; this corresponds to the ResourceSubType element which VirtualBox
2746 writes into the OVF.
2747 The matching item in the @a aRefs[] array will contain an integer that items of the "Harddisk"
2748 type can use to specify which hard disk controller a virtual disk should be connected to.
2749 Note that in OVF, an IDE controller has two channels, corresponding to "master" and "slave"
2750 in traditional terminology, whereas the IDE storage controller that VirtualBox supports in
2751 its virtual machines supports four channels (primary master, primary slave, secondary master,
2752 secondary slave) and thus maps to two IDE controllers in the OVF sense.
2753 </li>
2754 <li>
2755 "HardDiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
2756 has no value in @a aOvfValues[] or @a aVBoxValues[].
2757 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
2758 </li>
2759 <li>
2760 "HardDiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
2761 The items in @a aOvfValues[] and @a aVBoxValues[] will either be "LsiLogic", "BusLogic" or
2762 "LsiLogicSas". (Note that in OVF, the LsiLogicSas controller is treated as a SCSI controller
2763 whereas VirtualBox considers it a class of storage controllers of its own; see
2764 <link to="StorageControllerType" />).
2765 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
2766 </li>
2767 <li>
2768 "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
2769 arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
2770
2771 The array item in @a aOvfValues[] will contain the file specification from the OVF file (without
2772 a path since the image file should be in the same location as the OVF file itself), whereas the
2773 item in @a aVBoxValues[] will contain a qualified path specification to where VirtualBox uses the
2774 hard disk image. This means that on import the image will be copied and converted from the
2775 "ovf" location to the "vbox" location; on export, this will be handled the other way round.
2776
2777 The matching item in the @a aExtraConfigValues[] array must contain a string of the following
2778 format: "controller=&lt;index&gt;;channel=&lt;c&gt;"
2779 In this string, &lt;index&gt; must be an integer specifying the hard disk controller to connect
2780 the image to. That number must be the index of an array item with one of the hard disk controller
2781 types (HardDiskControllerSCSI, HardDiskControllerSATA, HardDiskControllerIDE).
2782 In addition, &lt;c&gt; must specify the channel to use on that controller. For IDE controllers,
2783 this can be 0 or 1 for master or slave, respectively. For compatibility with VirtualBox versions
2784 before 3.2, the values 2 and 3 (for secondary master and secondary slave) are also supported, but
2785 no longer exported. For SATA and SCSI controllers, the channel can range from 0-29.
2786 </li>
2787 <li>
2788 "CDROM": a virtual CD-ROM drive. The matching item in @a aExtraConfigValue[] contains the same
2789 attachment information as with "HardDiskImage" items.
2790 </li>
2791 <li>
2792 "CDROM": a virtual floppy drive. The matching item in @a aExtraConfigValue[] contains the same
2793 attachment information as with "HardDiskImage" items.
2794 </li>
2795 <li>
2796 "NetworkAdapter": a network adapter. The array item in @a aVBoxValues[] will specify the hardware
2797 for the network adapter, whereas the array item in @a aExtraConfigValues[] will have a string
2798 of the "type=&lt;X&gt;" format, where &lt;X&gt; must be either "NAT" or "Bridged".
2799 </li>
2800 <li>
2801 "USBController": a USB controller. There can be at most one such item. If and only if such an
2802 item ispresent, USB support will be enabled for the new virtual machine.
2803 </li>
2804 <li>
2805 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
2806 present, sound support will be enabled for the new virtual machine. Note that the virtual
2807 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
2808 may be different from the virtual soundcard expected by the appliance.
2809 </li>
2810 </ul>
2811
2812 </desc>
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="getDescriptionByType">
2837 <desc>This is the same as <link to="#getDescription" /> except that you can specify which types
2838 should be returned.</desc>
2839
2840 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
2841 <desc></desc>
2842 </param>
2843
2844 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
2845 <desc></desc>
2846 </param>
2847
2848 <param name="aRefs" type="wstring" dir="out" safearray="yes">
2849 <desc></desc>
2850 </param>
2851
2852 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
2853 <desc></desc>
2854 </param>
2855
2856 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
2857 <desc></desc>
2858 </param>
2859
2860 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
2861 <desc></desc>
2862 </param>
2863
2864 </method>
2865
2866 <method name="getValuesByType">
2867 <desc>This is the same as <link to="#getDescriptionByType" /> except that you can specify which
2868 value types should be returned. See <link to="VirtualSystemDescriptionValueType" /> for possible
2869 values.</desc>
2870
2871 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
2872 <desc></desc>
2873 </param>
2874
2875 <param name="aWhich" type="VirtualSystemDescriptionValueType" dir="in">
2876 <desc></desc>
2877 </param>
2878
2879 <param name="aValues" type="wstring" dir="return" safearray="yes">
2880 <desc></desc>
2881 </param>
2882
2883 </method>
2884
2885 <method name="setFinalValues">
2886 <desc>
2887 This method allows the appliance's user to change the configuration for the virtual
2888 system descriptions. For each array item returned from <link to="#getDescription" />,
2889 you must pass in one boolean value and one configuration value.
2890
2891 Each item in the boolean array determines whether the particular configuration item
2892 should be enabled.
2893 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
2894 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
2895 and SoundCard.
2896
2897 For the "vbox" and "extra configuration" values, if you pass in the same arrays
2898 as returned in the aVBoxValues and aExtraConfigValues arrays from getDescription(),
2899 the configuration remains unchanged. Please see the documentation for getDescription()
2900 for valid configuration values for the individual array item types. If the
2901 corresponding item in the aEnabled array is @c false, the configuration value is ignored.
2902 </desc>
2903
2904 <param name="aEnabled" type="boolean" dir="in" safearray="yes">
2905 <desc></desc>
2906 </param>
2907
2908 <param name="aVBoxValues" type="wstring" dir="in" safearray="yes">
2909 <desc></desc>
2910 </param>
2911
2912 <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
2913 <desc></desc>
2914 </param>
2915 </method>
2916
2917 <method name="addDescription">
2918 <desc>
2919 This method adds an additional description entry to the stack of already
2920 available descriptions for this virtual system. This is handy for writing
2921 values which aren't directly supported by VirtualBox. One example would
2922 be the License type of <link to="VirtualSystemDescriptionType" />.
2923 </desc>
2924
2925 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
2926 <desc></desc>
2927 </param>
2928
2929 <param name="aVBoxValue" type="wstring" dir="in">
2930 <desc></desc>
2931 </param>
2932
2933 <param name="aExtraConfigValue" type="wstring" dir="in">
2934 <desc></desc>
2935 </param>
2936 </method>
2937 </interface>
2938
2939
2940 <!--
2941 // IMachine
2942 /////////////////////////////////////////////////////////////////////////
2943 -->
2944
2945 <interface
2946 name="IInternalMachineControl" extends="$unknown"
2947 uuid="e2da8b1a-2ad1-490e-b29e-c33a144791b6"
2948 internal="yes"
2949 wsmap="suppress"
2950 >
2951 <method name="setRemoveSavedStateFile">
2952 <desc>
2953 Updates the flag whether the saved state file is removed on a
2954 machine state change from Saved to PoweredOff.
2955 </desc>
2956 <param name="aRemove" type="boolean" dir="in"/>
2957 </method>
2958
2959 <method name="updateState">
2960 <desc>
2961 Updates the VM state.
2962 <note>
2963 This operation will also update the settings file with the correct
2964 information about the saved state file and delete this file from disk
2965 when appropriate.
2966 </note>
2967 </desc>
2968 <param name="state" type="MachineState" dir="in"/>
2969 </method>
2970
2971 <method name="getIPCId">
2972 <param name="id" type="wstring" dir="return"/>
2973 </method>
2974
2975 <method name="beginPowerUp">
2976 <desc>
2977 Tells VBoxSVC that <link to="IConsole::powerUp"/> is under ways and
2978 gives it the progress object that should be part of any pending
2979 <link to="IMachine::launchVMProcess"/> operations. The progress
2980 object may be called back to reflect an early cancelation, so some care
2981 have to be taken with respect to any cancelation callbacks. The console
2982 object will call <link to="IInternalMachineControl::endPowerUp"/>
2983 to signal the completion of the progress object.
2984 </desc>
2985 <param name="aProgress" type="IProgress" dir="in" />
2986 </method>
2987
2988 <method name="endPowerUp">
2989 <desc>
2990 Tells VBoxSVC that <link to="IConsole::powerUp"/> has completed.
2991 This method may query status information from the progress object it
2992 received in <link to="IInternalMachineControl::beginPowerUp"/> and copy
2993 it over to any in-progress <link to="IMachine::launchVMProcess"/>
2994 call in order to complete that progress object.
2995 </desc>
2996 <param name="result" type="long" dir="in"/>
2997 </method>
2998
2999 <method name="runUSBDeviceFilters">
3000 <desc>
3001 Asks the server to run USB devices filters of the associated
3002 machine against the given USB device and tell if there is
3003 a match.
3004 <note>
3005 Intended to be used only for remote USB devices. Local
3006 ones don't require to call this method (this is done
3007 implicitly by the Host and USBProxyService).
3008 </note>
3009 </desc>
3010 <param name="device" type="IUSBDevice" dir="in"/>
3011 <param name="matched" type="boolean" dir="out"/>
3012 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
3013 </method>
3014
3015 <method name="captureUSBDevice">
3016 <desc>
3017 Requests a capture of the given host USB device.
3018 When the request is completed, the VM process will
3019 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3020 notification.
3021 </desc>
3022 <param name="id" type="uuid" mod="string" dir="in"/>
3023 </method>
3024
3025 <method name="detachUSBDevice">
3026 <desc>
3027 Notification that a VM is going to detach (@a done = @c false) or has
3028 already detached (@a done = @c true) the given USB device.
3029 When the @a done = @c true request is completed, the VM process will
3030 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
3031 notification.
3032 <note>
3033 In the @a done = @c true case, the server must run its own filters
3034 and filters of all VMs but this one on the detached device
3035 as if it were just attached to the host computer.
3036 </note>
3037 </desc>
3038 <param name="id" type="uuid" mod="string" dir="in"/>
3039 <param name="done" type="boolean" dir="in"/>
3040 </method>
3041
3042 <method name="autoCaptureUSBDevices">
3043 <desc>
3044 Requests a capture all matching USB devices attached to the host.
3045 When the request is completed, the VM process will
3046 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3047 notification per every captured device.
3048 </desc>
3049 </method>
3050
3051 <method name="detachAllUSBDevices">
3052 <desc>
3053 Notification that a VM that is being powered down. The done
3054 parameter indicates whether which stage of the power down
3055 we're at. When @a done = @c false the VM is announcing its
3056 intentions, while when @a done = @c true the VM is reporting
3057 what it has done.
3058 <note>
3059 In the @a done = @c true case, the server must run its own filters
3060 and filters of all VMs but this one on all detach devices as
3061 if they were just attached to the host computer.
3062 </note>
3063 </desc>
3064 <param name="done" type="boolean" dir="in"/>
3065 </method>
3066
3067 <method name="onSessionEnd">
3068 <desc>
3069 Triggered by the given session object when the session is about
3070 to close normally.
3071 </desc>
3072 <param name="session" type="ISession" dir="in">
3073 <desc>Session that is being closed</desc>
3074 </param>
3075 <param name="progress" type="IProgress" dir="return">
3076 <desc>
3077 Used to wait until the corresponding machine is actually
3078 dissociated from the given session on the server.
3079 Returned only when this session is a direct one.
3080 </desc>
3081 </param>
3082 </method>
3083
3084 <method name="beginSavingState">
3085 <desc>
3086 Called by the VM process to inform the server it wants to
3087 save the current state and stop the VM execution.
3088 </desc>
3089 <param name="progress" type="IProgress" dir="in">
3090 <desc>
3091 Progress object created by the VM process to wait until
3092 the state is saved.
3093 </desc>
3094 </param>
3095 <param name="stateFilePath" type="wstring" dir="out">
3096 <desc>
3097 File path the VM process must save the execution state to.
3098 </desc>
3099 </param>
3100 </method>
3101
3102 <method name="endSavingState">
3103 <desc>
3104 Called by the VM process to inform the server that saving
3105 the state previously requested by #beginSavingState is either
3106 successfully finished or there was a failure.
3107
3108 <result name="VBOX_E_FILE_ERROR">
3109 Settings file not accessible.
3110 </result>
3111 <result name="VBOX_E_XML_ERROR">
3112 Could not parse the settings file.
3113 </result>
3114
3115 </desc>
3116
3117 <param name="success" type="boolean" dir="in">
3118 <desc>@c true to indicate success and @c false otherwise.
3119 </desc>
3120 </param>
3121 </method>
3122
3123 <method name="adoptSavedState">
3124 <desc>
3125 Gets called by IConsole::adoptSavedState.
3126 <result name="VBOX_E_FILE_ERROR">
3127 Invalid saved state file path.
3128 </result>
3129 </desc>
3130 <param name="savedStateFile" type="wstring" dir="in">
3131 <desc>Path to the saved state file to adopt.</desc>
3132 </param>
3133 </method>
3134
3135 <method name="beginTakingSnapshot">
3136 <desc>
3137 Called from the VM process to request from the server to perform the
3138 server-side actions of creating a snapshot (creating differencing images
3139 and the snapshot object).
3140
3141 <result name="VBOX_E_FILE_ERROR">
3142 Settings file not accessible.
3143 </result>
3144 <result name="VBOX_E_XML_ERROR">
3145 Could not parse the settings file.
3146 </result>
3147 </desc>
3148 <param name="initiator" type="IConsole" dir="in">
3149 <desc>The console object that initiated this call.</desc>
3150 </param>
3151 <param name="name" type="wstring" dir="in">
3152 <desc>Snapshot name.</desc>
3153 </param>
3154 <param name="description" type="wstring" dir="in">
3155 <desc>Snapshot description.</desc>
3156 </param>
3157 <param name="consoleProgress" type="IProgress" dir="in">
3158 <desc>
3159 Progress object created by the VM process tracking the
3160 snapshot's progress. This has the following sub-operations:
3161 <ul>
3162 <li>setting up (weight 1);</li>
3163 <li>one for each medium attachment that needs a differencing image (weight 1 each);</li>
3164 <li>another one to copy the VM state (if offline with saved state, weight is VM memory size in MB);</li>
3165 <li>another one to save the VM state (if online, weight is VM memory size in MB);</li>
3166 <li>finishing up (weight 1)</li>
3167 </ul>
3168 </desc>
3169 </param>
3170 <param name="fTakingSnapshotOnline" type="boolean" dir="in">
3171 <desc>
3172 Whether this is an online snapshot (i.e. the machine is running).
3173 </desc>
3174 </param>
3175 <param name="stateFilePath" type="wstring" dir="out">
3176 <desc>
3177 File path the VM process must save the execution state to.
3178 </desc>
3179 </param>
3180 </method>
3181
3182 <method name="endTakingSnapshot">
3183 <desc>
3184 Called by the VM process to inform the server that the snapshot
3185 previously requested by #beginTakingSnapshot is either
3186 successfully taken or there was a failure.
3187 </desc>
3188
3189 <param name="success" type="boolean" dir="in">
3190 <desc>@c true to indicate success and @c false otherwise</desc>
3191 </param>
3192 </method>
3193
3194 <method name="deleteSnapshot">
3195 <desc>
3196 Gets called by IConsole::deleteSnapshot.
3197 <result name="VBOX_E_INVALID_OBJECT_STATE">
3198 Snapshot has more than one child snapshot.
3199 </result>
3200 </desc>
3201 <param name="initiator" type="IConsole" dir="in">
3202 <desc>The console object that initiated this call.</desc>
3203 </param>
3204 <param name="id" type="uuid" mod="string" dir="in">
3205 <desc>UUID of the snapshot to delete.</desc>
3206 </param>
3207 <param name="machineState" type="MachineState" dir="out">
3208 <desc>New machine state after this operation is started.</desc>
3209 </param>
3210 <param name="progress" type="IProgress" dir="return">
3211 <desc>Progress object to track the operation completion.</desc>
3212 </param>
3213 </method>
3214
3215 <method name="finishOnlineMergeMedium">
3216 <desc>
3217 Gets called by IConsole::onlineMergeMedium.
3218 </desc>
3219 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
3220 <desc>The medium attachment which needs to be cleaned up.</desc>
3221 </param>
3222 <param name="source" type="IMedium" dir="in">
3223 <desc>Merge source medium.</desc>
3224 </param>
3225 <param name="target" type="IMedium" dir="in">
3226 <desc>Merge target medium.</desc>
3227 </param>
3228 <param name="mergeForward" type="boolean" dir="in">
3229 <desc>Merge direction.</desc>
3230 </param>
3231 <param name="parentForTarget" type="IMedium" dir="in">
3232 <desc>For forward merges: new parent for target medium.</desc>
3233 </param>
3234 <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
3235 <desc>For backward merges: list of media which need their parent UUID
3236 updated.</desc>
3237 </param>
3238 </method>
3239
3240 <method name="restoreSnapshot">
3241 <desc>
3242 Gets called by IConsole::RestoreSnapshot.
3243 </desc>
3244 <param name="initiator" type="IConsole" dir="in">
3245 <desc>The console object that initiated this call.</desc>
3246 </param>
3247 <param name="snapshot" type="ISnapshot" dir="in">
3248 <desc>The snapshot to restore the VM state from.</desc>
3249 </param>
3250 <param name="machineState" type="MachineState" dir="out">
3251 <desc>New machine state after this operation is started.</desc>
3252 </param>
3253 <param name="progress" type="IProgress" dir="return">
3254 <desc>Progress object to track the operation completion.</desc>
3255 </param>
3256 </method>
3257
3258 <method name="pullGuestProperties">
3259 <desc>
3260 Get the list of the guest properties matching a set of patterns along
3261 with their values, time stamps and flags and give responsibility for
3262 managing properties to the console.
3263 </desc>
3264 <param name="name" type="wstring" dir="out" safearray="yes">
3265 <desc>
3266 The names of the properties returned.
3267 </desc>
3268 </param>
3269 <param name="value" type="wstring" dir="out" safearray="yes">
3270 <desc>
3271 The values of the properties returned. The array entries match the
3272 corresponding entries in the @a name array.
3273 </desc>
3274 </param>
3275 <param name="timestamp" type="long long" dir="out" safearray="yes">
3276 <desc>
3277 The time stamps of the properties returned. The array entries match
3278 the corresponding entries in the @a name array.
3279 </desc>
3280 </param>
3281 <param name="flags" type="wstring" dir="out" safearray="yes">
3282 <desc>
3283 The flags of the properties returned. The array entries match the
3284 corresponding entries in the @a name array.
3285 </desc>
3286 </param>
3287 </method>
3288
3289 <method name="pushGuestProperty">
3290 <desc>
3291 Update a single guest property in IMachine.
3292 </desc>
3293 <param name="name" type="wstring" dir="in">
3294 <desc>
3295 The name of the property to be updated.
3296 </desc>
3297 </param>
3298 <param name="value" type="wstring" dir="in">
3299 <desc>
3300 The value of the property.
3301 </desc>
3302 </param>
3303 <param name="timestamp" type="long long" dir="in">
3304 <desc>
3305 The timestamp of the property.
3306 </desc>
3307 </param>
3308 <param name="flags" type="wstring" dir="in">
3309 <desc>
3310 The flags of the property.
3311 </desc>
3312 </param>
3313 </method>
3314
3315 <method name="lockMedia">
3316 <desc>
3317 Locks all media attached to the machine for writing and parents of
3318 attached differencing media (if any) for reading. This operation is
3319 atomic so that if it fails no media is actually locked.
3320
3321 This method is intended to be called when the machine is in Starting or
3322 Restoring state. The locked media will be automatically unlocked when
3323 the machine is powered off or crashed.
3324 </desc>
3325 </method>
3326 <method name="unlockMedia">
3327 <desc>
3328 Unlocks all media previously locked using
3329 <link to="IInternalMachineControl::lockMedia"/>.
3330
3331 This method is intended to be used with teleportation so that it is
3332 possible to teleport between processes on the same machine.
3333 </desc>
3334 </method>
3335 </interface>
3336
3337 <interface
3338 name="IBIOSSettings" extends="$unknown"
3339 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
3340 wsmap="managed"
3341 >
3342 <desc>
3343 The IBIOSSettings interface represents BIOS settings of the virtual
3344 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
3345 </desc>
3346 <attribute name="logoFadeIn" type="boolean">
3347 <desc>Fade in flag for BIOS logo animation.</desc>
3348 </attribute>
3349
3350 <attribute name="logoFadeOut" type="boolean">
3351 <desc>Fade out flag for BIOS logo animation.</desc>
3352 </attribute>
3353
3354 <attribute name="logoDisplayTime" type="unsigned long">
3355 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
3356 </attribute>
3357
3358 <attribute name="logoImagePath" type="wstring">
3359 <desc>
3360 Local file system path for external BIOS splash image. Empty string
3361 means the default image is shown on boot.
3362 </desc>
3363 </attribute>
3364
3365 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
3366 <desc>Mode of the BIOS boot device menu.</desc>
3367 </attribute>
3368
3369 <attribute name="ACPIEnabled" type="boolean">
3370 <desc>ACPI support flag.</desc>
3371 </attribute>
3372
3373 <attribute name="IOAPICEnabled" type="boolean">
3374 <desc>
3375 IO APIC support flag. If set, VirtualBox will provide an IO APIC
3376 and support IRQs above 15.
3377 </desc>
3378 </attribute>
3379
3380 <attribute name="timeOffset" type="long long">
3381 <desc>
3382 Offset in milliseconds from the host system time. This allows for
3383 guests running with a different system date/time than the host.
3384 It is equivalent to setting the system date/time in the BIOS except
3385 it is not an absolute value but a relative one. Guest Additions
3386 time synchronization honors this offset.
3387 </desc>
3388 </attribute>
3389
3390 <attribute name="PXEDebugEnabled" type="boolean">
3391 <desc>
3392 PXE debug logging flag. If set, VirtualBox will write extensive
3393 PXE trace information to the release log.
3394 </desc>
3395 </attribute>
3396
3397 </interface>
3398
3399 <enum name="CleanupMode"
3400 uuid="67897c50-7cca-47a9-83f6-ce8fd8eb5441">
3401 <desc>Cleanup mode, used with <link to="IMachine::unregister" />.
3402 </desc>
3403 <const name="UnregisterOnly" value="1">
3404 <desc>Unregister only the machine, but neither delete snapshots nor detach media.</desc>
3405 </const>
3406 <const name="DetachAllReturnNone" value="2">
3407 <desc>Delete all snapshots and detach all media but return none; this will keep all media registered.</desc>
3408 </const>
3409 <const name="DetachAllReturnHardDisksOnly" value="3">
3410 <desc>Delete all snapshots, detach all media and return hard disks for closing, but not removeable media.</desc>
3411 </const>
3412 <const name="Full" value="4">
3413 <desc>Delete all snapshots, detach all media and return all media for closing.</desc>
3414 </const>
3415 </enum>
3416
3417 <interface
3418 name="IMachine" extends="$unknown"
3419 uuid="cc4fec9a-3150-45df-9ee9-f00ba54d6ac3"
3420 wsmap="managed"
3421 >
3422 <desc>
3423 The IMachine interface represents a virtual machine, or guest, created
3424 in VirtualBox.
3425
3426 This interface is used in two contexts. First of all, a collection of
3427 objects implementing this interface is stored in the
3428 <link to="IVirtualBox::machines"/> attribute which lists all the virtual
3429 machines that are currently registered with this VirtualBox
3430 installation. Also, once a session has been opened for the given virtual
3431 machine (e.g. the virtual machine is running), the machine object
3432 associated with the open session can be queried from the session object;
3433 see <link to="ISession"/> for details.
3434
3435 The main role of this interface is to expose the settings of the virtual
3436 machine and provide methods to change various aspects of the virtual
3437 machine's configuration. For machine objects stored in the
3438 <link to="IVirtualBox::machines"/> collection, all attributes are
3439 read-only unless explicitly stated otherwise in individual attribute
3440 and method descriptions.
3441
3442 In order to change a machine setting, a session for this machine must be
3443 opened using one of the <link to="IMachine::lockMachine" /> or
3444 <link to="IMachine::launchVMProcess"/> methods. After the
3445 machine has been successfully locked for a session, a mutable machine object
3446 needs to be queried from the session object and then the desired settings
3447 changes can be applied to the returned object using IMachine attributes and
3448 methods. See the <link to="ISession"/> interface description for more
3449 information about sessions.
3450
3451 Note that IMachine does not provide methods to control virtual machine
3452 execution (such as start the machine, or power it down) -- these methods
3453 are grouped in a separate interface called <link to="IConsole" />.
3454
3455 <see>ISession, IConsole</see>
3456 </desc>
3457
3458 <attribute name="parent" type="IVirtualBox" readonly="yes">
3459 <desc>Associated parent object.</desc>
3460 </attribute>
3461
3462 <attribute name="accessible" type="boolean" readonly="yes">
3463 <desc>
3464 Whether this virtual machine is currently accessible or not.
3465
3466 A machine is always deemed accessible unless it is registered <i>and</i>
3467 its settings file cannot be read or parsed (either because the file itself
3468 is unavailable or has invalid XML contents).
3469
3470 Every time this property is read, the accessibility state of
3471 this machine is re-evaluated. If the returned value is @c false,
3472 the <link to="#accessError"/> property may be used to get the
3473 detailed error information describing the reason of
3474 inaccessibility, including XML error messages.
3475
3476 When the machine is inaccessible, only the following properties
3477 can be used on it:
3478 <ul>
3479 <li><link to="#parent"/></li>
3480 <li><link to="#id"/></li>
3481 <li><link to="#settingsFilePath"/></li>
3482 <li><link to="#accessible"/></li>
3483 <li><link to="#accessError"/></li>
3484 </ul>
3485
3486 An attempt to access any other property or method will return
3487 an error.
3488
3489 The only possible action you can perform on an inaccessible
3490 machine is to unregister it using the
3491 <link to="IMachine::unregister"/> call (or, to check
3492 for the accessibility state once more by querying this
3493 property).
3494
3495 <note>
3496 In the current implementation, once this property returns
3497 @c true, the machine will never become inaccessible
3498 later, even if its settings file cannot be successfully
3499 read/written any more (at least, until the VirtualBox
3500 server is restarted). This limitation may be removed in
3501 future releases.
3502 </note>
3503 </desc>
3504 </attribute>
3505
3506 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
3507 <desc>
3508 Error information describing the reason of machine
3509 inaccessibility.
3510
3511 Reading this property is only valid after the last call to
3512 <link to="#accessible"/> returned @c false (i.e. the
3513 machine is currently inaccessible). Otherwise, a @c null
3514 IVirtualBoxErrorInfo object will be returned.
3515 </desc>
3516 </attribute>
3517
3518 <attribute name="name" type="wstring">
3519 <desc>
3520 Name of the virtual machine.
3521
3522 Besides being used for human-readable identification purposes
3523 everywhere in VirtualBox, the virtual machine name is also used
3524 as a name of the machine's settings file and as a name of the
3525 subdirectory this settings file resides in. Thus, every time you
3526 change the value of this property, the settings file will be
3527 renamed once you call <link to="#saveSettings"/> to confirm the
3528 change. The containing subdirectory will be also renamed, but
3529 only if it has exactly the same name as the settings file
3530 itself prior to changing this property (for backward compatibility
3531 with previous API releases). The above implies the following
3532 limitations:
3533 <ul>
3534 <li>The machine name cannot be empty.</li>
3535 <li>The machine name can contain only characters that are valid
3536 file name characters according to the rules of the file
3537 system used to store VirtualBox configuration.</li>
3538 <li>You cannot have two or more machines with the same name
3539 if they use the same subdirectory for storing the machine
3540 settings files.</li>
3541 <li>You cannot change the name of the machine if it is running,
3542 or if any file in the directory containing the settings file
3543 is being used by another running machine or by any other
3544 process in the host operating system at a time when
3545 <link to="#saveSettings"/> is called.
3546 </li>
3547 </ul>
3548 If any of the above limitations are hit, <link to="#saveSettings"/>
3549 will return an appropriate error message explaining the exact
3550 reason and the changes you made to this machine will not be saved.
3551
3552 Starting with VirtualBox 4.0, a “.vbox” extension of the settings
3553 file is recommended, but not enforced. (Previous versions always
3554 used a generic ".xml" extension.)
3555 </desc>
3556 </attribute>
3557
3558 <attribute name="description" type="wstring">
3559 <desc>
3560 Description of the virtual machine.
3561
3562 The description attribute can contain any text and is
3563 typically used to describe the hardware and software
3564 configuration of the virtual machine in detail (i.e. network
3565 settings, versions of the installed software and so on).
3566 </desc>
3567 </attribute>
3568
3569 <attribute name="id" type="uuid" mod="string" readonly="yes">
3570 <desc>UUID of the virtual machine.</desc>
3571 </attribute>
3572
3573 <attribute name="OSTypeId" type="wstring">
3574 <desc>
3575 User-defined identifier of the Guest OS type.
3576 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
3577 an IGuestOSType object representing details about the given
3578 Guest OS type.
3579 <note>
3580 This value may differ from the value returned by
3581 <link to="IGuest::OSTypeId"/> if Guest Additions are
3582 installed to the guest OS.
3583 </note>
3584 </desc>
3585 </attribute>
3586
3587 <attribute name="HardwareVersion" type="wstring">
3588 <desc>Hardware version identifier. Internal use only for now.</desc>
3589 </attribute>
3590
3591 <attribute name="hardwareUUID" type="uuid" mod="string">
3592 <desc>
3593 The UUID presented to the guest via memory tables, hardware and guest
3594 properties. For most VMs this is the same as the @a id, but for VMs
3595 which have been cloned or teleported it may be the same as the source
3596 VM. This latter is because the guest shouldn't notice that it was
3597 cloned or teleported.
3598 </desc>
3599 </attribute>
3600
3601 <attribute name="CPUCount" type="unsigned long">
3602 <desc>Number of virtual CPUs in the VM.</desc>
3603 </attribute>
3604
3605 <attribute name="CPUHotPlugEnabled" type="boolean">
3606 <desc>
3607 This setting determines whether VirtualBox allows CPU
3608 hotplugging for this machine.</desc>
3609 </attribute>
3610
3611 <attribute name="CPUExecutionCap" type="unsigned long">
3612 <desc>
3613 Means to limit the number of CPU cycles a guest can use. The unit
3614 is percentage of host CPU cycles per second. The valid range
3615 is 1 - 100. 100 (the default) implies no limit.
3616 </desc>
3617 </attribute>
3618
3619 <attribute name="memorySize" type="unsigned long">
3620 <desc>System memory size in megabytes.</desc>
3621 </attribute>
3622
3623 <attribute name="memoryBalloonSize" type="unsigned long">
3624 <desc>Memory balloon size in megabytes.</desc>
3625 </attribute>
3626
3627 <attribute name="PageFusionEnabled" type="boolean">
3628 <desc>
3629 This setting determines whether VirtualBox allows page
3630 fusion for this machine (64 bits host only).
3631 </desc>
3632 </attribute>
3633
3634 <attribute name="VRAMSize" type="unsigned long">
3635 <desc>Video memory size in megabytes.</desc>
3636 </attribute>
3637
3638 <attribute name="accelerate3DEnabled" type="boolean" default="false">
3639 <desc>
3640 This setting determines whether VirtualBox allows this machine to make
3641 use of the 3D graphics support available on the host.</desc>
3642 </attribute>
3643
3644 <attribute name="accelerate2DVideoEnabled" type="boolean" default="false">
3645 <desc>
3646 This setting determines whether VirtualBox allows this machine to make
3647 use of the 2D video acceleration support available on the host.</desc>
3648 </attribute>
3649
3650 <attribute name="monitorCount" type="unsigned long">
3651 <desc>
3652 Number of virtual monitors.
3653 <note>
3654 Only effective on Windows XP and later guests with
3655 Guest Additions installed.
3656 </note>
3657 </desc>
3658 </attribute>
3659
3660 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
3661 <desc>Object containing all BIOS settings.</desc>
3662 </attribute>
3663
3664 <attribute name="firmwareType" type="FirmwareType">
3665 <desc>Type of firmware (such as legacy BIOS or EFI), used for initial
3666 bootstrap in this VM.</desc>
3667 </attribute>
3668
3669 <attribute name="pointingHidType" type="PointingHidType">
3670 <desc>Type of pointing HID (such as mouse or tablet) used in this VM.
3671 The default is typically "PS2Mouse" but can vary depending on the
3672 requirements of the guest operating system.</desc>
3673 </attribute>
3674
3675 <attribute name="keyboardHidType" type="KeyboardHidType">
3676 <desc>Type of keyboard HID used in this VM.
3677 The default is typically "PS2Keyboard" but can vary depending on the
3678 requirements of the guest operating system.</desc>
3679 </attribute>
3680
3681 <attribute name="hpetEnabled" type="boolean">
3682 <desc>This attribute controls if High Precision Event Timer (HPET) is
3683 enabled in this VM. Use this property if you want to provide guests
3684 with additional time source, or if guest requires HPET to function correctly.
3685 Default is false.</desc>
3686 </attribute>
3687
3688 <attribute name="chipsetType" type="ChipsetType">
3689 <desc>Chipset type used in this VM.</desc>
3690 </attribute>
3691
3692 <attribute name="snapshotFolder" type="wstring">
3693 <desc>
3694 Full path to the directory used to store snapshot data
3695 (differencing media and saved state files) of this machine.
3696
3697 The initial value of this property is
3698 <tt>&lt;</tt><link to="#settingsFilePath">
3699 path_to_settings_file</link><tt>&gt;/&lt;</tt>
3700 <link to="#id">machine_uuid</link>
3701 <tt>&gt;</tt>.
3702
3703 Currently, it is an error to try to change this property on
3704 a machine that has snapshots (because this would require to
3705 move possibly large files to a different location).
3706 A separate method will be available for this purpose later.
3707
3708 <note>
3709 Setting this property to @c null or to an empty string will restore
3710 the initial value.
3711 </note>
3712 <note>
3713 When setting this property, the specified path can be
3714 absolute (full path) or relative to the directory where the
3715 <link to="#settingsFilePath">machine settings file</link>
3716 is located. When reading this property, a full path is
3717 always returned.
3718 </note>
3719 <note>
3720 The specified path may not exist, it will be created
3721 when necessary.
3722 </note>
3723 </desc>
3724 </attribute>
3725
3726 <attribute name="VRDEServer" type="IVRDEServer" readonly="yes">
3727 <desc>VirtualBox Remote Desktop Extension (VRDE) server object.</desc>
3728 </attribute>
3729
3730 <attribute name="mediumAttachments" type="IMediumAttachment" readonly="yes" safearray="yes">
3731 <desc>Array of media attached to this machine.</desc>
3732 </attribute>
3733
3734 <attribute name="USBController" type="IUSBController" readonly="yes">
3735 <desc>
3736 Associated USB controller object.
3737
3738 <note>
3739 If USB functionality is not available in the given edition of
3740 VirtualBox, this method will set the result code to @c E_NOTIMPL.
3741 </note>
3742 </desc>
3743 </attribute>
3744
3745 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
3746 <desc>Associated audio adapter, always present.</desc>
3747 </attribute>
3748
3749 <attribute name="storageControllers" type="IStorageController" readonly="yes" safearray="yes">
3750 <desc>Array of storage controllers attached to this machine.</desc>
3751 </attribute>
3752
3753 <attribute name="settingsFilePath" type="wstring" readonly="yes">
3754 <desc>
3755 Full name of the file containing machine settings data.
3756 </desc>
3757 </attribute>
3758
3759 <attribute name="settingsModified" type="boolean" readonly="yes">
3760 <desc>
3761 Whether the settings of this machine have been modified
3762 (but neither yet saved nor discarded).
3763 <note>
3764 Reading this property is only valid on instances returned
3765 by <link to="ISession::machine"/> and on new machines
3766 created by <link to="IVirtualBox::createMachine"/> or opened
3767 by <link to="IVirtualBox::openMachine"/> but not
3768 yet registered, or on unregistered machines after calling
3769 <link to="IMachine::unregister"/>. For all other
3770 cases, the settings can never be modified.
3771 </note>
3772 <note>
3773 For newly created unregistered machines, the value of this
3774 property is always @c true until <link to="#saveSettings"/>
3775 is called (no matter if any machine settings have been
3776 changed after the creation or not). For opened machines
3777 the value is set to @c false (and then follows to normal rules).
3778 </note>
3779 </desc>
3780 </attribute>
3781
3782 <attribute name="sessionState" type="SessionState" readonly="yes">
3783 <desc>Current session state for this machine.</desc>
3784 </attribute>
3785
3786 <attribute name="sessionType" type="wstring" readonly="yes">
3787 <desc>
3788 Type of the session. If <link to="#sessionState"/> is
3789 Spawning or Locked, this attribute contains the
3790 same value as passed to the
3791 <link to="IMachine::launchVMProcess"/> method in the
3792 @a type parameter. If the session was used with
3793 <link to="IMachine::lockMachine" />, or if
3794 <link to="#sessionState"/> is SessionClosed, the value of this
3795 attribute is an empty string.
3796 </desc>
3797 </attribute>
3798
3799 <attribute name="sessionPid" type="unsigned long" readonly="yes">
3800 <desc>
3801 Identifier of the session process. This attribute contains the
3802 platform-dependent identifier of the process whose session was
3803 used with <link to="IMachine::lockMachine" /> call. The returned
3804 value is only valid if <link to="#sessionState"/> is Locked or
3805 Unlocking by the time this property is read.
3806 </desc>
3807 </attribute>
3808
3809 <attribute name="state" type="MachineState" readonly="yes">
3810 <desc>Current execution state of this machine.</desc>
3811 </attribute>
3812
3813 <attribute name="lastStateChange" type="long long" readonly="yes">
3814 <desc>
3815 Time stamp of the last execution state change,
3816 in milliseconds since 1970-01-01 UTC.
3817 </desc>
3818 </attribute>
3819
3820 <attribute name="stateFilePath" type="wstring" readonly="yes">
3821 <desc>
3822 Full path to the file that stores the execution state of
3823 the machine when it is in the <link to="MachineState_Saved"/> state.
3824 <note>
3825 When the machine is not in the Saved state, this attribute is
3826 an empty string.
3827 </note>
3828 </desc>
3829 </attribute>
3830
3831 <attribute name="logFolder" type="wstring" readonly="yes">
3832 <desc>
3833 Full path to the folder that stores a set of rotated log files
3834 recorded during machine execution. The most recent log file is
3835 named <tt>VBox.log</tt>, the previous log file is
3836 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
3837 in the current version).
3838 </desc>
3839 </attribute>
3840
3841 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
3842 <desc>
3843 Current snapshot of this machine. This is @c null if the machine
3844 currently has no snapshots. If it is not @c null, then it was
3845 set by one of <link to="IConsole::takeSnapshot" />,
3846 <link to="IConsole::deleteSnapshot" />
3847 or <link to="IConsole::restoreSnapshot" />, depending on which
3848 was called last. See <link to="ISnapshot"/> for details.
3849 </desc>
3850 </attribute>
3851
3852 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
3853 <desc>
3854 Number of snapshots taken on this machine. Zero means the
3855 machine doesn't have any snapshots.
3856 </desc>
3857 </attribute>
3858
3859 <attribute name="currentStateModified" type="boolean" readonly="yes">
3860 <desc>
3861 Returns @c true if the current state of the machine is not
3862 identical to the state stored in the current snapshot.
3863
3864 The current state is identical to the current snapshot only
3865 directly after one of the following calls are made:
3866
3867 <ul>
3868 <li><link to="IConsole::restoreSnapshot"/>
3869 </li>
3870 <li><link to="IConsole::takeSnapshot"/> (issued on a
3871 "powered off" or "saved" machine, for which
3872 <link to="#settingsModified"/> returns @c false)
3873 </li>
3874 </ul>
3875
3876 The current state remains identical until one of the following
3877 happens:
3878 <ul>
3879 <li>settings of the machine are changed</li>
3880 <li>the saved state is deleted</li>
3881 <li>the current snapshot is deleted</li>
3882 <li>an attempt to execute the machine is made</li>
3883 </ul>
3884
3885 <note>
3886 For machines that don't have snapshots, this property is
3887 always @c false.
3888 </note>
3889 </desc>
3890 </attribute>
3891
3892 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
3893 <desc>
3894 Collection of shared folders for this machine (permanent shared
3895 folders). These folders are shared automatically at machine startup
3896 and available only to the guest OS installed within this machine.
3897
3898 New shared folders are added to the collection using
3899 <link to="#createSharedFolder"/>. Existing shared folders can be
3900 removed using <link to="#removeSharedFolder"/>.
3901 </desc>
3902 </attribute>
3903
3904 <attribute name="clipboardMode" type="ClipboardMode">
3905 <desc>
3906 Synchronization mode between the host OS clipboard
3907 and the guest OS clipboard.
3908 </desc>
3909 </attribute>
3910
3911 <attribute name="guestPropertyNotificationPatterns" type="wstring">
3912 <desc>
3913 A comma-separated list of simple glob patterns. Changes to guest
3914 properties whose name matches one of the patterns will generate an
3915 <link to="IGuestPropertyChangedEvent"/> signal.
3916 </desc>
3917 </attribute>
3918
3919 <attribute name="teleporterEnabled" type="boolean">
3920 <desc>
3921 When set to @a true, the virtual machine becomes a target teleporter
3922 the next time it is powered on. This can only set to @a true when the
3923 VM is in the @a PoweredOff or @a Aborted state.
3924
3925 <!-- This property is automatically set to @a false when the VM is powered
3926 on. (bird: This doesn't work yet ) -->
3927 </desc>
3928 </attribute>
3929
3930 <attribute name="teleporterPort" type="unsigned long">
3931 <desc>
3932 The TCP port the target teleporter will listen for incoming
3933 teleportations on.
3934
3935 0 means the port is automatically selected upon power on. The actual
3936 value can be read from this property while the machine is waiting for
3937 incoming teleportations.
3938 </desc>
3939 </attribute>
3940
3941 <attribute name="teleporterAddress" type="wstring">
3942 <desc>
3943 The address the target teleporter will listen on. If set to an empty
3944 string, it will listen on all addresses.
3945 </desc>
3946 </attribute>
3947
3948 <attribute name="teleporterPassword" type="wstring">
3949 <desc>
3950 The password to check for on the target teleporter. This is just a
3951 very basic measure to prevent simple hacks and operators accidentally
3952 beaming a virtual machine to the wrong place.
3953 </desc>
3954 </attribute>
3955
3956 <attribute name="faultToleranceState" type="FaultToleranceState">
3957 <desc>
3958 Fault tolerance state; disabled, source or target.
3959 This property can be changed at any time. If you change it for a running
3960 VM, then the fault tolerance address and port must be set beforehand.
3961 </desc>
3962 </attribute>
3963
3964 <attribute name="faultTolerancePort" type="unsigned long">
3965 <desc>
3966 The TCP port the fault tolerance source or target will use for
3967 communication.
3968 </desc>
3969 </attribute>
3970
3971 <attribute name="faultToleranceAddress" type="wstring">
3972 <desc>
3973 The address the fault tolerance source or target.
3974 </desc>
3975 </attribute>
3976
3977 <attribute name="faultTolerancePassword" type="wstring">
3978 <desc>
3979 The password to check for on the standby VM. This is just a
3980 very basic measure to prevent simple hacks and operators accidentally
3981 choosing the wrong standby VM.
3982 </desc>
3983 </attribute>
3984
3985 <attribute name="faultToleranceSyncInterval" type="unsigned long">
3986 <desc>
3987 The interval in ms used for syncing the state between source and target.
3988 </desc>
3989 </attribute>
3990
3991 <attribute name="RTCUseUTC" type="boolean">
3992 <desc>
3993 When set to @a true, the RTC device of the virtual machine will run
3994 in UTC time, otherwise in local time. Especially Unix guests prefer
3995 the time in UTC.
3996 </desc>
3997 </attribute>
3998
3999 <attribute name="ioCacheEnabled" type="boolean">
4000 <desc>
4001 When set to @a true, the builtin I/O cache of the virtual machine
4002 will be enabled.
4003 </desc>
4004 </attribute>
4005
4006 <attribute name="ioCacheSize" type="unsigned long">
4007 <desc>
4008 Maximum size of the I/O cache in MB.
4009 </desc>
4010 </attribute>
4011
4012 <method name="lockMachine">
4013 <desc>
4014 Locks the machine for the given session to enable the caller
4015 to make changes to the machine or start the VM or control
4016 VM execution.
4017
4018 There are two ways to lock a machine for such uses:
4019
4020 <ul>
4021 <li>If you want to make changes to the machine settings,
4022 you must obtain an exclusive write lock on the machine
4023 by setting @a lockType to @c Write.
4024
4025 This will only succeed if no other process has locked
4026 the machine to prevent conflicting changes. Only after
4027 an exclusive write lock has been obtained using this method, one
4028 can change all VM settings or execute the VM in the process
4029 space of the session object. (Note that the latter is only of
4030 interest if you actually want to write a new front-end for
4031 virtual machines; but this API gets called internally by
4032 the existing front-ends such as VBoxHeadless and the VirtualBox
4033 GUI to acquire a write lock on the machine that they are running.)
4034
4035 On success, write-locking the machine for a session creates
4036 a second copy of the IMachine object. It is this second object
4037 upon which changes can be made; in VirtualBox terminology, the
4038 second copy is "mutable". It is only this second, mutable machine
4039 object upon which you can call methods that change the
4040 machine state. After having called this method, you can
4041 obtain this second, mutable machine object using the
4042 <link to="ISession::machine" /> attribute.
4043 </li>
4044 <li>If you only want to check the machine state or control
4045 machine execution without actually changing machine
4046 settings (e.g. to get access to VM statistics or take
4047 a snapshot or save the machine state), then set the
4048 @a lockType argument to @c Shared.
4049
4050 If no other session has obtained a lock, you will obtain an
4051 exclusive write lock as described above. However, if another
4052 session has already obtained such a lock, then a link to that
4053 existing session will be established which allows you
4054 to control that existing session.
4055
4056 To find out which type of lock was obtained, you can
4057 inspect <link to="ISession::type" />, which will have been
4058 set to either @c WriteLock or @c Shared.
4059 </li>
4060 </ul>
4061
4062 In either case, you can get access to the <link to="IConsole" />
4063 object which controls VM execution.
4064
4065 Also in all of the above cases, one must always call
4066 <link to="ISession::unlockMachine" /> to release the lock on the machine, or
4067 the machine's state will eventually be set to "Aborted".
4068
4069 To change settings on a machine, the following sequence is typically
4070 performed:
4071
4072 <ol>
4073 <li>Call this method to obtain an exclusive write lock for the current session.</li>
4074
4075 <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
4076
4077 <li>Change the settings of the machine by invoking IMachine methods.</li>
4078
4079 <li>Call <link to="IMachine::saveSettings" />.</li>
4080
4081 <li>Release the write lock by calling <link to="ISession::unlockMachine"/>.</li>
4082 </ol>
4083
4084 <result name="E_UNEXPECTED">
4085 Virtual machine not registered.
4086 </result>
4087 <result name="E_ACCESSDENIED">
4088 Process not started by OpenRemoteSession.
4089 </result>
4090 <result name="VBOX_E_INVALID_OBJECT_STATE">
4091 Session already open or being opened.
4092 </result>
4093 <result name="VBOX_E_VM_ERROR">
4094 Failed to assign machine to session.
4095 </result>
4096 </desc>
4097 <param name="session" type="ISession" dir="in">
4098 <desc>
4099 Session object for which the machine will be locked.
4100 </desc>
4101 </param>
4102 <param name="lockType" type="LockType" dir="in">
4103 <desc>
4104 If set to @c Write, then attempt to acquire an exclusive write lock or fail.
4105 If set to @c Shared, then either acquire an exclusive write lock or establish
4106 a link to an existing session.
4107 </desc>
4108 </param>
4109 </method>
4110
4111 <method name="launchVMProcess">
4112 <desc>
4113 Spawns a new process that will execute the virtual machine and obtains a shared
4114 lock on the machine for the calling session.
4115
4116 If launching the VM succeeds, the new VM process will create its own session
4117 and write-lock the machine for it, preventing conflicting changes from other
4118 processes. If the machine is already locked (because it is already running or
4119 because another session has a write lock), launching the VM process will therefore
4120 fail. Reversely, future attempts to obtain a write lock will also fail while the
4121 machine is running.
4122
4123 The caller's session object remains separate from the session opened by the new
4124 VM process. It receives its own <link to="IConsole" /> object which can be used
4125 to control machine execution, but it cannot be used to change all VM settings
4126 which would be available after a <link to="#lockMachine" /> call.
4127
4128 The caller must eventually release the session's shared lock by calling
4129 <link to="ISession::unlockMachine" /> on the local session object once this call
4130 has returned. However, the session's state (see <link to="ISession::state" />)
4131 will not return to "Unlocked" until the remote session has also unlocked
4132 the machine (i.e. the machine has stopped running).
4133
4134 Launching a VM process can take some time (a new VM is started in a new process,
4135 for which memory and other resources need to be set up). Because of this,
4136 an <link to="IProgress" /> object is returned to allow the caller to wait
4137 for this asynchronous operation to be completed. Until then, the caller's
4138 session object remains in the "Unlocked" state, and its <link to="ISession::machine" />
4139 and <link to="ISession::console" /> attributes cannot be accessed.
4140 It is recommended to use <link to="IProgress::waitForCompletion" /> or
4141 similar calls to wait for completion. Completion is signalled when the VM
4142 is powered on. If launching the VM fails, error messages can be queried
4143 via the progress object, if available.
4144
4145 The progress object will have at least 2 sub-operations. The first
4146 operation covers the period up to the new VM process calls powerUp.
4147 The subsequent operations mirror the <link to="IConsole::powerUp"/>
4148 progress object. Because <link to="IConsole::powerUp"/> may require
4149 some extra sub-operations, the <link to="IProgress::operationCount"/>
4150 may change at the completion of operation.
4151
4152 For details on the teleportation progress operation, see
4153 <link to="IConsole::powerUp"/>.
4154
4155 The @a environment argument is a string containing definitions of
4156 environment variables in the following format:
4157 @code
4158 NAME[=VALUE]\n
4159 NAME[=VALUE]\n
4160 ...
4161 @endcode
4162 where <tt>\\n</tt> is the new line character. These environment
4163 variables will be appended to the environment of the VirtualBox server
4164 process. If an environment variable exists both in the server process
4165 and in this list, the value from this list takes precedence over the
4166 server's variable. If the value of the environment variable is
4167 omitted, this variable will be removed from the resulting environment.
4168 If the environment string is @c null or empty, the server environment
4169 is inherited by the started process as is.
4170
4171 <result name="E_UNEXPECTED">
4172 Virtual machine not registered.
4173 </result>
4174 <result name="E_INVALIDARG">
4175 Invalid session type @a type.
4176 </result>
4177 <result name="VBOX_E_OBJECT_NOT_FOUND">
4178 No machine matching @a machineId found.
4179 </result>
4180 <result name="VBOX_E_INVALID_OBJECT_STATE">
4181 Session already open or being opened.
4182 </result>
4183 <result name="VBOX_E_IPRT_ERROR">
4184 Launching process for machine failed.
4185 </result>
4186 <result name="VBOX_E_VM_ERROR">
4187 Failed to assign machine to session.
4188 </result>
4189 </desc>
4190 <param name="session" type="ISession" dir="in">
4191 <desc>
4192 Client session object to which the VM process will be connected (this
4193 must be in "Unlocked" state).
4194 </desc>
4195 </param>
4196 <param name="type" type="wstring" dir="in">
4197 <desc>
4198 Front-end to use for the new VM process. The following are currently supported:
4199 <ul>
4200 <li><tt>"gui"</tt>: VirtualBox Qt GUI front-end</li>
4201 <li><tt>"headless"</tt>: VBoxHeadless (VRDE Server) front-end</li>
4202 <li><tt>"sdl"</tt>: VirtualBox SDL front-end</li>
4203 </ul>
4204 </desc>
4205 </param>
4206 <param name="environment" type="wstring" dir="in">
4207 <desc>
4208 Environment to pass to the VM process.
4209 </desc>
4210 </param>
4211 <param name="progress" type="IProgress" dir="return">
4212 <desc>Progress object to track the operation completion.</desc>
4213 </param>
4214 </method>
4215
4216 <method name="setBootOrder">
4217 <desc>
4218 Puts the given device to the specified position in
4219 the boot order.
4220
4221 To indicate that no device is associated with the given position,
4222 <link to="DeviceType_Null"/> should be used.
4223
4224 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4225
4226 <result name="E_INVALIDARG">
4227 Boot @a position out of range.
4228 </result>
4229 <result name="E_NOTIMPL">
4230 Booting from USB @a device currently not supported.
4231 </result>
4232
4233 </desc>
4234 <param name="position" type="unsigned long" dir="in">
4235 <desc>
4236 Position in the boot order (@c 1 to the total number of
4237 devices the machine can boot from, as returned by
4238 <link to="ISystemProperties::maxBootPosition"/>).
4239 </desc>
4240 </param>
4241 <param name="device" type="DeviceType" dir="in">
4242 <desc>
4243 The type of the device used to boot at the given position.
4244 </desc>
4245 </param>
4246 </method>
4247
4248 <method name="getBootOrder" const="yes">
4249 <desc>
4250 Returns the device type that occupies the specified
4251 position in the boot order.
4252
4253 @todo [remove?]
4254 If the machine can have more than one device of the returned type
4255 (such as hard disks), then a separate method should be used to
4256 retrieve the individual device that occupies the given position.
4257
4258 If here are no devices at the given position, then
4259 <link to="DeviceType_Null"/> is returned.
4260
4261 @todo getHardDiskBootOrder(), getNetworkBootOrder()
4262
4263 <result name="E_INVALIDARG">
4264 Boot @a position out of range.
4265 </result>
4266
4267 </desc>
4268 <param name="position" type="unsigned long" dir="in">
4269 <desc>
4270 Position in the boot order (@c 1 to the total number of
4271 devices the machine can boot from, as returned by
4272 <link to="ISystemProperties::maxBootPosition"/>).
4273 </desc>
4274 </param>
4275 <param name="device" type="DeviceType" dir="return">
4276 <desc>
4277 Device at the given position.
4278 </desc>
4279 </param>
4280 </method>
4281
4282 <method name="attachDevice">
4283 <desc>
4284 Attaches a device and optionally mounts a medium to the given storage
4285 controller (<link to="IStorageController" />, identified by @a name),
4286 at the indicated port and device.
4287
4288 This method is intended for managing storage devices in general while a
4289 machine is powered off. It can be used to attach and detach fixed
4290 and removeable media. The following kind of media can be attached
4291 to a machine:
4292
4293 <ul>
4294 <li>For fixed and removable media, you can pass in a medium that was
4295 previously opened using <link to="IVirtualBox::openMedium" />.
4296 </li>
4297
4298 <li>Only for storage devices supporting removable media (such as
4299 DVDs and floppies), you can also specify a null pointer to
4300 indicate an empty drive or one of the medium objects listed
4301 in the <link to="IHost::DVDDrives" /> and <link to="IHost::floppyDrives"/>
4302 arrays to indicate a host drive.
4303 For removeable devices, you can also use <link to="IMachine::mountMedium"/>
4304 to change the media while the machine is running.
4305 </li>
4306 </ul>
4307
4308 In a VM's default configuration of virtual machines, the secondary
4309 master of the IDE controller is used for a CD/DVD drive.
4310
4311 After calling this returns successfully, a new instance of
4312 <link to="IMediumAttachment"/> will appear in the machine's list of medium
4313 attachments (see <link to="IMachine::mediumAttachments"/>).
4314
4315 See <link to="IMedium"/> and <link to="IMediumAttachment"/> for more
4316 information about attaching media.
4317
4318 The specified device slot must not have a device attached to it,
4319 or this method will fail.
4320
4321 <note>
4322 You cannot attach a device to a newly created machine until
4323 this machine's settings are saved to disk using
4324 <link to="#saveSettings"/>.
4325 </note>
4326 <note>
4327 If the medium is being attached indirectly, a new differencing medium
4328 will implicitly be created for it and attached instead. If the
4329 changes made to the machine settings (including this indirect
4330 attachment) are later cancelled using <link to="#discardSettings"/>,
4331 this implicitly created differencing medium will implicitly
4332 be deleted.
4333 </note>
4334
4335 <result name="E_INVALIDARG">
4336 SATA device, SATA port, IDE port or IDE slot out of range, or
4337 file or UUID not found.
4338 </result>
4339 <result name="VBOX_E_INVALID_OBJECT_STATE">
4340 Machine must be registered before media can be attached.
4341 </result>
4342 <result name="VBOX_E_INVALID_VM_STATE">
4343 Invalid machine state.
4344 </result>
4345 <result name="VBOX_E_OBJECT_IN_USE">
4346 A medium is already attached to this or another virtual machine.
4347 </result>
4348
4349 </desc>
4350 <param name="name" type="wstring" dir="in">
4351 <desc>Name of the storage controller to attach the device to.</desc>
4352 </param>
4353 <param name="controllerPort" type="long" dir="in">
4354 <desc>Port to attach the device to. For an IDE controller, 0 specifies
4355 the primary controller and 1 specifies the secondary controller.
4356 For a SCSI controller, this must range from 0 to 15; for a SATA controller,
4357 from 0 to 29; for an SAS controller, from 0 to 7.</desc>
4358 </param>
4359 <param name="device" type="long" dir="in">
4360 <desc>Device slot in the given port to attach the device to. This is only
4361 relevant for IDE controllers, for which 0 specifies the master device and
4362 1 specifies the slave device. For all other controller types, this must
4363 be 0.</desc>
4364 </param>
4365 <param name="type" type="DeviceType" dir="in">
4366 <desc>Device type of the attached device. For media opened by
4367 <link to="IVirtualBox::openMedium" />, this must match the device type
4368 specified there.</desc>
4369 </param>
4370 <param name="medium" type="IMedium" dir="in">
4371 <desc>Medium to mount or NULL for an empty drive.</desc>
4372 </param>
4373 </method>
4374
4375 <method name="detachDevice">
4376 <desc>
4377 Detaches the device attached to a device slot of the specified bus.
4378
4379 Detaching the device from the virtual machine is deferred. This means
4380 that the medium remains associated with the machine when this method
4381 returns and gets actually de-associated only after a successful
4382 <link to="#saveSettings"/> call. See <link to="IMedium"/>
4383 for more detailed information about attaching media.
4384
4385 <note>
4386 You cannot detach a device from a running machine.
4387 </note>
4388 <note>
4389 Detaching differencing media implicitly created by <link
4390 to="#attachDevice"/> for the indirect attachment using this
4391 method will <b>not</b> implicitly delete them. The
4392 <link to="IMedium::deleteStorage"/> operation should be
4393 explicitly performed by the caller after the medium is successfully
4394 detached and the settings are saved with
4395 <link to="#saveSettings"/>, if it is the desired action.
4396 </note>
4397
4398 <result name="VBOX_E_INVALID_VM_STATE">
4399 Attempt to detach medium from a running virtual machine.
4400 </result>
4401 <result name="VBOX_E_OBJECT_NOT_FOUND">
4402 No medium attached to given slot/bus.
4403 </result>
4404 <result name="VBOX_E_NOT_SUPPORTED">
4405 Medium format does not support storage deletion.
4406 </result>
4407
4408 </desc>
4409 <param name="name" type="wstring" dir="in">
4410 <desc>Name of the storage controller to detach the medium from.</desc>
4411 </param>
4412 <param name="controllerPort" type="long" dir="in">
4413 <desc>Port number to detach the medium from.</desc>
4414 </param>
4415 <param name="device" type="long" dir="in">
4416 <desc>Device slot number to detach the medium from.</desc>
4417 </param>
4418 </method>
4419
4420 <method name="passthroughDevice">
4421 <desc>
4422 Sets the passthrough mode of an existing DVD device. Changing the
4423 setting while the VM is running is forbidden. The setting is only used
4424 if at VM start the device is configured as a host DVD drive, in all
4425 other cases it is ignored. The device must already exist; see
4426 <link to="IMachine::attachDevice"/> for how to attach a new device.
4427
4428 The @a controllerPort and @a device parameters specify the device slot and
4429 have have the same meaning as with <link to="IMachine::attachDevice" />.
4430
4431 <result name="E_INVALIDARG">
4432 SATA device, SATA port, IDE port or IDE slot out of range.
4433 </result>
4434 <result name="VBOX_E_INVALID_OBJECT_STATE">
4435 Attempt to modify an unregistered virtual machine.
4436 </result>
4437 <result name="VBOX_E_INVALID_VM_STATE">
4438 Invalid machine state.
4439 </result>
4440
4441 </desc>
4442 <param name="name" type="wstring" dir="in">
4443 <desc>Name of the storage controller.</desc>
4444 </param>
4445 <param name="controllerPort" type="long" dir="in">
4446 <desc>Storage controller port.</desc>
4447 </param>
4448 <param name="device" type="long" dir="in">
4449 <desc>Device slot in the given port.</desc>
4450 </param>
4451 <param name="passthrough" type="boolean" dir="in">
4452 <desc>New value for the passthrough setting.</desc>
4453 </param>
4454 </method>
4455
4456 <method name="mountMedium">
4457 <desc>
4458 Mounts a medium (<link to="IMedium" />, identified
4459 by the given UUID @a id) to the given storage controller
4460 (<link to="IStorageController" />, identified by @a name),
4461 at the indicated port and device. The device must already exist;
4462 see <link to="IMachine::attachDevice"/> for how to attach a new device.
4463
4464 This method is intended only for managing removable media, where the
4465 device is fixed but media is changeable at runtime (such as DVDs
4466 and floppies). It cannot be used for fixed media such as hard disks.
4467
4468 The @a controllerPort and @a device parameters specify the device slot and
4469 have have the same meaning as with <link to="IMachine::attachDevice" />.
4470
4471 The specified device slot can have a medium mounted, which will be
4472 unmounted first. Specifying a zero UUID (or an empty string) for
4473 @a medium does just an unmount.
4474
4475 See <link to="IMedium"/> for more detailed information about
4476 attaching media.
4477
4478 <result name="E_INVALIDARG">
4479 SATA device, SATA port, IDE port or IDE slot out of range.
4480 </result>
4481 <result name="VBOX_E_INVALID_OBJECT_STATE">
4482 Attempt to attach medium to an unregistered virtual machine.
4483 </result>
4484 <result name="VBOX_E_INVALID_VM_STATE">
4485 Invalid machine state.
4486 </result>
4487 <result name="VBOX_E_OBJECT_IN_USE">
4488 Medium already attached to this or another virtual machine.
4489 </result>
4490
4491 </desc>
4492 <param name="name" type="wstring" dir="in">
4493 <desc>Name of the storage controller to attach the medium to.</desc>
4494 </param>
4495 <param name="controllerPort" type="long" dir="in">
4496 <desc>Port to attach the medium to.</desc>
4497 </param>
4498 <param name="device" type="long" dir="in">
4499 <desc>Device slot in the given port to attach the medium to.</desc>
4500 </param>
4501 <param name="medium" type="IMedium" dir="in">
4502 <desc>Medium to mount or NULL for an empty drive.</desc>
4503 </param>
4504 <param name="force" type="boolean" dir="in">
4505 <desc>Allows to force unmount/mount of a medium which is locked by
4506 the device slot in the given port to attach the medium to.</desc>
4507 </param>
4508 </method>
4509
4510 <method name="getMedium" const="yes">
4511 <desc>
4512 Returns the virtual medium attached to a device slot of the specified
4513 bus.
4514
4515 Note that if the medium was indirectly attached by
4516 <link to="#mountMedium"/> to the given device slot then this
4517 method will return not the same object as passed to the
4518 <link to="#mountMedium"/> call. See <link to="IMedium"/> for
4519 more detailed information about mounting a medium.
4520
4521 <result name="VBOX_E_OBJECT_NOT_FOUND">
4522 No medium attached to given slot/bus.
4523 </result>
4524
4525 </desc>
4526 <param name="name" type="wstring" dir="in">
4527 <desc>Name of the storage controller the medium is attached to.</desc>
4528 </param>
4529 <param name="controllerPort" type="long" dir="in">
4530 <desc>Port to query.</desc>
4531 </param>
4532 <param name="device" type="long" dir="in">
4533 <desc>Device slot in the given port to query.</desc>
4534 </param>
4535 <param name="medium" type="IMedium" dir="return">
4536 <desc>Attached medium object.</desc>
4537 </param>
4538 </method>
4539
4540 <method name="getMediumAttachmentsOfController" const="yes">
4541 <desc>
4542 Returns an array of medium attachments which are attached to the
4543 the controller with the given name.
4544
4545 <result name="VBOX_E_OBJECT_NOT_FOUND">
4546 A storage controller with given name doesn't exist.
4547 </result>
4548 </desc>
4549 <param name="name" type="wstring" dir="in"/>
4550 <param name="mediumAttachments" type="IMediumAttachment" safearray="yes" dir="return"/>
4551 </method>
4552
4553 <method name="getMediumAttachment" const="yes">
4554 <desc>
4555 Returns a medium attachment which corresponds to the controller with
4556 the given name, on the given port and device slot.
4557
4558 <result name="VBOX_E_OBJECT_NOT_FOUND">
4559 No attachment exists for the given controller/port/device combination.
4560 </result>
4561 </desc>
4562 <param name="name" type="wstring" dir="in"/>
4563 <param name="controllerPort" type="long" dir="in"/>
4564 <param name="device" type="long" dir="in"/>
4565 <param name="attachment" type="IMediumAttachment" dir="return"/>
4566 </method>
4567
4568 <method name="getNetworkAdapter" const="yes">
4569 <desc>
4570 Returns the network adapter associated with the given slot.
4571 Slots are numbered sequentially, starting with zero. The total
4572 number of adapters per machine is defined by the
4573 <link to="ISystemProperties::networkAdapterCount"/> property,
4574 so the maximum slot number is one less than that property's value.
4575
4576 <result name="E_INVALIDARG">
4577 Invalid @a slot number.
4578 </result>
4579
4580 </desc>
4581 <param name="slot" type="unsigned long" dir="in"/>
4582 <param name="adapter" type="INetworkAdapter" dir="return"/>
4583 </method>
4584
4585 <method name="addStorageController">
4586 <desc>
4587 Adds a new storage controller (SCSI, SAS or SATA controller) to the
4588 machine and returns it as an instance of
4589 <link to="IStorageController" />.
4590
4591 @a name identifies the controller for subsequent calls such as
4592 <link to="#getStorageControllerByName" />,
4593 <link to="#getStorageControllerByInstance" />,
4594 <link to="#removeStorageController" />,
4595 <link to="#attachDevice" /> or <link to="#mountMedium" />.
4596
4597 After the controller has been added, you can set its exact
4598 type by setting the <link to="IStorageController::controllerType" />.
4599
4600 <result name="VBOX_E_OBJECT_IN_USE">
4601 A storage controller with given name exists already.
4602 </result>
4603 <result name="E_INVALIDARG">
4604 Invalid @a controllerType.
4605 </result>
4606 </desc>
4607 <param name="name" type="wstring" dir="in"/>
4608 <param name="connectionType" type="StorageBus" dir="in"/>
4609 <param name="controller" type="IStorageController" dir="return"/>
4610 </method>
4611
4612 <method name="getStorageControllerByName" const="yes">
4613 <desc>
4614 Returns a storage controller with the given name.
4615
4616 <result name="VBOX_E_OBJECT_NOT_FOUND">
4617 A storage controller with given name doesn't exist.
4618 </result>
4619 </desc>
4620 <param name="name" type="wstring" dir="in"/>
4621 <param name="storageController" type="IStorageController" dir="return"/>
4622 </method>
4623
4624 <method name="getStorageControllerByInstance" const="yes">
4625 <desc>
4626 Returns a storage controller with the given instance number.
4627
4628 <result name="VBOX_E_OBJECT_NOT_FOUND">
4629 A storage controller with given instance number doesn't exist.
4630 </result>
4631 </desc>
4632 <param name="instance" type="unsigned long" dir="in"/>
4633 <param name="storageController" type="IStorageController" dir="return"/>
4634 </method>
4635
4636 <method name="removeStorageController">
4637 <desc>
4638 Removes a storage controller from the machine.
4639
4640 <result name="VBOX_E_OBJECT_NOT_FOUND">
4641 A storage controller with given name doesn't exist.
4642 </result>
4643 </desc>
4644 <param name="name" type="wstring" dir="in"/>
4645 </method>
4646
4647 <method name="getSerialPort" const="yes">
4648 <desc>
4649 Returns the serial port associated with the given slot.
4650 Slots are numbered sequentially, starting with zero. The total
4651 number of serial ports per machine is defined by the
4652 <link to="ISystemProperties::serialPortCount"/> property,
4653 so the maximum slot number is one less than that property's value.
4654
4655 <result name="E_INVALIDARG">
4656 Invalid @a slot number.
4657 </result>
4658
4659 </desc>
4660 <param name="slot" type="unsigned long" dir="in"/>
4661 <param name="port" type="ISerialPort" dir="return"/>
4662 </method>
4663
4664 <method name="getParallelPort" const="yes">
4665 <desc>
4666 Returns the parallel port associated with the given slot.
4667 Slots are numbered sequentially, starting with zero. The total
4668 number of parallel ports per machine is defined by the
4669 <link to="ISystemProperties::parallelPortCount"/> property,
4670 so the maximum slot number is one less than that property's value.
4671
4672 <result name="E_INVALIDARG">
4673 Invalid @a slot number.
4674 </result>
4675
4676 </desc>
4677 <param name="slot" type="unsigned long" dir="in"/>
4678 <param name="port" type="IParallelPort" dir="return"/>
4679 </method>
4680
4681 <method name="getExtraDataKeys">
4682 <desc>
4683 Returns an array representing the machine-specific extra data keys
4684 which currently have values defined.
4685 </desc>
4686 <param name="value" type="wstring" dir="return" safearray="yes">
4687 <desc>Array of extra data keys.</desc>
4688 </param>
4689 </method>
4690
4691 <method name="getExtraData">
4692 <desc>
4693 Returns associated machine-specific extra data.
4694
4695 If the requested data @a key does not exist, this function will
4696 succeed and return an empty string in the @a value argument.
4697
4698 <result name="VBOX_E_FILE_ERROR">
4699 Settings file not accessible.
4700 </result>
4701 <result name="VBOX_E_XML_ERROR">
4702 Could not parse the settings file.
4703 </result>
4704
4705 </desc>
4706 <param name="key" type="wstring" dir="in">
4707 <desc>Name of the data key to get.</desc>
4708 </param>
4709 <param name="value" type="wstring" dir="return">
4710 <desc>Value of the requested data key.</desc>
4711 </param>
4712 </method>
4713
4714 <method name="setExtraData">
4715 <desc>
4716 Sets associated machine-specific extra data.
4717
4718 If you pass @c null or an empty string as a key @a value, the given
4719 @a key will be deleted.
4720
4721 <note>
4722 Before performing the actual data change, this method will ask all
4723 registered listeners using the
4724 <link to="IExtraDataCanChangeEvent"/>
4725 notification for a permission. If one of the listeners refuses the
4726 new value, the change will not be performed.
4727 </note>
4728 <note>
4729 On success, the
4730 <link to="IExtraDataChangedEvent"/> notification
4731 is called to inform all registered listeners about a successful data
4732 change.
4733 </note>
4734 <note>
4735 This method can be called outside the machine session and therefore
4736 it's a caller's responsibility to handle possible race conditions
4737 when several clients change the same key at the same time.
4738 </note>
4739
4740 <result name="VBOX_E_FILE_ERROR">
4741 Settings file not accessible.
4742 </result>
4743 <result name="VBOX_E_XML_ERROR">
4744 Could not parse the settings file.
4745 </result>
4746
4747 </desc>
4748 <param name="key" type="wstring" dir="in">
4749 <desc>Name of the data key to set.</desc>
4750 </param>
4751 <param name="value" type="wstring" dir="in">
4752 <desc>Value to assign to the key.</desc>
4753 </param>
4754 </method>
4755
4756 <method name="getCPUProperty" const="yes">
4757 <desc>
4758 Returns the virtual CPU boolean value of the specified property.
4759
4760 <result name="E_INVALIDARG">
4761 Invalid property.
4762 </result>
4763
4764 </desc>
4765 <param name="property" type="CPUPropertyType" dir="in">
4766 <desc>
4767 Property type to query.
4768 </desc>
4769 </param>
4770 <param name="value" type="boolean" dir="return">
4771 <desc>
4772 Property value.
4773 </desc>
4774 </param>
4775 </method>
4776
4777 <method name="setCPUProperty">
4778 <desc>
4779 Sets the virtual CPU boolean value of the specified property.
4780
4781 <result name="E_INVALIDARG">
4782 Invalid property.
4783 </result>
4784
4785 </desc>
4786 <param name="property" type="CPUPropertyType" dir="in">
4787 <desc>
4788 Property type to query.
4789 </desc>
4790 </param>
4791 <param name="value" type="boolean" dir="in">
4792 <desc>
4793 Property value.
4794 </desc>
4795 </param>
4796 </method>
4797
4798 <method name="getCPUIDLeaf" const="yes">
4799 <desc>
4800 Returns the virtual CPU cpuid information for the specified leaf.
4801
4802 Currently supported index values for cpuid:
4803 Standard CPUID leafs: 0 - 0xA
4804 Extended CPUID leafs: 0x80000000 - 0x8000000A
4805
4806 See the Intel and AMD programmer's manuals for detailed information
4807 about the cpuid instruction and its leafs.
4808 <result name="E_INVALIDARG">
4809 Invalid id.
4810 </result>
4811
4812 </desc>
4813 <param name="id" type="unsigned long" dir="in">
4814 <desc>
4815 CPUID leaf index.
4816 </desc>
4817 </param>
4818 <param name="valEax" type="unsigned long" dir="out">
4819 <desc>
4820 CPUID leaf value for register eax.
4821 </desc>
4822 </param>
4823 <param name="valEbx" type="unsigned long" dir="out">
4824 <desc>
4825 CPUID leaf value for register ebx.
4826 </desc>
4827 </param>
4828 <param name="valEcx" type="unsigned long" dir="out">
4829 <desc>
4830 CPUID leaf value for register ecx.
4831 </desc>
4832 </param>
4833 <param name="valEdx" type="unsigned long" dir="out">
4834 <desc>
4835 CPUID leaf value for register edx.
4836 </desc>
4837 </param>
4838 </method>
4839
4840 <method name="setCPUIDLeaf">
4841 <desc>
4842 Sets the virtual CPU cpuid information for the specified leaf. Note that these values
4843 are not passed unmodified. VirtualBox clears features that it doesn't support.
4844
4845 Currently supported index values for cpuid:
4846 Standard CPUID leafs: 0 - 0xA
4847 Extended CPUID leafs: 0x80000000 - 0x8000000A
4848
4849 See the Intel and AMD programmer's manuals for detailed information
4850 about the cpuid instruction and its leafs.
4851
4852 Do not use this method unless you know exactly what you're doing. Misuse can lead to
4853 random crashes inside VMs.
4854 <result name="E_INVALIDARG">
4855 Invalid id.
4856 </result>
4857
4858 </desc>
4859 <param name="id" type="unsigned long" dir="in">
4860 <desc>
4861 CPUID leaf index.
4862 </desc>
4863 </param>
4864 <param name="valEax" type="unsigned long" dir="in">
4865 <desc>
4866 CPUID leaf value for register eax.
4867 </desc>
4868 </param>
4869 <param name="valEbx" type="unsigned long" dir="in">
4870 <desc>
4871 CPUID leaf value for register ebx.
4872 </desc>
4873 </param>
4874 <param name="valEcx" type="unsigned long" dir="in">
4875 <desc>
4876 CPUID leaf value for register ecx.
4877 </desc>
4878 </param>
4879 <param name="valEdx" type="unsigned long" dir="in">
4880 <desc>
4881 CPUID leaf value for register edx.
4882 </desc>
4883 </param>
4884 </method>
4885
4886 <method name="removeCPUIDLeaf">
4887 <desc>
4888 Removes the virtual CPU cpuid leaf for the specified index
4889
4890 <result name="E_INVALIDARG">
4891 Invalid id.
4892 </result>
4893
4894 </desc>
4895 <param name="id" type="unsigned long" dir="in">
4896 <desc>
4897 CPUID leaf index.
4898 </desc>
4899 </param>
4900 </method>
4901
4902 <method name="removeAllCPUIDLeaves">
4903 <desc>
4904 Removes all the virtual CPU cpuid leaves
4905 </desc>
4906 </method>
4907
4908 <method name="getHWVirtExProperty" const="yes">
4909 <desc>
4910 Returns the value of the specified hardware virtualization boolean property.
4911
4912 <result name="E_INVALIDARG">
4913 Invalid property.
4914 </result>
4915
4916 </desc>
4917 <param name="property" type="HWVirtExPropertyType" dir="in">
4918 <desc>
4919 Property type to query.
4920 </desc>
4921 </param>
4922 <param name="value" type="boolean" dir="return">
4923 <desc>
4924 Property value.
4925 </desc>
4926 </param>
4927 </method>
4928
4929 <method name="setHWVirtExProperty">
4930 <desc>
4931 Sets a new value for the specified hardware virtualization boolean property.
4932
4933 <result name="E_INVALIDARG">
4934 Invalid property.
4935 </result>
4936
4937 </desc>
4938 <param name="property" type="HWVirtExPropertyType" dir="in">
4939 <desc>
4940 Property type to set.
4941 </desc>
4942 </param>
4943 <param name="value" type="boolean" dir="in">
4944 <desc>
4945 New property value.
4946 </desc>
4947 </param>
4948 </method>
4949
4950 <method name="saveSettings">
4951 <desc>
4952 Saves any changes to machine settings made since the session
4953 has been opened or a new machine has been created, or since the
4954 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
4955 For registered machines, new settings become visible to all
4956 other VirtualBox clients after successful invocation of this
4957 method.
4958 <note>
4959 The method sends <link to="IMachineDataChangedEvent"/>
4960 notification event after the configuration has been successfully
4961 saved (only for registered machines).
4962 </note>
4963 <note>
4964 Calling this method is only valid on instances returned
4965 by <link to="ISession::machine"/> and on new machines
4966 created by <link to="IVirtualBox::createMachine"/> but not
4967 yet registered, or on unregistered machines after calling
4968 <link to="IMachine::unregister"/>.
4969 </note>
4970
4971 <result name="VBOX_E_FILE_ERROR">
4972 Settings file not accessible.
4973 </result>
4974 <result name="VBOX_E_XML_ERROR">
4975 Could not parse the settings file.
4976 </result>
4977 <result name="E_ACCESSDENIED">
4978 Modification request refused.
4979 </result>
4980
4981 </desc>
4982 </method>
4983
4984 <method name="discardSettings">
4985 <desc>
4986 Discards any changes to the machine settings made since the session
4987 has been opened or since the last call to <link to="#saveSettings"/>
4988 or <link to="#discardSettings"/>.
4989 <note>
4990 Calling this method is only valid on instances returned
4991 by <link to="ISession::machine"/> and on new machines
4992 created by <link to="IVirtualBox::createMachine"/> or
4993 opened by <link to="IVirtualBox::openMachine"/> but not
4994 yet registered, or on unregistered machines after calling
4995 <link to="IMachine::unregister"/>.
4996 </note>
4997
4998 <result name="VBOX_E_INVALID_VM_STATE">
4999 Virtual machine is not mutable.
5000 </result>
5001
5002 </desc>
5003 </method>
5004
5005 <method name="unregister">
5006 <desc>
5007 Unregisters the machine, which must have been previously registered using
5008 <link to="IVirtualBox::registerMachine"/>, and optionally do additional
5009 cleanup before the machine is unregistered.
5010
5011 This method does not delete any files. It only changes the machine configuration and
5012 the list of registered machines in the VirtualBox object. To delete the files which
5013 belonged to the machine, including the XML file of the machine itself, call
5014 <link to="#delete"/>, optionally with the array of IMedium objects which was returned
5015 from this method.
5016
5017 How thoroughly this method cleans up the machine configuration before unregistering
5018 the machine depends on the @a cleanupMode argument.
5019
5020 <ul>
5021 <li>With "UnregisterOnly", the machine will only be unregistered, but no additional
5022 cleanup will be performed. The call will fail if the machine is in "Saved" state
5023 or has any snapshots or any media attached (see <link to="IMediumAttachment" />.
5024 It is the responsibility of the caller to delete all such configuration in this mode.
5025 In this mode, the API behaves like the former @c IVirtualBox::unregisterMachine() API
5026 which it replaces.</li>
5027 <li>With "DetachAllReturnNone", the call will succeed even if the machine is in "Saved"
5028 state or if it has snapshots or media attached. All media attached to the current machine
5029 state or in snapshots will be detached. No medium objects will be returned; all of the
5030 machine's media will remain open.</li>
5031 <li>With "DetachAllReturnHardDisksOnly", the call will behave like with "DetachAllReturnNone",
5032 except that all the hard disk medium objects which were detached from the machine will
5033 be returned as an array. This allows for quickly passing them to the <link to="#delete" />
5034 API for closing and deletion.</li>
5035 <li>With "Full", the call will behave like with "DetachAllReturnHardDisksOnly", except
5036 that all media will be returned in the array, including removeable media like DVDs and
5037 floppies. This might be useful if the user wants to inspect in detail which media were
5038 attached to the machine. Be careful when passing the media array to <link to="#delete" />
5039 in that case because users will typically want to preserve ISO and RAW image files.</li>
5040 </ul>
5041
5042 This API does not verify whether the media files returned in the array are still
5043 attached to other machines (i.e. shared between several machines). If such a shared
5044 image is passed to <link to="#delete" /> however, closing the image will fail there
5045 and the image will be silently skipped.
5046
5047 A typical implementation will use "DetachAllReturnHardDisksOnly" and then pass the
5048 resulting IMedia array to <link to="#delete"/>. This way, the machine is completely
5049 deleted with all its saved states and hard disk images, but images for removeable
5050 drives (such as ISO and RAW files) will remain on disk.
5051
5052 The call will fail if the machine is currently locked (see <link to="ISession" />).
5053 It implicitly calls <link to="#saveSettings"/> to save all current machine settings
5054 before unregistering it.
5055
5056 After successful method invocation, the <link to="IMachineRegisteredEvent"/> event
5057 is fired.
5058
5059 <note>
5060 If the given machine is inaccessible (see <link to="#accessible"/>), it
5061 will be unregistered and fully uninitialized right afterwards. As a result,
5062 the returned machine object will be unusable and an attempt to call
5063 <b>any</b> method will return the "Object not ready" error.
5064 </note>
5065
5066 <result name="VBOX_E_INVALID_OBJECT_STATE">
5067 Machine is currently locked for a session.
5068 </result>
5069 </desc>
5070
5071 <param name="cleanupMode" type="CleanupMode" dir="in">
5072 <desc>How to clean up after the machine has been unregistered.</desc>
5073 </param>
5074 <param name="aMedia" type="IMedium" safearray="yes" dir="return">
5075 <desc>List of media detached from the machine, depending on the @a cleanupMode parameter.</desc>
5076 </param>
5077 </method>
5078
5079 <method name="delete">
5080 <desc>
5081 Deletes the files associated with this machine from disk. If medium objects are passed
5082 in with the @a aMedia argument, they are closed and, if closing was successful, their
5083 storage files are deleted as well. For convenience, this array of media files can be
5084 the same as the one returned from a previous <link to="#unregister" /> call.
5085
5086 This method must only be called on machines which are either write-locked (i.e. on instances
5087 returned by <link to="ISession::machine"/>) or on unregistered machines (i.e. not yet
5088 registered machines created by <link to="IVirtualBox::createMachine"/> or opened by
5089 <link to="IVirtualBox::openMachine"/>, or after having called <link to="#unregister"/>).
5090
5091 The following files will be deleted by this method:
5092 <ul>
5093 <li>If <link to="#unregister" /> had been previously called with a @a cleanupMode
5094 argument other than "UnregisterOnly", this will delete all saved state files that
5095 the machine had in use; possibly one if the machine was in "Saved" state and one
5096 for each online snapshot that the machine had.</li>
5097 <li>On each medium object passed in the @a aMedia array, this will call
5098 <link to="IMedium::close" />. If that succeeds, this will attempt to delete the
5099 medium's storage on disk. Since the close() call will fail if the medium is still
5100 in use, e.g. because it is still attached to a second machine; in that case the
5101 storage will not be deleted.</li>
5102 <li>Finally, the machine's own XML file will be deleted.</li>
5103 </ul>
5104
5105 Since deleting large disk image files can be a time-consuming I/O operation, this
5106 method operates asynchronously and returns an IProgress object to allow the caller
5107 to monitor the progress. There will be one sub-operation for each file that is
5108 being deleted (saved state or medium storage file).
5109
5110 <note>
5111 <link to="#settingsModified"/> will return @c true after this
5112 method successfully returns.
5113 </note>
5114
5115 <result name="VBOX_E_INVALID_VM_STATE">
5116 Machine is registered but not write-locked.
5117 </result>
5118 <result name="VBOX_E_IPRT_ERROR">
5119 Could not delete the settings file.
5120 </result>
5121 </desc>
5122 <param name="aMedia" type="IMedium" safearray="yes" dir="in">
5123 <desc>List of media to be closed and whose storage files will be deleted.</desc>
5124 </param>
5125 <param name="aProgress" type="IProgress" dir="return">
5126 <desc>Progress object to track the operation completion.</desc>
5127 </param>
5128 </method>
5129
5130 <method name="export">
5131 <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
5132 steps required to export VirtualBox machines to OVF.
5133 </desc>
5134
5135 <param name="aAppliance" type="IAppliance" dir="in">
5136 <desc>Appliance to export this machine to.</desc>
5137 </param>
5138 <param name="location" type="wstring" dir="in">
5139 <desc>The target location.</desc>
5140 </param>
5141 <param name="aDescription" type="IVirtualSystemDescription" dir="return">
5142 <desc>VirtualSystemDescription object which is created for this machine.</desc>
5143 </param>
5144 </method >
5145
5146 <method name="findSnapshot">
5147 <desc>
5148 Returns a snapshot of this machine with the given name or UUID.
5149
5150 Returns a snapshot of this machine with the given UUID.
5151 A @c null argument can be used to obtain the first snapshot
5152 taken on this machine. This is useful if you want to traverse
5153 the whole tree of snapshots starting from the root.
5154
5155 <result name="VBOX_E_OBJECT_NOT_FOUND">
5156 Virtual machine has no snapshots or snapshot not found.
5157 </result>
5158
5159 </desc>
5160 <param name="nameOrId" type="wstring" dir="in">
5161 <desc>What to search for. Name or UUID of the snapshot to find</desc>
5162 </param>
5163 <param name="snapshot" type="ISnapshot" dir="return">
5164 <desc>Snapshot object with the given name.</desc>
5165 </param>
5166 </method>
5167
5168 <method name="createSharedFolder">
5169 <desc>
5170 Creates a new permanent shared folder by associating the given logical
5171 name with the given host path, adds it to the collection of shared
5172 folders and starts sharing it. Refer to the description of
5173 <link to="ISharedFolder"/> to read more about logical names.
5174
5175 <result name="VBOX_E_OBJECT_IN_USE">
5176 Shared folder already exists.
5177 </result>
5178 <result name="VBOX_E_FILE_ERROR">
5179 Shared folder @a hostPath not accessible.
5180 </result>
5181
5182 </desc>
5183 <param name="name" type="wstring" dir="in">
5184 <desc>Unique logical name of the shared folder.</desc>
5185 </param>
5186 <param name="hostPath" type="wstring" dir="in">
5187 <desc>Full path to the shared folder in the host file system.</desc>
5188 </param>
5189 <param name="writable" type="boolean" dir="in">
5190 <desc>Whether the share is writable or readonly.</desc>
5191 </param>
5192 <param name="automount" type="boolean" dir="in">
5193 <desc>Whether the share gets automatically mounted by the guest
5194 or not.</desc>
5195 </param>
5196 </method>
5197
5198 <method name="removeSharedFolder">
5199 <desc>
5200 Removes the permanent shared folder with the given name previously
5201 created by <link to="#createSharedFolder"/> from the collection of
5202 shared folders and stops sharing it.
5203
5204 <result name="VBOX_E_INVALID_VM_STATE">
5205 Virtual machine is not mutable.
5206 </result>
5207 <result name="VBOX_E_OBJECT_NOT_FOUND">
5208 Shared folder @a name does not exist.
5209 </result>
5210
5211 </desc>
5212 <param name="name" type="wstring" dir="in">
5213 <desc>Logical name of the shared folder to remove.</desc>
5214 </param>
5215 </method>
5216
5217 <method name="canShowConsoleWindow">
5218 <desc>
5219 Returns @c true if the VM console process can activate the
5220 console window and bring it to foreground on the desktop of
5221 the host PC.
5222 <note>
5223 This method will fail if a session for this machine is not
5224 currently open.
5225 </note>
5226
5227 <result name="VBOX_E_INVALID_VM_STATE">
5228 Machine session is not open.
5229 </result>
5230
5231 </desc>
5232 <param name="canShow" type="boolean" dir="return">
5233 <desc>
5234 @c true if the console window can be shown and @c false otherwise.
5235 </desc>
5236 </param>
5237 </method>
5238
5239 <method name="showConsoleWindow">
5240 <desc>
5241 Activates the console window and brings it to foreground on
5242 the desktop of the host PC. Many modern window managers on
5243 many platforms implement some sort of focus stealing
5244 prevention logic, so that it may be impossible to activate
5245 a window without the help of the currently active
5246 application. In this case, this method will return a non-zero
5247 identifier that represents the top-level window of the VM
5248 console process. The caller, if it represents a currently
5249 active process, is responsible to use this identifier (in a
5250 platform-dependent manner) to perform actual window
5251 activation.
5252 <note>
5253 This method will fail if a session for this machine is not
5254 currently open.
5255 </note>
5256
5257 <result name="VBOX_E_INVALID_VM_STATE">
5258 Machine session is not open.
5259 </result>
5260
5261 </desc>
5262 <param name="winId" type="long long" dir="return">
5263 <desc>
5264 Platform-dependent identifier of the top-level VM console
5265 window, or zero if this method has performed all actions
5266 necessary to implement the <i>show window</i> semantics for
5267 the given platform and/or VirtualBox front-end.
5268 </desc>
5269 </param>
5270 </method>
5271
5272 <method name="getGuestProperty" const="yes">
5273 <desc>
5274 Reads an entry from the machine's guest property store.
5275
5276 <result name="VBOX_E_INVALID_VM_STATE">
5277 Machine session is not open.
5278 </result>
5279
5280 </desc>
5281 <param name="name" type="wstring" dir="in">
5282 <desc>
5283 The name of the property to read.
5284 </desc>
5285 </param>
5286 <param name="value" type="wstring" dir="out">
5287 <desc>
5288 The value of the property. If the property does not exist then this
5289 will be empty.
5290 </desc>
5291 </param>
5292 <param name="timestamp" type="long long" dir="out">
5293 <desc>
5294 The time at which the property was last modified, as seen by the
5295 server process.
5296 </desc>
5297 </param>
5298 <param name="flags" type="wstring" dir="out">
5299 <desc>
5300 Additional property parameters, passed as a comma-separated list of
5301 "name=value" type entries.
5302 </desc>
5303 </param>
5304 </method>
5305
5306 <method name="getGuestPropertyValue" const="yes">
5307 <desc>
5308 Reads a value from the machine's guest property store.
5309
5310 <result name="VBOX_E_INVALID_VM_STATE">
5311 Machine session is not open.
5312 </result>
5313
5314 </desc>
5315 <param name="property" type="wstring" dir="in">
5316 <desc>
5317 The name of the property to read.
5318 </desc>
5319 </param>
5320 <param name="value" type="wstring" dir="return">
5321 <desc>
5322 The value of the property. If the property does not exist then this
5323 will be empty.
5324 </desc>
5325 </param>
5326 </method>
5327
5328 <method name="getGuestPropertyTimestamp" const="yes">
5329 <desc>
5330 Reads a property timestamp from the machine's guest property store.
5331
5332 <result name="VBOX_E_INVALID_VM_STATE">
5333 Machine session is not open.
5334 </result>
5335
5336 </desc>
5337 <param name="property" type="wstring" dir="in">
5338 <desc>
5339 The name of the property to read.
5340 </desc>
5341 </param>
5342 <param name="value" type="long long" dir="return">
5343 <desc>
5344 The timestamp. If the property does not exist then this will be
5345 empty.
5346 </desc>
5347 </param>
5348 </method>
5349
5350 <method name="setGuestProperty">
5351 <desc>
5352 Sets, changes or deletes an entry in the machine's guest property
5353 store.
5354
5355 <result name="E_ACCESSDENIED">
5356 Property cannot be changed.
5357 </result>
5358 <result name="E_INVALIDARG">
5359 Invalid @a flags.
5360 </result>
5361 <result name="VBOX_E_INVALID_VM_STATE">
5362 Virtual machine is not mutable or session not open.
5363 </result>
5364 <result name="VBOX_E_INVALID_OBJECT_STATE">
5365 Cannot set transient property when machine not running.
5366 </result>
5367
5368 </desc>
5369 <param name="property" type="wstring" dir="in">
5370 <desc>
5371 The name of the property to set, change or delete.
5372 </desc>
5373 </param>
5374 <param name="value" type="wstring" dir="in">
5375 <desc>
5376 The new value of the property to set, change or delete. If the
5377 property does not yet exist and value is non-empty, it will be
5378 created. If the value is @c null or empty, the property will be
5379 deleted if it exists.
5380 </desc>
5381 </param>
5382 <param name="flags" type="wstring" dir="in">
5383 <desc>
5384 Additional property parameters, passed as a comma-separated list of
5385 "name=value" type entries.
5386 </desc>
5387 </param>
5388 </method>
5389
5390 <method name="setGuestPropertyValue">
5391 <desc>
5392 Sets, changes or deletes a value in the machine's guest property
5393 store. The flags field will be left unchanged or created empty for a
5394 new property.
5395
5396 <result name="E_ACCESSDENIED">
5397 Property cannot be changed.
5398 </result>
5399 <result name="VBOX_E_INVALID_VM_STATE">
5400 Virtual machine is not mutable or session not open.
5401 </result>
5402 <result name="VBOX_E_INVALID_OBJECT_STATE">
5403 Cannot set transient property when machine not running.
5404 </result>
5405 </desc>
5406
5407 <param name="property" type="wstring" dir="in">
5408 <desc>
5409 The name of the property to set, change or delete.
5410 </desc>
5411 </param>
5412 <param name="value" type="wstring" dir="in">
5413 <desc>
5414 The new value of the property to set, change or delete. If the
5415 property does not yet exist and value is non-empty, it will be
5416 created. If the value is @c null or empty, the property will be
5417 deleted if it exists.
5418 </desc>
5419 </param>
5420 </method>
5421
5422 <method name="enumerateGuestProperties">
5423 <desc>
5424 Return a list of the guest properties matching a set of patterns along
5425 with their values, time stamps and flags.
5426 </desc>
5427 <param name="patterns" type="wstring" dir="in">
5428 <desc>
5429 The patterns to match the properties against, separated by '|'
5430 characters. If this is empty or @c null, all properties will match.
5431 </desc>
5432 </param>
5433 <param name="name" type="wstring" dir="out" safearray="yes">
5434 <desc>
5435 The names of the properties returned.
5436 </desc>
5437 </param>
5438 <param name="value" type="wstring" dir="out" safearray="yes">
5439 <desc>
5440 The values of the properties returned. The array entries match the
5441 corresponding entries in the @a name array.
5442 </desc>
5443 </param>
5444 <param name="timestamp" type="long long" dir="out" safearray="yes">
5445 <desc>
5446 The time stamps of the properties returned. The array entries match
5447 the corresponding entries in the @a name array.
5448 </desc>
5449 </param>
5450 <param name="flags" type="wstring" dir="out" safearray="yes">
5451 <desc>
5452 The flags of the properties returned. The array entries match the
5453 corresponding entries in the @a name array.
5454 </desc>
5455 </param>
5456 </method>
5457
5458 <method name="querySavedGuestSize">
5459 <desc>
5460 Returns the guest dimensions from the saved state.
5461 </desc>
5462 <param name="screenId" type="unsigned long" dir="in">
5463 <desc>
5464 Saved guest screen to query info from.
5465 </desc>
5466 </param>
5467 <param name="width" type="unsigned long" dir="out">
5468 <desc>
5469 Guest width at the time of the saved state was taken.
5470 </desc>
5471 </param>
5472 <param name="height" type="unsigned long" dir="out">
5473 <desc>
5474 Guest height at the time of the saved state was taken.
5475 </desc>
5476 </param>
5477 </method>
5478
5479 <method name="querySavedThumbnailSize">
5480 <desc>
5481 Returns size in bytes and dimensions in pixels of a saved thumbnail bitmap from saved state.
5482 </desc>
5483 <param name="screenId" type="unsigned long" dir="in">
5484 <desc>
5485 Saved guest screen to query info from.
5486 </desc>
5487 </param>
5488 <param name="size" type="unsigned long" dir="out">
5489 <desc>
5490 Size of buffer required to store the bitmap.
5491 </desc>
5492 </param>
5493 <param name="width" type="unsigned long" dir="out">
5494 <desc>
5495 Bitmap width.
5496 </desc>
5497 </param>
5498 <param name="height" type="unsigned long" dir="out">
5499 <desc>
5500 Bitmap height.
5501 </desc>
5502 </param>
5503 </method>
5504
5505 <method name="readSavedThumbnailToArray">
5506 <desc>
5507 Thumbnail is retrieved to an array of bytes in uncompressed 32-bit BGRA or RGBA format.
5508 </desc>
5509 <param name="screenId" type="unsigned long" dir="in">
5510 <desc>
5511 Saved guest screen to read from.
5512 </desc>
5513 </param>
5514 <param name="BGR" type="boolean" dir="in">
5515 <desc>
5516 How to order bytes in the pixel. A pixel consists of 4 bytes. If this parameter is true, then
5517 bytes order is: B, G, R, 0xFF. If this parameter is false, then bytes order is: R, G, B, 0xFF.
5518 </desc>
5519 </param>
5520 <param name="width" type="unsigned long" dir="out">
5521 <desc>
5522 Bitmap width.
5523 </desc>
5524 </param>
5525 <param name="height" type="unsigned long" dir="out">
5526 <desc>
5527 Bitmap height.
5528 </desc>
5529 </param>
5530 <param name="data" type="octet" safearray="yes" dir="return">
5531 <desc>
5532 Array with resulting bitmap data.
5533 </desc>
5534 </param>
5535 </method>
5536
5537 <method name="readSavedThumbnailPNGToArray">
5538 <desc>
5539 Thumbnail in PNG format is retrieved to an array of bytes.
5540 </desc>
5541 <param name="screenId" type="unsigned long" dir="in">
5542 <desc>
5543 Saved guest screen to read from.
5544 </desc>
5545 </param>
5546 <param name="width" type="unsigned long" dir="out">
5547 <desc>
5548 Image width.
5549 </desc>
5550 </param>
5551 <param name="height" type="unsigned long" dir="out">
5552 <desc>
5553 Image height.
5554 </desc>
5555 </param>
5556 <param name="data" type="octet" dir="return" safearray="yes">
5557 <desc>
5558 Array with resulting PNG data.
5559 </desc>
5560 </param>
5561 </method>
5562
5563 <method name="querySavedScreenshotPNGSize">
5564 <desc>
5565 Returns size in bytes and dimensions of a saved PNG image of screenshot from saved state.
5566 </desc>
5567 <param name="screenId" type="unsigned long" dir="in">
5568 <desc>
5569 Saved guest screen to query info from.
5570 </desc>
5571 </param>
5572 <param name="size" type="unsigned long" dir="out">
5573 <desc>
5574 Size of buffer required to store the PNG binary data.
5575 </desc>
5576 </param>
5577 <param name="width" type="unsigned long" dir="out">
5578 <desc>
5579 Image width.
5580 </desc>
5581 </param>
5582 <param name="height" type="unsigned long" dir="out">
5583 <desc>
5584 Image height.
5585 </desc>
5586 </param>
5587 </method>
5588
5589 <method name="readSavedScreenshotPNGToArray">
5590 <desc>
5591 Screenshot in PNG format is retrieved to an array of bytes.
5592 </desc>
5593 <param name="screenId" type="unsigned long" dir="in">
5594 <desc>
5595 Saved guest screen to read from.
5596 </desc>
5597 </param>
5598 <param name="width" type="unsigned long" dir="out">
5599 <desc>
5600 Image width.
5601 </desc>
5602 </param>
5603 <param name="height" type="unsigned long" dir="out">
5604 <desc>
5605 Image height.
5606 </desc>
5607 </param>
5608 <param name="data" type="octet" dir="return" safearray="yes">
5609 <desc>
5610 Array with resulting PNG data.
5611 </desc>
5612 </param>
5613 </method>
5614
5615 <method name="hotPlugCPU">
5616 <desc>
5617 Plugs a CPU into the machine.
5618 </desc>
5619 <param name="cpu" type="unsigned long" dir="in">
5620 <desc>
5621 The CPU id to insert.
5622 </desc>
5623 </param>
5624 </method>
5625
5626 <method name="hotUnplugCPU">
5627 <desc>
5628 Removes a CPU from the machine.
5629 </desc>
5630 <param name="cpu" type="unsigned long" dir="in">
5631 <desc>
5632 The CPU id to remove.
5633 </desc>
5634 </param>
5635 </method>
5636
5637 <method name="getCPUStatus">
5638 <desc>
5639 Returns the current status of the given CPU.
5640 </desc>
5641 <param name="cpu" type="unsigned long" dir="in">
5642 <desc>
5643 The CPU id to check for.
5644 </desc>
5645 </param>
5646 <param name="attached" type="boolean" dir="return">
5647 <desc>
5648 Status of the CPU.
5649 </desc>
5650 </param>
5651 </method>
5652
5653 <method name="queryLogFilename">
5654 <desc>
5655 Queries for the VM log file name of an given index. Returns an empty
5656 string if a log file with that index doesn't exists.
5657 </desc>
5658 <param name="idx" type="unsigned long" dir="in">
5659 <desc>
5660 Which log file name to query. 0=current log file.
5661 </desc>
5662 </param>
5663 <param name="filename" type="wstring" dir="return">
5664 <desc>
5665 On return the full path to the log file or an empty string on error.
5666 </desc>
5667 </param>
5668 </method>
5669
5670 <method name="readLog">
5671 <desc>
5672 Reads the VM log file. The chunk size is limited, so even if you
5673 ask for a big piece there might be less data returned.
5674 </desc>
5675 <param name="idx" type="unsigned long" dir="in">
5676 <desc>
5677 Which log file to read. 0=current log file.
5678 </desc>
5679 </param>
5680 <param name="offset" type="long long" dir="in">
5681 <desc>
5682 Offset in the log file.
5683 </desc>
5684 </param>
5685 <param name="size" type="long long" dir="in">
5686 <desc>
5687 Chunk size to read in the log file.
5688 </desc>
5689 </param>
5690 <param name="data" type="octet" dir="return" safearray="yes">
5691 <desc>
5692 Data read from the log file. A data size of 0 means end of file
5693 if the requested chunk size was not 0. This is the unprocessed
5694 file data, i.e. the line ending style depends on the platform of
5695 the system the server is running on.
5696 </desc>
5697 </param>
5698 </method>
5699 </interface>
5700
5701 <!--
5702 // IConsole
5703 /////////////////////////////////////////////////////////////////////////
5704 -->
5705
5706 <interface
5707 name="IVRDEServerInfo" extends="$unknown"
5708 uuid="714434a1-58c3-4aab-9049-7652c5df113b"
5709 wsmap="struct"
5710 >
5711 <desc>
5712 Contains information about the remote desktop (VRDE) server capabilities and status.
5713 This is used in the <link to="IConsole::VRDEServerInfo" /> attribute.
5714 </desc>
5715
5716 <attribute name="active" type="boolean" readonly="yes">
5717 <desc>
5718 Whether the remote desktop connection is active.
5719 </desc>
5720 </attribute>
5721
5722 <attribute name="port" type="long" readonly="yes">
5723 <desc>
5724 VRDE server port number. If this property is equal to <tt>0</tt>, then
5725 the VRDE server failed to start, usually because there are no free IP
5726 ports to bind to. If this property is equal to <tt>-1</tt>, then the VRDE
5727 server has not yet been started.
5728 </desc>
5729 </attribute>
5730
5731 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
5732 <desc>
5733 How many times a client connected.
5734 </desc>
5735 </attribute>
5736
5737 <attribute name="beginTime" type="long long" readonly="yes">
5738 <desc>
5739 When the last connection was established, in milliseconds since 1970-01-01 UTC.
5740 </desc>
5741 </attribute>
5742
5743 <attribute name="endTime" type="long long" readonly="yes">
5744 <desc>
5745 When the last connection was terminated or the current time, if
5746 connection is still active, in milliseconds since 1970-01-01 UTC.
5747 </desc>
5748 </attribute>
5749
5750 <attribute name="bytesSent" type="long long" readonly="yes">
5751 <desc>
5752 How many bytes were sent in last or current, if still active, connection.
5753 </desc>
5754 </attribute>
5755
5756 <attribute name="bytesSentTotal" type="long long" readonly="yes">
5757 <desc>
5758 How many bytes were sent in all connections.
5759 </desc>
5760 </attribute>
5761
5762 <attribute name="bytesReceived" type="long long" readonly="yes">
5763 <desc>
5764 How many bytes were received in last or current, if still active, connection.
5765 </desc>
5766 </attribute>
5767
5768 <attribute name="bytesReceivedTotal" type="long long" readonly="yes">
5769 <desc>
5770 How many bytes were received in all connections.
5771 </desc>
5772 </attribute>
5773
5774 <attribute name="user" type="wstring" readonly="yes">
5775 <desc>
5776 Login user name supplied by the client.
5777 </desc>
5778 </attribute>
5779
5780 <attribute name="domain" type="wstring" readonly="yes">
5781 <desc>
5782 Login domain name supplied by the client.
5783 </desc>
5784 </attribute>
5785
5786 <attribute name="clientName" type="wstring" readonly="yes">
5787 <desc>
5788 The client name supplied by the client.
5789 </desc>
5790 </attribute>
5791
5792 <attribute name="clientIP" type="wstring" readonly="yes">
5793 <desc>
5794 The IP address of the client.
5795 </desc>
5796 </attribute>
5797
5798 <attribute name="clientVersion" type="unsigned long" readonly="yes">
5799 <desc>
5800 The client software version number.
5801 </desc>
5802 </attribute>
5803
5804 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
5805 <desc>
5806 Public key exchange method used when connection was established.
5807 Values: 0 - RDP4 public key exchange scheme.
5808 1 - X509 certificates were sent to client.
5809 </desc>
5810 </attribute>
5811
5812 </interface>
5813
5814 <interface
5815 name="IConsole" extends="$unknown"
5816 uuid="3c4a453e-d27b-44a2-b59d-dda6e1835e57"
5817 wsmap="managed"
5818 >
5819 <desc>
5820 The IConsole interface represents an interface to control virtual
5821 machine execution.
5822
5823 A console object gets created when a machine has been locked for a
5824 particular session (client process) using <link to="IMachine::lockMachine" />
5825 or <link to="IMachine::launchVMProcess"/>. The console object can
5826 then be found in the session's <link to="ISession::console" /> attribute.
5827
5828 Methods of the IConsole interface allow the caller to query the current
5829 virtual machine execution state, pause the machine or power it down, save
5830 the machine state or take a snapshot, attach and detach removable media
5831 and so on.
5832
5833 <see>ISession</see>
5834 </desc>
5835
5836 <attribute name="machine" type="IMachine" readonly="yes">
5837 <desc>
5838 Machine object for this console session.
5839 <note>
5840 This is a convenience property, it has the same value as
5841 <link to="ISession::machine"/> of the corresponding session
5842 object.
5843 </note>
5844 </desc>
5845 </attribute>
5846
5847 <attribute name="state" type="MachineState" readonly="yes">
5848 <desc>
5849 Current execution state of the machine.
5850 <note>
5851 This property always returns the same value as the corresponding
5852 property of the IMachine object for this console session.
5853 For the process that owns (executes) the VM, this is the
5854 preferable way of querying the VM state, because no IPC
5855 calls are made.
5856 </note>
5857 </desc>
5858 </attribute>
5859
5860 <attribute name="guest" type="IGuest" readonly="yes">
5861 <desc>Guest object.</desc>
5862 </attribute>
5863
5864 <attribute name="keyboard" type="IKeyboard" readonly="yes">
5865 <desc>
5866 Virtual keyboard object.
5867 <note>
5868 If the machine is not running, any attempt to use
5869 the returned object will result in an error.
5870 </note>
5871 </desc>
5872 </attribute>
5873
5874 <attribute name="mouse" type="IMouse" readonly="yes">
5875 <desc>
5876 Virtual mouse object.
5877 <note>
5878 If the machine is not running, any attempt to use
5879 the returned object will result in an error.
5880 </note>
5881 </desc>
5882 </attribute>
5883
5884 <attribute name="display" type="IDisplay" readonly="yes">
5885 <desc>Virtual display object.
5886 <note>
5887 If the machine is not running, any attempt to use
5888 the returned object will result in an error.
5889 </note>
5890 </desc>
5891 </attribute>
5892
5893 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
5894 <desc>Debugging interface.</desc>
5895 </attribute>
5896
5897 <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
5898 <desc>
5899 Collection of USB devices currently attached to the virtual
5900 USB controller.
5901 <note>
5902 The collection is empty if the machine is not running.
5903 </note>
5904 </desc>
5905 </attribute>
5906
5907 <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
5908 <desc>
5909 List of USB devices currently attached to the remote VRDE client.
5910 Once a new device is physically attached to the remote host computer,
5911 it appears in this list and remains there until detached.
5912 </desc>
5913 </attribute>
5914
5915 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
5916 <desc>
5917 Collection of shared folders for the current session. These folders
5918 are called transient shared folders because they are available to the
5919 guest OS running inside the associated virtual machine only for the
5920 duration of the session (as opposed to
5921 <link to="IMachine::sharedFolders"/> which represent permanent shared
5922 folders). When the session is closed (e.g. the machine is powered down),
5923 these folders are automatically discarded.
5924
5925 New shared folders are added to the collection using
5926 <link to="#createSharedFolder"/>. Existing shared folders can be
5927 removed using <link to="#removeSharedFolder"/>.
5928 </desc>
5929 </attribute>
5930
5931 <attribute name="VRDEServerInfo" type="IVRDEServerInfo" readonly="yes">
5932 <desc>
5933 Interface that provides information on Remote Desktop Extension (VRDE) connection.
5934 </desc>
5935 </attribute>
5936
5937 <attribute name="eventSource" type="IEventSource" readonly="yes">
5938 <desc>
5939 Event source for console events.
5940 </desc>
5941 </attribute>
5942
5943 <method name="powerUp">
5944 <desc>
5945 Starts the virtual machine execution using the current machine
5946 state (that is, its current execution state, current settings and
5947 current storage devices).
5948
5949 <note>
5950 This method is only useful for front-ends that want to actually
5951 execute virtual machines in their own process (like the VirtualBox
5952 or VBoxSDL front-ends). Unless you are intending to write such a
5953 front-end, do not call this method. If you simply want to
5954 start virtual machine execution using one of the existing front-ends
5955 (for example the VirtualBox GUI or headless server), use
5956 <link to="IMachine::launchVMProcess"/> instead; these
5957 front-ends will power up the machine automatically for you.
5958 </note>
5959
5960 If the machine is powered off or aborted, the execution will
5961 start from the beginning (as if the real hardware were just
5962 powered on).
5963
5964 If the machine is in the <link to="MachineState_Saved"/> state,
5965 it will continue its execution the point where the state has
5966 been saved.
5967
5968 If the machine <link to="IMachine::teleporterEnabled"/> property is
5969 enabled on the machine being powered up, the machine will wait for an
5970 incoming teleportation in the <link to="MachineState_TeleportingIn"/>
5971 state. The returned progress object will have at least three
5972 operations where the last three are defined as: (1) powering up and
5973 starting TCP server, (2) waiting for incoming teleportations, and
5974 (3) perform teleportation. These operations will be reflected as the
5975 last three operations of the progress objected returned by
5976 <link to="IMachine::launchVMProcess"/> as well.
5977
5978 <see>#saveState</see>
5979
5980 <result name="VBOX_E_INVALID_VM_STATE">
5981 Virtual machine already running.
5982 </result>
5983 <result name="VBOX_E_HOST_ERROR">
5984 Host interface does not exist or name not set.
5985 </result>
5986 <result name="VBOX_E_FILE_ERROR">
5987 Invalid saved state file.
5988 </result>
5989 </desc>
5990 <param name="progress" type="IProgress" dir="return">
5991 <desc>Progress object to track the operation completion.</desc>
5992 </param>
5993 </method>
5994
5995 <method name="powerUpPaused">
5996 <desc>
5997 Identical to powerUp except that the VM will enter the
5998 <link to="MachineState_Paused"/> state, instead of
5999 <link to="MachineState_Running"/>.
6000
6001 <see>#powerUp</see>
6002 <result name="VBOX_E_INVALID_VM_STATE">
6003 Virtual machine already running.
6004 </result>
6005 <result name="VBOX_E_HOST_ERROR">
6006 Host interface does not exist or name not set.
6007 </result>
6008 <result name="VBOX_E_FILE_ERROR">
6009 Invalid saved state file.
6010 </result>
6011 </desc>
6012 <param name="progress" type="IProgress" dir="return">
6013 <desc>Progress object to track the operation completion.</desc>
6014 </param>
6015 </method>
6016
6017 <method name="powerDown">
6018 <desc>
6019 Initiates the power down procedure to stop the virtual machine
6020 execution.
6021
6022 The completion of the power down procedure is tracked using the returned
6023 IProgress object. After the operation is complete, the machine will go
6024 to the PoweredOff state.
6025 <result name="VBOX_E_INVALID_VM_STATE">
6026 Virtual machine must be Running, Paused or Stuck to be powered down.
6027 </result>
6028 </desc>
6029 <param name="progress" type="IProgress" dir="return">
6030 <desc>Progress object to track the operation completion.</desc>
6031 </param>
6032 </method>
6033
6034 <method name="reset">
6035 <desc>Resets the virtual machine.
6036 <result name="VBOX_E_INVALID_VM_STATE">
6037 Virtual machine not in Running state.
6038 </result>
6039 <result name="VBOX_E_VM_ERROR">
6040 Virtual machine error in reset operation.
6041 </result>
6042 </desc>
6043 </method>
6044
6045 <method name="pause">
6046 <desc>Pauses the virtual machine execution.
6047 <result name="VBOX_E_INVALID_VM_STATE">
6048 Virtual machine not in Running state.
6049 </result>
6050 <result name="VBOX_E_VM_ERROR">
6051 Virtual machine error in suspend operation.
6052 </result>
6053 </desc>
6054 </method>
6055
6056 <method name="resume">
6057 <desc>Resumes the virtual machine execution.
6058 <result name="VBOX_E_INVALID_VM_STATE">
6059 Virtual machine not in Paused state.
6060 </result>
6061 <result name="VBOX_E_VM_ERROR">
6062 Virtual machine error in resume operation.
6063 </result>
6064 </desc>
6065 </method>
6066
6067 <method name="powerButton">
6068 <desc>Sends the ACPI power button event to the guest.
6069 <result name="VBOX_E_INVALID_VM_STATE">
6070 Virtual machine not in Running state.
6071 </result>
6072 <result name="VBOX_E_PDM_ERROR">
6073 Controlled power off failed.
6074 </result>
6075 </desc>
6076 </method>
6077
6078 <method name="sleepButton">
6079 <desc>Sends the ACPI sleep button event to the guest.
6080 <result name="VBOX_E_INVALID_VM_STATE">
6081 Virtual machine not in Running state.
6082 </result>
6083 <result name="VBOX_E_PDM_ERROR">
6084 Sending sleep button event failed.
6085 </result>
6086 </desc>
6087 </method>
6088
6089 <method name="getPowerButtonHandled">
6090 <desc>Checks if the last power button event was handled by guest.
6091 <result name="VBOX_E_PDM_ERROR">
6092 Checking if the event was handled by the guest OS failed.
6093 </result>
6094 </desc>
6095 <param name="handled" type="boolean" dir="return"/>
6096 </method>
6097
6098 <method name="getGuestEnteredACPIMode">
6099 <desc>Checks if the guest entered the ACPI mode G0 (working) or
6100 G1 (sleeping). If this method returns @c false, the guest will
6101 most likely not respond to external ACPI events.
6102 <result name="VBOX_E_INVALID_VM_STATE">
6103 Virtual machine not in Running state.
6104 </result>
6105 </desc>
6106 <param name="entered" type="boolean" dir="return"/>
6107 </method>
6108
6109 <method name="saveState">
6110 <desc>
6111 Saves the current execution state of a running virtual machine
6112 and stops its execution.
6113
6114 After this operation completes, the machine will go to the
6115 Saved state. Next time it is powered up, this state will
6116 be restored and the machine will continue its execution from
6117 the place where it was saved.
6118
6119 This operation differs from taking a snapshot to the effect
6120 that it doesn't create new differencing media. Also, once
6121 the machine is powered up from the state saved using this method,
6122 the saved state is deleted, so it will be impossible to return
6123 to this state later.
6124
6125 <note>
6126 On success, this method implicitly calls
6127 <link to="IMachine::saveSettings"/> to save all current machine
6128 settings (including runtime changes to the DVD medium, etc.).
6129 Together with the impossibility to change any VM settings when it is
6130 in the Saved state, this guarantees adequate hardware
6131 configuration of the machine when it is restored from the saved
6132 state file.
6133 </note>
6134
6135 <note>
6136 The machine must be in the Running or Paused state, otherwise
6137 the operation will fail.
6138 </note>
6139 <result name="VBOX_E_INVALID_VM_STATE">
6140 Virtual machine state neither Running nor Paused.
6141 </result>
6142 <result name="VBOX_E_FILE_ERROR">
6143 Failed to create directory for saved state file.
6144 </result>
6145
6146 <see><link to="#takeSnapshot"/></see>
6147 </desc>
6148 <param name="progress" type="IProgress" dir="return">
6149 <desc>Progress object to track the operation completion.</desc>
6150 </param>
6151 </method>
6152
6153 <method name="adoptSavedState">
6154 <desc>
6155 Associates the given saved state file to the virtual machine.
6156
6157 On success, the machine will go to the Saved state. Next time it is
6158 powered up, it will be restored from the adopted saved state and
6159 continue execution from the place where the saved state file was
6160 created.
6161
6162 The specified saved state file path may be absolute or relative to the
6163 folder the VM normally saves the state to (usually,
6164 <link to="IMachine::snapshotFolder"/>).
6165
6166 <note>
6167 It's a caller's responsibility to make sure the given saved state
6168 file is compatible with the settings of this virtual machine that
6169 represent its virtual hardware (memory size, storage disk configuration
6170 etc.). If there is a mismatch, the behavior of the virtual machine
6171 is undefined.
6172 </note>
6173 <result name="VBOX_E_INVALID_VM_STATE">
6174 Virtual machine state neither PoweredOff nor Aborted.
6175 </result>
6176 </desc>
6177 <param name="savedStateFile" type="wstring" dir="in">
6178 <desc>Path to the saved state file to adopt.</desc>
6179 </param>
6180 </method>
6181
6182 <method name="discardSavedState">
6183 <desc>
6184 Forcibly resets the machine to "Powered Off" state if it is
6185 currently in the "Saved" state (previously created by <link to="#saveState"/>).
6186 Next time the machine is powered up, a clean boot will occur.
6187 <note>
6188 This operation is equivalent to resetting or powering off
6189 the machine without doing a proper shutdown of the guest
6190 operating system; as with resetting a running phyiscal
6191 computer, it can can lead to data loss.
6192 </note>
6193 If @a fRemoveFile is @c true, the file in the machine directory
6194 into which the machine state was saved is also deleted. If
6195 this is @c false, then the state can be recovered and later
6196 re-inserted into a machine using <link to="#adoptSavedState" />.
6197 The location of the file can be found in the
6198 <link to="IMachine::stateFilePath" /> attribute.
6199 <result name="VBOX_E_INVALID_VM_STATE">
6200 Virtual machine not in state Saved.
6201 </result>
6202 </desc>
6203 <param name="fRemoveFile" type="boolean" dir="in" >
6204 <desc>Whether to also remove the saved state file.</desc>
6205 </param>
6206 </method>
6207
6208 <method name="getDeviceActivity">
6209 <desc>
6210 Gets the current activity type of a given device or device group.
6211 <result name="E_INVALIDARG">
6212 Invalid device type.
6213 </result>
6214 </desc>
6215 <param name="type" type="DeviceType" dir="in"/>
6216 <param name="activity" type="DeviceActivity" dir="return"/>
6217 </method>
6218
6219 <method name="attachUSBDevice">
6220 <desc>
6221 Attaches a host USB device with the given UUID to the
6222 USB controller of the virtual machine.
6223
6224 The device needs to be in one of the following states:
6225 <link to="USBDeviceState_Busy"/>,
6226 <link to="USBDeviceState_Available"/> or
6227 <link to="USBDeviceState_Held"/>,
6228 otherwise an error is immediately returned.
6229
6230 When the device state is
6231 <link to="USBDeviceState_Busy">Busy</link>, an error may also
6232 be returned if the host computer refuses to release it for some reason.
6233
6234 <see>IUSBController::deviceFilters, USBDeviceState</see>
6235 <result name="VBOX_E_INVALID_VM_STATE">
6236 Virtual machine state neither Running nor Paused.
6237 </result>
6238 <result name="VBOX_E_PDM_ERROR">
6239 Virtual machine does not have a USB controller.
6240 </result>
6241 </desc>
6242 <param name="id" type="uuid" mod="string" dir="in">
6243 <desc>UUID of the host USB device to attach.</desc>
6244 </param>
6245 </method>
6246
6247 <method name="detachUSBDevice">
6248 <desc>
6249 Detaches an USB device with the given UUID from the USB controller
6250 of the virtual machine.
6251
6252 After this method succeeds, the VirtualBox server re-initiates
6253 all USB filters as if the device were just physically attached
6254 to the host, but filters of this machine are ignored to avoid
6255 a possible automatic re-attachment.
6256
6257 <see>IUSBController::deviceFilters, USBDeviceState</see>
6258
6259 <result name="VBOX_E_PDM_ERROR">
6260 Virtual machine does not have a USB controller.
6261 </result>
6262 <result name="E_INVALIDARG">
6263 USB device not attached to this virtual machine.
6264 </result>
6265 </desc>
6266 <param name="id" type="uuid" mod="string" dir="in">
6267 <desc>UUID of the USB device to detach.</desc>
6268 </param>
6269 <param name="device" type="IUSBDevice" dir="return">
6270 <desc>Detached USB device.</desc>
6271 </param>
6272 </method>
6273
6274 <method name="findUSBDeviceByAddress">
6275 <desc>
6276 Searches for a USB device with the given host address.
6277
6278 <result name="VBOX_E_OBJECT_NOT_FOUND">
6279 Given @c name does not correspond to any USB device.
6280 </result>
6281
6282 <see>IUSBDevice::address</see>
6283 </desc>
6284 <param name="name" type="wstring" dir="in">
6285 <desc>
6286 Address of the USB device (as assigned by the host) to
6287 search for.
6288 </desc>
6289 </param>
6290 <param name="device" type="IUSBDevice" dir="return">
6291 <desc>Found USB device object.</desc>
6292 </param>
6293 </method>
6294
6295 <method name="findUSBDeviceById">
6296 <desc>
6297 Searches for a USB device with the given UUID.
6298
6299 <result name="VBOX_E_OBJECT_NOT_FOUND">
6300 Given @c id does not correspond to any USB device.
6301 </result>
6302
6303 <see>IUSBDevice::id</see>
6304 </desc>
6305 <param name="id" type="uuid" mod="string" dir="in">
6306 <desc>UUID of the USB device to search for.</desc>
6307 </param>
6308 <param name="device" type="IUSBDevice" dir="return">
6309 <desc>Found USB device object.</desc>
6310 </param>
6311 </method>
6312
6313 <method name="createSharedFolder">
6314 <desc>
6315 Creates a transient new shared folder by associating the given logical
6316 name with the given host path, adds it to the collection of shared
6317 folders and starts sharing it. Refer to the description of
6318 <link to="ISharedFolder"/> to read more about logical names.
6319
6320 <result name="VBOX_E_INVALID_VM_STATE">
6321 Virtual machine in Saved state or currently changing state.
6322 </result>
6323 <result name="VBOX_E_FILE_ERROR">
6324 Shared folder already exists or not accessible.
6325 </result>
6326 </desc>
6327 <param name="name" type="wstring" dir="in">
6328 <desc>Unique logical name of the shared folder.</desc>
6329 </param>
6330 <param name="hostPath" type="wstring" dir="in">
6331 <desc>Full path to the shared folder in the host file system.</desc>
6332 </param>
6333 <param name="writable" type="boolean" dir="in">
6334 <desc>Whether the share is writable or readonly</desc>
6335 </param>
6336 <param name="automount" type="boolean" dir="in">
6337 <desc>Whether the share gets automatically mounted by the guest
6338 or not.</desc>
6339 </param>
6340 </method>
6341
6342 <method name="removeSharedFolder">
6343 <desc>
6344 Removes a transient shared folder with the given name previously
6345 created by <link to="#createSharedFolder"/> from the collection of
6346 shared folders and stops sharing it.
6347 <result name="VBOX_E_INVALID_VM_STATE">
6348 Virtual machine in Saved state or currently changing state.
6349 </result>
6350 <result name="VBOX_E_FILE_ERROR">
6351 Shared folder does not exists.
6352 </result>
6353 </desc>
6354 <param name="name" type="wstring" dir="in">
6355 <desc>Logical name of the shared folder to remove.</desc>
6356 </param>
6357 </method>
6358
6359 <method name="takeSnapshot">
6360 <desc>
6361 Saves the current execution state
6362 and all settings of the machine and creates differencing images
6363 for all normal (non-independent) media.
6364 See <link to="ISnapshot" /> for an introduction to snapshots.
6365
6366 This method can be called for a PoweredOff, Saved (see
6367 <link to="#saveState"/>), Running or
6368 Paused virtual machine. When the machine is PoweredOff, an
6369 offline snapshot is created. When the machine is Running a live
6370 snapshot is created, and an online snapshot is is created when Paused.
6371
6372 The taken snapshot is always based on the
6373 <link to="IMachine::currentSnapshot">current snapshot</link>
6374 of the associated virtual machine and becomes a new current snapshot.
6375
6376 <note>
6377 This method implicitly calls <link to="IMachine::saveSettings"/> to
6378 save all current machine settings before taking an offline snapshot.
6379 </note>
6380
6381 <result name="VBOX_E_INVALID_VM_STATE">
6382 Virtual machine currently changing state.
6383 </result>
6384 </desc>
6385 <param name="name" type="wstring" dir="in">
6386 <desc>Short name for the snapshot.</desc>
6387 </param>
6388 <param name="description" type="wstring" dir="in">
6389 <desc>Optional description of the snapshot.</desc>
6390 </param>
6391 <param name="progress" type="IProgress" dir="return">
6392 <desc>Progress object to track the operation completion.</desc>
6393 </param>
6394 </method>
6395
6396 <method name="deleteSnapshot">
6397 <desc>
6398 Starts deleting the specified snapshot asynchronously.
6399 See <link to="ISnapshot" /> for an introduction to snapshots.
6400
6401 The execution state and settings of the associated machine stored in
6402 the snapshot will be deleted. The contents of all differencing media of
6403 this snapshot will be merged with the contents of their dependent child
6404 media to keep the medium chain valid (in other words, all changes
6405 represented by media being deleted will be propagated to their child
6406 medium). After that, this snapshot's differencing medium will be
6407 deleted. The parent of this snapshot will become a new parent for all
6408 its child snapshots.
6409
6410 If the deleted snapshot is the current one, its parent snapshot will
6411 become a new current snapshot. The current machine state is not directly
6412 affected in this case, except that currently attached differencing
6413 media based on media of the deleted snapshot will be also merged as
6414 described above.
6415
6416 If the deleted snapshot is the first or current snapshot, then the
6417 respective IMachine attributes will be adjusted. Deleting the current
6418 snapshot will also implicitly call <link to="IMachine::saveSettings"/>
6419 to make all current machine settings permanent.
6420
6421 Deleting a snapshot has the following preconditions:
6422
6423 <ul>
6424 <li>Child media of all normal media of the deleted snapshot
6425 must be accessible (see <link to="IMedium::state"/>) for this
6426 operation to succeed. In particular, this means that all virtual
6427 machines whose media are directly or indirectly based on the
6428 media of deleted snapshot must be powered off.</li>
6429
6430 <li>You cannot delete the snapshot if a medium attached to it has
6431 more than once child medium (differencing images) because otherwise
6432 merging would be impossible. This might be the case if there is
6433 more than one child snapshot or differencing images were created
6434 for other reason (e.g. implicitly because of multiple machine
6435 attachments).</li>
6436 </ul>
6437
6438
6439 The virtual machine's <link to="IMachine::state">state</link> is
6440 changed to "DeletingSnapshot", "DeletingSnapshotOnline" or
6441 "DeletingSnapshotPaused" while this operation is in progress.
6442
6443 <note>
6444 Merging medium contents can be very time and disk space
6445 consuming, if these media are big in size and have many
6446 children. However, if the snapshot being deleted is the last
6447 (head) snapshot on the branch, the operation will be rather
6448 quick.
6449 </note>
6450 <result name="VBOX_E_INVALID_VM_STATE">
6451 The running virtual machine prevents deleting this snapshot. This
6452 happens only in very specific situations, usually snapshots can be
6453 deleted without trouble while a VM is running. The error message
6454 text explains the reason for the failure.
6455 </result>
6456 </desc>
6457 <param name="id" type="uuid" mod="string" dir="in">
6458 <desc>UUID of the snapshot to delete.</desc>
6459 </param>
6460 <param name="progress" type="IProgress" dir="return">
6461 <desc>Progress object to track the operation completion.</desc>
6462 </param>
6463 </method>
6464
6465 <method name="restoreSnapshot">
6466 <desc>
6467 Starts resetting the machine's current state to the state contained
6468 in the given snapshot, asynchronously. All current settings of the
6469 machine will be reset and changes stored in differencing media
6470 will be lost.
6471 See <link to="ISnapshot" /> for an introduction to snapshots.
6472
6473 After this operation is successfully completed, new empty differencing
6474 media are created for all normal media of the machine.
6475
6476 If the given snapshot is an online snapshot, the machine will go to
6477 the <link to="MachineState_Saved"> saved state</link>, so that the
6478 next time it is powered on, the execution state will be restored
6479 from the state of the snapshot.
6480
6481 <note>
6482 The machine must not be running, otherwise the operation will fail.
6483 </note>
6484
6485 <note>
6486 If the machine state is <link to="MachineState_Saved">Saved</link>
6487 prior to this operation, the saved state file will be implicitly
6488 deleted (as if <link to="IConsole::discardSavedState"/> were
6489 called).
6490 </note>
6491
6492 <result name="VBOX_E_INVALID_VM_STATE">
6493 Virtual machine is running.
6494 </result>
6495 </desc>
6496 <param name="snapshot" type="ISnapshot" dir="in">
6497 <desc>The snapshot to restore the VM state from.</desc>
6498 </param>
6499 <param name="progress" type="IProgress" dir="return">
6500 <desc>Progress object to track the operation completion.</desc>
6501 </param>
6502 </method>
6503
6504 <method name="teleport">
6505 <desc>
6506 Teleport the VM to a different host machine or process.
6507
6508 TODO explain the details.
6509
6510 <result name="VBOX_E_INVALID_VM_STATE">
6511 Virtual machine not running or paused.
6512 </result>
6513 </desc>
6514 <param name="hostname" type="wstring" dir="in">
6515 <desc>The name or IP of the host to teleport to.</desc>
6516 </param>
6517 <param name="tcpport" type="unsigned long" dir="in">
6518 <desc>The TCP port to connect to (1..65535).</desc>
6519 </param>
6520 <param name="password" type="wstring" dir="in">
6521 <desc>The password.</desc>
6522 </param>
6523 <param name="maxDowntime" type="unsigned long" dir="in">
6524 <desc>
6525 The maximum allowed downtime given as milliseconds. 0 is not a valid
6526 value. Recommended value: 250 ms.
6527
6528 The higher the value is, the greater the chance for a successful
6529 teleportation. A small value may easily result in the teleportation
6530 process taking hours and eventually fail.
6531
6532 <note>
6533 The current implementation treats this a guideline, not as an
6534 absolute rule.
6535 </note>
6536 </desc>
6537 </param>
6538 <param name="progress" type="IProgress" dir="return">
6539 <desc>Progress object to track the operation completion.</desc>
6540 </param>
6541 </method>
6542
6543 </interface>
6544
6545 <!--
6546 // IHost
6547 /////////////////////////////////////////////////////////////////////////
6548 -->
6549
6550 <enum
6551 name="HostNetworkInterfaceMediumType"
6552 uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
6553 >
6554 <desc>
6555 Type of encapsulation. Ethernet encapsulation includes both wired and
6556 wireless Ethernet connections.
6557 <see>IHostNetworkInterface</see>
6558 </desc>
6559
6560 <const name="Unknown" value="0">
6561 <desc>
6562 The type of interface cannot be determined.
6563 </desc>
6564 </const>
6565 <const name="Ethernet" value="1">
6566 <desc>
6567 Ethernet frame encapsulation.
6568 </desc>
6569 </const>
6570 <const name="PPP" value="2">
6571 <desc>
6572 Point-to-point protocol encapsulation.
6573 </desc>
6574 </const>
6575 <const name="SLIP" value="3">
6576 <desc>
6577 Serial line IP encapsulation.
6578 </desc>
6579 </const>
6580 </enum>
6581
6582 <enum
6583 name="HostNetworkInterfaceStatus"
6584 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
6585 >
6586 <desc>
6587 Current status of the interface.
6588 <see>IHostNetworkInterface</see>
6589 </desc>
6590
6591 <const name="Unknown" value="0">
6592 <desc>
6593 The state of interface cannot be determined.
6594 </desc>
6595 </const>
6596 <const name="Up" value="1">
6597 <desc>
6598 The interface is fully operational.
6599 </desc>
6600 </const>
6601 <const name="Down" value="2">
6602 <desc>
6603 The interface is not functioning.
6604 </desc>
6605 </const>
6606 </enum>
6607
6608 <enum
6609 name="HostNetworkInterfaceType"
6610 uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
6611 >
6612 <desc>
6613 Network interface type.
6614 </desc>
6615 <const name="Bridged" value="1"/>
6616 <const name="HostOnly" value="2"/>
6617 </enum>
6618
6619 <interface
6620 name="IHostNetworkInterface" extends="$unknown"
6621 uuid="ce6fae58-7642-4102-b5db-c9005c2320a8"
6622 wsmap="managed"
6623 >
6624 <desc>
6625 Represents one of host's network interfaces. IP V6 address and network
6626 mask are strings of 32 hexdecimal digits grouped by four. Groups are
6627 separated by colons.
6628 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
6629 </desc>
6630 <attribute name="name" type="wstring" readonly="yes">
6631 <desc>Returns the host network interface name.</desc>
6632 </attribute>
6633
6634 <attribute name="id" type="uuid" mod="string" readonly="yes">
6635 <desc>Returns the interface UUID.</desc>
6636 </attribute>
6637
6638 <attribute name="networkName" type="wstring" readonly="yes">
6639 <desc>Returns the name of a virtual network the interface gets attached to.</desc>
6640 </attribute>
6641
6642 <attribute name="dhcpEnabled" type="boolean" readonly="yes">
6643 <desc>Specifies whether the DHCP is enabled for the interface.</desc>
6644 </attribute>
6645
6646 <attribute name="IPAddress" type="wstring" readonly="yes">
6647 <desc>Returns the IP V4 address of the interface.</desc>
6648 </attribute>
6649
6650 <attribute name="networkMask" type="wstring" readonly="yes">
6651 <desc>Returns the network mask of the interface.</desc>
6652 </attribute>
6653
6654 <attribute name="IPV6Supported" type="boolean" readonly="yes">
6655 <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
6656 </attribute>
6657
6658 <attribute name="IPV6Address" type="wstring" readonly="yes">
6659 <desc>Returns the IP V6 address of the interface.</desc>
6660 </attribute>
6661
6662 <attribute name="IPV6NetworkMaskPrefixLength" type="unsigned long" readonly="yes">
6663 <desc>Returns the length IP V6 network mask prefix of the interface.</desc>
6664 </attribute>
6665
6666 <attribute name="hardwareAddress" type="wstring" readonly="yes">
6667 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
6668 </attribute>
6669
6670 <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
6671 <desc>Type of protocol encapsulation used.</desc>
6672 </attribute>
6673
6674 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
6675 <desc>Status of the interface.</desc>
6676 </attribute>
6677
6678 <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
6679 <desc>specifies the host interface type.</desc>
6680 </attribute>
6681
6682 <method name="enableStaticIpConfig">
6683 <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
6684 <param name="IPAddress" type="wstring" dir="in">
6685 <desc>
6686 IP address.
6687 </desc>
6688 </param>
6689 <param name="networkMask" type="wstring" dir="in">
6690 <desc>
6691 network mask.
6692 </desc>
6693 </param>
6694 </method>
6695
6696 <method name="enableStaticIpConfigV6">
6697 <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
6698 <param name="IPV6Address" type="wstring" dir="in">
6699 <desc>
6700 IP address.
6701 </desc>
6702 </param>
6703 <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
6704 <desc>
6705 network mask.
6706 </desc>
6707 </param>
6708 </method>
6709
6710 <method name="enableDynamicIpConfig">
6711 <desc>enables the dynamic IP configuration.</desc>
6712 </method>
6713
6714 <method name="dhcpRediscover">
6715 <desc>refreshes the IP configuration for dhcp-enabled interface.</desc>
6716 </method>
6717
6718 </interface>
6719
6720 <interface
6721 name="IHost" extends="$unknown"
6722 uuid="35b004f4-7806-4009-bfa8-d1308adba7e5"
6723 wsmap="managed"
6724 >
6725 <desc>
6726 The IHost interface represents the physical machine that this VirtualBox
6727 installation runs on.
6728
6729 An object implementing this interface is returned by the
6730 <link to="IVirtualBox::host" /> attribute. This interface contains
6731 read-only information about the host's physical hardware (such as what
6732 processors and disks are available, what the host operating system is,
6733 and so on) and also allows for manipulating some of the host's hardware,
6734 such as global USB device filters and host interface networking.
6735
6736 </desc>
6737 <attribute name="DVDDrives" type="IMedium" readonly="yes" safearray="yes">
6738 <desc>List of DVD drives available on the host.</desc>
6739 </attribute>
6740
6741 <attribute name="floppyDrives" type="IMedium" readonly="yes" safearray="yes">
6742 <desc>List of floppy drives available on the host.</desc>
6743 </attribute>
6744
6745 <attribute name="USBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
6746 <desc>
6747 List of USB devices currently attached to the host.
6748 Once a new device is physically attached to the host computer,
6749 it appears in this list and remains there until detached.
6750
6751 <note>
6752 If USB functionality is not available in the given edition of
6753 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6754 </note>
6755 </desc>
6756 </attribute>
6757
6758 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
6759 <desc>
6760 List of USB device filters in action.
6761 When a new device is physically attached to the host computer,
6762 filters from this list are applied to it (in order they are stored
6763 in the list). The first matched filter will determine the
6764 <link to="IHostUSBDeviceFilter::action">action</link>
6765 performed on the device.
6766
6767 Unless the device is ignored by these filters, filters of all
6768 currently running virtual machines
6769 (<link to="IUSBController::deviceFilters"/>) are applied to it.
6770
6771 <note>
6772 If USB functionality is not available in the given edition of
6773 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6774 </note>
6775
6776 <see>IHostUSBDeviceFilter, USBDeviceState</see>
6777 </desc>
6778 </attribute>
6779
6780 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
6781 <desc>List of host network interfaces currently defined on the host.</desc>
6782 </attribute>
6783
6784 <attribute name="processorCount" type="unsigned long" readonly="yes">
6785 <desc>Number of (logical) CPUs installed in the host system.</desc>
6786 </attribute>
6787
6788 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
6789 <desc>Number of (logical) CPUs online in the host system.</desc>
6790 </attribute>
6791
6792 <attribute name="processorCoreCount" type="unsigned long" readonly="yes">
6793 <desc>Number of physical processor cores installed in the host system.</desc>
6794 </attribute>
6795
6796 <method name="getProcessorSpeed">
6797 <desc>Query the (approximate) maximum speed of a specified host CPU in
6798 Megahertz.
6799 </desc>
6800 <param name="cpuId" type="unsigned long" dir="in">
6801 <desc>
6802 Identifier of the CPU.
6803 </desc>
6804 </param>
6805 <param name="speed" type="unsigned long" dir="return">
6806 <desc>
6807 Speed value. 0 is returned if value is not known or @a cpuId is
6808 invalid.
6809 </desc>
6810 </param>
6811 </method>
6812
6813 <method name="getProcessorFeature">
6814 <desc>Query whether a CPU feature is supported or not.</desc>
6815 <param name="feature" type="ProcessorFeature" dir="in">
6816 <desc>
6817 CPU Feature identifier.
6818 </desc>
6819 </param>
6820 <param name="supported" type="boolean" dir="return">
6821 <desc>
6822 Feature is supported or not.
6823 </desc>
6824 </param>
6825 </method>
6826
6827 <method name="getProcessorDescription">
6828 <desc>Query the model string of a specified host CPU.
6829 </desc>
6830 <param name="cpuId" type="unsigned long" dir="in">
6831 <desc>
6832 Identifier of the CPU.
6833 <note>
6834 The current implementation might not necessarily return the
6835 description for this exact CPU.
6836 </note>
6837 </desc>
6838 </param>
6839 <param name="description" type="wstring" dir="return">
6840 <desc>
6841 Model string. An empty string is returned if value is not known or
6842 @a cpuId is invalid.
6843 </desc>
6844 </param>
6845 </method>
6846
6847 <method name="getProcessorCPUIDLeaf">
6848 <desc>
6849 Returns the CPU cpuid information for the specified leaf.
6850 </desc>
6851 <param name="cpuId" type="unsigned long" dir="in">
6852 <desc>
6853 Identifier of the CPU. The CPU most be online.
6854 <note>
6855 The current implementation might not necessarily return the
6856 description for this exact CPU.
6857 </note>
6858 </desc>
6859 </param>
6860 <param name="leaf" type="unsigned long" dir="in">
6861 <desc>
6862 CPUID leaf index (eax).
6863 </desc>
6864 </param>
6865 <param name="subLeaf" type="unsigned long" dir="in">
6866 <desc>
6867 CPUID leaf sub index (ecx). This currently only applies to cache
6868 information on Intel CPUs. Use 0 if retrieving values for
6869 <link to="IMachine::setCPUIDLeaf"/>.
6870 </desc>
6871 </param>
6872 <param name="valEax" type="unsigned long" dir="out">
6873 <desc>
6874 CPUID leaf value for register eax.
6875 </desc>
6876 </param>
6877 <param name="valEbx" type="unsigned long" dir="out">
6878 <desc>
6879 CPUID leaf value for register ebx.
6880 </desc>
6881 </param>
6882 <param name="valEcx" type="unsigned long" dir="out">
6883 <desc>
6884 CPUID leaf value for register ecx.
6885 </desc>
6886 </param>
6887 <param name="valEdx" type="unsigned long" dir="out">
6888 <desc>
6889 CPUID leaf value for register edx.
6890 </desc>
6891 </param>
6892 </method>
6893
6894 <attribute name="memorySize" type="unsigned long" readonly="yes">
6895 <desc>Amount of system memory in megabytes installed in the host system.</desc>
6896 </attribute>
6897
6898 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
6899 <desc>Available system memory in the host system.</desc>
6900 </attribute>
6901
6902 <attribute name="operatingSystem" type="wstring" readonly="yes">
6903 <desc>Name of the host system's operating system.</desc>
6904 </attribute>
6905
6906 <attribute name="OSVersion" type="wstring" readonly="yes">
6907 <desc>Host operating system's version string.</desc>
6908 </attribute>
6909
6910 <attribute name="UTCTime" type="long long" readonly="yes">
6911 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
6912 </attribute>
6913
6914 <attribute name="Acceleration3DAvailable" type="boolean" readonly="yes">
6915 <desc>Returns @c true when the host supports 3D hardware acceleration.</desc>
6916 </attribute>
6917
6918 <method name="createHostOnlyNetworkInterface">
6919 <desc>
6920 Creates a new adapter for Host Only Networking.
6921 <result name="E_INVALIDARG">
6922 Host network interface @a name already exists.
6923 </result>
6924 </desc>
6925 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
6926 <desc>
6927 Created host interface object.
6928 </desc>
6929 </param>
6930 <param name="progress" type="IProgress" dir="return">
6931 <desc>
6932 Progress object to track the operation completion.
6933 </desc>
6934 </param>
6935 </method>
6936
6937 <method name="removeHostOnlyNetworkInterface">
6938 <desc>
6939 Removes the given Host Only Networking interface.
6940 <result name="VBOX_E_OBJECT_NOT_FOUND">
6941 No host network interface matching @a id found.
6942 </result>
6943 </desc>
6944 <param name="id" type="uuid" mod="string" dir="in">
6945 <desc>
6946 Adapter GUID.
6947 </desc>
6948 </param>
6949 <param name="progress" type="IProgress" dir="return">
6950 <desc>
6951 Progress object to track the operation completion.
6952 </desc>
6953 </param>
6954 </method>
6955
6956 <method name="createUSBDeviceFilter">
6957 <desc>
6958 Creates a new USB device filter. All attributes except
6959 the filter name are set to empty (any match),
6960 <i>active</i> is @c false (the filter is not active).
6961
6962 The created filter can be added to the list of filters using
6963 <link to="#insertUSBDeviceFilter"/>.
6964
6965 <see>#USBDeviceFilters</see>
6966 </desc>
6967 <param name="name" type="wstring" dir="in">
6968 <desc>
6969 Filter name. See <link to="IUSBDeviceFilter::name"/> for more information.
6970 </desc>
6971 </param>
6972 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
6973 <desc>Created filter object.</desc>
6974 </param>
6975 </method>
6976
6977 <method name="insertUSBDeviceFilter">
6978 <desc>
6979 Inserts the given USB device to the specified position
6980 in the list of filters.
6981
6982 Positions are numbered starting from @c 0. If the specified
6983 position is equal to or greater than the number of elements in
6984 the list, the filter is added at the end of the collection.
6985
6986 <note>
6987 Duplicates are not allowed, so an attempt to insert a
6988 filter already in the list is an error.
6989 </note>
6990 <note>
6991 If USB functionality is not available in the given edition of
6992 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6993 </note>
6994
6995 <see>#USBDeviceFilters</see>
6996
6997 <result name="VBOX_E_INVALID_OBJECT_STATE">
6998 USB device filter is not created within this VirtualBox instance.
6999 </result>
7000 <result name="E_INVALIDARG">
7001 USB device filter already in list.
7002 </result>
7003
7004 </desc>
7005 <param name="position" type="unsigned long" dir="in">
7006 <desc>Position to insert the filter to.</desc>
7007 </param>
7008 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
7009 <desc>USB device filter to insert.</desc>
7010 </param>
7011 </method>
7012
7013 <method name="removeUSBDeviceFilter">
7014 <desc>
7015 Removes a USB device filter from the specified position in the
7016 list of filters.
7017
7018 Positions are numbered starting from @c 0. Specifying a
7019 position equal to or greater than the number of elements in
7020 the list will produce an error.
7021
7022 <note>
7023 If USB functionality is not available in the given edition of
7024 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7025 </note>
7026
7027 <see>#USBDeviceFilters</see>
7028
7029 <result name="E_INVALIDARG">
7030 USB device filter list empty or invalid @a position.
7031 </result>
7032
7033 </desc>
7034 <param name="position" type="unsigned long" dir="in">
7035 <desc>Position to remove the filter from.</desc>
7036 </param>
7037 </method>
7038
7039 <method name="findHostDVDDrive">
7040 <desc>
7041 Searches for a host DVD drive with the given @c name.
7042
7043 <result name="VBOX_E_OBJECT_NOT_FOUND">
7044 Given @c name does not correspond to any host drive.
7045 </result>
7046
7047 </desc>
7048 <param name="name" type="wstring" dir="in">
7049 <desc>Name of the host drive to search for</desc>
7050 </param>
7051 <param name="drive" type="IMedium" dir="return">
7052 <desc>Found host drive object</desc>
7053 </param>
7054 </method>
7055
7056 <method name="findHostFloppyDrive">
7057 <desc>
7058 Searches for a host floppy drive with the given @c name.
7059
7060 <result name="VBOX_E_OBJECT_NOT_FOUND">
7061 Given @c name does not correspond to any host floppy drive.
7062 </result>
7063
7064 </desc>
7065 <param name="name" type="wstring" dir="in">
7066 <desc>Name of the host floppy drive to search for</desc>
7067 </param>
7068 <param name="drive" type="IMedium" dir="return">
7069 <desc>Found host floppy drive object</desc>
7070 </param>
7071 </method>
7072
7073 <method name="findHostNetworkInterfaceByName">
7074 <desc>
7075 Searches through all host network interfaces for an interface with
7076 the given @c name.
7077 <note>
7078 The method returns an error if the given @c name does not
7079 correspond to any host network interface.
7080 </note>
7081 </desc>
7082 <param name="name" type="wstring" dir="in">
7083 <desc>Name of the host network interface to search for.</desc>
7084 </param>
7085 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
7086 <desc>Found host network interface object.</desc>
7087 </param>
7088 </method>
7089 <method name="findHostNetworkInterfaceById">
7090 <desc>
7091 Searches through all host network interfaces for an interface with
7092 the given GUID.
7093 <note>
7094 The method returns an error if the given GUID does not
7095 correspond to any host network interface.
7096 </note>
7097 </desc>
7098 <param name="id" type="uuid" mod="string" dir="in">
7099 <desc>GUID of the host network interface to search for.</desc>
7100 </param>
7101 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
7102 <desc>Found host network interface object.</desc>
7103 </param>
7104 </method>
7105 <method name="findHostNetworkInterfacesOfType">
7106 <desc>
7107 Searches through all host network interfaces and returns a list of interfaces of the specified type
7108 </desc>
7109 <param name="type" type="HostNetworkInterfaceType" dir="in">
7110 <desc>type of the host network interfaces to search for.</desc>
7111 </param>
7112 <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
7113 <desc>Found host network interface objects.</desc>
7114 </param>
7115 </method>
7116
7117 <method name="findUSBDeviceById">
7118 <desc>
7119 Searches for a USB device with the given UUID.
7120
7121 <result name="VBOX_E_OBJECT_NOT_FOUND">
7122 Given @c id does not correspond to any USB device.
7123 </result>
7124
7125 <see>IHostUSBDevice::id</see>
7126 </desc>
7127 <param name="id" type="uuid" mod="string" dir="in">
7128 <desc>UUID of the USB device to search for.</desc>
7129 </param>
7130 <param name="device" type="IHostUSBDevice" dir="return">
7131 <desc>Found USB device object.</desc>
7132 </param>
7133 </method>
7134
7135 <method name="findUSBDeviceByAddress">
7136 <desc>
7137 Searches for a USB device with the given host address.
7138
7139 <result name="VBOX_E_OBJECT_NOT_FOUND">
7140 Given @c name does not correspond to any USB device.
7141 </result>
7142
7143 <see>IHostUSBDevice::address</see>
7144 </desc>
7145 <param name="name" type="wstring" dir="in">
7146 <desc>
7147 Address of the USB device (as assigned by the host) to
7148 search for.
7149 </desc>
7150 </param>
7151 <param name="device" type="IHostUSBDevice" dir="return">
7152 <desc>Found USB device object.</desc>
7153 </param>
7154 </method>
7155
7156 </interface>
7157
7158 <!--
7159 // ISystemProperties
7160 /////////////////////////////////////////////////////////////////////////
7161 -->
7162
7163 <interface
7164 name="ISystemProperties"
7165 extends="$unknown"
7166 uuid="2af0100b-fda2-4c6a-8e8f-31e4ba871886"
7167 wsmap="managed"
7168 >
7169 <desc>
7170 The ISystemProperties interface represents global properties of the given
7171 VirtualBox installation.
7172
7173 These properties define limits and default values for various attributes
7174 and parameters. Most of the properties are read-only, but some can be
7175 changed by a user.
7176 </desc>
7177
7178 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
7179 <desc>Minimum guest system memory in Megabytes.</desc>
7180 </attribute>
7181
7182 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
7183 <desc>Maximum guest system memory in Megabytes.</desc>
7184 </attribute>
7185
7186 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
7187 <desc>Minimum guest video memory in Megabytes.</desc>
7188 </attribute>
7189
7190 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
7191 <desc>Maximum guest video memory in Megabytes.</desc>
7192 </attribute>
7193
7194 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
7195 <desc>Minimum CPU count.</desc>
7196 </attribute>
7197
7198 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
7199 <desc>Maximum CPU count.</desc>
7200 </attribute>
7201
7202 <attribute name="maxGuestMonitors" type="unsigned long" readonly="yes">
7203 <desc>Maximum of monitors which could be connected.</desc>
7204 </attribute>
7205
7206 <attribute name="infoVDSize" type="long long" readonly="yes">
7207 <desc>Maximum size of a virtual disk image in bytes. Informational value,
7208 does not reflect the limits of any virtual disk image format.</desc>
7209 </attribute>
7210
7211 <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
7212 <desc>
7213 Number of network adapters associated with every
7214 <link to="IMachine"/> instance.
7215 </desc>
7216 </attribute>
7217
7218 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
7219 <desc>
7220 Number of serial ports associated with every
7221 <link to="IMachine"/> instance.
7222 </desc>
7223 </attribute>
7224
7225 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
7226 <desc>
7227 Number of parallel ports associated with every
7228 <link to="IMachine"/> instance.
7229 </desc>
7230 </attribute>
7231
7232 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
7233 <desc>
7234 Maximum device position in the boot order. This value corresponds
7235 to the total number of devices a machine can boot from, to make it
7236 possible to include all possible devices to the boot list.
7237 <see><link to="IMachine::setBootOrder"/></see>
7238 </desc>
7239 </attribute>
7240
7241 <attribute name="defaultMachineFolder" type="wstring">
7242 <desc>
7243 Full path to the default directory used to create new or open
7244 existing machines when a machine settings file name contains no
7245 path.
7246
7247 Starting with VirtualBox 4.0, by default, this attribute contains
7248 the full path of folder named "VirtualBox VMs" in the user's
7249 home directory, which depends on the host platform.
7250
7251 When setting this attribute, a full path must be specified.
7252 Setting this property to @c null or an empty string or the
7253 special value "Machines" (for compatibility reasons) will restore
7254 that default value.
7255
7256 If the folder specified herein does not exist, it will be created
7257 automatically as needed.
7258
7259 <see>
7260 <link to="IVirtualBox::createMachine"/>,
7261 <link to="IVirtualBox::openMachine"/>
7262 </see>
7263 </desc>
7264 </attribute>
7265
7266 <attribute name="mediumFormats" type="IMediumFormat" safearray="yes" readonly="yes">
7267 <desc>
7268 List of all medium storage formats supported by this VirtualBox
7269 installation.
7270
7271 Keep in mind that the medium format identifier
7272 (<link to="IMediumFormat::id"/>) used in other API calls like
7273 <link to="IVirtualBox::createHardDisk"/> to refer to a particular
7274 medium format is a case-insensitive string. This means that, for
7275 example, all of the following strings:
7276 <pre>
7277 "VDI"
7278 "vdi"
7279 "VdI"</pre>
7280 refer to the same medium format.
7281
7282 Note that the virtual medium framework is backend-based, therefore
7283 the list of supported formats depends on what backends are currently
7284 installed.
7285
7286 <see>
7287 <link to="IMediumFormat"/>,
7288 </see>
7289 </desc>
7290 </attribute>
7291
7292 <attribute name="defaultHardDiskFormat" type="wstring">
7293 <desc>
7294 Identifier of the default medium format used by VirtualBox.
7295
7296 The medium format set by this attribute is used by VirtualBox
7297 when the medium format was not specified explicitly. One example is
7298 <link to="IVirtualBox::createHardDisk"/> with the empty
7299 format argument. A more complex example is implicit creation of
7300 differencing media when taking a snapshot of a virtual machine:
7301 this operation will try to use a format of the parent medium first
7302 and if this format does not support differencing media the default
7303 format specified by this argument will be used.
7304
7305 The list of supported medium formats may be obtained by the
7306 <link to="#mediumFormats"/> call. Note that the default medium
7307 format must have a capability to create differencing media;
7308 otherwise operations that create media implicitly may fail
7309 unexpectedly.
7310
7311 The initial value of this property is <tt>"VDI"</tt> in the current
7312 version of the VirtualBox product, but may change in the future.
7313
7314 <note>
7315 Setting this property to @c null or empty string will restore the
7316 initial value.
7317 </note>
7318
7319 <see>
7320 <link to="#mediumFormats"/>,
7321 <link to="IMediumFormat::id"/>,
7322 <link to="IVirtualBox::createHardDisk"/>
7323 </see>
7324 </desc>
7325 </attribute>
7326
7327 <attribute name="freeDiskSpaceWarning" type="long long">
7328 <desc>Issue a warning if the free disk space is below (or in some disk
7329 intensive operation is expected to go below) the given size in
7330 bytes.</desc>
7331 </attribute>
7332
7333 <attribute name="freeDiskSpacePercentWarning" type="unsigned long">
7334 <desc>Issue a warning if the free disk space is below (or in some disk
7335 intensive operation is expected to go below) the given percentage.</desc>
7336 </attribute>
7337
7338 <attribute name="freeDiskSpaceError" type="long long">
7339 <desc>Issue an error if the free disk space is below (or in some disk
7340 intensive operation is expected to go below) the given size in
7341 bytes.</desc>
7342 </attribute>
7343
7344 <attribute name="freeDiskSpacePercentError" type="unsigned long">
7345 <desc>Issue an error if the free disk space is below (or in some disk
7346 intensive operation is expected to go below) the given percentage.</desc>
7347 </attribute>
7348
7349 <attribute name="VRDEAuthLibrary" type="wstring">
7350 <desc>
7351 Library that provides authentication for Remote Desktop clients. The library
7352 is used if a virtual machine's authentication type is set to "external"
7353 in the VM RemoteDisplay configuration.
7354
7355 The system library extension (".DLL" or ".so") must be omitted.
7356 A full path can be specified; if not, then the library must reside on the
7357 system's default library path.
7358
7359 The default value of this property is <tt>"VRDPAuth"</tt>. There is a library
7360 of that name in one of the default VirtualBox library directories.
7361
7362 For details about VirtualBox authentication libraries and how to implement
7363 them, please refer to the VirtualBox manual.
7364
7365 <note>
7366 Setting this property to @c null or empty string will restore the
7367 initial value.
7368 </note>
7369 </desc>
7370 </attribute>
7371
7372 <attribute name="webServiceAuthLibrary" type="wstring">
7373 <desc>
7374 Library that provides authentication for webservice clients. The library
7375 is used if a virtual machine's authentication type is set to "external"
7376 in the VM RemoteDisplay configuration and will be called from
7377 within the <link to="IWebsessionManager::logon" /> implementation.
7378
7379 As opposed to <link to="ISystemProperties::VRDEAuthLibrary" />,
7380 there is no per-VM setting for this, as the webservice is a global
7381 resource (if it is running). Only for this setting (for the webservice),
7382 setting this value to a literal <tt>"null"</tt> string disables authentication,
7383 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
7384 no matter what user name and password are supplied.
7385
7386 The initial value of this property is <tt>"VRDPAuth"</tt>,
7387 meaning that the webservice will use the same authentication
7388 library that is used by default for VRDE (again, see
7389 <link to="ISystemProperties::VRDEAuthLibrary" />).
7390 The format and calling convention of authentication libraries
7391 is the same for the webservice as it is for VRDE.
7392
7393 <note>
7394 Setting this property to @c null or empty string will restore the
7395 initial value.
7396 </note>
7397 </desc>
7398 </attribute>
7399
7400 <attribute name="defaultVRDELibrary" type="wstring">
7401 <desc>
7402 Default VRDE library.
7403
7404 The default value of this property is an empty string, which means that the
7405 VRDE is not available.
7406
7407 For details about VirtualBox Remote Desktop Extension and how to implement
7408 it, please refer to the VirtualBox SDK.
7409 </desc>
7410 </attribute>
7411
7412 <attribute name="LogHistoryCount" type="unsigned long">
7413 <desc>
7414 This value specifies how many old release log files are kept.
7415 </desc>
7416 </attribute>
7417
7418 <attribute name="defaultAudioDriver" type="AudioDriverType" readonly="yes">
7419 <desc>This value hold the default audio driver for the current
7420 system.</desc>
7421 </attribute>
7422
7423 <method name="getMaxDevicesPerPortForStorageBus">
7424 <desc>Returns the maximum number of devices which can be attached to a port
7425 for the given storage bus.</desc>
7426
7427 <param name="bus" type="StorageBus" dir="in">
7428 <desc>The storage bus type to get the value for.</desc>
7429 </param>
7430
7431 <param name="maxDevicesPerPort" type="unsigned long" dir="return">
7432 <desc>The maximum number of devices which can eb attached to the port for the given
7433 storage bus.</desc>
7434 </param>
7435 </method>
7436
7437 <method name="getMinPortCountForStorageBus">
7438 <desc>Returns the minimum number of ports the given storage bus supports.</desc>
7439
7440 <param name="bus" type="StorageBus" dir="in">
7441 <desc>The storage bus type to get the value for.</desc>
7442 </param>
7443
7444 <param name="minPortCount" type="unsigned long" dir="return">
7445 <desc>The minimum number of ports for the given storage bus.</desc>
7446 </param>
7447 </method>
7448
7449 <method name="getMaxPortCountForStorageBus">
7450 <desc>Returns the maximum number of ports the given storage bus supports.</desc>
7451
7452 <param name="bus" type="StorageBus" dir="in">
7453 <desc>The storage bus type to get the value for.</desc>
7454 </param>
7455
7456 <param name="maxPortCount" type="unsigned long" dir="return">
7457 <desc>The maximum number of ports for the given storage bus.</desc>
7458 </param>
7459 </method>
7460
7461 <method name="getMaxInstancesOfStorageBus">
7462 <desc>Returns the maximum number of storage bus instances which
7463 can be configured for each VM. This corresponds to the number of
7464 storage controllers one can have.</desc>
7465
7466 <param name="bus" type="StorageBus" dir="in">
7467 <desc>The storage bus type to get the value for.</desc>
7468 </param>
7469
7470 <param name="maxInstances" type="unsigned long" dir="return">
7471 <desc>The maximum number of instances for the given storage bus.</desc>
7472 </param>
7473 </method>
7474
7475 <method name="getDeviceTypesForStorageBus">
7476 <desc>Returns list of all the supported device types
7477 (<link to="DeviceType"/>) for the given type of storage
7478 bus.</desc>
7479
7480 <param name="bus" type="StorageBus" dir="in">
7481 <desc>The storage bus type to get the value for.</desc>
7482 </param>
7483
7484 <param name="deviceTypes" type="DeviceType" safearray="yes" dir="return">
7485 <desc>The list of all supported device types for the given storage bus.</desc>
7486 </param>
7487 </method>
7488
7489 <method name="getDefaultIoCacheSettingForStorageController">
7490 <desc>Returns the default I/O cache setting for the
7491 given storage controller</desc>
7492
7493 <param name="controllerType" type="StorageControllerType" dir="in">
7494 <desc>The storage controller to the setting for.</desc>
7495 </param>
7496
7497 <param name="enabled" type="boolean" dir="return">
7498 <desc>Returned flag indicating the default value</desc>
7499 </param>
7500 </method>
7501 </interface>
7502
7503 <!--
7504 // IGuest
7505 /////////////////////////////////////////////////////////////////////////
7506 -->
7507
7508 <interface
7509 name="IGuestOSType" extends="$unknown"
7510 uuid="432c1546-1354-4abf-bf08-878a32a373f5"
7511 wsmap="struct"
7512 >
7513 <desc>
7514 </desc>
7515
7516 <attribute name="familyId" type="wstring" readonly="yes">
7517 <desc>Guest OS family identifier string.</desc>
7518 </attribute>
7519
7520 <attribute name="familyDescription" type="wstring" readonly="yes">
7521 <desc>Human readable description of the guest OS family.</desc>
7522 </attribute>
7523
7524 <attribute name="id" type="wstring" readonly="yes">
7525 <desc>Guest OS identifier string.</desc>
7526 </attribute>
7527
7528 <attribute name="description" type="wstring" readonly="yes">
7529 <desc>Human readable description of the guest OS.</desc>
7530 </attribute>
7531
7532 <attribute name="is64Bit" type="boolean" readonly="yes">
7533 <desc>Returns @c true if the given OS is 64-bit</desc>
7534 </attribute>
7535
7536 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
7537 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
7538 </attribute>
7539
7540 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
7541 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
7542 </attribute>
7543
7544 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
7545 <desc>Recommended RAM size in Megabytes.</desc>
7546 </attribute>
7547
7548 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
7549 <desc>Recommended video RAM size in Megabytes.</desc>
7550 </attribute>
7551
7552 <attribute name="recommendedHDD" type="long long" readonly="yes">
7553 <desc>Recommended hard disk size in bytes.</desc>
7554 </attribute>
7555
7556 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
7557 <desc>Returns recommended network adapter for this OS type.</desc>
7558 </attribute>
7559
7560 <attribute name="recommendedPae" type="boolean" readonly="yes">
7561 <desc>Returns @c true if using PAE is recommended for this OS type.</desc>
7562 </attribute>
7563
7564 <attribute name="recommendedDvdStorageController" type="StorageControllerType" readonly="yes">
7565 <desc>Recommended storage controller type for DVD/CD drives.</desc>
7566 </attribute>
7567
7568 <attribute name="recommendedDvdStorageBus" type="StorageBus" readonly="yes">
7569 <desc>Recommended storage bus type for DVD/CD drives.</desc>
7570 </attribute>
7571
7572 <attribute name="recommendedHdStorageController" type="StorageControllerType" readonly="yes">
7573 <desc>Recommended storage controller type for HD drives.</desc>
7574 </attribute>
7575
7576 <attribute name="recommendedHdStorageBus" type="StorageBus" readonly="yes">
7577 <desc>Recommended storage bus type for HD drives.</desc>
7578 </attribute>
7579
7580 <attribute name="recommendedFirmware" type="FirmwareType" readonly="yes">
7581 <desc>Recommended firmware type.</desc>
7582 </attribute>
7583
7584 <attribute name="recommendedUsbHid" type="boolean" readonly="yes">
7585 <desc>Returns @c true if using USB Human Interface Devices, such as keyboard and mouse recommended.</desc>
7586 </attribute>
7587
7588 <attribute name="recommendedHpet" type="boolean" readonly="yes">
7589 <desc>Returns @c true if using HPET is recommended for this OS type.</desc>
7590 </attribute>
7591
7592 <attribute name="recommendedUsbTablet" type="boolean" readonly="yes">
7593 <desc>Returns @c true if using a USB Tablet is recommended.</desc>
7594 </attribute>
7595
7596 <attribute name="recommendedRtcUseUtc" type="boolean" readonly="yes">
7597 <desc>Returns @c true if the RTC of this VM should be set to UTC</desc>
7598 </attribute>
7599
7600 <attribute name="recommendedChipset" type="ChipsetType" readonly="yes">
7601 <desc>Recommended chipset type.</desc>
7602 </attribute>
7603
7604 <attribute name="recommendedAudioController" type="AudioControllerType" readonly="yes">
7605 <desc>Recommended audio type.</desc>
7606 </attribute>
7607
7608 </interface>
7609
7610 <enum
7611 name="AdditionsRunLevelType"
7612 uuid="a25417ee-a9dd-4f5b-b0dc-377860087754"
7613 >
7614 <desc>
7615 Guest Additions run level type.
7616 </desc>
7617
7618 <const name="None" value="0">
7619 <desc>Guest Additions are not loaded.</desc>
7620 </const>
7621 <const name="System" value="1">
7622 <desc>Guest drivers are loaded.</desc>
7623 </const>
7624 <const name="Userland" value="2">
7625 <desc>Common components (such as application services) are loaded.</desc>
7626 </const>
7627 <const name="Desktop" value="3">
7628 <desc>Per-user desktop components are loaded.</desc>
7629 </const>
7630 </enum>
7631
7632 <enum
7633 name="ExecuteProcessFlag"
7634 uuid="3258e8a5-ba0c-43d5-86b5-cf91405fddc0"
7635 >
7636 <desc>
7637 Guest process execution flags.
7638 </desc>
7639
7640 <const name="None" value="0">
7641 <desc>No flag set.</desc>
7642 </const>
7643
7644 <const name="WaitForProcessStartOnly" value="1">
7645 <desc>Only use the specified timeout value to wait for starting the guest process - the guest
7646 process itself then uses an infinite timeout.</desc>
7647 </const>
7648
7649 <const name="IgnoreOrphanedProcesses" value="2">
7650 <desc>Do not report an error when executed processes are still alive when VBoxService or the guest OS is shutting down.</desc>
7651 </const>
7652 </enum>
7653
7654 <enum
7655 name="ProcessInputFlag"
7656 uuid="5d38c1dd-2604-4ddf-92e5-0c0cdd3bdbd5"
7657 >
7658 <desc>
7659 Guest process input flags.
7660 </desc>
7661
7662 <const name="None" value="0">
7663 <desc>No flag set.</desc>
7664 </const>
7665 <const name="EndOfFile" value="1">
7666 <desc>End of file (input) reached.</desc>
7667 </const>
7668 </enum>
7669
7670 <enum
7671 name="CopyFileFlag"
7672 uuid="23f79fdf-738a-493d-b80b-42d607c9b916"
7673 >
7674 <desc>
7675 Host/Guest copy flags.
7676 </desc>
7677
7678 <const name="None" value="0">
7679 <desc>No flag set.</desc>
7680 </const>
7681
7682 <const name="Recursive" value="1">
7683 <desc>Copy directories recursively.</desc>
7684 </const>
7685
7686 <const name="Update" value="2">
7687 <desc>Copy only when the source file is newer than the destination file or when the destination file is missing.</desc>
7688 </const>
7689
7690 <const name="FollowLinks" value="4">
7691 <desc>Follow symbolic links.</desc>
7692 </const>
7693 </enum>
7694
7695 <interface
7696 name="IGuest" extends="$unknown"
7697 uuid="ded6983f-5c81-4bf9-90af-73f65fd9b728"
7698 wsmap="managed"
7699 >
7700 <desc>
7701 The IGuest interface represents information about the operating system
7702 running inside the virtual machine. Used in
7703 <link to="IConsole::guest"/>.
7704
7705 IGuest provides information about the guest operating system, whether
7706 Guest Additions are installed and other OS-specific virtual machine
7707 properties.
7708 </desc>
7709
7710 <attribute name="OSTypeId" type="wstring" readonly="yes">
7711 <desc>
7712 Identifier of the Guest OS type as reported by the Guest
7713 Additions.
7714 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
7715 an IGuestOSType object representing details about the given
7716 Guest OS type.
7717 <note>
7718 If Guest Additions are not installed, this value will be
7719 the same as <link to="IMachine::OSTypeId"/>.
7720 </note>
7721 </desc>
7722 </attribute>
7723
7724 <attribute name="additionsRunLevel" type="AdditionsRunLevelType" readonly="yes">
7725 <desc>
7726 Current run level of the Guest Additions.
7727 </desc>
7728 </attribute>
7729
7730 <attribute name="additionsVersion" type="wstring" readonly="yes">
7731 <desc>
7732 Version of the Guest Additions including the revision (3 decimal numbers
7733 separated by dots + revision number) installed on the guest or empty
7734 when the Additions are not installed.
7735 </desc>
7736 </attribute>
7737
7738 <attribute name="supportsSeamless" type="boolean" readonly="yes">
7739 <desc>
7740 Flag whether seamless guest display rendering (seamless desktop
7741 integration) is supported.
7742 </desc>
7743 </attribute>
7744
7745 <attribute name="supportsGraphics" type="boolean" readonly="yes">
7746 <desc>
7747 Flag whether the guest is in graphics mode. If it is not, then
7748 seamless rendering will not work, resize hints are not immediately
7749 acted on and guest display resizes are probably not initiated by
7750 the guest additions.
7751 </desc>
7752 </attribute>
7753
7754 <attribute name="memoryBalloonSize" type="unsigned long">
7755 <desc>Guest system memory balloon size in megabytes (transient property).</desc>
7756 </attribute>
7757
7758 <attribute name="statisticsUpdateInterval" type="unsigned long">
7759 <desc>Interval to update guest statistics in seconds.</desc>
7760 </attribute>
7761
7762 <method name="internalGetStatistics">
7763 <desc>
7764 Internal method; do not use as it might change at any time
7765 </desc>
7766 <param name="cpuUser" type="unsigned long" dir="out">
7767 <desc>Percentage of processor time spent in user mode as seen by the guest</desc>
7768 </param>
7769 <param name="cpuKernel" type="unsigned long" dir="out">
7770 <desc>Percentage of processor time spent in kernel mode as seen by the guest</desc>
7771 </param>
7772 <param name="cpuIdle" type="unsigned long" dir="out">
7773 <desc>Percentage of processor time spent idling as seen by the guest</desc>
7774 </param>
7775 <param name="memTotal" type="unsigned long" dir="out">
7776 <desc>Total amount of physical guest RAM</desc>
7777 </param>
7778 <param name="memFree" type="unsigned long" dir="out">
7779 <desc>Free amount of physical guest RAM</desc>
7780 </param>
7781 <param name="memBalloon" type="unsigned long" dir="out">
7782 <desc>Amount of ballooned physical guest RAM</desc>
7783 </param>
7784 <param name="memShared" type="unsigned long" dir="out">
7785 <desc>Amount of shared physical guest RAM</desc>
7786 </param>
7787 <param name="memCache" type="unsigned long" dir="out">
7788 <desc>Total amount of guest (disk) cache memory</desc>
7789 </param>
7790 <param name="pagedTotal" type="unsigned long" dir="out">
7791 <desc>Total amount of space in the page file</desc>
7792 </param>
7793 <param name="memAllocTotal" type="unsigned long" dir="out">
7794 <desc>Total amount of memory allocated by the hypervisor</desc>
7795 </param>
7796 <param name="memFreeTotal" type="unsigned long" dir="out">
7797 <desc>Total amount of free memory available in the hypervisor</desc>
7798 </param>
7799 <param name="memBalloonTotal" type="unsigned long" dir="out">
7800 <desc>Total amount of memory ballooned by the hypervisor</desc>
7801 </param>
7802 <param name="memSharedTotal" type="unsigned long" dir="out">
7803 <desc>Total amount of shared memory in the hypervisor</desc>
7804 </param>
7805 </method>
7806
7807 <method name="getAdditionsStatus">
7808 <desc>
7809 Retrieve the current status of a certain Guest Additions run level.
7810
7811 <result name="VBOX_E_NOT_SUPPORTED">
7812 Wrong status level specified.
7813 </result>
7814
7815 </desc>
7816 <param name="level" type="AdditionsRunLevelType" dir="in">
7817 <desc>Status level to check</desc>
7818 </param>
7819 <param name="active" type="boolean" dir="return">
7820 <desc>Flag whether the status level has been reached or not</desc>
7821 </param>
7822 </method>
7823
7824 <method name="setCredentials">
7825 <desc>
7826 Store login credentials that can be queried by guest operating
7827 systems with Additions installed. The credentials are transient
7828 to the session and the guest may also choose to erase them. Note
7829 that the caller cannot determine whether the guest operating system
7830 has queried or made use of the credentials.
7831
7832 <result name="VBOX_E_VM_ERROR">
7833 VMM device is not available.
7834 </result>
7835
7836 </desc>
7837 <param name="userName" type="wstring" dir="in">
7838 <desc>User name string, can be empty</desc>
7839 </param>
7840 <param name="password" type="wstring" dir="in">
7841 <desc>Password string, can be empty</desc>
7842 </param>
7843 <param name="domain" type="wstring" dir="in">
7844 <desc>Domain name (guest logon scheme specific), can be empty</desc>
7845 </param>
7846 <param name="allowInteractiveLogon" type="boolean" dir="in">
7847 <desc>
7848 Flag whether the guest should alternatively allow the user to
7849 interactively specify different credentials. This flag might
7850 not be supported by all versions of the Additions.
7851 </desc>
7852 </param>
7853 </method>
7854
7855 <method name="executeProcess">
7856 <desc>
7857 Executes an existing program inside the guest VM.
7858
7859 <result name="VBOX_E_IPRT_ERROR">
7860 Could not execute process.
7861 </result>
7862
7863 </desc>
7864 <param name="execName" type="wstring" dir="in">
7865 <desc>
7866 Full path name of the command to execute on the guest; the
7867 commands has to exists in the guest VM in order to be executed.
7868 </desc>
7869 </param>
7870 <param name="flags" type="unsigned long" dir="in">
7871 <desc>
7872 Execution flags - currently not supported and therefore
7873 has to be set to 0.
7874 </desc>
7875 </param>
7876 <param name="arguments" type="wstring" safearray="yes" dir="in">
7877 <desc>
7878 Array of arguments passed to the execution command.
7879 </desc>
7880 </param>
7881 <param name="environment" type="wstring" safearray="yes" dir="in">
7882 <desc>
7883 Environment variables that can be set while the command is being
7884 executed, in form of "NAME=VALUE"; one pair per entry. To unset a
7885 variable just set its name ("NAME") without a value.
7886 </desc>
7887 </param>
7888 <param name="userName" type="wstring" dir="in">
7889 <desc>
7890 User name under which the command will be executed; has to exist
7891 and have the appropriate rights to execute programs in the VM.
7892 </desc>
7893 </param>
7894 <param name="password" type="wstring" dir="in">
7895 <desc>
7896 Password of the user account specified.
7897 </desc>
7898 </param>
7899 <param name="timeoutMS" type="unsigned long" dir="in">
7900 <desc>
7901 The maximum timeout value (in msec) to wait for finished program
7902 execution. Pass 0 for an infinite timeout.
7903 </desc>
7904 </param>
7905 <param name="pid" type="unsigned long" dir="out">
7906 <desc>
7907 The PID (process ID) of the started command for later reference.
7908 </desc>
7909 </param>
7910 <param name="progress" type="IProgress" dir="return">
7911 <desc>Progress object to track the operation completion.</desc>
7912 </param>
7913 </method>
7914
7915 <method name="getProcessOutput">
7916 <desc>
7917 Retrieves output of a formerly started process.
7918
7919 <result name="VBOX_E_IPRT_ERROR">
7920 Could not retrieve output.
7921 </result>
7922
7923 </desc>
7924 <param name="pid" type="unsigned long" dir="in">
7925 <desc>
7926 Process id returned by earlier executeProcess() call.
7927 </desc>
7928 </param>
7929 <param name="flags" type="unsigned long" dir="in">
7930 <desc>
7931 Flags describing which output to retrieve.
7932 </desc>
7933 </param>
7934 <param name="timeoutMS" type="unsigned long" dir="in">
7935 <desc>
7936 The maximum timeout value (in msec) to wait for output
7937 data. Pass 0 for an infinite timeout.
7938 </desc>
7939 </param>
7940 <param name="size" type="long long" dir="in">
7941 <desc>
7942 Size in bytes to read in the buffer.
7943 </desc>
7944 </param>
7945 <param name="data" type="octet" dir="return" safearray="yes">
7946 <desc>
7947 Buffer for retrieving the actual output. A data size of 0 means end of file
7948 if the requested size was not 0. This is the unprocessed
7949 output data, i.e. the line ending style depends on the platform of
7950 the system the server is running on.
7951 </desc>
7952 </param>
7953 </method>
7954
7955 <method name="getProcessStatus">
7956 <desc>
7957 Retrieves status, exit code and the exit reason of a formerly started process.
7958
7959 <result name="VBOX_E_IPRT_ERROR">
7960 Process with specified PID was not found.
7961 </result>
7962
7963 </desc>
7964 <param name="pid" type="unsigned long" dir="in">
7965 <desc>
7966 Process id returned by earlier executeProcess() call.
7967 </desc>
7968 </param>
7969 <param name="exitcode" type="unsigned long" dir="out">
7970 <desc>
7971 The exit code (if available).
7972 </desc>
7973 </param>
7974 <param name="flags" type="unsigned long" dir="out">
7975 <desc>
7976 Additional flags of process status. Not used at the moment and
7977 must be set to 0.
7978 </desc>
7979 </param>
7980 <param name="reason" type="unsigned long" dir="return">
7981 <desc>
7982 The current process status.
7983 </desc>
7984 </param>
7985 </method>
7986
7987 <method name="copyToGuest">
7988 <desc>
7989 Copies files/directories from host to the guest.
7990
7991 <result name="VBOX_E_IPRT_ERROR">
7992 Error while copying.
7993 </result>
7994
7995 </desc>
7996 <param name="source" type="wstring" dir="in">
7997 <desc>
7998 Source file on the host to copy.
7999 </desc>
8000 </param>
8001 <param name="dest" type="wstring" dir="in">
8002 <desc>
8003 Destination path on the guest.
8004 </desc>
8005 </param>
8006 <param name="userName" type="wstring" dir="in">
8007 <desc>
8008 User name under which the copy command will be executed; the
8009 user has to exist and have the appropriate rights to write to
8010 the destination path.
8011 </desc>
8012 </param>
8013 <param name="password" type="wstring" dir="in">
8014 <desc>
8015 Password of the user account specified.
8016 </desc>
8017 </param>
8018 <param name="flags" type="unsigned long" dir="in">
8019 <desc>
8020 Copy flags.
8021 </desc>
8022 </param>
8023 <param name="progress" type="IProgress" dir="return">
8024 <desc>Progress object to track the operation completion.</desc>
8025 </param>
8026 </method>
8027
8028 <method name="setProcessInput">
8029 <desc>
8030 Sends input into a formerly started process.
8031
8032 <result name="VBOX_E_IPRT_ERROR">
8033 Could not send input.
8034 </result>
8035
8036 </desc>
8037 <param name="pid" type="unsigned long" dir="in">
8038 <desc>
8039 Process id returned by earlier executeProcess() call.
8040 </desc>
8041 </param>
8042 <param name="flags" type="unsigned long" dir="in">
8043 <desc>
8044 Not used, must be set to zero.
8045 </desc>
8046 </param>
8047 <param name="data" type="octet" dir="in" safearray="yes">
8048 <desc>
8049 Buffer of input data to send to the started process to.
8050 </desc>
8051 </param>
8052 <param name="written" type="unsigned long" dir="return">
8053 <desc>
8054 Number of bytes written.
8055 </desc>
8056 </param>
8057 </method>
8058
8059 <method name="updateGuestAdditions">
8060 <desc>
8061 Updates already installed Guest Additions in a VM
8062 (Windows guests only).
8063
8064 <result name="VBOX_E_IPRT_ERROR">
8065 Error while updating.
8066 </result>
8067
8068 </desc>
8069 <param name="source" type="wstring" dir="in">
8070 <desc>
8071 Path to the Guest Additions .ISO file to use for the upate.
8072 </desc>
8073 </param>
8074 <param name="flags" type="unsigned long" dir="in">
8075 <desc>
8076 Additional flags for update process. Not used at the moment and
8077 must be set to 0.
8078 </desc>
8079 </param>
8080 <param name="progress" type="IProgress" dir="return">
8081 <desc>Progress object to track the operation completion.</desc>
8082 </param>
8083 </method>
8084
8085 </interface>
8086
8087
8088 <!--
8089 // IProgress
8090 /////////////////////////////////////////////////////////////////////////
8091 -->
8092
8093 <interface
8094 name="IProgress" extends="$unknown"
8095 uuid="A163C98F-8635-4AA8-B770-A9941737F3EF"
8096 wsmap="managed"
8097 >
8098 <desc>
8099 The IProgress interface is used to track and control
8100 asynchronous tasks within VirtualBox.
8101
8102 An instance of this is returned every time VirtualBox starts
8103 an asynchronous task (in other words, a separate thread) which
8104 continues to run after a method call returns. For example,
8105 <link to="IConsole::saveState" />, which saves the state of
8106 a running virtual machine, can take a long time to complete.
8107 To be able to display a progress bar, a user interface such as
8108 the VirtualBox graphical user interface can use the IProgress
8109 object returned by that method.
8110
8111 Note that IProgress is a "read-only" interface in the sense
8112 that only the VirtualBox internals behind the Main API can
8113 create and manipulate progress objects, whereas client code
8114 can only use the IProgress object to monitor a task's
8115 progress and, if <link to="#cancelable" /> is @c true,
8116 cancel the task by calling <link to="#cancel" />.
8117
8118 A task represented by IProgress consists of either one or
8119 several sub-operations that run sequentially, one by one (see
8120 <link to="#operation" /> and <link to="#operationCount" />).
8121 Every operation is identified by a number (starting from 0)
8122 and has a separate description.
8123
8124 You can find the individual percentage of completion of the current
8125 operation in <link to="#operationPercent" /> and the
8126 percentage of completion of the task as a whole
8127 in <link to="#percent" />.
8128
8129 Similarly, you can wait for the completion of a particular
8130 operation via <link to="#waitForOperationCompletion" /> or
8131 for the completion of the whole task via
8132 <link to="#waitForCompletion" />.
8133 </desc>
8134
8135 <attribute name="id" type="uuid" mod="string" readonly="yes">
8136 <desc>ID of the task.</desc>
8137 </attribute>
8138
8139 <attribute name="description" type="wstring" readonly="yes">
8140 <desc>Description of the task.</desc>
8141 </attribute>
8142
8143 <attribute name="initiator" type="$unknown" readonly="yes">
8144 <desc>Initiator of the task.</desc>
8145 </attribute>
8146
8147 <attribute name="cancelable" type="boolean" readonly="yes">
8148 <desc>Whether the task can be interrupted.</desc>
8149 </attribute>
8150
8151 <attribute name="percent" type="unsigned long" readonly="yes">
8152 <desc>
8153 Current progress value of the task as a whole, in percent.
8154 This value depends on how many operations are already complete.
8155 Returns 100 if <link to="#completed" /> is @c true.
8156 </desc>
8157 </attribute>
8158
8159 <attribute name="timeRemaining" type="long" readonly="yes">
8160 <desc>
8161 Estimated remaining time until the task completes, in
8162 seconds. Returns 0 once the task has completed; returns -1
8163 if the remaining time cannot be computed, in particular if
8164 the current progress is 0.
8165
8166 Even if a value is returned, the estimate will be unreliable
8167 for low progress values. It will become more reliable as the
8168 task progresses; it is not recommended to display an ETA
8169 before at least 20% of a task have completed.
8170 </desc>
8171 </attribute>
8172
8173 <attribute name="completed" type="boolean" readonly="yes">
8174 <desc>Whether the task has been completed.</desc>
8175 </attribute>
8176
8177 <attribute name="canceled" type="boolean" readonly="yes">
8178 <desc>Whether the task has been canceled.</desc>
8179 </attribute>
8180
8181 <attribute name="resultCode" type="long" readonly="yes">
8182 <desc>
8183 Result code of the progress task.
8184 Valid only if <link to="#completed"/> is @c true.
8185 </desc>
8186 </attribute>
8187
8188 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
8189 <desc>
8190 Extended information about the unsuccessful result of the
8191 progress operation. May be @c null if no extended information
8192 is available.
8193 Valid only if <link to="#completed"/> is @c true and
8194 <link to="#resultCode"/> indicates a failure.
8195 </desc>
8196 </attribute>
8197
8198 <attribute name="operationCount" type="unsigned long" readonly="yes">
8199 <desc>
8200 Number of sub-operations this task is divided into.
8201 Every task consists of at least one suboperation.
8202 </desc>
8203 </attribute>
8204
8205 <attribute name="operation" type="unsigned long" readonly="yes">
8206 <desc>Number of the sub-operation being currently executed.</desc>
8207 </attribute>
8208
8209 <attribute name="operationDescription" type="wstring" readonly="yes">
8210 <desc>
8211 Description of the sub-operation being currently executed.
8212 </desc>
8213 </attribute>
8214
8215 <attribute name="operationPercent" type="unsigned long" readonly="yes">
8216 <desc>Progress value of the current sub-operation only, in percent.</desc>
8217 </attribute>
8218
8219 <attribute name="operationWeight" type="unsigned long" readonly="yes">
8220 <desc>Weight value of the current sub-operation only.</desc>
8221 </attribute>
8222
8223 <attribute name="timeout" type="unsigned long">
8224 <desc>
8225 When non-zero, this specifies the number of milliseconds after which
8226 the operation will automatically be canceled. This can only be set on
8227 cancelable objects.
8228 </desc>
8229 </attribute>
8230
8231 <method name="setCurrentOperationProgress">
8232 <desc>Internal method, not to be called externally.</desc>
8233 <param name="percent" type="unsigned long" dir="in" />
8234 </method>
8235 <method name="setNextOperation">
8236 <desc>Internal method, not to be called externally.</desc>
8237 <param name="nextOperationDescription" type="wstring" dir="in" />
8238 <param name="nextOperationsWeight" type="unsigned long" dir="in" />
8239 </method>
8240
8241 <method name="waitForCompletion">
8242 <desc>
8243 Waits until the task is done (including all sub-operations)
8244 with a given timeout in milliseconds; specify -1 for an indefinite wait.
8245
8246 Note that the VirtualBox/XPCOM/COM/native event queues of the calling
8247 thread are not processed while waiting. Neglecting event queues may
8248 have dire consequences (degrade performance, resource hogs,
8249 deadlocks, etc.), this is specially so for the main thread on
8250 platforms using XPCOM. Callers are adviced wait for short periods
8251 and service their event queues between calls, or to create a worker
8252 thread to do the waiting.
8253
8254 <result name="VBOX_E_IPRT_ERROR">
8255 Failed to wait for task completion.
8256 </result>
8257 </desc>
8258
8259 <param name="timeout" type="long" dir="in">
8260 <desc>
8261 Maximum time in milliseconds to wait or -1 to wait indefinitely.
8262 </desc>
8263 </param>
8264 </method>
8265
8266 <method name="waitForOperationCompletion">
8267 <desc>
8268 Waits until the given operation is done with a given timeout in
8269 milliseconds; specify -1 for an indefinite wait.
8270
8271 See <link to="#waitForCompletion"> for event queue considerations.</link>
8272
8273 <result name="VBOX_E_IPRT_ERROR">
8274 Failed to wait for operation completion.
8275 </result>
8276
8277 </desc>
8278 <param name="operation" type="unsigned long" dir="in">
8279 <desc>
8280 Number of the operation to wait for.
8281 Must be less than <link to="#operationCount"/>.
8282 </desc>
8283 </param>
8284 <param name="timeout" type="long" dir="in">
8285 <desc>
8286 Maximum time in milliseconds to wait or -1 to wait indefinitely.
8287 </desc>
8288 </param>
8289 </method>
8290
8291 <method name="cancel">
8292 <desc>
8293 Cancels the task.
8294 <note>
8295 If <link to="#cancelable"/> is @c false, then this method will fail.
8296 </note>
8297
8298 <result name="VBOX_E_INVALID_OBJECT_STATE">
8299 Operation cannot be canceled.
8300 </result>
8301
8302 </desc>
8303 </method>
8304
8305 </interface>
8306
8307 <!--
8308 // ISnapshot
8309 /////////////////////////////////////////////////////////////////////////
8310 -->
8311
8312 <interface
8313 name="ISnapshot" extends="$unknown"
8314 uuid="1a2d0551-58a4-4107-857e-ef414fc42ffc"
8315 wsmap="managed"
8316 >
8317 <desc>
8318 The ISnapshot interface represents a snapshot of the virtual
8319 machine.
8320
8321 Together with the differencing media that are created
8322 when a snapshot is taken, a machine can be brought back to
8323 the exact state it was in when the snapshot was taken.
8324
8325 The ISnapshot interface has no methods, only attributes; snapshots
8326 are controlled through methods of the <link to="IConsole" /> interface
8327 which also manage the media associated with the snapshot.
8328 The following operations exist:
8329
8330 <ul>
8331 <li><link to="IConsole::takeSnapshot"/> creates a new snapshot
8332 by creating new, empty differencing images for the machine's
8333 media and saving the VM settings and (if the VM is running)
8334 the current VM state in the snapshot.
8335
8336 The differencing images will then receive all data written to
8337 the machine's media, while their parent (base) images
8338 remain unmodified after the snapshot has been taken (see
8339 <link to="IMedium" /> for details about differencing images).
8340 This simplifies restoring a machine to the state of a snapshot:
8341 only the differencing images need to be deleted.
8342
8343 The current machine state is not changed by taking a snapshot.
8344 If the machine is running, it will resume execution after the
8345 snapshot has been taken. After calling this,
8346 <link to="IMachine::currentSnapshot" /> is set to the snapshot
8347 just created.
8348 </li>
8349
8350 <li><link to="IConsole::restoreSnapshot"/> resets a machine to
8351 the state of a previous snapshot by deleting the differencing
8352 image of each of the machine's media and setting the machine's
8353 settings and state to the state that was saved in the snapshot (if any).
8354
8355 This destroys the machine's current state. After calling this,
8356 <link to="IMachine::currentSnapshot" /> is set to the snapshot that was
8357 restored.
8358 </li>
8359
8360 <li><link to="IConsole::deleteSnapshot"/> deletes a snapshot
8361 without affecting the current machine state.
8362
8363 This does not change the current machine state, but instead frees the
8364 resources allocated when the snapshot was taken: the settings and machine
8365 state file are deleted (if any), and the snapshot's differencing image for
8366 each of the machine's media gets merged with its parent image.
8367
8368 Neither the current machine state nor other snapshots are affected
8369 by this operation, except that parent media will be modified
8370 to contain the disk data associated with the snapshot being deleted.
8371
8372 When deleting the current snapshot, the <link to="IMachine::currentSnapshot" />
8373 attribute is set to the current snapshot's parent or NULL if it
8374 has no parent. Otherwise the attribute is unchanged.
8375 </li>
8376 </ul>
8377
8378 Each snapshot contains the settings of the virtual machine (hardware
8379 configuration etc.). In addition, if the machine was running when the
8380 snapshot was taken (<link to="IMachine::state"/> is <link to="MachineState_Running"/>),
8381 the current VM state is saved in the snapshot (similarly to what happens
8382 when a VM's state is saved). The snapshot is then said to
8383 be <i>online</i> because when restoring it, the VM will be running.
8384
8385 If the machine is saved (<link to="MachineState_Saved"/>), the snapshot
8386 receives a copy of the execution state file (<link to="IMachine::stateFilePath"/>).
8387
8388 Otherwise, if the machine was not running (<link to="MachineState_PoweredOff"/>
8389 or <link to="MachineState_Aborted"/>), the snapshot is <i>offline</i>;
8390 it then contains a so-called "zero execution state", representing a
8391 machine that is powered off.
8392 </desc>
8393
8394 <attribute name="id" type="uuid" mod="string" readonly="yes">
8395 <desc>UUID of the snapshot.</desc>
8396 </attribute>
8397
8398 <attribute name="name" type="wstring">
8399 <desc>Short name of the snapshot.</desc>
8400 </attribute>
8401
8402 <attribute name="description" type="wstring">
8403 <desc>Optional description of the snapshot.</desc>
8404 </attribute>
8405
8406 <attribute name="timeStamp" type="long long" readonly="yes">
8407 <desc>
8408 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
8409 </desc>
8410 </attribute>
8411
8412 <attribute name="online" type="boolean" readonly="yes">
8413 <desc>
8414 @c true if this snapshot is an online snapshot and @c false otherwise.
8415
8416 When this attribute is @c true, the
8417 <link to="IMachine::stateFilePath"/> attribute of the
8418 <link to="#machine"/> object associated with this snapshot
8419 will point to the saved state file. Otherwise, it will be
8420 an empty string.
8421 </desc>
8422 </attribute>
8423
8424 <attribute name="machine" type="IMachine" readonly="yes">
8425 <desc>
8426 Virtual machine this snapshot is taken on. This object
8427 stores all settings the machine had when taking this snapshot.
8428 <note>
8429 The returned machine object is immutable, i.e. no
8430 any settings can be changed.
8431 </note>
8432 </desc>
8433 </attribute>
8434
8435 <attribute name="parent" type="ISnapshot" readonly="yes">
8436 <desc>
8437 Parent snapshot (a snapshot this one is based on), or
8438 @c null if the snapshot has no parent (i.e. is the first snapshot).
8439 </desc>
8440 </attribute>
8441
8442 <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
8443 <desc>
8444 Child snapshots (all snapshots having this one as a parent).
8445 </desc>
8446 </attribute>
8447
8448 </interface>
8449
8450
8451 <!--
8452 // IMedium
8453 /////////////////////////////////////////////////////////////////////////
8454 -->
8455
8456 <enum
8457 name="MediumState"
8458 uuid="ef41e980-e012-43cd-9dea-479d4ef14d13"
8459 >
8460 <desc>
8461 Virtual medium state.
8462 <see>IMedium</see>
8463 </desc>
8464
8465 <const name="NotCreated" value="0">
8466 <desc>
8467 Associated medium storage does not exist (either was not created yet or
8468 was deleted).
8469 </desc>
8470 </const>
8471 <const name="Created" value="1">
8472 <desc>
8473 Associated storage exists and accessible; this gets set if the
8474 accessibility check performed by <link to="IMedium::refreshState" />
8475 was successful.
8476 </desc>
8477 </const>
8478 <const name="LockedRead" value="2">
8479 <desc>
8480 Medium is locked for reading (see <link to="IMedium::lockRead"/>),
8481 no data modification is possible.
8482 </desc>
8483 </const>
8484 <const name="LockedWrite" value="3">
8485 <desc>
8486 Medium is locked for writing (see <link to="IMedium::lockWrite"/>),
8487 no concurrent data reading or modification is possible.
8488 </desc>
8489 </const>
8490 <const name="Inaccessible" value="4">
8491 <desc>
8492 Medium accessibility check (see <link to="IMedium::refreshState" />) has
8493 not yet been performed, or else, associated medium storage is not
8494 accessible. In the first case, <link to="IMedium::lastAccessError"/>
8495 is empty, in the second case, it describes the error that occurred.
8496 </desc>
8497 </const>
8498 <const name="Creating" value="5">
8499 <desc>
8500 Associated medium storage is being created.
8501 </desc>
8502 </const>
8503 <const name="Deleting" value="6">
8504 <desc>
8505 Associated medium storage is being deleted.
8506 </desc>
8507 </const>
8508 </enum>
8509
8510 <enum
8511 name="MediumType"
8512 uuid="19388a99-8e70-4bd4-9a95-90cbc513ef6d"
8513 >
8514 <desc>
8515 Virtual medium type.
8516 <see>IMedium</see>
8517 </desc>
8518
8519 <const name="Normal" value="0">
8520 <desc>
8521 Normal medium (attached directly or indirectly, preserved
8522 when taking snapshots).
8523 </desc>
8524 </const>
8525 <const name="Immutable" value="1">
8526 <desc>
8527 Immutable medium (attached indirectly, changes are wiped out
8528 the next time the virtual machine is started).
8529 </desc>
8530 </const>
8531 <const name="Writethrough" value="2">
8532 <desc>
8533 Write through medium (attached directly, ignored when
8534 taking snapshots).
8535 </desc>
8536 </const>
8537 <const name="Shareable" value="3">
8538 <desc>
8539 Allow using this medium concurrently by several machines.
8540 <note>Present since VirtualBox 3.2.0, and accepted since 3.2.8.</note>
8541 </desc>
8542 </const>
8543 <const name="Readonly" value="4">
8544 <desc>
8545 A readonly medium, which can of course be used by several machines.
8546 <note>Present and accepted since VirtualBox 4.0.</note>
8547 </desc>
8548 </const>
8549 </enum>
8550
8551 <enum
8552 name="MediumVariant"
8553 uuid="584ea502-143b-4ab0-ad14-d1028fdf0316"
8554 >
8555 <desc>
8556 Virtual medium image variant. More than one flag may be set.
8557 <see>IMedium</see>
8558 </desc>
8559
8560 <const name="Standard" value="0">
8561 <desc>
8562 No particular variant requested, results in using the backend default.
8563 </desc>
8564 </const>
8565 <const name="VmdkSplit2G" value="0x01">
8566 <desc>
8567 VMDK image split in chunks of less than 2GByte.
8568 </desc>
8569 </const>
8570 <const name="VmdkStreamOptimized" value="0x04">
8571 <desc>
8572 VMDK streamOptimized image. Special import/export format which is
8573 read-only/append-only.
8574 </desc>
8575 </const>
8576 <const name="VmdkESX" value="0x08">
8577 <desc>
8578 VMDK format variant used on ESX products.
8579 </desc>
8580 </const>
8581 <const name="Fixed" value="0x10000">
8582 <desc>
8583 Fixed image. Only allowed for base images.
8584 </desc>
8585 </const>
8586 <const name="Diff" value="0x20000">
8587 <desc>
8588 Differencing image. Only allowed for child images.
8589 </desc>
8590 </const>
8591 </enum>
8592
8593 <interface
8594 name="IMediumAttachment" extends="$unknown"
8595 uuid="c29452cc-ca72-404b-9261-cfc514f1e412"
8596 wsmap="struct"
8597 >
8598 <desc>
8599 The IMediumAttachment interface links storage media to virtual machines.
8600 For each medium (<link to="IMedium"/>) which has been attached to a
8601 storage controller (<link to="IStorageController"/>) of a machine
8602 (<link to="IMachine"/>) via the <link to="IMachine::attachDevice" />
8603 method, one instance of IMediumAttachment is added to the machine's
8604 <link to="IMachine::mediumAttachments"/> array attribute.
8605
8606 Each medium attachment specifies the storage controller as well as a
8607 port and device number and the IMedium instance representing a virtual
8608 hard disk or floppy or DVD image.
8609
8610 For removeable media (DVDs or floppies), there are two additional
8611 options. For one, the IMedium instance can be @c null to represent
8612 an empty drive with no media inserted (see <link to="IMachine::mountMedium" />);
8613 secondly, the medium can be one of the pseudo-media for host drives
8614 listed in <link to="IHost::DVDDrives"/> or <link to="IHost::floppyDrives"/>.
8615 </desc>
8616
8617 <attribute name="medium" type="IMedium" readonly="yes">
8618 <desc>Medium object associated with this attachment; it
8619 can be @c null for removable devices.</desc>
8620 </attribute>
8621
8622 <attribute name="controller" type="wstring" readonly="yes">
8623 <desc>Name of the storage controller of this attachment; this
8624 refers to one of the controllers in <link to="IMachine::storageControllers" />
8625 by name.</desc>
8626 </attribute>
8627
8628 <attribute name="port" type="long" readonly="yes">
8629 <desc>Port number of this attachment.
8630 See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
8631 </desc>
8632 </attribute>
8633
8634 <attribute name="device" type="long" readonly="yes">
8635 <desc>Device slot number of this attachment.
8636 See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
8637 </desc>
8638 </attribute>
8639
8640 <attribute name="type" type="DeviceType" readonly="yes">
8641 <desc>Device type of this attachment.</desc>
8642 </attribute>
8643
8644 <attribute name="passthrough" type="boolean" readonly="yes">
8645 <desc>Pass I/O requests through to a device on the host.</desc>
8646 </attribute>
8647
8648 <attribute name="bandwidthLimit" type="unsigned long">
8649 <desc>
8650 Maximum throughput allowed for this medium attachment, in units of 1 mbps.
8651 A zero value means uncapped/unlimited.
8652 </desc>
8653 </attribute>
8654
8655 </interface>
8656
8657 <interface
8658 name="IMedium" extends="$unknown"
8659 uuid="bfcf5b8c-5155-4f24-9414-9457054b16db"
8660 wsmap="managed"
8661 >
8662 <desc>
8663 The IMedium interface represents virtual storage for a machine's
8664 hard disks, CD/DVD or floppy drives. It will typically represent
8665 a disk image on the host, for example a VDI or VMDK file representing
8666 a virtual hard disk, or an ISO or RAW file representing virtual
8667 removable media, but can also point to a network location (e.g.
8668 for iSCSI targets).
8669
8670 Instances of IMedium are connected to virtual machines by way of
8671 medium attachments (see <link to="IMediumAttachment" />), which link
8672 the storage medium to a particular device slot of a storage controller
8673 of the virtual machine.
8674 In the VirtualBox API, virtual storage is therefore always represented
8675 by the following chain of object links:
8676
8677 <ul>
8678 <li><link to="IMachine::storageControllers"/> contains an array of
8679 storage controllers (IDE, SATA, SCSI, SAS or a floppy controller;
8680 these are instances of <link to="IStorageController"/>).</li>
8681 <li><link to="IMachine::mediumAttachments"/> contains an array of
8682 medium attachments (instances of <link to="IMediumAttachment"/>),
8683 each containing a storage controller from the above array, a
8684 port/device specification, and an instance of IMedium representing
8685 the medium storage (image file).
8686
8687 For removable media, the storage medium is optional; a medium
8688 attachment with no medium represents a CD/DVD or floppy drive
8689 with no medium inserted. By contrast, hard disk attachments
8690 will always have an IMedium object attached.</li>
8691 <li>Each IMedium in turn points to a storage unit (such as a file
8692 on the host computer or a network resource) that holds actual
8693 data. This location is represented by the <link to="#location"/>
8694 attribute.</li>
8695 </ul>
8696
8697 Existing media are opened using <link to="IVirtualBox::openMedium"/>;
8698 new hard disk media can be created with the VirtualBox API using the
8699 <link to="IVirtualBox::createHardDisk"/> method.
8700
8701 CD/DVD and floppy images (ISO and RAW files) are usually created outside
8702 VirtualBox, e.g. by storing a copy of the real medium of the corresponding
8703 type in a regular file.
8704
8705 Only for CD/DVDs and floppies, an IMedium instance can also represent a host
8706 drive; in that case the <link to="#id" /> attribute contains the UUID of
8707 one of the drives in <link to="IHost::DVDDrives" /> or <link to="IHost::floppyDrives" />.
8708
8709 <h3>Known media</h3>
8710
8711 When an existing medium is opened and attached to a virtual machine, it
8712 is automatically added to a media registry. If the medium has first
8713 been attached to a machine which was created by VirtualBox 4.0 or later,
8714 it is added to that machine's media registry (in the machine XML settings
8715 file; this way all information about a machine's media attachments is
8716 contained in a single file). For older media attachments (i.e. if the
8717 medium was first attached to a machine which was created with a VirtualBox
8718 version before 4.0), media continue to be registered in the global
8719 VirtualBox settings file, for backwards compatibility.
8720
8721 See <link to="IVirtualBox::openMedium" /> for more information.
8722
8723 All known media can be enumerated using
8724 <link to="IVirtualBox::hardDisks"/>,
8725 <link to="IVirtualBox::DVDImages"/> and
8726 <link to="IVirtualBox::floppyImages"/> attributes. Individual media can be
8727 quickly found using the <link to="IVirtualBox::findMedium"/> method.
8728
8729 Only known media can be attached to virtual machines.
8730
8731 Removing known media from the media registry is performed when the given
8732 medium is closed using the <link to="#close"/> method or when its
8733 associated storage unit is deleted.
8734
8735 <h3>Accessibility checks</h3>
8736
8737 VirtualBox defers media accessibility checks until the <link to="#refreshState" />
8738 method is called explicitly on a medium. This is done to make the VirtualBox object
8739 ready for serving requests as fast as possible and let the end-user
8740 application decide if it needs to check media accessibility right away or not.
8741
8742 As a result, when VirtualBox starts up (e.g. the VirtualBox
8743 object gets created for the first time), all known media are in the
8744 "Inaccessible" state, but the value of the <link to="#lastAccessError"/>
8745 attribute is an empty string because no actual accessibility check has
8746 been made yet.
8747
8748 After calling <link to="#refreshState" />, a medium is considered
8749 <i>accessible</i> if its storage unit can be read. In that case, the
8750 <link to="#state"/> attribute has a value of "Created". If the storage
8751 unit cannot be read (for example, because it is located on a disconnected
8752 network resource, or was accidentally deleted outside VirtualBox),
8753 the medium is considered <i>inaccessible</i>, which is indicated by the
8754 "Inaccessible" state. The exact reason why the medium is inaccessible can be
8755 obtained by reading the <link to="#lastAccessError"/> attribute.
8756
8757 <h3>Medium types</h3>
8758
8759 There are four types of medium behavior (see <link to="MediumType" />):
8760 "normal", "immutable", "writethrough" and "shareable", represented by the
8761 <link to="#type"/> attribute. The type of the medium defines how the
8762 medium is attached to a virtual machine and what happens when a
8763 <link to="ISnapshot">snapshot</link> of the virtual machine with the
8764 attached medium is taken. At the moment DVD and floppy media are always
8765 of type "writethrough".
8766
8767 All media can be also divided in two groups: <i>base</i> media and
8768 <i>differencing</i> media. A base medium contains all sectors of the
8769 medium data in its own storage and therefore can be used independently.
8770 In contrast, a differencing medium is a "delta" to some other medium and
8771 contains only those sectors which differ from that other medium, which is
8772 then called a <i>parent</i>. The differencing medium is said to be
8773 <i>linked to</i> that parent. The parent may be itself a differencing
8774 medium, thus forming a chain of linked media. The last element in that
8775 chain must always be a base medium. Note that several differencing
8776 media may be linked to the same parent medium.
8777
8778 Differencing media can be distinguished from base media by querying the
8779 <link to="#parent"/> attribute: base media do not have parents they would
8780 depend on, so the value of this attribute is always @c null for them.
8781 Using this attribute, it is possible to walk up the medium tree (from the
8782 child medium to its parent). It is also possible to walk down the tree
8783 using the <link to="#children"/> attribute.
8784
8785 Note that the type of all differencing media is "normal"; all other
8786 values are meaningless for them. Base media may be of any type.
8787
8788 <h3>Creating hard disks</h3>
8789
8790 New base hard disks are created using
8791 <link to="IVirtualBox::createHardDisk"/>. Existing hard disks are
8792 opened using <link to="IVirtualBox::openMedium"/>. Differencing hard
8793 disks are usually implicitly created by VirtualBox when needed but may
8794 also be created explicitly using <link to="#createDiffStorage"/>.
8795
8796 After the hard disk is successfully created (including the storage unit)
8797 or opened, it becomes a known hard disk (remembered in the internal media
8798 registry). Known hard disks can be attached to a virtual machine, accessed
8799 through <link to="IVirtualBox::findMedium"/> or enumerated using the
8800 <link to="IVirtualBox::hardDisks"/> array (only for base hard disks).
8801
8802 The following methods, besides <link to="IMedium::close"/>,
8803 automatically remove the hard disk from the media registry:
8804 <ul>
8805 <li><link to="#deleteStorage"/></li>
8806 <li><link to="#mergeTo"/></li>
8807 </ul>
8808
8809 If the storage unit of the hard disk is a regular file in the host's
8810 file system then the rules stated in the description of the
8811 <link to="IMedium::location"/> attribute apply when setting its value.
8812
8813 <h4>Automatic composition of the file name part</h4>
8814
8815 Another extension to the <link to="IMedium::location"/> attribute is that
8816 there is a possibility to cause VirtualBox to compose a unique value for
8817 the file name part of the location using the UUID of the hard disk. This
8818 applies only to hard disks in <link to="MediumState_NotCreated"/> state,
8819 e.g. before the storage unit is created, and works as follows. You set the
8820 value of the <link to="IMedium::location"/> attribute to a location
8821 specification which only contains the path specification but not the file
8822 name part and ends with either a forward slash or a backslash character.
8823 In response, VirtualBox will generate a new UUID for the hard disk and
8824 compose the file name using the following pattern:
8825 <pre>
8826 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
8827 </pre>
8828 where <tt>&lt;path&gt;</tt> is the supplied path specification,
8829 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
8830 is the default extension for the storage format of this hard disk. After
8831 that, you may call any of the methods that create a new hard disk storage
8832 unit and they will use the generated UUID and file name.
8833
8834 <h3>Attaching Hard Disks</h3>
8835
8836 Hard disks are attached to virtual machines using the
8837 <link to="IMachine::attachDevice"/> method and detached using the
8838 <link to="IMachine::detachDevice"/> method. Depending on their
8839 <link to="#type"/>, hard disks are attached either
8840 <i>directly</i> or <i>indirectly</i>.
8841
8842 When a hard disk is being attached directly, it is associated with the
8843 virtual machine and used for hard disk operations when the machine is
8844 running. When a hard disk is being attached indirectly, a new differencing
8845 hard disk linked to it is implicitly created and this differencing hard
8846 disk is associated with the machine and used for hard disk operations.
8847 This also means that if <link to="IMachine::attachDevice"/> performs
8848 a direct attachment then the same hard disk will be returned in response
8849 to the subsequent <link to="IMachine::getMedium"/> call; however if
8850 an indirect attachment is performed then
8851 <link to="IMachine::getMedium"/> will return the implicitly created
8852 differencing hard disk, not the original one passed to <link
8853 to="IMachine::attachDevice"/>. In detail:
8854
8855 <ul>
8856 <li><b>Normal base</b> hard disks that do not have children (i.e.
8857 differencing hard disks linked to them) and that are not already
8858 attached to virtual machines in snapshots are attached <b>directly</b>.
8859 Otherwise, they are attached <b>indirectly</b> because having
8860 dependent children or being part of the snapshot makes it impossible
8861 to modify hard disk contents without breaking the integrity of the
8862 dependent party. The <link to="#readOnly"/> attribute allows to
8863 quickly determine the kind of the attachment for the given hard
8864 disk. Note that if a normal base hard disk is to be indirectly
8865 attached to a virtual machine with snapshots then a special
8866 procedure called <i>smart attachment</i> is performed (see below).</li>
8867 <li><b>Normal differencing</b> hard disks are like normal base hard disks:
8868 they are attached <b>directly</b> if they do not have children and are
8869 not attached to virtual machines in snapshots, and <b>indirectly</b>
8870 otherwise. Note that the smart attachment procedure is never performed
8871 for differencing hard disks.</li>
8872 <li><b>Immutable</b> hard disks are always attached <b>indirectly</b> because
8873 they are designed to be non-writable. If an immutable hard disk is
8874 attached to a virtual machine with snapshots then a special
8875 procedure called smart attachment is performed (see below).</li>
8876 <li><b>Writethrough</b> hard disks are always attached <b>directly</b>,
8877 also as designed. This also means that writethrough hard disks cannot
8878 have other hard disks linked to them at all.</li>
8879 <li><b>Shareable</b> hard disks are always attached <b>directly</b>,
8880 also as designed. This also means that shareable hard disks cannot
8881 have other hard disks linked to them at all. They behave almost
8882 like writethrough hard disks, except that shareable hard disks can
8883 be attached to several virtual machines which are running, allowing
8884 concurrent accesses. You need special cluster software running in
8885 the virtual machines to make use of such disks.</li>
8886 </ul>
8887
8888 Note that the same hard disk, regardless of its type, may be attached to
8889 more than one virtual machine at a time. In this case, the machine that is
8890 started first gains exclusive access to the hard disk and attempts to
8891 start other machines having this hard disk attached will fail until the
8892 first machine is powered down.
8893
8894 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
8895 that the given hard disk remains associated with the given machine after a
8896 successful <link to="IMachine::detachDevice"/> call until
8897 <link to="IMachine::saveSettings"/> is called to save all changes to
8898 machine settings to disk. This deferring is necessary to guarantee that
8899 the hard disk configuration may be restored at any time by a call to
8900 <link to="IMachine::discardSettings"/> before the settings
8901 are saved (committed).
8902
8903 Note that if <link to="IMachine::discardSettings"/> is called after
8904 indirectly attaching some hard disks to the machine but before a call to
8905 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
8906 all differencing hard disks implicitly created by
8907 <link to="IMachine::attachDevice"/> for these indirect attachments.
8908 Such implicitly created hard disks will also be immediately deleted when
8909 detached explicitly using the <link to="IMachine::detachDevice"/>
8910 call if it is made before <link to="IMachine::saveSettings"/>. This
8911 implicit deletion is safe because newly created differencing hard
8912 disks do not contain any user data.
8913
8914 However, keep in mind that detaching differencing hard disks that were
8915 implicitly created by <link to="IMachine::attachDevice"/>
8916 before the last <link to="IMachine::saveSettings"/> call will
8917 <b>not</b> implicitly delete them as they may already contain some data
8918 (for example, as a result of virtual machine execution). If these hard
8919 disks are no more necessary, the caller can always delete them explicitly
8920 using <link to="#deleteStorage"/> after they are actually de-associated
8921 from this machine by the <link to="IMachine::saveSettings"/> call.
8922
8923 <h3>Smart Attachment</h3>
8924
8925 When normal base or immutable hard disks are indirectly attached to a
8926 virtual machine then some additional steps are performed to make sure the
8927 virtual machine will have the most recent "view" of the hard disk being
8928 attached. These steps include walking through the machine's snapshots
8929 starting from the current one and going through ancestors up to the first
8930 snapshot. Hard disks attached to the virtual machine in all
8931 of the encountered snapshots are checked whether they are descendants of
8932 the given normal base or immutable hard disk. The first found child (which
8933 is the differencing hard disk) will be used instead of the normal base or
8934 immutable hard disk as a parent for creating a new differencing hard disk
8935 that will be actually attached to the machine. And only if no descendants
8936 are found or if the virtual machine does not have any snapshots then the
8937 normal base or immutable hard disk will be used itself as a parent for
8938 this differencing hard disk.
8939
8940 It is easier to explain what smart attachment does using the
8941 following example:
8942 <pre>
8943BEFORE attaching B.vdi: AFTER attaching B.vdi:
8944
8945Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
8946 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
8947 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
8948 Snapshot 4 (none) Snapshot 4 (none)
8949 CurState (none) CurState (D3->D2.vdi)
8950
8951 NOT
8952 ...
8953 CurState (D3->B.vdi)
8954 </pre>
8955 The first column is the virtual machine configuration before the base hard
8956 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
8957 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
8958 mean that the hard disk that is actually attached to the machine is a
8959 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
8960 another hard disk, <tt>B.vdi</tt>.
8961
8962 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
8963 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
8964 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
8965 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
8966 it cannot be attached directly and needs an indirect attachment (i.e.
8967 implicit creation of a new differencing hard disk). Due to the smart
8968 attachment procedure, the new differencing hard disk
8969 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
8970 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
8971 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
8972 machine.
8973
8974 Note that if there is more than one descendant hard disk of the given base
8975 hard disk found in a snapshot, and there is an exact device, channel and
8976 bus match, then this exact match will be used. Otherwise, the youngest
8977 descendant will be picked up.
8978
8979 There is one more important aspect of the smart attachment procedure which
8980 is not related to snapshots at all. Before walking through the snapshots
8981 as described above, the backup copy of the current list of hard disk
8982 attachment is searched for descendants. This backup copy is created when
8983 the hard disk configuration is changed for the first time after the last
8984 <link to="IMachine::saveSettings"/> call and used by
8985 <link to="IMachine::discardSettings"/> to undo the recent hard disk
8986 changes. When such a descendant is found in this backup copy, it will be
8987 simply re-attached back, without creating a new differencing hard disk for
8988 it. This optimization is necessary to make it possible to re-attach the
8989 base or immutable hard disk to a different bus, channel or device slot
8990 without losing the contents of the differencing hard disk actually
8991 attached to the machine in place of it.
8992 </desc>
8993
8994 <attribute name="id" type="uuid" mod="string" readonly="yes">
8995 <desc>
8996 UUID of the medium. For a newly created medium, this value is a randomly
8997 generated UUID.
8998
8999 <note>
9000 For media in one of MediumState_NotCreated, MediumState_Creating or
9001 MediumState_Deleting states, the value of this property is undefined
9002 and will most likely be an empty UUID.
9003 </note>
9004 </desc>
9005 </attribute>
9006
9007 <attribute name="description" type="wstring">
9008 <desc>
9009 Optional description of the medium. For a newly created medium the value
9010 of this attribute is an empty string.
9011
9012 Medium types that don't support this attribute will return E_NOTIMPL in
9013 attempt to get or set this attribute's value.
9014
9015 <note>
9016 For some storage types, reading this attribute may return an outdated
9017 (last known) value when <link to="#state"/> is <link
9018 to="MediumState_Inaccessible"/> or <link
9019 to="MediumState_LockedWrite"/> because the value of this attribute is
9020 stored within the storage unit itself. Also note that changing the
9021 attribute value is not possible in such case, as well as when the
9022 medium is the <link to="MediumState_LockedRead"/> state.
9023 </note>
9024 </desc>
9025 </attribute>
9026
9027 <attribute name="state" type="MediumState" readonly="yes">
9028 <desc>
9029 Returns the current medium state, which is the last state set by
9030 the accessibility check performed by <link to="#refreshState"/>.
9031 If that method has not yet been called on the medium, the state
9032 is "Inaccessible"; as opposed to truly inaccessible media, the
9033 value of <link to="#lastAccessError"/> will be an empty string in
9034 that case.
9035
9036 <note>As of version 3.1, this no longer performs an accessibility check
9037 automatically; call <link to="#refreshState"/> for that.
9038 </note>
9039 </desc>
9040 </attribute>
9041
9042 <attribute name="variant" type="MediumVariant" readonly="yes">
9043 <desc>
9044 Returns the storage format variant information for this medium.
9045 Before <link to="#refreshState"/> is called this method returns
9046 an undefined value.
9047 </desc>
9048 </attribute>
9049
9050 <attribute name="location" type="wstring">
9051 <desc>
9052 Location of the storage unit holding medium data.
9053
9054 The format of the location string is medium type specific. For medium
9055 types using regular files in a host's file system, the location
9056 string is the full file name.
9057
9058 Some medium types may support changing the storage unit location by
9059 simply changing the value of this property. If this operation is not
9060 supported, the implementation will return E_NOTIMPL in attempt to set
9061 this attribute's value.
9062
9063 When setting a value of the location attribute which is a regular file
9064 in the host's file system, the given file name may be either relative to
9065 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
9066 absolute. Note that if the given location specification does not contain
9067 the file extension part then a proper default extension will be
9068 automatically appended by the implementation depending on the medium type.
9069 </desc>
9070 </attribute>
9071
9072 <attribute name="name" type="wstring" readonly="yes">
9073 <desc>
9074 Name of the storage unit holding medium data.
9075
9076 The returned string is a short version of the <link to="#location"/>
9077 attribute that is suitable for representing the medium in situations
9078 where the full location specification is too long (such as lists
9079 and comboboxes in GUI frontends). This string is also used by frontends
9080 to sort the media list alphabetically when needed.
9081
9082 For example, for locations that are regular files in the host's file
9083 system, the value of this attribute is just the file name (+ extension),
9084 without the path specification.
9085
9086 Note that as opposed to the <link to="#location"/> attribute, the name
9087 attribute will not necessary be unique for a list of media of the
9088 given type and format.
9089 </desc>
9090 </attribute>
9091
9092 <attribute name="deviceType" type="DeviceType" readonly="yes">
9093 <desc>Kind of device (DVD/Floppy/HardDisk) which is applicable to this
9094 medium.</desc>
9095 </attribute>
9096
9097 <attribute name="hostDrive" type="boolean" readonly="yes">
9098 <desc>True if this corresponds to a drive on the host.</desc>
9099 </attribute>
9100
9101 <attribute name="size" type="long long" readonly="yes">
9102 <desc>
9103 Physical size of the storage unit used to hold medium data (in bytes).
9104
9105 <note>
9106 For media whose <link to="#state"/> is <link
9107 to="MediumState_Inaccessible"/>, the value of this property is the
9108 last known size. For <link to="MediumState_NotCreated"/> media,
9109 the returned value is zero.
9110 </note>
9111 </desc>
9112 </attribute>
9113
9114 <attribute name="format" type="wstring" readonly="yes">
9115 <desc>
9116 Storage format of this medium.
9117
9118 The value of this attribute is a string that specifies a backend used
9119 to store medium data. The storage format is defined when you create a
9120 new medium or automatically detected when you open an existing medium,
9121 and cannot be changed later.
9122
9123 The list of all storage formats supported by this VirtualBox
9124 installation can be obtained using
9125 <link to="ISystemProperties::mediumFormats"/>.
9126 </desc>
9127 </attribute>
9128
9129 <attribute name="mediumFormat" type="IMediumFormat" readonly="yes">
9130 <desc>
9131 Storage medium format object corresponding to this medium.
9132
9133 The value of this attribute is a reference to the medium format object
9134 that specifies the backend properties used to store medium data. The
9135 storage format is defined when you create a new medium or automatically
9136 detected when you open an existing medium, and cannot be changed later.
9137
9138 <note>@c null is returned if there is no associated medium format
9139 object. This can e.g. happen for medium objects representing host
9140 drives and other special medium objects.</note>
9141 </desc>
9142 </attribute>
9143
9144 <attribute name="type" type="MediumType">
9145 <desc>
9146 Type (role) of this medium.
9147
9148 The following constraints apply when changing the value of this
9149 attribute:
9150 <ul>
9151 <li>If a medium is attached to a virtual machine (either in the
9152 current state or in one of the snapshots), its type cannot be
9153 changed.
9154 </li>
9155 <li>As long as the medium has children, its type cannot be set
9156 to <link to="MediumType_Writethrough"/>.
9157 </li>
9158 <li>The type of all differencing media is
9159 <link to="MediumType_Normal"/> and cannot be changed.
9160 </li>
9161 </ul>
9162
9163 The type of a newly created or opened medium is set to
9164 <link to="MediumType_Normal"/>, except for DVD and floppy media,
9165 which have a type of <link to="MediumType_Writethrough"/>.
9166 </desc>
9167 </attribute>
9168
9169 <attribute name="parent" type="IMedium" readonly="yes">
9170 <desc>
9171 Parent of this medium (the medium this medium is directly based
9172 on).
9173
9174 Only differencing media have parents. For base (non-differencing)
9175 media, @c null is returned.
9176 </desc>
9177 </attribute>
9178
9179 <attribute name="children" type="IMedium" safearray="yes" readonly="yes">
9180 <desc>
9181 Children of this medium (all differencing media directly based
9182 on this medium). A @c null array is returned if this medium
9183 does not have any children.
9184 </desc>
9185 </attribute>
9186
9187 <attribute name="base" type="IMedium" readonly="yes">
9188 <desc>
9189 Base medium of this medium.
9190
9191 If this is a differencing medium, its base medium is the medium
9192 the given medium branch starts from. For all other types of media, this
9193 property returns the medium object itself (i.e. the same object this
9194 property is read on).
9195 </desc>
9196 </attribute>
9197
9198 <attribute name="readOnly" type="boolean" readonly="yes">
9199 <desc>
9200 Returns @c true if this medium is read-only and @c false otherwise.
9201
9202 A medium is considered to be read-only when its contents cannot be
9203 modified without breaking the integrity of other parties that depend on
9204 this medium such as its child media or snapshots of virtual machines
9205 where this medium is attached to these machines. If there are no
9206 children and no such snapshots then there is no dependency and the
9207 medium is not read-only.
9208
9209 The value of this attribute can be used to determine the kind of the
9210 attachment that will take place when attaching this medium to a
9211 virtual machine. If the value is @c false then the medium will
9212 be attached directly. If the value is @c true then the medium
9213 will be attached indirectly by creating a new differencing child
9214 medium for that. See the interface description for more information.
9215
9216 Note that all <link to="MediumType_Immutable">Immutable</link> media
9217 are always read-only while all
9218 <link to="MediumType_Writethrough">Writethrough</link> media are
9219 always not.
9220
9221 <note>
9222 The read-only condition represented by this attribute is related to
9223 the medium type and usage, not to the current
9224 <link to="IMedium::state">medium state</link> and not to the read-only
9225 state of the storage unit.
9226 </note>
9227 </desc>
9228 </attribute>
9229
9230 <attribute name="logicalSize" type="long long" readonly="yes">
9231 <desc>
9232 Logical size of this medium (in bytes), as reported to the
9233 guest OS running inside the virtual machine this medium is
9234 attached to. The logical size is defined when the medium is created
9235 and cannot be changed later.
9236
9237 <note>
9238 Reading this property on a differencing medium will return the size
9239 of its <link to="#base"/> medium.
9240 </note>
9241 <note>
9242 For media whose state is <link to="#state"/> is <link
9243 to="MediumState_Inaccessible"/>, the value of this property is the
9244 last known logical size. For <link to="MediumState_NotCreated"/>
9245 media, the returned value is zero.
9246 </note>
9247 </desc>
9248 </attribute>
9249
9250 <attribute name="autoReset" type="boolean">
9251 <desc>
9252 Whether this differencing medium will be automatically reset each
9253 time a virtual machine it is attached to is powered up. This
9254 attribute is automatically set to @c true for the last
9255 differencing image of an "immutable" medium (see
9256 <link to="MediumType" />).
9257
9258 See <link to="#reset"/> for more information about resetting
9259 differencing media.
9260
9261 <note>
9262 Reading this property on a base (non-differencing) medium will
9263 always @c false. Changing the value of this property in this
9264 case is not supported.
9265 </note>
9266
9267 <result name="VBOX_E_NOT_SUPPORTED">
9268 This is not a differencing medium (when changing the attribute
9269 value).
9270 </result>
9271 </desc>
9272 </attribute>
9273
9274 <attribute name="lastAccessError" type="wstring" readonly="yes">
9275 <desc>
9276 Text message that represents the result of the last accessibility
9277 check performed by <link to="#refreshState"/>.
9278
9279 An empty string is returned if the last accessibility check
9280 was successful or has not yet been called. As a result, if
9281 <link to="#state" /> is "Inaccessible" and this attribute is empty,
9282 then <link to="#refreshState"/> has yet to be called; this is the
9283 default value of media after VirtualBox initialization.
9284 A non-empty string indicates a failure and should normally describe
9285 a reason of the failure (for example, a file read error).
9286 </desc>
9287 </attribute>
9288
9289 <attribute name="machineIds" type="uuid" mod="string" safearray="yes" readonly="yes">
9290 <desc>
9291 Array of UUIDs of all machines this medium is attached to.
9292
9293 A @c null array is returned if this medium is not attached to any
9294 machine or to any machine's snapshot.
9295
9296 <note>
9297 The returned array will include a machine even if this medium is not
9298 attached to that machine in the current state but attached to it in
9299 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
9300 details.
9301 </note>
9302 </desc>
9303 </attribute>
9304
9305 <method name="setIDs">
9306 <desc>
9307 Changes the UUID and parent UUID for a hard disk medium.
9308 </desc>
9309 <param name="setImageId" type="boolean" dir="in">
9310 <desc>
9311 Select whether a new image UUID is set or not.
9312 </desc>
9313 </param>
9314 <param name="imageId" type="uuid" mod="string" dir="in">
9315 <desc>
9316 New UUID for the image. If an empty string is passed, then a new
9317 UUID is automatically created, provided that @a setImageId is @c true.
9318 Specifying a zero UUID is not allowed.
9319 </desc>
9320 </param>
9321 <param name="setParentId" type="boolean" dir="in">
9322 <desc>
9323 Select whether a new parent UUID is set or not.
9324 </desc>
9325 </param>
9326 <param name="parentId" type="uuid" mod="string" dir="in">
9327 <desc>
9328 New parent UUID for the image. If an empty string is passed, then a
9329 new UUID is automatically created, provided @a setParentId is
9330 @c true. A zero UUID is valid.
9331 </desc>
9332 </param>
9333 <result name="E_INVALIDARG">
9334 Invalid parameter combination.
9335 </result>
9336 <result name="VBOX_E_NOT_SUPPORTED">
9337 Medium is not a hard disk medium.
9338 </result>
9339 </method>
9340
9341 <method name="refreshState">
9342 <desc>
9343 If the current medium state (see <link to="MediumState"/>) is one of
9344 "Created", "Inaccessible" or "LockedRead", then this performs an
9345 accessibility check on the medium and sets the value of the <link to="#state"/>
9346 attribute accordingly; that value is also returned for convenience.
9347
9348 For all other state values, this does not perform a refresh but returns
9349 the state only.
9350
9351 The refresh, if performed, may take a long time (several seconds or even
9352 minutes, depending on the storage unit location and format) because it performs an
9353 accessibility check of the storage unit. This check may cause a significant
9354 delay if the storage unit of the given medium is, for example, a file located
9355 on a network share which is not currently accessible due to connectivity
9356 problems. In that case, the call will not return until a timeout
9357 interval defined by the host OS for this operation expires. For this reason,
9358 it is recommended to never read this attribute on the main UI thread to avoid
9359 making the UI unresponsive.
9360
9361 If the last known state of the medium is "Created" and the accessibility
9362 check fails, then the state would be set to "Inaccessible", and
9363 <link to="#lastAccessError"/> may be used to get more details about the
9364 failure. If the state of the medium is "LockedRead", then it remains the
9365 same, and a non-empty value of <link to="#lastAccessError"/> will
9366 indicate a failed accessibility check in this case.
9367
9368 Note that not all medium states are applicable to all medium types.
9369 </desc>
9370 <param name="state" type="MediumState" dir="return">
9371 <desc>
9372 New medium state.
9373 </desc>
9374 </param>
9375 </method>
9376
9377 <method name="getSnapshotIds">
9378 <desc>
9379 Returns an array of UUIDs of all snapshots of the given machine where
9380 this medium is attached to.
9381
9382 If the medium is attached to the machine in the current state, then the
9383 first element in the array will always be the ID of the queried machine
9384 (i.e. the value equal to the @c machineId argument), followed by
9385 snapshot IDs (if any).
9386
9387 If the medium is not attached to the machine in the current state, then
9388 the array will contain only snapshot IDs.
9389
9390 The returned array may be @c null if this medium is not attached
9391 to the given machine at all, neither in the current state nor in one of
9392 the snapshots.
9393 </desc>
9394 <param name="machineId" type="uuid" mod="string" dir="in">
9395 <desc>
9396 UUID of the machine to query.
9397 </desc>
9398 </param>
9399 <param name="snapshotIds" type="uuid" mod="string" safearray="yes" dir="return">
9400 <desc>
9401 Array of snapshot UUIDs of the given machine using this medium.
9402 </desc>
9403 </param>
9404 </method>
9405
9406 <method name="lockRead">
9407 <desc>
9408 Locks this medium for reading.
9409
9410 A read lock is shared: many clients can simultaneously lock the
9411 same medium for reading unless it is already locked for writing (see
9412 <link to="#lockWrite"/>) in which case an error is returned.
9413
9414 When the medium is locked for reading, it cannot be modified
9415 from within VirtualBox. This means that any method that changes
9416 the properties of this medium or contents of the storage unit
9417 will return an error (unless explicitly stated otherwise). That
9418 includes an attempt to start a virtual machine that wants to
9419 write to the the medium.
9420
9421 When the virtual machine is started up, it locks for reading all
9422 media it uses in read-only mode. If some medium cannot be locked
9423 for reading, the startup procedure will fail.
9424 A medium is typically locked for reading while it is used by a running
9425 virtual machine but has a depending differencing image that receives
9426 the actual write operations. This way one base medium can have
9427 multiple child differencing images which can be written to
9428 simultaneously. Read-only media such as DVD and floppy images are
9429 also locked for reading only (so they can be in use by multiple
9430 machines simultaneously).
9431
9432 A medium is also locked for reading when it is the source of a
9433 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
9434
9435 The medium locked for reading must be unlocked using the <link
9436 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
9437 can be nested and must be followed by the same number of paired
9438 <link to="#unlockRead"/> calls.
9439
9440 This method sets the medium state (see <link to="#state"/>) to
9441 "LockedRead" on success. The medium's previous state must be
9442 one of "Created", "Inaccessible" or "LockedRead".
9443
9444 Locking an inaccessible medium is not an error; this method performs
9445 a logical lock that prevents modifications of this medium through
9446 the VirtualBox API, not a physical file-system lock of the underlying
9447 storage unit.
9448
9449 This method returns the current state of the medium
9450 <i>before</i> the operation.
9451
9452 <result name="VBOX_E_INVALID_OBJECT_STATE">
9453 Invalid medium state (e.g. not created, locked, inaccessible,
9454 creating, deleting).
9455 </result>
9456
9457 </desc>
9458 <param name="state" type="MediumState" dir="return">
9459 <desc>
9460 State of the medium after the operation.
9461 </desc>
9462 </param>
9463 </method>
9464
9465 <method name="unlockRead">
9466 <desc>
9467 Cancels the read lock previously set by <link to="#lockRead"/>.
9468
9469 For both success and failure, this method returns the current state
9470 of the medium <i>after</i> the operation.
9471
9472 See <link to="#lockRead"/> for more details.
9473
9474 <result name="VBOX_E_INVALID_OBJECT_STATE">
9475 Medium not locked for reading.
9476 </result>
9477
9478 </desc>
9479 <param name="state" type="MediumState" dir="return">
9480 <desc>
9481 State of the medium after the operation.
9482 </desc>
9483 </param>
9484 </method>
9485
9486 <method name="lockWrite">
9487 <desc>
9488 Locks this medium for writing.
9489
9490 A write lock, as opposed to <link to="#lockRead"/>, is
9491 exclusive: there may be only one client holding a write lock,
9492 and there may be no read locks while the write lock is held.
9493 As a result, read-locking fails if a write lock is held, and
9494 write-locking fails if either a read or another write lock is held.
9495
9496 When a medium is locked for writing, it cannot be modified
9497 from within VirtualBox, and it is not guaranteed that the values
9498 of its properties are up-to-date. Any method that changes the
9499 properties of this medium or contents of the storage unit will
9500 return an error (unless explicitly stated otherwise).
9501
9502 When a virtual machine is started up, it locks for writing all
9503 media it uses to write data to. If any medium could not be locked
9504 for writing, the startup procedure will fail. If a medium has
9505 differencing images, then while the machine is running, only
9506 the last ("leaf") differencing image is locked for writing,
9507 whereas its parents are locked for reading only.
9508
9509 A medium is also locked for writing when it is the target of a
9510 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
9511
9512 The medium locked for writing must be unlocked using the <link
9513 to="#unlockWrite"/> method. Write locks <i>cannot</i> be nested.
9514
9515 This method sets the medium state (see <link to="#state"/>) to
9516 "LockedWrite" on success. The medium's previous state must be
9517 either "Created" or "Inaccessible".
9518
9519 Locking an inaccessible medium is not an error; this method performs
9520 a logical lock that prevents modifications of this medium through
9521 the VirtualBox API, not a physical file-system lock of the underlying
9522 storage unit.
9523
9524 For both, success and failure, this method returns the current
9525 state of the medium <i>before</i> the operation.
9526
9527 <result name="VBOX_E_INVALID_OBJECT_STATE">
9528 Invalid medium state (e.g. not created, locked, inaccessible,
9529 creating, deleting).
9530 </result>
9531
9532 </desc>
9533 <param name="state" type="MediumState" dir="return">
9534 <desc>
9535 State of the medium after the operation.
9536 </desc>
9537 </param>
9538 </method>
9539
9540 <method name="unlockWrite">
9541 <desc>
9542 Cancels the write lock previously set by <link to="#lockWrite"/>.
9543
9544 For both success and failure, this method returns the current
9545 state of the medium <i>after</i> the operation.
9546
9547 See <link to="#lockWrite"/> for more details.
9548
9549 <result name="VBOX_E_INVALID_OBJECT_STATE">
9550 Medium not locked for writing.
9551 </result>
9552
9553 </desc>
9554 <param name="state" type="MediumState" dir="return">
9555 <desc>
9556 State of the medium after the operation.
9557 </desc>
9558 </param>
9559 </method>
9560
9561 <method name="close">
9562 <desc>
9563 Closes this medium.
9564
9565 The medium must not be attached to any known virtual machine
9566 and must not have any known child media, otherwise the
9567 operation will fail.
9568
9569 When the medium is successfully closed, it is removed from
9570 the list of registered media, but its storage unit is not
9571 deleted. In particular, this means that this medium can
9572 later be opened again using the <link to="IVirtualBox::openMedium"/>
9573 call.
9574
9575 Note that after this method successfully returns, the given medium
9576 object becomes uninitialized. This means that any attempt
9577 to call any of its methods or attributes will fail with the
9578 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
9579
9580 <result name="VBOX_E_INVALID_OBJECT_STATE">
9581 Invalid medium state (other than not created, created or
9582 inaccessible).
9583 </result>
9584 <result name="VBOX_E_OBJECT_IN_USE">
9585 Medium attached to virtual machine.
9586 </result>
9587 <result name="VBOX_E_FILE_ERROR">
9588 Settings file not accessible.
9589 </result>
9590 <result name="VBOX_E_XML_ERROR">
9591 Could not parse the settings file.
9592 </result>
9593
9594 </desc>
9595 </method>
9596
9597 <!-- storage methods -->
9598
9599 <method name="getProperty">
9600 <desc>
9601 Returns the value of the custom medium property with the given name.
9602
9603 The list of all properties supported by the given medium format can
9604 be obtained with <link to="IMediumFormat::describeProperties"/>.
9605
9606 Note that if this method returns an empty string in @a value, the
9607 requested property is supported but currently not assigned any value.
9608
9609 <result name="VBOX_E_OBJECT_NOT_FOUND">
9610 Requested property does not exist (not supported by the format).
9611 </result>
9612 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
9613 </desc>
9614 <param name="name" type="wstring" dir="in">
9615 <desc>Name of the property to get.</desc>
9616 </param>
9617 <param name="value" type="wstring" dir="return">
9618 <desc>Current property value.</desc>
9619 </param>
9620 </method>
9621
9622 <method name="setProperty">
9623 <desc>
9624 Sets the value of the custom medium property with the given name.
9625
9626 The list of all properties supported by the given medium format can
9627 be obtained with <link to="IMediumFormat::describeProperties"/>.
9628
9629 Note that setting the property value to @c null or an empty string is
9630 equivalent to deleting the existing value. A default value (if it is
9631 defined for this property) will be used by the format backend in this
9632 case.
9633
9634 <result name="VBOX_E_OBJECT_NOT_FOUND">
9635 Requested property does not exist (not supported by the format).
9636 </result>
9637 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
9638 </desc>
9639 <param name="name" type="wstring" dir="in">
9640 <desc>Name of the property to set.</desc>
9641 </param>
9642 <param name="value" type="wstring" dir="in">
9643 <desc>Property value to set.</desc>
9644 </param>
9645 </method>
9646
9647 <method name="getProperties">
9648 <desc>
9649 Returns values for a group of properties in one call.
9650
9651 The names of the properties to get are specified using the @a names
9652 argument which is a list of comma-separated property names or
9653 an empty string if all properties are to be returned. Note that currently
9654 the value of this argument is ignored and the method always returns all
9655 existing properties.
9656
9657 The list of all properties supported by the given medium format can
9658 be obtained with <link to="IMediumFormat::describeProperties"/>.
9659
9660 The method returns two arrays, the array of property names corresponding
9661 to the @a names argument and the current values of these properties.
9662 Both arrays have the same number of elements with each elemend at the
9663 given index in the first array corresponds to an element at the same
9664 index in the second array.
9665
9666 Note that for properties that do not have assigned values,
9667 an empty string is returned at the appropriate index in the
9668 @a returnValues array.
9669
9670 </desc>
9671 <param name="names" type="wstring" dir="in">
9672 <desc>
9673 Names of properties to get.
9674 </desc>
9675 </param>
9676 <param name="returnNames" type="wstring" safearray="yes" dir="out">
9677 <desc>Names of returned properties.</desc>
9678 </param>
9679 <param name="returnValues" type="wstring" safearray="yes" dir="return">
9680 <desc>Values of returned properties.</desc>
9681 </param>
9682 </method>
9683
9684 <method name="setProperties">
9685 <desc>
9686 Sets values for a group of properties in one call.
9687
9688 The names of the properties to set are passed in the @a names
9689 array along with the new values for them in the @a values array. Both
9690 arrays have the same number of elements with each elemend at the given
9691 index in the first array corresponding to an element at the same index
9692 in the second array.
9693
9694 If there is at least one property name in @a names that is not valid,
9695 the method will fail before changing the values of any other properties
9696 from the @a names array.
9697
9698 Using this method over <link to="#setProperty"/> is preferred if you
9699 need to set several properties at once since it will result into less
9700 IPC calls.
9701
9702 The list of all properties supported by the given medium format can
9703 be obtained with <link to="IMediumFormat::describeProperties"/>.
9704
9705 Note that setting the property value to @c null or an empty string is
9706 equivalent to deleting the existing value. A default value (if it is
9707 defined for this property) will be used by the format backend in this
9708 case.
9709 </desc>
9710 <param name="names" type="wstring" safearray="yes" dir="in">
9711 <desc>Names of properties to set.</desc>
9712 </param>
9713 <param name="values" type="wstring" safearray="yes" dir="in">
9714 <desc>Values of properties to set.</desc>
9715 </param>
9716 </method>
9717
9718 <!-- storage methods -->
9719
9720 <method name="createBaseStorage">
9721 <desc>
9722 Starts creating a hard disk storage unit (fixed/dynamic, according
9723 to the variant flags) in in the background. The previous storage unit
9724 created for this object, if any, must first be deleted using
9725 <link to="#deleteStorage"/>, otherwise the operation will fail.
9726
9727 Before the operation starts, the medium is placed in
9728 <link to="MediumState_Creating"/> state. If the create operation
9729 fails, the medium will be placed back in <link to="MediumState_NotCreated"/>
9730 state.
9731
9732 After the returned progress object reports that the operation has
9733 successfully completed, the medium state will be set to <link
9734 to="MediumState_Created"/>, the medium will be remembered by this
9735 VirtualBox installation and may be attached to virtual machines.
9736
9737 <result name="VBOX_E_NOT_SUPPORTED">
9738 The variant of storage creation operation is not supported. See <link
9739 to="IMediumFormat::capabilities"/>.
9740 </result>
9741 </desc>
9742 <param name="logicalSize" type="long long" dir="in">
9743 <desc>Maximum logical size of the medium in bytes.</desc>
9744 </param>
9745 <param name="variant" type="MediumVariant" dir="in">
9746 <desc>Exact image variant which should be created.</desc>
9747 </param>
9748 <param name="progress" type="IProgress" dir="return">
9749 <desc>Progress object to track the operation completion.</desc>
9750 </param>
9751 </method>
9752
9753 <method name="deleteStorage">
9754 <desc>
9755 Starts deleting the storage unit of this medium.
9756
9757 The medium must not be attached to any known virtual machine and must
9758 not have any known child media, otherwise the operation will fail.
9759 It will also fail if there is no storage unit to delete or if deletion
9760 is already in progress, or if the medium is being in use (locked for
9761 read or for write) or inaccessible. Therefore, the only valid state for
9762 this operation to succeed is <link to="MediumState_Created"/>.
9763
9764 Before the operation starts, the medium is placed in
9765 <link to="MediumState_Deleting"/> state and gets removed from the list
9766 of remembered hard disks (media registry). If the delete operation
9767 fails, the medium will be remembered again and placed back to
9768 <link to="MediumState_Created"/> state.
9769
9770 After the returned progress object reports that the operation is
9771 complete, the medium state will be set to
9772 <link to="MediumState_NotCreated"/> and you will be able to use one of
9773 the storage creation methods to create it again.
9774
9775 <see>#close()</see>
9776
9777 <result name="VBOX_E_OBJECT_IN_USE">
9778 Medium is attached to a virtual machine.
9779 </result>
9780 <result name="VBOX_E_NOT_SUPPORTED">
9781 Storage deletion is not allowed because neither of storage creation
9782 operations are supported. See
9783 <link to="IMediumFormat::capabilities"/>.
9784 </result>
9785
9786 <note>
9787 If the deletion operation fails, it is not guaranteed that the storage
9788 unit still exists. You may check the <link to="IMedium::state"/> value
9789 to answer this question.
9790 </note>
9791 </desc>
9792 <param name="progress" type="IProgress" dir="return">
9793 <desc>Progress object to track the operation completion.</desc>
9794 </param>
9795 </method>
9796
9797 <!-- diff methods -->
9798
9799 <method name="createDiffStorage">
9800 <desc>
9801 Starts creating an empty differencing storage unit based on this
9802 medium in the format and at the location defined by the @a target
9803 argument.
9804
9805 The target medium must be in <link to="MediumState_NotCreated"/>
9806 state (i.e. must not have an existing storage unit). Upon successful
9807 completion, this operation will set the type of the target medium to
9808 <link to="MediumType_Normal"/> and create a storage unit necessary to
9809 represent the differencing medium data in the given format (according
9810 to the storage format of the target object).
9811
9812 After the returned progress object reports that the operation is
9813 successfully complete, the target medium gets remembered by this
9814 VirtualBox installation and may be attached to virtual machines.
9815
9816 <note>
9817 The medium will be set to <link to="MediumState_LockedRead"/>
9818 state for the duration of this operation.
9819 </note>
9820 <result name="VBOX_E_OBJECT_IN_USE">
9821 Medium not in @c NotCreated state.
9822 </result>
9823 </desc>
9824 <param name="target" type="IMedium" dir="in">
9825 <desc>Target medium.</desc>
9826 </param>
9827 <param name="variant" type="MediumVariant" dir="in">
9828 <desc>Exact image variant which should be created.</desc>
9829 </param>
9830 <param name="progress" type="IProgress" dir="return">
9831 <desc>Progress object to track the operation completion.</desc>
9832 </param>
9833 </method>
9834
9835 <method name="mergeTo">
9836 <desc>
9837 Starts merging the contents of this medium and all intermediate
9838 differencing media in the chain to the given target medium.
9839
9840 The target medium must be either a descendant of this medium or
9841 its ancestor (otherwise this method will immediately return a failure).
9842 It follows that there are two logical directions of the merge operation:
9843 from ancestor to descendant (<i>forward merge</i>) and from descendant to
9844 ancestor (<i>backward merge</i>). Let us consider the following medium
9845 chain:
9846
9847 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
9848
9849 Here, calling this method on the <tt>Base</tt> medium object with
9850 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
9851 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
9852 merge. Note that in both cases the contents of the resulting medium
9853 will be the same, the only difference is the medium object that takes
9854 the result of the merge operation. In case of the forward merge in the
9855 above example, the result will be written to <tt>Diff_2</tt>; in case of
9856 the backward merge, the result will be written to <tt>Base</tt>. In
9857 other words, the result of the operation is always stored in the target
9858 medium.
9859
9860 Upon successful operation completion, the storage units of all media in
9861 the chain between this (source) medium and the target medium, including
9862 the source medium itself, will be automatically deleted and the
9863 relevant medium objects (including this medium) will become
9864 uninitialized. This means that any attempt to call any of
9865 their methods or attributes will fail with the
9866 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
9867 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
9868 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> media.
9869 Note that <tt>Diff_2</tt> in this case will become a base medium
9870 itself since it will no longer be based on any other medium.
9871
9872 Considering the above, all of the following conditions must be met in
9873 order for the merge operation to succeed:
9874 <ul>
9875 <li>
9876 Neither this (source) medium nor any intermediate
9877 differencing medium in the chain between it and the target
9878 medium is attached to any virtual machine.
9879 </li>
9880 <li>
9881 Neither the source medium nor the target medium is an
9882 <link to="MediumType_Immutable"/> medium.
9883 </li>
9884 <li>
9885 The part of the medium tree from the source medium to the
9886 target medium is a linear chain, i.e. all medium in this
9887 chain have exactly one child which is the next medium in this
9888 chain. The only exception from this rule is the target medium in
9889 the forward merge operation; it is allowed to have any number of
9890 child media because the merge operation will not change its
9891 logical contents (as it is seen by the guest OS or by children).
9892 </li>
9893 <li>
9894 None of the involved media are in
9895 <link to="MediumState_LockedRead"/> or
9896 <link to="MediumState_LockedWrite"/> state.
9897 </li>
9898 </ul>
9899
9900 <note>
9901 This (source) medium and all intermediates will be placed to <link
9902 to="MediumState_Deleting"/> state and the target medium will be
9903 placed to <link to="MediumState_LockedWrite"/> state and for the
9904 duration of this operation.
9905 </note>
9906 </desc>
9907 <param name="target" type="IMedium" dir="in">
9908 <desc>Target medium.</desc>
9909 </param>
9910 <param name="progress" type="IProgress" dir="return">
9911 <desc>Progress object to track the operation completion.</desc>
9912 </param>
9913 </method>
9914
9915 <!-- clone method -->
9916
9917 <method name="cloneTo">
9918 <desc>
9919 Starts creating a clone of this medium in the format and at the
9920 location defined by the @a target argument.
9921
9922 The target medium must be either in <link to="MediumState_NotCreated"/>
9923 state (i.e. must not have an existing storage unit) or in
9924 <link to="MediumState_Created"/> state (i.e. created and not locked, and
9925 big enough to hold the data or else the copy will be partial). Upon
9926 successful completion, the cloned medium will contain exactly the
9927 same sector data as the medium being cloned, except that in the
9928 first case a new UUID for the clone will be randomly generated, and in
9929 the second case the UUID will remain unchanged.
9930
9931 The @a parent argument defines which medium will be the parent
9932 of the clone. Passing a @c null reference indicates that the clone will
9933 be a base image, i.e. completely independent. It is possible to specify
9934 an arbitrary medium for this parameter, including the parent of the
9935 medium which is being cloned. Even cloning to a child of the source
9936 medium is possible. Note that when cloning to an existing image, the
9937 @a parent irgument is ignored.
9938
9939 After the returned progress object reports that the operation is
9940 successfully complete, the target medium gets remembered by this
9941 VirtualBox installation and may be attached to virtual machines.
9942
9943 <note>
9944 This medium will be placed to <link to="MediumState_LockedRead"/>
9945 state for the duration of this operation.
9946 </note>
9947 <result name="E_NOTIMPL">
9948 The specified cloning variant is not supported at the moment.
9949 </result>
9950 </desc>
9951 <param name="target" type="IMedium" dir="in">
9952 <desc>Target medium.</desc>
9953 </param>
9954 <param name="variant" type="MediumVariant" dir="in">
9955 <desc>Exact image variant which should be created.</desc>
9956 </param>
9957 <param name="parent" type="IMedium" dir="in">
9958 <desc>Parent of the cloned medium.</desc>
9959 </param>
9960 <param name="progress" type="IProgress" dir="return">
9961 <desc>Progress object to track the operation completion.</desc>
9962 </param>
9963 </method>
9964
9965 <!-- other methods -->
9966
9967 <method name="compact">
9968 <desc>
9969 Starts compacting of this medium. This means that the medium is
9970 transformed into a possibly more compact storage representation.
9971 This potentially creates temporary images, which can require a
9972 substantial amount of additional disk space.
9973
9974 This medium will be placed to <link to="MediumState_LockedWrite"/>
9975 state and all its parent media (if any) will be placed to
9976 <link to="MediumState_LockedRead"/> state for the duration of this
9977 operation.
9978
9979 Please note that the results can be either returned straight away,
9980 or later as the result of the background operation via the object
9981 returned via the @a progress parameter.
9982
9983 <result name="VBOX_E_NOT_SUPPORTED">
9984 Medium format does not support compacting (but potentially
9985 needs it).
9986 </result>
9987 </desc>
9988 <param name="progress" type="IProgress" dir="return">
9989 <desc>Progress object to track the operation completion.</desc>
9990 </param>
9991 </method>
9992
9993 <method name="resize">
9994 <desc>
9995 Starts resizing this medium. This means that the nominal size of the
9996 medium is set to the new value. Both increasing and decreasing the
9997 size is possible, and there are no safety checks, since VirtualBox
9998 does not make any assumptions about the medium contents.
9999
10000 Resizing usually needs additional disk space, and possibly also
10001 some temporary disk space. Note that resize does not create a full
10002 temporary copy of the medium, so the additional disk space requirement
10003 is usually much lower than using the clone operation.
10004
10005 This medium will be placed to <link to="MediumState_LockedWrite"/>
10006 state for the duration of this operation.
10007
10008 Please note that the results can be either returned straight away,
10009 or later as the result of the background operation via the object
10010 returned via the @a progress parameter.
10011
10012 <result name="VBOX_E_NOT_SUPPORTED">
10013 Medium format does not support resizing.
10014 </result>
10015 </desc>
10016 <param name="logicalSize" type="long long" dir="in">
10017 <desc>New nominal capacity of the medium in bytes.</desc>
10018 </param>
10019 <param name="progress" type="IProgress" dir="return">
10020 <desc>Progress object to track the operation completion.</desc>
10021 </param>
10022 </method>
10023
10024 <method name="reset">
10025 <desc>
10026 Starts erasing the contents of this differencing medium.
10027
10028 This operation will reset the differencing medium to its initial
10029 state when it does not contain any sector data and any read operation is
10030 redirected to its parent medium. This automatically gets called
10031 during VM power-up for every medium whose <link to="#autoReset" />
10032 attribute is @c true.
10033
10034 The medium will be write-locked for the duration of this operation (see
10035 <link to="#lockWrite" />).
10036
10037 <result name="VBOX_E_NOT_SUPPORTED">
10038 This is not a differencing medium.
10039 </result>
10040 <result name="VBOX_E_INVALID_OBJECT_STATE">
10041 Medium is not in <link to="MediumState_Created"/> or
10042 <link to="MediumState_Inaccessible"/> state.
10043 </result>
10044 </desc>
10045 <param name="progress" type="IProgress" dir="return">
10046 <desc>Progress object to track the operation completion.</desc>
10047 </param>
10048 </method>
10049
10050 </interface>
10051
10052
10053 <!--
10054 // IMediumFormat
10055 /////////////////////////////////////////////////////////////////////////
10056 -->
10057
10058 <enum
10059 name="DataType"
10060 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
10061 >
10062 <const name="Int32" value="0"/>
10063 <const name="Int8" value="1"/>
10064 <const name="String" value="2"/>
10065 </enum>
10066
10067 <enum
10068 name="DataFlags"
10069 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
10070 >
10071 <const name="None" value="0x00"/>
10072 <const name="Mandatory" value="0x01"/>
10073 <const name="Expert" value="0x02"/>
10074 <const name="Array" value="0x04"/>
10075 <const name="FlagMask" value="0x07"/>
10076 </enum>
10077
10078 <enum
10079 name="MediumFormatCapabilities"
10080 uuid="7342ba79-7ce0-4d94-8f86-5ed5a185d9bd"
10081 >
10082 <desc>
10083 Medium format capability flags.
10084 </desc>
10085
10086 <const name="Uuid" value="0x01">
10087 <desc>
10088 Supports UUIDs as expected by VirtualBox code.
10089 </desc>
10090 </const>
10091
10092 <const name="CreateFixed" value="0x02">
10093 <desc>
10094 Supports creating fixed size images, allocating all space instantly.
10095 </desc>
10096 </const>
10097
10098 <const name="CreateDynamic" value="0x04">
10099 <desc>
10100 Supports creating dynamically growing images, allocating space on
10101 demand.
10102 </desc>
10103 </const>
10104
10105 <const name="CreateSplit2G" value="0x08">
10106 <desc>
10107 Supports creating images split in chunks of a bit less than 2 GBytes.
10108 </desc>
10109 </const>
10110
10111 <const name="Differencing" value="0x10">
10112 <desc>
10113 Supports being used as a format for differencing media (see <link
10114 to="IMedium::createDiffStorage"/>).
10115 </desc>
10116 </const>
10117
10118 <const name="Asynchronous" value="0x20">
10119 <desc>
10120 Supports asynchronous I/O operations for at least some configurations.
10121 </desc>
10122 </const>
10123
10124 <const name="File" value="0x40">
10125 <desc>
10126 The format backend operates on files (the <link to="IMedium::location"/>
10127 attribute of the medium specifies a file used to store medium
10128 data; for a list of supported file extensions see
10129 <link to="IMediumFormat::describeFileExtensions"/>).
10130 </desc>
10131 </const>
10132
10133 <const name="Properties" value="0x80">
10134 <desc>
10135 The format backend uses the property interface to configure the storage
10136 location and properties (the <link to="IMediumFormat::describeProperties"/>
10137 method is used to get access to properties supported by the given medium format).
10138 </desc>
10139 </const>
10140
10141 <const name="TcpNetworking" value="0x100">
10142 <desc>
10143 The format backend uses the TCP networking interface for network access.
10144 </desc>
10145 </const>
10146
10147 <const name="VFS" value="0x200">
10148 <desc>
10149 The format backend supports virtual filesystem functionality.
10150 </desc>
10151 </const>
10152
10153 <const name="CapabilityMask" value="0x3FF"/>
10154 </enum>
10155
10156 <interface
10157 name="IMediumFormat" extends="$unknown"
10158 uuid="4e9a873f-0599-434a-8345-619ef3fb3111"
10159 wsmap="managed"
10160 >
10161 <desc>
10162 The IMediumFormat interface represents a medium format.
10163
10164 Each medium format has an associated backend which is used to handle
10165 media stored in this format. This interface provides information
10166 about the properties of the associated backend.
10167
10168 Each medium format is identified by a string represented by the
10169 <link to="#id"/> attribute. This string is used in calls like
10170 <link to="IVirtualBox::createHardDisk"/> to specify the desired
10171 format.
10172
10173 The list of all supported medium formats can be obtained using
10174 <link to="ISystemProperties::mediumFormats"/>.
10175
10176 <see>IMedium</see>
10177 </desc>
10178
10179 <attribute name="id" type="wstring" readonly="yes">
10180 <desc>
10181 Identifier of this format.
10182
10183 The format identifier is a non-@c null non-empty ASCII string. Note that
10184 this string is case-insensitive. This means that, for example, all of
10185 the following strings:
10186 <pre>
10187 "VDI"
10188 "vdi"
10189 "VdI"</pre>
10190 refer to the same medium format.
10191
10192 This string is used in methods of other interfaces where it is necessary
10193 to specify a medium format, such as
10194 <link to="IVirtualBox::createHardDisk"/>.
10195 </desc>
10196 </attribute>
10197
10198 <attribute name="name" type="wstring" readonly="yes">
10199 <desc>
10200 Human readable description of this format.
10201
10202 Mainly for use in file open dialogs.
10203 </desc>
10204 </attribute>
10205
10206 <attribute name="capabilities" type="unsigned long" readonly="yes">
10207 <desc>
10208 Capabilities of the format as a set of bit flags.
10209
10210 For the meaning of individual capability flags see
10211 <link to="MediumFormatCapabilities"/>.
10212 </desc>
10213 </attribute>
10214
10215 <method name="describeFileExtensions">
10216 <desc>
10217 Returns two arrays describing the supported file extensions.
10218
10219 The first array contains the supported extensions and the seconds one
10220 the type each extension supports. Both have the same size.
10221
10222 Note that some backends do not work on files, so this array may be
10223 empty.
10224
10225 <see>IMediumFormat::capabilities</see>
10226 </desc>
10227 <param name="extensions" type="wstring" safearray="yes" dir="out">
10228 <desc>The array of supported extensions.</desc>
10229 </param>
10230 <param name="type" type="DeviceType" safearray="yes" dir="out">
10231 <desc>The array which indicates the device type for every given extension.</desc>
10232 </param>
10233 </method>
10234
10235 <method name="describeProperties">
10236 <desc>
10237 Returns several arrays describing the properties supported by this
10238 format.
10239
10240 An element with the given index in each array describes one
10241 property. Thus, the number of elements in each returned array is the
10242 same and corresponds to the number of supported properties.
10243
10244 The returned arrays are filled in only if the
10245 <link to="MediumFormatCapabilities_Properties"/> flag is set.
10246 All arguments must be non-@c null.
10247
10248 <see>DataType</see>
10249 <see>DataFlags</see>
10250 </desc>
10251
10252 <param name="names" type="wstring" safearray="yes" dir="out">
10253 <desc>Array of property names.</desc>
10254 </param>
10255 <param name="description" type="wstring" safearray="yes" dir="out">
10256 <desc>Array of property descriptions.</desc>
10257 </param>
10258 <param name="types" type="DataType" safearray="yes" dir="out">
10259 <desc>Array of property types.</desc>
10260 </param>
10261 <param name="flags" type="unsigned long" safearray="yes" dir="out">
10262 <desc>Array of property flags.</desc>
10263 </param>
10264 <param name="defaults" type="wstring" safearray="yes" dir="out">
10265 <desc>Array of default property values.</desc>
10266 </param>
10267 </method>
10268
10269 </interface>
10270
10271
10272 <!--
10273 // IKeyboard
10274 /////////////////////////////////////////////////////////////////////////
10275 -->
10276
10277 <interface
10278 name="IKeyboard" extends="$unknown"
10279 uuid="f6916ec5-a881-4237-898f-7de58cf88672"
10280 wsmap="managed"
10281 >
10282 <desc>
10283 The IKeyboard interface represents the virtual machine's keyboard. Used
10284 in <link to="IConsole::keyboard"/>.
10285
10286 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
10287 to the virtual machine.
10288
10289 </desc>
10290 <method name="putScancode">
10291 <desc>Sends a scancode to the keyboard.
10292
10293 <result name="VBOX_E_IPRT_ERROR">
10294 Could not send scan code to virtual keyboard.
10295 </result>
10296
10297 </desc>
10298 <param name="scancode" type="long" dir="in"/>
10299 </method>
10300
10301 <method name="putScancodes">
10302 <desc>Sends an array of scancodes to the keyboard.
10303
10304 <result name="VBOX_E_IPRT_ERROR">
10305 Could not send all scan codes to virtual keyboard.
10306 </result>
10307
10308 </desc>
10309 <param name="scancodes" type="long" dir="in" safearray="yes"/>
10310 <param name="codesStored" type="unsigned long" dir="return"/>
10311 </method>
10312
10313 <method name="putCAD">
10314 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
10315 function is nothing special, it is just a convenience function
10316 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
10317
10318 <result name="VBOX_E_IPRT_ERROR">
10319 Could not send all scan codes to virtual keyboard.
10320 </result>
10321
10322 </desc>
10323 </method>
10324
10325 <attribute name="eventSource" type="IEventSource" readonly="yes">
10326 <desc>
10327 Event source for keyboard events.
10328 </desc>
10329 </attribute>
10330
10331 </interface>
10332
10333
10334 <!--
10335 // IMouse
10336 /////////////////////////////////////////////////////////////////////////
10337 -->
10338
10339 <enum
10340 name="MouseButtonState"
10341 uuid="9ee094b8-b28a-4d56-a166-973cb588d7f8"
10342 >
10343 <desc>
10344 Mouse button state.
10345 </desc>
10346
10347 <const name="LeftButton" value="0x01"/>
10348 <const name="RightButton" value="0x02"/>
10349 <const name="MiddleButton" value="0x04"/>
10350 <const name="WheelUp" value="0x08"/>
10351 <const name="WheelDown" value="0x10"/>
10352 <const name="XButton1" value="0x20"/>
10353 <const name="XButton2" value="0x40"/>
10354 <const name="MouseStateMask" value="0x7F"/>
10355 </enum>
10356
10357 <interface
10358 name="IMouse" extends="$unknown"
10359 uuid="05044a52-7811-4f00-ae3a-0ab7ff707b10"
10360 wsmap="managed"
10361 >
10362 <desc>
10363 The IMouse interface represents the virtual machine's mouse. Used in
10364 <link to="IConsole::mouse"/>.
10365
10366 Through this interface, the virtual machine's virtual mouse can be
10367 controlled.
10368 </desc>
10369
10370 <attribute name="absoluteSupported" type="boolean" readonly="yes">
10371 <desc>
10372 Whether the guest OS supports absolute mouse pointer positioning
10373 or not.
10374 <note>
10375 You can use the <link to="IMouseCapabilityChangedEvent"/>
10376 event to be instantly informed about changes of this attribute
10377 during virtual machine execution.
10378 </note>
10379 <see><link to="#putMouseEventAbsolute"/></see>
10380 </desc>
10381 </attribute>
10382
10383 <attribute name="relativeSupported" type="boolean" readonly="yes">
10384 <desc>
10385 Whether the guest OS supports relative mouse pointer positioning
10386 or not.
10387 <note>
10388 You can use the <link to="IMouseCapabilityChangedEvent"/>
10389 event to be instantly informed about changes of this attribute
10390 during virtual machine execution.
10391 </note>
10392 <see><link to="#putMouseEvent"/></see>
10393 </desc>
10394 </attribute>
10395
10396 <attribute name="needsHostCursor" type="boolean" readonly="yes">
10397 <desc>
10398 Whether the guest OS can currently switch to drawing it's own mouse
10399 cursor on demand.
10400 <note>
10401 You can use the <link to="IMouseCapabilityChangedEvent"/>
10402 event to be instantly informed about changes of this attribute
10403 during virtual machine execution.
10404 </note>
10405 <see><link to="#putMouseEvent"/></see>
10406 </desc>
10407 </attribute>
10408
10409 <method name="putMouseEvent">
10410 <desc>
10411 Initiates a mouse event using relative pointer movements
10412 along x and y axis.
10413
10414 <result name="E_ACCESSDENIED">
10415 Console not powered up.
10416 </result>
10417 <result name="VBOX_E_IPRT_ERROR">
10418 Could not send mouse event to virtual mouse.
10419 </result>
10420
10421 </desc>
10422
10423 <param name="dx" type="long" dir="in">
10424 <desc>
10425 Amount of pixels the mouse should move to the right.
10426 Negative values move the mouse to the left.
10427 </desc>
10428 </param>
10429 <param name="dy" type="long" dir="in">
10430 <desc>
10431 Amount of pixels the mouse should move downwards.
10432 Negative values move the mouse upwards.
10433 </desc>
10434 </param>
10435 <param name="dz" type="long" dir="in">
10436 <desc>
10437 Amount of mouse wheel moves.
10438 Positive values describe clockwise wheel rotations,
10439 negative values describe counterclockwise rotations.
10440 </desc>
10441 </param>
10442 <param name="dw" type="long" dir="in">
10443 <desc>
10444 Amount of horizontal mouse wheel moves.
10445 Positive values describe a movement to the left,
10446 negative values describe a movement to the right.
10447 </desc>
10448 </param>
10449 <param name="buttonState" type="long" dir="in">
10450 <desc>
10451 The current state of mouse buttons. Every bit represents
10452 a mouse button as follows:
10453 <table>
10454 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
10455 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
10456 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
10457 </table>
10458 A value of <tt>1</tt> means the corresponding button is pressed.
10459 otherwise it is released.
10460 </desc>
10461 </param>
10462 </method>
10463
10464 <method name="putMouseEventAbsolute">
10465 <desc>
10466 Positions the mouse pointer using absolute x and y coordinates.
10467 These coordinates are expressed in pixels and
10468 start from <tt>[1,1]</tt> which corresponds to the top left
10469 corner of the virtual display.
10470
10471 <result name="E_ACCESSDENIED">
10472 Console not powered up.
10473 </result>
10474 <result name="VBOX_E_IPRT_ERROR">
10475 Could not send mouse event to virtual mouse.
10476 </result>
10477
10478 <note>
10479 This method will have effect only if absolute mouse
10480 positioning is supported by the guest OS.
10481 </note>
10482
10483 <see><link to="#absoluteSupported"/></see>
10484 </desc>
10485
10486 <param name="x" type="long" dir="in">
10487 <desc>
10488 X coordinate of the pointer in pixels, starting from @c 1.
10489 </desc>
10490 </param>
10491 <param name="y" type="long" dir="in">
10492 <desc>
10493 Y coordinate of the pointer in pixels, starting from @c 1.
10494 </desc>
10495 </param>
10496 <param name="dz" type="long" dir="in">
10497 <desc>
10498 Amount of mouse wheel moves.
10499 Positive values describe clockwise wheel rotations,
10500 negative values describe counterclockwise rotations.
10501 </desc>
10502 </param>
10503 <param name="dw" type="long" dir="in">
10504 <desc>
10505 Amount of horizontal mouse wheel moves.
10506 Positive values describe a movement to the left,
10507 negative values describe a movement to the right.
10508 </desc>
10509 </param>
10510 <param name="buttonState" type="long" dir="in">
10511 <desc>
10512 The current state of mouse buttons. Every bit represents
10513 a mouse button as follows:
10514 <table>
10515 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
10516 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
10517 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
10518 </table>
10519 A value of @c 1 means the corresponding button is pressed.
10520 otherwise it is released.
10521 </desc>
10522 </param>
10523 </method>
10524
10525 <attribute name="eventSource" type="IEventSource" readonly="yes">
10526 <desc>
10527 Event source for mouse events.
10528 </desc>
10529 </attribute>
10530
10531 </interface>
10532
10533 <!--
10534 // IDisplay
10535 /////////////////////////////////////////////////////////////////////////
10536 -->
10537
10538 <enum
10539 name="FramebufferPixelFormat"
10540 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
10541 >
10542 <desc>
10543 Format of the video memory buffer. Constants represented by this enum can
10544 be used to test for particular values of <link
10545 to="IFramebuffer::pixelFormat"/>. See also <link
10546 to="IFramebuffer::requestResize"/>.
10547
10548 See also www.fourcc.org for more information about FOURCC pixel formats.
10549 </desc>
10550
10551 <const name="Opaque" value="0">
10552 <desc>
10553 Unknown buffer format (the user may not assume any particular format of
10554 the buffer).
10555 </desc>
10556 </const>
10557 <const name="FOURCC_RGB" value="0x32424752">
10558 <desc>
10559 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
10560 bit layout).
10561 </desc>
10562 </const>
10563 </enum>
10564
10565 <interface
10566 name="IFramebuffer" extends="$unknown"
10567 uuid="b7ed347a-5765-40a0-ae1c-f543eb4ddeaf"
10568 wsmap="suppress"
10569 >
10570 <attribute name="address" type="octet" mod="ptr" readonly="yes">
10571 <desc>Address of the start byte of the frame buffer.</desc>
10572 </attribute>
10573
10574 <attribute name="width" type="unsigned long" readonly="yes">
10575 <desc>Frame buffer width, in pixels.</desc>
10576 </attribute>
10577
10578 <attribute name="height" type="unsigned long" readonly="yes">
10579 <desc>Frame buffer height, in pixels.</desc>
10580 </attribute>
10581
10582 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
10583 <desc>
10584 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
10585 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
10586 are: 8, 15, 16, 24 and 32.
10587 </desc>
10588 </attribute>
10589
10590 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
10591 <desc>
10592 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
10593 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
10594 size of the scan line must be aligned to 32 bits.
10595 </desc>
10596 </attribute>
10597
10598 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
10599 <desc>
10600 Frame buffer pixel format. It's either one of the values defined by <link
10601 to="FramebufferPixelFormat"/> or a raw FOURCC code.
10602 <note>
10603 This attribute must never return <link
10604 to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
10605 <link to="#address"/> points to must be always known.
10606 </note>
10607 </desc>
10608 </attribute>
10609
10610 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
10611 <desc>
10612 Defines whether this frame buffer uses the virtual video card's memory
10613 buffer (guest VRAM) directly or not. See <link
10614 to="IFramebuffer::requestResize"/> for more information.
10615 </desc>
10616 </attribute>
10617
10618 <attribute name="heightReduction" type="unsigned long" readonly="yes">
10619 <desc>
10620 Hint from the frame buffer about how much of the standard
10621 screen height it wants to use for itself. This information is
10622 exposed to the guest through the VESA BIOS and VMMDev interface
10623 so that it can use it for determining its video mode table. It
10624 is not guaranteed that the guest respects the value.
10625 </desc>
10626 </attribute>
10627
10628 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
10629 <desc>
10630 An alpha-blended overlay which is superposed over the frame buffer.
10631 The initial purpose is to allow the display of icons providing
10632 information about the VM state, including disk activity, in front
10633 ends which do not have other means of doing that. The overlay is
10634 designed to controlled exclusively by IDisplay. It has no locking
10635 of its own, and any changes made to it are not guaranteed to be
10636 visible until the affected portion of IFramebuffer is updated. The
10637 overlay can be created lazily the first time it is requested. This
10638 attribute can also return @c null to signal that the overlay is not
10639 implemented.
10640 </desc>
10641 </attribute>
10642
10643 <attribute name="winId" type="long long" readonly="yes">
10644 <desc>
10645 Platform-dependent identifier of the window where context of this
10646 frame buffer is drawn, or zero if there's no such window.
10647 </desc>
10648 </attribute>
10649
10650 <method name="lock">
10651 <desc>
10652 Locks the frame buffer.
10653 Gets called by the IDisplay object where this frame buffer is
10654 bound to.
10655 </desc>
10656 </method>
10657
10658 <method name="unlock">
10659 <desc>
10660 Unlocks the frame buffer.
10661 Gets called by the IDisplay object where this frame buffer is
10662 bound to.
10663 </desc>
10664 </method>
10665
10666 <method name="notifyUpdate">
10667 <desc>
10668 Informs about an update.
10669 Gets called by the display object where this buffer is
10670 registered.
10671 </desc>
10672 <param name="x" type="unsigned long" dir="in"/>
10673 <param name="y" type="unsigned long" dir="in"/>
10674 <param name="width" type="unsigned long" dir="in"/>
10675 <param name="height" type="unsigned long" dir="in"/>
10676 </method>
10677
10678 <method name="requestResize">
10679 <desc>
10680 Requests a size and pixel format change.
10681
10682 There are two modes of working with the video buffer of the virtual
10683 machine. The <i>indirect</i> mode implies that the IFramebuffer
10684 implementation allocates a memory buffer for the requested display mode
10685 and provides it to the virtual machine. In <i>direct</i> mode, the
10686 IFramebuffer implementation uses the memory buffer allocated and owned
10687 by the virtual machine. This buffer represents the video memory of the
10688 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
10689 usually faster because the implementation gets a raw pointer to the
10690 guest VRAM buffer which it can directly use for visualizing the contents
10691 of the virtual display, as opposed to the indirect mode where the
10692 contents of guest VRAM are copied to the memory buffer provided by
10693 the implementation every time a display update occurs.
10694
10695 It is important to note that the direct mode is really fast only when
10696 the implementation uses the given guest VRAM buffer directly, for
10697 example, by blitting it to the window representing the virtual machine's
10698 display, which saves at least one copy operation comparing to the
10699 indirect mode. However, using the guest VRAM buffer directly is not
10700 always possible: the format and the color depth of this buffer may be
10701 not supported by the target window, or it may be unknown (opaque) as in
10702 case of text or non-linear multi-plane VGA video modes. In this case,
10703 the indirect mode (that is always available) should be used as a
10704 fallback: when the guest VRAM contents are copied to the
10705 implementation-provided memory buffer, color and format conversion is
10706 done automatically by the underlying code.
10707
10708 The @a pixelFormat parameter defines whether the direct mode is
10709 available or not. If @a pixelFormat is <link
10710 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
10711 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
10712 @a bytesPerLine parameters must be ignored and the implementation must use
10713 the indirect mode (where it provides its own buffer in one of the
10714 supported formats). In all other cases, @a pixelFormat together with
10715 @a bitsPerPixel and @a bytesPerLine define the format of the video memory
10716 buffer pointed to by the @a VRAM parameter and the implementation is
10717 free to choose which mode to use. To indicate that this frame buffer uses
10718 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
10719 attribute must return @c true and <link to="#address"/> must
10720 return exactly the same address that is passed in the @a VRAM parameter
10721 of this method; otherwise it is assumed that the indirect strategy is
10722 chosen.
10723
10724 The @a width and @a height parameters represent the size of the
10725 requested display mode in both modes. In case of indirect mode, the
10726 provided memory buffer should be big enough to store data of the given
10727 display mode. In case of direct mode, it is guaranteed that the given
10728 @a VRAM buffer contains enough space to represent the display mode of the
10729 given size. Note that this frame buffer's <link to="#width"/> and <link
10730 to="#height"/> attributes must return exactly the same values as
10731 passed to this method after the resize is completed (see below).
10732
10733 The @a finished output parameter determines if the implementation has
10734 finished resizing the frame buffer or not. If, for some reason, the
10735 resize cannot be finished immediately during this call, @a finished
10736 must be set to @c false, and the implementation must call
10737 <link to="IDisplay::resizeCompleted"/> after it has returned from
10738 this method as soon as possible. If @a finished is @c false, the
10739 machine will not call any frame buffer methods until
10740 <link to="IDisplay::resizeCompleted"/> is called.
10741
10742 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
10743 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
10744 this frame buffer must return exactly the same values as specified in the
10745 parameters of this method, after the resize is completed. If the
10746 indirect mode is chosen, these attributes must return values describing
10747 the format of the implementation's own memory buffer <link
10748 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
10749 value must always correlate with <link to="#pixelFormat"/>. Note that
10750 the <link to="#pixelFormat"/> attribute must never return <link
10751 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
10752
10753 <note>
10754 This method is called by the IDisplay object under the
10755 <link to="#lock"/> provided by this IFramebuffer
10756 implementation. If this method returns @c false in @a finished, then
10757 this lock is not released until
10758 <link to="IDisplay::resizeCompleted"/> is called.
10759 </note>
10760 </desc>
10761 <param name="screenId" type="unsigned long" dir="in">
10762 <desc>
10763 Logical screen number. Must be used in the corresponding call to
10764 <link to="IDisplay::resizeCompleted"/> if this call is made.
10765 </desc>
10766 </param>
10767 <param name="pixelFormat" type="unsigned long" dir="in">
10768 <desc>
10769 Pixel format of the memory buffer pointed to by @a VRAM.
10770 See also <link to="FramebufferPixelFormat"/>.
10771 </desc>
10772 </param>
10773 <param name="VRAM" type="octet" mod="ptr" dir="in">
10774 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
10775 </param>
10776 <param name="bitsPerPixel" type="unsigned long" dir="in">
10777 <desc>Color depth, bits per pixel.</desc>
10778 </param>
10779 <param name="bytesPerLine" type="unsigned long" dir="in">
10780 <desc>Size of one scan line, in bytes.</desc>
10781 </param>
10782 <param name="width" type="unsigned long" dir="in">
10783 <desc>Width of the guest display, in pixels.</desc>
10784 </param>
10785 <param name="height" type="unsigned long" dir="in">
10786 <desc>Height of the guest display, in pixels.</desc>
10787 </param>
10788 <param name="finished" type="boolean" dir="return">
10789 <desc>
10790 Can the VM start using the new frame buffer immediately
10791 after this method returns or it should wait for
10792 <link to="IDisplay::resizeCompleted"/>.
10793 </desc>
10794 </param>
10795 </method>
10796
10797 <method name="videoModeSupported">
10798 <desc>
10799 Returns whether the frame buffer implementation is willing to
10800 support a given video mode. In case it is not able to render
10801 the video mode (or for some reason not willing), it should
10802 return @c false. Usually this method is called when the guest
10803 asks the VMM device whether a given video mode is supported
10804 so the information returned is directly exposed to the guest.
10805 It is important that this method returns very quickly.
10806 </desc>
10807 <param name="width" type="unsigned long" dir="in"/>
10808 <param name="height" type="unsigned long" dir="in"/>
10809 <param name="bpp" type="unsigned long" dir="in"/>
10810 <param name="supported" type="boolean" dir="return"/>
10811 </method>
10812
10813 <method name="getVisibleRegion">
10814 <desc>
10815 Returns the visible region of this frame buffer.
10816
10817 If the @a rectangles parameter is @c null then the value of the
10818 @a count parameter is ignored and the number of elements necessary to
10819 describe the current visible region is returned in @a countCopied.
10820
10821 If @a rectangles is not @c null but @a count is less
10822 than the required number of elements to store region data, the method
10823 will report a failure. If @a count is equal or greater than the
10824 required number of elements, then the actual number of elements copied
10825 to the provided array will be returned in @a countCopied.
10826
10827 <note>
10828 The address of the provided array must be in the process space of
10829 this IFramebuffer object.
10830 </note>
10831 <note>
10832 Method not yet implemented.
10833 </note>
10834 </desc>
10835 <param name="rectangles" type="octet" mod="ptr" dir="in">
10836 <desc>Pointer to the @c RTRECT array to receive region data.</desc>
10837 </param>
10838 <param name="count" type="unsigned long" dir="in">
10839 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
10840 </param>
10841 <param name="countCopied" type="unsigned long" dir="return">
10842 <desc>Number of elements copied to the @a rectangles array.</desc>
10843 </param>
10844 </method>
10845
10846 <method name="setVisibleRegion">
10847 <desc>
10848 Suggests a new visible region to this frame buffer. This region
10849 represents the area of the VM display which is a union of regions of
10850 all top-level windows of the guest operating system running inside the
10851 VM (if the Guest Additions for this system support this
10852 functionality). This information may be used by the frontends to
10853 implement the seamless desktop integration feature.
10854
10855 <note>
10856 The address of the provided array must be in the process space of
10857 this IFramebuffer object.
10858 </note>
10859 <note>
10860 The IFramebuffer implementation must make a copy of the provided
10861 array of rectangles.
10862 </note>
10863 <note>
10864 Method not yet implemented.
10865 </note>
10866 </desc>
10867 <param name="rectangles" type="octet" mod="ptr" dir="in">
10868 <desc>Pointer to the @c RTRECT array.</desc>
10869 </param>
10870 <param name="count" type="unsigned long" dir="in">
10871 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
10872 </param>
10873 </method>
10874
10875 <method name="processVHWACommand">
10876 <desc>
10877 Posts a Video HW Acceleration Command to the frame buffer for processing.
10878 The commands used for 2D video acceleration (DDraw surface creation/destroying, blitting, scaling, color conversion, overlaying, etc.)
10879 are posted from quest to the host to be processed by the host hardware.
10880
10881 <note>
10882 The address of the provided command must be in the process space of
10883 this IFramebuffer object.
10884 </note>
10885 </desc>
10886
10887 <param name="command" type="octet" mod="ptr" dir="in">
10888 <desc>Pointer to VBOXVHWACMD containing the command to execute.</desc>
10889 </param>
10890 </method>
10891
10892 </interface>
10893
10894 <interface
10895 name="IFramebufferOverlay" extends="IFramebuffer"
10896 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
10897 wsmap="suppress"
10898 >
10899 <desc>
10900 The IFramebufferOverlay interface represents an alpha blended overlay
10901 for displaying status icons above an IFramebuffer. It is always created
10902 not visible, so that it must be explicitly shown. It only covers a
10903 portion of the IFramebuffer, determined by its width, height and
10904 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
10905 that order) format, and may be written to directly. Do re-read the
10906 width though, after setting it, as it may be adjusted (increased) to
10907 make it more suitable for the front end.
10908 </desc>
10909 <attribute name="x" type="unsigned long" readonly="yes">
10910 <desc>X position of the overlay, relative to the frame buffer.</desc>
10911 </attribute>
10912
10913 <attribute name="y" type="unsigned long" readonly="yes">
10914 <desc>Y position of the overlay, relative to the frame buffer.</desc>
10915 </attribute>
10916
10917 <attribute name="visible" type="boolean" readonly="no">
10918 <desc>
10919 Whether the overlay is currently visible.
10920 </desc>
10921 </attribute>
10922
10923 <attribute name="alpha" type="unsigned long" readonly="no">
10924 <desc>
10925 The global alpha value for the overlay. This may or may not be
10926 supported by a given front end.
10927 </desc>
10928 </attribute>
10929
10930 <method name="move">
10931 <desc>
10932 Changes the overlay's position relative to the IFramebuffer.
10933 </desc>
10934 <param name="x" type="unsigned long" dir="in"/>
10935 <param name="y" type="unsigned long" dir="in"/>
10936 </method>
10937
10938 </interface>
10939
10940 <interface
10941 name="IDisplay" extends="$unknown"
10942 uuid="09EED313-CD56-4D06-BD56-FAC0F716B5DD"
10943 wsmap="managed"
10944 >
10945 <desc>
10946 The IDisplay interface represents the virtual machine's display.
10947
10948 The object implementing this interface is contained in each
10949 <link to="IConsole::display"/> attribute and represents the visual
10950 output of the virtual machine.
10951
10952 The virtual display supports pluggable output targets represented by the
10953 IFramebuffer interface. Examples of the output target are a window on
10954 the host computer or an RDP session's display on a remote computer.
10955 </desc>
10956 <method name="getScreenResolution">
10957 <desc>Queries display width, height and color depth for given screen.</desc>
10958 <param name="screenId" type="unsigned long" dir="in"/>
10959 <param name="width" type="unsigned long" dir="out"/>
10960 <param name="height" type="unsigned long" dir="out"/>
10961 <param name="bitsPerPixel" type="unsigned long" dir="out"/>
10962 </method>
10963
10964 <method name="setFramebuffer">
10965 <desc>
10966 Sets the framebuffer for given screen.
10967 </desc>
10968 <param name="screenId" type="unsigned long" dir="in"/>
10969 <param name="framebuffer" type="IFramebuffer" dir="in"/>
10970 </method>
10971
10972 <method name="getFramebuffer">
10973 <desc>
10974 Queries the framebuffer for given screen.
10975 </desc>
10976 <param name="screenId" type="unsigned long" dir="in"/>
10977 <param name="framebuffer" type="IFramebuffer" dir="out"/>
10978 <param name="xOrigin" type="long" dir="out"/>
10979 <param name="yOrigin" type="long" dir="out"/>
10980 </method>
10981
10982 <method name="setVideoModeHint">
10983 <desc>
10984 Asks VirtualBox to request the given video mode from
10985 the guest. This is just a hint and it cannot be guaranteed
10986 that the requested resolution will be used. Guest Additions
10987 are required for the request to be seen by guests. The caller
10988 should issue the request and wait for a resolution change and
10989 after a timeout retry.
10990
10991 Specifying @c 0 for either @a width, @a height or @a bitsPerPixel
10992 parameters means that the corresponding values should be taken from the
10993 current video mode (i.e. left unchanged).
10994
10995 If the guest OS supports multi-monitor configuration then the @a display
10996 parameter specifies the number of the guest display to send the hint to:
10997 @c 0 is the primary display, @c 1 is the first secondary and
10998 so on. If the multi-monitor configuration is not supported, @a display
10999 must be @c 0.
11000
11001 <result name="E_INVALIDARG">
11002 The @a display is not associated with any monitor.
11003 </result>
11004
11005 </desc>
11006 <param name="width" type="unsigned long" dir="in"/>
11007 <param name="height" type="unsigned long" dir="in"/>
11008 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
11009 <param name="display" type="unsigned long" dir="in"/>
11010 </method>
11011
11012 <method name="setSeamlessMode">
11013 <desc>
11014 Enables or disables seamless guest display rendering (seamless desktop
11015 integration) mode.
11016 <note>
11017 Calling this method has no effect if <link
11018 to="IGuest::supportsSeamless"/> returns @c false.
11019 </note>
11020 </desc>
11021 <param name="enabled" type="boolean" dir="in"/>
11022 </method>
11023
11024 <method name="takeScreenShot">
11025 <desc>
11026 Takes a screen shot of the requested size and copies it to the
11027 32-bpp buffer allocated by the caller and pointed to by @a address.
11028 A pixel consists of 4 bytes in order: B, G, R, 0.
11029
11030 <note>This API can be used only by the COM/XPCOM C++ API as it
11031 requires pointer support. Use <link to="#takeScreenShotToArray" />
11032 with other language bindings.
11033 </note>
11034
11035 <result name="E_NOTIMPL">
11036 Feature not implemented.
11037 </result>
11038 <result name="VBOX_E_IPRT_ERROR">
11039 Could not take a screenshot.
11040 </result>
11041
11042 </desc>
11043 <param name="screenId" type="unsigned long" dir="in"/>
11044 <param name="address" type="octet" mod="ptr" dir="in"/>
11045 <param name="width" type="unsigned long" dir="in"/>
11046 <param name="height" type="unsigned long" dir="in"/>
11047 </method>
11048
11049 <method name="takeScreenShotToArray">
11050 <desc>
11051 Takes a guest screen shot of the requested size and returns it as
11052 an array of bytes in uncompressed 32-bit RGBA format.
11053 A pixel consists of 4 bytes in order: R, G, B, 0xFF.
11054
11055 This API is slow, but could be the only option to get guest screenshot
11056 for scriptable languages not allowed to manipulate with addresses
11057 directly.
11058
11059 <result name="E_NOTIMPL">
11060 Feature not implemented.
11061 </result>
11062 <result name="VBOX_E_IPRT_ERROR">
11063 Could not take a screenshot.
11064 </result>
11065 </desc>
11066 <param name="screenId" type="unsigned long" dir="in">
11067 <desc>
11068 Monitor to take screenshot from.
11069 </desc>
11070 </param>
11071 <param name="width" type="unsigned long" dir="in">
11072 <desc>
11073 Desired image width.
11074 </desc>
11075 </param>
11076 <param name="height" type="unsigned long" dir="in">
11077 <desc>
11078 Desired image height.
11079 </desc>
11080 </param>
11081 <param name="screenData" type="octet" dir="return" safearray="yes">
11082 <desc>
11083 Array with resulting screen data.
11084 </desc>
11085 </param>
11086 </method>
11087
11088 <method name="takeScreenShotPNGToArray">
11089 <desc>
11090 Takes a guest screen shot of the requested size and returns it as
11091 PNG image in array.
11092
11093 <result name="E_NOTIMPL">
11094 Feature not implemented.
11095 </result>
11096 <result name="VBOX_E_IPRT_ERROR">
11097 Could not take a screenshot.
11098 </result>
11099 </desc>
11100 <param name="screenId" type="unsigned long" dir="in">
11101 <desc>
11102 Monitor to take the screenshot from.
11103 </desc>
11104 </param>
11105 <param name="width" type="unsigned long" dir="in">
11106 <desc>
11107 Desired image width.
11108 </desc>
11109 </param>
11110 <param name="height" type="unsigned long" dir="in">
11111 <desc>
11112 Desired image height.
11113 </desc>
11114 </param>
11115 <param name="screenData" type="octet" dir="return" safearray="yes">
11116 <desc>
11117 Array with resulting screen data.
11118 </desc>
11119 </param>
11120 </method>
11121
11122 <method name="drawToScreen">
11123 <desc>
11124 Draws a 32-bpp image of the specified size from the given buffer
11125 to the given point on the VM display.
11126
11127 <result name="E_NOTIMPL">
11128 Feature not implemented.
11129 </result>
11130 <result name="VBOX_E_IPRT_ERROR">
11131 Could not draw to screen.
11132 </result>
11133
11134 </desc>
11135 <param name="screenId" type="unsigned long" dir="in">
11136 <desc>
11137 Monitor to take the screenshot from.
11138 </desc>
11139 </param>
11140 <param name="address" type="octet" mod="ptr" dir="in">
11141 <desc>
11142 Address to store the screenshot to
11143 </desc>
11144 </param>
11145 <param name="x" type="unsigned long" dir="in">
11146 <desc>
11147 Relative to the screen top left corner.
11148 </desc>
11149 </param>
11150 <param name="y" type="unsigned long" dir="in">
11151 <desc>
11152 Relative to the screen top left corner.
11153 </desc>
11154 </param>
11155 <param name="width" type="unsigned long" dir="in">
11156 <desc>
11157 Desired image width.
11158 </desc>
11159 </param>
11160 <param name="height" type="unsigned long" dir="in">
11161 <desc>
11162 Desired image height.
11163 </desc>
11164 </param>
11165 </method>
11166
11167 <method name="invalidateAndUpdate">
11168 <desc>
11169 Does a full invalidation of the VM display and instructs the VM
11170 to update it.
11171
11172 <result name="VBOX_E_IPRT_ERROR">
11173 Could not invalidate and update screen.
11174 </result>
11175
11176 </desc>
11177 </method>
11178
11179 <method name="resizeCompleted">
11180 <desc>
11181 Signals that a framebuffer has completed the resize operation.
11182
11183 <result name="VBOX_E_NOT_SUPPORTED">
11184 Operation only valid for external frame buffers.
11185 </result>
11186
11187 </desc>
11188 <param name="screenId" type="unsigned long" dir="in"/>
11189 </method>
11190
11191 <method name="completeVHWACommand">
11192 <desc>
11193 Signals that the Video HW Acceleration command has completed.
11194 </desc>
11195
11196 <param name="command" type="octet" mod="ptr" dir="in">
11197 <desc>Pointer to VBOXVHWACMD containing the completed command.</desc>
11198 </param>
11199 </method>
11200
11201 </interface>
11202
11203 <!--
11204 // INetworkAdapter
11205 /////////////////////////////////////////////////////////////////////////
11206 -->
11207
11208 <enum
11209 name="NetworkAttachmentType"
11210 uuid="44bce1ee-99f7-4e8e-89fc-80597fd9eeaf"
11211 >
11212 <desc>
11213 Network attachment type.
11214 </desc>
11215
11216 <const name="Null" value="0">
11217 <desc>Null value, also means "not attached".</desc>
11218 </const>
11219 <const name="NAT" value="1"/>
11220 <const name="Bridged" value="2"/>
11221 <const name="Internal" value="3"/>
11222 <const name="HostOnly" value="4"/>
11223 <const name="VDE" value="5"/>
11224 </enum>
11225
11226 <enum
11227 name="NetworkAdapterType"
11228 uuid="3c2281e4-d952-4e87-8c7d-24379cb6a81c"
11229 >
11230 <desc>
11231 Network adapter type.
11232 </desc>
11233
11234 <const name="Null" value="0">
11235 <desc>Null value (never used by the API).</desc>
11236 </const>
11237 <const name="Am79C970A" value="1">
11238 <desc>AMD PCNet-PCI II network card (Am79C970A).</desc>
11239 </const>
11240 <const name="Am79C973" value="2">
11241 <desc>AMD PCNet-FAST III network card (Am79C973).</desc>
11242 </const>
11243 <const name="I82540EM" value="3">
11244 <desc>Intel PRO/1000 MT Desktop network card (82540EM).</desc>
11245 </const>
11246 <const name="I82543GC" value="4">
11247 <desc>Intel PRO/1000 T Server network card (82543GC).</desc>
11248 </const>
11249 <const name="I82545EM" value="5">
11250 <desc>Intel PRO/1000 MT Server network card (82545EM).</desc>
11251 </const>
11252 <const name="Virtio" value="6">
11253 <desc>Virtio network device.</desc>
11254 </const>
11255 </enum>
11256
11257 <interface
11258 name="INetworkAdapter" extends="$unknown"
11259 uuid="9bf58a46-c3f7-4f31-80fa-dde9a5dc0b7b"
11260 wsmap="managed"
11261 >
11262 <desc>
11263 Represents a virtual network adapter that is attached to a virtual machine.
11264 Each virtual machine has a fixed number of network adapter slots with one
11265 instance of this attached to each of them. Call
11266 <link to="IMachine::getNetworkAdapter" /> to get the network adapter that
11267 is attached to a given slot in a given machine.
11268
11269 Each network adapter can be in one of five attachment modes, which are
11270 represented by the <link to="NetworkAttachmentType" /> enumeration;
11271 see the <link to="#attachmentType" /> attribute.
11272 </desc>
11273
11274 <attribute name="adapterType" type="NetworkAdapterType">
11275 <desc>
11276 Type of the virtual network adapter. Depending on this value,
11277 VirtualBox will provide a different virtual network hardware
11278 to the guest.
11279 </desc>
11280 </attribute>
11281
11282 <attribute name="slot" type="unsigned long" readonly="yes">
11283 <desc>
11284 Slot number this adapter is plugged into. Corresponds to
11285 the value you pass to <link to="IMachine::getNetworkAdapter"/>
11286 to obtain this instance.
11287 </desc>
11288 </attribute>
11289
11290 <attribute name="enabled" type="boolean">
11291 <desc>
11292 Flag whether the network adapter is present in the
11293 guest system. If disabled, the virtual guest hardware will
11294 not contain this network adapter. Can only be changed when
11295 the VM is not running.
11296 </desc>
11297 </attribute>
11298
11299 <attribute name="MACAddress" type="wstring">
11300 <desc>
11301 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
11302 it to @c null or an empty string, VirtualBox will generate a unique MAC address.
11303 </desc>
11304 </attribute>
11305
11306 <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
11307
11308 <attribute name="hostInterface" type="wstring">
11309 <desc>
11310 Name of the host network interface the VM is attached to.
11311 </desc>
11312 </attribute>
11313
11314 <attribute name="internalNetwork" type="wstring">
11315 <desc>
11316 Name of the internal network the VM is attached to.
11317 </desc>
11318 </attribute>
11319
11320 <attribute name="NATNetwork" type="wstring">
11321 <desc>
11322 Name of the NAT network the VM is attached to.
11323 </desc>
11324 </attribute>
11325
11326 <attribute name="VDENetwork" type="wstring">
11327 <desc>
11328 Name of the VDE switch the VM is attached to.
11329 </desc>
11330 </attribute>
11331
11332 <attribute name="cableConnected" type="boolean">
11333 <desc>
11334 Flag whether the adapter reports the cable as connected or not.
11335 It can be used to report offline situations to a VM.
11336 </desc>
11337 </attribute>
11338
11339 <attribute name="lineSpeed" type="unsigned long">
11340 <desc>
11341 Line speed reported by custom drivers, in units of 1 kbps.
11342 </desc>
11343 </attribute>
11344
11345 <attribute name="traceEnabled" type="boolean">
11346 <desc>
11347 Flag whether network traffic from/to the network card should be traced.
11348 Can only be toggled when the VM is turned off.
11349 </desc>
11350 </attribute>
11351
11352 <attribute name="traceFile" type="wstring">
11353 <desc>
11354 Filename where a network trace will be stored. If not set, VBox-pid.pcap
11355 will be used.
11356 </desc>
11357 </attribute>
11358
11359 <attribute name="natDriver" type="INATEngine" readonly="yes">
11360 <desc>
11361 Points to the NAT engine which handles the network address translation
11362 for this interface. This is active only when the interface actually uses
11363 NAT (see <link to="#attachToNAT" />).
11364 </desc>
11365 </attribute>
11366
11367 <attribute name="bootPriority" type="unsigned long">
11368 <desc>
11369 Network boot priority of the adapter. Priority 1 is highest. If not set,
11370 the priority is considered to be at the lowest possible setting.
11371 </desc>
11372 </attribute>
11373
11374 <attribute name="bandwidthLimit" type="unsigned long">
11375 <desc>
11376 Maximum throughput allowed for this network adapter, in units of 1 mbps.
11377 A zero value means uncapped/unlimited.
11378 </desc>
11379 </attribute>
11380
11381 <method name="attachToNAT">
11382 <desc>
11383 Attach the network adapter to the Network Address Translation (NAT) interface.
11384 </desc>
11385 </method>
11386
11387 <method name="attachToBridgedInterface">
11388 <desc>
11389 Attach the network adapter to a bridged host interface.
11390 </desc>
11391 </method>
11392
11393 <method name="attachToInternalNetwork">
11394 <desc>
11395 Attach the network adapter to an internal network.
11396 </desc>
11397 </method>
11398
11399 <method name="attachToHostOnlyInterface">
11400 <desc>
11401 Attach the network adapter to the host-only network.
11402 </desc>
11403 </method>
11404
11405 <method name="attachToVDE">
11406 <desc>
11407 Attach the network adapter to a VDE network.
11408 </desc>
11409 </method>
11410
11411 <method name="detach">
11412 <desc>
11413 Detach the network adapter
11414 </desc>
11415 </method>
11416 </interface>
11417
11418
11419 <!--
11420 // ISerialPort
11421 /////////////////////////////////////////////////////////////////////////
11422 -->
11423
11424 <enum
11425 name="PortMode"
11426 uuid="533b5fe3-0185-4197-86a7-17e37dd39d76"
11427 >
11428 <desc>
11429 The PortMode enumeration represents possible communication modes for
11430 the virtual serial port device.
11431 </desc>
11432
11433 <const name="Disconnected" value="0">
11434 <desc>Virtual device is not attached to any real host device.</desc>
11435 </const>
11436 <const name="HostPipe" value="1">
11437 <desc>Virtual device is attached to a host pipe.</desc>
11438 </const>
11439 <const name="HostDevice" value="2">
11440 <desc>Virtual device is attached to a host device.</desc>
11441 </const>
11442 <const name="RawFile" value="3">
11443 <desc>Virtual device is attached to a raw file.</desc>
11444 </const>
11445 </enum>
11446
11447 <interface
11448 name="ISerialPort" extends="$unknown"
11449 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
11450 wsmap="managed"
11451 >
11452
11453 <desc>
11454 The ISerialPort interface represents the virtual serial port device.
11455
11456 The virtual serial port device acts like an ordinary serial port
11457 inside the virtual machine. This device communicates to the real
11458 serial port hardware in one of two modes: host pipe or host device.
11459
11460 In host pipe mode, the #path attribute specifies the path to the pipe on
11461 the host computer that represents a serial port. The #server attribute
11462 determines if this pipe is created by the virtual machine process at
11463 machine startup or it must already exist before starting machine
11464 execution.
11465
11466 In host device mode, the #path attribute specifies the name of the
11467 serial port device on the host computer.
11468
11469 There is also a third communication mode: the disconnected mode. In this
11470 mode, the guest OS running inside the virtual machine will be able to
11471 detect the serial port, but all port write operations will be discarded
11472 and all port read operations will return no data.
11473
11474 <see>IMachine::getSerialPort</see>
11475 </desc>
11476
11477 <attribute name="slot" type="unsigned long" readonly="yes">
11478 <desc>
11479 Slot number this serial port is plugged into. Corresponds to
11480 the value you pass to <link to="IMachine::getSerialPort"/>
11481 to obtain this instance.
11482 </desc>
11483 </attribute>
11484
11485 <attribute name="enabled" type="boolean">
11486 <desc>
11487 Flag whether the serial port is enabled. If disabled,
11488 the serial port will not be reported to the guest OS.
11489 </desc>
11490 </attribute>
11491
11492 <attribute name="IOBase" type="unsigned long">
11493 <desc>Base I/O address of the serial port.</desc>
11494 </attribute>
11495
11496 <attribute name="IRQ" type="unsigned long">
11497 <desc>IRQ number of the serial port.</desc>
11498 </attribute>
11499
11500 <attribute name="hostMode" type="PortMode">
11501 <desc>
11502 How is this port connected to the host.
11503 <note>
11504 Changing this attribute may fail if the conditions for
11505 <link to="#path"/> are not met.
11506 </note>
11507 </desc>
11508 </attribute>
11509
11510 <attribute name="server" type="boolean">
11511 <desc>
11512 Flag whether this serial port acts as a server (creates a new pipe on
11513 the host) or as a client (uses the existing pipe). This attribute is
11514 used only when <link to="#hostMode"/> is PortMode_HostPipe.
11515 </desc>
11516 </attribute>
11517
11518 <attribute name="path" type="wstring">
11519 <desc>
11520 Path to the serial port's pipe on the host when <link to="ISerialPort::hostMode"/> is
11521 PortMode_HostPipe, or the host serial device name when
11522 <link to="ISerialPort::hostMode"/> is PortMode_HostDevice. For both
11523 cases, setting a @c null or empty string as the attribute's value
11524 is an error. Otherwise, the value of this property is ignored.
11525 </desc>
11526 </attribute>
11527
11528 </interface>
11529
11530 <!--
11531 // IParallelPort
11532 /////////////////////////////////////////////////////////////////////////
11533 -->
11534
11535 <interface
11536 name="IParallelPort" extends="$unknown"
11537 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
11538 wsmap="managed"
11539 >
11540
11541 <desc>
11542 The IParallelPort interface represents the virtual parallel port device.
11543
11544 The virtual parallel port device acts like an ordinary parallel port
11545 inside the virtual machine. This device communicates to the real
11546 parallel port hardware using the name of the parallel device on the host
11547 computer specified in the #path attribute.
11548
11549 Each virtual parallel port device is assigned a base I/O address and an
11550 IRQ number that will be reported to the guest operating system and used
11551 to operate the given parallel port from within the virtual machine.
11552
11553 <see>IMachine::getParallelPort</see>
11554 </desc>
11555
11556 <attribute name="slot" type="unsigned long" readonly="yes">
11557 <desc>
11558 Slot number this parallel port is plugged into. Corresponds to
11559 the value you pass to <link to="IMachine::getParallelPort"/>
11560 to obtain this instance.
11561 </desc>
11562 </attribute>
11563
11564 <attribute name="enabled" type="boolean">
11565 <desc>
11566 Flag whether the parallel port is enabled. If disabled,
11567 the parallel port will not be reported to the guest OS.
11568 </desc>
11569 </attribute>
11570
11571 <attribute name="IOBase" type="unsigned long">
11572 <desc>Base I/O address of the parallel port.</desc>
11573 </attribute>
11574
11575 <attribute name="IRQ" type="unsigned long">
11576 <desc>IRQ number of the parallel port.</desc>
11577 </attribute>
11578
11579 <attribute name="path" type="wstring">
11580 <desc>
11581 Host parallel device name. If this parallel port is enabled, setting a
11582 @c null or an empty string as this attribute's value will result into
11583 an error.
11584 </desc>
11585 </attribute>
11586
11587 </interface>
11588
11589
11590 <!--
11591 // IMachineDebugger
11592 /////////////////////////////////////////////////////////////////////////
11593 -->
11594
11595 <interface
11596 name="IMachineDebugger" extends="$unknown"
11597 uuid="b0b2a2dd-0627-4502-91c2-ddc5e77609e0"
11598 wsmap="suppress"
11599 >
11600 <method name="resetStats">
11601 <desc>
11602 Reset VM statistics.
11603 </desc>
11604 <param name="pattern" type="wstring" dir="in">
11605 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11606 </param>
11607 </method>
11608
11609 <method name="dumpStats">
11610 <desc>
11611 Dumps VM statistics.
11612 </desc>
11613 <param name="pattern" type="wstring" dir="in">
11614 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11615 </param>
11616 </method>
11617
11618 <method name="getStats">
11619 <desc>
11620 Get the VM statistics in a XMLish format.
11621 </desc>
11622 <param name="pattern" type="wstring" dir="in">
11623 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11624 </param>
11625 <param name="withDescriptions" type="boolean" dir="in">
11626 <desc>Whether to include the descriptions.</desc>
11627 </param>
11628 <param name="stats" type="wstring" dir="out">
11629 <desc>The XML document containing the statistics.</desc>
11630 </param>
11631 </method>
11632
11633 <method name="injectNMI">
11634 <desc>
11635 Inject an NMI into a running VT-x/AMD-V VM.
11636 </desc>
11637 </method>
11638
11639 <attribute name="singlestep" type="boolean">
11640 <desc>Switch for enabling singlestepping.</desc>
11641 </attribute>
11642
11643 <attribute name="recompileUser" type="boolean">
11644 <desc>Switch for forcing code recompilation for user mode code.</desc>
11645 </attribute>
11646
11647 <attribute name="recompileSupervisor" type="boolean">
11648 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
11649 </attribute>
11650
11651 <attribute name="PATMEnabled" type="boolean">
11652 <desc>Switch for enabling and disabling the PATM component.</desc>
11653 </attribute>
11654
11655 <attribute name="CSAMEnabled" type="boolean">
11656 <desc>Switch for enabling and disabling the CSAM component.</desc>
11657 </attribute>
11658
11659 <attribute name="logEnabled" type="boolean">
11660 <desc>Switch for enabling and disabling logging.</desc>
11661 </attribute>
11662
11663 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
11664 <desc>
11665 Flag indicating whether the VM is currently making use of CPU hardware
11666 virtualization extensions.
11667 </desc>
11668 </attribute>
11669
11670 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
11671 <desc>
11672 Flag indicating whether the VM is currently making use of the nested paging
11673 CPU hardware virtualization extension.
11674 </desc>
11675 </attribute>
11676
11677 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
11678 <desc>
11679 Flag indicating whether the VM is currently making use of the VPID
11680 VT-x extension.
11681 </desc>
11682 </attribute>
11683
11684 <attribute name="PAEEnabled" type="boolean" readonly="yes">
11685 <desc>
11686 Flag indicating whether the VM is currently making use of the Physical
11687 Address Extension CPU feature.
11688 </desc>
11689 </attribute>
11690
11691 <attribute name="virtualTimeRate" type="unsigned long">
11692 <desc>
11693 The rate at which the virtual time runs expressed as a percentage.
11694 The accepted range is 2% to 20000%.
11695 </desc>
11696 </attribute>
11697
11698 <!-- @todo method for setting log flags, groups and destination! -->
11699
11700 <attribute name="VM" type="long long" readonly="yes">
11701 <desc>
11702 Gets the VM handle. This is only for internal use while
11703 we carve the details of this interface.
11704 </desc>
11705 </attribute>
11706
11707 </interface>
11708
11709 <!--
11710 // IUSBController
11711 /////////////////////////////////////////////////////////////////////////
11712 -->
11713
11714 <interface
11715 name="IUSBController" extends="$unknown"
11716 uuid="6fdcccc5-abd3-4fec-9387-2ad3914fc4a8"
11717 wsmap="managed"
11718 >
11719 <attribute name="enabled" type="boolean">
11720 <desc>
11721 Flag whether the USB controller is present in the
11722 guest system. If disabled, the virtual guest hardware will
11723 not contain any USB controller. Can only be changed when
11724 the VM is powered off.
11725 </desc>
11726 </attribute>
11727
11728 <attribute name="enabledEhci" type="boolean">
11729 <desc>
11730 Flag whether the USB EHCI controller is present in the
11731 guest system. If disabled, the virtual guest hardware will
11732 not contain a USB EHCI controller. Can only be changed when
11733 the VM is powered off.
11734 </desc>
11735 </attribute>
11736
11737 <attribute name="proxyAvailable" type="boolean" readonly="yes">
11738 <desc>
11739 Flag whether there is an USB proxy available.
11740 </desc>
11741 </attribute>
11742
11743 <attribute name="USBStandard" type="unsigned short" readonly="yes">
11744 <desc>
11745 USB standard version which the controller implements.
11746 This is a BCD which means that the major version is in the
11747 high byte and minor version is in the low byte.
11748 </desc>
11749 </attribute>
11750
11751 <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
11752 <desc>
11753 List of USB device filters associated with the machine.
11754
11755 If the machine is currently running, these filters are activated
11756 every time a new (supported) USB device is attached to the host
11757 computer that was not ignored by global filters
11758 (<link to="IHost::USBDeviceFilters"/>).
11759
11760 These filters are also activated when the machine is powered up.
11761 They are run against a list of all currently available USB
11762 devices (in states
11763 <link to="USBDeviceState_Available"/>,
11764 <link to="USBDeviceState_Busy"/>,
11765 <link to="USBDeviceState_Held"/>) that were not previously
11766 ignored by global filters.
11767
11768 If at least one filter matches the USB device in question, this
11769 device is automatically captured (attached to) the virtual USB
11770 controller of this machine.
11771
11772 <see>IUSBDeviceFilter, ::IUSBController</see>
11773 </desc>
11774 </attribute>
11775
11776 <method name="createDeviceFilter">
11777 <desc>
11778 Creates a new USB device filter. All attributes except
11779 the filter name are set to empty (any match),
11780 <i>active</i> is @c false (the filter is not active).
11781
11782 The created filter can then be added to the list of filters using
11783 <link to="#insertDeviceFilter"/>.
11784
11785 <result name="VBOX_E_INVALID_VM_STATE">
11786 The virtual machine is not mutable.
11787 </result>
11788
11789 <see>#deviceFilters</see>
11790 </desc>
11791 <param name="name" type="wstring" dir="in">
11792 <desc>
11793 Filter name. See <link to="IUSBDeviceFilter::name"/>
11794 for more info.
11795 </desc>
11796 </param>
11797 <param name="filter" type="IUSBDeviceFilter" dir="return">
11798 <desc>Created filter object.</desc>
11799 </param>
11800 </method>
11801
11802 <method name="insertDeviceFilter">
11803 <desc>
11804 Inserts the given USB device to the specified position
11805 in the list of filters.
11806
11807 Positions are numbered starting from <tt>0</tt>. If the specified
11808 position is equal to or greater than the number of elements in
11809 the list, the filter is added to the end of the collection.
11810
11811 <note>
11812 Duplicates are not allowed, so an attempt to insert a
11813 filter that is already in the collection, will return an
11814 error.
11815 </note>
11816
11817 <result name="VBOX_E_INVALID_VM_STATE">
11818 Virtual machine is not mutable.
11819 </result>
11820 <result name="E_INVALIDARG">
11821 USB device filter not created within this VirtualBox instance.
11822 </result>
11823 <result name="VBOX_E_INVALID_OBJECT_STATE">
11824 USB device filter already in list.
11825 </result>
11826
11827 <see>#deviceFilters</see>
11828 </desc>
11829 <param name="position" type="unsigned long" dir="in">
11830 <desc>Position to insert the filter to.</desc>
11831 </param>
11832 <param name="filter" type="IUSBDeviceFilter" dir="in">
11833 <desc>USB device filter to insert.</desc>
11834 </param>
11835 </method>
11836
11837 <method name="removeDeviceFilter">
11838 <desc>
11839 Removes a USB device filter from the specified position in the
11840 list of filters.
11841
11842 Positions are numbered starting from <tt>0</tt>. Specifying a
11843 position equal to or greater than the number of elements in
11844 the list will produce an error.
11845
11846 <see>#deviceFilters</see>
11847
11848 <result name="VBOX_E_INVALID_VM_STATE">
11849 Virtual machine is not mutable.
11850 </result>
11851 <result name="E_INVALIDARG">
11852 USB device filter list empty or invalid @a position.
11853 </result>
11854
11855 </desc>
11856 <param name="position" type="unsigned long" dir="in">
11857 <desc>Position to remove the filter from.</desc>
11858 </param>
11859 <param name="filter" type="IUSBDeviceFilter" dir="return">
11860 <desc>Removed USB device filter.</desc>
11861 </param>
11862 </method>
11863
11864 </interface>
11865
11866
11867 <!--
11868 // IUSBDevice
11869 /////////////////////////////////////////////////////////////////////////
11870 -->
11871
11872 <interface
11873 name="IUSBDevice" extends="$unknown"
11874 uuid="f8967b0b-4483-400f-92b5-8b675d98a85b"
11875 wsmap="managed"
11876 >
11877 <desc>
11878 The IUSBDevice interface represents a virtual USB device attached to the
11879 virtual machine.
11880
11881 A collection of objects implementing this interface is stored in the
11882 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
11883 attached to a running virtual machine's USB controller.
11884 </desc>
11885
11886 <attribute name="id" type="uuid" mod="string" readonly="yes">
11887 <desc>
11888 Unique USB device ID. This ID is built from #vendorId,
11889 #productId, #revision and #serialNumber.
11890 </desc>
11891 </attribute>
11892
11893 <attribute name="vendorId" type="unsigned short" readonly="yes">
11894 <desc>Vendor ID.</desc>
11895 </attribute>
11896
11897 <attribute name="productId" type="unsigned short" readonly="yes">
11898 <desc>Product ID.</desc>
11899 </attribute>
11900
11901 <attribute name="revision" type="unsigned short" readonly="yes">
11902 <desc>
11903 Product revision number. This is a packed BCD represented as
11904 unsigned short. The high byte is the integer part and the low
11905 byte is the decimal.
11906 </desc>
11907 </attribute>
11908
11909 <attribute name="manufacturer" type="wstring" readonly="yes">
11910 <desc>Manufacturer string.</desc>
11911 </attribute>
11912
11913 <attribute name="product" type="wstring" readonly="yes">
11914 <desc>Product string.</desc>
11915 </attribute>
11916
11917 <attribute name="serialNumber" type="wstring" readonly="yes">
11918 <desc>Serial number string.</desc>
11919 </attribute>
11920
11921 <attribute name="address" type="wstring" readonly="yes">
11922 <desc>Host specific address of the device.</desc>
11923 </attribute>
11924
11925 <attribute name="port" type="unsigned short" readonly="yes">
11926 <desc>
11927 Host USB port number the device is physically
11928 connected to.
11929 </desc>
11930 </attribute>
11931
11932 <attribute name="version" type="unsigned short" readonly="yes">
11933 <desc>
11934 The major USB version of the device - 1 or 2.
11935 </desc>
11936 </attribute>
11937
11938 <attribute name="portVersion" type="unsigned short" readonly="yes">
11939 <desc>
11940 The major USB version of the host USB port the device is
11941 physically connected to - 1 or 2. For devices not connected to
11942 anything this will have the same value as the version attribute.
11943 </desc>
11944 </attribute>
11945
11946 <attribute name="remote" type="boolean" readonly="yes">
11947 <desc>
11948 Whether the device is physically connected to a remote VRDE
11949 client or to a local host machine.
11950 </desc>
11951 </attribute>
11952
11953 </interface>
11954
11955
11956 <!--
11957 // IUSBDeviceFilter
11958 /////////////////////////////////////////////////////////////////////////
11959 -->
11960
11961 <interface
11962 name="IUSBDeviceFilter" extends="$unknown"
11963 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
11964 wsmap="managed"
11965 >
11966 <desc>
11967 The IUSBDeviceFilter interface represents an USB device filter used
11968 to perform actions on a group of USB devices.
11969
11970 This type of filters is used by running virtual machines to
11971 automatically capture selected USB devices once they are physically
11972 attached to the host computer.
11973
11974 A USB device is matched to the given device filter if and only if all
11975 attributes of the device match the corresponding attributes of the
11976 filter (that is, attributes are joined together using the logical AND
11977 operation). On the other hand, all together, filters in the list of
11978 filters carry the semantics of the logical OR operation. So if it is
11979 desirable to create a match like "this vendor id OR this product id",
11980 one needs to create two filters and specify "any match" (see below)
11981 for unused attributes.
11982
11983 All filter attributes used for matching are strings. Each string
11984 is an expression representing a set of values of the corresponding
11985 device attribute, that will match the given filter. Currently, the
11986 following filtering expressions are supported:
11987
11988 <ul>
11989 <li><i>Interval filters</i>. Used to specify valid intervals for
11990 integer device attributes (Vendor ID, Product ID and Revision).
11991 The format of the string is:
11992
11993 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
11994
11995 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
11996 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
11997 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
11998 is omitted before a dash (<tt>-</tt>), the minimum possible integer
11999 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
12000 possible integer is assumed.
12001 </li>
12002 <li><i>Boolean filters</i>. Used to specify acceptable values for
12003 boolean device attributes. The format of the string is:
12004
12005 <tt>true|false|yes|no|0|1</tt>
12006
12007 </li>
12008 <li><i>Exact match</i>. Used to specify a single value for the given
12009 device attribute. Any string that doesn't start with <tt>int:</tt>
12010 represents the exact match. String device attributes are compared to
12011 this string including case of symbols. Integer attributes are first
12012 converted to a string (see individual filter attributes) and then
12013 compared ignoring case.
12014
12015 </li>
12016 <li><i>Any match</i>. Any value of the corresponding device attribute
12017 will match the given filter. An empty or @c null string is
12018 used to construct this type of filtering expressions.
12019
12020 </li>
12021 </ul>
12022
12023 <note>
12024 On the Windows host platform, interval filters are not currently
12025 available. Also all string filter attributes
12026 (<link to="#manufacturer"/>, <link to="#product"/>,
12027 <link to="#serialNumber"/>) are ignored, so they behave as
12028 <i>any match</i> no matter what string expression is specified.
12029 </note>
12030
12031 <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
12032 </desc>
12033
12034 <attribute name="name" type="wstring">
12035 <desc>
12036 Visible name for this filter.
12037 This name is used to visually distinguish one filter from another,
12038 so it can neither be @c null nor an empty string.
12039 </desc>
12040 </attribute>
12041
12042 <attribute name="active" type="boolean">
12043 <desc>Whether this filter active or has been temporarily disabled.</desc>
12044 </attribute>
12045
12046 <attribute name="vendorId" type="wstring">
12047 <desc>
12048 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
12049 The string representation for the <i>exact matching</i>
12050 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
12051 (including leading zeroes).
12052 </desc>
12053 </attribute>
12054
12055 <attribute name="productId" type="wstring">
12056 <desc>
12057 <link to="IUSBDevice::productId">Product ID</link> filter.
12058 The string representation for the <i>exact matching</i>
12059 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
12060 (including leading zeroes).
12061 </desc>
12062 </attribute>
12063
12064 <attribute name="revision" type="wstring">
12065 <desc>
12066 <link to="IUSBDevice::productId">Product revision number</link>
12067 filter. The string representation for the <i>exact matching</i>
12068 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
12069 of the integer part of the revision, and <tt>F</tt> is the
12070 decimal digit of its fractional part (including leading and
12071 trailing zeros).
12072 Note that for interval filters, it's best to use the hexadecimal
12073 form, because the revision is stored as a 16 bit packed BCD value;
12074 so the expression <tt>int:0x0100-0x0199</tt> will match any
12075 revision from <tt>1.0</tt> to <tt>1.99</tt>.
12076 </desc>
12077 </attribute>
12078
12079 <attribute name="manufacturer" type="wstring">
12080 <desc>
12081 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
12082 </desc>
12083 </attribute>
12084
12085 <attribute name="product" type="wstring">
12086 <desc>
12087 <link to="IUSBDevice::product">Product</link> filter.
12088 </desc>
12089 </attribute>
12090
12091 <attribute name="serialNumber" type="wstring">
12092 <desc>
12093 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
12094 </desc>
12095 </attribute>
12096
12097 <attribute name="port" type="wstring">
12098 <desc>
12099 <link to="IUSBDevice::port">Host USB port</link> filter.
12100 </desc>
12101 </attribute>
12102
12103 <attribute name="remote" type="wstring">
12104 <desc>
12105 <link to="IUSBDevice::remote">Remote state</link> filter.
12106 <note>
12107 This filter makes sense only for machine USB filters,
12108 i.e. it is ignored by IHostUSBDeviceFilter objects.
12109 </note>
12110 </desc>
12111 </attribute>
12112
12113 <attribute name="maskedInterfaces" type="unsigned long">
12114 <desc>
12115 This is an advanced option for hiding one or more USB interfaces
12116 from the guest. The value is a bit mask where the bits that are set
12117 means the corresponding USB interface should be hidden, masked off
12118 if you like.
12119 This feature only works on Linux hosts.
12120 </desc>
12121 </attribute>
12122
12123 </interface>
12124
12125
12126 <!--
12127 // IHostUSBDevice
12128 /////////////////////////////////////////////////////////////////////////
12129 -->
12130
12131 <enum
12132 name="USBDeviceState"
12133 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
12134 >
12135 <desc>
12136 USB device state. This enumeration represents all possible states
12137 of the USB device physically attached to the host computer regarding
12138 its state on the host computer and availability to guest computers
12139 (all currently running virtual machines).
12140
12141 Once a supported USB device is attached to the host, global USB
12142 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
12143 either ignore the device, or put it to USBDeviceState_Held state, or do
12144 nothing. Unless the device is ignored by global filters, filters of all
12145 currently running guests (<link to="IUSBController::deviceFilters"/>) are
12146 activated that can put it to USBDeviceState_Captured state.
12147
12148 If the device was ignored by global filters, or didn't match
12149 any filters at all (including guest ones), it is handled by the host
12150 in a normal way. In this case, the device state is determined by
12151 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
12152 or USBDeviceState_Available, depending on the current device usage.
12153
12154 Besides auto-capturing based on filters, the device can be manually
12155 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
12156 state is USBDeviceState_Busy, USBDeviceState_Available or
12157 USBDeviceState_Held.
12158
12159 <note>
12160 Due to differences in USB stack implementations in Linux and Win32,
12161 states USBDeviceState_Busy and USBDeviceState_Unavailable are applicable
12162 only to the Linux version of the product. This also means that (<link
12163 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
12164 device state is USBDeviceState_Held.
12165 </note>
12166
12167 <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
12168 </desc>
12169
12170 <const name="NotSupported" value="0">
12171 <desc>
12172 Not supported by the VirtualBox server, not available to guests.
12173 </desc>
12174 </const>
12175 <const name="Unavailable" value="1">
12176 <desc>
12177 Being used by the host computer exclusively,
12178 not available to guests.
12179 </desc>
12180 </const>
12181 <const name="Busy" value="2">
12182 <desc>
12183 Being used by the host computer, potentially available to guests.
12184 </desc>
12185 </const>
12186 <const name="Available" value="3">
12187 <desc>
12188 Not used by the host computer, available to guests (the host computer
12189 can also start using the device at any time).
12190 </desc>
12191 </const>
12192 <const name="Held" value="4">
12193 <desc>
12194 Held by the VirtualBox server (ignored by the host computer),
12195 available to guests.
12196 </desc>
12197 </const>
12198 <const name="Captured" value="5">
12199 <desc>
12200 Captured by one of the guest computers, not available
12201 to anybody else.
12202 </desc>
12203 </const>
12204 </enum>
12205
12206 <interface
12207 name="IHostUSBDevice" extends="IUSBDevice"
12208 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
12209 wsmap="managed"
12210 >
12211 <desc>
12212 The IHostUSBDevice interface represents a physical USB device attached
12213 to the host computer.
12214
12215 Besides properties inherited from IUSBDevice, this interface adds the
12216 <link to="#state"/> property that holds the current state of the USB
12217 device.
12218
12219 <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
12220 </desc>
12221
12222 <attribute name="state" type="USBDeviceState" readonly="yes">
12223 <desc>
12224 Current state of the device.
12225 </desc>
12226 </attribute>
12227
12228 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
12229
12230 </interface>
12231
12232
12233 <!--
12234 // IHostUSBDeviceFilter
12235 /////////////////////////////////////////////////////////////////////////
12236 -->
12237
12238 <enum
12239 name="USBDeviceFilterAction"
12240 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
12241 >
12242 <desc>
12243 Actions for host USB device filters.
12244 <see>IHostUSBDeviceFilter, USBDeviceState</see>
12245 </desc>
12246
12247 <const name="Null" value="0">
12248 <desc>Null value (never used by the API).</desc>
12249 </const>
12250 <const name="Ignore" value="1">
12251 <desc>Ignore the matched USB device.</desc>
12252 </const>
12253 <const name="Hold" value="2">
12254 <desc>Hold the matched USB device.</desc>
12255 </const>
12256 </enum>
12257
12258 <interface
12259 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
12260 uuid="4cc70246-d74a-400f-8222-3900489c0374"
12261 wsmap="managed"
12262 >
12263 <desc>
12264 The IHostUSBDeviceFilter interface represents a global filter for a
12265 physical USB device used by the host computer. Used indirectly in
12266 <link to="IHost::USBDeviceFilters"/>.
12267
12268 Using filters of this type, the host computer determines the initial
12269 state of the USB device after it is physically attached to the
12270 host's USB controller.
12271
12272 <note>
12273 The <link to="IUSBDeviceFilter::remote"/> attribute is ignored by this type of
12274 filters, because it makes sense only for
12275 <link to="IUSBController::deviceFilters">machine USB filters</link>.
12276 </note>
12277
12278 <see>IHost::USBDeviceFilters</see>
12279 </desc>
12280
12281 <attribute name="action" type="USBDeviceFilterAction">
12282 <desc>
12283 Action performed by the host when an attached USB device
12284 matches this filter.
12285 </desc>
12286 </attribute>
12287
12288 </interface>
12289
12290 <!--
12291 // IAudioAdapter
12292 /////////////////////////////////////////////////////////////////////////
12293 -->
12294
12295 <enum
12296 name="AudioDriverType"
12297 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
12298 >
12299 <desc>
12300 Host audio driver type.
12301 </desc>
12302
12303 <const name="Null" value="0">
12304 <desc>Null value, also means "dummy audio driver".</desc>
12305 </const>
12306 <const name="WinMM" value="1">
12307 <desc>Windows multimedia (Windows hosts only).</desc>
12308 </const>
12309 <const name="OSS" value="2">
12310 <desc>Open Sound System (Linux hosts only).</desc>
12311 </const>
12312 <const name="ALSA" value="3">
12313 <desc>Advanced Linux Sound Architecture (Linux hosts only).</desc>
12314 </const>
12315 <const name="DirectSound" value="4">
12316 <desc>DirectSound (Windows hosts only).</desc>
12317 </const>
12318 <const name="CoreAudio" value="5">
12319 <desc>CoreAudio (Mac hosts only).</desc>
12320 </const>
12321 <const name="MMPM" value="6">
12322 <desc>Reserved for historical reasons.</desc>
12323 </const>
12324 <const name="Pulse" value="7">
12325 <desc>PulseAudio (Linux hosts only).</desc>
12326 </const>
12327 <const name="SolAudio" value="8">
12328 <desc>Solaris audio (Solaris hosts only).</desc>
12329 </const>
12330 </enum>
12331
12332 <enum
12333 name="AudioControllerType"
12334 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
12335 >
12336 <desc>
12337 Virtual audio controller type.
12338 </desc>
12339
12340 <const name="AC97" value="0"/>
12341 <const name="SB16" value="1"/>
12342 <const name="HDA" value="2"/>
12343 </enum>
12344
12345 <interface
12346 name="IAudioAdapter" extends="$unknown"
12347 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
12348 wsmap="managed"
12349 >
12350 <desc>
12351 The IAudioAdapter interface represents the virtual audio adapter of
12352 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
12353 </desc>
12354 <attribute name="enabled" type="boolean">
12355 <desc>
12356 Flag whether the audio adapter is present in the
12357 guest system. If disabled, the virtual guest hardware will
12358 not contain any audio adapter. Can only be changed when
12359 the VM is not running.
12360 </desc>
12361 </attribute>
12362 <attribute name="audioController" type="AudioControllerType">
12363 <desc>
12364 The audio hardware we emulate.
12365 </desc>
12366 </attribute>
12367 <attribute name="audioDriver" type="AudioDriverType">
12368 <desc>
12369 Audio driver the adapter is connected to. This setting
12370 can only be changed when the VM is not running.
12371 </desc>
12372 </attribute>
12373 </interface>
12374
12375 <enum
12376 name="AuthType"
12377 uuid="7eef6ef6-98c2-4dc2-ab35-10d2b292028d"
12378 >
12379 <desc>
12380 VirtualBox authentication type.
12381 </desc>
12382
12383 <const name="Null" value="0">
12384 <desc>Null value, also means "no authentication".</desc>
12385 </const>
12386 <const name="External" value="1"/>
12387 <const name="Guest" value="2"/>
12388 </enum>
12389
12390 <!--
12391 // IVRDEServer
12392 /////////////////////////////////////////////////////////////////////////
12393 -->
12394
12395 <interface
12396 name="IVRDEServer" extends="$unknown"
12397 uuid="f68a6b34-6f09-4040-8de1-e8d746c4a9ea"
12398 wsmap="managed"
12399 >
12400 <attribute name="enabled" type="boolean">
12401 <desc>VRDE server status.</desc>
12402 </attribute>
12403
12404 <attribute name="authType" type="AuthType">
12405 <desc>VRDE authentication method.</desc>
12406 </attribute>
12407
12408 <attribute name="authTimeout" type="unsigned long">
12409 <desc>Timeout for guest authentication. Milliseconds.</desc>
12410 </attribute>
12411
12412 <attribute name="allowMultiConnection" type="boolean">
12413 <desc>
12414 Flag whether multiple simultaneous connections to the VM are permitted.
12415 Note that this will be replaced by a more powerful mechanism in the future.
12416 </desc>
12417 </attribute>
12418
12419 <attribute name="reuseSingleConnection" type="boolean">
12420 <desc>
12421 Flag whether the existing connection must be dropped and a new connection
12422 must be established by the VRDE server, when a new client connects in single
12423 connection mode.
12424 </desc>
12425 </attribute>
12426
12427 <attribute name="videoChannel" type="boolean">
12428 <desc>
12429 Flag whether video redirectiron channel is enabled.
12430 </desc>
12431 </attribute>
12432
12433 <attribute name="videoChannelQuality" type="unsigned long">
12434 <desc>
12435 Image quality in percents.
12436 </desc>
12437 </attribute>
12438
12439 <attribute name="VRDELibrary" type="wstring">
12440 <desc>
12441 VRDE library used by this VM. Overrides
12442 <link to="ISystemProperties::defaultVRDELibrary"/>.
12443 </desc>
12444 </attribute>
12445
12446 <method name="setVRDEProperty">
12447 <desc>
12448 Sets a VRDE specific property string.
12449
12450 If you pass @c null or empty string as a key @a value, the given @a key
12451 will be deleted.
12452
12453 </desc>
12454 <param name="key" type="wstring" dir="in">
12455 <desc>Name of the key to set.</desc>
12456 </param>
12457 <param name="value" type="wstring" dir="in">
12458 <desc>Value to assign to the key.</desc>
12459 </param>
12460 </method>
12461
12462 <method name="getVRDEProperty">
12463 <desc>
12464 Returns a VRDE specific property string.
12465
12466 If the requested data @a key does not exist, this function will
12467 succeed and return an empty string in the @a value argument.
12468
12469 </desc>
12470 <param name="key" type="wstring" dir="in">
12471 <desc>Name of the key to get.</desc>
12472 </param>
12473 <param name="value" type="wstring" dir="return">
12474 <desc>Value of the requested key.</desc>
12475 </param>
12476 </method>
12477
12478 </interface>
12479
12480
12481 <!--
12482 // ISharedFolder
12483 /////////////////////////////////////////////////////////////////////////
12484 -->
12485
12486 <interface
12487 name="ISharedFolder" extends="$unknown"
12488 uuid="8388da11-b559-4574-a5b7-2bd7acd5cef8"
12489 wsmap="struct"
12490 >
12491 <desc>
12492 The ISharedFolder interface represents a folder in the host computer's
12493 file system accessible from the guest OS running inside a virtual
12494 machine using an associated logical name.
12495
12496 There are three types of shared folders:
12497 <ul>
12498 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
12499 folders available to all virtual machines.</li>
12500 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
12501 VM-specific shared folders available to the given virtual machine at
12502 startup.</li>
12503 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
12504 VM-specific shared folders created in the session context (for
12505 example, when the virtual machine is running) and automatically
12506 discarded when the session is closed (the VM is powered off).</li>
12507 </ul>
12508
12509 Logical names of shared folders must be unique within the given scope
12510 (global, permanent or transient). However, they do not need to be unique
12511 across scopes. In this case, the definition of the shared folder in a
12512 more specific scope takes precedence over definitions in all other
12513 scopes. The order of precedence is (more specific to more general):
12514 <ol>
12515 <li>Transient definitions</li>
12516 <li>Permanent definitions</li>
12517 <li>Global definitions</li>
12518 </ol>
12519
12520 For example, if MyMachine has a shared folder named
12521 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
12522 transient shared folder named <tt>C_DRIVE</tt> (that points
12523 to <tt>C:\\\\WINDOWS</tt>) will change the definition
12524 of <tt>C_DRIVE</tt> in the guest OS so
12525 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
12526 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
12527 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
12528 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
12529 to <tt>C:\\</tt> if it still exists.
12530
12531 Note that permanent and transient shared folders of different machines
12532 are in different name spaces, so they don't overlap and don't need to
12533 have unique logical names.
12534
12535 <note>
12536 Global shared folders are not implemented in the current version of the
12537 product.
12538 </note>
12539 </desc>
12540
12541 <attribute name="name" type="wstring" readonly="yes">
12542 <desc>Logical name of the shared folder.</desc>
12543 </attribute>
12544
12545 <attribute name="hostPath" type="wstring" readonly="yes">
12546 <desc>Full path to the shared folder in the host file system.</desc>
12547 </attribute>
12548
12549 <attribute name="accessible" type="boolean" readonly="yes">
12550 <desc>
12551 Whether the folder defined by the host path is currently
12552 accessible or not.
12553 For example, the folder can be inaccessible if it is placed
12554 on the network share that is not available by the time
12555 this property is read.
12556 </desc>
12557 </attribute>
12558
12559 <attribute name="writable" type="boolean" readonly="yes">
12560 <desc>
12561 Whether the folder defined by the host path is writable or
12562 not.
12563 </desc>
12564 </attribute>
12565
12566 <attribute name="autoMount" type="boolean" readonly="yes">
12567 <desc>
12568 Whether the folder gets automatically mounted by the guest or not.
12569 </desc>
12570 </attribute>
12571
12572 <attribute name="lastAccessError" type="wstring" readonly="yes">
12573 <desc>
12574 Text message that represents the result of the last accessibility
12575 check.
12576
12577 Accessibility checks are performed each time the <link to="#accessible"/>
12578 attribute is read. An empty string is returned if the last
12579 accessibility check was successful. A non-empty string indicates a
12580 failure and should normally describe a reason of the failure (for
12581 example, a file read error).
12582 </desc>
12583 </attribute>
12584
12585 </interface>
12586
12587 <!--
12588 // ISession
12589 /////////////////////////////////////////////////////////////////////////
12590 -->
12591
12592 <interface
12593 name="IInternalSessionControl" extends="$unknown"
12594 uuid="06ef98a7-f7c0-45ba-bf99-9aca7a4d5530"
12595 internal="yes"
12596 wsmap="suppress"
12597 >
12598 <method name="getPID">
12599 <desc>PID of the process that has created this Session object.
12600 </desc>
12601 <param name="pid" type="unsigned long" dir="return"/>
12602 </method>
12603
12604 <method name="getRemoteConsole">
12605 <desc>
12606 Returns the console object suitable for remote control.
12607
12608 <result name="VBOX_E_INVALID_VM_STATE">
12609 Session state prevents operation.
12610 </result>
12611 <result name="VBOX_E_INVALID_OBJECT_STATE">
12612 Session type prevents operation.
12613 </result>
12614
12615 </desc>
12616 <param name="console" type="IConsole" dir="return"/>
12617 </method>
12618
12619 <method name="assignMachine">
12620 <desc>
12621 Assigns the machine object associated with this direct-type
12622 session or informs the session that it will be a remote one
12623 (if @a machine == @c null).
12624
12625 <result name="VBOX_E_INVALID_VM_STATE">
12626 Session state prevents operation.
12627 </result>
12628 <result name="VBOX_E_INVALID_OBJECT_STATE">
12629 Session type prevents operation.
12630 </result>
12631
12632 </desc>
12633 <param name="machine" type="IMachine" dir="in"/>
12634 </method>
12635
12636 <method name="assignRemoteMachine">
12637 <desc>
12638 Assigns the machine and the (remote) console object associated with
12639 this remote-type session.
12640
12641 <result name="VBOX_E_INVALID_VM_STATE">
12642 Session state prevents operation.
12643 </result>
12644
12645 </desc>
12646 <param name="machine" type="IMachine" dir="in"/>
12647 <param name="console" type="IConsole" dir="in"/>
12648 </method>
12649
12650 <method name="updateMachineState">
12651 <desc>
12652 Updates the machine state in the VM process.
12653 Must be called only in certain cases
12654 (see the method implementation).
12655
12656 <result name="VBOX_E_INVALID_VM_STATE">
12657 Session state prevents operation.
12658 </result>
12659 <result name="VBOX_E_INVALID_OBJECT_STATE">
12660 Session type prevents operation.
12661 </result>
12662
12663 </desc>
12664 <param name="aMachineState" type="MachineState" dir="in"/>
12665 </method>
12666
12667 <method name="uninitialize">
12668 <desc>
12669 Uninitializes (closes) this session. Used by VirtualBox to close
12670 the corresponding remote session when the direct session dies
12671 or gets closed.
12672
12673 <result name="VBOX_E_INVALID_VM_STATE">
12674 Session state prevents operation.
12675 </result>
12676
12677 </desc>
12678 </method>
12679
12680 <method name="onNetworkAdapterChange">
12681 <desc>
12682 Triggered when settings of a network adapter of the
12683 associated virtual machine have changed.
12684
12685 <result name="VBOX_E_INVALID_VM_STATE">
12686 Session state prevents operation.
12687 </result>
12688 <result name="VBOX_E_INVALID_OBJECT_STATE">
12689 Session type prevents operation.
12690 </result>
12691
12692 </desc>
12693 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
12694 <param name="changeAdapter" type="boolean" dir="in"/>
12695 </method>
12696
12697 <method name="onNATRedirectRuleChange">
12698 <desc>
12699 Triggered on adding/removing of NAT Engine redirection rule of the
12700 associated virtual machine.
12701
12702 <result name="VBOX_E_INVALID_VM_STATE">
12703 Session state prevents operation.
12704 </result>
12705 <result name="VBOX_E_INVALID_OBJECT_STATE">
12706 Session type prevents operation.
12707 </result>
12708
12709 </desc>
12710 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
12711 <param name="natRedirectRemove" type="boolean" dir="in"/>
12712 <param name="natRuleName" type="wstring" dir="in"/>
12713 <param name="natProto" type="NATProtocol" dir="in"/>
12714 <param name="natHostIp" type="wstring" dir="in"/>
12715 <param name="natHostPort" type="long" dir="in"/>
12716 <param name="natGuestIp" type="wstring" dir="in"/>
12717 <param name="natGuestPort" type="long" dir="in"/>
12718 </method>
12719
12720 <method name="onSerialPortChange">
12721 <desc>
12722 Triggered when settings of a serial port of the
12723 associated virtual machine have changed.
12724
12725 <result name="VBOX_E_INVALID_VM_STATE">
12726 Session state prevents operation.
12727 </result>
12728 <result name="VBOX_E_INVALID_OBJECT_STATE">
12729 Session type prevents operation.
12730 </result>
12731
12732 </desc>
12733 <param name="serialPort" type="ISerialPort" dir="in"/>
12734 </method>
12735
12736 <method name="onParallelPortChange">
12737 <desc>
12738 Triggered when settings of a parallel port of the
12739 associated virtual machine have changed.
12740
12741 <result name="VBOX_E_INVALID_VM_STATE">
12742 Session state prevents operation.
12743 </result>
12744 <result name="VBOX_E_INVALID_OBJECT_STATE">
12745 Session type prevents operation.
12746 </result>
12747
12748 </desc>
12749 <param name="parallelPort" type="IParallelPort" dir="in"/>
12750 </method>
12751
12752 <method name="onStorageControllerChange">
12753 <desc>
12754 Triggered when settings of a storage controller of the
12755 associated virtual machine have changed.
12756
12757 <result name="VBOX_E_INVALID_VM_STATE">
12758 Session state prevents operation.
12759 </result>
12760 <result name="VBOX_E_INVALID_OBJECT_STATE">
12761 Session type prevents operation.
12762 </result>
12763
12764 </desc>
12765 </method>
12766
12767 <method name="onMediumChange">
12768 <desc>
12769 Triggered when attached media of the
12770 associated virtual machine have changed.
12771
12772 <result name="VBOX_E_INVALID_VM_STATE">
12773 Session state prevents operation.
12774 </result>
12775 <result name="VBOX_E_INVALID_OBJECT_STATE">
12776 Session type prevents operation.
12777 </result>
12778
12779 </desc>
12780
12781 <param name="mediumAttachment" type="IMediumAttachment" dir="in"/>
12782 <param name="force" type="boolean" dir="in"/>
12783 </method>
12784
12785 <method name="onCPUChange">
12786 <desc>
12787 Notification when a CPU changes.
12788 </desc>
12789 <param name="cpu" type="unsigned long" dir="in">
12790 <desc>The CPU which changed</desc>
12791 </param>
12792 <param name="add" type="boolean" dir="in">
12793 <desc>Flag whether the CPU was added or removed</desc>
12794 </param>
12795 </method>
12796
12797 <method name="onCPUExecutionCapChange">
12798 <desc>
12799 Notification when the CPU execution cap changes.
12800 </desc>
12801 <param name="executionCap" type="unsigned long" dir="in">
12802 <desc>The new CPU execution cap value. (1-100)</desc>
12803 </param>
12804 </method>
12805
12806 <method name="onVRDEServerChange">
12807 <desc>
12808 Triggered when settings of the VRDE server object of the
12809 associated virtual machine have changed.
12810
12811 <result name="VBOX_E_INVALID_VM_STATE">
12812 Session state prevents operation.
12813 </result>
12814 <result name="VBOX_E_INVALID_OBJECT_STATE">
12815 Session type prevents operation.
12816 </result>
12817
12818 </desc>
12819 <param name="restart" type="boolean" dir="in">
12820 <desc>Flag whether the server must be restarted</desc>
12821 </param>
12822 </method>
12823
12824 <method name="onUSBControllerChange">
12825 <desc>
12826 Triggered when settings of the USB controller object of the
12827 associated virtual machine have changed.
12828
12829 <result name="VBOX_E_INVALID_VM_STATE">
12830 Session state prevents operation.
12831 </result>
12832 <result name="VBOX_E_INVALID_OBJECT_STATE">
12833 Session type prevents operation.
12834 </result>
12835
12836 </desc>
12837 </method>
12838
12839 <method name="onSharedFolderChange">
12840 <desc>
12841 Triggered when a permanent (global or machine) shared folder has been
12842 created or removed.
12843 <note>
12844 We don't pass shared folder parameters in this notification because
12845 the order in which parallel notifications are delivered is not defined,
12846 therefore it could happen that these parameters were outdated by the
12847 time of processing this notification.
12848 </note>
12849
12850 <result name="VBOX_E_INVALID_VM_STATE">
12851 Session state prevents operation.
12852 </result>
12853 <result name="VBOX_E_INVALID_OBJECT_STATE">
12854 Session type prevents operation.
12855 </result>
12856
12857 </desc>
12858 <param name="global" type="boolean" dir="in"/>
12859 </method>
12860
12861 <method name="onUSBDeviceAttach">
12862 <desc>
12863 Triggered when a request to capture a USB device (as a result
12864 of matched USB filters or direct call to
12865 <link to="IConsole::attachUSBDevice"/>) has completed.
12866 A @c null @a error object means success, otherwise it
12867 describes a failure.
12868
12869 <result name="VBOX_E_INVALID_VM_STATE">
12870 Session state prevents operation.
12871 </result>
12872 <result name="VBOX_E_INVALID_OBJECT_STATE">
12873 Session type prevents operation.
12874 </result>
12875
12876 </desc>
12877 <param name="device" type="IUSBDevice" dir="in"/>
12878 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
12879 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
12880 </method>
12881
12882 <method name="onUSBDeviceDetach">
12883 <desc>
12884 Triggered when a request to release the USB device (as a result
12885 of machine termination or direct call to
12886 <link to="IConsole::detachUSBDevice"/>) has completed.
12887 A @c null @a error object means success, otherwise it
12888 describes a failure.
12889
12890 <result name="VBOX_E_INVALID_VM_STATE">
12891 Session state prevents operation.
12892 </result>
12893 <result name="VBOX_E_INVALID_OBJECT_STATE">
12894 Session type prevents operation.
12895 </result>
12896
12897 </desc>
12898 <param name="id" type="uuid" mod="string" dir="in"/>
12899 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
12900 </method>
12901
12902 <method name="onShowWindow">
12903 <desc>
12904 Called by <link to="IMachine::canShowConsoleWindow"/> and by
12905 <link to="IMachine::showConsoleWindow"/> in order to notify
12906 console listeners
12907 <link to="ICanShowWindowEvent"/>
12908 and <link to="IShowWindowEvent"/>.
12909
12910 <result name="VBOX_E_INVALID_OBJECT_STATE">
12911 Session type prevents operation.
12912 </result>
12913
12914 </desc>
12915 <param name="check" type="boolean" dir="in"/>
12916 <param name="canShow" type="boolean" dir="out"/>
12917 <param name="winId" type="long long" dir="out"/>
12918 </method>
12919
12920 <method name="accessGuestProperty">
12921 <desc>
12922 Called by <link to="IMachine::getGuestProperty"/> and by
12923 <link to="IMachine::setGuestProperty"/> in order to read and
12924 modify guest properties.
12925
12926 <result name="VBOX_E_INVALID_VM_STATE">
12927 Machine session is not open.
12928 </result>
12929 <result name="VBOX_E_INVALID_OBJECT_STATE">
12930 Session type is not direct.
12931 </result>
12932
12933 </desc>
12934 <param name="name" type="wstring" dir="in"/>
12935 <param name="value" type="wstring" dir="in"/>
12936 <param name="flags" type="wstring" dir="in"/>
12937 <param name="isSetter" type="boolean" dir="in"/>
12938 <param name="retValue" type="wstring" dir="out"/>
12939 <param name="retTimestamp" type="long long" dir="out"/>
12940 <param name="retFlags" type="wstring" dir="out"/>
12941 </method>
12942
12943 <method name="enumerateGuestProperties">
12944 <desc>
12945 Return a list of the guest properties matching a set of patterns along
12946 with their values, time stamps and flags.
12947
12948 <result name="VBOX_E_INVALID_VM_STATE">
12949 Machine session is not open.
12950 </result>
12951 <result name="VBOX_E_INVALID_OBJECT_STATE">
12952 Session type is not direct.
12953 </result>
12954
12955 </desc>
12956 <param name="patterns" type="wstring" dir="in">
12957 <desc>
12958 The patterns to match the properties against as a comma-separated
12959 string. If this is empty, all properties currently set will be
12960 returned.
12961 </desc>
12962 </param>
12963 <param name="key" type="wstring" dir="out" safearray="yes">
12964 <desc>
12965 The key names of the properties returned.
12966 </desc>
12967 </param>
12968 <param name="value" type="wstring" dir="out" safearray="yes">
12969 <desc>
12970 The values of the properties returned. The array entries match the
12971 corresponding entries in the @a key array.
12972 </desc>
12973 </param>
12974 <param name="timestamp" type="long long" dir="out" safearray="yes">
12975 <desc>
12976 The time stamps of the properties returned. The array entries match
12977 the corresponding entries in the @a key array.
12978 </desc>
12979 </param>
12980 <param name="flags" type="wstring" dir="out" safearray="yes">
12981 <desc>
12982 The flags of the properties returned. The array entries match the
12983 corresponding entries in the @a key array.
12984 </desc>
12985 </param>
12986 </method>
12987
12988 <method name="onlineMergeMedium">
12989 <desc>
12990 Triggers online merging of a hard disk. Used internally when deleting
12991 a snapshot while a VM referring to the same hard disk chain is running.
12992
12993 <result name="VBOX_E_INVALID_VM_STATE">
12994 Machine session is not open.
12995 </result>
12996 <result name="VBOX_E_INVALID_OBJECT_STATE">
12997 Session type is not direct.
12998 </result>
12999
13000 </desc>
13001 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
13002 <desc>The medium attachment to identify the medium chain.</desc>
13003 </param>
13004 <param name="sourceIdx" type="unsigned long" dir="in">
13005 <desc>The index of the source image in the chain.
13006 Redundant, but drastically reduces IPC.</desc>
13007 </param>
13008 <param name="targetIdx" type="unsigned long" dir="in">
13009 <desc>The index of the target image in the chain.
13010 Redundant, but drastically reduces IPC.</desc>
13011 </param>
13012 <param name="source" type="IMedium" dir="in">
13013 <desc>Merge source medium.</desc>
13014 </param>
13015 <param name="target" type="IMedium" dir="in">
13016 <desc>Merge target medium.</desc>
13017 </param>
13018 <param name="mergeForward" type="boolean" dir="in">
13019 <desc>Merge direction.</desc>
13020 </param>
13021 <param name="parentForTarget" type="IMedium" dir="in">
13022 <desc>For forward merges: new parent for target medium.</desc>
13023 </param>
13024 <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
13025 <desc>For backward merges: list of media which need their parent UUID
13026 updated.</desc>
13027 </param>
13028 <param name="progress" type="IProgress" dir="in">
13029 <desc>
13030 Progress object for this operation.
13031 </desc>
13032 </param>
13033 </method>
13034
13035 </interface>
13036
13037 <interface
13038 name="ISession" extends="$unknown"
13039 uuid="12F4DCDB-12B2-4EC1-B7CD-DDD9F6C5BF4D"
13040 wsmap="managed"
13041 >
13042 <desc>
13043 The ISession interface represents a client process and allows for locking
13044 virtual machines (represented by IMachine objects) to prevent conflicting
13045 changes to the machine.
13046
13047 Any caller wishing to manipulate a virtual machine needs to create a session
13048 object first, which lives in its own process space. Such session objects are
13049 then associated with <link to="IMachine" /> objects living in the VirtualBox
13050 server process to coordinate such changes.
13051
13052 There are two typical scenarios in which sessions are used:
13053
13054 <ul>
13055 <li>To alter machine settings or control a running virtual machine, one
13056 needs to lock a machine for a given session (client process) by calling
13057 <link to="IMachine::lockMachine"/>.
13058
13059 Whereas multiple sessions may control a running virtual machine, only
13060 one process can obtain a write lock on the machine to prevent conflicting
13061 changes. A write lock is also needed if a process wants to actually run a
13062 virtual machine in its own context, such as the VirtualBox GUI or
13063 VBoxHeadless front-ends. They must also lock a machine for their own
13064 sessions before they are allowed to power up the virtual machine.
13065
13066 As a result, no machine settings can be altered while another process is
13067 already using it, either because that process is modifying machine settings
13068 or because the machine is running.
13069 </li>
13070 <li>
13071 To start a VM using one of the existing VirtualBox front-ends (e.g. the
13072 VirtualBox GUI or VBoxHeadless), one would use
13073 <link to="IMachine::launchVMProcess"/>, which also takes a session object
13074 as its first parameter. This session then identifies the caller and lets the
13075 caller control the started machine (for example, pause machine execution or
13076 power it down) as well as be notified about machine execution state changes.
13077 </li>
13078 </ul>
13079
13080 How sessions objects are created in a client process depends on whether you use
13081 the Main API via COM or via the webservice:
13082
13083 <ul>
13084 <li>When using the COM API directly, an object of the Session class from the
13085 VirtualBox type library needs to be created. In regular COM C++ client code,
13086 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
13087 This object will then act as a local session object in further calls to open
13088 a session.
13089 </li>
13090
13091 <li>In the webservice, the session manager (IWebsessionManager) instead creates
13092 a session object automatically whenever <link to="IWebsessionManager::logon" />
13093 is called. A managed object reference to that session object can be retrieved by
13094 calling <link to="IWebsessionManager::getSessionObject" />.
13095 </li>
13096 </ul>
13097 </desc>
13098
13099 <attribute name="state" type="SessionState" readonly="yes">
13100 <desc>Current state of this session.</desc>
13101 </attribute>
13102
13103 <attribute name="type" type="SessionType" readonly="yes">
13104 <desc>
13105 Type of this session. The value of this attribute is valid only
13106 if the session currently has a machine locked (i.e. its
13107 <link to="#state" /> is Locked), otherwise an error will be returned.
13108 </desc>
13109 </attribute>
13110
13111 <attribute name="machine" type="IMachine" readonly="yes">
13112 <desc>Machine object associated with this session.</desc>
13113 </attribute>
13114
13115 <attribute name="console" type="IConsole" readonly="yes">
13116 <desc>Console object associated with this session.</desc>
13117 </attribute>
13118
13119 <method name="unlockMachine">
13120 <desc>
13121 Unlocks a machine that was previously locked for the current session.
13122
13123 Calling this method is required every time a machine has been locked
13124 for a particular session using the <link to="IMachine::launchVMProcess" />
13125 or <link to="IMachine::lockMachine" /> calls. Otherwise the state of
13126 the machine will be set to <link to="MachineState_Aborted" /> on the
13127 server, and changes made to the machine settings will be lost.
13128
13129 Generally, it is recommended to unlock all machines explicitly
13130 before terminating the application (regardless of the reason for
13131 the termination).
13132
13133 <note>
13134 Do not expect the session state (<link to="ISession::state" />
13135 to return to "Unlocked" immediately after you invoke this method,
13136 particularly if you have started a new VM process. The session
13137 state will automatically return to "Unlocked" once the VM is no
13138 longer executing, which can of course take a very long time.
13139 </note>
13140
13141 <result name="E_UNEXPECTED">
13142 Session is not locked.
13143 </result>
13144
13145 </desc>
13146 </method>
13147
13148 </interface>
13149
13150 <!--
13151 // IStorageController
13152 /////////////////////////////////////////////////////////////////////////
13153 -->
13154
13155 <enum
13156 name="StorageBus"
13157 uuid="eee67ab3-668d-4ef5-91e0-7025fe4a0d7a"
13158 >
13159 <desc>
13160 The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy);
13161 see <link to="IStorageController::bus" />.
13162 </desc>
13163 <const name="Null" value="0">
13164 <desc>@c null value. Never used by the API.</desc>
13165 </const>
13166 <const name="IDE" value="1"/>
13167 <const name="SATA" value="2"/>
13168 <const name="SCSI" value="3"/>
13169 <const name="Floppy" value="4"/>
13170 <const name="SAS" value="5"/>
13171 </enum>
13172
13173 <enum
13174 name="StorageControllerType"
13175 uuid="8a412b8a-f43e-4456-bd37-b474f0879a58"
13176 >
13177 <desc>
13178 The exact variant of storage controller hardware presented
13179 to the guest; see <link to="IStorageController::controllerType" />.
13180 </desc>
13181
13182 <const name="Null" value="0">
13183 <desc>@c null value. Never used by the API.</desc>
13184 </const>
13185 <const name="LsiLogic" value="1">
13186 <desc>A SCSI controller of the LsiLogic variant.</desc>
13187 </const>
13188 <const name="BusLogic" value="2">
13189 <desc>A SCSI controller of the BusLogic variant.</desc>
13190 </const>
13191 <const name="IntelAhci" value="3">
13192 <desc>An Intel AHCI SATA controller; this is the only variant for SATA.</desc>
13193 </const>
13194 <const name="PIIX3" value="4">
13195 <desc>An IDE controller of the PIIX3 variant.</desc>
13196 </const>
13197 <const name="PIIX4" value="5">
13198 <desc>An IDE controller of the PIIX4 variant.</desc>
13199 </const>
13200 <const name="ICH6" value="6">
13201 <desc>An IDE controller of the ICH6 variant.</desc>
13202 </const>
13203 <const name="I82078" value="7">
13204 <desc>A floppy disk controller; this is the only variant for floppy drives.</desc>
13205 </const>
13206 <const name="LsiLogicSas" value="8">
13207 <desc>A variant of the LsiLogic controller using SAS.</desc>
13208 </const>
13209 </enum>
13210
13211 <enum
13212 name="ChipsetType"
13213 uuid="8b4096a8-a7c3-4d3b-bbb1-05a0a51ec394"
13214 >
13215 <desc>
13216 Type of emulated chipset (mostly southbridge).
13217 </desc>
13218
13219 <const name="Null" value="0">
13220 <desc>@c null value. Never used by the API.</desc>
13221 </const>
13222 <const name="PIIX3" value="1">
13223 <desc>A PIIX3 (PCI IDE ISA Xcelerator) chipset.</desc>
13224 </const>
13225 <const name="ICH9" value="2">
13226 <desc>A ICH9 (I/O Controller Hub) chipset.</desc>
13227 </const>
13228 </enum>
13229
13230 <interface
13231 name="IStorageController" extends="$unknown"
13232 uuid="fd93adc0-bbaa-4256-9e6e-00e29f9151c9"
13233 wsmap="managed"
13234 >
13235 <desc>
13236 Represents a storage controller that is attached to a virtual machine
13237 (<link to="IMachine" />). Just as drives (hard disks, DVDs, FDs) are
13238 attached to storage controllers in a real computer, virtual drives
13239 (represented by <link to="IMediumAttachment" />) are attached to virtual
13240 storage controllers, represented by this interface.
13241
13242 As opposed to physical hardware, VirtualBox has a very generic concept
13243 of a storage controller, and for purposes of the Main API, all virtual
13244 storage is attached to virtual machines via instances of this interface.
13245 There are five types of such virtual storage controllers: IDE, SCSI, SATA,
13246 SAS and Floppy (see <link to="#bus" />). Depending on which of these four
13247 is used, certain sub-types may be available and can be selected in
13248 <link to="#controllerType" />.
13249
13250 Depending on these settings, the guest operating system might see
13251 significantly different virtual hardware.
13252 </desc>
13253
13254 <attribute name="name" type="wstring" readonly="yes">
13255 <desc>
13256 Name of the storage controller, as originally specified with
13257 <link to="IMachine::addStorageController" />. This then uniquely
13258 identifies this controller with other method calls such as
13259 <link to="IMachine::attachDevice" /> and <link to="IMachine::mountMedium" />.
13260 </desc>
13261 </attribute>
13262
13263 <attribute name="maxDevicesPerPortCount" type="unsigned long" readonly="yes">
13264 <desc>
13265 Maximum number of devices which can be attached to one port.
13266 </desc>
13267 </attribute>
13268
13269 <attribute name="minPortCount" type="unsigned long" readonly="yes">
13270 <desc>
13271 Minimum number of ports that <link to="IStorageController::portCount"/> can be set to.
13272 </desc>
13273 </attribute>
13274
13275 <attribute name="maxPortCount" type="unsigned long" readonly="yes">
13276 <desc>
13277 Maximum number of ports that <link to="IStorageController::portCount"/> can be set to.
13278 </desc>
13279 </attribute>
13280
13281 <attribute name="instance" type="unsigned long">
13282 <desc>
13283 The instance number of the device in the running VM.
13284 </desc>
13285 </attribute>
13286
13287 <attribute name="portCount" type="unsigned long">
13288 <desc>
13289 The number of currently usable ports on the controller.
13290 The minimum and maximum number of ports for one controller are
13291 stored in <link to="IStorageController::minPortCount"/>
13292 and <link to="IStorageController::maxPortCount"/>.
13293 </desc>
13294 </attribute>
13295
13296 <attribute name="bus" type="StorageBus" readonly="yes">
13297 <desc>
13298 The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy).
13299 </desc>
13300 </attribute>
13301
13302 <attribute name="controllerType" type="StorageControllerType">
13303 <desc>
13304 The exact variant of storage controller hardware presented
13305 to the guest.
13306 Depending on this value, VirtualBox will provide a different
13307 virtual storage controller hardware to the guest.
13308 For SATA, SAS and floppy controllers, only one variant is
13309 available, but for IDE and SCSI, there are several.
13310
13311 For SCSI controllers, the default type is LsiLogic.
13312 </desc>
13313 </attribute>
13314
13315 <attribute name="useHostIOCache" type="boolean">
13316 <desc>
13317 If true, the storage controller emulation will use a dedicated I/O thread, enable the host I/O
13318 caches and use synchronous file APIs on the host. This was the only option in the API before
13319 VirtualBox 3.2 and is still the default for IDE controllers.
13320
13321 If false, the host I/O cache will be disabled for image files attached to this storage controller.
13322 Instead, the storage controller emulation will use asynchronous I/O APIs on the host. This makes
13323 it possible to turn off the host I/O caches because the emulation can handle unaligned access to
13324 the file. This should be used on OS X and Linux hosts if a high I/O load is expected or many
13325 virtual machines are running at the same time to prevent I/O cache related hangs.
13326 This option new with the API of VirtualBox 3.2 and is now the default for non-IDE storage controllers.
13327 </desc>
13328 </attribute>
13329
13330 <method name="getIDEEmulationPort">
13331 <desc>
13332 Gets the corresponding port number which is emulated as an IDE device.
13333 Works only with SATA controllers.
13334
13335 <result name="E_INVALIDARG">
13336 The @a devicePosition is not in the range 0 to 3.
13337 </result>
13338 <result name="E_NOTIMPL">
13339 The storage controller type is not SATAIntelAhci.
13340 </result>
13341
13342 </desc>
13343 <param name="devicePosition" type="long" dir="in"/>
13344 <param name="portNumber" type="long" dir="return"/>
13345 </method>
13346
13347 <method name="setIDEEmulationPort">
13348 <desc>
13349 Sets the port number which is emulated as an IDE device.
13350 Works only with SATA controllers.
13351
13352 <result name="E_INVALIDARG">
13353 The @a devicePosition is not in the range 0 to 3 or the
13354 @a portNumber is not in the range 0 to 29.
13355 </result>
13356 <result name="E_NOTIMPL">
13357 The storage controller type is not SATAIntelAhci.
13358 </result>
13359
13360 </desc>
13361 <param name="devicePosition" type="long" dir="in"/>
13362 <param name="portNumber" type="long" dir="in"/>
13363 </method>
13364
13365 </interface>
13366
13367<if target="wsdl">
13368
13369 <!--
13370 // IManagedObjectRef
13371 /////////////////////////////////////////////////////////////////////////
13372 -->
13373
13374 <interface
13375 name="IManagedObjectRef" extends="$unknown"
13376 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
13377 internal="yes"
13378 wsmap="managed"
13379 wscpp="hardcoded"
13380 >
13381 <desc>
13382 Managed object reference.
13383
13384 Only within the webservice, a managed object reference (which is really
13385 an opaque number) allows a webservice client to address an object
13386 that lives in the address space of the webservice server.
13387
13388 Behind each managed object reference, there is a COM object that lives
13389 in the webservice server's address space. The COM object is not freed
13390 until the managed object reference is released, either by an explicit
13391 call to <link to="IManagedObjectRef::release" /> or by logging off from
13392 the webservice (<link to="IWebsessionManager::logoff" />), which releases
13393 all objects created during the webservice session.
13394
13395 Whenever a method call of the VirtualBox API returns a COM object, the
13396 webservice representation of that method will instead return a
13397 managed object reference, which can then be used to invoke methods
13398 on that object.
13399 </desc>
13400
13401 <method name="getInterfaceName">
13402 <desc>
13403 Returns the name of the interface that this managed object represents,
13404 for example, "IMachine", as a string.
13405 </desc>
13406 <param name="return" type="wstring" dir="return"/>
13407 </method>
13408
13409 <method name="release">
13410 <desc>
13411 Releases this managed object reference and frees the resources that
13412 were allocated for it in the webservice server process. After calling
13413 this method, the identifier of the reference can no longer be used.
13414 </desc>
13415 </method>
13416
13417 </interface>
13418
13419 <!--
13420 // IWebsessionManager
13421 /////////////////////////////////////////////////////////////////////////
13422 -->
13423
13424 <interface
13425 name="IWebsessionManager" extends="$unknown"
13426 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
13427 internal="yes"
13428 wsmap="global"
13429 wscpp="hardcoded"
13430 >
13431 <desc>
13432 Websession manager. This provides essential services
13433 to webservice clients.
13434 </desc>
13435 <method name="logon">
13436 <desc>
13437 Logs a new client onto the webservice and returns a managed object reference to
13438 the IVirtualBox instance, which the client can then use as a basis to further
13439 queries, since all calls to the VirtualBox API are based on the IVirtualBox
13440 interface, in one way or the other.
13441 </desc>
13442 <param name="username" type="wstring" dir="in"/>
13443 <param name="password" type="wstring" dir="in"/>
13444 <param name="return" type="IVirtualBox" dir="return"/>
13445 </method>
13446
13447 <method name="getSessionObject">
13448 <desc>
13449 Returns a managed object reference to the internal ISession object that was created
13450 for this web service session when the client logged on.
13451
13452 <see>ISession</see>
13453 </desc>
13454 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
13455 <param name="return" type="ISession" dir="return"/>
13456 </method>
13457
13458 <method name="logoff">
13459 <desc>
13460 Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
13461 and destroys all resources associated with the session (most importantly, all
13462 managed objects created in the server while the session was active).
13463 </desc>
13464 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
13465 </method>
13466
13467 </interface>
13468
13469</if>
13470
13471 <!--
13472 // IPerformanceCollector & friends
13473 /////////////////////////////////////////////////////////////////////////
13474 -->
13475
13476 <interface
13477 name="IPerformanceMetric" extends="$unknown"
13478 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
13479 >
13480 <desc>
13481 The IPerformanceMetric interface represents parameters of the given
13482 performance metric.
13483 </desc>
13484
13485 <attribute name="metricName" type="wstring" readonly="yes">
13486 <desc>
13487 Name of the metric.
13488 </desc>
13489 </attribute>
13490
13491 <attribute name="object" type="$unknown" readonly="yes">
13492 <desc>
13493 Object this metric belongs to.
13494 </desc>
13495 </attribute>
13496
13497 <attribute name="description" type="wstring" readonly="yes">
13498 <desc>
13499 Textual description of the metric.
13500 </desc>
13501 </attribute>
13502
13503 <attribute name="period" type="unsigned long" readonly="yes">
13504 <desc>
13505 Time interval between samples, measured in seconds.
13506 </desc>
13507 </attribute>
13508
13509 <attribute name="count" type="unsigned long" readonly="yes">
13510 <desc>
13511 Number of recent samples retained by the performance collector for this
13512 metric.
13513
13514 When the collected sample count exceeds this number, older samples
13515 are discarded.
13516 </desc>
13517 </attribute>
13518
13519 <attribute name="unit" type="wstring" readonly="yes">
13520 <desc>
13521 Unit of measurement.
13522 </desc>
13523 </attribute>
13524
13525 <attribute name="minimumValue" type="long" readonly="yes">
13526 <desc>
13527 Minimum possible value of this metric.
13528 </desc>
13529 </attribute>
13530
13531 <attribute name="maximumValue" type="long" readonly="yes">
13532 <desc>
13533 Maximum possible value of this metric.
13534 </desc>
13535 </attribute>
13536 </interface>
13537
13538 <interface
13539 name="IPerformanceCollector" extends="$unknown"
13540 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
13541 wsmap="managed"
13542 >
13543 <desc>
13544 The IPerformanceCollector interface represents a service that collects
13545 and stores performance metrics data.
13546
13547 Performance metrics are associated with objects of interfaces like IHost
13548 and IMachine. Each object has a distinct set of performance metrics. The
13549 set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
13550
13551 Metric data is collected at the specified intervals and is retained
13552 internally. The interval and the number of retained samples can be set
13553 with <link to="IPerformanceCollector::setupMetrics" />. Both metric data
13554 and collection settings are not persistent, they are discarded as soon as
13555 VBoxSVC process terminates. Moreover, metric settings and data associated
13556 with a particular VM only exist while VM is running. They disappear as
13557 soon as VM shuts down. It is not possible to set up metrics for machines
13558 that are powered off. One needs to start VM first, then set up metric
13559 collection parameters.
13560
13561 Metrics are organized hierarchically, with each level separated by a
13562 slash (/) character. Generally, the scheme for metric names is like this:
13563
13564 <tt>Category/Metric[/SubMetric][:aggregation]</tt>
13565
13566 "Category/Metric" together form the base metric name. A base metric is
13567 the smallest unit for which a sampling interval and the number of
13568 retained samples can be set. Only base metrics can be enabled and
13569 disabled. All sub-metrics are collected when their base metric is
13570 collected. Collected values for any set of sub-metrics can be queried
13571 with <link to="IPerformanceCollector::queryMetricsData" />.
13572
13573 For example "CPU/Load/User:avg" metric name stands for the "CPU"
13574 category, "Load" metric, "User" submetric, "average" aggregate. An
13575 aggregate function is computed over all retained data. Valid aggregate
13576 functions are:
13577
13578 <ul>
13579 <li>avg -- average</li>
13580 <li>min -- minimum</li>
13581 <li>max -- maximum</li>
13582 </ul>
13583
13584 When setting up metric parameters, querying metric data, enabling or
13585 disabling metrics wildcards can be used in metric names to specify a
13586 subset of metrics. For example, to select all CPU-related metrics
13587 use <tt>CPU/*</tt>, all averages can be queried using <tt>*:avg</tt> and
13588 so on. To query metric values without aggregates <tt>*:</tt> can be used.
13589
13590 The valid names for base metrics are:
13591
13592 <ul>
13593 <li>CPU/Load</li>
13594 <li>CPU/MHz</li>
13595 <li>RAM/Usage</li>
13596 </ul>
13597
13598 The general sequence for collecting and retrieving the metrics is:
13599 <ul>
13600 <li>
13601 Obtain an instance of IPerformanceCollector with
13602 <link to="IVirtualBox::performanceCollector" />
13603 </li>
13604 <li>
13605 Allocate and populate an array with references to objects the metrics
13606 will be collected for. Use references to IHost and IMachine objects.
13607 </li>
13608 <li>
13609 Allocate and populate an array with base metric names the data will
13610 be collected for.
13611 </li>
13612 <li>
13613 Call <link to="IPerformanceCollector::setupMetrics" />. From now on
13614 the metric data will be collected and stored.
13615 </li>
13616 <li>
13617 Wait for the data to get collected.
13618 </li>
13619 <li>
13620 Allocate and populate an array with references to objects the metric
13621 values will be queried for. You can re-use the object array used for
13622 setting base metrics.
13623 </li>
13624 <li>
13625 Allocate and populate an array with metric names the data will be
13626 collected for. Note that metric names differ from base metric names.
13627 </li>
13628 <li>
13629 Call <link to="IPerformanceCollector::queryMetricsData" />. The data
13630 that have been collected so far are returned. Note that the values
13631 are still retained internally and data collection continues.
13632 </li>
13633 </ul>
13634
13635 For an example of usage refer to the following files in VirtualBox SDK:
13636 <ul>
13637 <li>
13638 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
13639 </li>
13640 <li>
13641 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
13642 </li>
13643 </ul>
13644 </desc>
13645
13646 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
13647 <desc>
13648 Array of unique names of metrics.
13649
13650 This array represents all metrics supported by the performance
13651 collector. Individual objects do not necessarily support all of them.
13652 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
13653 list of supported metrics for a particular object.
13654 </desc>
13655 </attribute>
13656
13657 <method name="getMetrics">
13658 <desc>
13659 Returns parameters of specified metrics for a set of objects.
13660 <note>
13661 @c Null metrics array means all metrics. @c Null object array means
13662 all existing objects.
13663 </note>
13664 </desc>
13665 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13666 <desc>
13667 Metric name filter. Currently, only a comma-separated list of metrics
13668 is supported.
13669 </desc>
13670 </param>
13671 <param name="objects" type="$unknown" dir="in" safearray="yes">
13672 <desc>
13673 Set of objects to return metric parameters for.
13674 </desc>
13675 </param>
13676 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
13677 <desc>
13678 Array of returned metric parameters.
13679 </desc>
13680 </param>
13681 </method>
13682
13683 <method name="setupMetrics">
13684 <desc>
13685 Sets parameters of specified base metrics for a set of objects. Returns
13686 an array of <link to="IPerformanceMetric" /> describing the metrics
13687 have been affected.
13688 <note>
13689 @c Null or empty metric name array means all metrics. @c Null or
13690 empty object array means all existing objects. If metric name array
13691 contains a single element and object array contains many, the single
13692 metric name array element is applied to each object array element to
13693 form metric/object pairs.
13694 </note>
13695 </desc>
13696 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13697 <desc>
13698 Metric name filter. Comma-separated list of metrics with wildcard
13699 support.
13700 </desc>
13701 </param>
13702 <param name="objects" type="$unknown" dir="in" safearray="yes">
13703 <desc>
13704 Set of objects to setup metric parameters for.
13705 </desc>
13706 </param>
13707 <param name="period" type="unsigned long" dir="in">
13708 <desc>
13709 Time interval in seconds between two consecutive samples of
13710 performance data.
13711 </desc>
13712 </param>
13713 <param name="count" type="unsigned long" dir="in">
13714 <desc>
13715 Number of samples to retain in performance data history. Older
13716 samples get discarded.
13717 </desc>
13718 </param>
13719 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13720 <desc>
13721 Array of metrics that have been modified by the call to this method.
13722 </desc>
13723 </param>
13724 </method>
13725
13726 <method name="enableMetrics">
13727 <desc>
13728 Turns on collecting specified base metrics. Returns an array of
13729 <link to="IPerformanceMetric" /> describing the metrics have been
13730 affected.
13731 <note>
13732 @c Null or empty metric name array means all metrics. @c Null or
13733 empty object array means all existing objects. If metric name array
13734 contains a single element and object array contains many, the single
13735 metric name array element is applied to each object array element to
13736 form metric/object pairs.
13737 </note>
13738 </desc>
13739 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13740 <desc>
13741 Metric name filter. Comma-separated list of metrics with wildcard
13742 support.
13743 </desc>
13744 </param>
13745 <param name="objects" type="$unknown" dir="in" safearray="yes">
13746 <desc>
13747 Set of objects to enable metrics for.
13748 </desc>
13749 </param>
13750 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13751 <desc>
13752 Array of metrics that have been modified by the call to this method.
13753 </desc>
13754 </param>
13755 </method>
13756
13757 <method name="disableMetrics">
13758 <desc>
13759 Turns off collecting specified base metrics. Returns an array of
13760 <link to="IPerformanceMetric" /> describing the metrics have been
13761 affected.
13762 <note>
13763 @c Null or empty metric name array means all metrics. @c Null or
13764 empty object array means all existing objects. If metric name array
13765 contains a single element and object array contains many, the single
13766 metric name array element is applied to each object array element to
13767 form metric/object pairs.
13768 </note>
13769 </desc>
13770 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13771 <desc>
13772 Metric name filter. Comma-separated list of metrics with wildcard
13773 support.
13774 </desc>
13775 </param>
13776 <param name="objects" type="$unknown" dir="in" safearray="yes">
13777 <desc>
13778 Set of objects to disable metrics for.
13779 </desc>
13780 </param>
13781 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13782 <desc>
13783 Array of metrics that have been modified by the call to this method.
13784 </desc>
13785 </param>
13786 </method>
13787
13788 <method name="queryMetricsData">
13789 <desc>
13790 Queries collected metrics data for a set of objects.
13791
13792 The data itself and related metric information are returned in seven
13793 parallel and one flattened array of arrays. Elements of
13794 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
13795 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
13796 the same index describe one set of values corresponding to a single
13797 metric.
13798
13799 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
13800 start and length of a sub-array is indicated by
13801 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
13802 value for metric <tt>metricNames[i]</tt> is at
13803 <tt>returnData[returnIndices[i]]</tt>.
13804
13805 <note>
13806 @c Null or empty metric name array means all metrics. @c Null or
13807 empty object array means all existing objects. If metric name array
13808 contains a single element and object array contains many, the single
13809 metric name array element is applied to each object array element to
13810 form metric/object pairs.
13811 </note>
13812 <note>
13813 Data collection continues behind the scenes after call to @c
13814 queryMetricsData. The return data can be seen as the snapshot of the
13815 current state at the time of @c queryMetricsData call. The internally
13816 kept metric values are not cleared by the call. This makes possible
13817 querying different subsets of metrics or aggregates with subsequent
13818 calls. If periodic querying is needed it is highly suggested to query
13819 the values with @c interval*count period to avoid confusion. This way
13820 a completely new set of data values will be provided by each query.
13821 </note>
13822 </desc>
13823 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13824 <desc>
13825 Metric name filter. Comma-separated list of metrics with wildcard
13826 support.
13827 </desc>
13828 </param>
13829 <param name="objects" type="$unknown" dir="in" safearray="yes">
13830 <desc>
13831 Set of objects to query metrics for.
13832 </desc>
13833 </param>
13834 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
13835 <desc>
13836 Names of metrics returned in @c returnData.
13837 </desc>
13838 </param>
13839 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
13840 <desc>
13841 Objects associated with metrics returned in @c returnData.
13842 </desc>
13843 </param>
13844 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
13845 <desc>
13846 Units of measurement for each returned metric.
13847 </desc>
13848 </param>
13849 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
13850 <desc>
13851 Divisor that should be applied to return values in order to get
13852 floating point values. For example:
13853 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
13854 will retrieve the floating point value of i-th sample of the first
13855 metric.
13856 </desc>
13857 </param>
13858 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
13859 <desc>
13860 Sequence numbers of the first elements of value sequences of
13861 particular metrics returned in @c returnData. For aggregate metrics
13862 it is the sequence number of the sample the aggregate started
13863 calculation from.
13864 </desc>
13865 </param>
13866 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
13867 <desc>
13868 Indices of the first elements of value sequences of particular
13869 metrics returned in @c returnData.
13870 </desc>
13871 </param>
13872 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
13873 <desc>
13874 Lengths of value sequences of particular metrics.
13875 </desc>
13876 </param>
13877 <param name="returnData" type="long" dir="return" safearray="yes">
13878 <desc>
13879 Flattened array of all metric data containing sequences of values for
13880 each metric.
13881 </desc>
13882 </param>
13883 </method>
13884
13885 </interface>
13886 <enum
13887 name="NATAliasMode"
13888 uuid="67772168-50d9-11df-9669-7fb714ee4fa1">
13889 <desc></desc>
13890 <const name="AliasLog" value="0x1">
13891 <desc></desc>
13892 </const>
13893 <const name="AliasProxyOnly" value="0x02">
13894 <desc></desc>
13895 </const>
13896 <const name="AliasUseSamePorts" value="0x04">
13897 <desc></desc>
13898 </const>
13899 </enum>
13900 <enum
13901 name="NATProtocol"
13902 uuid="e90164be-eb03-11de-94af-fff9b1c1b19f"
13903 >
13904 <desc>Protocol definitions used with NAT port-forwarding rules.</desc>
13905 <const name="UDP" value="0">
13906 <desc>Port-forwarding uses UDP protocol.</desc>
13907 </const>
13908 <const name="TCP" value="1">
13909 <desc>Port-forwarding uses TCP protocol.</desc>
13910 </const>
13911 </enum>
13912
13913 <interface
13914 name="INATEngine" extends="$unknown"
13915 uuid="4b286616-eb03-11de-b0fb-1701eca42246"
13916 wsmap="managed"
13917 >
13918 <desc>Interface for managing a NAT engine which is used with a virtual machine. This
13919 allows for changing NAT behavior such as port-forwarding rules. This interface is
13920 used in the <link to="INetworkAdapter::natDriver" /> attribute.</desc>
13921 <attribute name="network" type="wstring">
13922 <desc>The network attribute of the NAT engine (the same value is used with built-in
13923 DHCP server to fill corresponding fields of DHCP leases).</desc>
13924 </attribute>
13925 <attribute name="hostIP" type="wstring">
13926 <desc>IP of host interface to bind all opened sockets to.
13927 <note>Changing this does not change binding of port forwarding.</note>
13928 </desc>
13929 </attribute>
13930 <attribute name="tftpPrefix" type="wstring">
13931 <desc>TFTP prefix attribute which is used with the built-in DHCP server to fill
13932 the corresponding fields of DHCP leases.</desc>
13933 </attribute>
13934 <attribute name="tftpBootFile" type="wstring">
13935 <desc>TFTP boot file attribute which is used with the built-in DHCP server to fill
13936 the corresponding fields of DHCP leases.</desc>
13937 </attribute>
13938 <attribute name="tftpNextServer" type="wstring">
13939 <desc>TFTP server attribute which is used with the built-in DHCP server to fill
13940 the corresponding fields of DHCP leases.
13941 <note>The preferred form is IPv4 addresses.</note>
13942 </desc>
13943 </attribute>
13944 <attribute name="aliasMode" type="unsigned long">
13945 <desc></desc>
13946 </attribute>
13947 <attribute name="dnsPassDomain" type="boolean">
13948 <desc>Whether the DHCP server should pass the DNS domain used by the host.</desc>
13949 </attribute>
13950 <attribute name="dnsProxy" type="boolean">
13951 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
13952 of the DNS proxy and process traffic using DNS servers registered on the host.</desc>
13953 </attribute>
13954 <attribute name="dnsUseHostResolver" type="boolean">
13955 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
13956 of the DNS proxy and process traffic using the host resolver mechanism.</desc>
13957 </attribute>
13958 <attribute name="redirects" type="wstring" readonly="yes" safearray="yes">
13959 <desc>Array of NAT port-forwarding rules in string representation, in the following
13960 format: "name,protocol id,host ip,host port,guest ip,guest port".</desc>
13961 </attribute>
13962 <method name="setNetworkSettings">
13963 <desc>Sets network configuration of the NAT engine.</desc>
13964 <param name="mtu" type="unsigned long" dir="in">
13965 <desc>MTU (maximum transmission unit) of the NAT engine in bytes.</desc>
13966 </param>
13967 <param name="sockSnd" type="unsigned long" dir="in">
13968 <desc>Capacity of the socket send buffer in bytes when creating a new socket.</desc>
13969 </param>
13970 <param name="sockRcv" type="unsigned long" dir="in">
13971 <desc>Capacity of the socket receive buffer in bytes when creating a new socket.</desc>
13972 </param>
13973 <param name="TcpWndSnd" type="unsigned long" dir="in">
13974 <desc>Initial size of the NAT engine's sending TCP window in bytes when
13975 establishing a new TCP connection.</desc>
13976 </param>
13977 <param name="TcpWndRcv" type="unsigned long" dir="in">
13978 <desc>Initial size of the NAT engine's receiving TCP window in bytes when
13979 establishing a new TCP connection.</desc>
13980 </param>
13981 </method>
13982 <method name="getNetworkSettings">
13983 <desc>Returns network configuration of NAT engine. See <link to="#setNetworkSettings" />
13984 for parameter descriptions.</desc>
13985 <param name="mtu" type="unsigned long" dir="out" />
13986 <param name="sockSnd" type="unsigned long" dir="out" />
13987 <param name="sockRcv" type="unsigned long" dir="out" />
13988 <param name="TcpWndSnd" type="unsigned long" dir="out" />
13989 <param name="TcpWndRcv" type="unsigned long" dir="out" />
13990 </method>
13991 <method name="addRedirect">
13992 <desc>Adds a new NAT port-forwarding rule.</desc>
13993 <param name="name" type="wstring" dir="in">
13994 <desc>The name of the rule. An empty name is acceptable, in which case the NAT engine
13995 auto-generates one using the other parameters.</desc>
13996 </param>
13997 <param name="proto" type="NATProtocol" dir="in">
13998 <desc>Protocol handled with the rule.</desc>
13999 </param>
14000 <param name="hostIp" type="wstring" dir="in">
14001 <desc>IP of the host interface to which the rule should apply. An empty ip address is
14002 acceptable, in which case the NAT engine binds the handling socket to any interface.</desc>
14003 </param>
14004 <param name="hostPort" type="unsigned short" dir="in">
14005 <desc>The port number to listen on.</desc>
14006 </param>
14007 <param name="guestIp" type="wstring" dir="in">
14008 <desc>The IP address of the guest which the NAT engine will forward matching packets
14009 to. An empty IP address is acceptable, in which case the NAT engine will forward
14010 packets to the first DHCP lease (x.x.x.15).</desc>
14011 </param>
14012 <param name="guestPort" type="unsigned short" dir="in">
14013 <desc>The port number to forward.</desc>
14014 </param>
14015 </method>
14016 <method name="removeRedirect">
14017 <desc>Removes a port-forwarding rule that was previously registered.</desc>
14018 <param name="name" type="wstring" dir="in">
14019 <desc>The name of the rule to delete.</desc>
14020 </param>
14021 </method>
14022 </interface>
14023
14024 <!--
14025 // IExtPackManager
14026 /////////////////////////////////////////////////////////////////////////
14027 -->
14028
14029 <interface
14030 name="IExtPack" extends="$unknown"
14031 uuid="ab26b24e-d46c-4d09-aa44-e5092d2fe9ae"
14032 wsmap="suppress"
14033 >
14034 <desc>
14035 Interface for querying interfaces and information relating to an
14036 extension pack. The extension pack specific interfaces can be queried
14037 via the IUnknown::QueryInterface method.
14038 </desc>
14039 <attribute name="name" type="wstring" readonly="yes">
14040 <desc>The extension pack name. This is unique.</desc>
14041 </attribute>
14042 <attribute name="description" type="wstring" readonly="yes">
14043 <desc>The extension pack description.</desc>
14044 </attribute>
14045 <attribute name="version" type="wstring" readonly="yes">
14046 <desc>
14047 The extension pack version string. This is on the same form as
14048 other VirtualBox version strings, i.e.: "1.2.3", "1.2.3_BETA1",
14049 "1.2.3-OSE", "1.2.3r45678", "1.2.3r45678-OSE", "1.2.3_BETA1-r45678"
14050 or "1.2.3_BETA1-r45678-OSE"
14051 </desc>
14052 </attribute>
14053 <attribute name="revision" type="unsigned long" readonly="yes">
14054 <desc>The extension pack internal revision number.</desc>
14055 </attribute>
14056 <attribute name="usable" type="boolean" readonly="yes">
14057 <desc>
14058 Indicates whether the extension pack is usable or not. An
14059 extension pack that is not compatible with the current VirtualBox
14060 version will be flagged as not usable.
14061 </desc>
14062 </attribute>
14063 <attribute name="whyUnusable" type="wstring" readonly="yes">
14064 <desc>
14065 String indicating why the extension pack is not usable. This is an
14066 empty string if usable and always a non-empty string if not usable.
14067 </desc>
14068 </attribute>
14069 </interface>
14070
14071 <interface
14072 name="IExtPackManager" extends="$unknown"
14073 uuid="ba1fbfca-53f1-471c-b5a1-416386f0f52b"
14074 wsmap="suppress"
14075 >
14076 <desc>
14077 Interface for managing VirtualBox Extension Packs.
14078
14079 TODO: Describe extension packs, how they are managed and how to create
14080 one.
14081 </desc>
14082
14083 <attribute name="installedExtPacks" type="IExtPack" safearray="yes" readonly="yes">
14084 <desc>
14085 List of the installed extension packs.
14086 </desc>
14087 </attribute>
14088
14089 <method name="find">
14090 <desc>
14091 Returns the extension pack with the specified name if found.
14092
14093 <result name="VBOX_E_OBJECT_NOT_FOUND">
14094 No extension pack matching @a name was found.
14095 </result>
14096 </desc>
14097 <param name="name" type="wstring" dir="in">
14098 <desc>The name of the extension pack to locate.</desc>
14099 </param>
14100 <param name="returnData" type="IExtPack" dir="return">
14101 <desc>The extension pack if found.</desc>
14102 </param>
14103 </method>
14104
14105 <method name="install">
14106 <param name="path" type="wstring" dir="in">
14107 <desc>The path of the extension pack tarball.</desc>
14108 </param>
14109 <param name="name" type="wstring" dir="out">
14110 <desc>The name of the installed extension pack.</desc>
14111 </param>
14112 </method>
14113
14114 <method name="uninstall">
14115 <desc>Uninstalls an extension pack, removing all related files.</desc>
14116 <param name="name" type="wstring" dir="in">
14117 <desc>The name of the extension pack to uninstall.</desc>
14118 </param>
14119 <param name="forcedRemoval" type="boolean" dir="in">
14120 <desc>
14121 Forced removal of the extension pack. This means that the uninstall
14122 hook will not be called.
14123 </desc>
14124 </param>
14125 </method>
14126 </interface>
14127
14128 <!--
14129 // Events
14130 /////////////////////////////////////////////////////////////////////////
14131 -->
14132 <enum
14133 name="VBoxEventType"
14134 uuid="e085d0b1-05e6-4f40-a709-b7266fbdb236">
14135
14136 <desc>
14137 Type of an event.
14138 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
14139 </desc>
14140
14141 <const name="Invalid" value="0">
14142 <desc>
14143 Invalid event, must be first.
14144 </desc>
14145 </const>
14146
14147 <const name="Any" value="1">
14148 <desc>
14149 Wildcard for all events.
14150 Events of this type are never delivered, and only used in
14151 registerListener() call to simplify registration.
14152 </desc>
14153 </const>
14154
14155 <const name="Vetoable" value="2">
14156 <desc>
14157 Wildcard for all vetoable events. Events of this type are never delivered, and only
14158 used in registerListener() call to simplify registration.
14159 </desc>
14160 </const>
14161
14162 <const name="MachineEvent" value="3">
14163 <desc>
14164 Wildcard for all machine events. Events of this type are never delivered, and only used in
14165 registerListener() call to simplify registration.
14166 </desc>
14167 </const>
14168
14169 <const name="SnapshotEvent" value="4">
14170 <desc>
14171 Wildcard for all snapshot events. Events of this type are never delivered, and only used in
14172 registerListener() call to simplify registration.
14173 </desc>
14174 </const>
14175
14176 <const name="InputEvent" value="5">
14177 <desc>
14178 Wildcard for all input device (keyboard, mouse) events.
14179 Events of this type are never delivered, and only used in
14180 registerListener() call to simplify registration.
14181 </desc>
14182 </const>
14183
14184 <const name="LastWildcard" value="31">
14185 <desc>
14186 Last wildcard.
14187 </desc>
14188 </const>
14189
14190 <const name="OnMachineStateChanged" value="32">
14191 <desc>
14192 See <link to="IMachineStateChangedEvent">IMachineStateChangedEvent</link>.
14193 </desc>
14194 </const>
14195 <const name="OnMachineDataChanged" value="33">
14196 <desc>
14197 See <link to="IMachineDataChangedEvent">IMachineDataChangedEvent</link>.
14198 </desc>
14199 </const>
14200 <const name="OnExtraDataChanged" value="34">
14201 <desc>
14202 See <link to="IExtraDataChangedEvent">IExtraDataChangedEvent</link>.
14203 </desc>
14204 </const>
14205 <const name="OnExtraDataCanChange" value="35">
14206 <desc>
14207 See <link to="IExtraDataCanChangeEvent">IExtraDataCanChangeEvent</link>.
14208 </desc>
14209 </const>
14210 <const name="OnMediumRegistered" value="36">
14211 <desc>
14212 See <link to="IMediumRegisteredEvent">IMediumRegisteredEvent</link>.
14213 </desc>
14214 </const>
14215 <const name="OnMachineRegistered" value="37">
14216 <desc>
14217 See <link to="IMachineRegisteredEvent">IMachineRegisteredEvent</link>.
14218 </desc>
14219 </const>
14220 <const name="OnSessionStateChanged" value="38">
14221 <desc>
14222 See <link to="ISessionStateChangedEvent">ISessionStateChangedEvent</link>.
14223 </desc>
14224 </const>
14225 <const name="OnSnapshotTaken" value="39">
14226 <desc>
14227 See <link to="ISnapshotTakenEvent">ISnapshotTakenEvent</link>.
14228 </desc>
14229 </const>
14230 <const name="OnSnapshotDeleted" value="40">
14231 <desc>
14232 See <link to="ISnapshotDeletedEvent">ISnapshotDeletedEvent</link>.
14233 </desc>
14234 </const>
14235 <const name="OnSnapshotChanged" value="41">
14236 <desc>
14237 See <link to="ISnapshotChangedEvent">ISnapshotChangedEvent</link>.
14238 </desc>
14239 </const>
14240 <const name="OnGuestPropertyChanged" value="42">
14241 <desc>
14242 See <link to="IGuestPropertyChangedEvent">IGuestPropertyChangedEvent</link>.
14243 </desc>
14244 </const>
14245 <!-- Console events -->
14246 <const name="OnMousePointerShapeChanged" value="43">
14247 <desc>
14248 See <link to="IMousePointerShapeChangedEvent">IMousePointerShapeChangedEvent</link>.
14249 </desc>
14250 </const>
14251 <const name="OnMouseCapabilityChanged" value="44">
14252 <desc>
14253 See <link to="IMouseCapabilityChangedEvent">IMouseCapabilityChangedEvent</link>.
14254 </desc>
14255 </const>
14256 <const name="OnKeyboardLedsChanged" value="45">
14257 <desc>
14258 See <link to="IKeyboardLedsChangedEvent">IKeyboardLedsChangedEvent</link>.
14259 </desc>
14260 </const>
14261 <const name="OnStateChanged" value="46">
14262 <desc>
14263 See <link to="IStateChangedEvent">IStateChangedEvent</link>.
14264 </desc>
14265 </const>
14266 <const name="OnAdditionsStateChanged" value="47">
14267 <desc>
14268 See <link to="IAdditionsStateChangedEvent">IAdditionsStateChangedEvent</link>.
14269 </desc>
14270 </const>
14271 <const name="OnNetworkAdapterChanged" value="48">
14272 <desc>
14273 See <link to="INetworkAdapterChangedEvent">INetworkAdapterChangedEvent</link>.
14274 </desc>
14275 </const>
14276 <const name="OnSerialPortChanged" value="49">
14277 <desc>
14278 See <link to="ISerialPortChangedEvent">ISerialPortChangedEvent</link>.
14279 </desc>
14280 </const>
14281 <const name="OnParallelPortChanged" value="50">
14282 <desc>
14283 See <link to="IParallelPortChangedEvent">IParallelPortChangedEvent</link>.
14284 </desc>
14285 </const>
14286 <const name="OnStorageControllerChanged" value="51">
14287 <desc>
14288 See <link to="IStorageControllerChangedEvent">IStorageControllerChangedEvent</link>.
14289 </desc>
14290 </const>
14291 <const name="OnMediumChanged" value="52">
14292 <desc>
14293 See <link to="IMediumChangedEvent">IMediumChangedEvent</link>.
14294 </desc>
14295 </const>
14296 <const name="OnVRDEServerChanged" value="53">
14297 <desc>
14298 See <link to="IVRDEServerChangedEvent">IVRDEServerChangedEvent</link>.
14299 </desc>
14300 </const>
14301 <const name="OnUSBControllerChanged" value="54">
14302 <desc>
14303 See <link to="IUSBControllerChangedEvent">IUSBControllerChangedEvent</link>.
14304 </desc>
14305 </const>
14306 <const name="OnUSBDeviceStateChanged" value="55">
14307 <desc>
14308 See <link to="IUSBDeviceStateChangedEvent">IUSBDeviceStateChangedEvent</link>.
14309 </desc>
14310 </const>
14311 <const name="OnSharedFolderChanged" value="56">
14312 <desc>
14313 See <link to="ISharedFolderChangedEvent">ISharedFolderChangedEvent</link>.
14314 </desc>
14315 </const>
14316 <const name="OnRuntimeError" value="57">
14317 <desc>
14318 See <link to="IRuntimeErrorEvent">IRuntimeErrorEvent</link>.
14319 </desc>
14320 </const>
14321 <const name="OnCanShowWindow" value="58">
14322 <desc>
14323 See <link to="ICanShowWindowEvent">ICanShowWindowEvent</link>.
14324 </desc>
14325 </const>
14326 <const name="OnShowWindow" value="59">
14327 <desc>
14328 See <link to="IShowWindowEvent">IShowWindowEvent</link>.
14329 </desc>
14330 </const>
14331 <const name="OnCPUChanged" value="60">
14332 <desc>
14333 See <link to="ICPUChangedEvent">ICPUChangedEvent</link>.
14334 </desc>
14335 </const>
14336 <const name="OnVRDEServerInfoChanged" value="61">
14337 <desc>
14338 See <link to="IVRDEServerInfoChangedEvent">IVRDEServerInfoChangedEvent</link>.
14339 </desc>
14340 </const>
14341 <const name="OnEventSourceChanged" value="62">
14342 <desc>
14343 See <link to="IEventSourceChangedEvent">IEventSourceChangedEvent</link>.
14344 </desc>
14345 </const>
14346 <const name="OnCPUExecutionCapChanged" value="63">
14347 <desc>
14348 See <link to="ICPUExecutionCapChangedEvent">ICPUExecutionCapChangedEvent</link>.
14349 </desc>
14350 </const>
14351 <const name="OnGuestKeyboardEvent" value="64">
14352 <desc>
14353 See <link to="IGuestKeyboardEvent">IGuestKeyboardEvent</link>.
14354 </desc>
14355 </const>
14356 <const name="OnGuestMouseEvent" value="65">
14357 <desc>
14358 See <link to="IGuestMouseEvent">IGuestMouseEvent</link>.
14359 </desc>
14360 </const>
14361 <!-- Last event marker -->
14362 <const name="Last" value="66">
14363 <desc>
14364 Must be last event, used for iterations and structures relying on numerical event values.
14365 </desc>
14366 </const>
14367
14368 </enum>
14369
14370 <interface
14371 name="IEventSource" extends="$unknown"
14372 uuid="9b6e1aee-35f3-4f4d-b5bb-ed0ecefd8538"
14373 wsmap="managed"
14374 >
14375 <desc>
14376 Event source. Generally, any object which could generate events can be an event source,
14377 or aggregate one. To simplify using one-way protocols such as webservices running on top of HTTP(S),
14378 an event source can work with listeners in either active or passive mode. In active mode it is up to
14379 the IEventSource implementation to call <link to="IEventListener::handleEvent" />, in passive mode the
14380 event source keeps track of pending events for each listener and returns available events on demand.
14381
14382 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
14383 </desc>
14384
14385 <method name="createListener">
14386 <desc>
14387 Creates a new listener object, useful for passive mode.
14388 </desc>
14389 <param name="listener" type="IEventListener" dir="return"/>
14390 </method>
14391
14392 <method name="createAggregator">
14393 <desc>
14394 Creates a aggregator event source, collecting events from multiple sources.
14395 This way single listener can listen for events coming from multiple sources,
14396 using single blocking getEvent() of this aggregator.
14397 </desc>
14398 <param name="subordinates" type="IEventSource" dir="in" safearray="yes">
14399 <desc>
14400 Subordinate event source this one aggregatres.
14401 </desc>
14402 </param>
14403 <param name="result" type="IEventSource" dir="return"/>
14404 </method>
14405
14406 <method name="registerListener">
14407 <desc>
14408 Register an event listener.
14409
14410 <note>
14411 To avoid system overload, the VirtualBox server process checks if passive event
14412 listeners call <link to="IEventSource::getEvent"/> frequently enough. In the
14413 current implementation, if more than 500 pending events are detected for a passive
14414 event listener, it is forcefully unregistered by the system, and further
14415 <link to="#getEvent" /> calls will return @c VBOX_E_OBJECT_NOT_FOUND.
14416 </note>
14417 </desc>
14418 <param name="listener" type="IEventListener" dir="in">
14419 <desc>Listener to register.</desc>
14420 </param>
14421 <param name="interesting" type="VBoxEventType" dir="in" safearray="yes">
14422 <desc>
14423 Event types listener is interested in. One can use wildcards like -
14424 <link to="VBoxEventType_Any"/> to specify wildcards, matching more
14425 than one event.
14426 </desc>
14427 </param>
14428 <param name="active" type="boolean" dir="in">
14429 <desc>
14430 Which mode this listener is operating in.
14431 In active mode, <link to="IEventListener::handleEvent" /> is called directly.
14432 In passive mode, an internal event queue is created for this this IEventListener.
14433 For each event coming in, it is added to queues for all interested registered passive
14434 listeners. It is then up to the external code to call the listener's
14435 <link to="IEventListener::handleEvent" /> method. When done with an event, the
14436 external code must call <link to="#eventProcessed" />.
14437 </desc>
14438 </param>
14439 </method>
14440
14441 <method name="unregisterListener">
14442 <desc>
14443 Unregister an event listener. If listener is passive, and some waitable events are still
14444 in queue they are marked as processed automatically.
14445 </desc>
14446 <param name="listener" type="IEventListener" dir="in">
14447 <desc>Listener to unregister.</desc>
14448 </param>
14449 </method>
14450
14451 <method name="fireEvent">
14452 <desc>
14453 Fire an event for this source.
14454 </desc>
14455 <param name="event" type="IEvent" dir="in">
14456 <desc>Event to deliver.</desc>
14457 </param>
14458 <param name="timeout" type="long" dir="in">
14459 <desc>
14460 Maximum time to wait for event processing (if event is waitable), in ms;
14461 0 = no wait, -1 = indefinite wait.
14462 </desc>
14463 </param>
14464 <param name="result" type="boolean" dir="return">
14465 <desc>true if an event was delivered to all targets, or is non-waitable.</desc>
14466 </param>
14467 </method>
14468
14469 <method name="getEvent">
14470 <desc>
14471 Get events from this peer's event queue (for passive mode). Calling this method
14472 regularly is required for passive event listeners to avoid system overload;
14473 see <link to="IEventSource::registerListener" /> for details.
14474
14475 <result name="VBOX_E_OBJECT_NOT_FOUND">
14476 Listener is not registered, or autounregistered.
14477 </result>
14478 </desc>
14479 <param name="listener" type="IEventListener" dir="in">
14480 <desc>Which listener to get data for.</desc>
14481 </param>
14482 <param name="timeout" type="long" dir="in">
14483 <desc>
14484 Maximum time to wait for events, in ms;
14485 0 = no wait, -1 = indefinite wait.
14486 </desc>
14487 </param>
14488 <param name="event" type="IEvent" dir="return">
14489 <desc>Event retrieved, or null if none available.</desc>
14490 </param>
14491 </method>
14492
14493 <method name="eventProcessed">
14494 <desc>
14495 Must be called for waitable events after a particular listener finished its
14496 event processing. When all listeners of a particular event have called this
14497 method, the system will then call <link to="IEvent::setProcessed" />.
14498 </desc>
14499 <param name="listener" type="IEventListener" dir="in">
14500 <desc>Which listener processed event.</desc>
14501 </param>
14502 <param name="event" type="IEvent" dir="in">
14503 <desc>Which event.</desc>
14504 </param>
14505 </method>
14506
14507 </interface>
14508
14509 <interface
14510 name="IEventListener" extends="$unknown"
14511 uuid="67099191-32e7-4f6c-85ee-422304c71b90"
14512 wsmap="managed"
14513 >
14514 <desc>
14515 Event listener. An event listener can work in either active or passive mode, depending on the way
14516 it was registered.
14517 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
14518 </desc>
14519
14520 <method name="handleEvent">
14521 <desc>
14522 Handle event callback (called directly by IEventSource in active mode, or could be
14523 called by event processor thread in passive mode).
14524 </desc>
14525 <param name="event" type="IEvent" dir="in">
14526 <desc>Event available.</desc>
14527 </param>
14528 </method>
14529
14530 </interface>
14531
14532 <interface
14533 name="IEvent" extends="$unknown"
14534 uuid="0ca2adba-8f30-401b-a8cd-fe31dbe839c0"
14535 wsmap="managed"
14536 >
14537 <desc>
14538 Abstract parent interface for VirtualBox events. Actual events will typically implement
14539 a more specific interface which derives from this (see below).
14540
14541 <b>Introduction to VirtualBox events</b>
14542
14543 Generally speaking, an event (represented by this interface) signals that something
14544 happened, while an event listener (see <link to="IEventListener" />) represents an
14545 entity that is interested in certain events. In order for this to work with
14546 unidirectional protocols (i.e. web services), the concepts of passive and active
14547 listener are used.
14548
14549 Event consumers can register themselves as listeners, providing an array of
14550 events they are interested in (see <link to="IEventSource::registerListener" />).
14551 When an event triggers, the listener is notified about the event. The exact
14552 mechanism of the notification depends on whether the listener was registered as
14553 an active or passive listener:
14554
14555 <ul>
14556 <li>An active listener is very similar to a callback: it is a function invoked
14557 by the API. As opposed to the callbacks that were used in the API before
14558 VirtualBox 4.0 however, events are now objects with an interface hierarchy.
14559 </li>
14560
14561 <li>Passive listeners are somewhat trickier to implement, but do not require
14562 a client function to be callable, which is not an option with scripting
14563 languages or web service clients. Internally the <link to="IEventSource" />
14564 implementation maintains an event queue for each passive listener, and
14565 newly arrived events are put in this queue. When the listener calls
14566 <link to="IEventSource::getEvent"/>, first element from its internal event
14567 queue is returned. When the client completes processing of an event,
14568 the <link to="IEventSource::eventProcessed" /> function must be called,
14569 acknowledging that the event was processed. It supports implementing
14570 waitable events. On passive listener unregistration, all events from its
14571 queue are auto-acknowledged.
14572 </li>
14573 </ul>
14574
14575 Waitable events are useful in situations where the event generator wants to track
14576 delivery or a party wants to wait until all listeners have completed the event. A
14577 typical example would be a vetoable event (see <link to="IVetoEvent" />) where a
14578 listeners might veto a certain action, and thus the event producer has to make
14579 sure that all listeners have processed the event and not vetoed before taking
14580 the action.
14581
14582 A given event may have both passive and active listeners at the same time.
14583
14584 <b>Using events</b>
14585
14586 Any VirtualBox object capable of producing externally visible events provides an
14587 @c eventSource read-only attribute, which is of the type <link to="IEventSource" />.
14588 This event source object is notified by VirtualBox once something has happened, so
14589 consumers may register event listeners with this event source. To register a listener,
14590 an object implementing the <link to="IEventListener" /> interface must be provided.
14591 For active listeners, such an object is typically created by the consumer, while for
14592 passive listeners <link to="IEventSource::createListener" /> should be used. Please
14593 note that a listener created with @c createListener() must not be used as an active listener.
14594
14595 Once created, the listener must be registered to listen for the desired events
14596 (see <link to="IEventSource::registerListener" />), providing an array of
14597 <link to="VBoxEventType" /> enums. Those elements can either be the individual
14598 event IDs or wildcards matching multiple event IDs.
14599
14600 After registration, the callback's <link to="IEventListener::handleEvent" /> method is
14601 called automatically when the event is triggered, while passive listeners have to call
14602 <link to="IEventSource::getEvent" /> and <link to="IEventSource::eventProcessed" /> in
14603 an event processing loop.
14604
14605 The IEvent interface is an abstract parent interface for all such VirtualBox events
14606 coming in. As a result, the standard use pattern inside <link to="IEventListener::handleEvent" />
14607 or the event processing loop is to check the <link to="#type" /> attribute of the event and
14608 then cast to the appropriate specific interface using @c QueryInterface().
14609 </desc>
14610
14611 <attribute name="type" readonly="yes" type="VBoxEventType">
14612 <desc>
14613 Event type.
14614 </desc>
14615 </attribute>
14616
14617 <attribute name="source" readonly="yes" type="IEventSource">
14618 <desc>
14619 Source of this event.
14620 </desc>
14621 </attribute>
14622
14623 <attribute name="waitable" readonly="yes" type="boolean">
14624 <desc>
14625 If we can wait for this event being processed. If false, waitProcessed() returns immediately,
14626 and setProcessed() doesn't make sense. Non-waitable events are generally better performing,
14627 as no additional overhead associated with waitability imposed.
14628 Waitable events are needed when one need to be able to wait for particular event processed,
14629 for example for vetoable changes, or if event refers to some resource which need to be kept immutable
14630 until all consumers confirmed events.
14631 </desc>
14632 </attribute>
14633
14634 <method name="setProcessed">
14635 <desc>
14636 Internal method called by the system when all listeners of a particular event have called
14637 <link to="IEventSource::eventProcessed" />. This should not be called by client code.
14638 </desc>
14639 </method>
14640
14641 <method name="waitProcessed">
14642 <desc>
14643 Wait until time outs, or this event is processed. Event must be waitable for this operation to have
14644 described semantics, for non-waitable returns true immediately.
14645 </desc>
14646 <param name="timeout" type="long" dir="in">
14647 <desc>
14648 Maximum time to wait for event processeing, in ms;
14649 0 = no wait, -1 = indefinite wait.
14650 </desc>
14651 </param>
14652 <param name="result" type="boolean" dir="return">
14653 <desc>If this event was processed before timeout.</desc>
14654 </param>
14655 </method>
14656 </interface>
14657
14658
14659 <interface
14660 name="IReusableEvent" extends="IEvent"
14661 uuid="69bfb134-80f6-4266-8e20-16371f68fa25"
14662 wsmap="managed"
14663 >
14664 <desc>Base abstract interface for all reusable events.</desc>
14665
14666 <attribute name="generation" readonly="yes" type="unsigned long">
14667 <desc>Current generation of event, incremented on reuse.</desc>
14668 </attribute>
14669
14670 <method name="reuse">
14671 <desc>
14672 Marks an event as reused, increments 'generation', fields shall no
14673 longer be considered valid.
14674 </desc>
14675 </method>
14676 </interface>
14677
14678 <interface
14679 name="IMachineEvent" extends="IEvent"
14680 uuid="92ed7b1a-0d96-40ed-ae46-a564d484325e"
14681 wsmap="managed" id="MachineEvent"
14682 >
14683 <desc>Base abstract interface for all machine events.</desc>
14684
14685 <attribute name="machineId" readonly="yes" type="uuid" mod="string">
14686 <desc>ID of the machine this event relates to.</desc>
14687 </attribute>
14688
14689 </interface>
14690
14691 <interface
14692 name="IMachineStateChangedEvent" extends="IMachineEvent"
14693 uuid="5748F794-48DF-438D-85EB-98FFD70D18C9"
14694 wsmap="managed" autogen="VBoxEvent" id="OnMachineStateChanged"
14695 >
14696 <desc>Machine state change event.</desc>
14697
14698 <attribute name="state" readonly="yes" type="MachineState">
14699 <desc>New execution state.</desc>
14700 </attribute>
14701 </interface>
14702
14703 <interface
14704 name="IMachineDataChangedEvent" extends="IMachineEvent"
14705 uuid="6AA70A6C-0DCA-4810-8C5C-457B278E3D49"
14706 wsmap="managed" autogen="VBoxEvent" id="OnMachineDataChanged"
14707 >
14708 <desc>
14709 Any of the settings of the given machine has changed.
14710 </desc>
14711 </interface>
14712
14713 <interface
14714 name="IMediumRegisteredEvent" extends="IEvent"
14715 uuid="53fac49a-b7f1-4a5a-a4ef-a11dd9c2a458"
14716 wsmap="managed" autogen="VBoxEvent" id="OnMediumRegistered"
14717 >
14718 <desc>
14719 The given medium was registered or unregistered
14720 within this VirtualBox installation.
14721 </desc>
14722
14723 <attribute name="mediumId" readonly="yes" type="uuid" mod="string">
14724 <desc>ID of the medium this event relates to.</desc>
14725 </attribute>
14726
14727 <attribute name="mediumType" readonly="yes" type="DeviceType">
14728 <desc>Type of the medium this event relates to.</desc>
14729 </attribute>
14730
14731 <attribute name="registered" type="boolean" readonly="yes">
14732 <desc>
14733 If @c true, the medium was registered, otherwise it was
14734 unregistered.
14735 </desc>
14736 </attribute>
14737 </interface>
14738
14739 <interface
14740 name="IMachineRegisteredEvent" extends="IMachineEvent"
14741 uuid="c354a762-3ff2-4f2e-8f09-07382ee25088"
14742 wsmap="managed" autogen="VBoxEvent" id="OnMachineRegistered"
14743 >
14744 <desc>
14745 The given machine was registered or unregistered
14746 within this VirtualBox installation.
14747 </desc>
14748
14749 <attribute name="registered" type="boolean" readonly="yes">
14750 <desc>
14751 If @c true, the machine was registered, otherwise it was
14752 unregistered.
14753 </desc>
14754 </attribute>
14755 </interface>
14756
14757 <interface
14758 name="ISessionStateChangedEvent" extends="IMachineEvent"
14759 uuid="714a3eef-799a-4489-86cd-fe8e45b2ff8e"
14760 wsmap="managed" autogen="VBoxEvent" id="OnSessionStateChanged"
14761 >
14762 <desc>
14763 The state of the session for the given machine was changed.
14764 <see>IMachine::sessionState</see>
14765 </desc>
14766
14767 <attribute name="state" type="SessionState" readonly="yes">
14768 <desc>
14769 New session state.
14770 </desc>
14771 </attribute>
14772 </interface>
14773
14774 <interface
14775 name="IGuestPropertyChangedEvent" extends="IMachineEvent"
14776 uuid="3f63597a-26f1-4edb-8dd2-6bddd0912368"
14777 wsmap="managed" autogen="VBoxEvent" id="OnGuestPropertyChanged"
14778 >
14779 <desc>
14780 Notification when a guest property has changed.
14781 </desc>
14782
14783 <attribute name="name" readonly="yes" type="wstring">
14784 <desc>
14785 The name of the property that has changed.
14786 </desc>
14787 </attribute>
14788
14789 <attribute name="value" readonly="yes" type="wstring">
14790 <desc>
14791 The new property value.
14792 </desc>
14793 </attribute>
14794
14795 <attribute name="flags" readonly="yes" type="wstring">
14796 <desc>
14797 The new property flags.
14798 </desc>
14799 </attribute>
14800
14801 </interface>
14802
14803 <interface
14804 name="ISnapshotEvent" extends="IMachineEvent"
14805 uuid="21637b0e-34b8-42d3-acfb-7e96daf77c22"
14806 wsmap="managed" id="SnapshotEvent"
14807 >
14808 <desc>Base interface for all snapshot events.</desc>
14809
14810 <attribute name="snapshotId" readonly="yes" type="uuid" mod="string">
14811 <desc>ID of the snapshot this event relates to.</desc>
14812 </attribute>
14813
14814 </interface>
14815
14816 <interface
14817 name="ISnapshotTakenEvent" extends="ISnapshotEvent"
14818 uuid="d27c0b3d-6038-422c-b45e-6d4a0503d9f1"
14819 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotTaken"
14820 >
14821 <desc>
14822 A new snapshot of the machine has been taken.
14823 <see>ISnapshot</see>
14824 </desc>
14825 </interface>
14826
14827 <interface
14828 name="ISnapshotDeletedEvent" extends="ISnapshotEvent"
14829 uuid="c48f3401-4a9e-43f4-b7a7-54bd285e22f4"
14830 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotDeleted"
14831 >
14832 <desc>
14833 Snapshot of the given machine has been deleted.
14834
14835 <note>
14836 This notification is delivered <b>after</b> the snapshot
14837 object has been uninitialized on the server (so that any
14838 attempt to call its methods will return an error).
14839 </note>
14840
14841 <see>ISnapshot</see>
14842 </desc>
14843 </interface>
14844
14845 <interface
14846 name="ISnapshotChangedEvent" extends="ISnapshotEvent"
14847 uuid="07541941-8079-447a-a33e-47a69c7980db"
14848 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotChanged"
14849 >
14850 <desc>
14851 Snapshot properties (name and/or description) have been changed.
14852 <see>ISnapshot</see>
14853 </desc>
14854 </interface>
14855
14856 <interface
14857 name="IMousePointerShapeChangedEvent" extends="IEvent"
14858 uuid="a6dcf6e8-416b-4181-8c4a-45ec95177aef"
14859 wsmap="managed" autogen="VBoxEvent" id="OnMousePointerShapeChanged"
14860 >
14861 <desc>
14862 Notification when the guest mouse pointer shape has
14863 changed. The new shape data is given.
14864 </desc>
14865
14866 <attribute name="visible" type="boolean" readonly="yes">
14867 <desc>
14868 Flag whether the pointer is visible.
14869 </desc>
14870 </attribute>
14871 <attribute name="alpha" type="boolean" readonly="yes">
14872 <desc>
14873 Flag whether the pointer has an alpha channel.
14874 </desc>
14875 </attribute>
14876 <attribute name="xhot" type="unsigned long" readonly="yes">
14877 <desc>
14878 The pointer hot spot X coordinate.
14879 </desc>
14880 </attribute>
14881 <attribute name="yhot" type="unsigned long" readonly="yes">
14882 <desc>
14883 The pointer hot spot Y coordinate.
14884 </desc>
14885 </attribute>
14886 <attribute name="width" type="unsigned long" readonly="yes">
14887 <desc>
14888 Width of the pointer shape in pixels.
14889 </desc>
14890 </attribute>
14891 <attribute name="height" type="unsigned long" readonly="yes">
14892 <desc>
14893 Height of the pointer shape in pixels.
14894 </desc>
14895 </attribute>
14896 <attribute name="shape" type="octet" safearray="yes" readonly="yes">
14897 <desc>
14898 Shape buffer arrays.
14899
14900 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
14901 followed by a 32-bpp XOR (color) mask.
14902
14903 For pointers without alpha channel the XOR mask pixels are 32
14904 bit values: (lsb)BGR0(msb). For pointers with alpha channel
14905 the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
14906
14907 An AND mask is used for pointers with alpha channel, so if the
14908 callback does not support alpha, the pointer could be
14909 displayed as a normal color pointer.
14910
14911 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
14912 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
14913 height</tt>. The padding bits at the end of each scanline are
14914 undefined.
14915
14916 The XOR mask follows the AND mask on the next 4-byte aligned
14917 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
14918 Bytes in the gap between the AND and the XOR mask are undefined.
14919 The XOR mask scanlines have no gap between them and the size of
14920 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
14921
14922 <note>
14923 If @a shape is 0, only the pointer visibility is changed.
14924 </note>
14925 </desc>
14926 </attribute>
14927 </interface>
14928
14929 <interface
14930 name="IMouseCapabilityChangedEvent" extends="IEvent"
14931 uuid="d633ad48-820c-4207-b46c-6bd3596640d5"
14932 wsmap="managed" autogen="VBoxEvent" id="OnMouseCapabilityChanged"
14933 >
14934 <desc>
14935 Notification when the mouse capabilities reported by the
14936 guest have changed. The new capabilities are passed.
14937 </desc>
14938 <attribute name="supportsAbsolute" type="boolean" readonly="yes">
14939 <desc>
14940 Supports absolute coordinates.
14941 </desc>
14942 </attribute>
14943 <attribute name="supportsRelative" type="boolean" readonly="yes">
14944 <desc>
14945 Supports relative coordinates.
14946 </desc>
14947 </attribute>
14948 <attribute name="needsHostCursor" type="boolean" readonly="yes">
14949 <desc>
14950 If host cursor is needed.
14951 </desc>
14952 </attribute>
14953 </interface>
14954
14955 <interface
14956 name="IKeyboardLedsChangedEvent" extends="IEvent"
14957 uuid="6DDEF35E-4737-457B-99FC-BC52C851A44F"
14958 wsmap="managed" autogen="VBoxEvent" id="OnKeyboardLedsChanged"
14959 >
14960 <desc>
14961 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
14962 to alter the state of the keyboard LEDs.
14963 </desc>
14964 <attribute name="numLock" type="boolean" readonly="yes">
14965 <desc>
14966 NumLock status.
14967 </desc>
14968 </attribute>
14969 <attribute name="capsLock" type="boolean" readonly="yes">
14970 <desc>
14971 CapsLock status.
14972 </desc>
14973 </attribute>
14974 <attribute name="scrollLock" type="boolean" readonly="yes">
14975 <desc>
14976 ScrollLock status.
14977 </desc>
14978 </attribute>
14979 </interface>
14980
14981 <interface
14982 name="IStateChangedEvent" extends="IEvent"
14983 uuid="4376693C-CF37-453B-9289-3B0F521CAF27"
14984 wsmap="managed" autogen="VBoxEvent" id="OnStateChanged"
14985 >
14986 <desc>
14987 Notification when the execution state of the machine has changed.
14988 The new state is given.
14989 </desc>
14990 <attribute name="state" type="MachineState" readonly="yes">
14991 <desc>
14992 New machine state.
14993 </desc>
14994 </attribute>
14995 </interface>
14996
14997 <interface
14998 name="IAdditionsStateChangedEvent" extends="IEvent"
14999 uuid="D70F7915-DA7C-44C8-A7AC-9F173490446A"
15000 wsmap="managed" autogen="VBoxEvent" id="OnAdditionsStateChanged"
15001 >
15002 <desc>
15003 Notification when a Guest Additions property changes.
15004 Interested callees should query IGuest attributes to
15005 find out what has changed.
15006 </desc>
15007 </interface>
15008
15009 <interface
15010 name="INetworkAdapterChangedEvent" extends="IEvent"
15011 uuid="08889892-1EC6-4883-801D-77F56CFD0103"
15012 wsmap="managed" autogen="VBoxEvent" id="OnNetworkAdapterChanged"
15013 >
15014 <desc>
15015 Notification when a property of one of the
15016 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
15017 changes. Interested callees should use INetworkAdapter methods and
15018 attributes to find out what has changed.
15019 </desc>
15020 <attribute name="networkAdapter" type="INetworkAdapter" readonly="yes">
15021 <desc>
15022 Network adapter that is subject to change.
15023 </desc>
15024 </attribute>
15025 </interface>
15026
15027 <interface
15028 name="ISerialPortChangedEvent" extends="IEvent"
15029 uuid="3BA329DC-659C-488B-835C-4ECA7AE71C6C"
15030 wsmap="managed" autogen="VBoxEvent" id="OnSerialPortChanged"
15031 >
15032 <desc>
15033 Notification when a property of one of the
15034 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
15035 Interested callees should use ISerialPort methods and attributes
15036 to find out what has changed.
15037 </desc>
15038 <attribute name="serialPort" type="ISerialPort" readonly="yes">
15039 <desc>
15040 Serial port that is subject to change.
15041 </desc>
15042 </attribute>
15043 </interface>
15044
15045 <interface
15046 name="IParallelPortChangedEvent" extends="IEvent"
15047 uuid="813C99FC-9849-4F47-813E-24A75DC85615"
15048 wsmap="managed" autogen="VBoxEvent" id="OnParallelPortChanged"
15049 >
15050 <desc>
15051 Notification when a property of one of the
15052 virtual <link to="IMachine::getParallelPort">parallel ports</link>
15053 changes. Interested callees should use ISerialPort methods and
15054 attributes to find out what has changed.
15055 </desc>
15056 <attribute name="parallelPort" type="IParallelPort" readonly="yes">
15057 <desc>
15058 Parallel port that is subject to change.
15059 </desc>
15060 </attribute>
15061 </interface>
15062
15063 <interface
15064 name="IStorageControllerChangedEvent" extends="IEvent"
15065 uuid="715212BF-DA59-426E-8230-3831FAA52C56"
15066 wsmap="managed" autogen="VBoxEvent" id="OnStorageControllerChanged"
15067 >
15068 <desc>
15069 Notification when a
15070 <link to="IMachine::mediumAttachments">medium attachment</link>
15071 changes.
15072 </desc>
15073 </interface>
15074
15075 <interface
15076 name="IMediumChangedEvent" extends="IEvent"
15077 uuid="0FE2DA40-5637-472A-9736-72019EABD7DE"
15078 wsmap="managed" autogen="VBoxEvent" id="OnMediumChanged"
15079 >
15080 <desc>
15081 Notification when a
15082 <link to="IMachine::mediumAttachments">medium attachment</link>
15083 changes.
15084 </desc>
15085 <attribute name="mediumAttachment" type="IMediumAttachment" readonly="yes">
15086 <desc>
15087 Medium attachment that is subject to change.
15088 </desc>
15089 </attribute>
15090 </interface>
15091
15092 <interface
15093 name="ICPUChangedEvent" extends="IEvent"
15094 uuid="D0F0BECC-EE17-4D17-A8CC-383B0EB55E9D"
15095 wsmap="managed" autogen="VBoxEvent" id="OnCPUChanged"
15096 >
15097 <desc>
15098 Notification when a CPU changes.
15099 </desc>
15100 <attribute name="cpu" type="unsigned long" readonly="yes">
15101 <desc>
15102 The CPU which changed.
15103 </desc>
15104 </attribute>
15105 <attribute name="add" type="boolean" readonly="yes">
15106 <desc>
15107 Flag whether the CPU was added or removed.
15108 </desc>
15109 </attribute>
15110 </interface>
15111
15112 <interface
15113 name="ICPUExecutionCapChangedEvent" extends="IEvent"
15114 uuid="dfa7e4f5-b4a4-44ce-85a8-127ac5eb59dc"
15115 wsmap="managed" autogen="VBoxEvent" id="OnCPUExecutionCapChanged"
15116 >
15117 <desc>
15118 Notification when the CPU execution cap changes.
15119 </desc>
15120 <attribute name="executionCap" type="unsigned long" readonly="yes">
15121 <desc>
15122 The new CPU execution cap value. (1-100)
15123 </desc>
15124 </attribute>
15125 </interface>
15126
15127 <interface
15128 name="IGuestKeyboardEvent" extends="IEvent"
15129 uuid="88394258-7006-40d4-b339-472ee3801844"
15130 wsmap="managed" autogen="VBoxEvent" id="OnGuestKeyboardEvent"
15131 >
15132 <desc>
15133 Notification when guest keyboard event happens.
15134 </desc>
15135 <attribute name="scancodes" type="long" safearray="yes" readonly="yes">
15136 <desc>
15137 Array of scancodes.
15138 </desc>
15139 </attribute>
15140 </interface>
15141
15142 <interface
15143 name="IGuestMouseEvent" extends="IReusableEvent"
15144 uuid="1f85d35c-c524-40ff-8e98-307000df0992"
15145 wsmap="managed" autogen="VBoxEvent" id="OnGuestMouseEvent"
15146 >
15147 <desc>
15148 Notification when guest mouse event happens.
15149 </desc>
15150
15151 <attribute name="absolute" type="boolean" readonly="yes">
15152 <desc>
15153 If this event is relative or absolute.
15154 </desc>
15155 </attribute>
15156
15157 <attribute name="x" type="long" readonly="yes">
15158 <desc>
15159 New X position, or X delta.
15160 </desc>
15161 </attribute>
15162
15163 <attribute name="y" type="long" readonly="yes">
15164 <desc>
15165 New Y position, or Y delta.
15166 </desc>
15167 </attribute>
15168
15169 <attribute name="z" type="long" readonly="yes">
15170 <desc>
15171 Z delta.
15172 </desc>
15173 </attribute>
15174
15175 <attribute name="w" type="long" readonly="yes">
15176 <desc>
15177 W delta.
15178 </desc>
15179 </attribute>
15180
15181 <attribute name="buttons" type="long" readonly="yes">
15182 <desc>
15183 Button state bitmask.
15184 </desc>
15185 </attribute>
15186
15187 </interface>
15188
15189
15190 <interface
15191 name="IVRDEServerChangedEvent" extends="IEvent"
15192 uuid="a06fd66a-3188-4c8c-8756-1395e8cb691c"
15193 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerChanged"
15194 >
15195 <desc>
15196 Notification when a property of the
15197 <link to="IMachine::VRDEServer">VRDE server</link> changes.
15198 Interested callees should use IVRDEServer methods and attributes to
15199 find out what has changed.
15200 </desc>
15201 </interface>
15202
15203 <interface
15204 name="IVRDEServerInfoChangedEvent" extends="IEvent"
15205 uuid="dd6a1080-e1b7-4339-a549-f0878115596e"
15206 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerInfoChanged"
15207 >
15208 <desc>
15209 Notification when the status of the VRDE server changes. Interested callees
15210 should use <link to="IConsole::VRDEServerInfo">IVRDEServerInfo</link>
15211 attributes to find out what is the current status.
15212 </desc>
15213 </interface>
15214
15215 <interface
15216 name="IUSBControllerChangedEvent" extends="IEvent"
15217 uuid="93BADC0C-61D9-4940-A084-E6BB29AF3D83"
15218 wsmap="managed" autogen="VBoxEvent" id="OnUSBControllerChanged"
15219 >
15220 <desc>
15221 Notification when a property of the virtual
15222 <link to="IMachine::USBController">USB controller</link> changes.
15223 Interested callees should use IUSBController methods and attributes to
15224 find out what has changed.
15225 </desc>
15226 </interface>
15227
15228 <interface
15229 name="IUSBDeviceStateChangedEvent" extends="IEvent"
15230 uuid="806da61b-6679-422a-b629-51b06b0c6d93"
15231 wsmap="managed" autogen="VBoxEvent" id="OnUSBDeviceStateChanged"
15232 >
15233 <desc>
15234 Notification when a USB device is attached to or detached from
15235 the virtual USB controller.
15236
15237 This notification is sent as a result of the indirect
15238 request to attach the device because it matches one of the
15239 machine USB filters, or as a result of the direct request
15240 issued by <link to="IConsole::attachUSBDevice"/> or
15241 <link to="IConsole::detachUSBDevice"/>.
15242
15243 This notification is sent in case of both a succeeded and a
15244 failed request completion. When the request succeeds, the
15245 @a error parameter is @c null, and the given device has been
15246 already added to (when @a attached is @c true) or removed from
15247 (when @a attached is @c false) the collection represented by
15248 <link to="IConsole::USBDevices"/>. On failure, the collection
15249 doesn't change and the @a error parameter represents the error
15250 message describing the failure.
15251 </desc>
15252 <attribute name="device" type="IUSBDevice" readonly="yes">
15253 <desc>
15254 Device that is subject to state change.
15255 </desc>
15256 </attribute>
15257 <attribute name="attached" type="boolean" readonly="yes">
15258 <desc>
15259 @c true if the device was attached and @c false otherwise.
15260 </desc>
15261 </attribute>
15262 <attribute name="error" type="IVirtualBoxErrorInfo" readonly="yes">
15263 <desc>
15264 @c null on success or an error message object on failure.
15265 </desc>
15266 </attribute>
15267 </interface>
15268
15269 <interface
15270 name="ISharedFolderChangedEvent" extends="IEvent"
15271 uuid="B66349B5-3534-4239-B2DE-8E1535D94C0B"
15272 wsmap="managed" autogen="VBoxEvent" id="OnSharedFolderChanged"
15273 >
15274 <desc>
15275 Notification when a shared folder is added or removed.
15276 The @a scope argument defines one of three scopes:
15277 <link to="IVirtualBox::sharedFolders">global shared folders</link>
15278 (<link to="Scope_Global">Global</link>),
15279 <link to="IMachine::sharedFolders">permanent shared folders</link> of
15280 the machine (<link to="Scope_Machine">Machine</link>) or <link
15281 to="IConsole::sharedFolders">transient shared folders</link> of the
15282 machine (<link to="Scope_Session">Session</link>). Interested callees
15283 should use query the corresponding collections to find out what has
15284 changed.
15285 </desc>
15286 <attribute name="scope" type="Scope" readonly="yes">
15287 <desc>
15288 Scope of the notification.
15289 </desc>
15290 </attribute>
15291 </interface>
15292
15293 <interface
15294 name="IRuntimeErrorEvent" extends="IEvent"
15295 uuid="883DD18B-0721-4CDE-867C-1A82ABAF914C"
15296 wsmap="managed" autogen="VBoxEvent" id="OnRuntimeError"
15297 >
15298 <desc>
15299 Notification when an error happens during the virtual
15300 machine execution.
15301
15302 There are three kinds of runtime errors:
15303 <ul>
15304 <li><i>fatal</i></li>
15305 <li><i>non-fatal with retry</i></li>
15306 <li><i>non-fatal warnings</i></li>
15307 </ul>
15308
15309 <b>Fatal</b> errors are indicated by the @a fatal parameter set
15310 to @c true. In case of fatal errors, the virtual machine
15311 execution is always paused before calling this notification, and
15312 the notification handler is supposed either to immediately save
15313 the virtual machine state using <link to="IConsole::saveState"/>
15314 or power it off using <link to="IConsole::powerDown"/>.
15315 Resuming the execution can lead to unpredictable results.
15316
15317 <b>Non-fatal</b> errors and warnings are indicated by the
15318 @a fatal parameter set to @c false. If the virtual machine
15319 is in the Paused state by the time the error notification is
15320 received, it means that the user can <i>try to resume</i> the machine
15321 execution after attempting to solve the problem that caused the
15322 error. In this case, the notification handler is supposed
15323 to show an appropriate message to the user (depending on the
15324 value of the @a id parameter) that offers several actions such
15325 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
15326 wants to retry, the notification handler should continue
15327 the machine execution using the <link to="IConsole::resume"/>
15328 call. If the machine execution is not Paused during this
15329 notification, then it means this notification is a <i>warning</i>
15330 (for example, about a fatal condition that can happen very soon);
15331 no immediate action is required from the user, the machine
15332 continues its normal execution.
15333
15334 Note that in either case the notification handler
15335 <b>must not</b> perform any action directly on a thread
15336 where this notification is called. Everything it is allowed to
15337 do is to post a message to another thread that will then talk
15338 to the user and take the corresponding action.
15339
15340 Currently, the following error identifiers are known:
15341 <ul>
15342 <li><tt>"HostMemoryLow"</tt></li>
15343 <li><tt>"HostAudioNotResponding"</tt></li>
15344 <li><tt>"VDIStorageFull"</tt></li>
15345 <li><tt>"3DSupportIncompatibleAdditions"</tt></li>
15346 </ul>
15347 </desc>
15348 <attribute name="fatal" type="boolean" readonly="yes">
15349 <desc>
15350 Whether the error is fatal or not.
15351 </desc>
15352 </attribute>
15353 <attribute name="id" type="wstring" readonly="yes">
15354 <desc>
15355 Error identifier.
15356 </desc>
15357 </attribute>
15358 <attribute name="message" type="wstring" readonly="yes">
15359 <desc>
15360 Optional error message.
15361 </desc>
15362 </attribute>
15363 </interface>
15364
15365
15366 <interface
15367 name="IEventSourceChangedEvent" extends="IEvent"
15368 uuid="e7932cb8-f6d4-4ab6-9cbf-558eb8959a6a"
15369 waitable="yes"
15370 wsmap="managed" autogen="VBoxEvent" id="OnEventSourceChanged"
15371 >
15372 <desc>
15373 Notification when an event source state changes (listener added or removed).
15374 </desc>
15375
15376 <attribute name="listener" type="IEventListener" readonly="yes">
15377 <desc>
15378 Event listener which has changed.
15379 </desc>
15380 </attribute>
15381
15382 <attribute name="add" type="boolean" readonly="yes">
15383 <desc>
15384 Flag whether listener was added or removed.
15385 </desc>
15386 </attribute>
15387 </interface>
15388
15389 <interface
15390 name="IExtraDataChangedEvent" extends="IEvent"
15391 uuid="024F00CE-6E0B-492A-A8D0-968472A94DC7"
15392 wsmap="managed" autogen="VBoxEvent" id="OnExtraDataChanged"
15393 >
15394 <desc>
15395 Notification when machine specific or global extra data
15396 has changed.
15397 </desc>
15398 <attribute name="machineId" type="uuid" mod="string" readonly="yes">
15399 <desc>
15400 ID of the machine this event relates to.
15401 Null for global extra data changes.
15402 </desc>
15403 </attribute>
15404 <attribute name="key" type="wstring" readonly="yes">
15405 <desc>
15406 Extra data key that has changed.
15407 </desc>
15408 </attribute>
15409 <attribute name="value" type="wstring" readonly="yes">
15410 <desc>
15411 Extra data value for the given key.
15412 </desc>
15413 </attribute>
15414 </interface>
15415
15416 <interface
15417 name="IVetoEvent" extends="IEvent"
15418 uuid="9a1a4130-69fe-472f-ac10-c6fa25d75007"
15419 wsmap="managed"
15420 >
15421 <desc>Base abstract interface for veto events.</desc>
15422
15423 <method name="addVeto">
15424 <desc>
15425 Adds a veto on this event.
15426 </desc>
15427 <param name="reason" type="wstring" dir="in">
15428 <desc>
15429 Reason for veto, could be null or empty string.
15430 </desc>
15431 </param>
15432 </method>
15433
15434 <method name="isVetoed">
15435 <desc>
15436 If this event was vetoed.
15437 </desc>
15438 <param name="result" type="boolean" dir="return">
15439 <desc>
15440 Reason for veto.
15441 </desc>
15442 </param>
15443 </method>
15444
15445 <method name="getVetos">
15446 <desc>
15447 Current veto reason list, if size is 0 - no veto.
15448 </desc>
15449 <param name="result" type="wstring" dir="return" safearray="yes">
15450 <desc>
15451 Array of reasons for veto provided by different event handlers.
15452 </desc>
15453 </param>
15454 </method>
15455
15456 </interface>
15457
15458 <interface
15459 name="IExtraDataCanChangeEvent" extends="IVetoEvent"
15460 uuid="245d88bd-800a-40f8-87a6-170d02249a55"
15461 wsmap="managed" autogen="VBoxEvent" id="OnExtraDataCanChange"
15462 waitable="true"
15463 >
15464 <desc>
15465 Notification when someone tries to change extra data for
15466 either the given machine or (if @c null) global extra data.
15467 This gives the chance to veto against changes.
15468 </desc>
15469 <attribute name="machineId" type="uuid" mod="string" readonly="yes">
15470 <desc>
15471 ID of the machine this event relates to.
15472 Null for global extra data changes.
15473 </desc>
15474 </attribute>
15475 <attribute name="key" type="wstring" readonly="yes">
15476 <desc>
15477 Extra data key that has changed.
15478 </desc>
15479 </attribute>
15480 <attribute name="value" type="wstring" readonly="yes">
15481 <desc>
15482 Extra data value for the given key.
15483 </desc>
15484 </attribute>
15485 </interface>
15486
15487 <interface
15488 name="ICanShowWindowEvent" extends="IVetoEvent"
15489 uuid="adf292b0-92c9-4a77-9d35-e058b39fe0b9"
15490 wsmap="managed" autogen="VBoxEvent" id="OnCanShowWindow"
15491 waitable="true"
15492 >
15493 <desc>
15494 Notification when a call to
15495 <link to="IMachine::canShowConsoleWindow"/> is made by a
15496 front-end to check if a subsequent call to
15497 <link to="IMachine::showConsoleWindow"/> can succeed.
15498
15499 The callee should give an answer appropriate to the current
15500 machine state using event veto. This answer must
15501 remain valid at least until the next
15502 <link to="IConsole::state">machine state</link> change.
15503 </desc>
15504 </interface>
15505
15506 <interface
15507 name="IShowWindowEvent" extends="IEvent"
15508 uuid="B0A0904D-2F05-4D28-855F-488F96BAD2B2"
15509 wsmap="managed" autogen="VBoxEvent" id="OnShowWindow"
15510 waitable="true"
15511 >
15512 <desc>
15513 Notification when a call to
15514 <link to="IMachine::showConsoleWindow"/>
15515 requests the console window to be activated and brought to
15516 foreground on the desktop of the host PC.
15517
15518 This notification should cause the VM console process to
15519 perform the requested action as described above. If it is
15520 impossible to do it at a time of this notification, this
15521 method should return a failure.
15522
15523 Note that many modern window managers on many platforms
15524 implement some sort of focus stealing prevention logic, so
15525 that it may be impossible to activate a window without the
15526 help of the currently active application (which is supposedly
15527 an initiator of this notification). In this case, this method
15528 must return a non-zero identifier that represents the
15529 top-level window of the VM console process. The caller, if it
15530 represents a currently active process, is responsible to use
15531 this identifier (in a platform-dependent manner) to perform
15532 actual window activation.
15533
15534 This method must set @a winId to zero if it has performed all
15535 actions necessary to complete the request and the console
15536 window is now active and in foreground, to indicate that no
15537 further action is required on the caller's side.
15538 </desc>
15539 <attribute name="winId" type="long long">
15540 <desc>
15541 Platform-dependent identifier of the top-level VM console
15542 window, or zero if this method has performed all actions
15543 necessary to implement the <i>show window</i> semantics for
15544 the given platform and/or this VirtualBox front-end.
15545 </desc>
15546 </attribute>
15547 </interface>
15548
15549 <module name="VBoxSVC" context="LocalServer">
15550 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
15551 namespace="virtualbox.org">
15552 <interface name="IVirtualBox" default="yes"/>
15553 </class>
15554 </module>
15555
15556 <module name="VBoxC" context="InprocServer" threadingModel="Free">
15557 <class name="Session" uuid="3C02F46D-C9D2-4F11-A384-53F0CF917214"
15558 namespace="virtualbox.org">
15559 <interface name="ISession" default="yes"/>
15560 </class>
15561
15562 <class name="Console" uuid="577230FF-164F-4CAC-8548-312D8275A4A7"
15563 namespace="virtualbox.org">
15564 <interface name="IConsole" default="yes"/>
15565 </class>
15566 </module>
15567
15568</library>
15569
15570</idl>
15571
15572<!-- vim: set shiftwidth=2 tabstop=2 expandtab: -->
Note: See TracBrowser for help on using the repository browser.

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