VirtualBox

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

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

VirtualBox.xidl: doc build fix.

  • Property svn:eol-style set to native
File size: 575.5 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="d2de270c-1d4b-4c9e-843f-bbb9b47269ff"
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 must be fully qualified.
1670 The file must exist and be a valid machine XML settings file
1671 whose contents will be used to construct the machine object.
1672
1673 <result name="VBOX_E_FILE_ERROR">
1674 Settings file name invalid, not found or sharing violation.
1675 </result>
1676 </desc>
1677 <param name="settingsFile" type="wstring" dir="in">
1678 <desc>
1679 Name of the machine settings file.
1680 </desc>
1681 </param>
1682 <param name="machine" type="IMachine" dir="return">
1683 <desc>Opened machine object.</desc>
1684 </param>
1685 <note>
1686 <link to="IMachine::settingsModified"/> will return
1687 @c false for the created machine, until any of machine settings
1688 are changed.
1689 </note>
1690 </method>
1691
1692 <method name="registerMachine">
1693 <desc>
1694
1695 Registers the machine previously created using
1696 <link to="#createMachine"/> or opened using
1697 <link to="#openMachine"/> within this VirtualBox installation. After
1698 successful method invocation, the
1699 <link to="IMachineRegisteredEvent"/> event is fired.
1700
1701 <note>
1702 This method implicitly calls <link to="IMachine::saveSettings"/>
1703 to save all current machine settings before registering it.
1704 </note>
1705
1706 <result name="VBOX_E_OBJECT_NOT_FOUND">
1707 No matching virtual machine found.
1708 </result>
1709 <result name="VBOX_E_INVALID_OBJECT_STATE">
1710 Virtual machine was not created within this VirtualBox instance.
1711 </result>
1712
1713 </desc>
1714 <param name="machine" type="IMachine" dir="in"/>
1715 </method>
1716
1717 <method name="findMachine">
1718 <desc>
1719 Attempts to find a virtual machine given its name or UUID.
1720
1721 <note>Inaccessible machines cannot be found by name, only by UUID, because their name
1722 cannot safely be determined.</note>
1723
1724 <result name="VBOX_E_OBJECT_NOT_FOUND">
1725 Could not find registered machine matching @a nameOrId.
1726 </result>
1727
1728 </desc>
1729 <param name="nameOrId" type="wstring" dir="in">
1730 <desc>What to search for. This can either be the UUID or the name of a virtual machine.</desc>
1731 </param>
1732 <param name="machine" type="IMachine" dir="return">
1733 <desc>Machine object, if found.</desc>
1734 </param>
1735 </method>
1736
1737 <method name="createAppliance">
1738 <desc>
1739 Creates a new appliance object, which represents an appliance in the Open Virtual Machine
1740 Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
1741 machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
1742 </desc>
1743 <param name="appliance" type="IAppliance" dir="return">
1744 <desc>New appliance.</desc>
1745 </param>
1746 </method>
1747
1748 <method name="createHardDisk">
1749 <desc>
1750 Creates a new base medium object that will use the given storage
1751 format and location for medium data.
1752
1753 Note that the actual storage unit is not created by this method. In
1754 order to do it, and before you are able to attach the created medium
1755 to virtual machines, you must call one of the following methods to
1756 allocate a format-specific storage unit at the specified location:
1757 <ul>
1758 <li><link to="IMedium::createBaseStorage"/></li>
1759 <li><link to="IMedium::createDiffStorage"/></li>
1760 </ul>
1761
1762 Some medium attributes, such as <link to="IMedium::id"/>, may
1763 remain uninitialized until the medium storage unit is successfully
1764 created by one of the above methods.
1765
1766 After the storage unit is successfully created, it will be
1767 accessible through the <link to="#findMedium"/> method and can
1768 be found in the <link to="#hardDisks"/> array.
1769
1770 The list of all storage formats supported by this VirtualBox
1771 installation can be obtained using
1772 <link to="ISystemProperties::mediumFormats"/>. If the @a format
1773 attribute is empty or @c null then the default storage format
1774 specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
1775 be used for creating a storage unit of the medium.
1776
1777 Note that the format of the location string is storage format specific.
1778 See <link to="IMedium::location"/> and IMedium for more details.
1779
1780 <result name="VBOX_E_OBJECT_NOT_FOUND">
1781 @a format identifier is invalid. See
1782 <link to="ISystemProperties::mediumFormats"/>.
1783 </result>
1784 <result name="VBOX_E_FILE_ERROR">
1785 @a location is a not valid file name (for file-based formats only).
1786 </result>
1787 </desc>
1788 <param name="format" type="wstring" dir="in">
1789 <desc>
1790 Identifier of the storage format to use for the new medium.
1791 </desc>
1792 </param>
1793 <param name="location" type="wstring" dir="in">
1794 <desc>
1795 Location of the storage unit for the new medium.
1796 </desc>
1797 </param>
1798 <param name="medium" type="IMedium" dir="return">
1799 <desc>Created medium object.</desc>
1800 </param>
1801 </method>
1802
1803 <method name="openMedium">
1804 <desc>
1805 Opens a medium from an existing storage location.
1806
1807 Once a medium has been opened, it can be passed to other VirtualBox
1808 methods, in particular to <link to="IMachine::attachDevice" />.
1809
1810 Depending on the given device type, the file at the storage location
1811 must be in one of the media formats understood by VirtualBox:
1812
1813 <ul>
1814 <li>With a "HardDisk" device type, the file must be a hard disk image
1815 in one of the formats supported by VirtualBox (see
1816 <link to="ISystemProperties::mediumFormats" />).
1817 After this method succeeds, if the medium is a base medium, it
1818 will be added to the <link to="#hardDisks"/> array attribute. </li>
1819 <li>With a "DVD" device type, the file must be an ISO 9960 CD/DVD image.
1820 After this method succeeds, the medium will be added to the
1821 <link to="#DVDImages"/> array attribute.</li>
1822 <li>With a "Floppy" device type, the file must be an RAW floppy image.
1823 After this method succeeds, the medium will be added to the
1824 <link to="#floppyImages"/> array attribute.</li>
1825 </ul>
1826
1827 After having been opened, the medium can be found by the <link to="#findMedium"/>
1828 method and can be attached to virtual machines. See <link to="IMedium" /> for more details.
1829
1830 The UUID of the newly opened medium will either be retrieved from the
1831 storage location, if the format supports it (e.g. for hard disk images),
1832 or a new UUID will be randomly generated (e.g. for ISO and RAW files).
1833 If for some reason you need to change the medium's UUID, use
1834 <link to="IMedium::setIDs" />.
1835
1836 If a differencing hard disk medium is to be opened by this method, the
1837 operation will succeed only if its parent medium and all ancestors,
1838 if any, are already known to this VirtualBox installation (for example,
1839 were opened by this method before).
1840
1841 This method attempts to guess the storage format of the specified medium
1842 by reading medium data at the specified location.
1843
1844 If @a accessMode is ReadWrite (which it should be for hard disks and floppies),
1845 the image is opened for read/write access and must have according permissions,
1846 as VirtualBox may actually write status information into the disk's metadata
1847 sections.
1848
1849 Note that write access is required for all typical hard disk usage in VirtualBox,
1850 since VirtualBox may need to write metadata such as a UUID into the image.
1851 The only exception is opening a source image temporarily for copying and
1852 cloning (see <link to="IMedium::cloneTo" /> when the image will be closed
1853 again soon.
1854
1855 The format of the location string is storage format specific. See
1856 <link to="IMedium::location"/> and IMedium for more details.
1857
1858 Prior to VirtualBox 4.0, opening a medium added it to a global media
1859 registry in the VirtualBox.xml file, which was shared between all machines
1860 and made transporting machines and their media from one host to another
1861 difficult.
1862
1863 Starting with VirtualBox 4.0, media are only added to a registry when
1864 they are attached to a machine. Machines created with VirtualBox 4.0
1865 or later can have their own media registry. As a result, a medium attached
1866 to such a machine will be remembered in that machine's XML settings file.
1867 Media attached to older machines will continue to be added to the global
1868 registry.
1869
1870 <result name="VBOX_E_FILE_ERROR">
1871 Invalid medium storage file location or could not find the medium
1872 at the specified location.
1873 </result>
1874 <result name="VBOX_E_IPRT_ERROR">
1875 Could not get medium storage format.
1876 </result>
1877 <result name="E_INVALIDARG">
1878 Invalid medium storage format.
1879 </result>
1880 <result name="VBOX_E_INVALID_OBJECT_STATE">
1881 Medium has already been added to a media registry.
1882 </result>
1883 </desc>
1884 <param name="location" type="wstring" dir="in">
1885 <desc>
1886 Location of the storage unit that contains medium data in one of
1887 the supported storage formats.
1888 </desc>
1889 </param>
1890 <param name="deviceType" type="DeviceType" dir="in">
1891 <desc>
1892 Must be one of "HardDisk", "DVD" or "Floppy".
1893 </desc>
1894 </param>
1895 <param name="accessMode" type="AccessMode" dir="in">
1896 <desc>Whether to open the image in read/write or read-only mode. For
1897 a "DVD" device type, this is ignored and read-only mode is always assumed.</desc>
1898 </param>
1899 <param name="medium" type="IMedium" dir="return">
1900 <desc>Opened medium object.</desc>
1901 </param>
1902 </method>
1903
1904 <method name="findMedium">
1905 <desc>
1906 Returns a medium of the given type that uses the given fully qualified
1907 location or UUID to store medium data.
1908
1909 The given medium must be known to this VirtualBox installation, i.e.
1910 it must be previously created by <link to="#createHardDisk"/> or opened
1911 by <link to="#openMedium"/>.
1912
1913 The search is done by comparing the value of the @a location argument to
1914 the <link to="IMedium::location"/> and <link to="IMedium::id" />
1915 attributes of each known medium.
1916
1917 On case sensitive file systems, a case sensitive comparison is performed,
1918 otherwise the case of symbols in the file path is ignored.
1919
1920 <result name="VBOX_E_OBJECT_NOT_FOUND">
1921 No medium object matching @a location found.
1922 </result>
1923 </desc>
1924 <param name="location" type="wstring" dir="in">
1925 <desc>What to search for. This can either be the UUID or the location string of an open medium.</desc>
1926 </param>
1927 <param name="type" type="DeviceType" dir="in">
1928 <desc>Device type (must be HardDisk, DVD or Floppy)</desc>
1929 </param>
1930 <param name="medium" type="IMedium" dir="return">
1931 <desc>Medium object, if found.</desc>
1932 </param>
1933 </method>
1934
1935 <method name="getGuestOSType">
1936 <desc>
1937 Returns an object describing the specified guest OS type.
1938
1939 The requested guest OS type is specified using a string which is a
1940 mnemonic identifier of the guest operating system, such as
1941 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
1942 particular virtual machine can be read or set using the
1943 <link to="IMachine::OSTypeId"/> attribute.
1944
1945 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
1946 available guest OS type objects. Each object has an
1947 <link to="IGuestOSType::id"/> attribute which contains an identifier of
1948 the guest OS this object describes.
1949
1950 <result name="E_INVALIDARG">
1951 @a id is not a valid Guest OS type.
1952 </result>
1953
1954 </desc>
1955 <param name="id" type="uuid" mod="string" dir="in">
1956 <desc>Guest OS type ID string.</desc>
1957 </param>
1958 <param name="type" type="IGuestOSType" dir="return">
1959 <desc>Guest OS type object.</desc>
1960 </param>
1961 </method>
1962
1963 <method name="createSharedFolder">
1964 <desc>
1965 Creates a new global shared folder by associating the given logical
1966 name with the given host path, adds it to the collection of shared
1967 folders and starts sharing it. Refer to the description of
1968 <link to="ISharedFolder"/> to read more about logical names.
1969 <note>
1970 In the current implementation, this operation is not
1971 implemented.
1972 </note>
1973 </desc>
1974 <param name="name" type="wstring" dir="in">
1975 <desc>Unique logical name of the shared folder.</desc>
1976 </param>
1977 <param name="hostPath" type="wstring" dir="in">
1978 <desc>Full path to the shared folder in the host file system.</desc>
1979 </param>
1980 <param name="writable" type="boolean" dir="in">
1981 <desc>Whether the share is writable or readonly</desc>
1982 </param>
1983 <param name="automount" type="boolean" dir="in">
1984 <desc>Whether the share gets automatically mounted by the guest
1985 or not.</desc>
1986 </param>
1987 </method>
1988
1989 <method name="removeSharedFolder">
1990 <desc>
1991 Removes the global shared folder with the given name previously
1992 created by <link to="#createSharedFolder"/> from the collection of
1993 shared folders and stops sharing it.
1994 <note>
1995 In the current implementation, this operation is not
1996 implemented.
1997 </note>
1998 </desc>
1999 <param name="name" type="wstring" dir="in">
2000 <desc>Logical name of the shared folder to remove.</desc>
2001 </param>
2002 </method>
2003
2004 <method name="getExtraDataKeys">
2005 <desc>
2006 Returns an array representing the global extra data keys which currently
2007 have values defined.
2008 </desc>
2009 <param name="value" type="wstring" dir="return" safearray="yes">
2010 <desc>Array of extra data keys.</desc>
2011 </param>
2012 </method>
2013
2014 <method name="getExtraData">
2015 <desc>
2016 Returns associated global extra data.
2017
2018 If the requested data @a key does not exist, this function will
2019 succeed and return an empty string in the @a value argument.
2020
2021 <result name="VBOX_E_FILE_ERROR">
2022 Settings file not accessible.
2023 </result>
2024 <result name="VBOX_E_XML_ERROR">
2025 Could not parse the settings file.
2026 </result>
2027
2028 </desc>
2029 <param name="key" type="wstring" dir="in">
2030 <desc>Name of the data key to get.</desc>
2031 </param>
2032 <param name="value" type="wstring" dir="return">
2033 <desc>Value of the requested data key.</desc>
2034 </param>
2035 </method>
2036
2037 <method name="setExtraData">
2038 <desc>
2039 Sets associated global extra data.
2040
2041 If you pass @c null or empty string as a key @a value, the given @a key
2042 will be deleted.
2043
2044 <note>
2045 Before performing the actual data change, this method will ask all
2046 registered event listener using the
2047 <link to="IExtraDataCanChangeEvent"/>
2048 notification for a permission. If one of the listeners refuses the
2049 new value, the change will not be performed.
2050 </note>
2051 <note>
2052 On success, the
2053 <link to="IExtraDataChangedEvent"/> notification
2054 is called to inform all registered listeners about a successful data
2055 change.
2056 </note>
2057
2058 <result name="VBOX_E_FILE_ERROR">
2059 Settings file not accessible.
2060 </result>
2061 <result name="VBOX_E_XML_ERROR">
2062 Could not parse the settings file.
2063 </result>
2064 <result name="E_ACCESSDENIED">
2065 Modification request refused.
2066 </result>
2067
2068 </desc>
2069 <param name="key" type="wstring" dir="in">
2070 <desc>Name of the data key to set.</desc>
2071 </param>
2072 <param name="value" type="wstring" dir="in">
2073 <desc>Value to assign to the key.</desc>
2074 </param>
2075 </method>
2076
2077 <!--method name="createDHCPServerForInterface">
2078 <desc>
2079 Creates a dhcp server settings to be used for the given interface
2080 <result name="E_INVALIDARG">
2081 Host network interface @a name already exists.
2082 </result>
2083 </desc>
2084 <param name="interface" type="IHostNetworkInterface" dir="in">
2085 <desc>Network Interface</desc>
2086 </param>
2087 <param name="server" type="IDHCPServer" dir="out">
2088 <desc>Dhcp server settings</desc>
2089 </param>
2090 </method-->
2091
2092 <method name="createDHCPServer">
2093 <desc>
2094 Creates a dhcp server settings to be used for the given internal network name
2095 <result name="E_INVALIDARG">
2096 Host network interface @a name already exists.
2097 </result>
2098 </desc>
2099 <param name="name" type="wstring" dir="in">
2100 <desc>server name</desc>
2101 </param>
2102 <param name="server" type="IDHCPServer" dir="return">
2103 <desc>Dhcp server settings</desc>
2104 </param>
2105 </method>
2106
2107 <method name="findDHCPServerByNetworkName">
2108 <desc>
2109 Searches a dhcp server settings to be used for the given internal network name
2110 <result name="E_INVALIDARG">
2111 Host network interface @a name already exists.
2112 </result>
2113
2114 </desc>
2115 <param name="name" type="wstring" dir="in">
2116 <desc>server name</desc>
2117 </param>
2118 <param name="server" type="IDHCPServer" dir="return">
2119 <desc>Dhcp server settings</desc>
2120 </param>
2121 </method>
2122
2123 <!--method name="findDHCPServerForInterface">
2124 <desc>
2125 Searches a dhcp server settings to be used for the given interface
2126 <result name="E_INVALIDARG">
2127 Host network interface @a name already exists.
2128 </result>
2129 </desc>
2130 <param name="interface" type="IHostNetworkInterface" dir="in">
2131 <desc>Network Interface</desc>
2132 </param>
2133 <param name="server" type="IDHCPServer" dir="out">
2134 <desc>Dhcp server settings</desc>
2135 </param>
2136 </method-->
2137
2138 <method name="removeDHCPServer">
2139 <desc>
2140 Removes the dhcp server settings
2141 <result name="E_INVALIDARG">
2142 Host network interface @a name already exists.
2143 </result>
2144 </desc>
2145 <param name="server" type="IDHCPServer" dir="in">
2146 <desc>Dhcp server settings to be removed</desc>
2147 </param>
2148 </method>
2149
2150
2151 <method name="checkFirmwarePresent">
2152 <desc>
2153 Check if this VirtualBox installation has a firmware
2154 of the given type available, either system-wide or per-user.
2155 Optionally, this may return a hint where this firmware can be
2156 downloaded from.
2157 </desc>
2158 <param name="firmwareType" type="FirmwareType" dir="in">
2159 <desc>
2160 Type of firmware to check.
2161 </desc>
2162 </param>
2163 <param name="version" type="wstring" dir="in">
2164 <desc>Expected version number, usually empty string (presently ignored).</desc>
2165 </param>
2166
2167 <param name="url" type="wstring" dir="out">
2168 <desc>
2169 Suggested URL to download this firmware from.
2170 </desc>
2171 </param>
2172
2173 <param name="file" type="wstring" dir="out">
2174 <desc>
2175 Filename of firmware, only valid if result == TRUE.
2176 </desc>
2177 </param>
2178
2179 <param name="result" type="boolean" dir="return">
2180 <desc>If firmware of this type and version is available.</desc>
2181 </param>
2182 </method>
2183
2184 </interface>
2185
2186 <!--
2187 // IVFSExplorer
2188 /////////////////////////////////////////////////////////////////////////
2189 -->
2190
2191 <enum
2192 name="VFSType"
2193 uuid="813999ba-b949-48a8-9230-aadc6285e2f2"
2194 >
2195 <desc>
2196 Virtual file systems supported by VFSExplorer.
2197 </desc>
2198
2199 <const name="File" value="1" />
2200 <const name="Cloud" value="2" />
2201 <const name="S3" value="3" />
2202 <const name="WebDav" value="4" />
2203 </enum>
2204
2205 <enum
2206 name="VFSFileType"
2207 uuid="714333cd-44e2-415f-a245-d378fa9b1242"
2208 >
2209 <desc>
2210 File types known by VFSExplorer.
2211 </desc>
2212
2213 <const name="Unknown" value="1" />
2214 <const name="Fifo" value="2" />
2215 <const name="DevChar" value="3" />
2216 <const name="Directory" value="4" />
2217 <const name="DevBlock" value="5" />
2218 <const name="File" value="6" />
2219 <const name="SymLink" value="7" />
2220 <const name="Socket" value="8" />
2221 <const name="WhiteOut" value="9" />
2222 </enum>
2223
2224 <interface
2225 name="IVFSExplorer" extends="$unknown"
2226 uuid="003d7f92-d38e-487f-b790-8c5e8631cb2f"
2227 wsmap="managed"
2228 >
2229 <desc>
2230 The VFSExplorer interface unifies access to different file system
2231 types. This includes local file systems as well remote file systems like
2232 S3. For a list of supported types see <link to="VFSType" />.
2233 An instance of this is returned by <link to="IAppliance::createVFSExplorer" />.
2234 </desc>
2235
2236 <attribute name="path" type="wstring" readonly="yes">
2237 <desc>Returns the current path in the virtual file system.</desc>
2238 </attribute>
2239
2240 <attribute name="type" type="VFSType" readonly="yes">
2241 <desc>Returns the file system type which is currently in use.</desc>
2242 </attribute>
2243
2244 <method name="update">
2245 <desc>Updates the internal list of files/directories from the
2246 current directory level. Use <link to="#entryList" /> to get the full list
2247 after a call to this method.</desc>
2248
2249 <param name="aProgress" type="IProgress" dir="return">
2250 <desc>Progress object to track the operation completion.</desc>
2251 </param>
2252 </method>
2253
2254 <method name="cd">
2255 <desc>Change the current directory level.</desc>
2256
2257 <param name="aDir" type="wstring" dir="in">
2258 <desc>The name of the directory to go in.</desc>
2259 </param>
2260
2261 <param name="aProgress" type="IProgress" dir="return">
2262 <desc>Progress object to track the operation completion.</desc>
2263 </param>
2264 </method>
2265
2266 <method name="cdUp">
2267 <desc>Go one directory upwards from the current directory level.</desc>
2268
2269 <param name="aProgress" type="IProgress" dir="return">
2270 <desc>Progress object to track the operation completion.</desc>
2271 </param>
2272 </method>
2273
2274 <method name="entryList">
2275 <desc>Returns a list of files/directories after a call to <link
2276 to="#update" />. The user is responsible for keeping this internal
2277 list up do date.</desc>
2278
2279 <param name="aNames" type="wstring" safearray="yes" dir="out">
2280 <desc>The list of names for the entries.</desc>
2281 </param>
2282
2283 <param name="aTypes" type="unsigned long" safearray="yes" dir="out">
2284 <desc>The list of types for the entries.</desc>
2285 </param>
2286
2287 <param name="aSizes" type="unsigned long" safearray="yes" dir="out">
2288 <desc>The list of sizes (in bytes) for the entries.</desc>
2289 </param>
2290
2291 <param name="aModes" type="unsigned long" safearray="yes" dir="out">
2292 <desc>The list of file modes (in octal form) for the entries.</desc>
2293 </param>
2294 </method>
2295
2296 <method name="exists">
2297 <desc>Checks if the given file list exists in the current directory
2298 level.</desc>
2299
2300 <param name="aNames" type="wstring" safearray="yes" dir="in">
2301 <desc>The names to check.</desc>
2302 </param>
2303
2304 <param name="aExists" type="wstring" safearray="yes" dir="return">
2305 <desc>The names which exist.</desc>
2306 </param>
2307 </method>
2308
2309 <method name="remove">
2310 <desc>Deletes the given files in the current directory level.</desc>
2311
2312 <param name="aNames" type="wstring" safearray="yes" dir="in">
2313 <desc>The names to remove.</desc>
2314 </param>
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 </interface>
2322
2323 <!--
2324 // IAppliance
2325 /////////////////////////////////////////////////////////////////////////
2326 -->
2327
2328 <interface
2329 name="IAppliance" extends="$unknown"
2330 uuid="7b148032-4124-4f46-b56a-b48ac1273f5a"
2331 wsmap="managed"
2332 >
2333 <desc>
2334 Represents a platform-independent appliance in OVF format. An instance of this is returned
2335 by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
2336 virtual machines within an appliance with VirtualBox.
2337
2338 The OVF standard suggests two different physical file formats:
2339
2340 <ol>
2341 <li>If the appliance is distributed as a set of files, there must be at least one XML descriptor
2342 file that conforms to the OVF standard and carries an <tt>.ovf</tt> file extension. If
2343 this descriptor file references other files such as disk images, as OVF appliances typically
2344 do, those additional files must be in the same directory as the descriptor file.</li>
2345
2346 <li>If the appliance is distributed as a single file, it must be in TAR format and have the
2347 <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
2348 files and optionally other files.
2349
2350 At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
2351 be added with a later version.</li>
2352 </ol>
2353
2354 <b>Importing</b> an OVF appliance into VirtualBox as instances of
2355 <link to="IMachine" /> involves the following sequence of API calls:
2356
2357 <ol>
2358 <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
2359 </li>
2360
2361 <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
2362 would like to import. So long as this file is syntactically valid, this will succeed
2363 and fill the appliance object with the parsed data from the OVF file.
2364 </li>
2365
2366 <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
2367 contents of the IAppliance attributes accordingly. These can be inspected by a
2368 VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
2369 user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
2370 instances of <link to="IVirtualSystemDescription" /> which represent the virtual
2371 systems (machines) in the OVF, which in turn describe the virtual hardware prescribed
2372 by the OVF (network and hardware adapters, virtual disk images, memory size and so on).
2373 The GUI can then give the user the option to confirm and/or change these suggestions.
2374 </li>
2375
2376 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2377 virtual system (machine) to override the suggestions made by the interpret() routine.
2378 </li>
2379
2380 <li>Finally, call <link to="#importMachines" /> to create virtual machines in
2381 VirtualBox as instances of <link to="IMachine" /> that match the information in the
2382 virtual system descriptions. After this call succeeded, the UUIDs of the machines created
2383 can be found in the <link to="#machines" /> array attribute.
2384 </li>
2385 </ol>
2386
2387 <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
2388
2389 <ol>
2390 <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
2391 an empty IAppliance object.
2392 </li>
2393
2394 <li>For each machine you would like to export, call <link to="IMachine::export" />
2395 with the IAppliance object you just created. Each such call creates one instance of
2396 <link to="IVirtualSystemDescription" /> inside the appliance.
2397 </li>
2398
2399 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2400 virtual system (machine) to override the suggestions made by the export() routine.
2401 </li>
2402
2403 <li>Finally, call <link to="#write" /> with a path specification to have the OVF
2404 file written.</li>
2405 </ol>
2406
2407 </desc>
2408
2409 <attribute name="path" type="wstring" readonly="yes">
2410 <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
2411 the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
2412 <link to="#write" /> (for export).
2413 This attribute is empty until one of these methods has been called.
2414 </desc>
2415 </attribute>
2416
2417 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
2418 <desc>
2419 Array of virtual disk definitions. One such description exists for each
2420 disk definition in the OVF; each string array item represents one such piece of
2421 disk information, with the information fields separated by tab (\t) characters.
2422
2423 The caller should be prepared for additional fields being appended to
2424 this string in future versions of VirtualBox and therefore check for
2425 the number of tabs in the strings returned.
2426
2427 In the current version, the following eight fields are returned per string
2428 in the array:
2429
2430 <ol>
2431 <li>Disk ID (unique string identifier given to disk)</li>
2432
2433 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
2434
2435 <li>Populated size (optional unsigned integer indicating the current size of the
2436 disk; can be approximate; -1 if unspecified)</li>
2437
2438 <li>Format (string identifying the disk format, typically
2439 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
2440
2441 <li>Reference (where to find the disk image, typically a file name; if empty,
2442 then the disk should be created on import)</li>
2443
2444 <li>Image size (optional unsigned integer indicating the size of the image,
2445 which need not necessarily be the same as the values specified above, since
2446 the image may be compressed or sparse; -1 if not specified)</li>
2447
2448 <li>Chunk size (optional unsigned integer if the image is split into chunks;
2449 presently unsupported and always -1)</li>
2450
2451 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
2452 </ol>
2453 </desc>
2454 </attribute>
2455
2456 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
2457 <desc> Array of virtual system descriptions. One such description is created
2458 for each virtual system (machine) found in the OVF.
2459 This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::export" />
2460 (for export) has been called.
2461 </desc>
2462 </attribute>
2463
2464 <attribute name="machines" type="wstring" readonly="yes" safearray="yes">
2465 <desc>
2466 Contains the UUIDs of the machines created from the information in this appliances. This is only
2467 relevant for the import case, and will only contain data after a call to <link to="#importMachines" />
2468 succeeded.
2469 </desc>
2470 </attribute>
2471
2472 <method name="read">
2473 <desc>
2474 Reads an OVF file into the appliance object.
2475
2476 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
2477 mere fact that this method returns successfully does not mean that VirtualBox supports all
2478 features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
2479 </desc>
2480 <param name="file" type="wstring" dir="in">
2481 <desc>
2482 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2483 on whether the appliance is distributed as a set of files or as a single file, respectively).
2484 </desc>
2485 </param>
2486 <param name="aProgress" type="IProgress" dir="return">
2487 <desc>Progress object to track the operation completion.</desc>
2488 </param>
2489 </method>
2490
2491 <method name="interpret">
2492 <desc>
2493 Interprets the OVF data that was read when the appliance was constructed. After
2494 calling this method, one can inspect the
2495 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
2496 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
2497 the appliance.
2498
2499 Calling this method is the second step of importing an appliance into VirtualBox;
2500 see <link to="IAppliance" /> for an overview.
2501
2502 After calling this method, one should call <link to="#getWarnings" /> to find out
2503 if problems were encountered during the processing which might later lead to
2504 errors.
2505 </desc>
2506 </method>
2507
2508 <method name="importMachines">
2509 <desc>
2510 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
2511 and other interfaces that match the information contained in the appliance as
2512 closely as possible, as represented by the import instructions in the
2513 <link to="#virtualSystemDescriptions" /> array.
2514
2515 Calling this method is the final step of importing an appliance into VirtualBox;
2516 see <link to="IAppliance" /> for an overview.
2517
2518 Since importing the appliance will most probably involve copying and converting
2519 disk images, which can take a long time, this method operates asynchronously and
2520 returns an IProgress object to allow the caller to monitor the progress.
2521
2522 After the import succeeded, the UUIDs of the IMachine instances created can be
2523 retrieved from the <link to="#machines" /> array attribute.
2524 </desc>
2525
2526 <param name="aProgress" type="IProgress" dir="return">
2527 <desc>Progress object to track the operation completion.</desc>
2528 </param>
2529 </method>
2530
2531 <method name="createVFSExplorer">
2532 <desc>Returns a <link to="IVFSExplorer" /> object for the given URI.</desc>
2533
2534 <param name="aUri" type="wstring" dir="in">
2535 <desc>The URI describing the file system to use.</desc>
2536 </param>
2537
2538 <param name="aExplorer" type="IVFSExplorer" dir="return">
2539 <desc></desc>
2540 </param>
2541 </method>
2542
2543 <method name="write">
2544 <desc>
2545 Writes the contents of the appliance exports into a new OVF file.
2546
2547 Calling this method is the final step of exporting an appliance from VirtualBox;
2548 see <link to="IAppliance" /> for an overview.
2549
2550 Since exporting the appliance will most probably involve copying and converting
2551 disk images, which can take a long time, this method operates asynchronously and
2552 returns an IProgress object to allow the caller to monitor the progress.
2553 </desc>
2554 <param name="format" type="wstring" dir="in">
2555 <desc>
2556 Output format, as a string. Currently supported formats are "ovf-0.9" and "ovf-1.0";
2557 future versions of VirtualBox may support additional formats.
2558 </desc>
2559 </param>
2560 <param name="manifest" type="boolean" dir="in">
2561 <desc>
2562 Indicate if the optional manifest file (.mf) should be written. The manifest file
2563 is used for integrity checks prior import.
2564 </desc>
2565 </param>
2566 <param name="path" type="wstring" dir="in">
2567 <desc>
2568 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2569 on whether the appliance is distributed as a set of files or as a single file, respectively).
2570 </desc>
2571 </param>
2572 <param name="progress" type="IProgress" dir="return">
2573 <desc>Progress object to track the operation completion.</desc>
2574 </param>
2575 </method>
2576
2577 <method name="getWarnings">
2578 <desc>Returns textual warnings which occurred during execution of <link to="#interpret" />.</desc>
2579
2580 <param name="aWarnings" type="wstring" dir="return" safearray="yes">
2581 <desc></desc>
2582 </param>
2583 </method>
2584
2585 </interface>
2586
2587 <enum
2588 name="VirtualSystemDescriptionType"
2589 uuid="c0f8f135-3a1d-417d-afa6-b38b95a91f90"
2590 >
2591 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
2592 a configuration value.</desc>
2593
2594 <const name="Ignore" value="1" />
2595 <const name="OS" value="2" />
2596 <const name="Name" value="3" />
2597 <const name="Product" value="4" />
2598 <const name="Vendor" value="5" />
2599 <const name="Version" value="6" />
2600 <const name="ProductUrl" value="7" />
2601 <const name="VendorUrl" value="8" />
2602 <const name="Description" value="9" />
2603 <const name="License" value="10" />
2604 <const name="Miscellaneous" value="11" />
2605 <const name="CPU" value="12" />
2606 <const name="Memory" value="13" />
2607 <const name="HardDiskControllerIDE" value="14" />
2608 <const name="HardDiskControllerSATA" value="15" />
2609 <const name="HardDiskControllerSCSI" value="16" />
2610 <const name="HardDiskControllerSAS" value="17" />
2611 <const name="HardDiskImage" value="18" />
2612 <const name="Floppy" value="19" />
2613 <const name="CDROM" value="20" />
2614 <const name="NetworkAdapter" value="21" />
2615 <const name="USBController" value="22" />
2616 <const name="SoundCard" value="23" />
2617
2618 </enum>
2619
2620 <enum
2621 name="VirtualSystemDescriptionValueType"
2622 uuid="56d9403f-3425-4118-9919-36f2a9b8c77c"
2623 >
2624 <desc>Used with <link to="IVirtualSystemDescription::getValuesByType" /> to describe the value
2625 type to fetch.</desc>
2626
2627 <const name="Reference" value="1" />
2628 <const name="Original" value="2" />
2629 <const name="Auto" value="3" />
2630 <const name="ExtraConfig" value="4" />
2631
2632 </enum>
2633
2634 <interface
2635 name="IVirtualSystemDescription" extends="$unknown"
2636 uuid="d7525e6c-531a-4c51-8e04-41235083a3d8"
2637 wsmap="managed"
2638 >
2639
2640 <desc>Represents one virtual system (machine) in an appliance. This interface is used in
2641 the <link to="IAppliance::virtualSystemDescriptions" /> array. After
2642 <link to="IAppliance::interpret" /> has been called, that array contains information
2643 about how the virtual systems described in the OVF should best be imported into
2644 VirtualBox virtual machines. See <link to="IAppliance" /> for the steps required to
2645 import an OVF into VirtualBox.
2646 </desc>
2647
2648 <attribute name="count" type="unsigned long" readonly="yes">
2649 <desc>Return the number of virtual system description entries.</desc>
2650 </attribute>
2651
2652 <method name="getDescription">
2653 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
2654 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
2655
2656 The list below identifies the value sets that are possible depending on the
2657 <link to="VirtualSystemDescriptionType" /> enum value in the array item in @a aTypes[]. In each case,
2658 the array item with the same index in @a aOvfValues[] will contain the original value as contained
2659 in the OVF file (just for informational purposes), and the corresponding item in @a aVBoxValues[]
2660 will contain a suggested value to be used for VirtualBox. Depending on the description type,
2661 the @a aExtraConfigValues[] array item may also be used.
2662
2663 <ul>
2664 <li>
2665 "OS": the guest operating system type. There must be exactly one such array item on import. The
2666 corresponding item in @a aVBoxValues[] contains the suggested guest operating system for VirtualBox.
2667 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
2668 item in @a aOvfValues[] will contain a numerical value that described the operating system in the OVF.
2669 </li>
2670 <li>
2671 "Name": the name to give to the new virtual machine. There can be at most one such array item;
2672 if none is present on import, then an automatic name will be created from the operating system
2673 type. The corresponding item im @a aOvfValues[] will contain the suggested virtual machine name
2674 from the OVF file, and @a aVBoxValues[] will contain a suggestion for a unique VirtualBox
2675 <link to="IMachine" /> name that does not exist yet.
2676 </li>
2677 <li>
2678 "Description": an arbitrary description.
2679 </li>
2680 <li>
2681 "License": the EULA section from the OVF, if present. It is the responsibility of the calling
2682 code to display such a license for agreement; the Main API does not enforce any such policy.
2683 </li>
2684 <li>
2685 Miscellaneous: reserved for future use.
2686 </li>
2687 <li>
2688 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
2689 </li>
2690 <li>
2691 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
2692 is present on import, then VirtualBox will set a meaningful default based on the operating system
2693 type.
2694 </li>
2695 <li>
2696 "HardDiskControllerIDE": an IDE hard disk controller. There can be at most two such items.
2697 An optional value in @a aOvfValues[] and @a aVBoxValues[] can be "PIIX3" or "PIIX4" to specify
2698 the type of IDE controller; this corresponds to the ResourceSubType element which VirtualBox
2699 writes into the OVF.
2700 The matching item in the @a aRefs[] array will contain an integer that items of the "Harddisk"
2701 type can use to specify which hard disk controller a virtual disk should be connected to.
2702 Note that in OVF, an IDE controller has two channels, corresponding to "master" and "slave"
2703 in traditional terminology, whereas the IDE storage controller that VirtualBox supports in
2704 its virtual machines supports four channels (primary master, primary slave, secondary master,
2705 secondary slave) and thus maps to two IDE controllers in the OVF sense.
2706 </li>
2707 <li>
2708 "HardDiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
2709 has no value in @a aOvfValues[] or @a aVBoxValues[].
2710 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
2711 </li>
2712 <li>
2713 "HardDiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
2714 The items in @a aOvfValues[] and @a aVBoxValues[] will either be "LsiLogic", "BusLogic" or
2715 "LsiLogicSas". (Note that in OVF, the LsiLogicSas controller is treated as a SCSI controller
2716 whereas VirtualBox considers it a class of storage controllers of its own; see
2717 <link to="StorageControllerType" />).
2718 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
2719 </li>
2720 <li>
2721 "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
2722 arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
2723
2724 The array item in @a aOvfValues[] will contain the file specification from the OVF file (without
2725 a path since the image file should be in the same location as the OVF file itself), whereas the
2726 item in @a aVBoxValues[] will contain a qualified path specification to where VirtualBox uses the
2727 hard disk image. This means that on import the image will be copied and converted from the
2728 "ovf" location to the "vbox" location; on export, this will be handled the other way round.
2729
2730 The matching item in the @a aExtraConfigValues[] array must contain a string of the following
2731 format: "controller=&lt;index&gt;;channel=&lt;c&gt;"
2732 In this string, &lt;index&gt; must be an integer specifying the hard disk controller to connect
2733 the image to. That number must be the index of an array item with one of the hard disk controller
2734 types (HardDiskControllerSCSI, HardDiskControllerSATA, HardDiskControllerIDE).
2735 In addition, &lt;c&gt; must specify the channel to use on that controller. For IDE controllers,
2736 this can be 0 or 1 for master or slave, respectively. For compatibility with VirtualBox versions
2737 before 3.2, the values 2 and 3 (for secondary master and secondary slave) are also supported, but
2738 no longer exported. For SATA and SCSI controllers, the channel can range from 0-29.
2739 </li>
2740 <li>
2741 "CDROM": a virtual CD-ROM drive. The matching item in @a aExtraConfigValue[] contains the same
2742 attachment information as with "HardDiskImage" items.
2743 </li>
2744 <li>
2745 "CDROM": a virtual floppy drive. The matching item in @a aExtraConfigValue[] contains the same
2746 attachment information as with "HardDiskImage" items.
2747 </li>
2748 <li>
2749 "NetworkAdapter": a network adapter. The array item in @a aVBoxValues[] will specify the hardware
2750 for the network adapter, whereas the array item in @a aExtraConfigValues[] will have a string
2751 of the "type=&lt;X&gt;" format, where &lt;X&gt; must be either "NAT" or "Bridged".
2752 </li>
2753 <li>
2754 "USBController": a USB controller. There can be at most one such item. If and only if such an
2755 item ispresent, USB support will be enabled for the new virtual machine.
2756 </li>
2757 <li>
2758 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
2759 present, sound support will be enabled for the new virtual machine. Note that the virtual
2760 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
2761 may be different from the virtual soundcard expected by the appliance.
2762 </li>
2763 </ul>
2764
2765 </desc>
2766
2767 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
2768 <desc></desc>
2769 </param>
2770
2771 <param name="aRefs" type="wstring" dir="out" safearray="yes">
2772 <desc></desc>
2773 </param>
2774
2775 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
2776 <desc></desc>
2777 </param>
2778
2779 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
2780 <desc></desc>
2781 </param>
2782
2783 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
2784 <desc></desc>
2785 </param>
2786
2787 </method>
2788
2789 <method name="getDescriptionByType">
2790 <desc>This is the same as <link to="#getDescription" /> except that you can specify which types
2791 should be returned.</desc>
2792
2793 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
2794 <desc></desc>
2795 </param>
2796
2797 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
2798 <desc></desc>
2799 </param>
2800
2801 <param name="aRefs" type="wstring" dir="out" safearray="yes">
2802 <desc></desc>
2803 </param>
2804
2805 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
2806 <desc></desc>
2807 </param>
2808
2809 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
2810 <desc></desc>
2811 </param>
2812
2813 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
2814 <desc></desc>
2815 </param>
2816
2817 </method>
2818
2819 <method name="getValuesByType">
2820 <desc>This is the same as <link to="#getDescriptionByType" /> except that you can specify which
2821 value types should be returned. See <link to="VirtualSystemDescriptionValueType" /> for possible
2822 values.</desc>
2823
2824 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
2825 <desc></desc>
2826 </param>
2827
2828 <param name="aWhich" type="VirtualSystemDescriptionValueType" dir="in">
2829 <desc></desc>
2830 </param>
2831
2832 <param name="aValues" type="wstring" dir="return" safearray="yes">
2833 <desc></desc>
2834 </param>
2835
2836 </method>
2837
2838 <method name="setFinalValues">
2839 <desc>
2840 This method allows the appliance's user to change the configuration for the virtual
2841 system descriptions. For each array item returned from <link to="#getDescription" />,
2842 you must pass in one boolean value and one configuration value.
2843
2844 Each item in the boolean array determines whether the particular configuration item
2845 should be enabled.
2846 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
2847 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
2848 and SoundCard.
2849
2850 For the "vbox" and "extra configuration" values, if you pass in the same arrays
2851 as returned in the aVBoxValues and aExtraConfigValues arrays from getDescription(),
2852 the configuration remains unchanged. Please see the documentation for getDescription()
2853 for valid configuration values for the individual array item types. If the
2854 corresponding item in the aEnabled array is @c false, the configuration value is ignored.
2855 </desc>
2856
2857 <param name="aEnabled" type="boolean" dir="in" safearray="yes">
2858 <desc></desc>
2859 </param>
2860
2861 <param name="aVBoxValues" type="wstring" dir="in" safearray="yes">
2862 <desc></desc>
2863 </param>
2864
2865 <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
2866 <desc></desc>
2867 </param>
2868 </method>
2869
2870 <method name="addDescription">
2871 <desc>
2872 This method adds an additional description entry to the stack of already
2873 available descriptions for this virtual system. This is handy for writing
2874 values which aren't directly supported by VirtualBox. One example would
2875 be the License type of <link to="VirtualSystemDescriptionType" />.
2876 </desc>
2877
2878 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
2879 <desc></desc>
2880 </param>
2881
2882 <param name="aVBoxValue" type="wstring" dir="in">
2883 <desc></desc>
2884 </param>
2885
2886 <param name="aExtraConfigValue" type="wstring" dir="in">
2887 <desc></desc>
2888 </param>
2889 </method>
2890 </interface>
2891
2892
2893 <!--
2894 // IMachine
2895 /////////////////////////////////////////////////////////////////////////
2896 -->
2897
2898 <interface
2899 name="IInternalMachineControl" extends="$unknown"
2900 uuid="476126af-e223-4490-a8a0-b1f1575be013"
2901 internal="yes"
2902 wsmap="suppress"
2903 >
2904 <method name="setRemoveSavedStateFile">
2905 <desc>
2906 Updates the flag whether the saved state file is removed on a
2907 machine state change from Saved to PoweredOff.
2908 </desc>
2909 <param name="aRemove" type="boolean" dir="in"/>
2910 </method>
2911
2912 <method name="updateState">
2913 <desc>
2914 Updates the VM state.
2915 <note>
2916 This operation will also update the settings file with the correct
2917 information about the saved state file and delete this file from disk
2918 when appropriate.
2919 </note>
2920 </desc>
2921 <param name="state" type="MachineState" dir="in"/>
2922 </method>
2923
2924 <method name="getIPCId">
2925 <param name="id" type="wstring" dir="return"/>
2926 </method>
2927
2928 <method name="beginPowerUp">
2929 <desc>
2930 Tells VBoxSVC that <link to="IConsole::powerUp"/> is under ways and
2931 gives it the progress object that should be part of any pending
2932 <link to="IMachine::launchVMProcess"/> operations. The progress
2933 object may be called back to reflect an early cancelation, so some care
2934 have to be taken with respect to any cancelation callbacks. The console
2935 object will call <link to="IInternalMachineControl::endPowerUp"/>
2936 to signal the completion of the progress object.
2937 </desc>
2938 <param name="aProgress" type="IProgress" dir="in" />
2939 </method>
2940
2941 <method name="endPowerUp">
2942 <desc>
2943 Tells VBoxSVC that <link to="IConsole::powerUp"/> has completed.
2944 This method may query status information from the progress object it
2945 received in <link to="IInternalMachineControl::beginPowerUp"/> and copy
2946 it over to any in-progress <link to="IMachine::launchVMProcess"/>
2947 call in order to complete that progress object.
2948 </desc>
2949 <param name="result" type="long" dir="in"/>
2950 </method>
2951
2952 <method name="runUSBDeviceFilters">
2953 <desc>
2954 Asks the server to run USB devices filters of the associated
2955 machine against the given USB device and tell if there is
2956 a match.
2957 <note>
2958 Intended to be used only for remote USB devices. Local
2959 ones don't require to call this method (this is done
2960 implicitly by the Host and USBProxyService).
2961 </note>
2962 </desc>
2963 <param name="device" type="IUSBDevice" dir="in"/>
2964 <param name="matched" type="boolean" dir="out"/>
2965 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
2966 </method>
2967
2968 <method name="captureUSBDevice">
2969 <desc>
2970 Requests a capture of the given host USB device.
2971 When the request is completed, the VM process will
2972 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
2973 notification.
2974 </desc>
2975 <param name="id" type="uuid" mod="string" dir="in"/>
2976 </method>
2977
2978 <method name="detachUSBDevice">
2979 <desc>
2980 Notification that a VM is going to detach (@a done = @c false) or has
2981 already detached (@a done = @c true) the given USB device.
2982 When the @a done = @c true request is completed, the VM process will
2983 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
2984 notification.
2985 <note>
2986 In the @a done = @c true case, the server must run its own filters
2987 and filters of all VMs but this one on the detached device
2988 as if it were just attached to the host computer.
2989 </note>
2990 </desc>
2991 <param name="id" type="uuid" mod="string" dir="in"/>
2992 <param name="done" type="boolean" dir="in"/>
2993 </method>
2994
2995 <method name="autoCaptureUSBDevices">
2996 <desc>
2997 Requests a capture all matching USB devices attached to the host.
2998 When the request is completed, the VM process will
2999 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3000 notification per every captured device.
3001 </desc>
3002 </method>
3003
3004 <method name="detachAllUSBDevices">
3005 <desc>
3006 Notification that a VM that is being powered down. The done
3007 parameter indicates whether which stage of the power down
3008 we're at. When @a done = @c false the VM is announcing its
3009 intentions, while when @a done = @c true the VM is reporting
3010 what it has done.
3011 <note>
3012 In the @a done = @c true case, the server must run its own filters
3013 and filters of all VMs but this one on all detach devices as
3014 if they were just attached to the host computer.
3015 </note>
3016 </desc>
3017 <param name="done" type="boolean" dir="in"/>
3018 </method>
3019
3020 <method name="onSessionEnd">
3021 <desc>
3022 Triggered by the given session object when the session is about
3023 to close normally.
3024 </desc>
3025 <param name="session" type="ISession" dir="in">
3026 <desc>Session that is being closed</desc>
3027 </param>
3028 <param name="progress" type="IProgress" dir="return">
3029 <desc>
3030 Used to wait until the corresponding machine is actually
3031 dissociated from the given session on the server.
3032 Returned only when this session is a direct one.
3033 </desc>
3034 </param>
3035 </method>
3036
3037 <method name="beginSavingState">
3038 <desc>
3039 Called by the VM process to inform the server it wants to
3040 save the current state and stop the VM execution.
3041 </desc>
3042 <param name="progress" type="IProgress" dir="out">
3043 <desc>
3044 Progress object created by VBoxSVC to wait until
3045 the state is saved.
3046 </desc>
3047 </param>
3048 <param name="stateFilePath" type="wstring" dir="out">
3049 <desc>
3050 File path the VM process must save the execution state to.
3051 </desc>
3052 </param>
3053 </method>
3054
3055 <method name="endSavingState">
3056 <desc>
3057 Called by the VM process to inform the server that saving
3058 the state previously requested by #beginSavingState is either
3059 successfully finished or there was a failure.
3060
3061 <result name="VBOX_E_FILE_ERROR">
3062 Settings file not accessible.
3063 </result>
3064 <result name="VBOX_E_XML_ERROR">
3065 Could not parse the settings file.
3066 </result>
3067
3068 </desc>
3069
3070 <param name="result" type="long" dir="in">
3071 <desc>@c S_OK to indicate success.
3072 </desc>
3073 </param>
3074 <param name="errMsg" type="wstring" dir="in">
3075 <desc>@c human readable error message in case of failure.
3076 </desc>
3077 </param>
3078 </method>
3079
3080 <method name="adoptSavedState">
3081 <desc>
3082 Gets called by IConsole::adoptSavedState.
3083 <result name="VBOX_E_FILE_ERROR">
3084 Invalid saved state file path.
3085 </result>
3086 </desc>
3087 <param name="savedStateFile" type="wstring" dir="in">
3088 <desc>Path to the saved state file to adopt.</desc>
3089 </param>
3090 </method>
3091
3092 <method name="beginTakingSnapshot">
3093 <desc>
3094 Called from the VM process to request from the server to perform the
3095 server-side actions of creating a snapshot (creating differencing images
3096 and the snapshot object).
3097
3098 <result name="VBOX_E_FILE_ERROR">
3099 Settings file not accessible.
3100 </result>
3101 <result name="VBOX_E_XML_ERROR">
3102 Could not parse the settings file.
3103 </result>
3104 </desc>
3105 <param name="initiator" type="IConsole" dir="in">
3106 <desc>The console object that initiated this call.</desc>
3107 </param>
3108 <param name="name" type="wstring" dir="in">
3109 <desc>Snapshot name.</desc>
3110 </param>
3111 <param name="description" type="wstring" dir="in">
3112 <desc>Snapshot description.</desc>
3113 </param>
3114 <param name="consoleProgress" type="IProgress" dir="in">
3115 <desc>
3116 Progress object created by the VM process tracking the
3117 snapshot's progress. This has the following sub-operations:
3118 <ul>
3119 <li>setting up (weight 1);</li>
3120 <li>one for each medium attachment that needs a differencing image (weight 1 each);</li>
3121 <li>another one to copy the VM state (if offline with saved state, weight is VM memory size in MB);</li>
3122 <li>another one to save the VM state (if online, weight is VM memory size in MB);</li>
3123 <li>finishing up (weight 1)</li>
3124 </ul>
3125 </desc>
3126 </param>
3127 <param name="fTakingSnapshotOnline" type="boolean" dir="in">
3128 <desc>
3129 Whether this is an online snapshot (i.e. the machine is running).
3130 </desc>
3131 </param>
3132 <param name="stateFilePath" type="wstring" dir="out">
3133 <desc>
3134 File path the VM process must save the execution state to.
3135 </desc>
3136 </param>
3137 </method>
3138
3139 <method name="endTakingSnapshot">
3140 <desc>
3141 Called by the VM process to inform the server that the snapshot
3142 previously requested by #beginTakingSnapshot is either
3143 successfully taken or there was a failure.
3144 </desc>
3145
3146 <param name="success" type="boolean" dir="in">
3147 <desc>@c true to indicate success and @c false otherwise</desc>
3148 </param>
3149 </method>
3150
3151 <method name="deleteSnapshot">
3152 <desc>
3153 Gets called by IConsole::deleteSnapshot.
3154 <result name="VBOX_E_INVALID_OBJECT_STATE">
3155 Snapshot has more than one child snapshot.
3156 </result>
3157 </desc>
3158 <param name="initiator" type="IConsole" dir="in">
3159 <desc>The console object that initiated this call.</desc>
3160 </param>
3161 <param name="id" type="uuid" mod="string" dir="in">
3162 <desc>UUID of the snapshot to delete.</desc>
3163 </param>
3164 <param name="machineState" type="MachineState" dir="out">
3165 <desc>New machine state after this operation is started.</desc>
3166 </param>
3167 <param name="progress" type="IProgress" dir="return">
3168 <desc>Progress object to track the operation completion.</desc>
3169 </param>
3170 </method>
3171
3172 <method name="finishOnlineMergeMedium">
3173 <desc>
3174 Gets called by IConsole::onlineMergeMedium.
3175 </desc>
3176 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
3177 <desc>The medium attachment which needs to be cleaned up.</desc>
3178 </param>
3179 <param name="source" type="IMedium" dir="in">
3180 <desc>Merge source medium.</desc>
3181 </param>
3182 <param name="target" type="IMedium" dir="in">
3183 <desc>Merge target medium.</desc>
3184 </param>
3185 <param name="mergeForward" type="boolean" dir="in">
3186 <desc>Merge direction.</desc>
3187 </param>
3188 <param name="parentForTarget" type="IMedium" dir="in">
3189 <desc>For forward merges: new parent for target medium.</desc>
3190 </param>
3191 <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
3192 <desc>For backward merges: list of media which need their parent UUID
3193 updated.</desc>
3194 </param>
3195 </method>
3196
3197 <method name="restoreSnapshot">
3198 <desc>
3199 Gets called by IConsole::RestoreSnapshot.
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="snapshot" type="ISnapshot" dir="in">
3205 <desc>The snapshot to restore the VM state from.</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="pullGuestProperties">
3216 <desc>
3217 Get the list of the guest properties matching a set of patterns along
3218 with their values, time stamps and flags and give responsibility for
3219 managing properties to the console.
3220 </desc>
3221 <param name="name" type="wstring" dir="out" safearray="yes">
3222 <desc>
3223 The names of the properties returned.
3224 </desc>
3225 </param>
3226 <param name="value" type="wstring" dir="out" safearray="yes">
3227 <desc>
3228 The values of the properties returned. The array entries match the
3229 corresponding entries in the @a name array.
3230 </desc>
3231 </param>
3232 <param name="timestamp" type="long long" dir="out" safearray="yes">
3233 <desc>
3234 The time stamps of the properties returned. The array entries match
3235 the corresponding entries in the @a name array.
3236 </desc>
3237 </param>
3238 <param name="flags" type="wstring" dir="out" safearray="yes">
3239 <desc>
3240 The flags of the properties returned. The array entries match the
3241 corresponding entries in the @a name array.
3242 </desc>
3243 </param>
3244 </method>
3245
3246 <method name="pushGuestProperty">
3247 <desc>
3248 Update a single guest property in IMachine.
3249 </desc>
3250 <param name="name" type="wstring" dir="in">
3251 <desc>
3252 The name of the property to be updated.
3253 </desc>
3254 </param>
3255 <param name="value" type="wstring" dir="in">
3256 <desc>
3257 The value of the property.
3258 </desc>
3259 </param>
3260 <param name="timestamp" type="long long" dir="in">
3261 <desc>
3262 The timestamp of the property.
3263 </desc>
3264 </param>
3265 <param name="flags" type="wstring" dir="in">
3266 <desc>
3267 The flags of the property.
3268 </desc>
3269 </param>
3270 </method>
3271
3272 <method name="lockMedia">
3273 <desc>
3274 Locks all media attached to the machine for writing and parents of
3275 attached differencing media (if any) for reading. This operation is
3276 atomic so that if it fails no media is actually locked.
3277
3278 This method is intended to be called when the machine is in Starting or
3279 Restoring state. The locked media will be automatically unlocked when
3280 the machine is powered off or crashed.
3281 </desc>
3282 </method>
3283 <method name="unlockMedia">
3284 <desc>
3285 Unlocks all media previously locked using
3286 <link to="IInternalMachineControl::lockMedia"/>.
3287
3288 This method is intended to be used with teleportation so that it is
3289 possible to teleport between processes on the same machine.
3290 </desc>
3291 </method>
3292 </interface>
3293
3294 <interface
3295 name="IBIOSSettings" extends="$unknown"
3296 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
3297 wsmap="managed"
3298 >
3299 <desc>
3300 The IBIOSSettings interface represents BIOS settings of the virtual
3301 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
3302 </desc>
3303 <attribute name="logoFadeIn" type="boolean">
3304 <desc>Fade in flag for BIOS logo animation.</desc>
3305 </attribute>
3306
3307 <attribute name="logoFadeOut" type="boolean">
3308 <desc>Fade out flag for BIOS logo animation.</desc>
3309 </attribute>
3310
3311 <attribute name="logoDisplayTime" type="unsigned long">
3312 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
3313 </attribute>
3314
3315 <attribute name="logoImagePath" type="wstring">
3316 <desc>
3317 Local file system path for external BIOS splash image. Empty string
3318 means the default image is shown on boot.
3319 </desc>
3320 </attribute>
3321
3322 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
3323 <desc>Mode of the BIOS boot device menu.</desc>
3324 </attribute>
3325
3326 <attribute name="ACPIEnabled" type="boolean">
3327 <desc>ACPI support flag.</desc>
3328 </attribute>
3329
3330 <attribute name="IOAPICEnabled" type="boolean">
3331 <desc>
3332 IO APIC support flag. If set, VirtualBox will provide an IO APIC
3333 and support IRQs above 15.
3334 </desc>
3335 </attribute>
3336
3337 <attribute name="timeOffset" type="long long">
3338 <desc>
3339 Offset in milliseconds from the host system time. This allows for
3340 guests running with a different system date/time than the host.
3341 It is equivalent to setting the system date/time in the BIOS except
3342 it is not an absolute value but a relative one. Guest Additions
3343 time synchronization honors this offset.
3344 </desc>
3345 </attribute>
3346
3347 <attribute name="PXEDebugEnabled" type="boolean">
3348 <desc>
3349 PXE debug logging flag. If set, VirtualBox will write extensive
3350 PXE trace information to the release log.
3351 </desc>
3352 </attribute>
3353
3354 </interface>
3355
3356 <enum name="CleanupMode"
3357 uuid="67897c50-7cca-47a9-83f6-ce8fd8eb5441">
3358 <desc>Cleanup mode, used with <link to="IMachine::unregister" />.
3359 </desc>
3360 <const name="UnregisterOnly" value="1">
3361 <desc>Unregister only the machine, but neither delete snapshots nor detach media.</desc>
3362 </const>
3363 <const name="DetachAllReturnNone" value="2">
3364 <desc>Delete all snapshots and detach all media but return none; this will keep all media registered.</desc>
3365 </const>
3366 <const name="DetachAllReturnHardDisksOnly" value="3">
3367 <desc>Delete all snapshots, detach all media and return hard disks for closing, but not removeable media.</desc>
3368 </const>
3369 <const name="Full" value="4">
3370 <desc>Delete all snapshots, detach all media and return all media for closing.</desc>
3371 </const>
3372 </enum>
3373
3374 <interface
3375 name="IMachine" extends="$unknown"
3376 uuid="7c05b1c3-c325-46cd-820d-47648d13b7f2"
3377 wsmap="managed"
3378 >
3379 <desc>
3380 The IMachine interface represents a virtual machine, or guest, created
3381 in VirtualBox.
3382
3383 This interface is used in two contexts. First of all, a collection of
3384 objects implementing this interface is stored in the
3385 <link to="IVirtualBox::machines"/> attribute which lists all the virtual
3386 machines that are currently registered with this VirtualBox
3387 installation. Also, once a session has been opened for the given virtual
3388 machine (e.g. the virtual machine is running), the machine object
3389 associated with the open session can be queried from the session object;
3390 see <link to="ISession"/> for details.
3391
3392 The main role of this interface is to expose the settings of the virtual
3393 machine and provide methods to change various aspects of the virtual
3394 machine's configuration. For machine objects stored in the
3395 <link to="IVirtualBox::machines"/> collection, all attributes are
3396 read-only unless explicitly stated otherwise in individual attribute
3397 and method descriptions.
3398
3399 In order to change a machine setting, a session for this machine must be
3400 opened using one of the <link to="IMachine::lockMachine" /> or
3401 <link to="IMachine::launchVMProcess"/> methods. After the
3402 machine has been successfully locked for a session, a mutable machine object
3403 needs to be queried from the session object and then the desired settings
3404 changes can be applied to the returned object using IMachine attributes and
3405 methods. See the <link to="ISession"/> interface description for more
3406 information about sessions.
3407
3408 Note that IMachine does not provide methods to control virtual machine
3409 execution (such as start the machine, or power it down) -- these methods
3410 are grouped in a separate interface called <link to="IConsole" />.
3411
3412 <see>ISession, IConsole</see>
3413 </desc>
3414
3415 <attribute name="parent" type="IVirtualBox" readonly="yes">
3416 <desc>Associated parent object.</desc>
3417 </attribute>
3418
3419 <attribute name="accessible" type="boolean" readonly="yes">
3420 <desc>
3421 Whether this virtual machine is currently accessible or not.
3422
3423 A machine is always deemed accessible unless it is registered <i>and</i>
3424 its settings file cannot be read or parsed (either because the file itself
3425 is unavailable or has invalid XML contents).
3426
3427 Every time this property is read, the accessibility state of
3428 this machine is re-evaluated. If the returned value is @c false,
3429 the <link to="#accessError"/> property may be used to get the
3430 detailed error information describing the reason of
3431 inaccessibility, including XML error messages.
3432
3433 When the machine is inaccessible, only the following properties
3434 can be used on it:
3435 <ul>
3436 <li><link to="#parent"/></li>
3437 <li><link to="#id"/></li>
3438 <li><link to="#settingsFilePath"/></li>
3439 <li><link to="#accessible"/></li>
3440 <li><link to="#accessError"/></li>
3441 </ul>
3442
3443 An attempt to access any other property or method will return
3444 an error.
3445
3446 The only possible action you can perform on an inaccessible
3447 machine is to unregister it using the
3448 <link to="IMachine::unregister"/> call (or, to check
3449 for the accessibility state once more by querying this
3450 property).
3451
3452 <note>
3453 In the current implementation, once this property returns
3454 @c true, the machine will never become inaccessible
3455 later, even if its settings file cannot be successfully
3456 read/written any more (at least, until the VirtualBox
3457 server is restarted). This limitation may be removed in
3458 future releases.
3459 </note>
3460 </desc>
3461 </attribute>
3462
3463 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
3464 <desc>
3465 Error information describing the reason of machine
3466 inaccessibility.
3467
3468 Reading this property is only valid after the last call to
3469 <link to="#accessible"/> returned @c false (i.e. the
3470 machine is currently inaccessible). Otherwise, a @c null
3471 IVirtualBoxErrorInfo object will be returned.
3472 </desc>
3473 </attribute>
3474
3475 <attribute name="name" type="wstring">
3476 <desc>
3477 Name of the virtual machine.
3478
3479 Besides being used for human-readable identification purposes
3480 everywhere in VirtualBox, the virtual machine name is also used
3481 as a name of the machine's settings file and as a name of the
3482 subdirectory this settings file resides in. Thus, every time you
3483 change the value of this property, the settings file will be
3484 renamed once you call <link to="#saveSettings"/> to confirm the
3485 change. The containing subdirectory will be also renamed, but
3486 only if it has exactly the same name as the settings file
3487 itself prior to changing this property (for backward compatibility
3488 with previous API releases). The above implies the following
3489 limitations:
3490 <ul>
3491 <li>The machine name cannot be empty.</li>
3492 <li>The machine name can contain only characters that are valid
3493 file name characters according to the rules of the file
3494 system used to store VirtualBox configuration.</li>
3495 <li>You cannot have two or more machines with the same name
3496 if they use the same subdirectory for storing the machine
3497 settings files.</li>
3498 <li>You cannot change the name of the machine if it is running,
3499 or if any file in the directory containing the settings file
3500 is being used by another running machine or by any other
3501 process in the host operating system at a time when
3502 <link to="#saveSettings"/> is called.
3503 </li>
3504 </ul>
3505 If any of the above limitations are hit, <link to="#saveSettings"/>
3506 will return an appropriate error message explaining the exact
3507 reason and the changes you made to this machine will not be saved.
3508
3509 Starting with VirtualBox 4.0, a “.vbox” extension of the settings
3510 file is recommended, but not enforced. (Previous versions always
3511 used a generic ".xml" extension.)
3512 </desc>
3513 </attribute>
3514
3515 <attribute name="description" type="wstring">
3516 <desc>
3517 Description of the virtual machine.
3518
3519 The description attribute can contain any text and is
3520 typically used to describe the hardware and software
3521 configuration of the virtual machine in detail (i.e. network
3522 settings, versions of the installed software and so on).
3523 </desc>
3524 </attribute>
3525
3526 <attribute name="id" type="uuid" mod="string" readonly="yes">
3527 <desc>UUID of the virtual machine.</desc>
3528 </attribute>
3529
3530 <attribute name="OSTypeId" type="wstring">
3531 <desc>
3532 User-defined identifier of the Guest OS type.
3533 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
3534 an IGuestOSType object representing details about the given
3535 Guest OS type.
3536 <note>
3537 This value may differ from the value returned by
3538 <link to="IGuest::OSTypeId"/> if Guest Additions are
3539 installed to the guest OS.
3540 </note>
3541 </desc>
3542 </attribute>
3543
3544 <attribute name="HardwareVersion" type="wstring">
3545 <desc>Hardware version identifier. Internal use only for now.</desc>
3546 </attribute>
3547
3548 <attribute name="hardwareUUID" type="uuid" mod="string">
3549 <desc>
3550 The UUID presented to the guest via memory tables, hardware and guest
3551 properties. For most VMs this is the same as the @a id, but for VMs
3552 which have been cloned or teleported it may be the same as the source
3553 VM. This latter is because the guest shouldn't notice that it was
3554 cloned or teleported.
3555 </desc>
3556 </attribute>
3557
3558 <attribute name="CPUCount" type="unsigned long">
3559 <desc>Number of virtual CPUs in the VM.</desc>
3560 </attribute>
3561
3562 <attribute name="CPUHotPlugEnabled" type="boolean">
3563 <desc>
3564 This setting determines whether VirtualBox allows CPU
3565 hotplugging for this machine.</desc>
3566 </attribute>
3567
3568 <attribute name="CPUExecutionCap" type="unsigned long">
3569 <desc>
3570 Means to limit the number of CPU cycles a guest can use. The unit
3571 is percentage of host CPU cycles per second. The valid range
3572 is 1 - 100. 100 (the default) implies no limit.
3573 </desc>
3574 </attribute>
3575
3576 <attribute name="memorySize" type="unsigned long">
3577 <desc>System memory size in megabytes.</desc>
3578 </attribute>
3579
3580 <attribute name="memoryBalloonSize" type="unsigned long">
3581 <desc>Memory balloon size in megabytes.</desc>
3582 </attribute>
3583
3584 <attribute name="PageFusionEnabled" type="boolean">
3585 <desc>
3586 This setting determines whether VirtualBox allows page
3587 fusion for this machine (64 bits host only).
3588 </desc>
3589 </attribute>
3590
3591 <attribute name="VRAMSize" type="unsigned long">
3592 <desc>Video memory size in megabytes.</desc>
3593 </attribute>
3594
3595 <attribute name="accelerate3DEnabled" type="boolean" default="false">
3596 <desc>
3597 This setting determines whether VirtualBox allows this machine to make
3598 use of the 3D graphics support available on the host.</desc>
3599 </attribute>
3600
3601 <attribute name="accelerate2DVideoEnabled" type="boolean" default="false">
3602 <desc>
3603 This setting determines whether VirtualBox allows this machine to make
3604 use of the 2D video acceleration support available on the host.</desc>
3605 </attribute>
3606
3607 <attribute name="monitorCount" type="unsigned long">
3608 <desc>
3609 Number of virtual monitors.
3610 <note>
3611 Only effective on Windows XP and later guests with
3612 Guest Additions installed.
3613 </note>
3614 </desc>
3615 </attribute>
3616
3617 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
3618 <desc>Object containing all BIOS settings.</desc>
3619 </attribute>
3620
3621 <attribute name="firmwareType" type="FirmwareType">
3622 <desc>Type of firmware (such as legacy BIOS or EFI), used for initial
3623 bootstrap in this VM.</desc>
3624 </attribute>
3625
3626 <attribute name="pointingHidType" type="PointingHidType">
3627 <desc>Type of pointing HID (such as mouse or tablet) used in this VM.
3628 The default is typically "PS2Mouse" but can vary depending on the
3629 requirements of the guest operating system.</desc>
3630 </attribute>
3631
3632 <attribute name="keyboardHidType" type="KeyboardHidType">
3633 <desc>Type of keyboard HID used in this VM.
3634 The default is typically "PS2Keyboard" but can vary depending on the
3635 requirements of the guest operating system.</desc>
3636 </attribute>
3637
3638 <attribute name="hpetEnabled" type="boolean">
3639 <desc>This attribute controls if High Precision Event Timer (HPET) is
3640 enabled in this VM. Use this property if you want to provide guests
3641 with additional time source, or if guest requires HPET to function correctly.
3642 Default is false.</desc>
3643 </attribute>
3644
3645 <attribute name="chipsetType" type="ChipsetType">
3646 <desc>Chipset type used in this VM.</desc>
3647 </attribute>
3648
3649 <attribute name="snapshotFolder" type="wstring">
3650 <desc>
3651 Full path to the directory used to store snapshot data
3652 (differencing media and saved state files) of this machine.
3653
3654 The initial value of this property is
3655 <tt>&lt;</tt><link to="#settingsFilePath">
3656 path_to_settings_file</link><tt>&gt;/&lt;</tt>
3657 <link to="#id">machine_uuid</link>
3658 <tt>&gt;</tt>.
3659
3660 Currently, it is an error to try to change this property on
3661 a machine that has snapshots (because this would require to
3662 move possibly large files to a different location).
3663 A separate method will be available for this purpose later.
3664
3665 <note>
3666 Setting this property to @c null or to an empty string will restore
3667 the initial value.
3668 </note>
3669 <note>
3670 When setting this property, the specified path can be
3671 absolute (full path) or relative to the directory where the
3672 <link to="#settingsFilePath">machine settings file</link>
3673 is located. When reading this property, a full path is
3674 always returned.
3675 </note>
3676 <note>
3677 The specified path may not exist, it will be created
3678 when necessary.
3679 </note>
3680 </desc>
3681 </attribute>
3682
3683 <attribute name="VRDEServer" type="IVRDEServer" readonly="yes">
3684 <desc>VirtualBox Remote Desktop Extension (VRDE) server object.</desc>
3685 </attribute>
3686
3687 <attribute name="mediumAttachments" type="IMediumAttachment" readonly="yes" safearray="yes">
3688 <desc>Array of media attached to this machine.</desc>
3689 </attribute>
3690
3691 <attribute name="USBController" type="IUSBController" readonly="yes">
3692 <desc>
3693 Associated USB controller object.
3694
3695 <note>
3696 If USB functionality is not available in the given edition of
3697 VirtualBox, this method will set the result code to @c E_NOTIMPL.
3698 </note>
3699 </desc>
3700 </attribute>
3701
3702 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
3703 <desc>Associated audio adapter, always present.</desc>
3704 </attribute>
3705
3706 <attribute name="storageControllers" type="IStorageController" readonly="yes" safearray="yes">
3707 <desc>Array of storage controllers attached to this machine.</desc>
3708 </attribute>
3709
3710 <attribute name="settingsFilePath" type="wstring" readonly="yes">
3711 <desc>
3712 Full name of the file containing machine settings data.
3713 </desc>
3714 </attribute>
3715
3716 <attribute name="settingsModified" type="boolean" readonly="yes">
3717 <desc>
3718 Whether the settings of this machine have been modified
3719 (but neither yet saved nor discarded).
3720 <note>
3721 Reading this property is only valid on instances returned
3722 by <link to="ISession::machine"/> and on new machines
3723 created by <link to="IVirtualBox::createMachine"/> or opened
3724 by <link to="IVirtualBox::openMachine"/> but not
3725 yet registered, or on unregistered machines after calling
3726 <link to="IMachine::unregister"/>. For all other
3727 cases, the settings can never be modified.
3728 </note>
3729 <note>
3730 For newly created unregistered machines, the value of this
3731 property is always @c true until <link to="#saveSettings"/>
3732 is called (no matter if any machine settings have been
3733 changed after the creation or not). For opened machines
3734 the value is set to @c false (and then follows to normal rules).
3735 </note>
3736 </desc>
3737 </attribute>
3738
3739 <attribute name="sessionState" type="SessionState" readonly="yes">
3740 <desc>Current session state for this machine.</desc>
3741 </attribute>
3742
3743 <attribute name="sessionType" type="wstring" readonly="yes">
3744 <desc>
3745 Type of the session. If <link to="#sessionState"/> is
3746 Spawning or Locked, this attribute contains the
3747 same value as passed to the
3748 <link to="IMachine::launchVMProcess"/> method in the
3749 @a type parameter. If the session was used with
3750 <link to="IMachine::lockMachine" />, or if
3751 <link to="#sessionState"/> is SessionClosed, the value of this
3752 attribute is an empty string.
3753 </desc>
3754 </attribute>
3755
3756 <attribute name="sessionPid" type="unsigned long" readonly="yes">
3757 <desc>
3758 Identifier of the session process. This attribute contains the
3759 platform-dependent identifier of the process whose session was
3760 used with <link to="IMachine::lockMachine" /> call. The returned
3761 value is only valid if <link to="#sessionState"/> is Locked or
3762 Unlocking by the time this property is read.
3763 </desc>
3764 </attribute>
3765
3766 <attribute name="state" type="MachineState" readonly="yes">
3767 <desc>Current execution state of this machine.</desc>
3768 </attribute>
3769
3770 <attribute name="lastStateChange" type="long long" readonly="yes">
3771 <desc>
3772 Time stamp of the last execution state change,
3773 in milliseconds since 1970-01-01 UTC.
3774 </desc>
3775 </attribute>
3776
3777 <attribute name="stateFilePath" type="wstring" readonly="yes">
3778 <desc>
3779 Full path to the file that stores the execution state of
3780 the machine when it is in the <link to="MachineState_Saved"/> state.
3781 <note>
3782 When the machine is not in the Saved state, this attribute is
3783 an empty string.
3784 </note>
3785 </desc>
3786 </attribute>
3787
3788 <attribute name="logFolder" type="wstring" readonly="yes">
3789 <desc>
3790 Full path to the folder that stores a set of rotated log files
3791 recorded during machine execution. The most recent log file is
3792 named <tt>VBox.log</tt>, the previous log file is
3793 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
3794 in the current version).
3795 </desc>
3796 </attribute>
3797
3798 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
3799 <desc>
3800 Current snapshot of this machine. This is @c null if the machine
3801 currently has no snapshots. If it is not @c null, then it was
3802 set by one of <link to="IConsole::takeSnapshot" />,
3803 <link to="IConsole::deleteSnapshot" />
3804 or <link to="IConsole::restoreSnapshot" />, depending on which
3805 was called last. See <link to="ISnapshot"/> for details.
3806 </desc>
3807 </attribute>
3808
3809 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
3810 <desc>
3811 Number of snapshots taken on this machine. Zero means the
3812 machine doesn't have any snapshots.
3813 </desc>
3814 </attribute>
3815
3816 <attribute name="currentStateModified" type="boolean" readonly="yes">
3817 <desc>
3818 Returns @c true if the current state of the machine is not
3819 identical to the state stored in the current snapshot.
3820
3821 The current state is identical to the current snapshot only
3822 directly after one of the following calls are made:
3823
3824 <ul>
3825 <li><link to="IConsole::restoreSnapshot"/>
3826 </li>
3827 <li><link to="IConsole::takeSnapshot"/> (issued on a
3828 "powered off" or "saved" machine, for which
3829 <link to="#settingsModified"/> returns @c false)
3830 </li>
3831 </ul>
3832
3833 The current state remains identical until one of the following
3834 happens:
3835 <ul>
3836 <li>settings of the machine are changed</li>
3837 <li>the saved state is deleted</li>
3838 <li>the current snapshot is deleted</li>
3839 <li>an attempt to execute the machine is made</li>
3840 </ul>
3841
3842 <note>
3843 For machines that don't have snapshots, this property is
3844 always @c false.
3845 </note>
3846 </desc>
3847 </attribute>
3848
3849 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
3850 <desc>
3851 Collection of shared folders for this machine (permanent shared
3852 folders). These folders are shared automatically at machine startup
3853 and available only to the guest OS installed within this machine.
3854
3855 New shared folders are added to the collection using
3856 <link to="#createSharedFolder"/>. Existing shared folders can be
3857 removed using <link to="#removeSharedFolder"/>.
3858 </desc>
3859 </attribute>
3860
3861 <attribute name="clipboardMode" type="ClipboardMode">
3862 <desc>
3863 Synchronization mode between the host OS clipboard
3864 and the guest OS clipboard.
3865 </desc>
3866 </attribute>
3867
3868 <attribute name="guestPropertyNotificationPatterns" type="wstring">
3869 <desc>
3870 A comma-separated list of simple glob patterns. Changes to guest
3871 properties whose name matches one of the patterns will generate an
3872 <link to="IGuestPropertyChangedEvent"/> signal.
3873 </desc>
3874 </attribute>
3875
3876 <attribute name="teleporterEnabled" type="boolean">
3877 <desc>
3878 When set to @a true, the virtual machine becomes a target teleporter
3879 the next time it is powered on. This can only set to @a true when the
3880 VM is in the @a PoweredOff or @a Aborted state.
3881
3882 <!-- This property is automatically set to @a false when the VM is powered
3883 on. (bird: This doesn't work yet ) -->
3884 </desc>
3885 </attribute>
3886
3887 <attribute name="teleporterPort" type="unsigned long">
3888 <desc>
3889 The TCP port the target teleporter will listen for incoming
3890 teleportations on.
3891
3892 0 means the port is automatically selected upon power on. The actual
3893 value can be read from this property while the machine is waiting for
3894 incoming teleportations.
3895 </desc>
3896 </attribute>
3897
3898 <attribute name="teleporterAddress" type="wstring">
3899 <desc>
3900 The address the target teleporter will listen on. If set to an empty
3901 string, it will listen on all addresses.
3902 </desc>
3903 </attribute>
3904
3905 <attribute name="teleporterPassword" type="wstring">
3906 <desc>
3907 The password to check for on the target teleporter. This is just a
3908 very basic measure to prevent simple hacks and operators accidentally
3909 beaming a virtual machine to the wrong place.
3910 </desc>
3911 </attribute>
3912
3913 <attribute name="faultToleranceState" type="FaultToleranceState">
3914 <desc>
3915 Fault tolerance state; disabled, source or target.
3916 This property can be changed at any time. If you change it for a running
3917 VM, then the fault tolerance address and port must be set beforehand.
3918 </desc>
3919 </attribute>
3920
3921 <attribute name="faultTolerancePort" type="unsigned long">
3922 <desc>
3923 The TCP port the fault tolerance source or target will use for
3924 communication.
3925 </desc>
3926 </attribute>
3927
3928 <attribute name="faultToleranceAddress" type="wstring">
3929 <desc>
3930 The address the fault tolerance source or target.
3931 </desc>
3932 </attribute>
3933
3934 <attribute name="faultTolerancePassword" type="wstring">
3935 <desc>
3936 The password to check for on the standby VM. This is just a
3937 very basic measure to prevent simple hacks and operators accidentally
3938 choosing the wrong standby VM.
3939 </desc>
3940 </attribute>
3941
3942 <attribute name="faultToleranceSyncInterval" type="unsigned long">
3943 <desc>
3944 The interval in ms used for syncing the state between source and target.
3945 </desc>
3946 </attribute>
3947
3948 <attribute name="RTCUseUTC" type="boolean">
3949 <desc>
3950 When set to @a true, the RTC device of the virtual machine will run
3951 in UTC time, otherwise in local time. Especially Unix guests prefer
3952 the time in UTC.
3953 </desc>
3954 </attribute>
3955
3956 <attribute name="ioCacheEnabled" type="boolean">
3957 <desc>
3958 When set to @a true, the builtin I/O cache of the virtual machine
3959 will be enabled.
3960 </desc>
3961 </attribute>
3962
3963 <attribute name="ioCacheSize" type="unsigned long">
3964 <desc>
3965 Maximum size of the I/O cache in MB.
3966 </desc>
3967 </attribute>
3968
3969 <method name="lockMachine">
3970 <desc>
3971 Locks the machine for the given session to enable the caller
3972 to make changes to the machine or start the VM or control
3973 VM execution.
3974
3975 There are two ways to lock a machine for such uses:
3976
3977 <ul>
3978 <li>If you want to make changes to the machine settings,
3979 you must obtain an exclusive write lock on the machine
3980 by setting @a lockType to @c Write.
3981
3982 This will only succeed if no other process has locked
3983 the machine to prevent conflicting changes. Only after
3984 an exclusive write lock has been obtained using this method, one
3985 can change all VM settings or execute the VM in the process
3986 space of the session object. (Note that the latter is only of
3987 interest if you actually want to write a new front-end for
3988 virtual machines; but this API gets called internally by
3989 the existing front-ends such as VBoxHeadless and the VirtualBox
3990 GUI to acquire a write lock on the machine that they are running.)
3991
3992 On success, write-locking the machine for a session creates
3993 a second copy of the IMachine object. It is this second object
3994 upon which changes can be made; in VirtualBox terminology, the
3995 second copy is "mutable". It is only this second, mutable machine
3996 object upon which you can call methods that change the
3997 machine state. After having called this method, you can
3998 obtain this second, mutable machine object using the
3999 <link to="ISession::machine" /> attribute.
4000 </li>
4001 <li>If you only want to check the machine state or control
4002 machine execution without actually changing machine
4003 settings (e.g. to get access to VM statistics or take
4004 a snapshot or save the machine state), then set the
4005 @a lockType argument to @c Shared.
4006
4007 If no other session has obtained a lock, you will obtain an
4008 exclusive write lock as described above. However, if another
4009 session has already obtained such a lock, then a link to that
4010 existing session will be established which allows you
4011 to control that existing session.
4012
4013 To find out which type of lock was obtained, you can
4014 inspect <link to="ISession::type" />, which will have been
4015 set to either @c WriteLock or @c Shared.
4016 </li>
4017 </ul>
4018
4019 In either case, you can get access to the <link to="IConsole" />
4020 object which controls VM execution.
4021
4022 Also in all of the above cases, one must always call
4023 <link to="ISession::unlockMachine" /> to release the lock on the machine, or
4024 the machine's state will eventually be set to "Aborted".
4025
4026 To change settings on a machine, the following sequence is typically
4027 performed:
4028
4029 <ol>
4030 <li>Call this method to obtain an exclusive write lock for the current session.</li>
4031
4032 <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
4033
4034 <li>Change the settings of the machine by invoking IMachine methods.</li>
4035
4036 <li>Call <link to="IMachine::saveSettings" />.</li>
4037
4038 <li>Release the write lock by calling <link to="ISession::unlockMachine"/>.</li>
4039 </ol>
4040
4041 <result name="E_UNEXPECTED">
4042 Virtual machine not registered.
4043 </result>
4044 <result name="E_ACCESSDENIED">
4045 Process not started by OpenRemoteSession.
4046 </result>
4047 <result name="VBOX_E_INVALID_OBJECT_STATE">
4048 Session already open or being opened.
4049 </result>
4050 <result name="VBOX_E_VM_ERROR">
4051 Failed to assign machine to session.
4052 </result>
4053 </desc>
4054 <param name="session" type="ISession" dir="in">
4055 <desc>
4056 Session object for which the machine will be locked.
4057 </desc>
4058 </param>
4059 <param name="lockType" type="LockType" dir="in">
4060 <desc>
4061 If set to @c Write, then attempt to acquire an exclusive write lock or fail.
4062 If set to @c Shared, then either acquire an exclusive write lock or establish
4063 a link to an existing session.
4064 </desc>
4065 </param>
4066 </method>
4067
4068 <method name="launchVMProcess">
4069 <desc>
4070 Spawns a new process that will execute the virtual machine and obtains a shared
4071 lock on the machine for the calling session.
4072
4073 If launching the VM succeeds, the new VM process will create its own session
4074 and write-lock the machine for it, preventing conflicting changes from other
4075 processes. If the machine is already locked (because it is already running or
4076 because another session has a write lock), launching the VM process will therefore
4077 fail. Reversely, future attempts to obtain a write lock will also fail while the
4078 machine is running.
4079
4080 The caller's session object remains separate from the session opened by the new
4081 VM process. It receives its own <link to="IConsole" /> object which can be used
4082 to control machine execution, but it cannot be used to change all VM settings
4083 which would be available after a <link to="#lockMachine" /> call.
4084
4085 The caller must eventually release the session's shared lock by calling
4086 <link to="ISession::unlockMachine" /> on the local session object once this call
4087 has returned. However, the session's state (see <link to="ISession::state" />)
4088 will not return to "Unlocked" until the remote session has also unlocked
4089 the machine (i.e. the machine has stopped running).
4090
4091 Launching a VM process can take some time (a new VM is started in a new process,
4092 for which memory and other resources need to be set up). Because of this,
4093 an <link to="IProgress" /> object is returned to allow the caller to wait
4094 for this asynchronous operation to be completed. Until then, the caller's
4095 session object remains in the "Unlocked" state, and its <link to="ISession::machine" />
4096 and <link to="ISession::console" /> attributes cannot be accessed.
4097 It is recommended to use <link to="IProgress::waitForCompletion" /> or
4098 similar calls to wait for completion. Completion is signalled when the VM
4099 is powered on. If launching the VM fails, error messages can be queried
4100 via the progress object, if available.
4101
4102 The progress object will have at least 2 sub-operations. The first
4103 operation covers the period up to the new VM process calls powerUp.
4104 The subsequent operations mirror the <link to="IConsole::powerUp"/>
4105 progress object. Because <link to="IConsole::powerUp"/> may require
4106 some extra sub-operations, the <link to="IProgress::operationCount"/>
4107 may change at the completion of operation.
4108
4109 For details on the teleportation progress operation, see
4110 <link to="IConsole::powerUp"/>.
4111
4112 The @a environment argument is a string containing definitions of
4113 environment variables in the following format:
4114 @code
4115 NAME[=VALUE]\n
4116 NAME[=VALUE]\n
4117 ...
4118 @endcode
4119 where <tt>\\n</tt> is the new line character. These environment
4120 variables will be appended to the environment of the VirtualBox server
4121 process. If an environment variable exists both in the server process
4122 and in this list, the value from this list takes precedence over the
4123 server's variable. If the value of the environment variable is
4124 omitted, this variable will be removed from the resulting environment.
4125 If the environment string is @c null or empty, the server environment
4126 is inherited by the started process as is.
4127
4128 <result name="E_UNEXPECTED">
4129 Virtual machine not registered.
4130 </result>
4131 <result name="E_INVALIDARG">
4132 Invalid session type @a type.
4133 </result>
4134 <result name="VBOX_E_OBJECT_NOT_FOUND">
4135 No machine matching @a machineId found.
4136 </result>
4137 <result name="VBOX_E_INVALID_OBJECT_STATE">
4138 Session already open or being opened.
4139 </result>
4140 <result name="VBOX_E_IPRT_ERROR">
4141 Launching process for machine failed.
4142 </result>
4143 <result name="VBOX_E_VM_ERROR">
4144 Failed to assign machine to session.
4145 </result>
4146 </desc>
4147 <param name="session" type="ISession" dir="in">
4148 <desc>
4149 Client session object to which the VM process will be connected (this
4150 must be in "Unlocked" state).
4151 </desc>
4152 </param>
4153 <param name="type" type="wstring" dir="in">
4154 <desc>
4155 Front-end to use for the new VM process. The following are currently supported:
4156 <ul>
4157 <li><tt>"gui"</tt>: VirtualBox Qt GUI front-end</li>
4158 <li><tt>"headless"</tt>: VBoxHeadless (VRDE Server) front-end</li>
4159 <li><tt>"sdl"</tt>: VirtualBox SDL front-end</li>
4160 </ul>
4161 </desc>
4162 </param>
4163 <param name="environment" type="wstring" dir="in">
4164 <desc>
4165 Environment to pass to the VM process.
4166 </desc>
4167 </param>
4168 <param name="progress" type="IProgress" dir="return">
4169 <desc>Progress object to track the operation completion.</desc>
4170 </param>
4171 </method>
4172
4173 <method name="setBootOrder">
4174 <desc>
4175 Puts the given device to the specified position in
4176 the boot order.
4177
4178 To indicate that no device is associated with the given position,
4179 <link to="DeviceType_Null"/> should be used.
4180
4181 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4182
4183 <result name="E_INVALIDARG">
4184 Boot @a position out of range.
4185 </result>
4186 <result name="E_NOTIMPL">
4187 Booting from USB @a device currently not supported.
4188 </result>
4189
4190 </desc>
4191 <param name="position" type="unsigned long" dir="in">
4192 <desc>
4193 Position in the boot order (@c 1 to the total number of
4194 devices the machine can boot from, as returned by
4195 <link to="ISystemProperties::maxBootPosition"/>).
4196 </desc>
4197 </param>
4198 <param name="device" type="DeviceType" dir="in">
4199 <desc>
4200 The type of the device used to boot at the given position.
4201 </desc>
4202 </param>
4203 </method>
4204
4205 <method name="getBootOrder" const="yes">
4206 <desc>
4207 Returns the device type that occupies the specified
4208 position in the boot order.
4209
4210 @todo [remove?]
4211 If the machine can have more than one device of the returned type
4212 (such as hard disks), then a separate method should be used to
4213 retrieve the individual device that occupies the given position.
4214
4215 If here are no devices at the given position, then
4216 <link to="DeviceType_Null"/> is returned.
4217
4218 @todo getHardDiskBootOrder(), getNetworkBootOrder()
4219
4220 <result name="E_INVALIDARG">
4221 Boot @a position out of range.
4222 </result>
4223
4224 </desc>
4225 <param name="position" type="unsigned long" dir="in">
4226 <desc>
4227 Position in the boot order (@c 1 to the total number of
4228 devices the machine can boot from, as returned by
4229 <link to="ISystemProperties::maxBootPosition"/>).
4230 </desc>
4231 </param>
4232 <param name="device" type="DeviceType" dir="return">
4233 <desc>
4234 Device at the given position.
4235 </desc>
4236 </param>
4237 </method>
4238
4239 <method name="attachDevice">
4240 <desc>
4241 Attaches a device and optionally mounts a medium to the given storage
4242 controller (<link to="IStorageController" />, identified by @a name),
4243 at the indicated port and device.
4244
4245 This method is intended for managing storage devices in general while a
4246 machine is powered off. It can be used to attach and detach fixed
4247 and removeable media. The following kind of media can be attached
4248 to a machine:
4249
4250 <ul>
4251 <li>For fixed and removable media, you can pass in a medium that was
4252 previously opened using <link to="IVirtualBox::openMedium" />.
4253 </li>
4254
4255 <li>Only for storage devices supporting removable media (such as
4256 DVDs and floppies), you can also specify a null pointer to
4257 indicate an empty drive or one of the medium objects listed
4258 in the <link to="IHost::DVDDrives" /> and <link to="IHost::floppyDrives"/>
4259 arrays to indicate a host drive.
4260 For removeable devices, you can also use <link to="IMachine::mountMedium"/>
4261 to change the media while the machine is running.
4262 </li>
4263 </ul>
4264
4265 In a VM's default configuration of virtual machines, the secondary
4266 master of the IDE controller is used for a CD/DVD drive.
4267
4268 After calling this returns successfully, a new instance of
4269 <link to="IMediumAttachment"/> will appear in the machine's list of medium
4270 attachments (see <link to="IMachine::mediumAttachments"/>).
4271
4272 See <link to="IMedium"/> and <link to="IMediumAttachment"/> for more
4273 information about attaching media.
4274
4275 The specified device slot must not have a device attached to it,
4276 or this method will fail.
4277
4278 <note>
4279 You cannot attach a device to a newly created machine until
4280 this machine's settings are saved to disk using
4281 <link to="#saveSettings"/>.
4282 </note>
4283 <note>
4284 If the medium is being attached indirectly, a new differencing medium
4285 will implicitly be created for it and attached instead. If the
4286 changes made to the machine settings (including this indirect
4287 attachment) are later cancelled using <link to="#discardSettings"/>,
4288 this implicitly created differencing medium will implicitly
4289 be deleted.
4290 </note>
4291
4292 <result name="E_INVALIDARG">
4293 SATA device, SATA port, IDE port or IDE slot out of range, or
4294 file or UUID not found.
4295 </result>
4296 <result name="VBOX_E_INVALID_OBJECT_STATE">
4297 Machine must be registered before media can be attached.
4298 </result>
4299 <result name="VBOX_E_INVALID_VM_STATE">
4300 Invalid machine state.
4301 </result>
4302 <result name="VBOX_E_OBJECT_IN_USE">
4303 A medium is already attached to this or another virtual machine.
4304 </result>
4305
4306 </desc>
4307 <param name="name" type="wstring" dir="in">
4308 <desc>Name of the storage controller to attach the device to.</desc>
4309 </param>
4310 <param name="controllerPort" type="long" dir="in">
4311 <desc>Port to attach the device to. For an IDE controller, 0 specifies
4312 the primary controller and 1 specifies the secondary controller.
4313 For a SCSI controller, this must range from 0 to 15; for a SATA controller,
4314 from 0 to 29; for an SAS controller, from 0 to 7.</desc>
4315 </param>
4316 <param name="device" type="long" dir="in">
4317 <desc>Device slot in the given port to attach the device to. This is only
4318 relevant for IDE controllers, for which 0 specifies the master device and
4319 1 specifies the slave device. For all other controller types, this must
4320 be 0.</desc>
4321 </param>
4322 <param name="type" type="DeviceType" dir="in">
4323 <desc>Device type of the attached device. For media opened by
4324 <link to="IVirtualBox::openMedium" />, this must match the device type
4325 specified there.</desc>
4326 </param>
4327 <param name="medium" type="IMedium" dir="in">
4328 <desc>Medium to mount or NULL for an empty drive.</desc>
4329 </param>
4330 </method>
4331
4332 <method name="detachDevice">
4333 <desc>
4334 Detaches the device attached to a device slot of the specified bus.
4335
4336 Detaching the device from the virtual machine is deferred. This means
4337 that the medium remains associated with the machine when this method
4338 returns and gets actually de-associated only after a successful
4339 <link to="#saveSettings"/> call. See <link to="IMedium"/>
4340 for more detailed information about attaching media.
4341
4342 <note>
4343 You cannot detach a device from a running machine.
4344 </note>
4345 <note>
4346 Detaching differencing media implicitly created by <link
4347 to="#attachDevice"/> for the indirect attachment using this
4348 method will <b>not</b> implicitly delete them. The
4349 <link to="IMedium::deleteStorage"/> operation should be
4350 explicitly performed by the caller after the medium is successfully
4351 detached and the settings are saved with
4352 <link to="#saveSettings"/>, if it is the desired action.
4353 </note>
4354
4355 <result name="VBOX_E_INVALID_VM_STATE">
4356 Attempt to detach medium from a running virtual machine.
4357 </result>
4358 <result name="VBOX_E_OBJECT_NOT_FOUND">
4359 No medium attached to given slot/bus.
4360 </result>
4361 <result name="VBOX_E_NOT_SUPPORTED">
4362 Medium format does not support storage deletion.
4363 </result>
4364
4365 </desc>
4366 <param name="name" type="wstring" dir="in">
4367 <desc>Name of the storage controller to detach the medium from.</desc>
4368 </param>
4369 <param name="controllerPort" type="long" dir="in">
4370 <desc>Port number to detach the medium from.</desc>
4371 </param>
4372 <param name="device" type="long" dir="in">
4373 <desc>Device slot number to detach the medium from.</desc>
4374 </param>
4375 </method>
4376
4377 <method name="passthroughDevice">
4378 <desc>
4379 Sets the passthrough mode of an existing DVD device. Changing the
4380 setting while the VM is running is forbidden. The setting is only used
4381 if at VM start the device is configured as a host DVD drive, in all
4382 other cases it is ignored. The device must already exist; see
4383 <link to="IMachine::attachDevice"/> for how to attach a new device.
4384
4385 The @a controllerPort and @a device parameters specify the device slot and
4386 have have the same meaning as with <link to="IMachine::attachDevice" />.
4387
4388 <result name="E_INVALIDARG">
4389 SATA device, SATA port, IDE port or IDE slot out of range.
4390 </result>
4391 <result name="VBOX_E_INVALID_OBJECT_STATE">
4392 Attempt to modify an unregistered virtual machine.
4393 </result>
4394 <result name="VBOX_E_INVALID_VM_STATE">
4395 Invalid machine state.
4396 </result>
4397
4398 </desc>
4399 <param name="name" type="wstring" dir="in">
4400 <desc>Name of the storage controller.</desc>
4401 </param>
4402 <param name="controllerPort" type="long" dir="in">
4403 <desc>Storage controller port.</desc>
4404 </param>
4405 <param name="device" type="long" dir="in">
4406 <desc>Device slot in the given port.</desc>
4407 </param>
4408 <param name="passthrough" type="boolean" dir="in">
4409 <desc>New value for the passthrough setting.</desc>
4410 </param>
4411 </method>
4412
4413 <method name="mountMedium">
4414 <desc>
4415 Mounts a medium (<link to="IMedium" />, identified
4416 by the given UUID @a id) to the given storage controller
4417 (<link to="IStorageController" />, identified by @a name),
4418 at the indicated port and device. The device must already exist;
4419 see <link to="IMachine::attachDevice"/> for how to attach a new device.
4420
4421 This method is intended only for managing removable media, where the
4422 device is fixed but media is changeable at runtime (such as DVDs
4423 and floppies). It cannot be used for fixed media such as hard disks.
4424
4425 The @a controllerPort and @a device parameters specify the device slot and
4426 have have the same meaning as with <link to="IMachine::attachDevice" />.
4427
4428 The specified device slot can have a medium mounted, which will be
4429 unmounted first. Specifying a zero UUID (or an empty string) for
4430 @a medium does just an unmount.
4431
4432 See <link to="IMedium"/> for more detailed information about
4433 attaching media.
4434
4435 <result name="E_INVALIDARG">
4436 SATA device, SATA port, IDE port or IDE slot out of range.
4437 </result>
4438 <result name="VBOX_E_INVALID_OBJECT_STATE">
4439 Attempt to attach medium to an unregistered virtual machine.
4440 </result>
4441 <result name="VBOX_E_INVALID_VM_STATE">
4442 Invalid machine state.
4443 </result>
4444 <result name="VBOX_E_OBJECT_IN_USE">
4445 Medium already attached to this or another virtual machine.
4446 </result>
4447
4448 </desc>
4449 <param name="name" type="wstring" dir="in">
4450 <desc>Name of the storage controller to attach the medium to.</desc>
4451 </param>
4452 <param name="controllerPort" type="long" dir="in">
4453 <desc>Port to attach the medium to.</desc>
4454 </param>
4455 <param name="device" type="long" dir="in">
4456 <desc>Device slot in the given port to attach the medium to.</desc>
4457 </param>
4458 <param name="medium" type="IMedium" dir="in">
4459 <desc>Medium to mount or NULL for an empty drive.</desc>
4460 </param>
4461 <param name="force" type="boolean" dir="in">
4462 <desc>Allows to force unmount/mount of a medium which is locked by
4463 the device slot in the given port to attach the medium to.</desc>
4464 </param>
4465 </method>
4466
4467 <method name="getMedium" const="yes">
4468 <desc>
4469 Returns the virtual medium attached to a device slot of the specified
4470 bus.
4471
4472 Note that if the medium was indirectly attached by
4473 <link to="#mountMedium"/> to the given device slot then this
4474 method will return not the same object as passed to the
4475 <link to="#mountMedium"/> call. See <link to="IMedium"/> for
4476 more detailed information about mounting a medium.
4477
4478 <result name="VBOX_E_OBJECT_NOT_FOUND">
4479 No medium attached to given slot/bus.
4480 </result>
4481
4482 </desc>
4483 <param name="name" type="wstring" dir="in">
4484 <desc>Name of the storage controller the medium is attached to.</desc>
4485 </param>
4486 <param name="controllerPort" type="long" dir="in">
4487 <desc>Port to query.</desc>
4488 </param>
4489 <param name="device" type="long" dir="in">
4490 <desc>Device slot in the given port to query.</desc>
4491 </param>
4492 <param name="medium" type="IMedium" dir="return">
4493 <desc>Attached medium object.</desc>
4494 </param>
4495 </method>
4496
4497 <method name="getMediumAttachmentsOfController" const="yes">
4498 <desc>
4499 Returns an array of medium attachments which are attached to the
4500 the controller with the given name.
4501
4502 <result name="VBOX_E_OBJECT_NOT_FOUND">
4503 A storage controller with given name doesn't exist.
4504 </result>
4505 </desc>
4506 <param name="name" type="wstring" dir="in"/>
4507 <param name="mediumAttachments" type="IMediumAttachment" safearray="yes" dir="return"/>
4508 </method>
4509
4510 <method name="getMediumAttachment" const="yes">
4511 <desc>
4512 Returns a medium attachment which corresponds to the controller with
4513 the given name, on the given port and device slot.
4514
4515 <result name="VBOX_E_OBJECT_NOT_FOUND">
4516 No attachment exists for the given controller/port/device combination.
4517 </result>
4518 </desc>
4519 <param name="name" type="wstring" dir="in"/>
4520 <param name="controllerPort" type="long" dir="in"/>
4521 <param name="device" type="long" dir="in"/>
4522 <param name="attachment" type="IMediumAttachment" dir="return"/>
4523 </method>
4524
4525 <method name="getNetworkAdapter" const="yes">
4526 <desc>
4527 Returns the network adapter associated with the given slot.
4528 Slots are numbered sequentially, starting with zero. The total
4529 number of adapters per machine is defined by the
4530 <link to="ISystemProperties::networkAdapterCount"/> property,
4531 so the maximum slot number is one less than that property's value.
4532
4533 <result name="E_INVALIDARG">
4534 Invalid @a slot number.
4535 </result>
4536
4537 </desc>
4538 <param name="slot" type="unsigned long" dir="in"/>
4539 <param name="adapter" type="INetworkAdapter" dir="return"/>
4540 </method>
4541
4542 <method name="addStorageController">
4543 <desc>
4544 Adds a new storage controller (SCSI, SAS or SATA controller) to the
4545 machine and returns it as an instance of
4546 <link to="IStorageController" />.
4547
4548 @a name identifies the controller for subsequent calls such as
4549 <link to="#getStorageControllerByName" />,
4550 <link to="#getStorageControllerByInstance" />,
4551 <link to="#removeStorageController" />,
4552 <link to="#attachDevice" /> or <link to="#mountMedium" />.
4553
4554 After the controller has been added, you can set its exact
4555 type by setting the <link to="IStorageController::controllerType" />.
4556
4557 <result name="VBOX_E_OBJECT_IN_USE">
4558 A storage controller with given name exists already.
4559 </result>
4560 <result name="E_INVALIDARG">
4561 Invalid @a controllerType.
4562 </result>
4563 </desc>
4564 <param name="name" type="wstring" dir="in"/>
4565 <param name="connectionType" type="StorageBus" dir="in"/>
4566 <param name="controller" type="IStorageController" dir="return"/>
4567 </method>
4568
4569 <method name="getStorageControllerByName" const="yes">
4570 <desc>
4571 Returns a storage controller with the given name.
4572
4573 <result name="VBOX_E_OBJECT_NOT_FOUND">
4574 A storage controller with given name doesn't exist.
4575 </result>
4576 </desc>
4577 <param name="name" type="wstring" dir="in"/>
4578 <param name="storageController" type="IStorageController" dir="return"/>
4579 </method>
4580
4581 <method name="getStorageControllerByInstance" const="yes">
4582 <desc>
4583 Returns a storage controller with the given instance number.
4584
4585 <result name="VBOX_E_OBJECT_NOT_FOUND">
4586 A storage controller with given instance number doesn't exist.
4587 </result>
4588 </desc>
4589 <param name="instance" type="unsigned long" dir="in"/>
4590 <param name="storageController" type="IStorageController" dir="return"/>
4591 </method>
4592
4593 <method name="removeStorageController">
4594 <desc>
4595 Removes a storage controller from the machine.
4596
4597 <result name="VBOX_E_OBJECT_NOT_FOUND">
4598 A storage controller with given name doesn't exist.
4599 </result>
4600 </desc>
4601 <param name="name" type="wstring" dir="in"/>
4602 </method>
4603
4604 <method name="setStorageControllerBootable">
4605 <desc>
4606 Sets the bootable flag of the storage controller with the given name.
4607
4608 <result name="VBOX_E_OBJECT_NOT_FOUND">
4609 A storage controller with given name doesn't exist.
4610 </result>
4611 <result name="VBOX_E_OBJECT_IN_USE">
4612 Another storage controller is marked as bootable already.
4613 </result>
4614 </desc>
4615 <param name="name" type="wstring" dir="in"/>
4616 <param name="bootable" type="boolean" dir="in"/>
4617 </method>
4618
4619 <method name="getSerialPort" const="yes">
4620 <desc>
4621 Returns the serial port associated with the given slot.
4622 Slots are numbered sequentially, starting with zero. The total
4623 number of serial ports per machine is defined by the
4624 <link to="ISystemProperties::serialPortCount"/> property,
4625 so the maximum slot number is one less than that property's value.
4626
4627 <result name="E_INVALIDARG">
4628 Invalid @a slot number.
4629 </result>
4630
4631 </desc>
4632 <param name="slot" type="unsigned long" dir="in"/>
4633 <param name="port" type="ISerialPort" dir="return"/>
4634 </method>
4635
4636 <method name="getParallelPort" const="yes">
4637 <desc>
4638 Returns the parallel port associated with the given slot.
4639 Slots are numbered sequentially, starting with zero. The total
4640 number of parallel ports per machine is defined by the
4641 <link to="ISystemProperties::parallelPortCount"/> property,
4642 so the maximum slot number is one less than that property's value.
4643
4644 <result name="E_INVALIDARG">
4645 Invalid @a slot number.
4646 </result>
4647
4648 </desc>
4649 <param name="slot" type="unsigned long" dir="in"/>
4650 <param name="port" type="IParallelPort" dir="return"/>
4651 </method>
4652
4653 <method name="getExtraDataKeys">
4654 <desc>
4655 Returns an array representing the machine-specific extra data keys
4656 which currently have values defined.
4657 </desc>
4658 <param name="value" type="wstring" dir="return" safearray="yes">
4659 <desc>Array of extra data keys.</desc>
4660 </param>
4661 </method>
4662
4663 <method name="getExtraData">
4664 <desc>
4665 Returns associated machine-specific extra data.
4666
4667 If the requested data @a key does not exist, this function will
4668 succeed and return an empty string in the @a value argument.
4669
4670 <result name="VBOX_E_FILE_ERROR">
4671 Settings file not accessible.
4672 </result>
4673 <result name="VBOX_E_XML_ERROR">
4674 Could not parse the settings file.
4675 </result>
4676
4677 </desc>
4678 <param name="key" type="wstring" dir="in">
4679 <desc>Name of the data key to get.</desc>
4680 </param>
4681 <param name="value" type="wstring" dir="return">
4682 <desc>Value of the requested data key.</desc>
4683 </param>
4684 </method>
4685
4686 <method name="setExtraData">
4687 <desc>
4688 Sets associated machine-specific extra data.
4689
4690 If you pass @c null or an empty string as a key @a value, the given
4691 @a key will be deleted.
4692
4693 <note>
4694 Before performing the actual data change, this method will ask all
4695 registered listeners using the
4696 <link to="IExtraDataCanChangeEvent"/>
4697 notification for a permission. If one of the listeners refuses the
4698 new value, the change will not be performed.
4699 </note>
4700 <note>
4701 On success, the
4702 <link to="IExtraDataChangedEvent"/> notification
4703 is called to inform all registered listeners about a successful data
4704 change.
4705 </note>
4706 <note>
4707 This method can be called outside the machine session and therefore
4708 it's a caller's responsibility to handle possible race conditions
4709 when several clients change the same key at the same time.
4710 </note>
4711
4712 <result name="VBOX_E_FILE_ERROR">
4713 Settings file not accessible.
4714 </result>
4715 <result name="VBOX_E_XML_ERROR">
4716 Could not parse the settings file.
4717 </result>
4718
4719 </desc>
4720 <param name="key" type="wstring" dir="in">
4721 <desc>Name of the data key to set.</desc>
4722 </param>
4723 <param name="value" type="wstring" dir="in">
4724 <desc>Value to assign to the key.</desc>
4725 </param>
4726 </method>
4727
4728 <method name="getCPUProperty" const="yes">
4729 <desc>
4730 Returns the virtual CPU boolean value of the specified property.
4731
4732 <result name="E_INVALIDARG">
4733 Invalid property.
4734 </result>
4735
4736 </desc>
4737 <param name="property" type="CPUPropertyType" dir="in">
4738 <desc>
4739 Property type to query.
4740 </desc>
4741 </param>
4742 <param name="value" type="boolean" dir="return">
4743 <desc>
4744 Property value.
4745 </desc>
4746 </param>
4747 </method>
4748
4749 <method name="setCPUProperty">
4750 <desc>
4751 Sets the virtual CPU boolean value of the specified property.
4752
4753 <result name="E_INVALIDARG">
4754 Invalid property.
4755 </result>
4756
4757 </desc>
4758 <param name="property" type="CPUPropertyType" dir="in">
4759 <desc>
4760 Property type to query.
4761 </desc>
4762 </param>
4763 <param name="value" type="boolean" dir="in">
4764 <desc>
4765 Property value.
4766 </desc>
4767 </param>
4768 </method>
4769
4770 <method name="getCPUIDLeaf" const="yes">
4771 <desc>
4772 Returns the virtual CPU cpuid information for the specified leaf.
4773
4774 Currently supported index values for cpuid:
4775 Standard CPUID leafs: 0 - 0xA
4776 Extended CPUID leafs: 0x80000000 - 0x8000000A
4777
4778 See the Intel and AMD programmer's manuals for detailed information
4779 about the cpuid instruction and its leafs.
4780 <result name="E_INVALIDARG">
4781 Invalid id.
4782 </result>
4783
4784 </desc>
4785 <param name="id" type="unsigned long" dir="in">
4786 <desc>
4787 CPUID leaf index.
4788 </desc>
4789 </param>
4790 <param name="valEax" type="unsigned long" dir="out">
4791 <desc>
4792 CPUID leaf value for register eax.
4793 </desc>
4794 </param>
4795 <param name="valEbx" type="unsigned long" dir="out">
4796 <desc>
4797 CPUID leaf value for register ebx.
4798 </desc>
4799 </param>
4800 <param name="valEcx" type="unsigned long" dir="out">
4801 <desc>
4802 CPUID leaf value for register ecx.
4803 </desc>
4804 </param>
4805 <param name="valEdx" type="unsigned long" dir="out">
4806 <desc>
4807 CPUID leaf value for register edx.
4808 </desc>
4809 </param>
4810 </method>
4811
4812 <method name="setCPUIDLeaf">
4813 <desc>
4814 Sets the virtual CPU cpuid information for the specified leaf. Note that these values
4815 are not passed unmodified. VirtualBox clears features that it doesn't support.
4816
4817 Currently supported index values for cpuid:
4818 Standard CPUID leafs: 0 - 0xA
4819 Extended CPUID leafs: 0x80000000 - 0x8000000A
4820
4821 See the Intel and AMD programmer's manuals for detailed information
4822 about the cpuid instruction and its leafs.
4823
4824 Do not use this method unless you know exactly what you're doing. Misuse can lead to
4825 random crashes inside VMs.
4826 <result name="E_INVALIDARG">
4827 Invalid id.
4828 </result>
4829
4830 </desc>
4831 <param name="id" type="unsigned long" dir="in">
4832 <desc>
4833 CPUID leaf index.
4834 </desc>
4835 </param>
4836 <param name="valEax" type="unsigned long" dir="in">
4837 <desc>
4838 CPUID leaf value for register eax.
4839 </desc>
4840 </param>
4841 <param name="valEbx" type="unsigned long" dir="in">
4842 <desc>
4843 CPUID leaf value for register ebx.
4844 </desc>
4845 </param>
4846 <param name="valEcx" type="unsigned long" dir="in">
4847 <desc>
4848 CPUID leaf value for register ecx.
4849 </desc>
4850 </param>
4851 <param name="valEdx" type="unsigned long" dir="in">
4852 <desc>
4853 CPUID leaf value for register edx.
4854 </desc>
4855 </param>
4856 </method>
4857
4858 <method name="removeCPUIDLeaf">
4859 <desc>
4860 Removes the virtual CPU cpuid leaf for the specified index
4861
4862 <result name="E_INVALIDARG">
4863 Invalid id.
4864 </result>
4865
4866 </desc>
4867 <param name="id" type="unsigned long" dir="in">
4868 <desc>
4869 CPUID leaf index.
4870 </desc>
4871 </param>
4872 </method>
4873
4874 <method name="removeAllCPUIDLeaves">
4875 <desc>
4876 Removes all the virtual CPU cpuid leaves
4877 </desc>
4878 </method>
4879
4880 <method name="getHWVirtExProperty" const="yes">
4881 <desc>
4882 Returns the value of the specified hardware virtualization boolean property.
4883
4884 <result name="E_INVALIDARG">
4885 Invalid property.
4886 </result>
4887
4888 </desc>
4889 <param name="property" type="HWVirtExPropertyType" dir="in">
4890 <desc>
4891 Property type to query.
4892 </desc>
4893 </param>
4894 <param name="value" type="boolean" dir="return">
4895 <desc>
4896 Property value.
4897 </desc>
4898 </param>
4899 </method>
4900
4901 <method name="setHWVirtExProperty">
4902 <desc>
4903 Sets a new value for the specified hardware virtualization boolean property.
4904
4905 <result name="E_INVALIDARG">
4906 Invalid property.
4907 </result>
4908
4909 </desc>
4910 <param name="property" type="HWVirtExPropertyType" dir="in">
4911 <desc>
4912 Property type to set.
4913 </desc>
4914 </param>
4915 <param name="value" type="boolean" dir="in">
4916 <desc>
4917 New property value.
4918 </desc>
4919 </param>
4920 </method>
4921
4922 <method name="saveSettings">
4923 <desc>
4924 Saves any changes to machine settings made since the session
4925 has been opened or a new machine has been created, or since the
4926 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
4927 For registered machines, new settings become visible to all
4928 other VirtualBox clients after successful invocation of this
4929 method.
4930 <note>
4931 The method sends <link to="IMachineDataChangedEvent"/>
4932 notification event after the configuration has been successfully
4933 saved (only for registered machines).
4934 </note>
4935 <note>
4936 Calling this method is only valid on instances returned
4937 by <link to="ISession::machine"/> and on new machines
4938 created by <link to="IVirtualBox::createMachine"/> but not
4939 yet registered, or on unregistered machines after calling
4940 <link to="IMachine::unregister"/>.
4941 </note>
4942
4943 <result name="VBOX_E_FILE_ERROR">
4944 Settings file not accessible.
4945 </result>
4946 <result name="VBOX_E_XML_ERROR">
4947 Could not parse the settings file.
4948 </result>
4949 <result name="E_ACCESSDENIED">
4950 Modification request refused.
4951 </result>
4952
4953 </desc>
4954 </method>
4955
4956 <method name="discardSettings">
4957 <desc>
4958 Discards any changes to the machine settings made since the session
4959 has been opened or since the last call to <link to="#saveSettings"/>
4960 or <link to="#discardSettings"/>.
4961 <note>
4962 Calling this method is only valid on instances returned
4963 by <link to="ISession::machine"/> and on new machines
4964 created by <link to="IVirtualBox::createMachine"/> or
4965 opened by <link to="IVirtualBox::openMachine"/> but not
4966 yet registered, or on unregistered machines after calling
4967 <link to="IMachine::unregister"/>.
4968 </note>
4969
4970 <result name="VBOX_E_INVALID_VM_STATE">
4971 Virtual machine is not mutable.
4972 </result>
4973
4974 </desc>
4975 </method>
4976
4977 <method name="unregister">
4978 <desc>
4979 Unregisters the machine, which must have been previously registered using
4980 <link to="IVirtualBox::registerMachine"/>, and optionally do additional
4981 cleanup before the machine is unregistered.
4982
4983 This method does not delete any files. It only changes the machine configuration and
4984 the list of registered machines in the VirtualBox object. To delete the files which
4985 belonged to the machine, including the XML file of the machine itself, call
4986 <link to="#delete"/>, optionally with the array of IMedium objects which was returned
4987 from this method.
4988
4989 How thoroughly this method cleans up the machine configuration before unregistering
4990 the machine depends on the @a cleanupMode argument.
4991
4992 <ul>
4993 <li>With "UnregisterOnly", the machine will only be unregistered, but no additional
4994 cleanup will be performed. The call will fail if the machine is in "Saved" state
4995 or has any snapshots or any media attached (see <link to="IMediumAttachment" />.
4996 It is the responsibility of the caller to delete all such configuration in this mode.
4997 In this mode, the API behaves like the former @c IVirtualBox::unregisterMachine() API
4998 which it replaces.</li>
4999 <li>With "DetachAllReturnNone", the call will succeed even if the machine is in "Saved"
5000 state or if it has snapshots or media attached. All media attached to the current machine
5001 state or in snapshots will be detached. No medium objects will be returned; all of the
5002 machine's media will remain open.</li>
5003 <li>With "DetachAllReturnHardDisksOnly", the call will behave like with "DetachAllReturnNone",
5004 except that all the hard disk medium objects which were detached from the machine will
5005 be returned as an array. This allows for quickly passing them to the <link to="#delete" />
5006 API for closing and deletion.</li>
5007 <li>With "Full", the call will behave like with "DetachAllReturnHardDisksOnly", except
5008 that all media will be returned in the array, including removeable media like DVDs and
5009 floppies. This might be useful if the user wants to inspect in detail which media were
5010 attached to the machine. Be careful when passing the media array to <link to="#delete" />
5011 in that case because users will typically want to preserve ISO and RAW image files.</li>
5012 </ul>
5013
5014 This API does not verify whether the media files returned in the array are still
5015 attached to other machines (i.e. shared between several machines). If such a shared
5016 image is passed to <link to="#delete" /> however, closing the image will fail there
5017 and the image will be silently skipped.
5018
5019 A typical implementation will use "DetachAllReturnHardDisksOnly" and then pass the
5020 resulting IMedia array to <link to="#delete"/>. This way, the machine is completely
5021 deleted with all its saved states and hard disk images, but images for removeable
5022 drives (such as ISO and RAW files) will remain on disk.
5023
5024 The call will fail if the machine is currently locked (see <link to="ISession" />).
5025 It implicitly calls <link to="#saveSettings"/> to save all current machine settings
5026 before unregistering it.
5027
5028 After successful method invocation, the <link to="IMachineRegisteredEvent"/> event
5029 is fired.
5030
5031 <note>
5032 If the given machine is inaccessible (see <link to="#accessible"/>), it
5033 will be unregistered and fully uninitialized right afterwards. As a result,
5034 the returned machine object will be unusable and an attempt to call
5035 <b>any</b> method will return the "Object not ready" error.
5036 </note>
5037
5038 <result name="VBOX_E_INVALID_OBJECT_STATE">
5039 Machine is currently locked for a session.
5040 </result>
5041 </desc>
5042
5043 <param name="cleanupMode" type="CleanupMode" dir="in">
5044 <desc>How to clean up after the machine has been unregistered.</desc>
5045 </param>
5046 <param name="aMedia" type="IMedium" safearray="yes" dir="return">
5047 <desc>List of media detached from the machine, depending on the @a cleanupMode parameter.</desc>
5048 </param>
5049 </method>
5050
5051 <method name="delete">
5052 <desc>
5053 Deletes the files associated with this machine from disk. If medium objects are passed
5054 in with the @a aMedia argument, they are closed and, if closing was successful, their
5055 storage files are deleted as well. For convenience, this array of media files can be
5056 the same as the one returned from a previous <link to="#unregister" /> call.
5057
5058 This method must only be called on machines which are either write-locked (i.e. on instances
5059 returned by <link to="ISession::machine"/>) or on unregistered machines (i.e. not yet
5060 registered machines created by <link to="IVirtualBox::createMachine"/> or opened by
5061 <link to="IVirtualBox::openMachine"/>, or after having called <link to="#unregister"/>).
5062
5063 The following files will be deleted by this method:
5064 <ul>
5065 <li>If <link to="#unregister" /> had been previously called with a @a cleanupMode
5066 argument other than "UnregisterOnly", this will delete all saved state files that
5067 the machine had in use; possibly one if the machine was in "Saved" state and one
5068 for each online snapshot that the machine had.</li>
5069 <li>On each medium object passed in the @a aMedia array, this will call
5070 <link to="IMedium::close" />. If that succeeds, this will attempt to delete the
5071 medium's storage on disk. Since the close() call will fail if the medium is still
5072 in use, e.g. because it is still attached to a second machine; in that case the
5073 storage will not be deleted.</li>
5074 <li>Finally, the machine's own XML file will be deleted.</li>
5075 </ul>
5076
5077 Since deleting large disk image files can be a time-consuming I/O operation, this
5078 method operates asynchronously and returns an IProgress object to allow the caller
5079 to monitor the progress. There will be one sub-operation for each file that is
5080 being deleted (saved state or medium storage file).
5081
5082 <note>
5083 <link to="#settingsModified"/> will return @c true after this
5084 method successfully returns.
5085 </note>
5086
5087 <result name="VBOX_E_INVALID_VM_STATE">
5088 Machine is registered but not write-locked.
5089 </result>
5090 <result name="VBOX_E_IPRT_ERROR">
5091 Could not delete the settings file.
5092 </result>
5093 </desc>
5094 <param name="aMedia" type="IMedium" safearray="yes" dir="in">
5095 <desc>List of media to be closed and whose storage files will be deleted.</desc>
5096 </param>
5097 <param name="aProgress" type="IProgress" dir="return">
5098 <desc>Progress object to track the operation completion.</desc>
5099 </param>
5100 </method>
5101
5102 <method name="export">
5103 <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
5104 steps required to export VirtualBox machines to OVF.
5105 </desc>
5106
5107 <param name="aAppliance" type="IAppliance" dir="in">
5108 <desc>Appliance to export this machine to.</desc>
5109 </param>
5110 <param name="location" type="wstring" dir="in">
5111 <desc>The target location.</desc>
5112 </param>
5113 <param name="aDescription" type="IVirtualSystemDescription" dir="return">
5114 <desc>VirtualSystemDescription object which is created for this machine.</desc>
5115 </param>
5116 </method >
5117
5118 <method name="findSnapshot">
5119 <desc>
5120 Returns a snapshot of this machine with the given name or UUID.
5121
5122 Returns a snapshot of this machine with the given UUID.
5123 A @c null argument can be used to obtain the first snapshot
5124 taken on this machine. This is useful if you want to traverse
5125 the whole tree of snapshots starting from the root.
5126
5127 <result name="VBOX_E_OBJECT_NOT_FOUND">
5128 Virtual machine has no snapshots or snapshot not found.
5129 </result>
5130
5131 </desc>
5132 <param name="nameOrId" type="wstring" dir="in">
5133 <desc>What to search for. Name or UUID of the snapshot to find</desc>
5134 </param>
5135 <param name="snapshot" type="ISnapshot" dir="return">
5136 <desc>Snapshot object with the given name.</desc>
5137 </param>
5138 </method>
5139
5140 <method name="createSharedFolder">
5141 <desc>
5142 Creates a new permanent shared folder by associating the given logical
5143 name with the given host path, adds it to the collection of shared
5144 folders and starts sharing it. Refer to the description of
5145 <link to="ISharedFolder"/> to read more about logical names.
5146
5147 <result name="VBOX_E_OBJECT_IN_USE">
5148 Shared folder already exists.
5149 </result>
5150 <result name="VBOX_E_FILE_ERROR">
5151 Shared folder @a hostPath not accessible.
5152 </result>
5153
5154 </desc>
5155 <param name="name" type="wstring" dir="in">
5156 <desc>Unique logical name of the shared folder.</desc>
5157 </param>
5158 <param name="hostPath" type="wstring" dir="in">
5159 <desc>Full path to the shared folder in the host file system.</desc>
5160 </param>
5161 <param name="writable" type="boolean" dir="in">
5162 <desc>Whether the share is writable or readonly.</desc>
5163 </param>
5164 <param name="automount" type="boolean" dir="in">
5165 <desc>Whether the share gets automatically mounted by the guest
5166 or not.</desc>
5167 </param>
5168 </method>
5169
5170 <method name="removeSharedFolder">
5171 <desc>
5172 Removes the permanent shared folder with the given name previously
5173 created by <link to="#createSharedFolder"/> from the collection of
5174 shared folders and stops sharing it.
5175
5176 <result name="VBOX_E_INVALID_VM_STATE">
5177 Virtual machine is not mutable.
5178 </result>
5179 <result name="VBOX_E_OBJECT_NOT_FOUND">
5180 Shared folder @a name does not exist.
5181 </result>
5182
5183 </desc>
5184 <param name="name" type="wstring" dir="in">
5185 <desc>Logical name of the shared folder to remove.</desc>
5186 </param>
5187 </method>
5188
5189 <method name="canShowConsoleWindow">
5190 <desc>
5191 Returns @c true if the VM console process can activate the
5192 console window and bring it to foreground on the desktop of
5193 the host PC.
5194 <note>
5195 This method will fail if a session for this machine is not
5196 currently open.
5197 </note>
5198
5199 <result name="VBOX_E_INVALID_VM_STATE">
5200 Machine session is not open.
5201 </result>
5202
5203 </desc>
5204 <param name="canShow" type="boolean" dir="return">
5205 <desc>
5206 @c true if the console window can be shown and @c false otherwise.
5207 </desc>
5208 </param>
5209 </method>
5210
5211 <method name="showConsoleWindow">
5212 <desc>
5213 Activates the console window and brings it to foreground on
5214 the desktop of the host PC. Many modern window managers on
5215 many platforms implement some sort of focus stealing
5216 prevention logic, so that it may be impossible to activate
5217 a window without the help of the currently active
5218 application. In this case, this method will return a non-zero
5219 identifier that represents the top-level window of the VM
5220 console process. The caller, if it represents a currently
5221 active process, is responsible to use this identifier (in a
5222 platform-dependent manner) to perform actual window
5223 activation.
5224 <note>
5225 This method will fail if a session for this machine is not
5226 currently open.
5227 </note>
5228
5229 <result name="VBOX_E_INVALID_VM_STATE">
5230 Machine session is not open.
5231 </result>
5232
5233 </desc>
5234 <param name="winId" type="long long" dir="return">
5235 <desc>
5236 Platform-dependent identifier of the top-level VM console
5237 window, or zero if this method has performed all actions
5238 necessary to implement the <i>show window</i> semantics for
5239 the given platform and/or VirtualBox front-end.
5240 </desc>
5241 </param>
5242 </method>
5243
5244 <method name="getGuestProperty" const="yes">
5245 <desc>
5246 Reads an entry from the machine's guest property store.
5247
5248 <result name="VBOX_E_INVALID_VM_STATE">
5249 Machine session is not open.
5250 </result>
5251
5252 </desc>
5253 <param name="name" type="wstring" dir="in">
5254 <desc>
5255 The name of the property to read.
5256 </desc>
5257 </param>
5258 <param name="value" type="wstring" dir="out">
5259 <desc>
5260 The value of the property. If the property does not exist then this
5261 will be empty.
5262 </desc>
5263 </param>
5264 <param name="timestamp" type="long long" dir="out">
5265 <desc>
5266 The time at which the property was last modified, as seen by the
5267 server process.
5268 </desc>
5269 </param>
5270 <param name="flags" type="wstring" dir="out">
5271 <desc>
5272 Additional property parameters, passed as a comma-separated list of
5273 "name=value" type entries.
5274 </desc>
5275 </param>
5276 </method>
5277
5278 <method name="getGuestPropertyValue" const="yes">
5279 <desc>
5280 Reads a value from the machine's guest property store.
5281
5282 <result name="VBOX_E_INVALID_VM_STATE">
5283 Machine session is not open.
5284 </result>
5285
5286 </desc>
5287 <param name="property" type="wstring" dir="in">
5288 <desc>
5289 The name of the property to read.
5290 </desc>
5291 </param>
5292 <param name="value" type="wstring" dir="return">
5293 <desc>
5294 The value of the property. If the property does not exist then this
5295 will be empty.
5296 </desc>
5297 </param>
5298 </method>
5299
5300 <method name="getGuestPropertyTimestamp" const="yes">
5301 <desc>
5302 Reads a property timestamp from the machine's guest property store.
5303
5304 <result name="VBOX_E_INVALID_VM_STATE">
5305 Machine session is not open.
5306 </result>
5307
5308 </desc>
5309 <param name="property" type="wstring" dir="in">
5310 <desc>
5311 The name of the property to read.
5312 </desc>
5313 </param>
5314 <param name="value" type="long long" dir="return">
5315 <desc>
5316 The timestamp. If the property does not exist then this will be
5317 empty.
5318 </desc>
5319 </param>
5320 </method>
5321
5322 <method name="setGuestProperty">
5323 <desc>
5324 Sets, changes or deletes an entry in the machine's guest property
5325 store.
5326
5327 <result name="E_ACCESSDENIED">
5328 Property cannot be changed.
5329 </result>
5330 <result name="E_INVALIDARG">
5331 Invalid @a flags.
5332 </result>
5333 <result name="VBOX_E_INVALID_VM_STATE">
5334 Virtual machine is not mutable or session not open.
5335 </result>
5336 <result name="VBOX_E_INVALID_OBJECT_STATE">
5337 Cannot set transient property when machine not running.
5338 </result>
5339
5340 </desc>
5341 <param name="property" type="wstring" dir="in">
5342 <desc>
5343 The name of the property to set, change or delete.
5344 </desc>
5345 </param>
5346 <param name="value" type="wstring" dir="in">
5347 <desc>
5348 The new value of the property to set, change or delete. If the
5349 property does not yet exist and value is non-empty, it will be
5350 created. If the value is @c null or empty, the property will be
5351 deleted if it exists.
5352 </desc>
5353 </param>
5354 <param name="flags" type="wstring" dir="in">
5355 <desc>
5356 Additional property parameters, passed as a comma-separated list of
5357 "name=value" type entries.
5358 </desc>
5359 </param>
5360 </method>
5361
5362 <method name="setGuestPropertyValue">
5363 <desc>
5364 Sets, changes or deletes a value in the machine's guest property
5365 store. The flags field will be left unchanged or created empty for a
5366 new property.
5367
5368 <result name="E_ACCESSDENIED">
5369 Property cannot be changed.
5370 </result>
5371 <result name="VBOX_E_INVALID_VM_STATE">
5372 Virtual machine is not mutable or session not open.
5373 </result>
5374 <result name="VBOX_E_INVALID_OBJECT_STATE">
5375 Cannot set transient property when machine not running.
5376 </result>
5377 </desc>
5378
5379 <param name="property" type="wstring" dir="in">
5380 <desc>
5381 The name of the property to set, change or delete.
5382 </desc>
5383 </param>
5384 <param name="value" type="wstring" dir="in">
5385 <desc>
5386 The new value of the property to set, change or delete. If the
5387 property does not yet exist and value is non-empty, it will be
5388 created. If the value is @c null or empty, the property will be
5389 deleted if it exists.
5390 </desc>
5391 </param>
5392 </method>
5393
5394 <method name="enumerateGuestProperties">
5395 <desc>
5396 Return a list of the guest properties matching a set of patterns along
5397 with their values, time stamps and flags.
5398 </desc>
5399 <param name="patterns" type="wstring" dir="in">
5400 <desc>
5401 The patterns to match the properties against, separated by '|'
5402 characters. If this is empty or @c null, all properties will match.
5403 </desc>
5404 </param>
5405 <param name="name" type="wstring" dir="out" safearray="yes">
5406 <desc>
5407 The names of the properties returned.
5408 </desc>
5409 </param>
5410 <param name="value" type="wstring" dir="out" safearray="yes">
5411 <desc>
5412 The values of the properties returned. The array entries match the
5413 corresponding entries in the @a name array.
5414 </desc>
5415 </param>
5416 <param name="timestamp" type="long long" dir="out" safearray="yes">
5417 <desc>
5418 The time stamps of the properties returned. The array entries match
5419 the corresponding entries in the @a name array.
5420 </desc>
5421 </param>
5422 <param name="flags" type="wstring" dir="out" safearray="yes">
5423 <desc>
5424 The flags of the properties returned. The array entries match the
5425 corresponding entries in the @a name array.
5426 </desc>
5427 </param>
5428 </method>
5429
5430 <method name="querySavedGuestSize">
5431 <desc>
5432 Returns the guest dimensions from the saved state.
5433 </desc>
5434 <param name="screenId" type="unsigned long" dir="in">
5435 <desc>
5436 Saved guest screen to query info from.
5437 </desc>
5438 </param>
5439 <param name="width" type="unsigned long" dir="out">
5440 <desc>
5441 Guest width at the time of the saved state was taken.
5442 </desc>
5443 </param>
5444 <param name="height" type="unsigned long" dir="out">
5445 <desc>
5446 Guest height at the time of the saved state was taken.
5447 </desc>
5448 </param>
5449 </method>
5450
5451 <method name="querySavedThumbnailSize">
5452 <desc>
5453 Returns size in bytes and dimensions in pixels of a saved thumbnail bitmap from saved state.
5454 </desc>
5455 <param name="screenId" type="unsigned long" dir="in">
5456 <desc>
5457 Saved guest screen to query info from.
5458 </desc>
5459 </param>
5460 <param name="size" type="unsigned long" dir="out">
5461 <desc>
5462 Size of buffer required to store the bitmap.
5463 </desc>
5464 </param>
5465 <param name="width" type="unsigned long" dir="out">
5466 <desc>
5467 Bitmap width.
5468 </desc>
5469 </param>
5470 <param name="height" type="unsigned long" dir="out">
5471 <desc>
5472 Bitmap height.
5473 </desc>
5474 </param>
5475 </method>
5476
5477 <method name="readSavedThumbnailToArray">
5478 <desc>
5479 Thumbnail is retrieved to an array of bytes in uncompressed 32-bit BGRA or RGBA format.
5480 </desc>
5481 <param name="screenId" type="unsigned long" dir="in">
5482 <desc>
5483 Saved guest screen to read from.
5484 </desc>
5485 </param>
5486 <param name="BGR" type="boolean" dir="in">
5487 <desc>
5488 How to order bytes in the pixel. A pixel consists of 4 bytes. If this parameter is true, then
5489 bytes order is: B, G, R, 0xFF. If this parameter is false, then bytes order is: R, G, B, 0xFF.
5490 </desc>
5491 </param>
5492 <param name="width" type="unsigned long" dir="out">
5493 <desc>
5494 Bitmap width.
5495 </desc>
5496 </param>
5497 <param name="height" type="unsigned long" dir="out">
5498 <desc>
5499 Bitmap height.
5500 </desc>
5501 </param>
5502 <param name="data" type="octet" safearray="yes" dir="return">
5503 <desc>
5504 Array with resulting bitmap data.
5505 </desc>
5506 </param>
5507 </method>
5508
5509 <method name="readSavedThumbnailPNGToArray">
5510 <desc>
5511 Thumbnail in PNG format is retrieved to an array of bytes.
5512 </desc>
5513 <param name="screenId" type="unsigned long" dir="in">
5514 <desc>
5515 Saved guest screen to read from.
5516 </desc>
5517 </param>
5518 <param name="width" type="unsigned long" dir="out">
5519 <desc>
5520 Image width.
5521 </desc>
5522 </param>
5523 <param name="height" type="unsigned long" dir="out">
5524 <desc>
5525 Image height.
5526 </desc>
5527 </param>
5528 <param name="data" type="octet" dir="return" safearray="yes">
5529 <desc>
5530 Array with resulting PNG data.
5531 </desc>
5532 </param>
5533 </method>
5534
5535 <method name="querySavedScreenshotPNGSize">
5536 <desc>
5537 Returns size in bytes and dimensions of a saved PNG image of screenshot from saved state.
5538 </desc>
5539 <param name="screenId" type="unsigned long" dir="in">
5540 <desc>
5541 Saved guest screen to query info from.
5542 </desc>
5543 </param>
5544 <param name="size" type="unsigned long" dir="out">
5545 <desc>
5546 Size of buffer required to store the PNG binary data.
5547 </desc>
5548 </param>
5549 <param name="width" type="unsigned long" dir="out">
5550 <desc>
5551 Image width.
5552 </desc>
5553 </param>
5554 <param name="height" type="unsigned long" dir="out">
5555 <desc>
5556 Image height.
5557 </desc>
5558 </param>
5559 </method>
5560
5561 <method name="readSavedScreenshotPNGToArray">
5562 <desc>
5563 Screenshot in PNG format is retrieved to an array of bytes.
5564 </desc>
5565 <param name="screenId" type="unsigned long" dir="in">
5566 <desc>
5567 Saved guest screen to read from.
5568 </desc>
5569 </param>
5570 <param name="width" type="unsigned long" dir="out">
5571 <desc>
5572 Image width.
5573 </desc>
5574 </param>
5575 <param name="height" type="unsigned long" dir="out">
5576 <desc>
5577 Image height.
5578 </desc>
5579 </param>
5580 <param name="data" type="octet" dir="return" safearray="yes">
5581 <desc>
5582 Array with resulting PNG data.
5583 </desc>
5584 </param>
5585 </method>
5586
5587 <method name="hotPlugCPU">
5588 <desc>
5589 Plugs a CPU into the machine.
5590 </desc>
5591 <param name="cpu" type="unsigned long" dir="in">
5592 <desc>
5593 The CPU id to insert.
5594 </desc>
5595 </param>
5596 </method>
5597
5598 <method name="hotUnplugCPU">
5599 <desc>
5600 Removes a CPU from the machine.
5601 </desc>
5602 <param name="cpu" type="unsigned long" dir="in">
5603 <desc>
5604 The CPU id to remove.
5605 </desc>
5606 </param>
5607 </method>
5608
5609 <method name="getCPUStatus">
5610 <desc>
5611 Returns the current status of the given CPU.
5612 </desc>
5613 <param name="cpu" type="unsigned long" dir="in">
5614 <desc>
5615 The CPU id to check for.
5616 </desc>
5617 </param>
5618 <param name="attached" type="boolean" dir="return">
5619 <desc>
5620 Status of the CPU.
5621 </desc>
5622 </param>
5623 </method>
5624
5625 <method name="queryLogFilename">
5626 <desc>
5627 Queries for the VM log file name of an given index. Returns an empty
5628 string if a log file with that index doesn't exists.
5629 </desc>
5630 <param name="idx" type="unsigned long" dir="in">
5631 <desc>
5632 Which log file name to query. 0=current log file.
5633 </desc>
5634 </param>
5635 <param name="filename" type="wstring" dir="return">
5636 <desc>
5637 On return the full path to the log file or an empty string on error.
5638 </desc>
5639 </param>
5640 </method>
5641
5642 <method name="readLog">
5643 <desc>
5644 Reads the VM log file. The chunk size is limited, so even if you
5645 ask for a big piece there might be less data returned.
5646 </desc>
5647 <param name="idx" type="unsigned long" dir="in">
5648 <desc>
5649 Which log file to read. 0=current log file.
5650 </desc>
5651 </param>
5652 <param name="offset" type="long long" dir="in">
5653 <desc>
5654 Offset in the log file.
5655 </desc>
5656 </param>
5657 <param name="size" type="long long" dir="in">
5658 <desc>
5659 Chunk size to read in the log file.
5660 </desc>
5661 </param>
5662 <param name="data" type="octet" dir="return" safearray="yes">
5663 <desc>
5664 Data read from the log file. A data size of 0 means end of file
5665 if the requested chunk size was not 0. This is the unprocessed
5666 file data, i.e. the line ending style depends on the platform of
5667 the system the server is running on.
5668 </desc>
5669 </param>
5670 </method>
5671 </interface>
5672
5673 <!--
5674 // IConsole
5675 /////////////////////////////////////////////////////////////////////////
5676 -->
5677
5678 <interface
5679 name="IVRDEServerInfo" extends="$unknown"
5680 uuid="714434a1-58c3-4aab-9049-7652c5df113b"
5681 wsmap="struct"
5682 >
5683 <desc>
5684 Contains information about the remote desktop (VRDE) server capabilities and status.
5685 This is used in the <link to="IConsole::VRDEServerInfo" /> attribute.
5686 </desc>
5687
5688 <attribute name="active" type="boolean" readonly="yes">
5689 <desc>
5690 Whether the remote desktop connection is active.
5691 </desc>
5692 </attribute>
5693
5694 <attribute name="port" type="long" readonly="yes">
5695 <desc>
5696 VRDE server port number. If this property is equal to <tt>0</tt>, then
5697 the VRDE server failed to start, usually because there are no free IP
5698 ports to bind to. If this property is equal to <tt>-1</tt>, then the VRDE
5699 server has not yet been started.
5700 </desc>
5701 </attribute>
5702
5703 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
5704 <desc>
5705 How many times a client connected.
5706 </desc>
5707 </attribute>
5708
5709 <attribute name="beginTime" type="long long" readonly="yes">
5710 <desc>
5711 When the last connection was established, in milliseconds since 1970-01-01 UTC.
5712 </desc>
5713 </attribute>
5714
5715 <attribute name="endTime" type="long long" readonly="yes">
5716 <desc>
5717 When the last connection was terminated or the current time, if
5718 connection is still active, in milliseconds since 1970-01-01 UTC.
5719 </desc>
5720 </attribute>
5721
5722 <attribute name="bytesSent" type="long long" readonly="yes">
5723 <desc>
5724 How many bytes were sent in last or current, if still active, connection.
5725 </desc>
5726 </attribute>
5727
5728 <attribute name="bytesSentTotal" type="long long" readonly="yes">
5729 <desc>
5730 How many bytes were sent in all connections.
5731 </desc>
5732 </attribute>
5733
5734 <attribute name="bytesReceived" type="long long" readonly="yes">
5735 <desc>
5736 How many bytes were received in last or current, if still active, connection.
5737 </desc>
5738 </attribute>
5739
5740 <attribute name="bytesReceivedTotal" type="long long" readonly="yes">
5741 <desc>
5742 How many bytes were received in all connections.
5743 </desc>
5744 </attribute>
5745
5746 <attribute name="user" type="wstring" readonly="yes">
5747 <desc>
5748 Login user name supplied by the client.
5749 </desc>
5750 </attribute>
5751
5752 <attribute name="domain" type="wstring" readonly="yes">
5753 <desc>
5754 Login domain name supplied by the client.
5755 </desc>
5756 </attribute>
5757
5758 <attribute name="clientName" type="wstring" readonly="yes">
5759 <desc>
5760 The client name supplied by the client.
5761 </desc>
5762 </attribute>
5763
5764 <attribute name="clientIP" type="wstring" readonly="yes">
5765 <desc>
5766 The IP address of the client.
5767 </desc>
5768 </attribute>
5769
5770 <attribute name="clientVersion" type="unsigned long" readonly="yes">
5771 <desc>
5772 The client software version number.
5773 </desc>
5774 </attribute>
5775
5776 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
5777 <desc>
5778 Public key exchange method used when connection was established.
5779 Values: 0 - RDP4 public key exchange scheme.
5780 1 - X509 certificates were sent to client.
5781 </desc>
5782 </attribute>
5783
5784 </interface>
5785
5786 <interface
5787 name="IConsole" extends="$unknown"
5788 uuid="3c4a453e-d27b-44a2-b59d-dda6e1835e57"
5789 wsmap="managed"
5790 >
5791 <desc>
5792 The IConsole interface represents an interface to control virtual
5793 machine execution.
5794
5795 A console object gets created when a machine has been locked for a
5796 particular session (client process) using <link to="IMachine::lockMachine" />
5797 or <link to="IMachine::launchVMProcess"/>. The console object can
5798 then be found in the session's <link to="ISession::console" /> attribute.
5799
5800 Methods of the IConsole interface allow the caller to query the current
5801 virtual machine execution state, pause the machine or power it down, save
5802 the machine state or take a snapshot, attach and detach removable media
5803 and so on.
5804
5805 <see>ISession</see>
5806 </desc>
5807
5808 <attribute name="machine" type="IMachine" readonly="yes">
5809 <desc>
5810 Machine object for this console session.
5811 <note>
5812 This is a convenience property, it has the same value as
5813 <link to="ISession::machine"/> of the corresponding session
5814 object.
5815 </note>
5816 </desc>
5817 </attribute>
5818
5819 <attribute name="state" type="MachineState" readonly="yes">
5820 <desc>
5821 Current execution state of the machine.
5822 <note>
5823 This property always returns the same value as the corresponding
5824 property of the IMachine object for this console session.
5825 For the process that owns (executes) the VM, this is the
5826 preferable way of querying the VM state, because no IPC
5827 calls are made.
5828 </note>
5829 </desc>
5830 </attribute>
5831
5832 <attribute name="guest" type="IGuest" readonly="yes">
5833 <desc>Guest object.</desc>
5834 </attribute>
5835
5836 <attribute name="keyboard" type="IKeyboard" readonly="yes">
5837 <desc>
5838 Virtual keyboard object.
5839 <note>
5840 If the machine is not running, any attempt to use
5841 the returned object will result in an error.
5842 </note>
5843 </desc>
5844 </attribute>
5845
5846 <attribute name="mouse" type="IMouse" readonly="yes">
5847 <desc>
5848 Virtual mouse object.
5849 <note>
5850 If the machine is not running, any attempt to use
5851 the returned object will result in an error.
5852 </note>
5853 </desc>
5854 </attribute>
5855
5856 <attribute name="display" type="IDisplay" readonly="yes">
5857 <desc>Virtual display object.
5858 <note>
5859 If the machine is not running, any attempt to use
5860 the returned object will result in an error.
5861 </note>
5862 </desc>
5863 </attribute>
5864
5865 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
5866 <desc>Debugging interface.</desc>
5867 </attribute>
5868
5869 <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
5870 <desc>
5871 Collection of USB devices currently attached to the virtual
5872 USB controller.
5873 <note>
5874 The collection is empty if the machine is not running.
5875 </note>
5876 </desc>
5877 </attribute>
5878
5879 <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
5880 <desc>
5881 List of USB devices currently attached to the remote VRDE client.
5882 Once a new device is physically attached to the remote host computer,
5883 it appears in this list and remains there until detached.
5884 </desc>
5885 </attribute>
5886
5887 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
5888 <desc>
5889 Collection of shared folders for the current session. These folders
5890 are called transient shared folders because they are available to the
5891 guest OS running inside the associated virtual machine only for the
5892 duration of the session (as opposed to
5893 <link to="IMachine::sharedFolders"/> which represent permanent shared
5894 folders). When the session is closed (e.g. the machine is powered down),
5895 these folders are automatically discarded.
5896
5897 New shared folders are added to the collection using
5898 <link to="#createSharedFolder"/>. Existing shared folders can be
5899 removed using <link to="#removeSharedFolder"/>.
5900 </desc>
5901 </attribute>
5902
5903 <attribute name="VRDEServerInfo" type="IVRDEServerInfo" readonly="yes">
5904 <desc>
5905 Interface that provides information on Remote Desktop Extension (VRDE) connection.
5906 </desc>
5907 </attribute>
5908
5909 <attribute name="eventSource" type="IEventSource" readonly="yes">
5910 <desc>
5911 Event source for console events.
5912 </desc>
5913 </attribute>
5914
5915 <method name="powerUp">
5916 <desc>
5917 Starts the virtual machine execution using the current machine
5918 state (that is, its current execution state, current settings and
5919 current storage devices).
5920
5921 <note>
5922 This method is only useful for front-ends that want to actually
5923 execute virtual machines in their own process (like the VirtualBox
5924 or VBoxSDL front-ends). Unless you are intending to write such a
5925 front-end, do not call this method. If you simply want to
5926 start virtual machine execution using one of the existing front-ends
5927 (for example the VirtualBox GUI or headless server), use
5928 <link to="IMachine::launchVMProcess"/> instead; these
5929 front-ends will power up the machine automatically for you.
5930 </note>
5931
5932 If the machine is powered off or aborted, the execution will
5933 start from the beginning (as if the real hardware were just
5934 powered on).
5935
5936 If the machine is in the <link to="MachineState_Saved"/> state,
5937 it will continue its execution the point where the state has
5938 been saved.
5939
5940 If the machine <link to="IMachine::teleporterEnabled"/> property is
5941 enabled on the machine being powered up, the machine will wait for an
5942 incoming teleportation in the <link to="MachineState_TeleportingIn"/>
5943 state. The returned progress object will have at least three
5944 operations where the last three are defined as: (1) powering up and
5945 starting TCP server, (2) waiting for incoming teleportations, and
5946 (3) perform teleportation. These operations will be reflected as the
5947 last three operations of the progress objected returned by
5948 <link to="IMachine::launchVMProcess"/> as well.
5949
5950 <see>#saveState</see>
5951
5952 <result name="VBOX_E_INVALID_VM_STATE">
5953 Virtual machine already running.
5954 </result>
5955 <result name="VBOX_E_HOST_ERROR">
5956 Host interface does not exist or name not set.
5957 </result>
5958 <result name="VBOX_E_FILE_ERROR">
5959 Invalid saved state file.
5960 </result>
5961 </desc>
5962 <param name="progress" type="IProgress" dir="return">
5963 <desc>Progress object to track the operation completion.</desc>
5964 </param>
5965 </method>
5966
5967 <method name="powerUpPaused">
5968 <desc>
5969 Identical to powerUp except that the VM will enter the
5970 <link to="MachineState_Paused"/> state, instead of
5971 <link to="MachineState_Running"/>.
5972
5973 <see>#powerUp</see>
5974 <result name="VBOX_E_INVALID_VM_STATE">
5975 Virtual machine already running.
5976 </result>
5977 <result name="VBOX_E_HOST_ERROR">
5978 Host interface does not exist or name not set.
5979 </result>
5980 <result name="VBOX_E_FILE_ERROR">
5981 Invalid saved state file.
5982 </result>
5983 </desc>
5984 <param name="progress" type="IProgress" dir="return">
5985 <desc>Progress object to track the operation completion.</desc>
5986 </param>
5987 </method>
5988
5989 <method name="powerDown">
5990 <desc>
5991 Initiates the power down procedure to stop the virtual machine
5992 execution.
5993
5994 The completion of the power down procedure is tracked using the returned
5995 IProgress object. After the operation is complete, the machine will go
5996 to the PoweredOff state.
5997 <result name="VBOX_E_INVALID_VM_STATE">
5998 Virtual machine must be Running, Paused or Stuck to be powered down.
5999 </result>
6000 </desc>
6001 <param name="progress" type="IProgress" dir="return">
6002 <desc>Progress object to track the operation completion.</desc>
6003 </param>
6004 </method>
6005
6006 <method name="reset">
6007 <desc>Resets the virtual machine.
6008 <result name="VBOX_E_INVALID_VM_STATE">
6009 Virtual machine not in Running state.
6010 </result>
6011 <result name="VBOX_E_VM_ERROR">
6012 Virtual machine error in reset operation.
6013 </result>
6014 </desc>
6015 </method>
6016
6017 <method name="pause">
6018 <desc>Pauses the virtual machine execution.
6019 <result name="VBOX_E_INVALID_VM_STATE">
6020 Virtual machine not in Running state.
6021 </result>
6022 <result name="VBOX_E_VM_ERROR">
6023 Virtual machine error in suspend operation.
6024 </result>
6025 </desc>
6026 </method>
6027
6028 <method name="resume">
6029 <desc>Resumes the virtual machine execution.
6030 <result name="VBOX_E_INVALID_VM_STATE">
6031 Virtual machine not in Paused state.
6032 </result>
6033 <result name="VBOX_E_VM_ERROR">
6034 Virtual machine error in resume operation.
6035 </result>
6036 </desc>
6037 </method>
6038
6039 <method name="powerButton">
6040 <desc>Sends the ACPI power button event to the guest.
6041 <result name="VBOX_E_INVALID_VM_STATE">
6042 Virtual machine not in Running state.
6043 </result>
6044 <result name="VBOX_E_PDM_ERROR">
6045 Controlled power off failed.
6046 </result>
6047 </desc>
6048 </method>
6049
6050 <method name="sleepButton">
6051 <desc>Sends the ACPI sleep button event to the guest.
6052 <result name="VBOX_E_INVALID_VM_STATE">
6053 Virtual machine not in Running state.
6054 </result>
6055 <result name="VBOX_E_PDM_ERROR">
6056 Sending sleep button event failed.
6057 </result>
6058 </desc>
6059 </method>
6060
6061 <method name="getPowerButtonHandled">
6062 <desc>Checks if the last power button event was handled by guest.
6063 <result name="VBOX_E_PDM_ERROR">
6064 Checking if the event was handled by the guest OS failed.
6065 </result>
6066 </desc>
6067 <param name="handled" type="boolean" dir="return"/>
6068 </method>
6069
6070 <method name="getGuestEnteredACPIMode">
6071 <desc>Checks if the guest entered the ACPI mode G0 (working) or
6072 G1 (sleeping). If this method returns @c false, the guest will
6073 most likely not respond to external ACPI events.
6074 <result name="VBOX_E_INVALID_VM_STATE">
6075 Virtual machine not in Running state.
6076 </result>
6077 </desc>
6078 <param name="entered" type="boolean" dir="return"/>
6079 </method>
6080
6081 <method name="saveState">
6082 <desc>
6083 Saves the current execution state of a running virtual machine
6084 and stops its execution.
6085
6086 After this operation completes, the machine will go to the
6087 Saved state. Next time it is powered up, this state will
6088 be restored and the machine will continue its execution from
6089 the place where it was saved.
6090
6091 This operation differs from taking a snapshot to the effect
6092 that it doesn't create new differencing media. Also, once
6093 the machine is powered up from the state saved using this method,
6094 the saved state is deleted, so it will be impossible to return
6095 to this state later.
6096
6097 <note>
6098 On success, this method implicitly calls
6099 <link to="IMachine::saveSettings"/> to save all current machine
6100 settings (including runtime changes to the DVD medium, etc.).
6101 Together with the impossibility to change any VM settings when it is
6102 in the Saved state, this guarantees adequate hardware
6103 configuration of the machine when it is restored from the saved
6104 state file.
6105 </note>
6106
6107 <note>
6108 The machine must be in the Running or Paused state, otherwise
6109 the operation will fail.
6110 </note>
6111 <result name="VBOX_E_INVALID_VM_STATE">
6112 Virtual machine state neither Running nor Paused.
6113 </result>
6114 <result name="VBOX_E_FILE_ERROR">
6115 Failed to create directory for saved state file.
6116 </result>
6117
6118 <see><link to="#takeSnapshot"/></see>
6119 </desc>
6120 <param name="progress" type="IProgress" dir="return">
6121 <desc>Progress object to track the operation completion.</desc>
6122 </param>
6123 </method>
6124
6125 <method name="adoptSavedState">
6126 <desc>
6127 Associates the given saved state file to the virtual machine.
6128
6129 On success, the machine will go to the Saved state. Next time it is
6130 powered up, it will be restored from the adopted saved state and
6131 continue execution from the place where the saved state file was
6132 created.
6133
6134 The specified saved state file path may be absolute or relative to the
6135 folder the VM normally saves the state to (usually,
6136 <link to="IMachine::snapshotFolder"/>).
6137
6138 <note>
6139 It's a caller's responsibility to make sure the given saved state
6140 file is compatible with the settings of this virtual machine that
6141 represent its virtual hardware (memory size, storage disk configuration
6142 etc.). If there is a mismatch, the behavior of the virtual machine
6143 is undefined.
6144 </note>
6145 <result name="VBOX_E_INVALID_VM_STATE">
6146 Virtual machine state neither PoweredOff nor Aborted.
6147 </result>
6148 </desc>
6149 <param name="savedStateFile" type="wstring" dir="in">
6150 <desc>Path to the saved state file to adopt.</desc>
6151 </param>
6152 </method>
6153
6154 <method name="discardSavedState">
6155 <desc>
6156 Forcibly resets the machine to "Powered Off" state if it is
6157 currently in the "Saved" state (previously created by <link to="#saveState"/>).
6158 Next time the machine is powered up, a clean boot will occur.
6159 <note>
6160 This operation is equivalent to resetting or powering off
6161 the machine without doing a proper shutdown of the guest
6162 operating system; as with resetting a running phyiscal
6163 computer, it can can lead to data loss.
6164 </note>
6165 If @a fRemoveFile is @c true, the file in the machine directory
6166 into which the machine state was saved is also deleted. If
6167 this is @c false, then the state can be recovered and later
6168 re-inserted into a machine using <link to="#adoptSavedState" />.
6169 The location of the file can be found in the
6170 <link to="IMachine::stateFilePath" /> attribute.
6171 <result name="VBOX_E_INVALID_VM_STATE">
6172 Virtual machine not in state Saved.
6173 </result>
6174 </desc>
6175 <param name="fRemoveFile" type="boolean" dir="in" >
6176 <desc>Whether to also remove the saved state file.</desc>
6177 </param>
6178 </method>
6179
6180 <method name="getDeviceActivity">
6181 <desc>
6182 Gets the current activity type of a given device or device group.
6183 <result name="E_INVALIDARG">
6184 Invalid device type.
6185 </result>
6186 </desc>
6187 <param name="type" type="DeviceType" dir="in"/>
6188 <param name="activity" type="DeviceActivity" dir="return"/>
6189 </method>
6190
6191 <method name="attachUSBDevice">
6192 <desc>
6193 Attaches a host USB device with the given UUID to the
6194 USB controller of the virtual machine.
6195
6196 The device needs to be in one of the following states:
6197 <link to="USBDeviceState_Busy"/>,
6198 <link to="USBDeviceState_Available"/> or
6199 <link to="USBDeviceState_Held"/>,
6200 otherwise an error is immediately returned.
6201
6202 When the device state is
6203 <link to="USBDeviceState_Busy">Busy</link>, an error may also
6204 be returned if the host computer refuses to release it for some reason.
6205
6206 <see>IUSBController::deviceFilters, USBDeviceState</see>
6207 <result name="VBOX_E_INVALID_VM_STATE">
6208 Virtual machine state neither Running nor Paused.
6209 </result>
6210 <result name="VBOX_E_PDM_ERROR">
6211 Virtual machine does not have a USB controller.
6212 </result>
6213 </desc>
6214 <param name="id" type="uuid" mod="string" dir="in">
6215 <desc>UUID of the host USB device to attach.</desc>
6216 </param>
6217 </method>
6218
6219 <method name="detachUSBDevice">
6220 <desc>
6221 Detaches an USB device with the given UUID from the USB controller
6222 of the virtual machine.
6223
6224 After this method succeeds, the VirtualBox server re-initiates
6225 all USB filters as if the device were just physically attached
6226 to the host, but filters of this machine are ignored to avoid
6227 a possible automatic re-attachment.
6228
6229 <see>IUSBController::deviceFilters, USBDeviceState</see>
6230
6231 <result name="VBOX_E_PDM_ERROR">
6232 Virtual machine does not have a USB controller.
6233 </result>
6234 <result name="E_INVALIDARG">
6235 USB device not attached to this virtual machine.
6236 </result>
6237 </desc>
6238 <param name="id" type="uuid" mod="string" dir="in">
6239 <desc>UUID of the USB device to detach.</desc>
6240 </param>
6241 <param name="device" type="IUSBDevice" dir="return">
6242 <desc>Detached USB device.</desc>
6243 </param>
6244 </method>
6245
6246 <method name="findUSBDeviceByAddress">
6247 <desc>
6248 Searches for a USB device with the given host address.
6249
6250 <result name="VBOX_E_OBJECT_NOT_FOUND">
6251 Given @c name does not correspond to any USB device.
6252 </result>
6253
6254 <see>IUSBDevice::address</see>
6255 </desc>
6256 <param name="name" type="wstring" dir="in">
6257 <desc>
6258 Address of the USB device (as assigned by the host) to
6259 search for.
6260 </desc>
6261 </param>
6262 <param name="device" type="IUSBDevice" dir="return">
6263 <desc>Found USB device object.</desc>
6264 </param>
6265 </method>
6266
6267 <method name="findUSBDeviceById">
6268 <desc>
6269 Searches for a USB device with the given UUID.
6270
6271 <result name="VBOX_E_OBJECT_NOT_FOUND">
6272 Given @c id does not correspond to any USB device.
6273 </result>
6274
6275 <see>IUSBDevice::id</see>
6276 </desc>
6277 <param name="id" type="uuid" mod="string" dir="in">
6278 <desc>UUID of the USB device to search for.</desc>
6279 </param>
6280 <param name="device" type="IUSBDevice" dir="return">
6281 <desc>Found USB device object.</desc>
6282 </param>
6283 </method>
6284
6285 <method name="createSharedFolder">
6286 <desc>
6287 Creates a transient new shared folder by associating the given logical
6288 name with the given host path, adds it to the collection of shared
6289 folders and starts sharing it. Refer to the description of
6290 <link to="ISharedFolder"/> to read more about logical names.
6291
6292 <result name="VBOX_E_INVALID_VM_STATE">
6293 Virtual machine in Saved state or currently changing state.
6294 </result>
6295 <result name="VBOX_E_FILE_ERROR">
6296 Shared folder already exists or not accessible.
6297 </result>
6298 </desc>
6299 <param name="name" type="wstring" dir="in">
6300 <desc>Unique logical name of the shared folder.</desc>
6301 </param>
6302 <param name="hostPath" type="wstring" dir="in">
6303 <desc>Full path to the shared folder in the host file system.</desc>
6304 </param>
6305 <param name="writable" type="boolean" dir="in">
6306 <desc>Whether the share is writable or readonly</desc>
6307 </param>
6308 <param name="automount" type="boolean" dir="in">
6309 <desc>Whether the share gets automatically mounted by the guest
6310 or not.</desc>
6311 </param>
6312 </method>
6313
6314 <method name="removeSharedFolder">
6315 <desc>
6316 Removes a transient shared folder with the given name previously
6317 created by <link to="#createSharedFolder"/> from the collection of
6318 shared folders and stops sharing it.
6319 <result name="VBOX_E_INVALID_VM_STATE">
6320 Virtual machine in Saved state or currently changing state.
6321 </result>
6322 <result name="VBOX_E_FILE_ERROR">
6323 Shared folder does not exists.
6324 </result>
6325 </desc>
6326 <param name="name" type="wstring" dir="in">
6327 <desc>Logical name of the shared folder to remove.</desc>
6328 </param>
6329 </method>
6330
6331 <method name="takeSnapshot">
6332 <desc>
6333 Saves the current execution state
6334 and all settings of the machine and creates differencing images
6335 for all normal (non-independent) media.
6336 See <link to="ISnapshot" /> for an introduction to snapshots.
6337
6338 This method can be called for a PoweredOff, Saved (see
6339 <link to="#saveState"/>), Running or
6340 Paused virtual machine. When the machine is PoweredOff, an
6341 offline snapshot is created. When the machine is Running a live
6342 snapshot is created, and an online snapshot is is created when Paused.
6343
6344 The taken snapshot is always based on the
6345 <link to="IMachine::currentSnapshot">current snapshot</link>
6346 of the associated virtual machine and becomes a new current snapshot.
6347
6348 <note>
6349 This method implicitly calls <link to="IMachine::saveSettings"/> to
6350 save all current machine settings before taking an offline snapshot.
6351 </note>
6352
6353 <result name="VBOX_E_INVALID_VM_STATE">
6354 Virtual machine currently changing state.
6355 </result>
6356 </desc>
6357 <param name="name" type="wstring" dir="in">
6358 <desc>Short name for the snapshot.</desc>
6359 </param>
6360 <param name="description" type="wstring" dir="in">
6361 <desc>Optional description of the snapshot.</desc>
6362 </param>
6363 <param name="progress" type="IProgress" dir="return">
6364 <desc>Progress object to track the operation completion.</desc>
6365 </param>
6366 </method>
6367
6368 <method name="deleteSnapshot">
6369 <desc>
6370 Starts deleting the specified snapshot asynchronously.
6371 See <link to="ISnapshot" /> for an introduction to snapshots.
6372
6373 The execution state and settings of the associated machine stored in
6374 the snapshot will be deleted. The contents of all differencing media of
6375 this snapshot will be merged with the contents of their dependent child
6376 media to keep the medium chain valid (in other words, all changes
6377 represented by media being deleted will be propagated to their child
6378 medium). After that, this snapshot's differencing medium will be
6379 deleted. The parent of this snapshot will become a new parent for all
6380 its child snapshots.
6381
6382 If the deleted snapshot is the current one, its parent snapshot will
6383 become a new current snapshot. The current machine state is not directly
6384 affected in this case, except that currently attached differencing
6385 media based on media of the deleted snapshot will be also merged as
6386 described above.
6387
6388 If the deleted snapshot is the first or current snapshot, then the
6389 respective IMachine attributes will be adjusted. Deleting the current
6390 snapshot will also implicitly call <link to="IMachine::saveSettings"/>
6391 to make all current machine settings permanent.
6392
6393 Deleting a snapshot has the following preconditions:
6394
6395 <ul>
6396 <li>Child media of all normal media of the deleted snapshot
6397 must be accessible (see <link to="IMedium::state"/>) for this
6398 operation to succeed. In particular, this means that all virtual
6399 machines whose media are directly or indirectly based on the
6400 media of deleted snapshot must be powered off.</li>
6401
6402 <li>You cannot delete the snapshot if a medium attached to it has
6403 more than once child medium (differencing images) because otherwise
6404 merging would be impossible. This might be the case if there is
6405 more than one child snapshot or differencing images were created
6406 for other reason (e.g. implicitly because of multiple machine
6407 attachments).</li>
6408 </ul>
6409
6410
6411 The virtual machine's <link to="IMachine::state">state</link> is
6412 changed to "DeletingSnapshot", "DeletingSnapshotOnline" or
6413 "DeletingSnapshotPaused" while this operation is in progress.
6414
6415 <note>
6416 Merging medium contents can be very time and disk space
6417 consuming, if these media are big in size and have many
6418 children. However, if the snapshot being deleted is the last
6419 (head) snapshot on the branch, the operation will be rather
6420 quick.
6421 </note>
6422 <result name="VBOX_E_INVALID_VM_STATE">
6423 The running virtual machine prevents deleting this snapshot. This
6424 happens only in very specific situations, usually snapshots can be
6425 deleted without trouble while a VM is running. The error message
6426 text explains the reason for the failure.
6427 </result>
6428 </desc>
6429 <param name="id" type="uuid" mod="string" dir="in">
6430 <desc>UUID of the snapshot to delete.</desc>
6431 </param>
6432 <param name="progress" type="IProgress" dir="return">
6433 <desc>Progress object to track the operation completion.</desc>
6434 </param>
6435 </method>
6436
6437 <method name="restoreSnapshot">
6438 <desc>
6439 Starts resetting the machine's current state to the state contained
6440 in the given snapshot, asynchronously. All current settings of the
6441 machine will be reset and changes stored in differencing media
6442 will be lost.
6443 See <link to="ISnapshot" /> for an introduction to snapshots.
6444
6445 After this operation is successfully completed, new empty differencing
6446 media are created for all normal media of the machine.
6447
6448 If the given snapshot is an online snapshot, the machine will go to
6449 the <link to="MachineState_Saved"> saved state</link>, so that the
6450 next time it is powered on, the execution state will be restored
6451 from the state of the snapshot.
6452
6453 <note>
6454 The machine must not be running, otherwise the operation will fail.
6455 </note>
6456
6457 <note>
6458 If the machine state is <link to="MachineState_Saved">Saved</link>
6459 prior to this operation, the saved state file will be implicitly
6460 deleted (as if <link to="IConsole::discardSavedState"/> were
6461 called).
6462 </note>
6463
6464 <result name="VBOX_E_INVALID_VM_STATE">
6465 Virtual machine is running.
6466 </result>
6467 </desc>
6468 <param name="snapshot" type="ISnapshot" dir="in">
6469 <desc>The snapshot to restore the VM state from.</desc>
6470 </param>
6471 <param name="progress" type="IProgress" dir="return">
6472 <desc>Progress object to track the operation completion.</desc>
6473 </param>
6474 </method>
6475
6476 <method name="teleport">
6477 <desc>
6478 Teleport the VM to a different host machine or process.
6479
6480 TODO explain the details.
6481
6482 <result name="VBOX_E_INVALID_VM_STATE">
6483 Virtual machine not running or paused.
6484 </result>
6485 </desc>
6486 <param name="hostname" type="wstring" dir="in">
6487 <desc>The name or IP of the host to teleport to.</desc>
6488 </param>
6489 <param name="tcpport" type="unsigned long" dir="in">
6490 <desc>The TCP port to connect to (1..65535).</desc>
6491 </param>
6492 <param name="password" type="wstring" dir="in">
6493 <desc>The password.</desc>
6494 </param>
6495 <param name="maxDowntime" type="unsigned long" dir="in">
6496 <desc>
6497 The maximum allowed downtime given as milliseconds. 0 is not a valid
6498 value. Recommended value: 250 ms.
6499
6500 The higher the value is, the greater the chance for a successful
6501 teleportation. A small value may easily result in the teleportation
6502 process taking hours and eventually fail.
6503
6504 <note>
6505 The current implementation treats this a guideline, not as an
6506 absolute rule.
6507 </note>
6508 </desc>
6509 </param>
6510 <param name="progress" type="IProgress" dir="return">
6511 <desc>Progress object to track the operation completion.</desc>
6512 </param>
6513 </method>
6514
6515 </interface>
6516
6517 <!--
6518 // IHost
6519 /////////////////////////////////////////////////////////////////////////
6520 -->
6521
6522 <enum
6523 name="HostNetworkInterfaceMediumType"
6524 uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
6525 >
6526 <desc>
6527 Type of encapsulation. Ethernet encapsulation includes both wired and
6528 wireless Ethernet connections.
6529 <see>IHostNetworkInterface</see>
6530 </desc>
6531
6532 <const name="Unknown" value="0">
6533 <desc>
6534 The type of interface cannot be determined.
6535 </desc>
6536 </const>
6537 <const name="Ethernet" value="1">
6538 <desc>
6539 Ethernet frame encapsulation.
6540 </desc>
6541 </const>
6542 <const name="PPP" value="2">
6543 <desc>
6544 Point-to-point protocol encapsulation.
6545 </desc>
6546 </const>
6547 <const name="SLIP" value="3">
6548 <desc>
6549 Serial line IP encapsulation.
6550 </desc>
6551 </const>
6552 </enum>
6553
6554 <enum
6555 name="HostNetworkInterfaceStatus"
6556 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
6557 >
6558 <desc>
6559 Current status of the interface.
6560 <see>IHostNetworkInterface</see>
6561 </desc>
6562
6563 <const name="Unknown" value="0">
6564 <desc>
6565 The state of interface cannot be determined.
6566 </desc>
6567 </const>
6568 <const name="Up" value="1">
6569 <desc>
6570 The interface is fully operational.
6571 </desc>
6572 </const>
6573 <const name="Down" value="2">
6574 <desc>
6575 The interface is not functioning.
6576 </desc>
6577 </const>
6578 </enum>
6579
6580 <enum
6581 name="HostNetworkInterfaceType"
6582 uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
6583 >
6584 <desc>
6585 Network interface type.
6586 </desc>
6587 <const name="Bridged" value="1"/>
6588 <const name="HostOnly" value="2"/>
6589 </enum>
6590
6591 <interface
6592 name="IHostNetworkInterface" extends="$unknown"
6593 uuid="ce6fae58-7642-4102-b5db-c9005c2320a8"
6594 wsmap="managed"
6595 >
6596 <desc>
6597 Represents one of host's network interfaces. IP V6 address and network
6598 mask are strings of 32 hexdecimal digits grouped by four. Groups are
6599 separated by colons.
6600 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
6601 </desc>
6602 <attribute name="name" type="wstring" readonly="yes">
6603 <desc>Returns the host network interface name.</desc>
6604 </attribute>
6605
6606 <attribute name="id" type="uuid" mod="string" readonly="yes">
6607 <desc>Returns the interface UUID.</desc>
6608 </attribute>
6609
6610 <attribute name="networkName" type="wstring" readonly="yes">
6611 <desc>Returns the name of a virtual network the interface gets attached to.</desc>
6612 </attribute>
6613
6614 <attribute name="dhcpEnabled" type="boolean" readonly="yes">
6615 <desc>Specifies whether the DHCP is enabled for the interface.</desc>
6616 </attribute>
6617
6618 <attribute name="IPAddress" type="wstring" readonly="yes">
6619 <desc>Returns the IP V4 address of the interface.</desc>
6620 </attribute>
6621
6622 <attribute name="networkMask" type="wstring" readonly="yes">
6623 <desc>Returns the network mask of the interface.</desc>
6624 </attribute>
6625
6626 <attribute name="IPV6Supported" type="boolean" readonly="yes">
6627 <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
6628 </attribute>
6629
6630 <attribute name="IPV6Address" type="wstring" readonly="yes">
6631 <desc>Returns the IP V6 address of the interface.</desc>
6632 </attribute>
6633
6634 <attribute name="IPV6NetworkMaskPrefixLength" type="unsigned long" readonly="yes">
6635 <desc>Returns the length IP V6 network mask prefix of the interface.</desc>
6636 </attribute>
6637
6638 <attribute name="hardwareAddress" type="wstring" readonly="yes">
6639 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
6640 </attribute>
6641
6642 <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
6643 <desc>Type of protocol encapsulation used.</desc>
6644 </attribute>
6645
6646 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
6647 <desc>Status of the interface.</desc>
6648 </attribute>
6649
6650 <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
6651 <desc>specifies the host interface type.</desc>
6652 </attribute>
6653
6654 <method name="enableStaticIpConfig">
6655 <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
6656 <param name="IPAddress" type="wstring" dir="in">
6657 <desc>
6658 IP address.
6659 </desc>
6660 </param>
6661 <param name="networkMask" type="wstring" dir="in">
6662 <desc>
6663 network mask.
6664 </desc>
6665 </param>
6666 </method>
6667
6668 <method name="enableStaticIpConfigV6">
6669 <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
6670 <param name="IPV6Address" type="wstring" dir="in">
6671 <desc>
6672 IP address.
6673 </desc>
6674 </param>
6675 <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
6676 <desc>
6677 network mask.
6678 </desc>
6679 </param>
6680 </method>
6681
6682 <method name="enableDynamicIpConfig">
6683 <desc>enables the dynamic IP configuration.</desc>
6684 </method>
6685
6686 <method name="dhcpRediscover">
6687 <desc>refreshes the IP configuration for dhcp-enabled interface.</desc>
6688 </method>
6689
6690 </interface>
6691
6692 <interface
6693 name="IHost" extends="$unknown"
6694 uuid="35b004f4-7806-4009-bfa8-d1308adba7e5"
6695 wsmap="managed"
6696 >
6697 <desc>
6698 The IHost interface represents the physical machine that this VirtualBox
6699 installation runs on.
6700
6701 An object implementing this interface is returned by the
6702 <link to="IVirtualBox::host" /> attribute. This interface contains
6703 read-only information about the host's physical hardware (such as what
6704 processors and disks are available, what the host operating system is,
6705 and so on) and also allows for manipulating some of the host's hardware,
6706 such as global USB device filters and host interface networking.
6707
6708 </desc>
6709 <attribute name="DVDDrives" type="IMedium" readonly="yes" safearray="yes">
6710 <desc>List of DVD drives available on the host.</desc>
6711 </attribute>
6712
6713 <attribute name="floppyDrives" type="IMedium" readonly="yes" safearray="yes">
6714 <desc>List of floppy drives available on the host.</desc>
6715 </attribute>
6716
6717 <attribute name="USBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
6718 <desc>
6719 List of USB devices currently attached to the host.
6720 Once a new device is physically attached to the host computer,
6721 it appears in this list and remains there until detached.
6722
6723 <note>
6724 If USB functionality is not available in the given edition of
6725 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6726 </note>
6727 </desc>
6728 </attribute>
6729
6730 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
6731 <desc>
6732 List of USB device filters in action.
6733 When a new device is physically attached to the host computer,
6734 filters from this list are applied to it (in order they are stored
6735 in the list). The first matched filter will determine the
6736 <link to="IHostUSBDeviceFilter::action">action</link>
6737 performed on the device.
6738
6739 Unless the device is ignored by these filters, filters of all
6740 currently running virtual machines
6741 (<link to="IUSBController::deviceFilters"/>) are applied to it.
6742
6743 <note>
6744 If USB functionality is not available in the given edition of
6745 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6746 </note>
6747
6748 <see>IHostUSBDeviceFilter, USBDeviceState</see>
6749 </desc>
6750 </attribute>
6751
6752 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
6753 <desc>List of host network interfaces currently defined on the host.</desc>
6754 </attribute>
6755
6756 <attribute name="processorCount" type="unsigned long" readonly="yes">
6757 <desc>Number of (logical) CPUs installed in the host system.</desc>
6758 </attribute>
6759
6760 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
6761 <desc>Number of (logical) CPUs online in the host system.</desc>
6762 </attribute>
6763
6764 <attribute name="processorCoreCount" type="unsigned long" readonly="yes">
6765 <desc>Number of physical processor cores installed in the host system.</desc>
6766 </attribute>
6767
6768 <method name="getProcessorSpeed">
6769 <desc>Query the (approximate) maximum speed of a specified host CPU in
6770 Megahertz.
6771 </desc>
6772 <param name="cpuId" type="unsigned long" dir="in">
6773 <desc>
6774 Identifier of the CPU.
6775 </desc>
6776 </param>
6777 <param name="speed" type="unsigned long" dir="return">
6778 <desc>
6779 Speed value. 0 is returned if value is not known or @a cpuId is
6780 invalid.
6781 </desc>
6782 </param>
6783 </method>
6784
6785 <method name="getProcessorFeature">
6786 <desc>Query whether a CPU feature is supported or not.</desc>
6787 <param name="feature" type="ProcessorFeature" dir="in">
6788 <desc>
6789 CPU Feature identifier.
6790 </desc>
6791 </param>
6792 <param name="supported" type="boolean" dir="return">
6793 <desc>
6794 Feature is supported or not.
6795 </desc>
6796 </param>
6797 </method>
6798
6799 <method name="getProcessorDescription">
6800 <desc>Query the model string of a specified host CPU.
6801 </desc>
6802 <param name="cpuId" type="unsigned long" dir="in">
6803 <desc>
6804 Identifier of the CPU.
6805 <note>
6806 The current implementation might not necessarily return the
6807 description for this exact CPU.
6808 </note>
6809 </desc>
6810 </param>
6811 <param name="description" type="wstring" dir="return">
6812 <desc>
6813 Model string. An empty string is returned if value is not known or
6814 @a cpuId is invalid.
6815 </desc>
6816 </param>
6817 </method>
6818
6819 <method name="getProcessorCPUIDLeaf">
6820 <desc>
6821 Returns the CPU cpuid information for the specified leaf.
6822 </desc>
6823 <param name="cpuId" type="unsigned long" dir="in">
6824 <desc>
6825 Identifier of the CPU. The CPU most be online.
6826 <note>
6827 The current implementation might not necessarily return the
6828 description for this exact CPU.
6829 </note>
6830 </desc>
6831 </param>
6832 <param name="leaf" type="unsigned long" dir="in">
6833 <desc>
6834 CPUID leaf index (eax).
6835 </desc>
6836 </param>
6837 <param name="subLeaf" type="unsigned long" dir="in">
6838 <desc>
6839 CPUID leaf sub index (ecx). This currently only applies to cache
6840 information on Intel CPUs. Use 0 if retrieving values for
6841 <link to="IMachine::setCPUIDLeaf"/>.
6842 </desc>
6843 </param>
6844 <param name="valEax" type="unsigned long" dir="out">
6845 <desc>
6846 CPUID leaf value for register eax.
6847 </desc>
6848 </param>
6849 <param name="valEbx" type="unsigned long" dir="out">
6850 <desc>
6851 CPUID leaf value for register ebx.
6852 </desc>
6853 </param>
6854 <param name="valEcx" type="unsigned long" dir="out">
6855 <desc>
6856 CPUID leaf value for register ecx.
6857 </desc>
6858 </param>
6859 <param name="valEdx" type="unsigned long" dir="out">
6860 <desc>
6861 CPUID leaf value for register edx.
6862 </desc>
6863 </param>
6864 </method>
6865
6866 <attribute name="memorySize" type="unsigned long" readonly="yes">
6867 <desc>Amount of system memory in megabytes installed in the host system.</desc>
6868 </attribute>
6869
6870 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
6871 <desc>Available system memory in the host system.</desc>
6872 </attribute>
6873
6874 <attribute name="operatingSystem" type="wstring" readonly="yes">
6875 <desc>Name of the host system's operating system.</desc>
6876 </attribute>
6877
6878 <attribute name="OSVersion" type="wstring" readonly="yes">
6879 <desc>Host operating system's version string.</desc>
6880 </attribute>
6881
6882 <attribute name="UTCTime" type="long long" readonly="yes">
6883 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
6884 </attribute>
6885
6886 <attribute name="Acceleration3DAvailable" type="boolean" readonly="yes">
6887 <desc>Returns @c true when the host supports 3D hardware acceleration.</desc>
6888 </attribute>
6889
6890 <method name="createHostOnlyNetworkInterface">
6891 <desc>
6892 Creates a new adapter for Host Only Networking.
6893 <result name="E_INVALIDARG">
6894 Host network interface @a name already exists.
6895 </result>
6896 </desc>
6897 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
6898 <desc>
6899 Created host interface object.
6900 </desc>
6901 </param>
6902 <param name="progress" type="IProgress" dir="return">
6903 <desc>
6904 Progress object to track the operation completion.
6905 </desc>
6906 </param>
6907 </method>
6908
6909 <method name="removeHostOnlyNetworkInterface">
6910 <desc>
6911 Removes the given Host Only Networking interface.
6912 <result name="VBOX_E_OBJECT_NOT_FOUND">
6913 No host network interface matching @a id found.
6914 </result>
6915 </desc>
6916 <param name="id" type="uuid" mod="string" dir="in">
6917 <desc>
6918 Adapter GUID.
6919 </desc>
6920 </param>
6921 <param name="progress" type="IProgress" dir="return">
6922 <desc>
6923 Progress object to track the operation completion.
6924 </desc>
6925 </param>
6926 </method>
6927
6928 <method name="createUSBDeviceFilter">
6929 <desc>
6930 Creates a new USB device filter. All attributes except
6931 the filter name are set to empty (any match),
6932 <i>active</i> is @c false (the filter is not active).
6933
6934 The created filter can be added to the list of filters using
6935 <link to="#insertUSBDeviceFilter"/>.
6936
6937 <see>#USBDeviceFilters</see>
6938 </desc>
6939 <param name="name" type="wstring" dir="in">
6940 <desc>
6941 Filter name. See <link to="IUSBDeviceFilter::name"/> for more information.
6942 </desc>
6943 </param>
6944 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
6945 <desc>Created filter object.</desc>
6946 </param>
6947 </method>
6948
6949 <method name="insertUSBDeviceFilter">
6950 <desc>
6951 Inserts the given USB device to the specified position
6952 in the list of filters.
6953
6954 Positions are numbered starting from @c 0. If the specified
6955 position is equal to or greater than the number of elements in
6956 the list, the filter is added at the end of the collection.
6957
6958 <note>
6959 Duplicates are not allowed, so an attempt to insert a
6960 filter already in the list is an error.
6961 </note>
6962 <note>
6963 If USB functionality is not available in the given edition of
6964 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6965 </note>
6966
6967 <see>#USBDeviceFilters</see>
6968
6969 <result name="VBOX_E_INVALID_OBJECT_STATE">
6970 USB device filter is not created within this VirtualBox instance.
6971 </result>
6972 <result name="E_INVALIDARG">
6973 USB device filter already in list.
6974 </result>
6975
6976 </desc>
6977 <param name="position" type="unsigned long" dir="in">
6978 <desc>Position to insert the filter to.</desc>
6979 </param>
6980 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
6981 <desc>USB device filter to insert.</desc>
6982 </param>
6983 </method>
6984
6985 <method name="removeUSBDeviceFilter">
6986 <desc>
6987 Removes a USB device filter from the specified position in the
6988 list of filters.
6989
6990 Positions are numbered starting from @c 0. Specifying a
6991 position equal to or greater than the number of elements in
6992 the list will produce an error.
6993
6994 <note>
6995 If USB functionality is not available in the given edition of
6996 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6997 </note>
6998
6999 <see>#USBDeviceFilters</see>
7000
7001 <result name="E_INVALIDARG">
7002 USB device filter list empty or invalid @a position.
7003 </result>
7004
7005 </desc>
7006 <param name="position" type="unsigned long" dir="in">
7007 <desc>Position to remove the filter from.</desc>
7008 </param>
7009 </method>
7010
7011 <method name="findHostDVDDrive">
7012 <desc>
7013 Searches for a host DVD drive with the given @c name.
7014
7015 <result name="VBOX_E_OBJECT_NOT_FOUND">
7016 Given @c name does not correspond to any host drive.
7017 </result>
7018
7019 </desc>
7020 <param name="name" type="wstring" dir="in">
7021 <desc>Name of the host drive to search for</desc>
7022 </param>
7023 <param name="drive" type="IMedium" dir="return">
7024 <desc>Found host drive object</desc>
7025 </param>
7026 </method>
7027
7028 <method name="findHostFloppyDrive">
7029 <desc>
7030 Searches for a host floppy drive with the given @c name.
7031
7032 <result name="VBOX_E_OBJECT_NOT_FOUND">
7033 Given @c name does not correspond to any host floppy drive.
7034 </result>
7035
7036 </desc>
7037 <param name="name" type="wstring" dir="in">
7038 <desc>Name of the host floppy drive to search for</desc>
7039 </param>
7040 <param name="drive" type="IMedium" dir="return">
7041 <desc>Found host floppy drive object</desc>
7042 </param>
7043 </method>
7044
7045 <method name="findHostNetworkInterfaceByName">
7046 <desc>
7047 Searches through all host network interfaces for an interface with
7048 the given @c name.
7049 <note>
7050 The method returns an error if the given @c name does not
7051 correspond to any host network interface.
7052 </note>
7053 </desc>
7054 <param name="name" type="wstring" dir="in">
7055 <desc>Name of the host network interface to search for.</desc>
7056 </param>
7057 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
7058 <desc>Found host network interface object.</desc>
7059 </param>
7060 </method>
7061 <method name="findHostNetworkInterfaceById">
7062 <desc>
7063 Searches through all host network interfaces for an interface with
7064 the given GUID.
7065 <note>
7066 The method returns an error if the given GUID does not
7067 correspond to any host network interface.
7068 </note>
7069 </desc>
7070 <param name="id" type="uuid" mod="string" dir="in">
7071 <desc>GUID of the host network interface to search for.</desc>
7072 </param>
7073 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
7074 <desc>Found host network interface object.</desc>
7075 </param>
7076 </method>
7077 <method name="findHostNetworkInterfacesOfType">
7078 <desc>
7079 Searches through all host network interfaces and returns a list of interfaces of the specified type
7080 </desc>
7081 <param name="type" type="HostNetworkInterfaceType" dir="in">
7082 <desc>type of the host network interfaces to search for.</desc>
7083 </param>
7084 <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
7085 <desc>Found host network interface objects.</desc>
7086 </param>
7087 </method>
7088
7089 <method name="findUSBDeviceById">
7090 <desc>
7091 Searches for a USB device with the given UUID.
7092
7093 <result name="VBOX_E_OBJECT_NOT_FOUND">
7094 Given @c id does not correspond to any USB device.
7095 </result>
7096
7097 <see>IHostUSBDevice::id</see>
7098 </desc>
7099 <param name="id" type="uuid" mod="string" dir="in">
7100 <desc>UUID of the USB device to search for.</desc>
7101 </param>
7102 <param name="device" type="IHostUSBDevice" dir="return">
7103 <desc>Found USB device object.</desc>
7104 </param>
7105 </method>
7106
7107 <method name="findUSBDeviceByAddress">
7108 <desc>
7109 Searches for a USB device with the given host address.
7110
7111 <result name="VBOX_E_OBJECT_NOT_FOUND">
7112 Given @c name does not correspond to any USB device.
7113 </result>
7114
7115 <see>IHostUSBDevice::address</see>
7116 </desc>
7117 <param name="name" type="wstring" dir="in">
7118 <desc>
7119 Address of the USB device (as assigned by the host) to
7120 search for.
7121 </desc>
7122 </param>
7123 <param name="device" type="IHostUSBDevice" dir="return">
7124 <desc>Found USB device object.</desc>
7125 </param>
7126 </method>
7127
7128 </interface>
7129
7130 <!--
7131 // ISystemProperties
7132 /////////////////////////////////////////////////////////////////////////
7133 -->
7134
7135 <interface
7136 name="ISystemProperties"
7137 extends="$unknown"
7138 uuid="51c81048-b261-4fa2-a44e-fd756f0db589"
7139 wsmap="managed"
7140 >
7141 <desc>
7142 The ISystemProperties interface represents global properties of the given
7143 VirtualBox installation.
7144
7145 These properties define limits and default values for various attributes
7146 and parameters. Most of the properties are read-only, but some can be
7147 changed by a user.
7148 </desc>
7149
7150 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
7151 <desc>Minimum guest system memory in Megabytes.</desc>
7152 </attribute>
7153
7154 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
7155 <desc>Maximum guest system memory in Megabytes.</desc>
7156 </attribute>
7157
7158 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
7159 <desc>Minimum guest video memory in Megabytes.</desc>
7160 </attribute>
7161
7162 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
7163 <desc>Maximum guest video memory in Megabytes.</desc>
7164 </attribute>
7165
7166 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
7167 <desc>Minimum CPU count.</desc>
7168 </attribute>
7169
7170 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
7171 <desc>Maximum CPU count.</desc>
7172 </attribute>
7173
7174 <attribute name="maxGuestMonitors" type="unsigned long" readonly="yes">
7175 <desc>Maximum of monitors which could be connected.</desc>
7176 </attribute>
7177
7178 <attribute name="infoVDSize" type="long long" readonly="yes">
7179 <desc>Maximum size of a virtual disk image in bytes. Informational value,
7180 does not reflect the limits of any virtual disk image format.</desc>
7181 </attribute>
7182
7183 <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
7184 <desc>
7185 Number of network adapters associated with every
7186 <link to="IMachine"/> instance.
7187 </desc>
7188 </attribute>
7189
7190 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
7191 <desc>
7192 Number of serial ports associated with every
7193 <link to="IMachine"/> instance.
7194 </desc>
7195 </attribute>
7196
7197 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
7198 <desc>
7199 Number of parallel ports associated with every
7200 <link to="IMachine"/> instance.
7201 </desc>
7202 </attribute>
7203
7204 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
7205 <desc>
7206 Maximum device position in the boot order. This value corresponds
7207 to the total number of devices a machine can boot from, to make it
7208 possible to include all possible devices to the boot list.
7209 <see><link to="IMachine::setBootOrder"/></see>
7210 </desc>
7211 </attribute>
7212
7213 <attribute name="defaultMachineFolder" type="wstring">
7214 <desc>
7215 Full path to the default directory used to create new or open
7216 existing machines when a machine settings file name contains no
7217 path.
7218
7219 Starting with VirtualBox 4.0, by default, this attribute contains
7220 the full path of folder named "VirtualBox VMs" in the user's
7221 home directory, which depends on the host platform.
7222
7223 When setting this attribute, a full path must be specified.
7224 Setting this property to @c null or an empty string or the
7225 special value "Machines" (for compatibility reasons) will restore
7226 that default value.
7227
7228 If the folder specified herein does not exist, it will be created
7229 automatically as needed.
7230
7231 <see>
7232 <link to="IVirtualBox::createMachine"/>,
7233 <link to="IVirtualBox::openMachine"/>
7234 </see>
7235 </desc>
7236 </attribute>
7237
7238 <attribute name="mediumFormats" type="IMediumFormat" safearray="yes" readonly="yes">
7239 <desc>
7240 List of all medium storage formats supported by this VirtualBox
7241 installation.
7242
7243 Keep in mind that the medium format identifier
7244 (<link to="IMediumFormat::id"/>) used in other API calls like
7245 <link to="IVirtualBox::createHardDisk"/> to refer to a particular
7246 medium format is a case-insensitive string. This means that, for
7247 example, all of the following strings:
7248 <pre>
7249 "VDI"
7250 "vdi"
7251 "VdI"</pre>
7252 refer to the same medium format.
7253
7254 Note that the virtual medium framework is backend-based, therefore
7255 the list of supported formats depends on what backends are currently
7256 installed.
7257
7258 <see>
7259 <link to="IMediumFormat"/>,
7260 </see>
7261 </desc>
7262 </attribute>
7263
7264 <attribute name="defaultHardDiskFormat" type="wstring">
7265 <desc>
7266 Identifier of the default medium format used by VirtualBox.
7267
7268 The medium format set by this attribute is used by VirtualBox
7269 when the medium format was not specified explicitly. One example is
7270 <link to="IVirtualBox::createHardDisk"/> with the empty
7271 format argument. A more complex example is implicit creation of
7272 differencing media when taking a snapshot of a virtual machine:
7273 this operation will try to use a format of the parent medium first
7274 and if this format does not support differencing media the default
7275 format specified by this argument will be used.
7276
7277 The list of supported medium formats may be obtained by the
7278 <link to="#mediumFormats"/> call. Note that the default medium
7279 format must have a capability to create differencing media;
7280 otherwise operations that create media implicitly may fail
7281 unexpectedly.
7282
7283 The initial value of this property is <tt>"VDI"</tt> in the current
7284 version of the VirtualBox product, but may change in the future.
7285
7286 <note>
7287 Setting this property to @c null or empty string will restore the
7288 initial value.
7289 </note>
7290
7291 <see>
7292 <link to="#mediumFormats"/>,
7293 <link to="IMediumFormat::id"/>,
7294 <link to="IVirtualBox::createHardDisk"/>
7295 </see>
7296 </desc>
7297 </attribute>
7298
7299 <attribute name="freeDiskSpaceWarning" type="long long">
7300 <desc>Issue a warning if the free disk space is below (or in some disk
7301 intensive operation is expected to go below) the given size in
7302 bytes.</desc>
7303 </attribute>
7304
7305 <attribute name="freeDiskSpacePercentWarning" type="unsigned long">
7306 <desc>Issue a warning if the free disk space is below (or in some disk
7307 intensive operation is expected to go below) the given percentage.</desc>
7308 </attribute>
7309
7310 <attribute name="freeDiskSpaceError" type="long long">
7311 <desc>Issue an error if the free disk space is below (or in some disk
7312 intensive operation is expected to go below) the given size in
7313 bytes.</desc>
7314 </attribute>
7315
7316 <attribute name="freeDiskSpacePercentError" type="unsigned long">
7317 <desc>Issue an error if the free disk space is below (or in some disk
7318 intensive operation is expected to go below) the given percentage.</desc>
7319 </attribute>
7320
7321 <attribute name="VRDEAuthLibrary" type="wstring">
7322 <desc>
7323 Library that provides authentication for Remote Desktop clients. The library
7324 is used if a virtual machine's authentication type is set to "external"
7325 in the VM RemoteDisplay configuration.
7326
7327 The system library extension (".DLL" or ".so") must be omitted.
7328 A full path can be specified; if not, then the library must reside on the
7329 system's default library path.
7330
7331 The default value of this property is <tt>"VRDPAuth"</tt>. There is a library
7332 of that name in one of the default VirtualBox library directories.
7333
7334 For details about VirtualBox authentication libraries and how to implement
7335 them, please refer to the VirtualBox manual.
7336
7337 <note>
7338 Setting this property to @c null or empty string will restore the
7339 initial value.
7340 </note>
7341 </desc>
7342 </attribute>
7343
7344 <attribute name="webServiceAuthLibrary" type="wstring">
7345 <desc>
7346 Library that provides authentication for webservice clients. The library
7347 is used if a virtual machine's authentication type is set to "external"
7348 in the VM RemoteDisplay configuration and will be called from
7349 within the <link to="IWebsessionManager::logon" /> implementation.
7350
7351 As opposed to <link to="ISystemProperties::VRDEAuthLibrary" />,
7352 there is no per-VM setting for this, as the webservice is a global
7353 resource (if it is running). Only for this setting (for the webservice),
7354 setting this value to a literal <tt>"null"</tt> string disables authentication,
7355 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
7356 no matter what user name and password are supplied.
7357
7358 The initial value of this property is <tt>"VRDPAuth"</tt>,
7359 meaning that the webservice will use the same authentication
7360 library that is used by default for VRDE (again, see
7361 <link to="ISystemProperties::VRDEAuthLibrary" />).
7362 The format and calling convention of authentication libraries
7363 is the same for the webservice as it is for VRDE.
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="defaultVRDEExtPack" type="wstring">
7373 <desc>
7374 The name of the extension pack providing the default VRDE.
7375
7376 This attribute is for choosing between multiple extension packs
7377 providing VRDE. If only one is installed, it will automatically be the
7378 default one. The attribute value can be empty if no VRDE extension
7379 pack is installed.
7380
7381 For details about VirtualBox Remote Desktop Extension and how to
7382 implement one, please refer to the VirtualBox SDK.
7383 </desc>
7384 </attribute>
7385
7386 <attribute name="LogHistoryCount" type="unsigned long">
7387 <desc>
7388 This value specifies how many old release log files are kept.
7389 </desc>
7390 </attribute>
7391
7392 <attribute name="defaultAudioDriver" type="AudioDriverType" readonly="yes">
7393 <desc>This value hold the default audio driver for the current
7394 system.</desc>
7395 </attribute>
7396
7397 <method name="getMaxDevicesPerPortForStorageBus">
7398 <desc>Returns the maximum number of devices which can be attached to a port
7399 for the given storage bus.</desc>
7400
7401 <param name="bus" type="StorageBus" dir="in">
7402 <desc>The storage bus type to get the value for.</desc>
7403 </param>
7404
7405 <param name="maxDevicesPerPort" type="unsigned long" dir="return">
7406 <desc>The maximum number of devices which can eb attached to the port for the given
7407 storage bus.</desc>
7408 </param>
7409 </method>
7410
7411 <method name="getMinPortCountForStorageBus">
7412 <desc>Returns the minimum number of ports the given storage bus supports.</desc>
7413
7414 <param name="bus" type="StorageBus" dir="in">
7415 <desc>The storage bus type to get the value for.</desc>
7416 </param>
7417
7418 <param name="minPortCount" type="unsigned long" dir="return">
7419 <desc>The minimum number of ports for the given storage bus.</desc>
7420 </param>
7421 </method>
7422
7423 <method name="getMaxPortCountForStorageBus">
7424 <desc>Returns the maximum number of ports the given storage bus supports.</desc>
7425
7426 <param name="bus" type="StorageBus" dir="in">
7427 <desc>The storage bus type to get the value for.</desc>
7428 </param>
7429
7430 <param name="maxPortCount" type="unsigned long" dir="return">
7431 <desc>The maximum number of ports for the given storage bus.</desc>
7432 </param>
7433 </method>
7434
7435 <method name="getMaxInstancesOfStorageBus">
7436 <desc>Returns the maximum number of storage bus instances which
7437 can be configured for each VM. This corresponds to the number of
7438 storage controllers one can have. Value may depend on chipset type
7439 used.</desc>
7440
7441 <param name="chipset" type="ChipsetType" dir="in">
7442 <desc>The chipset type to get the value for.</desc>
7443 </param>
7444
7445 <param name="bus" type="StorageBus" dir="in">
7446 <desc>The storage bus type to get the value for.</desc>
7447 </param>
7448
7449 <param name="maxInstances" type="unsigned long" dir="return">
7450 <desc>The maximum number of instances for the given storage bus.</desc>
7451 </param>
7452 </method>
7453
7454 <method name="getDeviceTypesForStorageBus">
7455 <desc>Returns list of all the supported device types
7456 (<link to="DeviceType"/>) for the given type of storage
7457 bus.</desc>
7458
7459 <param name="bus" type="StorageBus" dir="in">
7460 <desc>The storage bus type to get the value for.</desc>
7461 </param>
7462
7463 <param name="deviceTypes" type="DeviceType" safearray="yes" dir="return">
7464 <desc>The list of all supported device types for the given storage bus.</desc>
7465 </param>
7466 </method>
7467
7468 <method name="getDefaultIoCacheSettingForStorageController">
7469 <desc>Returns the default I/O cache setting for the
7470 given storage controller</desc>
7471
7472 <param name="controllerType" type="StorageControllerType" dir="in">
7473 <desc>The storage controller to the setting for.</desc>
7474 </param>
7475
7476 <param name="enabled" type="boolean" dir="return">
7477 <desc>Returned flag indicating the default value</desc>
7478 </param>
7479 </method>
7480 </interface>
7481
7482 <!--
7483 // IGuest
7484 /////////////////////////////////////////////////////////////////////////
7485 -->
7486
7487 <interface
7488 name="IGuestOSType" extends="$unknown"
7489 uuid="432c1546-1354-4abf-bf08-878a32a373f5"
7490 wsmap="struct"
7491 >
7492 <desc>
7493 </desc>
7494
7495 <attribute name="familyId" type="wstring" readonly="yes">
7496 <desc>Guest OS family identifier string.</desc>
7497 </attribute>
7498
7499 <attribute name="familyDescription" type="wstring" readonly="yes">
7500 <desc>Human readable description of the guest OS family.</desc>
7501 </attribute>
7502
7503 <attribute name="id" type="wstring" readonly="yes">
7504 <desc>Guest OS identifier string.</desc>
7505 </attribute>
7506
7507 <attribute name="description" type="wstring" readonly="yes">
7508 <desc>Human readable description of the guest OS.</desc>
7509 </attribute>
7510
7511 <attribute name="is64Bit" type="boolean" readonly="yes">
7512 <desc>Returns @c true if the given OS is 64-bit</desc>
7513 </attribute>
7514
7515 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
7516 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
7517 </attribute>
7518
7519 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
7520 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
7521 </attribute>
7522
7523 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
7524 <desc>Recommended RAM size in Megabytes.</desc>
7525 </attribute>
7526
7527 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
7528 <desc>Recommended video RAM size in Megabytes.</desc>
7529 </attribute>
7530
7531 <attribute name="recommendedHDD" type="long long" readonly="yes">
7532 <desc>Recommended hard disk size in bytes.</desc>
7533 </attribute>
7534
7535 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
7536 <desc>Returns recommended network adapter for this OS type.</desc>
7537 </attribute>
7538
7539 <attribute name="recommendedPae" type="boolean" readonly="yes">
7540 <desc>Returns @c true if using PAE is recommended for this OS type.</desc>
7541 </attribute>
7542
7543 <attribute name="recommendedDvdStorageController" type="StorageControllerType" readonly="yes">
7544 <desc>Recommended storage controller type for DVD/CD drives.</desc>
7545 </attribute>
7546
7547 <attribute name="recommendedDvdStorageBus" type="StorageBus" readonly="yes">
7548 <desc>Recommended storage bus type for DVD/CD drives.</desc>
7549 </attribute>
7550
7551 <attribute name="recommendedHdStorageController" type="StorageControllerType" readonly="yes">
7552 <desc>Recommended storage controller type for HD drives.</desc>
7553 </attribute>
7554
7555 <attribute name="recommendedHdStorageBus" type="StorageBus" readonly="yes">
7556 <desc>Recommended storage bus type for HD drives.</desc>
7557 </attribute>
7558
7559 <attribute name="recommendedFirmware" type="FirmwareType" readonly="yes">
7560 <desc>Recommended firmware type.</desc>
7561 </attribute>
7562
7563 <attribute name="recommendedUsbHid" type="boolean" readonly="yes">
7564 <desc>Returns @c true if using USB Human Interface Devices, such as keyboard and mouse recommended.</desc>
7565 </attribute>
7566
7567 <attribute name="recommendedHpet" type="boolean" readonly="yes">
7568 <desc>Returns @c true if using HPET is recommended for this OS type.</desc>
7569 </attribute>
7570
7571 <attribute name="recommendedUsbTablet" type="boolean" readonly="yes">
7572 <desc>Returns @c true if using a USB Tablet is recommended.</desc>
7573 </attribute>
7574
7575 <attribute name="recommendedRtcUseUtc" type="boolean" readonly="yes">
7576 <desc>Returns @c true if the RTC of this VM should be set to UTC</desc>
7577 </attribute>
7578
7579 <attribute name="recommendedChipset" type="ChipsetType" readonly="yes">
7580 <desc>Recommended chipset type.</desc>
7581 </attribute>
7582
7583 <attribute name="recommendedAudioController" type="AudioControllerType" readonly="yes">
7584 <desc>Recommended audio type.</desc>
7585 </attribute>
7586
7587 </interface>
7588
7589 <enum
7590 name="AdditionsRunLevelType"
7591 uuid="a25417ee-a9dd-4f5b-b0dc-377860087754"
7592 >
7593 <desc>
7594 Guest Additions run level type.
7595 </desc>
7596
7597 <const name="None" value="0">
7598 <desc>Guest Additions are not loaded.</desc>
7599 </const>
7600 <const name="System" value="1">
7601 <desc>Guest drivers are loaded.</desc>
7602 </const>
7603 <const name="Userland" value="2">
7604 <desc>Common components (such as application services) are loaded.</desc>
7605 </const>
7606 <const name="Desktop" value="3">
7607 <desc>Per-user desktop components are loaded.</desc>
7608 </const>
7609 </enum>
7610
7611 <enum
7612 name="ExecuteProcessFlag"
7613 uuid="3258e8a5-ba0c-43d5-86b5-cf91405fddc0"
7614 >
7615 <desc>
7616 Guest process execution flags.
7617 </desc>
7618
7619 <const name="None" value="0">
7620 <desc>No flag set.</desc>
7621 </const>
7622
7623 <const name="WaitForProcessStartOnly" value="1">
7624 <desc>Only use the specified timeout value to wait for starting the guest process - the guest
7625 process itself then uses an infinite timeout.</desc>
7626 </const>
7627
7628 <const name="IgnoreOrphanedProcesses" value="2">
7629 <desc>Do not report an error when executed processes are still alive when VBoxService or the guest OS is shutting down.</desc>
7630 </const>
7631 </enum>
7632
7633 <enum
7634 name="ProcessInputFlag"
7635 uuid="5d38c1dd-2604-4ddf-92e5-0c0cdd3bdbd5"
7636 >
7637 <desc>
7638 Guest process input flags.
7639 </desc>
7640
7641 <const name="None" value="0">
7642 <desc>No flag set.</desc>
7643 </const>
7644 <const name="EndOfFile" value="1">
7645 <desc>End of file (input) reached.</desc>
7646 </const>
7647 </enum>
7648
7649 <enum
7650 name="CopyFileFlag"
7651 uuid="23f79fdf-738a-493d-b80b-42d607c9b916"
7652 >
7653 <desc>
7654 Host/Guest copy flags.
7655 </desc>
7656
7657 <const name="None" value="0">
7658 <desc>No flag set.</desc>
7659 </const>
7660
7661 <const name="Recursive" value="1">
7662 <desc>Copy directories recursively.</desc>
7663 </const>
7664
7665 <const name="Update" value="2">
7666 <desc>Copy only when the source file is newer than the destination file or when the destination file is missing.</desc>
7667 </const>
7668
7669 <const name="FollowLinks" value="4">
7670 <desc>Follow symbolic links.</desc>
7671 </const>
7672 </enum>
7673
7674 <enum
7675 name="CreateDirectoryFlag"
7676 uuid="26ff5bdd-c81f-4304-857b-b8be5e3f9cd6"
7677 >
7678 <desc>
7679 Directory creation flags.
7680 </desc>
7681
7682 <const name="None" value="0">
7683 <desc>No flag set.</desc>
7684 </const>
7685
7686 <const name="Parents" value="1">
7687 <desc>No error if existing, make parent directories as needed.</desc>
7688 </const>
7689 </enum>
7690
7691 <interface
7692 name="IGuest" extends="$unknown"
7693 uuid="1039b0cc-9bc1-4c6d-8d12-864aa48aa5b9"
7694 wsmap="managed"
7695 >
7696 <desc>
7697 The IGuest interface represents information about the operating system
7698 running inside the virtual machine. Used in
7699 <link to="IConsole::guest"/>.
7700
7701 IGuest provides information about the guest operating system, whether
7702 Guest Additions are installed and other OS-specific virtual machine
7703 properties.
7704 </desc>
7705
7706 <attribute name="OSTypeId" type="wstring" readonly="yes">
7707 <desc>
7708 Identifier of the Guest OS type as reported by the Guest
7709 Additions.
7710 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
7711 an IGuestOSType object representing details about the given
7712 Guest OS type.
7713 <note>
7714 If Guest Additions are not installed, this value will be
7715 the same as <link to="IMachine::OSTypeId"/>.
7716 </note>
7717 </desc>
7718 </attribute>
7719
7720 <attribute name="additionsRunLevel" type="AdditionsRunLevelType" readonly="yes">
7721 <desc>
7722 Current run level of the Guest Additions.
7723 </desc>
7724 </attribute>
7725
7726 <attribute name="additionsVersion" type="wstring" readonly="yes">
7727 <desc>
7728 Version of the Guest Additions including the revision (3 decimal numbers
7729 separated by dots + revision number) installed on the guest or empty
7730 when the Additions are not installed.
7731 </desc>
7732 </attribute>
7733
7734 <attribute name="supportsSeamless" type="boolean" readonly="yes">
7735 <desc>
7736 Flag whether seamless guest display rendering (seamless desktop
7737 integration) is supported.
7738 </desc>
7739 </attribute>
7740
7741 <attribute name="supportsGraphics" type="boolean" readonly="yes">
7742 <desc>
7743 Flag whether the guest is in graphics mode. If it is not, then
7744 seamless rendering will not work, resize hints are not immediately
7745 acted on and guest display resizes are probably not initiated by
7746 the guest additions.
7747 </desc>
7748 </attribute>
7749
7750 <attribute name="memoryBalloonSize" type="unsigned long">
7751 <desc>Guest system memory balloon size in megabytes (transient property).</desc>
7752 </attribute>
7753
7754 <attribute name="statisticsUpdateInterval" type="unsigned long">
7755 <desc>Interval to update guest statistics in seconds.</desc>
7756 </attribute>
7757
7758 <method name="internalGetStatistics">
7759 <desc>
7760 Internal method; do not use as it might change at any time
7761 </desc>
7762 <param name="cpuUser" type="unsigned long" dir="out">
7763 <desc>Percentage of processor time spent in user mode as seen by the guest</desc>
7764 </param>
7765 <param name="cpuKernel" type="unsigned long" dir="out">
7766 <desc>Percentage of processor time spent in kernel mode as seen by the guest</desc>
7767 </param>
7768 <param name="cpuIdle" type="unsigned long" dir="out">
7769 <desc>Percentage of processor time spent idling as seen by the guest</desc>
7770 </param>
7771 <param name="memTotal" type="unsigned long" dir="out">
7772 <desc>Total amount of physical guest RAM</desc>
7773 </param>
7774 <param name="memFree" type="unsigned long" dir="out">
7775 <desc>Free amount of physical guest RAM</desc>
7776 </param>
7777 <param name="memBalloon" type="unsigned long" dir="out">
7778 <desc>Amount of ballooned physical guest RAM</desc>
7779 </param>
7780 <param name="memShared" type="unsigned long" dir="out">
7781 <desc>Amount of shared physical guest RAM</desc>
7782 </param>
7783 <param name="memCache" type="unsigned long" dir="out">
7784 <desc>Total amount of guest (disk) cache memory</desc>
7785 </param>
7786 <param name="pagedTotal" type="unsigned long" dir="out">
7787 <desc>Total amount of space in the page file</desc>
7788 </param>
7789 <param name="memAllocTotal" type="unsigned long" dir="out">
7790 <desc>Total amount of memory allocated by the hypervisor</desc>
7791 </param>
7792 <param name="memFreeTotal" type="unsigned long" dir="out">
7793 <desc>Total amount of free memory available in the hypervisor</desc>
7794 </param>
7795 <param name="memBalloonTotal" type="unsigned long" dir="out">
7796 <desc>Total amount of memory ballooned by the hypervisor</desc>
7797 </param>
7798 <param name="memSharedTotal" type="unsigned long" dir="out">
7799 <desc>Total amount of shared memory in the hypervisor</desc>
7800 </param>
7801 </method>
7802
7803 <method name="getAdditionsStatus">
7804 <desc>
7805 Retrieve the current status of a certain Guest Additions run level.
7806
7807 <result name="VBOX_E_NOT_SUPPORTED">
7808 Wrong status level specified.
7809 </result>
7810
7811 </desc>
7812 <param name="level" type="AdditionsRunLevelType" dir="in">
7813 <desc>Status level to check</desc>
7814 </param>
7815 <param name="active" type="boolean" dir="return">
7816 <desc>Flag whether the status level has been reached or not</desc>
7817 </param>
7818 </method>
7819
7820 <method name="setCredentials">
7821 <desc>
7822 Store login credentials that can be queried by guest operating
7823 systems with Additions installed. The credentials are transient
7824 to the session and the guest may also choose to erase them. Note
7825 that the caller cannot determine whether the guest operating system
7826 has queried or made use of the credentials.
7827
7828 <result name="VBOX_E_VM_ERROR">
7829 VMM device is not available.
7830 </result>
7831
7832 </desc>
7833 <param name="userName" type="wstring" dir="in">
7834 <desc>User name string, can be empty</desc>
7835 </param>
7836 <param name="password" type="wstring" dir="in">
7837 <desc>Password string, can be empty</desc>
7838 </param>
7839 <param name="domain" type="wstring" dir="in">
7840 <desc>Domain name (guest logon scheme specific), can be empty</desc>
7841 </param>
7842 <param name="allowInteractiveLogon" type="boolean" dir="in">
7843 <desc>
7844 Flag whether the guest should alternatively allow the user to
7845 interactively specify different credentials. This flag might
7846 not be supported by all versions of the Additions.
7847 </desc>
7848 </param>
7849 </method>
7850
7851 <method name="executeProcess">
7852 <desc>
7853 Executes an existing program inside the guest VM.
7854
7855 <result name="VBOX_E_IPRT_ERROR">
7856 Could not execute process.
7857 </result>
7858
7859 </desc>
7860 <param name="execName" type="wstring" dir="in">
7861 <desc>
7862 Full path name of the command to execute on the guest; the
7863 commands has to exists in the guest VM in order to be executed.
7864 </desc>
7865 </param>
7866 <param name="flags" type="unsigned long" dir="in">
7867 <desc>
7868 Execution flags - currently not supported and therefore
7869 has to be set to 0.
7870 </desc>
7871 </param>
7872 <param name="arguments" type="wstring" safearray="yes" dir="in">
7873 <desc>
7874 Array of arguments passed to the execution command.
7875 </desc>
7876 </param>
7877 <param name="environment" type="wstring" safearray="yes" dir="in">
7878 <desc>
7879 Environment variables that can be set while the command is being
7880 executed, in form of "NAME=VALUE"; one pair per entry. To unset a
7881 variable just set its name ("NAME") without a value.
7882 </desc>
7883 </param>
7884 <param name="userName" type="wstring" dir="in">
7885 <desc>
7886 User name under which the command will be executed; has to exist
7887 and have the appropriate rights to execute programs in the VM.
7888 </desc>
7889 </param>
7890 <param name="password" type="wstring" dir="in">
7891 <desc>
7892 Password of the user account specified.
7893 </desc>
7894 </param>
7895 <param name="timeoutMS" type="unsigned long" dir="in">
7896 <desc>
7897 The maximum timeout value (in msec) to wait for finished program
7898 execution. Pass 0 for an infinite timeout.
7899 </desc>
7900 </param>
7901 <param name="pid" type="unsigned long" dir="out">
7902 <desc>
7903 The PID (process ID) of the started command for later reference.
7904 </desc>
7905 </param>
7906 <param name="progress" type="IProgress" dir="return">
7907 <desc>Progress object to track the operation completion.</desc>
7908 </param>
7909 </method>
7910
7911 <method name="getProcessOutput">
7912 <desc>
7913 Retrieves output of a formerly started process.
7914
7915 <result name="VBOX_E_IPRT_ERROR">
7916 Could not retrieve output.
7917 </result>
7918
7919 </desc>
7920 <param name="pid" type="unsigned long" dir="in">
7921 <desc>
7922 Process id returned by earlier executeProcess() call.
7923 </desc>
7924 </param>
7925 <param name="flags" type="unsigned long" dir="in">
7926 <desc>
7927 Flags describing which output to retrieve.
7928 </desc>
7929 </param>
7930 <param name="timeoutMS" type="unsigned long" dir="in">
7931 <desc>
7932 The maximum timeout value (in msec) to wait for output
7933 data. Pass 0 for an infinite timeout.
7934 </desc>
7935 </param>
7936 <param name="size" type="long long" dir="in">
7937 <desc>
7938 Size in bytes to read in the buffer.
7939 </desc>
7940 </param>
7941 <param name="data" type="octet" dir="return" safearray="yes">
7942 <desc>
7943 Buffer for retrieving the actual output. A data size of 0 means end of file
7944 if the requested size was not 0. This is the unprocessed
7945 output data, i.e. the line ending style depends on the platform of
7946 the system the server is running on.
7947 </desc>
7948 </param>
7949 </method>
7950
7951 <method name="getProcessStatus">
7952 <desc>
7953 Retrieves status, exit code and the exit reason of a formerly started process.
7954
7955 <result name="VBOX_E_IPRT_ERROR">
7956 Process with specified PID was not found.
7957 </result>
7958
7959 </desc>
7960 <param name="pid" type="unsigned long" dir="in">
7961 <desc>
7962 Process id returned by earlier executeProcess() call.
7963 </desc>
7964 </param>
7965 <param name="exitcode" type="unsigned long" dir="out">
7966 <desc>
7967 The exit code (if available).
7968 </desc>
7969 </param>
7970 <param name="flags" type="unsigned long" dir="out">
7971 <desc>
7972 Additional flags of process status. Not used at the moment and
7973 must be set to 0.
7974 </desc>
7975 </param>
7976 <param name="reason" type="unsigned long" dir="return">
7977 <desc>
7978 The current process status.
7979 </desc>
7980 </param>
7981 </method>
7982
7983 <method name="copyToGuest">
7984 <desc>
7985 Copies files/directories from host to the guest.
7986
7987 <result name="VBOX_E_IPRT_ERROR">
7988 Error while copying.
7989 </result>
7990
7991 </desc>
7992 <param name="source" type="wstring" dir="in">
7993 <desc>
7994 Source file on the host to copy.
7995 </desc>
7996 </param>
7997 <param name="dest" type="wstring" dir="in">
7998 <desc>
7999 Destination path on the guest.
8000 </desc>
8001 </param>
8002 <param name="userName" type="wstring" dir="in">
8003 <desc>
8004 User name under which the copy command will be executed; the
8005 user has to exist and have the appropriate rights to write to
8006 the destination path.
8007 </desc>
8008 </param>
8009 <param name="password" type="wstring" dir="in">
8010 <desc>
8011 Password of the user account specified.
8012 </desc>
8013 </param>
8014 <param name="flags" type="unsigned long" dir="in">
8015 <desc>
8016 Copy flags.
8017 </desc>
8018 </param>
8019 <param name="progress" type="IProgress" dir="return">
8020 <desc>Progress object to track the operation completion.</desc>
8021 </param>
8022 </method>
8023
8024 <method name="createDirectory">
8025 <desc>
8026 Creates a directory on the guest.
8027
8028 <result name="VBOX_E_IPRT_ERROR">
8029 Error while creating directory.
8030 </result>
8031
8032 </desc>
8033 <param name="directory" type="wstring" dir="in">
8034 <desc>
8035 Directory to create.
8036 </desc>
8037 </param>
8038 <param name="userName" type="wstring" dir="in">
8039 <desc>
8040 User name under which the directory creation will be executed; the
8041 user has to exist and have the appropriate rights to create the
8042 desired directory.
8043 </desc>
8044 </param>
8045 <param name="password" type="wstring" dir="in">
8046 <desc>
8047 Password of the user account specified.
8048 </desc>
8049 </param>
8050 <param name="mode" type="unsigned long" dir="in">
8051 <desc>
8052 File mode.
8053 </desc>
8054 </param>
8055 <param name="flags" type="unsigned long" dir="in">
8056 <desc>
8057 Additional flags. Not used at the moment and must be set to 0.
8058 </desc>
8059 </param>
8060 <param name="progress" type="IProgress" dir="return">
8061 <desc>Progress object to track the operation completion.</desc>
8062 </param>
8063 </method>
8064
8065 <method name="setProcessInput">
8066 <desc>
8067 Sends input into a formerly started process.
8068
8069 <result name="VBOX_E_IPRT_ERROR">
8070 Could not send input.
8071 </result>
8072
8073 </desc>
8074 <param name="pid" type="unsigned long" dir="in">
8075 <desc>
8076 Process id returned by earlier executeProcess() call.
8077 </desc>
8078 </param>
8079 <param name="flags" type="unsigned long" dir="in">
8080 <desc>
8081 Not used, must be set to zero.
8082 </desc>
8083 </param>
8084 <param name="data" type="octet" dir="in" safearray="yes">
8085 <desc>
8086 Buffer of input data to send to the started process to.
8087 </desc>
8088 </param>
8089 <param name="written" type="unsigned long" dir="return">
8090 <desc>
8091 Number of bytes written.
8092 </desc>
8093 </param>
8094 </method>
8095
8096 <method name="updateGuestAdditions">
8097 <desc>
8098 Updates already installed Guest Additions in a VM
8099 (Windows guests only).
8100
8101 <result name="VBOX_E_IPRT_ERROR">
8102 Error while updating.
8103 </result>
8104
8105 </desc>
8106 <param name="source" type="wstring" dir="in">
8107 <desc>
8108 Path to the Guest Additions .ISO file to use for the upate.
8109 </desc>
8110 </param>
8111 <param name="flags" type="unsigned long" dir="in">
8112 <desc>
8113 Additional flags for update process. Not used at the moment and
8114 must be set to 0.
8115 </desc>
8116 </param>
8117 <param name="progress" type="IProgress" dir="return">
8118 <desc>Progress object to track the operation completion.</desc>
8119 </param>
8120 </method>
8121
8122 </interface>
8123
8124
8125 <!--
8126 // IProgress
8127 /////////////////////////////////////////////////////////////////////////
8128 -->
8129
8130 <interface
8131 name="IProgress" extends="$unknown"
8132 uuid="A163C98F-8635-4AA8-B770-A9941737F3EF"
8133 wsmap="managed"
8134 >
8135 <desc>
8136 The IProgress interface is used to track and control
8137 asynchronous tasks within VirtualBox.
8138
8139 An instance of this is returned every time VirtualBox starts
8140 an asynchronous task (in other words, a separate thread) which
8141 continues to run after a method call returns. For example,
8142 <link to="IConsole::saveState" />, which saves the state of
8143 a running virtual machine, can take a long time to complete.
8144 To be able to display a progress bar, a user interface such as
8145 the VirtualBox graphical user interface can use the IProgress
8146 object returned by that method.
8147
8148 Note that IProgress is a "read-only" interface in the sense
8149 that only the VirtualBox internals behind the Main API can
8150 create and manipulate progress objects, whereas client code
8151 can only use the IProgress object to monitor a task's
8152 progress and, if <link to="#cancelable" /> is @c true,
8153 cancel the task by calling <link to="#cancel" />.
8154
8155 A task represented by IProgress consists of either one or
8156 several sub-operations that run sequentially, one by one (see
8157 <link to="#operation" /> and <link to="#operationCount" />).
8158 Every operation is identified by a number (starting from 0)
8159 and has a separate description.
8160
8161 You can find the individual percentage of completion of the current
8162 operation in <link to="#operationPercent" /> and the
8163 percentage of completion of the task as a whole
8164 in <link to="#percent" />.
8165
8166 Similarly, you can wait for the completion of a particular
8167 operation via <link to="#waitForOperationCompletion" /> or
8168 for the completion of the whole task via
8169 <link to="#waitForCompletion" />.
8170 </desc>
8171
8172 <attribute name="id" type="uuid" mod="string" readonly="yes">
8173 <desc>ID of the task.</desc>
8174 </attribute>
8175
8176 <attribute name="description" type="wstring" readonly="yes">
8177 <desc>Description of the task.</desc>
8178 </attribute>
8179
8180 <attribute name="initiator" type="$unknown" readonly="yes">
8181 <desc>Initiator of the task.</desc>
8182 </attribute>
8183
8184 <attribute name="cancelable" type="boolean" readonly="yes">
8185 <desc>Whether the task can be interrupted.</desc>
8186 </attribute>
8187
8188 <attribute name="percent" type="unsigned long" readonly="yes">
8189 <desc>
8190 Current progress value of the task as a whole, in percent.
8191 This value depends on how many operations are already complete.
8192 Returns 100 if <link to="#completed" /> is @c true.
8193 </desc>
8194 </attribute>
8195
8196 <attribute name="timeRemaining" type="long" readonly="yes">
8197 <desc>
8198 Estimated remaining time until the task completes, in
8199 seconds. Returns 0 once the task has completed; returns -1
8200 if the remaining time cannot be computed, in particular if
8201 the current progress is 0.
8202
8203 Even if a value is returned, the estimate will be unreliable
8204 for low progress values. It will become more reliable as the
8205 task progresses; it is not recommended to display an ETA
8206 before at least 20% of a task have completed.
8207 </desc>
8208 </attribute>
8209
8210 <attribute name="completed" type="boolean" readonly="yes">
8211 <desc>Whether the task has been completed.</desc>
8212 </attribute>
8213
8214 <attribute name="canceled" type="boolean" readonly="yes">
8215 <desc>Whether the task has been canceled.</desc>
8216 </attribute>
8217
8218 <attribute name="resultCode" type="long" readonly="yes">
8219 <desc>
8220 Result code of the progress task.
8221 Valid only if <link to="#completed"/> is @c true.
8222 </desc>
8223 </attribute>
8224
8225 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
8226 <desc>
8227 Extended information about the unsuccessful result of the
8228 progress operation. May be @c null if no extended information
8229 is available.
8230 Valid only if <link to="#completed"/> is @c true and
8231 <link to="#resultCode"/> indicates a failure.
8232 </desc>
8233 </attribute>
8234
8235 <attribute name="operationCount" type="unsigned long" readonly="yes">
8236 <desc>
8237 Number of sub-operations this task is divided into.
8238 Every task consists of at least one suboperation.
8239 </desc>
8240 </attribute>
8241
8242 <attribute name="operation" type="unsigned long" readonly="yes">
8243 <desc>Number of the sub-operation being currently executed.</desc>
8244 </attribute>
8245
8246 <attribute name="operationDescription" type="wstring" readonly="yes">
8247 <desc>
8248 Description of the sub-operation being currently executed.
8249 </desc>
8250 </attribute>
8251
8252 <attribute name="operationPercent" type="unsigned long" readonly="yes">
8253 <desc>Progress value of the current sub-operation only, in percent.</desc>
8254 </attribute>
8255
8256 <attribute name="operationWeight" type="unsigned long" readonly="yes">
8257 <desc>Weight value of the current sub-operation only.</desc>
8258 </attribute>
8259
8260 <attribute name="timeout" type="unsigned long">
8261 <desc>
8262 When non-zero, this specifies the number of milliseconds after which
8263 the operation will automatically be canceled. This can only be set on
8264 cancelable objects.
8265 </desc>
8266 </attribute>
8267
8268 <method name="setCurrentOperationProgress">
8269 <desc>Internal method, not to be called externally.</desc>
8270 <param name="percent" type="unsigned long" dir="in" />
8271 </method>
8272 <method name="setNextOperation">
8273 <desc>Internal method, not to be called externally.</desc>
8274 <param name="nextOperationDescription" type="wstring" dir="in" />
8275 <param name="nextOperationsWeight" type="unsigned long" dir="in" />
8276 </method>
8277
8278 <method name="waitForCompletion">
8279 <desc>
8280 Waits until the task is done (including all sub-operations)
8281 with a given timeout in milliseconds; specify -1 for an indefinite wait.
8282
8283 Note that the VirtualBox/XPCOM/COM/native event queues of the calling
8284 thread are not processed while waiting. Neglecting event queues may
8285 have dire consequences (degrade performance, resource hogs,
8286 deadlocks, etc.), this is specially so for the main thread on
8287 platforms using XPCOM. Callers are adviced wait for short periods
8288 and service their event queues between calls, or to create a worker
8289 thread to do the waiting.
8290
8291 <result name="VBOX_E_IPRT_ERROR">
8292 Failed to wait for task completion.
8293 </result>
8294 </desc>
8295
8296 <param name="timeout" type="long" dir="in">
8297 <desc>
8298 Maximum time in milliseconds to wait or -1 to wait indefinitely.
8299 </desc>
8300 </param>
8301 </method>
8302
8303 <method name="waitForOperationCompletion">
8304 <desc>
8305 Waits until the given operation is done with a given timeout in
8306 milliseconds; specify -1 for an indefinite wait.
8307
8308 See <link to="#waitForCompletion"> for event queue considerations.</link>
8309
8310 <result name="VBOX_E_IPRT_ERROR">
8311 Failed to wait for operation completion.
8312 </result>
8313
8314 </desc>
8315 <param name="operation" type="unsigned long" dir="in">
8316 <desc>
8317 Number of the operation to wait for.
8318 Must be less than <link to="#operationCount"/>.
8319 </desc>
8320 </param>
8321 <param name="timeout" type="long" dir="in">
8322 <desc>
8323 Maximum time in milliseconds to wait or -1 to wait indefinitely.
8324 </desc>
8325 </param>
8326 </method>
8327
8328 <method name="cancel">
8329 <desc>
8330 Cancels the task.
8331 <note>
8332 If <link to="#cancelable"/> is @c false, then this method will fail.
8333 </note>
8334
8335 <result name="VBOX_E_INVALID_OBJECT_STATE">
8336 Operation cannot be canceled.
8337 </result>
8338
8339 </desc>
8340 </method>
8341
8342 </interface>
8343
8344 <!--
8345 // ISnapshot
8346 /////////////////////////////////////////////////////////////////////////
8347 -->
8348
8349 <interface
8350 name="ISnapshot" extends="$unknown"
8351 uuid="1a2d0551-58a4-4107-857e-ef414fc42ffc"
8352 wsmap="managed"
8353 >
8354 <desc>
8355 The ISnapshot interface represents a snapshot of the virtual
8356 machine.
8357
8358 Together with the differencing media that are created
8359 when a snapshot is taken, a machine can be brought back to
8360 the exact state it was in when the snapshot was taken.
8361
8362 The ISnapshot interface has no methods, only attributes; snapshots
8363 are controlled through methods of the <link to="IConsole" /> interface
8364 which also manage the media associated with the snapshot.
8365 The following operations exist:
8366
8367 <ul>
8368 <li><link to="IConsole::takeSnapshot"/> creates a new snapshot
8369 by creating new, empty differencing images for the machine's
8370 media and saving the VM settings and (if the VM is running)
8371 the current VM state in the snapshot.
8372
8373 The differencing images will then receive all data written to
8374 the machine's media, while their parent (base) images
8375 remain unmodified after the snapshot has been taken (see
8376 <link to="IMedium" /> for details about differencing images).
8377 This simplifies restoring a machine to the state of a snapshot:
8378 only the differencing images need to be deleted.
8379
8380 The current machine state is not changed by taking a snapshot.
8381 If the machine is running, it will resume execution after the
8382 snapshot has been taken. After calling this,
8383 <link to="IMachine::currentSnapshot" /> is set to the snapshot
8384 just created.
8385 </li>
8386
8387 <li><link to="IConsole::restoreSnapshot"/> resets a machine to
8388 the state of a previous snapshot by deleting the differencing
8389 image of each of the machine's media and setting the machine's
8390 settings and state to the state that was saved in the snapshot (if any).
8391
8392 This destroys the machine's current state. After calling this,
8393 <link to="IMachine::currentSnapshot" /> is set to the snapshot that was
8394 restored.
8395 </li>
8396
8397 <li><link to="IConsole::deleteSnapshot"/> deletes a snapshot
8398 without affecting the current machine state.
8399
8400 This does not change the current machine state, but instead frees the
8401 resources allocated when the snapshot was taken: the settings and machine
8402 state file are deleted (if any), and the snapshot's differencing image for
8403 each of the machine's media gets merged with its parent image.
8404
8405 Neither the current machine state nor other snapshots are affected
8406 by this operation, except that parent media will be modified
8407 to contain the disk data associated with the snapshot being deleted.
8408
8409 When deleting the current snapshot, the <link to="IMachine::currentSnapshot" />
8410 attribute is set to the current snapshot's parent or NULL if it
8411 has no parent. Otherwise the attribute is unchanged.
8412 </li>
8413 </ul>
8414
8415 Each snapshot contains the settings of the virtual machine (hardware
8416 configuration etc.). In addition, if the machine was running when the
8417 snapshot was taken (<link to="IMachine::state"/> is <link to="MachineState_Running"/>),
8418 the current VM state is saved in the snapshot (similarly to what happens
8419 when a VM's state is saved). The snapshot is then said to
8420 be <i>online</i> because when restoring it, the VM will be running.
8421
8422 If the machine is saved (<link to="MachineState_Saved"/>), the snapshot
8423 receives a copy of the execution state file (<link to="IMachine::stateFilePath"/>).
8424
8425 Otherwise, if the machine was not running (<link to="MachineState_PoweredOff"/>
8426 or <link to="MachineState_Aborted"/>), the snapshot is <i>offline</i>;
8427 it then contains a so-called "zero execution state", representing a
8428 machine that is powered off.
8429 </desc>
8430
8431 <attribute name="id" type="uuid" mod="string" readonly="yes">
8432 <desc>UUID of the snapshot.</desc>
8433 </attribute>
8434
8435 <attribute name="name" type="wstring">
8436 <desc>Short name of the snapshot.</desc>
8437 </attribute>
8438
8439 <attribute name="description" type="wstring">
8440 <desc>Optional description of the snapshot.</desc>
8441 </attribute>
8442
8443 <attribute name="timeStamp" type="long long" readonly="yes">
8444 <desc>
8445 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
8446 </desc>
8447 </attribute>
8448
8449 <attribute name="online" type="boolean" readonly="yes">
8450 <desc>
8451 @c true if this snapshot is an online snapshot and @c false otherwise.
8452
8453 When this attribute is @c true, the
8454 <link to="IMachine::stateFilePath"/> attribute of the
8455 <link to="#machine"/> object associated with this snapshot
8456 will point to the saved state file. Otherwise, it will be
8457 an empty string.
8458 </desc>
8459 </attribute>
8460
8461 <attribute name="machine" type="IMachine" readonly="yes">
8462 <desc>
8463 Virtual machine this snapshot is taken on. This object
8464 stores all settings the machine had when taking this snapshot.
8465 <note>
8466 The returned machine object is immutable, i.e. no
8467 any settings can be changed.
8468 </note>
8469 </desc>
8470 </attribute>
8471
8472 <attribute name="parent" type="ISnapshot" readonly="yes">
8473 <desc>
8474 Parent snapshot (a snapshot this one is based on), or
8475 @c null if the snapshot has no parent (i.e. is the first snapshot).
8476 </desc>
8477 </attribute>
8478
8479 <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
8480 <desc>
8481 Child snapshots (all snapshots having this one as a parent).
8482 </desc>
8483 </attribute>
8484
8485 </interface>
8486
8487
8488 <!--
8489 // IMedium
8490 /////////////////////////////////////////////////////////////////////////
8491 -->
8492
8493 <enum
8494 name="MediumState"
8495 uuid="ef41e980-e012-43cd-9dea-479d4ef14d13"
8496 >
8497 <desc>
8498 Virtual medium state.
8499 <see>IMedium</see>
8500 </desc>
8501
8502 <const name="NotCreated" value="0">
8503 <desc>
8504 Associated medium storage does not exist (either was not created yet or
8505 was deleted).
8506 </desc>
8507 </const>
8508 <const name="Created" value="1">
8509 <desc>
8510 Associated storage exists and accessible; this gets set if the
8511 accessibility check performed by <link to="IMedium::refreshState" />
8512 was successful.
8513 </desc>
8514 </const>
8515 <const name="LockedRead" value="2">
8516 <desc>
8517 Medium is locked for reading (see <link to="IMedium::lockRead"/>),
8518 no data modification is possible.
8519 </desc>
8520 </const>
8521 <const name="LockedWrite" value="3">
8522 <desc>
8523 Medium is locked for writing (see <link to="IMedium::lockWrite"/>),
8524 no concurrent data reading or modification is possible.
8525 </desc>
8526 </const>
8527 <const name="Inaccessible" value="4">
8528 <desc>
8529 Medium accessibility check (see <link to="IMedium::refreshState" />) has
8530 not yet been performed, or else, associated medium storage is not
8531 accessible. In the first case, <link to="IMedium::lastAccessError"/>
8532 is empty, in the second case, it describes the error that occurred.
8533 </desc>
8534 </const>
8535 <const name="Creating" value="5">
8536 <desc>
8537 Associated medium storage is being created.
8538 </desc>
8539 </const>
8540 <const name="Deleting" value="6">
8541 <desc>
8542 Associated medium storage is being deleted.
8543 </desc>
8544 </const>
8545 </enum>
8546
8547 <enum
8548 name="MediumType"
8549 uuid="19388a99-8e70-4bd4-9a95-90cbc513ef6d"
8550 >
8551 <desc>
8552 Virtual medium type.
8553 <see>IMedium</see>
8554 </desc>
8555
8556 <const name="Normal" value="0">
8557 <desc>
8558 Normal medium (attached directly or indirectly, preserved
8559 when taking snapshots).
8560 </desc>
8561 </const>
8562 <const name="Immutable" value="1">
8563 <desc>
8564 Immutable medium (attached indirectly, changes are wiped out
8565 the next time the virtual machine is started).
8566 </desc>
8567 </const>
8568 <const name="Writethrough" value="2">
8569 <desc>
8570 Write through medium (attached directly, ignored when
8571 taking snapshots).
8572 </desc>
8573 </const>
8574 <const name="Shareable" value="3">
8575 <desc>
8576 Allow using this medium concurrently by several machines.
8577 <note>Present since VirtualBox 3.2.0, and accepted since 3.2.8.</note>
8578 </desc>
8579 </const>
8580 <const name="Readonly" value="4">
8581 <desc>
8582 A readonly medium, which can of course be used by several machines.
8583 <note>Present and accepted since VirtualBox 4.0.</note>
8584 </desc>
8585 </const>
8586 </enum>
8587
8588 <enum
8589 name="MediumVariant"
8590 uuid="584ea502-143b-4ab0-ad14-d1028fdf0316"
8591 >
8592 <desc>
8593 Virtual medium image variant. More than one flag may be set.
8594 <see>IMedium</see>
8595 </desc>
8596
8597 <const name="Standard" value="0">
8598 <desc>
8599 No particular variant requested, results in using the backend default.
8600 </desc>
8601 </const>
8602 <const name="VmdkSplit2G" value="0x01">
8603 <desc>
8604 VMDK image split in chunks of less than 2GByte.
8605 </desc>
8606 </const>
8607 <const name="VmdkStreamOptimized" value="0x04">
8608 <desc>
8609 VMDK streamOptimized image. Special import/export format which is
8610 read-only/append-only.
8611 </desc>
8612 </const>
8613 <const name="VmdkESX" value="0x08">
8614 <desc>
8615 VMDK format variant used on ESX products.
8616 </desc>
8617 </const>
8618 <const name="Fixed" value="0x10000">
8619 <desc>
8620 Fixed image. Only allowed for base images.
8621 </desc>
8622 </const>
8623 <const name="Diff" value="0x20000">
8624 <desc>
8625 Differencing image. Only allowed for child images.
8626 </desc>
8627 </const>
8628 </enum>
8629
8630 <interface
8631 name="IMediumAttachment" extends="$unknown"
8632 uuid="c29452cc-ca72-404b-9261-cfc514f1e412"
8633 wsmap="struct"
8634 >
8635 <desc>
8636 The IMediumAttachment interface links storage media to virtual machines.
8637 For each medium (<link to="IMedium"/>) which has been attached to a
8638 storage controller (<link to="IStorageController"/>) of a machine
8639 (<link to="IMachine"/>) via the <link to="IMachine::attachDevice" />
8640 method, one instance of IMediumAttachment is added to the machine's
8641 <link to="IMachine::mediumAttachments"/> array attribute.
8642
8643 Each medium attachment specifies the storage controller as well as a
8644 port and device number and the IMedium instance representing a virtual
8645 hard disk or floppy or DVD image.
8646
8647 For removeable media (DVDs or floppies), there are two additional
8648 options. For one, the IMedium instance can be @c null to represent
8649 an empty drive with no media inserted (see <link to="IMachine::mountMedium" />);
8650 secondly, the medium can be one of the pseudo-media for host drives
8651 listed in <link to="IHost::DVDDrives"/> or <link to="IHost::floppyDrives"/>.
8652 </desc>
8653
8654 <attribute name="medium" type="IMedium" readonly="yes">
8655 <desc>Medium object associated with this attachment; it
8656 can be @c null for removable devices.</desc>
8657 </attribute>
8658
8659 <attribute name="controller" type="wstring" readonly="yes">
8660 <desc>Name of the storage controller of this attachment; this
8661 refers to one of the controllers in <link to="IMachine::storageControllers" />
8662 by name.</desc>
8663 </attribute>
8664
8665 <attribute name="port" type="long" readonly="yes">
8666 <desc>Port number of this attachment.
8667 See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
8668 </desc>
8669 </attribute>
8670
8671 <attribute name="device" type="long" readonly="yes">
8672 <desc>Device slot number of this attachment.
8673 See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
8674 </desc>
8675 </attribute>
8676
8677 <attribute name="type" type="DeviceType" readonly="yes">
8678 <desc>Device type of this attachment.</desc>
8679 </attribute>
8680
8681 <attribute name="passthrough" type="boolean" readonly="yes">
8682 <desc>Pass I/O requests through to a device on the host.</desc>
8683 </attribute>
8684
8685 <attribute name="bandwidthLimit" type="unsigned long">
8686 <desc>
8687 Maximum throughput allowed for this medium attachment, in units of 1 mbps.
8688 A zero value means uncapped/unlimited.
8689 </desc>
8690 </attribute>
8691
8692 </interface>
8693
8694 <interface
8695 name="IMedium" extends="$unknown"
8696 uuid="bfcf5b8c-5155-4f24-9414-9457054b16db"
8697 wsmap="managed"
8698 >
8699 <desc>
8700 The IMedium interface represents virtual storage for a machine's
8701 hard disks, CD/DVD or floppy drives. It will typically represent
8702 a disk image on the host, for example a VDI or VMDK file representing
8703 a virtual hard disk, or an ISO or RAW file representing virtual
8704 removable media, but can also point to a network location (e.g.
8705 for iSCSI targets).
8706
8707 Instances of IMedium are connected to virtual machines by way of
8708 medium attachments (see <link to="IMediumAttachment" />), which link
8709 the storage medium to a particular device slot of a storage controller
8710 of the virtual machine.
8711 In the VirtualBox API, virtual storage is therefore always represented
8712 by the following chain of object links:
8713
8714 <ul>
8715 <li><link to="IMachine::storageControllers"/> contains an array of
8716 storage controllers (IDE, SATA, SCSI, SAS or a floppy controller;
8717 these are instances of <link to="IStorageController"/>).</li>
8718 <li><link to="IMachine::mediumAttachments"/> contains an array of
8719 medium attachments (instances of <link to="IMediumAttachment"/>),
8720 each containing a storage controller from the above array, a
8721 port/device specification, and an instance of IMedium representing
8722 the medium storage (image file).
8723
8724 For removable media, the storage medium is optional; a medium
8725 attachment with no medium represents a CD/DVD or floppy drive
8726 with no medium inserted. By contrast, hard disk attachments
8727 will always have an IMedium object attached.</li>
8728 <li>Each IMedium in turn points to a storage unit (such as a file
8729 on the host computer or a network resource) that holds actual
8730 data. This location is represented by the <link to="#location"/>
8731 attribute.</li>
8732 </ul>
8733
8734 Existing media are opened using <link to="IVirtualBox::openMedium"/>;
8735 new hard disk media can be created with the VirtualBox API using the
8736 <link to="IVirtualBox::createHardDisk"/> method.
8737
8738 CD/DVD and floppy images (ISO and RAW files) are usually created outside
8739 VirtualBox, e.g. by storing a copy of the real medium of the corresponding
8740 type in a regular file.
8741
8742 Only for CD/DVDs and floppies, an IMedium instance can also represent a host
8743 drive; in that case the <link to="#id" /> attribute contains the UUID of
8744 one of the drives in <link to="IHost::DVDDrives" /> or <link to="IHost::floppyDrives" />.
8745
8746 <h3>Known media</h3>
8747
8748 When an existing medium is opened and attached to a virtual machine, it
8749 is automatically added to a media registry. If the medium has first
8750 been attached to a machine which was created by VirtualBox 4.0 or later,
8751 it is added to that machine's media registry (in the machine XML settings
8752 file; this way all information about a machine's media attachments is
8753 contained in a single file). For older media attachments (i.e. if the
8754 medium was first attached to a machine which was created with a VirtualBox
8755 version before 4.0), media continue to be registered in the global
8756 VirtualBox settings file, for backwards compatibility.
8757
8758 See <link to="IVirtualBox::openMedium" /> for more information.
8759
8760 All known media can be enumerated using
8761 <link to="IVirtualBox::hardDisks"/>,
8762 <link to="IVirtualBox::DVDImages"/> and
8763 <link to="IVirtualBox::floppyImages"/> attributes. Individual media can be
8764 quickly found using the <link to="IVirtualBox::findMedium"/> method.
8765
8766 Only known media can be attached to virtual machines.
8767
8768 Removing known media from the media registry is performed when the given
8769 medium is closed using the <link to="#close"/> method or when its
8770 associated storage unit is deleted.
8771
8772 <h3>Accessibility checks</h3>
8773
8774 VirtualBox defers media accessibility checks until the <link to="#refreshState" />
8775 method is called explicitly on a medium. This is done to make the VirtualBox object
8776 ready for serving requests as fast as possible and let the end-user
8777 application decide if it needs to check media accessibility right away or not.
8778
8779 As a result, when VirtualBox starts up (e.g. the VirtualBox
8780 object gets created for the first time), all known media are in the
8781 "Inaccessible" state, but the value of the <link to="#lastAccessError"/>
8782 attribute is an empty string because no actual accessibility check has
8783 been made yet.
8784
8785 After calling <link to="#refreshState" />, a medium is considered
8786 <i>accessible</i> if its storage unit can be read. In that case, the
8787 <link to="#state"/> attribute has a value of "Created". If the storage
8788 unit cannot be read (for example, because it is located on a disconnected
8789 network resource, or was accidentally deleted outside VirtualBox),
8790 the medium is considered <i>inaccessible</i>, which is indicated by the
8791 "Inaccessible" state. The exact reason why the medium is inaccessible can be
8792 obtained by reading the <link to="#lastAccessError"/> attribute.
8793
8794 <h3>Medium types</h3>
8795
8796 There are four types of medium behavior (see <link to="MediumType" />):
8797 "normal", "immutable", "writethrough" and "shareable", represented by the
8798 <link to="#type"/> attribute. The type of the medium defines how the
8799 medium is attached to a virtual machine and what happens when a
8800 <link to="ISnapshot">snapshot</link> of the virtual machine with the
8801 attached medium is taken. At the moment DVD and floppy media are always
8802 of type "writethrough".
8803
8804 All media can be also divided in two groups: <i>base</i> media and
8805 <i>differencing</i> media. A base medium contains all sectors of the
8806 medium data in its own storage and therefore can be used independently.
8807 In contrast, a differencing medium is a "delta" to some other medium and
8808 contains only those sectors which differ from that other medium, which is
8809 then called a <i>parent</i>. The differencing medium is said to be
8810 <i>linked to</i> that parent. The parent may be itself a differencing
8811 medium, thus forming a chain of linked media. The last element in that
8812 chain must always be a base medium. Note that several differencing
8813 media may be linked to the same parent medium.
8814
8815 Differencing media can be distinguished from base media by querying the
8816 <link to="#parent"/> attribute: base media do not have parents they would
8817 depend on, so the value of this attribute is always @c null for them.
8818 Using this attribute, it is possible to walk up the medium tree (from the
8819 child medium to its parent). It is also possible to walk down the tree
8820 using the <link to="#children"/> attribute.
8821
8822 Note that the type of all differencing media is "normal"; all other
8823 values are meaningless for them. Base media may be of any type.
8824
8825 <h3>Creating hard disks</h3>
8826
8827 New base hard disks are created using
8828 <link to="IVirtualBox::createHardDisk"/>. Existing hard disks are
8829 opened using <link to="IVirtualBox::openMedium"/>. Differencing hard
8830 disks are usually implicitly created by VirtualBox when needed but may
8831 also be created explicitly using <link to="#createDiffStorage"/>.
8832
8833 After the hard disk is successfully created (including the storage unit)
8834 or opened, it becomes a known hard disk (remembered in the internal media
8835 registry). Known hard disks can be attached to a virtual machine, accessed
8836 through <link to="IVirtualBox::findMedium"/> or enumerated using the
8837 <link to="IVirtualBox::hardDisks"/> array (only for base hard disks).
8838
8839 The following methods, besides <link to="IMedium::close"/>,
8840 automatically remove the hard disk from the media registry:
8841 <ul>
8842 <li><link to="#deleteStorage"/></li>
8843 <li><link to="#mergeTo"/></li>
8844 </ul>
8845
8846 If the storage unit of the hard disk is a regular file in the host's
8847 file system then the rules stated in the description of the
8848 <link to="IMedium::location"/> attribute apply when setting its value.
8849
8850 <h4>Automatic composition of the file name part</h4>
8851
8852 Another extension to the <link to="IMedium::location"/> attribute is that
8853 there is a possibility to cause VirtualBox to compose a unique value for
8854 the file name part of the location using the UUID of the hard disk. This
8855 applies only to hard disks in <link to="MediumState_NotCreated"/> state,
8856 e.g. before the storage unit is created, and works as follows. You set the
8857 value of the <link to="IMedium::location"/> attribute to a location
8858 specification which only contains the path specification but not the file
8859 name part and ends with either a forward slash or a backslash character.
8860 In response, VirtualBox will generate a new UUID for the hard disk and
8861 compose the file name using the following pattern:
8862 <pre>
8863 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
8864 </pre>
8865 where <tt>&lt;path&gt;</tt> is the supplied path specification,
8866 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
8867 is the default extension for the storage format of this hard disk. After
8868 that, you may call any of the methods that create a new hard disk storage
8869 unit and they will use the generated UUID and file name.
8870
8871 <h3>Attaching Hard Disks</h3>
8872
8873 Hard disks are attached to virtual machines using the
8874 <link to="IMachine::attachDevice"/> method and detached using the
8875 <link to="IMachine::detachDevice"/> method. Depending on their
8876 <link to="#type"/>, hard disks are attached either
8877 <i>directly</i> or <i>indirectly</i>.
8878
8879 When a hard disk is being attached directly, it is associated with the
8880 virtual machine and used for hard disk operations when the machine is
8881 running. When a hard disk is being attached indirectly, a new differencing
8882 hard disk linked to it is implicitly created and this differencing hard
8883 disk is associated with the machine and used for hard disk operations.
8884 This also means that if <link to="IMachine::attachDevice"/> performs
8885 a direct attachment then the same hard disk will be returned in response
8886 to the subsequent <link to="IMachine::getMedium"/> call; however if
8887 an indirect attachment is performed then
8888 <link to="IMachine::getMedium"/> will return the implicitly created
8889 differencing hard disk, not the original one passed to <link
8890 to="IMachine::attachDevice"/>. In detail:
8891
8892 <ul>
8893 <li><b>Normal base</b> hard disks that do not have children (i.e.
8894 differencing hard disks linked to them) and that are not already
8895 attached to virtual machines in snapshots are attached <b>directly</b>.
8896 Otherwise, they are attached <b>indirectly</b> because having
8897 dependent children or being part of the snapshot makes it impossible
8898 to modify hard disk contents without breaking the integrity of the
8899 dependent party. The <link to="#readOnly"/> attribute allows to
8900 quickly determine the kind of the attachment for the given hard
8901 disk. Note that if a normal base hard disk is to be indirectly
8902 attached to a virtual machine with snapshots then a special
8903 procedure called <i>smart attachment</i> is performed (see below).</li>
8904 <li><b>Normal differencing</b> hard disks are like normal base hard disks:
8905 they are attached <b>directly</b> if they do not have children and are
8906 not attached to virtual machines in snapshots, and <b>indirectly</b>
8907 otherwise. Note that the smart attachment procedure is never performed
8908 for differencing hard disks.</li>
8909 <li><b>Immutable</b> hard disks are always attached <b>indirectly</b> because
8910 they are designed to be non-writable. If an immutable hard disk is
8911 attached to a virtual machine with snapshots then a special
8912 procedure called smart attachment is performed (see below).</li>
8913 <li><b>Writethrough</b> hard disks are always attached <b>directly</b>,
8914 also as designed. This also means that writethrough hard disks cannot
8915 have other hard disks linked to them at all.</li>
8916 <li><b>Shareable</b> hard disks are always attached <b>directly</b>,
8917 also as designed. This also means that shareable hard disks cannot
8918 have other hard disks linked to them at all. They behave almost
8919 like writethrough hard disks, except that shareable hard disks can
8920 be attached to several virtual machines which are running, allowing
8921 concurrent accesses. You need special cluster software running in
8922 the virtual machines to make use of such disks.</li>
8923 </ul>
8924
8925 Note that the same hard disk, regardless of its type, may be attached to
8926 more than one virtual machine at a time. In this case, the machine that is
8927 started first gains exclusive access to the hard disk and attempts to
8928 start other machines having this hard disk attached will fail until the
8929 first machine is powered down.
8930
8931 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
8932 that the given hard disk remains associated with the given machine after a
8933 successful <link to="IMachine::detachDevice"/> call until
8934 <link to="IMachine::saveSettings"/> is called to save all changes to
8935 machine settings to disk. This deferring is necessary to guarantee that
8936 the hard disk configuration may be restored at any time by a call to
8937 <link to="IMachine::discardSettings"/> before the settings
8938 are saved (committed).
8939
8940 Note that if <link to="IMachine::discardSettings"/> is called after
8941 indirectly attaching some hard disks to the machine but before a call to
8942 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
8943 all differencing hard disks implicitly created by
8944 <link to="IMachine::attachDevice"/> for these indirect attachments.
8945 Such implicitly created hard disks will also be immediately deleted when
8946 detached explicitly using the <link to="IMachine::detachDevice"/>
8947 call if it is made before <link to="IMachine::saveSettings"/>. This
8948 implicit deletion is safe because newly created differencing hard
8949 disks do not contain any user data.
8950
8951 However, keep in mind that detaching differencing hard disks that were
8952 implicitly created by <link to="IMachine::attachDevice"/>
8953 before the last <link to="IMachine::saveSettings"/> call will
8954 <b>not</b> implicitly delete them as they may already contain some data
8955 (for example, as a result of virtual machine execution). If these hard
8956 disks are no more necessary, the caller can always delete them explicitly
8957 using <link to="#deleteStorage"/> after they are actually de-associated
8958 from this machine by the <link to="IMachine::saveSettings"/> call.
8959
8960 <h3>Smart Attachment</h3>
8961
8962 When normal base or immutable hard disks are indirectly attached to a
8963 virtual machine then some additional steps are performed to make sure the
8964 virtual machine will have the most recent "view" of the hard disk being
8965 attached. These steps include walking through the machine's snapshots
8966 starting from the current one and going through ancestors up to the first
8967 snapshot. Hard disks attached to the virtual machine in all
8968 of the encountered snapshots are checked whether they are descendants of
8969 the given normal base or immutable hard disk. The first found child (which
8970 is the differencing hard disk) will be used instead of the normal base or
8971 immutable hard disk as a parent for creating a new differencing hard disk
8972 that will be actually attached to the machine. And only if no descendants
8973 are found or if the virtual machine does not have any snapshots then the
8974 normal base or immutable hard disk will be used itself as a parent for
8975 this differencing hard disk.
8976
8977 It is easier to explain what smart attachment does using the
8978 following example:
8979 <pre>
8980BEFORE attaching B.vdi: AFTER attaching B.vdi:
8981
8982Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
8983 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
8984 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
8985 Snapshot 4 (none) Snapshot 4 (none)
8986 CurState (none) CurState (D3->D2.vdi)
8987
8988 NOT
8989 ...
8990 CurState (D3->B.vdi)
8991 </pre>
8992 The first column is the virtual machine configuration before the base hard
8993 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
8994 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
8995 mean that the hard disk that is actually attached to the machine is a
8996 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
8997 another hard disk, <tt>B.vdi</tt>.
8998
8999 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
9000 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
9001 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
9002 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
9003 it cannot be attached directly and needs an indirect attachment (i.e.
9004 implicit creation of a new differencing hard disk). Due to the smart
9005 attachment procedure, the new differencing hard disk
9006 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
9007 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
9008 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
9009 machine.
9010
9011 Note that if there is more than one descendant hard disk of the given base
9012 hard disk found in a snapshot, and there is an exact device, channel and
9013 bus match, then this exact match will be used. Otherwise, the youngest
9014 descendant will be picked up.
9015
9016 There is one more important aspect of the smart attachment procedure which
9017 is not related to snapshots at all. Before walking through the snapshots
9018 as described above, the backup copy of the current list of hard disk
9019 attachment is searched for descendants. This backup copy is created when
9020 the hard disk configuration is changed for the first time after the last
9021 <link to="IMachine::saveSettings"/> call and used by
9022 <link to="IMachine::discardSettings"/> to undo the recent hard disk
9023 changes. When such a descendant is found in this backup copy, it will be
9024 simply re-attached back, without creating a new differencing hard disk for
9025 it. This optimization is necessary to make it possible to re-attach the
9026 base or immutable hard disk to a different bus, channel or device slot
9027 without losing the contents of the differencing hard disk actually
9028 attached to the machine in place of it.
9029 </desc>
9030
9031 <attribute name="id" type="uuid" mod="string" readonly="yes">
9032 <desc>
9033 UUID of the medium. For a newly created medium, this value is a randomly
9034 generated UUID.
9035
9036 <note>
9037 For media in one of MediumState_NotCreated, MediumState_Creating or
9038 MediumState_Deleting states, the value of this property is undefined
9039 and will most likely be an empty UUID.
9040 </note>
9041 </desc>
9042 </attribute>
9043
9044 <attribute name="description" type="wstring">
9045 <desc>
9046 Optional description of the medium. For a newly created medium the value
9047 of this attribute is an empty string.
9048
9049 Medium types that don't support this attribute will return E_NOTIMPL in
9050 attempt to get or set this attribute's value.
9051
9052 <note>
9053 For some storage types, reading this attribute may return an outdated
9054 (last known) value when <link to="#state"/> is <link
9055 to="MediumState_Inaccessible"/> or <link
9056 to="MediumState_LockedWrite"/> because the value of this attribute is
9057 stored within the storage unit itself. Also note that changing the
9058 attribute value is not possible in such case, as well as when the
9059 medium is the <link to="MediumState_LockedRead"/> state.
9060 </note>
9061 </desc>
9062 </attribute>
9063
9064 <attribute name="state" type="MediumState" readonly="yes">
9065 <desc>
9066 Returns the current medium state, which is the last state set by
9067 the accessibility check performed by <link to="#refreshState"/>.
9068 If that method has not yet been called on the medium, the state
9069 is "Inaccessible"; as opposed to truly inaccessible media, the
9070 value of <link to="#lastAccessError"/> will be an empty string in
9071 that case.
9072
9073 <note>As of version 3.1, this no longer performs an accessibility check
9074 automatically; call <link to="#refreshState"/> for that.
9075 </note>
9076 </desc>
9077 </attribute>
9078
9079 <attribute name="variant" type="MediumVariant" readonly="yes">
9080 <desc>
9081 Returns the storage format variant information for this medium.
9082 Before <link to="#refreshState"/> is called this method returns
9083 an undefined value.
9084 </desc>
9085 </attribute>
9086
9087 <attribute name="location" type="wstring">
9088 <desc>
9089 Location of the storage unit holding medium data.
9090
9091 The format of the location string is medium type specific. For medium
9092 types using regular files in a host's file system, the location
9093 string is the full file name.
9094
9095 Some medium types may support changing the storage unit location by
9096 simply changing the value of this property. If this operation is not
9097 supported, the implementation will return E_NOTIMPL in attempt to set
9098 this attribute's value.
9099
9100 When setting a value of the location attribute which is a regular file
9101 in the host's file system, the given file name may be either relative to
9102 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
9103 absolute. Note that if the given location specification does not contain
9104 the file extension part then a proper default extension will be
9105 automatically appended by the implementation depending on the medium type.
9106 </desc>
9107 </attribute>
9108
9109 <attribute name="name" type="wstring" readonly="yes">
9110 <desc>
9111 Name of the storage unit holding medium data.
9112
9113 The returned string is a short version of the <link to="#location"/>
9114 attribute that is suitable for representing the medium in situations
9115 where the full location specification is too long (such as lists
9116 and comboboxes in GUI frontends). This string is also used by frontends
9117 to sort the media list alphabetically when needed.
9118
9119 For example, for locations that are regular files in the host's file
9120 system, the value of this attribute is just the file name (+ extension),
9121 without the path specification.
9122
9123 Note that as opposed to the <link to="#location"/> attribute, the name
9124 attribute will not necessary be unique for a list of media of the
9125 given type and format.
9126 </desc>
9127 </attribute>
9128
9129 <attribute name="deviceType" type="DeviceType" readonly="yes">
9130 <desc>Kind of device (DVD/Floppy/HardDisk) which is applicable to this
9131 medium.</desc>
9132 </attribute>
9133
9134 <attribute name="hostDrive" type="boolean" readonly="yes">
9135 <desc>True if this corresponds to a drive on the host.</desc>
9136 </attribute>
9137
9138 <attribute name="size" type="long long" readonly="yes">
9139 <desc>
9140 Physical size of the storage unit used to hold medium data (in bytes).
9141
9142 <note>
9143 For media whose <link to="#state"/> is <link
9144 to="MediumState_Inaccessible"/>, the value of this property is the
9145 last known size. For <link to="MediumState_NotCreated"/> media,
9146 the returned value is zero.
9147 </note>
9148 </desc>
9149 </attribute>
9150
9151 <attribute name="format" type="wstring" readonly="yes">
9152 <desc>
9153 Storage format of this medium.
9154
9155 The value of this attribute is a string that specifies a backend used
9156 to store medium data. The storage format is defined when you create a
9157 new medium or automatically detected when you open an existing medium,
9158 and cannot be changed later.
9159
9160 The list of all storage formats supported by this VirtualBox
9161 installation can be obtained using
9162 <link to="ISystemProperties::mediumFormats"/>.
9163 </desc>
9164 </attribute>
9165
9166 <attribute name="mediumFormat" type="IMediumFormat" readonly="yes">
9167 <desc>
9168 Storage medium format object corresponding to this medium.
9169
9170 The value of this attribute is a reference to the medium format object
9171 that specifies the backend properties used to store medium data. The
9172 storage format is defined when you create a new medium or automatically
9173 detected when you open an existing medium, and cannot be changed later.
9174
9175 <note>@c null is returned if there is no associated medium format
9176 object. This can e.g. happen for medium objects representing host
9177 drives and other special medium objects.</note>
9178 </desc>
9179 </attribute>
9180
9181 <attribute name="type" type="MediumType">
9182 <desc>
9183 Type (role) of this medium.
9184
9185 The following constraints apply when changing the value of this
9186 attribute:
9187 <ul>
9188 <li>If a medium is attached to a virtual machine (either in the
9189 current state or in one of the snapshots), its type cannot be
9190 changed.
9191 </li>
9192 <li>As long as the medium has children, its type cannot be set
9193 to <link to="MediumType_Writethrough"/>.
9194 </li>
9195 <li>The type of all differencing media is
9196 <link to="MediumType_Normal"/> and cannot be changed.
9197 </li>
9198 </ul>
9199
9200 The type of a newly created or opened medium is set to
9201 <link to="MediumType_Normal"/>, except for DVD and floppy media,
9202 which have a type of <link to="MediumType_Writethrough"/>.
9203 </desc>
9204 </attribute>
9205
9206 <attribute name="parent" type="IMedium" readonly="yes">
9207 <desc>
9208 Parent of this medium (the medium this medium is directly based
9209 on).
9210
9211 Only differencing media have parents. For base (non-differencing)
9212 media, @c null is returned.
9213 </desc>
9214 </attribute>
9215
9216 <attribute name="children" type="IMedium" safearray="yes" readonly="yes">
9217 <desc>
9218 Children of this medium (all differencing media directly based
9219 on this medium). A @c null array is returned if this medium
9220 does not have any children.
9221 </desc>
9222 </attribute>
9223
9224 <attribute name="base" type="IMedium" readonly="yes">
9225 <desc>
9226 Base medium of this medium.
9227
9228 If this is a differencing medium, its base medium is the medium
9229 the given medium branch starts from. For all other types of media, this
9230 property returns the medium object itself (i.e. the same object this
9231 property is read on).
9232 </desc>
9233 </attribute>
9234
9235 <attribute name="readOnly" type="boolean" readonly="yes">
9236 <desc>
9237 Returns @c true if this medium is read-only and @c false otherwise.
9238
9239 A medium is considered to be read-only when its contents cannot be
9240 modified without breaking the integrity of other parties that depend on
9241 this medium such as its child media or snapshots of virtual machines
9242 where this medium is attached to these machines. If there are no
9243 children and no such snapshots then there is no dependency and the
9244 medium is not read-only.
9245
9246 The value of this attribute can be used to determine the kind of the
9247 attachment that will take place when attaching this medium to a
9248 virtual machine. If the value is @c false then the medium will
9249 be attached directly. If the value is @c true then the medium
9250 will be attached indirectly by creating a new differencing child
9251 medium for that. See the interface description for more information.
9252
9253 Note that all <link to="MediumType_Immutable">Immutable</link> media
9254 are always read-only while all
9255 <link to="MediumType_Writethrough">Writethrough</link> media are
9256 always not.
9257
9258 <note>
9259 The read-only condition represented by this attribute is related to
9260 the medium type and usage, not to the current
9261 <link to="IMedium::state">medium state</link> and not to the read-only
9262 state of the storage unit.
9263 </note>
9264 </desc>
9265 </attribute>
9266
9267 <attribute name="logicalSize" type="long long" readonly="yes">
9268 <desc>
9269 Logical size of this medium (in bytes), as reported to the
9270 guest OS running inside the virtual machine this medium is
9271 attached to. The logical size is defined when the medium is created
9272 and cannot be changed later.
9273
9274 <note>
9275 Reading this property on a differencing medium will return the size
9276 of its <link to="#base"/> medium.
9277 </note>
9278 <note>
9279 For media whose state is <link to="#state"/> is <link
9280 to="MediumState_Inaccessible"/>, the value of this property is the
9281 last known logical size. For <link to="MediumState_NotCreated"/>
9282 media, the returned value is zero.
9283 </note>
9284 </desc>
9285 </attribute>
9286
9287 <attribute name="autoReset" type="boolean">
9288 <desc>
9289 Whether this differencing medium will be automatically reset each
9290 time a virtual machine it is attached to is powered up. This
9291 attribute is automatically set to @c true for the last
9292 differencing image of an "immutable" medium (see
9293 <link to="MediumType" />).
9294
9295 See <link to="#reset"/> for more information about resetting
9296 differencing media.
9297
9298 <note>
9299 Reading this property on a base (non-differencing) medium will
9300 always @c false. Changing the value of this property in this
9301 case is not supported.
9302 </note>
9303
9304 <result name="VBOX_E_NOT_SUPPORTED">
9305 This is not a differencing medium (when changing the attribute
9306 value).
9307 </result>
9308 </desc>
9309 </attribute>
9310
9311 <attribute name="lastAccessError" type="wstring" readonly="yes">
9312 <desc>
9313 Text message that represents the result of the last accessibility
9314 check performed by <link to="#refreshState"/>.
9315
9316 An empty string is returned if the last accessibility check
9317 was successful or has not yet been called. As a result, if
9318 <link to="#state" /> is "Inaccessible" and this attribute is empty,
9319 then <link to="#refreshState"/> has yet to be called; this is the
9320 default value of media after VirtualBox initialization.
9321 A non-empty string indicates a failure and should normally describe
9322 a reason of the failure (for example, a file read error).
9323 </desc>
9324 </attribute>
9325
9326 <attribute name="machineIds" type="uuid" mod="string" safearray="yes" readonly="yes">
9327 <desc>
9328 Array of UUIDs of all machines this medium is attached to.
9329
9330 A @c null array is returned if this medium is not attached to any
9331 machine or to any machine's snapshot.
9332
9333 <note>
9334 The returned array will include a machine even if this medium is not
9335 attached to that machine in the current state but attached to it in
9336 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
9337 details.
9338 </note>
9339 </desc>
9340 </attribute>
9341
9342 <method name="setIDs">
9343 <desc>
9344 Changes the UUID and parent UUID for a hard disk medium.
9345 </desc>
9346 <param name="setImageId" type="boolean" dir="in">
9347 <desc>
9348 Select whether a new image UUID is set or not.
9349 </desc>
9350 </param>
9351 <param name="imageId" type="uuid" mod="string" dir="in">
9352 <desc>
9353 New UUID for the image. If an empty string is passed, then a new
9354 UUID is automatically created, provided that @a setImageId is @c true.
9355 Specifying a zero UUID is not allowed.
9356 </desc>
9357 </param>
9358 <param name="setParentId" type="boolean" dir="in">
9359 <desc>
9360 Select whether a new parent UUID is set or not.
9361 </desc>
9362 </param>
9363 <param name="parentId" type="uuid" mod="string" dir="in">
9364 <desc>
9365 New parent UUID for the image. If an empty string is passed, then a
9366 new UUID is automatically created, provided @a setParentId is
9367 @c true. A zero UUID is valid.
9368 </desc>
9369 </param>
9370 <result name="E_INVALIDARG">
9371 Invalid parameter combination.
9372 </result>
9373 <result name="VBOX_E_NOT_SUPPORTED">
9374 Medium is not a hard disk medium.
9375 </result>
9376 </method>
9377
9378 <method name="refreshState">
9379 <desc>
9380 If the current medium state (see <link to="MediumState"/>) is one of
9381 "Created", "Inaccessible" or "LockedRead", then this performs an
9382 accessibility check on the medium and sets the value of the <link to="#state"/>
9383 attribute accordingly; that value is also returned for convenience.
9384
9385 For all other state values, this does not perform a refresh but returns
9386 the state only.
9387
9388 The refresh, if performed, may take a long time (several seconds or even
9389 minutes, depending on the storage unit location and format) because it performs an
9390 accessibility check of the storage unit. This check may cause a significant
9391 delay if the storage unit of the given medium is, for example, a file located
9392 on a network share which is not currently accessible due to connectivity
9393 problems. In that case, the call will not return until a timeout
9394 interval defined by the host OS for this operation expires. For this reason,
9395 it is recommended to never read this attribute on the main UI thread to avoid
9396 making the UI unresponsive.
9397
9398 If the last known state of the medium is "Created" and the accessibility
9399 check fails, then the state would be set to "Inaccessible", and
9400 <link to="#lastAccessError"/> may be used to get more details about the
9401 failure. If the state of the medium is "LockedRead", then it remains the
9402 same, and a non-empty value of <link to="#lastAccessError"/> will
9403 indicate a failed accessibility check in this case.
9404
9405 Note that not all medium states are applicable to all medium types.
9406 </desc>
9407 <param name="state" type="MediumState" dir="return">
9408 <desc>
9409 New medium state.
9410 </desc>
9411 </param>
9412 </method>
9413
9414 <method name="getSnapshotIds">
9415 <desc>
9416 Returns an array of UUIDs of all snapshots of the given machine where
9417 this medium is attached to.
9418
9419 If the medium is attached to the machine in the current state, then the
9420 first element in the array will always be the ID of the queried machine
9421 (i.e. the value equal to the @c machineId argument), followed by
9422 snapshot IDs (if any).
9423
9424 If the medium is not attached to the machine in the current state, then
9425 the array will contain only snapshot IDs.
9426
9427 The returned array may be @c null if this medium is not attached
9428 to the given machine at all, neither in the current state nor in one of
9429 the snapshots.
9430 </desc>
9431 <param name="machineId" type="uuid" mod="string" dir="in">
9432 <desc>
9433 UUID of the machine to query.
9434 </desc>
9435 </param>
9436 <param name="snapshotIds" type="uuid" mod="string" safearray="yes" dir="return">
9437 <desc>
9438 Array of snapshot UUIDs of the given machine using this medium.
9439 </desc>
9440 </param>
9441 </method>
9442
9443 <method name="lockRead">
9444 <desc>
9445 Locks this medium for reading.
9446
9447 A read lock is shared: many clients can simultaneously lock the
9448 same medium for reading unless it is already locked for writing (see
9449 <link to="#lockWrite"/>) in which case an error is returned.
9450
9451 When the medium is locked for reading, it cannot be modified
9452 from within VirtualBox. This means that any method that changes
9453 the properties of this medium or contents of the storage unit
9454 will return an error (unless explicitly stated otherwise). That
9455 includes an attempt to start a virtual machine that wants to
9456 write to the the medium.
9457
9458 When the virtual machine is started up, it locks for reading all
9459 media it uses in read-only mode. If some medium cannot be locked
9460 for reading, the startup procedure will fail.
9461 A medium is typically locked for reading while it is used by a running
9462 virtual machine but has a depending differencing image that receives
9463 the actual write operations. This way one base medium can have
9464 multiple child differencing images which can be written to
9465 simultaneously. Read-only media such as DVD and floppy images are
9466 also locked for reading only (so they can be in use by multiple
9467 machines simultaneously).
9468
9469 A medium is also locked for reading when it is the source of a
9470 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
9471
9472 The medium locked for reading must be unlocked using the <link
9473 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
9474 can be nested and must be followed by the same number of paired
9475 <link to="#unlockRead"/> calls.
9476
9477 This method sets the medium state (see <link to="#state"/>) to
9478 "LockedRead" on success. The medium's previous state must be
9479 one of "Created", "Inaccessible" or "LockedRead".
9480
9481 Locking an inaccessible medium is not an error; this method performs
9482 a logical lock that prevents modifications of this medium through
9483 the VirtualBox API, not a physical file-system lock of the underlying
9484 storage unit.
9485
9486 This method returns the current state of the medium
9487 <i>before</i> the operation.
9488
9489 <result name="VBOX_E_INVALID_OBJECT_STATE">
9490 Invalid medium state (e.g. not created, locked, inaccessible,
9491 creating, deleting).
9492 </result>
9493
9494 </desc>
9495 <param name="state" type="MediumState" dir="return">
9496 <desc>
9497 State of the medium after the operation.
9498 </desc>
9499 </param>
9500 </method>
9501
9502 <method name="unlockRead">
9503 <desc>
9504 Cancels the read lock previously set by <link to="#lockRead"/>.
9505
9506 For both success and failure, this method returns the current state
9507 of the medium <i>after</i> the operation.
9508
9509 See <link to="#lockRead"/> for more details.
9510
9511 <result name="VBOX_E_INVALID_OBJECT_STATE">
9512 Medium not locked for reading.
9513 </result>
9514
9515 </desc>
9516 <param name="state" type="MediumState" dir="return">
9517 <desc>
9518 State of the medium after the operation.
9519 </desc>
9520 </param>
9521 </method>
9522
9523 <method name="lockWrite">
9524 <desc>
9525 Locks this medium for writing.
9526
9527 A write lock, as opposed to <link to="#lockRead"/>, is
9528 exclusive: there may be only one client holding a write lock,
9529 and there may be no read locks while the write lock is held.
9530 As a result, read-locking fails if a write lock is held, and
9531 write-locking fails if either a read or another write lock is held.
9532
9533 When a medium is locked for writing, it cannot be modified
9534 from within VirtualBox, and it is not guaranteed that the values
9535 of its properties are up-to-date. Any method that changes the
9536 properties of this medium or contents of the storage unit will
9537 return an error (unless explicitly stated otherwise).
9538
9539 When a virtual machine is started up, it locks for writing all
9540 media it uses to write data to. If any medium could not be locked
9541 for writing, the startup procedure will fail. If a medium has
9542 differencing images, then while the machine is running, only
9543 the last ("leaf") differencing image is locked for writing,
9544 whereas its parents are locked for reading only.
9545
9546 A medium is also locked for writing when it is the target of a
9547 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
9548
9549 The medium locked for writing must be unlocked using the <link
9550 to="#unlockWrite"/> method. Write locks <i>cannot</i> be nested.
9551
9552 This method sets the medium state (see <link to="#state"/>) to
9553 "LockedWrite" on success. The medium's previous state must be
9554 either "Created" or "Inaccessible".
9555
9556 Locking an inaccessible medium is not an error; this method performs
9557 a logical lock that prevents modifications of this medium through
9558 the VirtualBox API, not a physical file-system lock of the underlying
9559 storage unit.
9560
9561 For both, success and failure, this method returns the current
9562 state of the medium <i>before</i> the operation.
9563
9564 <result name="VBOX_E_INVALID_OBJECT_STATE">
9565 Invalid medium state (e.g. not created, locked, inaccessible,
9566 creating, deleting).
9567 </result>
9568
9569 </desc>
9570 <param name="state" type="MediumState" dir="return">
9571 <desc>
9572 State of the medium after the operation.
9573 </desc>
9574 </param>
9575 </method>
9576
9577 <method name="unlockWrite">
9578 <desc>
9579 Cancels the write lock previously set by <link to="#lockWrite"/>.
9580
9581 For both success and failure, this method returns the current
9582 state of the medium <i>after</i> the operation.
9583
9584 See <link to="#lockWrite"/> for more details.
9585
9586 <result name="VBOX_E_INVALID_OBJECT_STATE">
9587 Medium not locked for writing.
9588 </result>
9589
9590 </desc>
9591 <param name="state" type="MediumState" dir="return">
9592 <desc>
9593 State of the medium after the operation.
9594 </desc>
9595 </param>
9596 </method>
9597
9598 <method name="close">
9599 <desc>
9600 Closes this medium.
9601
9602 The medium must not be attached to any known virtual machine
9603 and must not have any known child media, otherwise the
9604 operation will fail.
9605
9606 When the medium is successfully closed, it is removed from
9607 the list of registered media, but its storage unit is not
9608 deleted. In particular, this means that this medium can
9609 later be opened again using the <link to="IVirtualBox::openMedium"/>
9610 call.
9611
9612 Note that after this method successfully returns, the given medium
9613 object becomes uninitialized. This means that any attempt
9614 to call any of its methods or attributes will fail with the
9615 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
9616
9617 <result name="VBOX_E_INVALID_OBJECT_STATE">
9618 Invalid medium state (other than not created, created or
9619 inaccessible).
9620 </result>
9621 <result name="VBOX_E_OBJECT_IN_USE">
9622 Medium attached to virtual machine.
9623 </result>
9624 <result name="VBOX_E_FILE_ERROR">
9625 Settings file not accessible.
9626 </result>
9627 <result name="VBOX_E_XML_ERROR">
9628 Could not parse the settings file.
9629 </result>
9630
9631 </desc>
9632 </method>
9633
9634 <!-- storage methods -->
9635
9636 <method name="getProperty">
9637 <desc>
9638 Returns the value of the custom medium property with the given name.
9639
9640 The list of all properties supported by the given medium format can
9641 be obtained with <link to="IMediumFormat::describeProperties"/>.
9642
9643 Note that if this method returns an empty string in @a value, the
9644 requested property is supported but currently not assigned any value.
9645
9646 <result name="VBOX_E_OBJECT_NOT_FOUND">
9647 Requested property does not exist (not supported by the format).
9648 </result>
9649 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
9650 </desc>
9651 <param name="name" type="wstring" dir="in">
9652 <desc>Name of the property to get.</desc>
9653 </param>
9654 <param name="value" type="wstring" dir="return">
9655 <desc>Current property value.</desc>
9656 </param>
9657 </method>
9658
9659 <method name="setProperty">
9660 <desc>
9661 Sets the value of the custom medium property with the given name.
9662
9663 The list of all properties supported by the given medium format can
9664 be obtained with <link to="IMediumFormat::describeProperties"/>.
9665
9666 Note that setting the property value to @c null or an empty string is
9667 equivalent to deleting the existing value. A default value (if it is
9668 defined for this property) will be used by the format backend in this
9669 case.
9670
9671 <result name="VBOX_E_OBJECT_NOT_FOUND">
9672 Requested property does not exist (not supported by the format).
9673 </result>
9674 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
9675 </desc>
9676 <param name="name" type="wstring" dir="in">
9677 <desc>Name of the property to set.</desc>
9678 </param>
9679 <param name="value" type="wstring" dir="in">
9680 <desc>Property value to set.</desc>
9681 </param>
9682 </method>
9683
9684 <method name="getProperties">
9685 <desc>
9686 Returns values for a group of properties in one call.
9687
9688 The names of the properties to get are specified using the @a names
9689 argument which is a list of comma-separated property names or
9690 an empty string if all properties are to be returned. Note that currently
9691 the value of this argument is ignored and the method always returns all
9692 existing properties.
9693
9694 The list of all properties supported by the given medium format can
9695 be obtained with <link to="IMediumFormat::describeProperties"/>.
9696
9697 The method returns two arrays, the array of property names corresponding
9698 to the @a names argument and the current values of these properties.
9699 Both arrays have the same number of elements with each elemend at the
9700 given index in the first array corresponds to an element at the same
9701 index in the second array.
9702
9703 Note that for properties that do not have assigned values,
9704 an empty string is returned at the appropriate index in the
9705 @a returnValues array.
9706
9707 </desc>
9708 <param name="names" type="wstring" dir="in">
9709 <desc>
9710 Names of properties to get.
9711 </desc>
9712 </param>
9713 <param name="returnNames" type="wstring" safearray="yes" dir="out">
9714 <desc>Names of returned properties.</desc>
9715 </param>
9716 <param name="returnValues" type="wstring" safearray="yes" dir="return">
9717 <desc>Values of returned properties.</desc>
9718 </param>
9719 </method>
9720
9721 <method name="setProperties">
9722 <desc>
9723 Sets values for a group of properties in one call.
9724
9725 The names of the properties to set are passed in the @a names
9726 array along with the new values for them in the @a values array. Both
9727 arrays have the same number of elements with each elemend at the given
9728 index in the first array corresponding to an element at the same index
9729 in the second array.
9730
9731 If there is at least one property name in @a names that is not valid,
9732 the method will fail before changing the values of any other properties
9733 from the @a names array.
9734
9735 Using this method over <link to="#setProperty"/> is preferred if you
9736 need to set several properties at once since it will result into less
9737 IPC calls.
9738
9739 The list of all properties supported by the given medium format can
9740 be obtained with <link to="IMediumFormat::describeProperties"/>.
9741
9742 Note that setting the property value to @c null or an empty string is
9743 equivalent to deleting the existing value. A default value (if it is
9744 defined for this property) will be used by the format backend in this
9745 case.
9746 </desc>
9747 <param name="names" type="wstring" safearray="yes" dir="in">
9748 <desc>Names of properties to set.</desc>
9749 </param>
9750 <param name="values" type="wstring" safearray="yes" dir="in">
9751 <desc>Values of properties to set.</desc>
9752 </param>
9753 </method>
9754
9755 <!-- storage methods -->
9756
9757 <method name="createBaseStorage">
9758 <desc>
9759 Starts creating a hard disk storage unit (fixed/dynamic, according
9760 to the variant flags) in in the background. The previous storage unit
9761 created for this object, if any, must first be deleted using
9762 <link to="#deleteStorage"/>, otherwise the operation will fail.
9763
9764 Before the operation starts, the medium is placed in
9765 <link to="MediumState_Creating"/> state. If the create operation
9766 fails, the medium will be placed back in <link to="MediumState_NotCreated"/>
9767 state.
9768
9769 After the returned progress object reports that the operation has
9770 successfully completed, the medium state will be set to <link
9771 to="MediumState_Created"/>, the medium will be remembered by this
9772 VirtualBox installation and may be attached to virtual machines.
9773
9774 <result name="VBOX_E_NOT_SUPPORTED">
9775 The variant of storage creation operation is not supported. See <link
9776 to="IMediumFormat::capabilities"/>.
9777 </result>
9778 </desc>
9779 <param name="logicalSize" type="long long" dir="in">
9780 <desc>Maximum logical size of the medium in bytes.</desc>
9781 </param>
9782 <param name="variant" type="MediumVariant" dir="in">
9783 <desc>Exact image variant which should be created.</desc>
9784 </param>
9785 <param name="progress" type="IProgress" dir="return">
9786 <desc>Progress object to track the operation completion.</desc>
9787 </param>
9788 </method>
9789
9790 <method name="deleteStorage">
9791 <desc>
9792 Starts deleting the storage unit of this medium.
9793
9794 The medium must not be attached to any known virtual machine and must
9795 not have any known child media, otherwise the operation will fail.
9796 It will also fail if there is no storage unit to delete or if deletion
9797 is already in progress, or if the medium is being in use (locked for
9798 read or for write) or inaccessible. Therefore, the only valid state for
9799 this operation to succeed is <link to="MediumState_Created"/>.
9800
9801 Before the operation starts, the medium is placed in
9802 <link to="MediumState_Deleting"/> state and gets removed from the list
9803 of remembered hard disks (media registry). If the delete operation
9804 fails, the medium will be remembered again and placed back to
9805 <link to="MediumState_Created"/> state.
9806
9807 After the returned progress object reports that the operation is
9808 complete, the medium state will be set to
9809 <link to="MediumState_NotCreated"/> and you will be able to use one of
9810 the storage creation methods to create it again.
9811
9812 <see>#close()</see>
9813
9814 <result name="VBOX_E_OBJECT_IN_USE">
9815 Medium is attached to a virtual machine.
9816 </result>
9817 <result name="VBOX_E_NOT_SUPPORTED">
9818 Storage deletion is not allowed because neither of storage creation
9819 operations are supported. See
9820 <link to="IMediumFormat::capabilities"/>.
9821 </result>
9822
9823 <note>
9824 If the deletion operation fails, it is not guaranteed that the storage
9825 unit still exists. You may check the <link to="IMedium::state"/> value
9826 to answer this question.
9827 </note>
9828 </desc>
9829 <param name="progress" type="IProgress" dir="return">
9830 <desc>Progress object to track the operation completion.</desc>
9831 </param>
9832 </method>
9833
9834 <!-- diff methods -->
9835
9836 <method name="createDiffStorage">
9837 <desc>
9838 Starts creating an empty differencing storage unit based on this
9839 medium in the format and at the location defined by the @a target
9840 argument.
9841
9842 The target medium must be in <link to="MediumState_NotCreated"/>
9843 state (i.e. must not have an existing storage unit). Upon successful
9844 completion, this operation will set the type of the target medium to
9845 <link to="MediumType_Normal"/> and create a storage unit necessary to
9846 represent the differencing medium data in the given format (according
9847 to the storage format of the target object).
9848
9849 After the returned progress object reports that the operation is
9850 successfully complete, the target medium gets remembered by this
9851 VirtualBox installation and may be attached to virtual machines.
9852
9853 <note>
9854 The medium will be set to <link to="MediumState_LockedRead"/>
9855 state for the duration of this operation.
9856 </note>
9857 <result name="VBOX_E_OBJECT_IN_USE">
9858 Medium not in @c NotCreated state.
9859 </result>
9860 </desc>
9861 <param name="target" type="IMedium" dir="in">
9862 <desc>Target medium.</desc>
9863 </param>
9864 <param name="variant" type="MediumVariant" dir="in">
9865 <desc>Exact image variant which should be created.</desc>
9866 </param>
9867 <param name="progress" type="IProgress" dir="return">
9868 <desc>Progress object to track the operation completion.</desc>
9869 </param>
9870 </method>
9871
9872 <method name="mergeTo">
9873 <desc>
9874 Starts merging the contents of this medium and all intermediate
9875 differencing media in the chain to the given target medium.
9876
9877 The target medium must be either a descendant of this medium or
9878 its ancestor (otherwise this method will immediately return a failure).
9879 It follows that there are two logical directions of the merge operation:
9880 from ancestor to descendant (<i>forward merge</i>) and from descendant to
9881 ancestor (<i>backward merge</i>). Let us consider the following medium
9882 chain:
9883
9884 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
9885
9886 Here, calling this method on the <tt>Base</tt> medium object with
9887 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
9888 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
9889 merge. Note that in both cases the contents of the resulting medium
9890 will be the same, the only difference is the medium object that takes
9891 the result of the merge operation. In case of the forward merge in the
9892 above example, the result will be written to <tt>Diff_2</tt>; in case of
9893 the backward merge, the result will be written to <tt>Base</tt>. In
9894 other words, the result of the operation is always stored in the target
9895 medium.
9896
9897 Upon successful operation completion, the storage units of all media in
9898 the chain between this (source) medium and the target medium, including
9899 the source medium itself, will be automatically deleted and the
9900 relevant medium objects (including this medium) will become
9901 uninitialized. This means that any attempt to call any of
9902 their methods or attributes will fail with the
9903 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
9904 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
9905 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> media.
9906 Note that <tt>Diff_2</tt> in this case will become a base medium
9907 itself since it will no longer be based on any other medium.
9908
9909 Considering the above, all of the following conditions must be met in
9910 order for the merge operation to succeed:
9911 <ul>
9912 <li>
9913 Neither this (source) medium nor any intermediate
9914 differencing medium in the chain between it and the target
9915 medium is attached to any virtual machine.
9916 </li>
9917 <li>
9918 Neither the source medium nor the target medium is an
9919 <link to="MediumType_Immutable"/> medium.
9920 </li>
9921 <li>
9922 The part of the medium tree from the source medium to the
9923 target medium is a linear chain, i.e. all medium in this
9924 chain have exactly one child which is the next medium in this
9925 chain. The only exception from this rule is the target medium in
9926 the forward merge operation; it is allowed to have any number of
9927 child media because the merge operation will not change its
9928 logical contents (as it is seen by the guest OS or by children).
9929 </li>
9930 <li>
9931 None of the involved media are in
9932 <link to="MediumState_LockedRead"/> or
9933 <link to="MediumState_LockedWrite"/> state.
9934 </li>
9935 </ul>
9936
9937 <note>
9938 This (source) medium and all intermediates will be placed to <link
9939 to="MediumState_Deleting"/> state and the target medium will be
9940 placed to <link to="MediumState_LockedWrite"/> state and for the
9941 duration of this operation.
9942 </note>
9943 </desc>
9944 <param name="target" type="IMedium" dir="in">
9945 <desc>Target medium.</desc>
9946 </param>
9947 <param name="progress" type="IProgress" dir="return">
9948 <desc>Progress object to track the operation completion.</desc>
9949 </param>
9950 </method>
9951
9952 <!-- clone method -->
9953
9954 <method name="cloneTo">
9955 <desc>
9956 Starts creating a clone of this medium in the format and at the
9957 location defined by the @a target argument.
9958
9959 The target medium must be either in <link to="MediumState_NotCreated"/>
9960 state (i.e. must not have an existing storage unit) or in
9961 <link to="MediumState_Created"/> state (i.e. created and not locked, and
9962 big enough to hold the data or else the copy will be partial). Upon
9963 successful completion, the cloned medium will contain exactly the
9964 same sector data as the medium being cloned, except that in the
9965 first case a new UUID for the clone will be randomly generated, and in
9966 the second case the UUID will remain unchanged.
9967
9968 The @a parent argument defines which medium will be the parent
9969 of the clone. Passing a @c null reference indicates that the clone will
9970 be a base image, i.e. completely independent. It is possible to specify
9971 an arbitrary medium for this parameter, including the parent of the
9972 medium which is being cloned. Even cloning to a child of the source
9973 medium is possible. Note that when cloning to an existing image, the
9974 @a parent irgument is ignored.
9975
9976 After the returned progress object reports that the operation is
9977 successfully complete, the target medium gets remembered by this
9978 VirtualBox installation and may be attached to virtual machines.
9979
9980 <note>
9981 This medium will be placed to <link to="MediumState_LockedRead"/>
9982 state for the duration of this operation.
9983 </note>
9984 <result name="E_NOTIMPL">
9985 The specified cloning variant is not supported at the moment.
9986 </result>
9987 </desc>
9988 <param name="target" type="IMedium" dir="in">
9989 <desc>Target medium.</desc>
9990 </param>
9991 <param name="variant" type="MediumVariant" dir="in">
9992 <desc>Exact image variant which should be created.</desc>
9993 </param>
9994 <param name="parent" type="IMedium" dir="in">
9995 <desc>Parent of the cloned medium.</desc>
9996 </param>
9997 <param name="progress" type="IProgress" dir="return">
9998 <desc>Progress object to track the operation completion.</desc>
9999 </param>
10000 </method>
10001
10002 <!-- other methods -->
10003
10004 <method name="compact">
10005 <desc>
10006 Starts compacting of this medium. This means that the medium is
10007 transformed into a possibly more compact storage representation.
10008 This potentially creates temporary images, which can require a
10009 substantial amount of additional disk space.
10010
10011 This medium will be placed to <link to="MediumState_LockedWrite"/>
10012 state and all its parent media (if any) will be placed to
10013 <link to="MediumState_LockedRead"/> state for the duration of this
10014 operation.
10015
10016 Please note that the results can be either returned straight away,
10017 or later as the result of the background operation via the object
10018 returned via the @a progress parameter.
10019
10020 <result name="VBOX_E_NOT_SUPPORTED">
10021 Medium format does not support compacting (but potentially
10022 needs it).
10023 </result>
10024 </desc>
10025 <param name="progress" type="IProgress" dir="return">
10026 <desc>Progress object to track the operation completion.</desc>
10027 </param>
10028 </method>
10029
10030 <method name="resize">
10031 <desc>
10032 Starts resizing this medium. This means that the nominal size of the
10033 medium is set to the new value. Both increasing and decreasing the
10034 size is possible, and there are no safety checks, since VirtualBox
10035 does not make any assumptions about the medium contents.
10036
10037 Resizing usually needs additional disk space, and possibly also
10038 some temporary disk space. Note that resize does not create a full
10039 temporary copy of the medium, so the additional disk space requirement
10040 is usually much lower than using the clone operation.
10041
10042 This medium will be placed to <link to="MediumState_LockedWrite"/>
10043 state for the duration of this operation.
10044
10045 Please note that the results can be either returned straight away,
10046 or later as the result of the background operation via the object
10047 returned via the @a progress parameter.
10048
10049 <result name="VBOX_E_NOT_SUPPORTED">
10050 Medium format does not support resizing.
10051 </result>
10052 </desc>
10053 <param name="logicalSize" type="long long" dir="in">
10054 <desc>New nominal capacity of the medium in bytes.</desc>
10055 </param>
10056 <param name="progress" type="IProgress" dir="return">
10057 <desc>Progress object to track the operation completion.</desc>
10058 </param>
10059 </method>
10060
10061 <method name="reset">
10062 <desc>
10063 Starts erasing the contents of this differencing medium.
10064
10065 This operation will reset the differencing medium to its initial
10066 state when it does not contain any sector data and any read operation is
10067 redirected to its parent medium. This automatically gets called
10068 during VM power-up for every medium whose <link to="#autoReset" />
10069 attribute is @c true.
10070
10071 The medium will be write-locked for the duration of this operation (see
10072 <link to="#lockWrite" />).
10073
10074 <result name="VBOX_E_NOT_SUPPORTED">
10075 This is not a differencing medium.
10076 </result>
10077 <result name="VBOX_E_INVALID_OBJECT_STATE">
10078 Medium is not in <link to="MediumState_Created"/> or
10079 <link to="MediumState_Inaccessible"/> state.
10080 </result>
10081 </desc>
10082 <param name="progress" type="IProgress" dir="return">
10083 <desc>Progress object to track the operation completion.</desc>
10084 </param>
10085 </method>
10086
10087 </interface>
10088
10089
10090 <!--
10091 // IMediumFormat
10092 /////////////////////////////////////////////////////////////////////////
10093 -->
10094
10095 <enum
10096 name="DataType"
10097 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
10098 >
10099 <const name="Int32" value="0"/>
10100 <const name="Int8" value="1"/>
10101 <const name="String" value="2"/>
10102 </enum>
10103
10104 <enum
10105 name="DataFlags"
10106 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
10107 >
10108 <const name="None" value="0x00"/>
10109 <const name="Mandatory" value="0x01"/>
10110 <const name="Expert" value="0x02"/>
10111 <const name="Array" value="0x04"/>
10112 <const name="FlagMask" value="0x07"/>
10113 </enum>
10114
10115 <enum
10116 name="MediumFormatCapabilities"
10117 uuid="7342ba79-7ce0-4d94-8f86-5ed5a185d9bd"
10118 >
10119 <desc>
10120 Medium format capability flags.
10121 </desc>
10122
10123 <const name="Uuid" value="0x01">
10124 <desc>
10125 Supports UUIDs as expected by VirtualBox code.
10126 </desc>
10127 </const>
10128
10129 <const name="CreateFixed" value="0x02">
10130 <desc>
10131 Supports creating fixed size images, allocating all space instantly.
10132 </desc>
10133 </const>
10134
10135 <const name="CreateDynamic" value="0x04">
10136 <desc>
10137 Supports creating dynamically growing images, allocating space on
10138 demand.
10139 </desc>
10140 </const>
10141
10142 <const name="CreateSplit2G" value="0x08">
10143 <desc>
10144 Supports creating images split in chunks of a bit less than 2 GBytes.
10145 </desc>
10146 </const>
10147
10148 <const name="Differencing" value="0x10">
10149 <desc>
10150 Supports being used as a format for differencing media (see <link
10151 to="IMedium::createDiffStorage"/>).
10152 </desc>
10153 </const>
10154
10155 <const name="Asynchronous" value="0x20">
10156 <desc>
10157 Supports asynchronous I/O operations for at least some configurations.
10158 </desc>
10159 </const>
10160
10161 <const name="File" value="0x40">
10162 <desc>
10163 The format backend operates on files (the <link to="IMedium::location"/>
10164 attribute of the medium specifies a file used to store medium
10165 data; for a list of supported file extensions see
10166 <link to="IMediumFormat::describeFileExtensions"/>).
10167 </desc>
10168 </const>
10169
10170 <const name="Properties" value="0x80">
10171 <desc>
10172 The format backend uses the property interface to configure the storage
10173 location and properties (the <link to="IMediumFormat::describeProperties"/>
10174 method is used to get access to properties supported by the given medium format).
10175 </desc>
10176 </const>
10177
10178 <const name="TcpNetworking" value="0x100">
10179 <desc>
10180 The format backend uses the TCP networking interface for network access.
10181 </desc>
10182 </const>
10183
10184 <const name="VFS" value="0x200">
10185 <desc>
10186 The format backend supports virtual filesystem functionality.
10187 </desc>
10188 </const>
10189
10190 <const name="CapabilityMask" value="0x3FF"/>
10191 </enum>
10192
10193 <interface
10194 name="IMediumFormat" extends="$unknown"
10195 uuid="4e9a873f-0599-434a-8345-619ef3fb3111"
10196 wsmap="managed"
10197 >
10198 <desc>
10199 The IMediumFormat interface represents a medium format.
10200
10201 Each medium format has an associated backend which is used to handle
10202 media stored in this format. This interface provides information
10203 about the properties of the associated backend.
10204
10205 Each medium format is identified by a string represented by the
10206 <link to="#id"/> attribute. This string is used in calls like
10207 <link to="IVirtualBox::createHardDisk"/> to specify the desired
10208 format.
10209
10210 The list of all supported medium formats can be obtained using
10211 <link to="ISystemProperties::mediumFormats"/>.
10212
10213 <see>IMedium</see>
10214 </desc>
10215
10216 <attribute name="id" type="wstring" readonly="yes">
10217 <desc>
10218 Identifier of this format.
10219
10220 The format identifier is a non-@c null non-empty ASCII string. Note that
10221 this string is case-insensitive. This means that, for example, all of
10222 the following strings:
10223 <pre>
10224 "VDI"
10225 "vdi"
10226 "VdI"</pre>
10227 refer to the same medium format.
10228
10229 This string is used in methods of other interfaces where it is necessary
10230 to specify a medium format, such as
10231 <link to="IVirtualBox::createHardDisk"/>.
10232 </desc>
10233 </attribute>
10234
10235 <attribute name="name" type="wstring" readonly="yes">
10236 <desc>
10237 Human readable description of this format.
10238
10239 Mainly for use in file open dialogs.
10240 </desc>
10241 </attribute>
10242
10243 <attribute name="capabilities" type="unsigned long" readonly="yes">
10244 <desc>
10245 Capabilities of the format as a set of bit flags.
10246
10247 For the meaning of individual capability flags see
10248 <link to="MediumFormatCapabilities"/>.
10249 </desc>
10250 </attribute>
10251
10252 <method name="describeFileExtensions">
10253 <desc>
10254 Returns two arrays describing the supported file extensions.
10255
10256 The first array contains the supported extensions and the seconds one
10257 the type each extension supports. Both have the same size.
10258
10259 Note that some backends do not work on files, so this array may be
10260 empty.
10261
10262 <see>IMediumFormat::capabilities</see>
10263 </desc>
10264 <param name="extensions" type="wstring" safearray="yes" dir="out">
10265 <desc>The array of supported extensions.</desc>
10266 </param>
10267 <param name="type" type="DeviceType" safearray="yes" dir="out">
10268 <desc>The array which indicates the device type for every given extension.</desc>
10269 </param>
10270 </method>
10271
10272 <method name="describeProperties">
10273 <desc>
10274 Returns several arrays describing the properties supported by this
10275 format.
10276
10277 An element with the given index in each array describes one
10278 property. Thus, the number of elements in each returned array is the
10279 same and corresponds to the number of supported properties.
10280
10281 The returned arrays are filled in only if the
10282 <link to="MediumFormatCapabilities_Properties"/> flag is set.
10283 All arguments must be non-@c null.
10284
10285 <see>DataType</see>
10286 <see>DataFlags</see>
10287 </desc>
10288
10289 <param name="names" type="wstring" safearray="yes" dir="out">
10290 <desc>Array of property names.</desc>
10291 </param>
10292 <param name="description" type="wstring" safearray="yes" dir="out">
10293 <desc>Array of property descriptions.</desc>
10294 </param>
10295 <param name="types" type="DataType" safearray="yes" dir="out">
10296 <desc>Array of property types.</desc>
10297 </param>
10298 <param name="flags" type="unsigned long" safearray="yes" dir="out">
10299 <desc>Array of property flags.</desc>
10300 </param>
10301 <param name="defaults" type="wstring" safearray="yes" dir="out">
10302 <desc>Array of default property values.</desc>
10303 </param>
10304 </method>
10305
10306 </interface>
10307
10308
10309 <!--
10310 // IKeyboard
10311 /////////////////////////////////////////////////////////////////////////
10312 -->
10313
10314 <interface
10315 name="IKeyboard" extends="$unknown"
10316 uuid="f6916ec5-a881-4237-898f-7de58cf88672"
10317 wsmap="managed"
10318 >
10319 <desc>
10320 The IKeyboard interface represents the virtual machine's keyboard. Used
10321 in <link to="IConsole::keyboard"/>.
10322
10323 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
10324 to the virtual machine.
10325
10326 </desc>
10327 <method name="putScancode">
10328 <desc>Sends a scancode to the keyboard.
10329
10330 <result name="VBOX_E_IPRT_ERROR">
10331 Could not send scan code to virtual keyboard.
10332 </result>
10333
10334 </desc>
10335 <param name="scancode" type="long" dir="in"/>
10336 </method>
10337
10338 <method name="putScancodes">
10339 <desc>Sends an array of scancodes to the keyboard.
10340
10341 <result name="VBOX_E_IPRT_ERROR">
10342 Could not send all scan codes to virtual keyboard.
10343 </result>
10344
10345 </desc>
10346 <param name="scancodes" type="long" dir="in" safearray="yes"/>
10347 <param name="codesStored" type="unsigned long" dir="return"/>
10348 </method>
10349
10350 <method name="putCAD">
10351 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
10352 function is nothing special, it is just a convenience function
10353 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
10354
10355 <result name="VBOX_E_IPRT_ERROR">
10356 Could not send all scan codes to virtual keyboard.
10357 </result>
10358
10359 </desc>
10360 </method>
10361
10362 <attribute name="eventSource" type="IEventSource" readonly="yes">
10363 <desc>
10364 Event source for keyboard events.
10365 </desc>
10366 </attribute>
10367
10368 </interface>
10369
10370
10371 <!--
10372 // IMouse
10373 /////////////////////////////////////////////////////////////////////////
10374 -->
10375
10376 <enum
10377 name="MouseButtonState"
10378 uuid="9ee094b8-b28a-4d56-a166-973cb588d7f8"
10379 >
10380 <desc>
10381 Mouse button state.
10382 </desc>
10383
10384 <const name="LeftButton" value="0x01"/>
10385 <const name="RightButton" value="0x02"/>
10386 <const name="MiddleButton" value="0x04"/>
10387 <const name="WheelUp" value="0x08"/>
10388 <const name="WheelDown" value="0x10"/>
10389 <const name="XButton1" value="0x20"/>
10390 <const name="XButton2" value="0x40"/>
10391 <const name="MouseStateMask" value="0x7F"/>
10392 </enum>
10393
10394 <interface
10395 name="IMouse" extends="$unknown"
10396 uuid="05044a52-7811-4f00-ae3a-0ab7ff707b10"
10397 wsmap="managed"
10398 >
10399 <desc>
10400 The IMouse interface represents the virtual machine's mouse. Used in
10401 <link to="IConsole::mouse"/>.
10402
10403 Through this interface, the virtual machine's virtual mouse can be
10404 controlled.
10405 </desc>
10406
10407 <attribute name="absoluteSupported" type="boolean" readonly="yes">
10408 <desc>
10409 Whether the guest OS supports absolute mouse pointer positioning
10410 or not.
10411 <note>
10412 You can use the <link to="IMouseCapabilityChangedEvent"/>
10413 event to be instantly informed about changes of this attribute
10414 during virtual machine execution.
10415 </note>
10416 <see><link to="#putMouseEventAbsolute"/></see>
10417 </desc>
10418 </attribute>
10419
10420 <attribute name="relativeSupported" type="boolean" readonly="yes">
10421 <desc>
10422 Whether the guest OS supports relative mouse pointer positioning
10423 or not.
10424 <note>
10425 You can use the <link to="IMouseCapabilityChangedEvent"/>
10426 event to be instantly informed about changes of this attribute
10427 during virtual machine execution.
10428 </note>
10429 <see><link to="#putMouseEvent"/></see>
10430 </desc>
10431 </attribute>
10432
10433 <attribute name="needsHostCursor" type="boolean" readonly="yes">
10434 <desc>
10435 Whether the guest OS can currently switch to drawing it's own mouse
10436 cursor on demand.
10437 <note>
10438 You can use the <link to="IMouseCapabilityChangedEvent"/>
10439 event to be instantly informed about changes of this attribute
10440 during virtual machine execution.
10441 </note>
10442 <see><link to="#putMouseEvent"/></see>
10443 </desc>
10444 </attribute>
10445
10446 <method name="putMouseEvent">
10447 <desc>
10448 Initiates a mouse event using relative pointer movements
10449 along x and y axis.
10450
10451 <result name="E_ACCESSDENIED">
10452 Console not powered up.
10453 </result>
10454 <result name="VBOX_E_IPRT_ERROR">
10455 Could not send mouse event to virtual mouse.
10456 </result>
10457
10458 </desc>
10459
10460 <param name="dx" type="long" dir="in">
10461 <desc>
10462 Amount of pixels the mouse should move to the right.
10463 Negative values move the mouse to the left.
10464 </desc>
10465 </param>
10466 <param name="dy" type="long" dir="in">
10467 <desc>
10468 Amount of pixels the mouse should move downwards.
10469 Negative values move the mouse upwards.
10470 </desc>
10471 </param>
10472 <param name="dz" type="long" dir="in">
10473 <desc>
10474 Amount of mouse wheel moves.
10475 Positive values describe clockwise wheel rotations,
10476 negative values describe counterclockwise rotations.
10477 </desc>
10478 </param>
10479 <param name="dw" type="long" dir="in">
10480 <desc>
10481 Amount of horizontal mouse wheel moves.
10482 Positive values describe a movement to the left,
10483 negative values describe a movement to the right.
10484 </desc>
10485 </param>
10486 <param name="buttonState" type="long" dir="in">
10487 <desc>
10488 The current state of mouse buttons. Every bit represents
10489 a mouse button as follows:
10490 <table>
10491 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
10492 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
10493 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
10494 </table>
10495 A value of <tt>1</tt> means the corresponding button is pressed.
10496 otherwise it is released.
10497 </desc>
10498 </param>
10499 </method>
10500
10501 <method name="putMouseEventAbsolute">
10502 <desc>
10503 Positions the mouse pointer using absolute x and y coordinates.
10504 These coordinates are expressed in pixels and
10505 start from <tt>[1,1]</tt> which corresponds to the top left
10506 corner of the virtual display.
10507
10508 <result name="E_ACCESSDENIED">
10509 Console not powered up.
10510 </result>
10511 <result name="VBOX_E_IPRT_ERROR">
10512 Could not send mouse event to virtual mouse.
10513 </result>
10514
10515 <note>
10516 This method will have effect only if absolute mouse
10517 positioning is supported by the guest OS.
10518 </note>
10519
10520 <see><link to="#absoluteSupported"/></see>
10521 </desc>
10522
10523 <param name="x" type="long" dir="in">
10524 <desc>
10525 X coordinate of the pointer in pixels, starting from @c 1.
10526 </desc>
10527 </param>
10528 <param name="y" type="long" dir="in">
10529 <desc>
10530 Y coordinate of the pointer in pixels, starting from @c 1.
10531 </desc>
10532 </param>
10533 <param name="dz" type="long" dir="in">
10534 <desc>
10535 Amount of mouse wheel moves.
10536 Positive values describe clockwise wheel rotations,
10537 negative values describe counterclockwise rotations.
10538 </desc>
10539 </param>
10540 <param name="dw" type="long" dir="in">
10541 <desc>
10542 Amount of horizontal mouse wheel moves.
10543 Positive values describe a movement to the left,
10544 negative values describe a movement to the right.
10545 </desc>
10546 </param>
10547 <param name="buttonState" type="long" dir="in">
10548 <desc>
10549 The current state of mouse buttons. Every bit represents
10550 a mouse button as follows:
10551 <table>
10552 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
10553 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
10554 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
10555 </table>
10556 A value of @c 1 means the corresponding button is pressed.
10557 otherwise it is released.
10558 </desc>
10559 </param>
10560 </method>
10561
10562 <attribute name="eventSource" type="IEventSource" readonly="yes">
10563 <desc>
10564 Event source for mouse events.
10565 </desc>
10566 </attribute>
10567
10568 </interface>
10569
10570 <!--
10571 // IDisplay
10572 /////////////////////////////////////////////////////////////////////////
10573 -->
10574
10575 <enum
10576 name="FramebufferPixelFormat"
10577 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
10578 >
10579 <desc>
10580 Format of the video memory buffer. Constants represented by this enum can
10581 be used to test for particular values of <link
10582 to="IFramebuffer::pixelFormat"/>. See also <link
10583 to="IFramebuffer::requestResize"/>.
10584
10585 See also www.fourcc.org for more information about FOURCC pixel formats.
10586 </desc>
10587
10588 <const name="Opaque" value="0">
10589 <desc>
10590 Unknown buffer format (the user may not assume any particular format of
10591 the buffer).
10592 </desc>
10593 </const>
10594 <const name="FOURCC_RGB" value="0x32424752">
10595 <desc>
10596 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
10597 bit layout).
10598 </desc>
10599 </const>
10600 </enum>
10601
10602 <interface
10603 name="IFramebuffer" extends="$unknown"
10604 uuid="b7ed347a-5765-40a0-ae1c-f543eb4ddeaf"
10605 wsmap="suppress"
10606 >
10607 <attribute name="address" type="octet" mod="ptr" readonly="yes">
10608 <desc>Address of the start byte of the frame buffer.</desc>
10609 </attribute>
10610
10611 <attribute name="width" type="unsigned long" readonly="yes">
10612 <desc>Frame buffer width, in pixels.</desc>
10613 </attribute>
10614
10615 <attribute name="height" type="unsigned long" readonly="yes">
10616 <desc>Frame buffer height, in pixels.</desc>
10617 </attribute>
10618
10619 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
10620 <desc>
10621 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
10622 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
10623 are: 8, 15, 16, 24 and 32.
10624 </desc>
10625 </attribute>
10626
10627 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
10628 <desc>
10629 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
10630 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
10631 size of the scan line must be aligned to 32 bits.
10632 </desc>
10633 </attribute>
10634
10635 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
10636 <desc>
10637 Frame buffer pixel format. It's either one of the values defined by <link
10638 to="FramebufferPixelFormat"/> or a raw FOURCC code.
10639 <note>
10640 This attribute must never return <link
10641 to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
10642 <link to="#address"/> points to must be always known.
10643 </note>
10644 </desc>
10645 </attribute>
10646
10647 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
10648 <desc>
10649 Defines whether this frame buffer uses the virtual video card's memory
10650 buffer (guest VRAM) directly or not. See <link
10651 to="IFramebuffer::requestResize"/> for more information.
10652 </desc>
10653 </attribute>
10654
10655 <attribute name="heightReduction" type="unsigned long" readonly="yes">
10656 <desc>
10657 Hint from the frame buffer about how much of the standard
10658 screen height it wants to use for itself. This information is
10659 exposed to the guest through the VESA BIOS and VMMDev interface
10660 so that it can use it for determining its video mode table. It
10661 is not guaranteed that the guest respects the value.
10662 </desc>
10663 </attribute>
10664
10665 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
10666 <desc>
10667 An alpha-blended overlay which is superposed over the frame buffer.
10668 The initial purpose is to allow the display of icons providing
10669 information about the VM state, including disk activity, in front
10670 ends which do not have other means of doing that. The overlay is
10671 designed to controlled exclusively by IDisplay. It has no locking
10672 of its own, and any changes made to it are not guaranteed to be
10673 visible until the affected portion of IFramebuffer is updated. The
10674 overlay can be created lazily the first time it is requested. This
10675 attribute can also return @c null to signal that the overlay is not
10676 implemented.
10677 </desc>
10678 </attribute>
10679
10680 <attribute name="winId" type="long long" readonly="yes">
10681 <desc>
10682 Platform-dependent identifier of the window where context of this
10683 frame buffer is drawn, or zero if there's no such window.
10684 </desc>
10685 </attribute>
10686
10687 <method name="lock">
10688 <desc>
10689 Locks the frame buffer.
10690 Gets called by the IDisplay object where this frame buffer is
10691 bound to.
10692 </desc>
10693 </method>
10694
10695 <method name="unlock">
10696 <desc>
10697 Unlocks the frame buffer.
10698 Gets called by the IDisplay object where this frame buffer is
10699 bound to.
10700 </desc>
10701 </method>
10702
10703 <method name="notifyUpdate">
10704 <desc>
10705 Informs about an update.
10706 Gets called by the display object where this buffer is
10707 registered.
10708 </desc>
10709 <param name="x" type="unsigned long" dir="in"/>
10710 <param name="y" type="unsigned long" dir="in"/>
10711 <param name="width" type="unsigned long" dir="in"/>
10712 <param name="height" type="unsigned long" dir="in"/>
10713 </method>
10714
10715 <method name="requestResize">
10716 <desc>
10717 Requests a size and pixel format change.
10718
10719 There are two modes of working with the video buffer of the virtual
10720 machine. The <i>indirect</i> mode implies that the IFramebuffer
10721 implementation allocates a memory buffer for the requested display mode
10722 and provides it to the virtual machine. In <i>direct</i> mode, the
10723 IFramebuffer implementation uses the memory buffer allocated and owned
10724 by the virtual machine. This buffer represents the video memory of the
10725 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
10726 usually faster because the implementation gets a raw pointer to the
10727 guest VRAM buffer which it can directly use for visualizing the contents
10728 of the virtual display, as opposed to the indirect mode where the
10729 contents of guest VRAM are copied to the memory buffer provided by
10730 the implementation every time a display update occurs.
10731
10732 It is important to note that the direct mode is really fast only when
10733 the implementation uses the given guest VRAM buffer directly, for
10734 example, by blitting it to the window representing the virtual machine's
10735 display, which saves at least one copy operation comparing to the
10736 indirect mode. However, using the guest VRAM buffer directly is not
10737 always possible: the format and the color depth of this buffer may be
10738 not supported by the target window, or it may be unknown (opaque) as in
10739 case of text or non-linear multi-plane VGA video modes. In this case,
10740 the indirect mode (that is always available) should be used as a
10741 fallback: when the guest VRAM contents are copied to the
10742 implementation-provided memory buffer, color and format conversion is
10743 done automatically by the underlying code.
10744
10745 The @a pixelFormat parameter defines whether the direct mode is
10746 available or not. If @a pixelFormat is <link
10747 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
10748 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
10749 @a bytesPerLine parameters must be ignored and the implementation must use
10750 the indirect mode (where it provides its own buffer in one of the
10751 supported formats). In all other cases, @a pixelFormat together with
10752 @a bitsPerPixel and @a bytesPerLine define the format of the video memory
10753 buffer pointed to by the @a VRAM parameter and the implementation is
10754 free to choose which mode to use. To indicate that this frame buffer uses
10755 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
10756 attribute must return @c true and <link to="#address"/> must
10757 return exactly the same address that is passed in the @a VRAM parameter
10758 of this method; otherwise it is assumed that the indirect strategy is
10759 chosen.
10760
10761 The @a width and @a height parameters represent the size of the
10762 requested display mode in both modes. In case of indirect mode, the
10763 provided memory buffer should be big enough to store data of the given
10764 display mode. In case of direct mode, it is guaranteed that the given
10765 @a VRAM buffer contains enough space to represent the display mode of the
10766 given size. Note that this frame buffer's <link to="#width"/> and <link
10767 to="#height"/> attributes must return exactly the same values as
10768 passed to this method after the resize is completed (see below).
10769
10770 The @a finished output parameter determines if the implementation has
10771 finished resizing the frame buffer or not. If, for some reason, the
10772 resize cannot be finished immediately during this call, @a finished
10773 must be set to @c false, and the implementation must call
10774 <link to="IDisplay::resizeCompleted"/> after it has returned from
10775 this method as soon as possible. If @a finished is @c false, the
10776 machine will not call any frame buffer methods until
10777 <link to="IDisplay::resizeCompleted"/> is called.
10778
10779 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
10780 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
10781 this frame buffer must return exactly the same values as specified in the
10782 parameters of this method, after the resize is completed. If the
10783 indirect mode is chosen, these attributes must return values describing
10784 the format of the implementation's own memory buffer <link
10785 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
10786 value must always correlate with <link to="#pixelFormat"/>. Note that
10787 the <link to="#pixelFormat"/> attribute must never return <link
10788 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
10789
10790 <note>
10791 This method is called by the IDisplay object under the
10792 <link to="#lock"/> provided by this IFramebuffer
10793 implementation. If this method returns @c false in @a finished, then
10794 this lock is not released until
10795 <link to="IDisplay::resizeCompleted"/> is called.
10796 </note>
10797 </desc>
10798 <param name="screenId" type="unsigned long" dir="in">
10799 <desc>
10800 Logical screen number. Must be used in the corresponding call to
10801 <link to="IDisplay::resizeCompleted"/> if this call is made.
10802 </desc>
10803 </param>
10804 <param name="pixelFormat" type="unsigned long" dir="in">
10805 <desc>
10806 Pixel format of the memory buffer pointed to by @a VRAM.
10807 See also <link to="FramebufferPixelFormat"/>.
10808 </desc>
10809 </param>
10810 <param name="VRAM" type="octet" mod="ptr" dir="in">
10811 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
10812 </param>
10813 <param name="bitsPerPixel" type="unsigned long" dir="in">
10814 <desc>Color depth, bits per pixel.</desc>
10815 </param>
10816 <param name="bytesPerLine" type="unsigned long" dir="in">
10817 <desc>Size of one scan line, in bytes.</desc>
10818 </param>
10819 <param name="width" type="unsigned long" dir="in">
10820 <desc>Width of the guest display, in pixels.</desc>
10821 </param>
10822 <param name="height" type="unsigned long" dir="in">
10823 <desc>Height of the guest display, in pixels.</desc>
10824 </param>
10825 <param name="finished" type="boolean" dir="return">
10826 <desc>
10827 Can the VM start using the new frame buffer immediately
10828 after this method returns or it should wait for
10829 <link to="IDisplay::resizeCompleted"/>.
10830 </desc>
10831 </param>
10832 </method>
10833
10834 <method name="videoModeSupported">
10835 <desc>
10836 Returns whether the frame buffer implementation is willing to
10837 support a given video mode. In case it is not able to render
10838 the video mode (or for some reason not willing), it should
10839 return @c false. Usually this method is called when the guest
10840 asks the VMM device whether a given video mode is supported
10841 so the information returned is directly exposed to the guest.
10842 It is important that this method returns very quickly.
10843 </desc>
10844 <param name="width" type="unsigned long" dir="in"/>
10845 <param name="height" type="unsigned long" dir="in"/>
10846 <param name="bpp" type="unsigned long" dir="in"/>
10847 <param name="supported" type="boolean" dir="return"/>
10848 </method>
10849
10850 <method name="getVisibleRegion">
10851 <desc>
10852 Returns the visible region of this frame buffer.
10853
10854 If the @a rectangles parameter is @c null then the value of the
10855 @a count parameter is ignored and the number of elements necessary to
10856 describe the current visible region is returned in @a countCopied.
10857
10858 If @a rectangles is not @c null but @a count is less
10859 than the required number of elements to store region data, the method
10860 will report a failure. If @a count is equal or greater than the
10861 required number of elements, then the actual number of elements copied
10862 to the provided array will be returned in @a countCopied.
10863
10864 <note>
10865 The address of the provided array must be in the process space of
10866 this IFramebuffer object.
10867 </note>
10868 <note>
10869 Method not yet implemented.
10870 </note>
10871 </desc>
10872 <param name="rectangles" type="octet" mod="ptr" dir="in">
10873 <desc>Pointer to the @c RTRECT array to receive region data.</desc>
10874 </param>
10875 <param name="count" type="unsigned long" dir="in">
10876 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
10877 </param>
10878 <param name="countCopied" type="unsigned long" dir="return">
10879 <desc>Number of elements copied to the @a rectangles array.</desc>
10880 </param>
10881 </method>
10882
10883 <method name="setVisibleRegion">
10884 <desc>
10885 Suggests a new visible region to this frame buffer. This region
10886 represents the area of the VM display which is a union of regions of
10887 all top-level windows of the guest operating system running inside the
10888 VM (if the Guest Additions for this system support this
10889 functionality). This information may be used by the frontends to
10890 implement the seamless desktop integration feature.
10891
10892 <note>
10893 The address of the provided array must be in the process space of
10894 this IFramebuffer object.
10895 </note>
10896 <note>
10897 The IFramebuffer implementation must make a copy of the provided
10898 array of rectangles.
10899 </note>
10900 <note>
10901 Method not yet implemented.
10902 </note>
10903 </desc>
10904 <param name="rectangles" type="octet" mod="ptr" dir="in">
10905 <desc>Pointer to the @c RTRECT array.</desc>
10906 </param>
10907 <param name="count" type="unsigned long" dir="in">
10908 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
10909 </param>
10910 </method>
10911
10912 <method name="processVHWACommand">
10913 <desc>
10914 Posts a Video HW Acceleration Command to the frame buffer for processing.
10915 The commands used for 2D video acceleration (DDraw surface creation/destroying, blitting, scaling, color conversion, overlaying, etc.)
10916 are posted from quest to the host to be processed by the host hardware.
10917
10918 <note>
10919 The address of the provided command must be in the process space of
10920 this IFramebuffer object.
10921 </note>
10922 </desc>
10923
10924 <param name="command" type="octet" mod="ptr" dir="in">
10925 <desc>Pointer to VBOXVHWACMD containing the command to execute.</desc>
10926 </param>
10927 </method>
10928
10929 </interface>
10930
10931 <interface
10932 name="IFramebufferOverlay" extends="IFramebuffer"
10933 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
10934 wsmap="suppress"
10935 >
10936 <desc>
10937 The IFramebufferOverlay interface represents an alpha blended overlay
10938 for displaying status icons above an IFramebuffer. It is always created
10939 not visible, so that it must be explicitly shown. It only covers a
10940 portion of the IFramebuffer, determined by its width, height and
10941 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
10942 that order) format, and may be written to directly. Do re-read the
10943 width though, after setting it, as it may be adjusted (increased) to
10944 make it more suitable for the front end.
10945 </desc>
10946 <attribute name="x" type="unsigned long" readonly="yes">
10947 <desc>X position of the overlay, relative to the frame buffer.</desc>
10948 </attribute>
10949
10950 <attribute name="y" type="unsigned long" readonly="yes">
10951 <desc>Y position of the overlay, relative to the frame buffer.</desc>
10952 </attribute>
10953
10954 <attribute name="visible" type="boolean" readonly="no">
10955 <desc>
10956 Whether the overlay is currently visible.
10957 </desc>
10958 </attribute>
10959
10960 <attribute name="alpha" type="unsigned long" readonly="no">
10961 <desc>
10962 The global alpha value for the overlay. This may or may not be
10963 supported by a given front end.
10964 </desc>
10965 </attribute>
10966
10967 <method name="move">
10968 <desc>
10969 Changes the overlay's position relative to the IFramebuffer.
10970 </desc>
10971 <param name="x" type="unsigned long" dir="in"/>
10972 <param name="y" type="unsigned long" dir="in"/>
10973 </method>
10974
10975 </interface>
10976
10977 <interface
10978 name="IDisplay" extends="$unknown"
10979 uuid="09EED313-CD56-4D06-BD56-FAC0F716B5DD"
10980 wsmap="managed"
10981 >
10982 <desc>
10983 The IDisplay interface represents the virtual machine's display.
10984
10985 The object implementing this interface is contained in each
10986 <link to="IConsole::display"/> attribute and represents the visual
10987 output of the virtual machine.
10988
10989 The virtual display supports pluggable output targets represented by the
10990 IFramebuffer interface. Examples of the output target are a window on
10991 the host computer or an RDP session's display on a remote computer.
10992 </desc>
10993 <method name="getScreenResolution">
10994 <desc>Queries display width, height and color depth for given screen.</desc>
10995 <param name="screenId" type="unsigned long" dir="in"/>
10996 <param name="width" type="unsigned long" dir="out"/>
10997 <param name="height" type="unsigned long" dir="out"/>
10998 <param name="bitsPerPixel" type="unsigned long" dir="out"/>
10999 </method>
11000
11001 <method name="setFramebuffer">
11002 <desc>
11003 Sets the framebuffer for given screen.
11004 </desc>
11005 <param name="screenId" type="unsigned long" dir="in"/>
11006 <param name="framebuffer" type="IFramebuffer" dir="in"/>
11007 </method>
11008
11009 <method name="getFramebuffer">
11010 <desc>
11011 Queries the framebuffer for given screen.
11012 </desc>
11013 <param name="screenId" type="unsigned long" dir="in"/>
11014 <param name="framebuffer" type="IFramebuffer" dir="out"/>
11015 <param name="xOrigin" type="long" dir="out"/>
11016 <param name="yOrigin" type="long" dir="out"/>
11017 </method>
11018
11019 <method name="setVideoModeHint">
11020 <desc>
11021 Asks VirtualBox to request the given video mode from
11022 the guest. This is just a hint and it cannot be guaranteed
11023 that the requested resolution will be used. Guest Additions
11024 are required for the request to be seen by guests. The caller
11025 should issue the request and wait for a resolution change and
11026 after a timeout retry.
11027
11028 Specifying @c 0 for either @a width, @a height or @a bitsPerPixel
11029 parameters means that the corresponding values should be taken from the
11030 current video mode (i.e. left unchanged).
11031
11032 If the guest OS supports multi-monitor configuration then the @a display
11033 parameter specifies the number of the guest display to send the hint to:
11034 @c 0 is the primary display, @c 1 is the first secondary and
11035 so on. If the multi-monitor configuration is not supported, @a display
11036 must be @c 0.
11037
11038 <result name="E_INVALIDARG">
11039 The @a display is not associated with any monitor.
11040 </result>
11041
11042 </desc>
11043 <param name="width" type="unsigned long" dir="in"/>
11044 <param name="height" type="unsigned long" dir="in"/>
11045 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
11046 <param name="display" type="unsigned long" dir="in"/>
11047 </method>
11048
11049 <method name="setSeamlessMode">
11050 <desc>
11051 Enables or disables seamless guest display rendering (seamless desktop
11052 integration) mode.
11053 <note>
11054 Calling this method has no effect if <link
11055 to="IGuest::supportsSeamless"/> returns @c false.
11056 </note>
11057 </desc>
11058 <param name="enabled" type="boolean" dir="in"/>
11059 </method>
11060
11061 <method name="takeScreenShot">
11062 <desc>
11063 Takes a screen shot of the requested size and copies it to the
11064 32-bpp buffer allocated by the caller and pointed to by @a address.
11065 A pixel consists of 4 bytes in order: B, G, R, 0.
11066
11067 <note>This API can be used only by the COM/XPCOM C++ API as it
11068 requires pointer support. Use <link to="#takeScreenShotToArray" />
11069 with other language bindings.
11070 </note>
11071
11072 <result name="E_NOTIMPL">
11073 Feature not implemented.
11074 </result>
11075 <result name="VBOX_E_IPRT_ERROR">
11076 Could not take a screenshot.
11077 </result>
11078
11079 </desc>
11080 <param name="screenId" type="unsigned long" dir="in"/>
11081 <param name="address" type="octet" mod="ptr" dir="in"/>
11082 <param name="width" type="unsigned long" dir="in"/>
11083 <param name="height" type="unsigned long" dir="in"/>
11084 </method>
11085
11086 <method name="takeScreenShotToArray">
11087 <desc>
11088 Takes a guest screen shot of the requested size and returns it as
11089 an array of bytes in uncompressed 32-bit RGBA format.
11090 A pixel consists of 4 bytes in order: R, G, B, 0xFF.
11091
11092 This API is slow, but could be the only option to get guest screenshot
11093 for scriptable languages not allowed to manipulate with addresses
11094 directly.
11095
11096 <result name="E_NOTIMPL">
11097 Feature not implemented.
11098 </result>
11099 <result name="VBOX_E_IPRT_ERROR">
11100 Could not take a screenshot.
11101 </result>
11102 </desc>
11103 <param name="screenId" type="unsigned long" dir="in">
11104 <desc>
11105 Monitor to take screenshot from.
11106 </desc>
11107 </param>
11108 <param name="width" type="unsigned long" dir="in">
11109 <desc>
11110 Desired image width.
11111 </desc>
11112 </param>
11113 <param name="height" type="unsigned long" dir="in">
11114 <desc>
11115 Desired image height.
11116 </desc>
11117 </param>
11118 <param name="screenData" type="octet" dir="return" safearray="yes">
11119 <desc>
11120 Array with resulting screen data.
11121 </desc>
11122 </param>
11123 </method>
11124
11125 <method name="takeScreenShotPNGToArray">
11126 <desc>
11127 Takes a guest screen shot of the requested size and returns it as
11128 PNG image in array.
11129
11130 <result name="E_NOTIMPL">
11131 Feature not implemented.
11132 </result>
11133 <result name="VBOX_E_IPRT_ERROR">
11134 Could not take a screenshot.
11135 </result>
11136 </desc>
11137 <param name="screenId" type="unsigned long" dir="in">
11138 <desc>
11139 Monitor to take the screenshot from.
11140 </desc>
11141 </param>
11142 <param name="width" type="unsigned long" dir="in">
11143 <desc>
11144 Desired image width.
11145 </desc>
11146 </param>
11147 <param name="height" type="unsigned long" dir="in">
11148 <desc>
11149 Desired image height.
11150 </desc>
11151 </param>
11152 <param name="screenData" type="octet" dir="return" safearray="yes">
11153 <desc>
11154 Array with resulting screen data.
11155 </desc>
11156 </param>
11157 </method>
11158
11159 <method name="drawToScreen">
11160 <desc>
11161 Draws a 32-bpp image of the specified size from the given buffer
11162 to the given point on the VM display.
11163
11164 <result name="E_NOTIMPL">
11165 Feature not implemented.
11166 </result>
11167 <result name="VBOX_E_IPRT_ERROR">
11168 Could not draw to screen.
11169 </result>
11170
11171 </desc>
11172 <param name="screenId" type="unsigned long" dir="in">
11173 <desc>
11174 Monitor to take the screenshot from.
11175 </desc>
11176 </param>
11177 <param name="address" type="octet" mod="ptr" dir="in">
11178 <desc>
11179 Address to store the screenshot to
11180 </desc>
11181 </param>
11182 <param name="x" type="unsigned long" dir="in">
11183 <desc>
11184 Relative to the screen top left corner.
11185 </desc>
11186 </param>
11187 <param name="y" type="unsigned long" dir="in">
11188 <desc>
11189 Relative to the screen top left corner.
11190 </desc>
11191 </param>
11192 <param name="width" type="unsigned long" dir="in">
11193 <desc>
11194 Desired image width.
11195 </desc>
11196 </param>
11197 <param name="height" type="unsigned long" dir="in">
11198 <desc>
11199 Desired image height.
11200 </desc>
11201 </param>
11202 </method>
11203
11204 <method name="invalidateAndUpdate">
11205 <desc>
11206 Does a full invalidation of the VM display and instructs the VM
11207 to update it.
11208
11209 <result name="VBOX_E_IPRT_ERROR">
11210 Could not invalidate and update screen.
11211 </result>
11212
11213 </desc>
11214 </method>
11215
11216 <method name="resizeCompleted">
11217 <desc>
11218 Signals that a framebuffer has completed the resize operation.
11219
11220 <result name="VBOX_E_NOT_SUPPORTED">
11221 Operation only valid for external frame buffers.
11222 </result>
11223
11224 </desc>
11225 <param name="screenId" type="unsigned long" dir="in"/>
11226 </method>
11227
11228 <method name="completeVHWACommand">
11229 <desc>
11230 Signals that the Video HW Acceleration command has completed.
11231 </desc>
11232
11233 <param name="command" type="octet" mod="ptr" dir="in">
11234 <desc>Pointer to VBOXVHWACMD containing the completed command.</desc>
11235 </param>
11236 </method>
11237
11238 </interface>
11239
11240 <!--
11241 // INetworkAdapter
11242 /////////////////////////////////////////////////////////////////////////
11243 -->
11244
11245 <enum
11246 name="NetworkAttachmentType"
11247 uuid="44bce1ee-99f7-4e8e-89fc-80597fd9eeaf"
11248 >
11249 <desc>
11250 Network attachment type.
11251 </desc>
11252
11253 <const name="Null" value="0">
11254 <desc>Null value, also means "not attached".</desc>
11255 </const>
11256 <const name="NAT" value="1"/>
11257 <const name="Bridged" value="2"/>
11258 <const name="Internal" value="3"/>
11259 <const name="HostOnly" value="4"/>
11260 <const name="VDE" value="5"/>
11261 </enum>
11262
11263 <enum
11264 name="NetworkAdapterType"
11265 uuid="3c2281e4-d952-4e87-8c7d-24379cb6a81c"
11266 >
11267 <desc>
11268 Network adapter type.
11269 </desc>
11270
11271 <const name="Null" value="0">
11272 <desc>Null value (never used by the API).</desc>
11273 </const>
11274 <const name="Am79C970A" value="1">
11275 <desc>AMD PCNet-PCI II network card (Am79C970A).</desc>
11276 </const>
11277 <const name="Am79C973" value="2">
11278 <desc>AMD PCNet-FAST III network card (Am79C973).</desc>
11279 </const>
11280 <const name="I82540EM" value="3">
11281 <desc>Intel PRO/1000 MT Desktop network card (82540EM).</desc>
11282 </const>
11283 <const name="I82543GC" value="4">
11284 <desc>Intel PRO/1000 T Server network card (82543GC).</desc>
11285 </const>
11286 <const name="I82545EM" value="5">
11287 <desc>Intel PRO/1000 MT Server network card (82545EM).</desc>
11288 </const>
11289 <const name="Virtio" value="6">
11290 <desc>Virtio network device.</desc>
11291 </const>
11292 </enum>
11293
11294 <interface
11295 name="INetworkAdapter" extends="$unknown"
11296 uuid="9bf58a46-c3f7-4f31-80fa-dde9a5dc0b7b"
11297 wsmap="managed"
11298 >
11299 <desc>
11300 Represents a virtual network adapter that is attached to a virtual machine.
11301 Each virtual machine has a fixed number of network adapter slots with one
11302 instance of this attached to each of them. Call
11303 <link to="IMachine::getNetworkAdapter" /> to get the network adapter that
11304 is attached to a given slot in a given machine.
11305
11306 Each network adapter can be in one of five attachment modes, which are
11307 represented by the <link to="NetworkAttachmentType" /> enumeration;
11308 see the <link to="#attachmentType" /> attribute.
11309 </desc>
11310
11311 <attribute name="adapterType" type="NetworkAdapterType">
11312 <desc>
11313 Type of the virtual network adapter. Depending on this value,
11314 VirtualBox will provide a different virtual network hardware
11315 to the guest.
11316 </desc>
11317 </attribute>
11318
11319 <attribute name="slot" type="unsigned long" readonly="yes">
11320 <desc>
11321 Slot number this adapter is plugged into. Corresponds to
11322 the value you pass to <link to="IMachine::getNetworkAdapter"/>
11323 to obtain this instance.
11324 </desc>
11325 </attribute>
11326
11327 <attribute name="enabled" type="boolean">
11328 <desc>
11329 Flag whether the network adapter is present in the
11330 guest system. If disabled, the virtual guest hardware will
11331 not contain this network adapter. Can only be changed when
11332 the VM is not running.
11333 </desc>
11334 </attribute>
11335
11336 <attribute name="MACAddress" type="wstring">
11337 <desc>
11338 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
11339 it to @c null or an empty string, VirtualBox will generate a unique MAC address.
11340 </desc>
11341 </attribute>
11342
11343 <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
11344
11345 <attribute name="hostInterface" type="wstring">
11346 <desc>
11347 Name of the host network interface the VM is attached to.
11348 </desc>
11349 </attribute>
11350
11351 <attribute name="internalNetwork" type="wstring">
11352 <desc>
11353 Name of the internal network the VM is attached to.
11354 </desc>
11355 </attribute>
11356
11357 <attribute name="NATNetwork" type="wstring">
11358 <desc>
11359 Name of the NAT network the VM is attached to.
11360 </desc>
11361 </attribute>
11362
11363 <attribute name="VDENetwork" type="wstring">
11364 <desc>
11365 Name of the VDE switch the VM is attached to.
11366 </desc>
11367 </attribute>
11368
11369 <attribute name="cableConnected" type="boolean">
11370 <desc>
11371 Flag whether the adapter reports the cable as connected or not.
11372 It can be used to report offline situations to a VM.
11373 </desc>
11374 </attribute>
11375
11376 <attribute name="lineSpeed" type="unsigned long">
11377 <desc>
11378 Line speed reported by custom drivers, in units of 1 kbps.
11379 </desc>
11380 </attribute>
11381
11382 <attribute name="traceEnabled" type="boolean">
11383 <desc>
11384 Flag whether network traffic from/to the network card should be traced.
11385 Can only be toggled when the VM is turned off.
11386 </desc>
11387 </attribute>
11388
11389 <attribute name="traceFile" type="wstring">
11390 <desc>
11391 Filename where a network trace will be stored. If not set, VBox-pid.pcap
11392 will be used.
11393 </desc>
11394 </attribute>
11395
11396 <attribute name="natDriver" type="INATEngine" readonly="yes">
11397 <desc>
11398 Points to the NAT engine which handles the network address translation
11399 for this interface. This is active only when the interface actually uses
11400 NAT (see <link to="#attachToNAT" />).
11401 </desc>
11402 </attribute>
11403
11404 <attribute name="bootPriority" type="unsigned long">
11405 <desc>
11406 Network boot priority of the adapter. Priority 1 is highest. If not set,
11407 the priority is considered to be at the lowest possible setting.
11408 </desc>
11409 </attribute>
11410
11411 <attribute name="bandwidthLimit" type="unsigned long">
11412 <desc>
11413 Maximum throughput allowed for this network adapter, in units of 1 mbps.
11414 A zero value means uncapped/unlimited.
11415 </desc>
11416 </attribute>
11417
11418 <method name="attachToNAT">
11419 <desc>
11420 Attach the network adapter to the Network Address Translation (NAT) interface.
11421 </desc>
11422 </method>
11423
11424 <method name="attachToBridgedInterface">
11425 <desc>
11426 Attach the network adapter to a bridged host interface.
11427 </desc>
11428 </method>
11429
11430 <method name="attachToInternalNetwork">
11431 <desc>
11432 Attach the network adapter to an internal network.
11433 </desc>
11434 </method>
11435
11436 <method name="attachToHostOnlyInterface">
11437 <desc>
11438 Attach the network adapter to the host-only network.
11439 </desc>
11440 </method>
11441
11442 <method name="attachToVDE">
11443 <desc>
11444 Attach the network adapter to a VDE network.
11445 </desc>
11446 </method>
11447
11448 <method name="detach">
11449 <desc>
11450 Detach the network adapter
11451 </desc>
11452 </method>
11453 </interface>
11454
11455
11456 <!--
11457 // ISerialPort
11458 /////////////////////////////////////////////////////////////////////////
11459 -->
11460
11461 <enum
11462 name="PortMode"
11463 uuid="533b5fe3-0185-4197-86a7-17e37dd39d76"
11464 >
11465 <desc>
11466 The PortMode enumeration represents possible communication modes for
11467 the virtual serial port device.
11468 </desc>
11469
11470 <const name="Disconnected" value="0">
11471 <desc>Virtual device is not attached to any real host device.</desc>
11472 </const>
11473 <const name="HostPipe" value="1">
11474 <desc>Virtual device is attached to a host pipe.</desc>
11475 </const>
11476 <const name="HostDevice" value="2">
11477 <desc>Virtual device is attached to a host device.</desc>
11478 </const>
11479 <const name="RawFile" value="3">
11480 <desc>Virtual device is attached to a raw file.</desc>
11481 </const>
11482 </enum>
11483
11484 <interface
11485 name="ISerialPort" extends="$unknown"
11486 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
11487 wsmap="managed"
11488 >
11489
11490 <desc>
11491 The ISerialPort interface represents the virtual serial port device.
11492
11493 The virtual serial port device acts like an ordinary serial port
11494 inside the virtual machine. This device communicates to the real
11495 serial port hardware in one of two modes: host pipe or host device.
11496
11497 In host pipe mode, the #path attribute specifies the path to the pipe on
11498 the host computer that represents a serial port. The #server attribute
11499 determines if this pipe is created by the virtual machine process at
11500 machine startup or it must already exist before starting machine
11501 execution.
11502
11503 In host device mode, the #path attribute specifies the name of the
11504 serial port device on the host computer.
11505
11506 There is also a third communication mode: the disconnected mode. In this
11507 mode, the guest OS running inside the virtual machine will be able to
11508 detect the serial port, but all port write operations will be discarded
11509 and all port read operations will return no data.
11510
11511 <see>IMachine::getSerialPort</see>
11512 </desc>
11513
11514 <attribute name="slot" type="unsigned long" readonly="yes">
11515 <desc>
11516 Slot number this serial port is plugged into. Corresponds to
11517 the value you pass to <link to="IMachine::getSerialPort"/>
11518 to obtain this instance.
11519 </desc>
11520 </attribute>
11521
11522 <attribute name="enabled" type="boolean">
11523 <desc>
11524 Flag whether the serial port is enabled. If disabled,
11525 the serial port will not be reported to the guest OS.
11526 </desc>
11527 </attribute>
11528
11529 <attribute name="IOBase" type="unsigned long">
11530 <desc>Base I/O address of the serial port.</desc>
11531 </attribute>
11532
11533 <attribute name="IRQ" type="unsigned long">
11534 <desc>IRQ number of the serial port.</desc>
11535 </attribute>
11536
11537 <attribute name="hostMode" type="PortMode">
11538 <desc>
11539 How is this port connected to the host.
11540 <note>
11541 Changing this attribute may fail if the conditions for
11542 <link to="#path"/> are not met.
11543 </note>
11544 </desc>
11545 </attribute>
11546
11547 <attribute name="server" type="boolean">
11548 <desc>
11549 Flag whether this serial port acts as a server (creates a new pipe on
11550 the host) or as a client (uses the existing pipe). This attribute is
11551 used only when <link to="#hostMode"/> is PortMode_HostPipe.
11552 </desc>
11553 </attribute>
11554
11555 <attribute name="path" type="wstring">
11556 <desc>
11557 Path to the serial port's pipe on the host when <link to="ISerialPort::hostMode"/> is
11558 PortMode_HostPipe, or the host serial device name when
11559 <link to="ISerialPort::hostMode"/> is PortMode_HostDevice. For both
11560 cases, setting a @c null or empty string as the attribute's value
11561 is an error. Otherwise, the value of this property is ignored.
11562 </desc>
11563 </attribute>
11564
11565 </interface>
11566
11567 <!--
11568 // IParallelPort
11569 /////////////////////////////////////////////////////////////////////////
11570 -->
11571
11572 <interface
11573 name="IParallelPort" extends="$unknown"
11574 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
11575 wsmap="managed"
11576 >
11577
11578 <desc>
11579 The IParallelPort interface represents the virtual parallel port device.
11580
11581 The virtual parallel port device acts like an ordinary parallel port
11582 inside the virtual machine. This device communicates to the real
11583 parallel port hardware using the name of the parallel device on the host
11584 computer specified in the #path attribute.
11585
11586 Each virtual parallel port device is assigned a base I/O address and an
11587 IRQ number that will be reported to the guest operating system and used
11588 to operate the given parallel port from within the virtual machine.
11589
11590 <see>IMachine::getParallelPort</see>
11591 </desc>
11592
11593 <attribute name="slot" type="unsigned long" readonly="yes">
11594 <desc>
11595 Slot number this parallel port is plugged into. Corresponds to
11596 the value you pass to <link to="IMachine::getParallelPort"/>
11597 to obtain this instance.
11598 </desc>
11599 </attribute>
11600
11601 <attribute name="enabled" type="boolean">
11602 <desc>
11603 Flag whether the parallel port is enabled. If disabled,
11604 the parallel port will not be reported to the guest OS.
11605 </desc>
11606 </attribute>
11607
11608 <attribute name="IOBase" type="unsigned long">
11609 <desc>Base I/O address of the parallel port.</desc>
11610 </attribute>
11611
11612 <attribute name="IRQ" type="unsigned long">
11613 <desc>IRQ number of the parallel port.</desc>
11614 </attribute>
11615
11616 <attribute name="path" type="wstring">
11617 <desc>
11618 Host parallel device name. If this parallel port is enabled, setting a
11619 @c null or an empty string as this attribute's value will result into
11620 an error.
11621 </desc>
11622 </attribute>
11623
11624 </interface>
11625
11626
11627 <!--
11628 // IMachineDebugger
11629 /////////////////////////////////////////////////////////////////////////
11630 -->
11631
11632 <interface
11633 name="IMachineDebugger" extends="$unknown"
11634 uuid="b0b2a2dd-0627-4502-91c2-ddc5e77609e0"
11635 wsmap="suppress"
11636 >
11637 <method name="resetStats">
11638 <desc>
11639 Reset VM statistics.
11640 </desc>
11641 <param name="pattern" type="wstring" dir="in">
11642 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11643 </param>
11644 </method>
11645
11646 <method name="dumpStats">
11647 <desc>
11648 Dumps VM statistics.
11649 </desc>
11650 <param name="pattern" type="wstring" dir="in">
11651 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11652 </param>
11653 </method>
11654
11655 <method name="getStats">
11656 <desc>
11657 Get the VM statistics in a XMLish format.
11658 </desc>
11659 <param name="pattern" type="wstring" dir="in">
11660 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11661 </param>
11662 <param name="withDescriptions" type="boolean" dir="in">
11663 <desc>Whether to include the descriptions.</desc>
11664 </param>
11665 <param name="stats" type="wstring" dir="out">
11666 <desc>The XML document containing the statistics.</desc>
11667 </param>
11668 </method>
11669
11670 <method name="injectNMI">
11671 <desc>
11672 Inject an NMI into a running VT-x/AMD-V VM.
11673 </desc>
11674 </method>
11675
11676 <attribute name="singlestep" type="boolean">
11677 <desc>Switch for enabling singlestepping.</desc>
11678 </attribute>
11679
11680 <attribute name="recompileUser" type="boolean">
11681 <desc>Switch for forcing code recompilation for user mode code.</desc>
11682 </attribute>
11683
11684 <attribute name="recompileSupervisor" type="boolean">
11685 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
11686 </attribute>
11687
11688 <attribute name="PATMEnabled" type="boolean">
11689 <desc>Switch for enabling and disabling the PATM component.</desc>
11690 </attribute>
11691
11692 <attribute name="CSAMEnabled" type="boolean">
11693 <desc>Switch for enabling and disabling the CSAM component.</desc>
11694 </attribute>
11695
11696 <attribute name="logEnabled" type="boolean">
11697 <desc>Switch for enabling and disabling logging.</desc>
11698 </attribute>
11699
11700 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
11701 <desc>
11702 Flag indicating whether the VM is currently making use of CPU hardware
11703 virtualization extensions.
11704 </desc>
11705 </attribute>
11706
11707 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
11708 <desc>
11709 Flag indicating whether the VM is currently making use of the nested paging
11710 CPU hardware virtualization extension.
11711 </desc>
11712 </attribute>
11713
11714 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
11715 <desc>
11716 Flag indicating whether the VM is currently making use of the VPID
11717 VT-x extension.
11718 </desc>
11719 </attribute>
11720
11721 <attribute name="PAEEnabled" type="boolean" readonly="yes">
11722 <desc>
11723 Flag indicating whether the VM is currently making use of the Physical
11724 Address Extension CPU feature.
11725 </desc>
11726 </attribute>
11727
11728 <attribute name="virtualTimeRate" type="unsigned long">
11729 <desc>
11730 The rate at which the virtual time runs expressed as a percentage.
11731 The accepted range is 2% to 20000%.
11732 </desc>
11733 </attribute>
11734
11735 <!-- @todo method for setting log flags, groups and destination! -->
11736
11737 <attribute name="VM" type="long long" readonly="yes">
11738 <desc>
11739 Gets the VM handle. This is only for internal use while
11740 we carve the details of this interface.
11741 </desc>
11742 </attribute>
11743
11744 </interface>
11745
11746 <!--
11747 // IUSBController
11748 /////////////////////////////////////////////////////////////////////////
11749 -->
11750
11751 <interface
11752 name="IUSBController" extends="$unknown"
11753 uuid="6fdcccc5-abd3-4fec-9387-2ad3914fc4a8"
11754 wsmap="managed"
11755 >
11756 <attribute name="enabled" type="boolean">
11757 <desc>
11758 Flag whether the USB controller is present in the
11759 guest system. If disabled, the virtual guest hardware will
11760 not contain any USB controller. Can only be changed when
11761 the VM is powered off.
11762 </desc>
11763 </attribute>
11764
11765 <attribute name="enabledEhci" type="boolean">
11766 <desc>
11767 Flag whether the USB EHCI controller is present in the
11768 guest system. If disabled, the virtual guest hardware will
11769 not contain a USB EHCI controller. Can only be changed when
11770 the VM is powered off.
11771 </desc>
11772 </attribute>
11773
11774 <attribute name="proxyAvailable" type="boolean" readonly="yes">
11775 <desc>
11776 Flag whether there is an USB proxy available.
11777 </desc>
11778 </attribute>
11779
11780 <attribute name="USBStandard" type="unsigned short" readonly="yes">
11781 <desc>
11782 USB standard version which the controller implements.
11783 This is a BCD which means that the major version is in the
11784 high byte and minor version is in the low byte.
11785 </desc>
11786 </attribute>
11787
11788 <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
11789 <desc>
11790 List of USB device filters associated with the machine.
11791
11792 If the machine is currently running, these filters are activated
11793 every time a new (supported) USB device is attached to the host
11794 computer that was not ignored by global filters
11795 (<link to="IHost::USBDeviceFilters"/>).
11796
11797 These filters are also activated when the machine is powered up.
11798 They are run against a list of all currently available USB
11799 devices (in states
11800 <link to="USBDeviceState_Available"/>,
11801 <link to="USBDeviceState_Busy"/>,
11802 <link to="USBDeviceState_Held"/>) that were not previously
11803 ignored by global filters.
11804
11805 If at least one filter matches the USB device in question, this
11806 device is automatically captured (attached to) the virtual USB
11807 controller of this machine.
11808
11809 <see>IUSBDeviceFilter, ::IUSBController</see>
11810 </desc>
11811 </attribute>
11812
11813 <method name="createDeviceFilter">
11814 <desc>
11815 Creates a new USB device filter. All attributes except
11816 the filter name are set to empty (any match),
11817 <i>active</i> is @c false (the filter is not active).
11818
11819 The created filter can then be added to the list of filters using
11820 <link to="#insertDeviceFilter"/>.
11821
11822 <result name="VBOX_E_INVALID_VM_STATE">
11823 The virtual machine is not mutable.
11824 </result>
11825
11826 <see>#deviceFilters</see>
11827 </desc>
11828 <param name="name" type="wstring" dir="in">
11829 <desc>
11830 Filter name. See <link to="IUSBDeviceFilter::name"/>
11831 for more info.
11832 </desc>
11833 </param>
11834 <param name="filter" type="IUSBDeviceFilter" dir="return">
11835 <desc>Created filter object.</desc>
11836 </param>
11837 </method>
11838
11839 <method name="insertDeviceFilter">
11840 <desc>
11841 Inserts the given USB device to the specified position
11842 in the list of filters.
11843
11844 Positions are numbered starting from <tt>0</tt>. If the specified
11845 position is equal to or greater than the number of elements in
11846 the list, the filter is added to the end of the collection.
11847
11848 <note>
11849 Duplicates are not allowed, so an attempt to insert a
11850 filter that is already in the collection, will return an
11851 error.
11852 </note>
11853
11854 <result name="VBOX_E_INVALID_VM_STATE">
11855 Virtual machine is not mutable.
11856 </result>
11857 <result name="E_INVALIDARG">
11858 USB device filter not created within this VirtualBox instance.
11859 </result>
11860 <result name="VBOX_E_INVALID_OBJECT_STATE">
11861 USB device filter already in list.
11862 </result>
11863
11864 <see>#deviceFilters</see>
11865 </desc>
11866 <param name="position" type="unsigned long" dir="in">
11867 <desc>Position to insert the filter to.</desc>
11868 </param>
11869 <param name="filter" type="IUSBDeviceFilter" dir="in">
11870 <desc>USB device filter to insert.</desc>
11871 </param>
11872 </method>
11873
11874 <method name="removeDeviceFilter">
11875 <desc>
11876 Removes a USB device filter from the specified position in the
11877 list of filters.
11878
11879 Positions are numbered starting from <tt>0</tt>. Specifying a
11880 position equal to or greater than the number of elements in
11881 the list will produce an error.
11882
11883 <see>#deviceFilters</see>
11884
11885 <result name="VBOX_E_INVALID_VM_STATE">
11886 Virtual machine is not mutable.
11887 </result>
11888 <result name="E_INVALIDARG">
11889 USB device filter list empty or invalid @a position.
11890 </result>
11891
11892 </desc>
11893 <param name="position" type="unsigned long" dir="in">
11894 <desc>Position to remove the filter from.</desc>
11895 </param>
11896 <param name="filter" type="IUSBDeviceFilter" dir="return">
11897 <desc>Removed USB device filter.</desc>
11898 </param>
11899 </method>
11900
11901 </interface>
11902
11903
11904 <!--
11905 // IUSBDevice
11906 /////////////////////////////////////////////////////////////////////////
11907 -->
11908
11909 <interface
11910 name="IUSBDevice" extends="$unknown"
11911 uuid="f8967b0b-4483-400f-92b5-8b675d98a85b"
11912 wsmap="managed"
11913 >
11914 <desc>
11915 The IUSBDevice interface represents a virtual USB device attached to the
11916 virtual machine.
11917
11918 A collection of objects implementing this interface is stored in the
11919 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
11920 attached to a running virtual machine's USB controller.
11921 </desc>
11922
11923 <attribute name="id" type="uuid" mod="string" readonly="yes">
11924 <desc>
11925 Unique USB device ID. This ID is built from #vendorId,
11926 #productId, #revision and #serialNumber.
11927 </desc>
11928 </attribute>
11929
11930 <attribute name="vendorId" type="unsigned short" readonly="yes">
11931 <desc>Vendor ID.</desc>
11932 </attribute>
11933
11934 <attribute name="productId" type="unsigned short" readonly="yes">
11935 <desc>Product ID.</desc>
11936 </attribute>
11937
11938 <attribute name="revision" type="unsigned short" readonly="yes">
11939 <desc>
11940 Product revision number. This is a packed BCD represented as
11941 unsigned short. The high byte is the integer part and the low
11942 byte is the decimal.
11943 </desc>
11944 </attribute>
11945
11946 <attribute name="manufacturer" type="wstring" readonly="yes">
11947 <desc>Manufacturer string.</desc>
11948 </attribute>
11949
11950 <attribute name="product" type="wstring" readonly="yes">
11951 <desc>Product string.</desc>
11952 </attribute>
11953
11954 <attribute name="serialNumber" type="wstring" readonly="yes">
11955 <desc>Serial number string.</desc>
11956 </attribute>
11957
11958 <attribute name="address" type="wstring" readonly="yes">
11959 <desc>Host specific address of the device.</desc>
11960 </attribute>
11961
11962 <attribute name="port" type="unsigned short" readonly="yes">
11963 <desc>
11964 Host USB port number the device is physically
11965 connected to.
11966 </desc>
11967 </attribute>
11968
11969 <attribute name="version" type="unsigned short" readonly="yes">
11970 <desc>
11971 The major USB version of the device - 1 or 2.
11972 </desc>
11973 </attribute>
11974
11975 <attribute name="portVersion" type="unsigned short" readonly="yes">
11976 <desc>
11977 The major USB version of the host USB port the device is
11978 physically connected to - 1 or 2. For devices not connected to
11979 anything this will have the same value as the version attribute.
11980 </desc>
11981 </attribute>
11982
11983 <attribute name="remote" type="boolean" readonly="yes">
11984 <desc>
11985 Whether the device is physically connected to a remote VRDE
11986 client or to a local host machine.
11987 </desc>
11988 </attribute>
11989
11990 </interface>
11991
11992
11993 <!--
11994 // IUSBDeviceFilter
11995 /////////////////////////////////////////////////////////////////////////
11996 -->
11997
11998 <interface
11999 name="IUSBDeviceFilter" extends="$unknown"
12000 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
12001 wsmap="managed"
12002 >
12003 <desc>
12004 The IUSBDeviceFilter interface represents an USB device filter used
12005 to perform actions on a group of USB devices.
12006
12007 This type of filters is used by running virtual machines to
12008 automatically capture selected USB devices once they are physically
12009 attached to the host computer.
12010
12011 A USB device is matched to the given device filter if and only if all
12012 attributes of the device match the corresponding attributes of the
12013 filter (that is, attributes are joined together using the logical AND
12014 operation). On the other hand, all together, filters in the list of
12015 filters carry the semantics of the logical OR operation. So if it is
12016 desirable to create a match like "this vendor id OR this product id",
12017 one needs to create two filters and specify "any match" (see below)
12018 for unused attributes.
12019
12020 All filter attributes used for matching are strings. Each string
12021 is an expression representing a set of values of the corresponding
12022 device attribute, that will match the given filter. Currently, the
12023 following filtering expressions are supported:
12024
12025 <ul>
12026 <li><i>Interval filters</i>. Used to specify valid intervals for
12027 integer device attributes (Vendor ID, Product ID and Revision).
12028 The format of the string is:
12029
12030 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
12031
12032 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
12033 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
12034 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
12035 is omitted before a dash (<tt>-</tt>), the minimum possible integer
12036 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
12037 possible integer is assumed.
12038 </li>
12039 <li><i>Boolean filters</i>. Used to specify acceptable values for
12040 boolean device attributes. The format of the string is:
12041
12042 <tt>true|false|yes|no|0|1</tt>
12043
12044 </li>
12045 <li><i>Exact match</i>. Used to specify a single value for the given
12046 device attribute. Any string that doesn't start with <tt>int:</tt>
12047 represents the exact match. String device attributes are compared to
12048 this string including case of symbols. Integer attributes are first
12049 converted to a string (see individual filter attributes) and then
12050 compared ignoring case.
12051
12052 </li>
12053 <li><i>Any match</i>. Any value of the corresponding device attribute
12054 will match the given filter. An empty or @c null string is
12055 used to construct this type of filtering expressions.
12056
12057 </li>
12058 </ul>
12059
12060 <note>
12061 On the Windows host platform, interval filters are not currently
12062 available. Also all string filter attributes
12063 (<link to="#manufacturer"/>, <link to="#product"/>,
12064 <link to="#serialNumber"/>) are ignored, so they behave as
12065 <i>any match</i> no matter what string expression is specified.
12066 </note>
12067
12068 <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
12069 </desc>
12070
12071 <attribute name="name" type="wstring">
12072 <desc>
12073 Visible name for this filter.
12074 This name is used to visually distinguish one filter from another,
12075 so it can neither be @c null nor an empty string.
12076 </desc>
12077 </attribute>
12078
12079 <attribute name="active" type="boolean">
12080 <desc>Whether this filter active or has been temporarily disabled.</desc>
12081 </attribute>
12082
12083 <attribute name="vendorId" type="wstring">
12084 <desc>
12085 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
12086 The string representation for the <i>exact matching</i>
12087 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
12088 (including leading zeroes).
12089 </desc>
12090 </attribute>
12091
12092 <attribute name="productId" type="wstring">
12093 <desc>
12094 <link to="IUSBDevice::productId">Product ID</link> filter.
12095 The string representation for the <i>exact matching</i>
12096 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
12097 (including leading zeroes).
12098 </desc>
12099 </attribute>
12100
12101 <attribute name="revision" type="wstring">
12102 <desc>
12103 <link to="IUSBDevice::productId">Product revision number</link>
12104 filter. The string representation for the <i>exact matching</i>
12105 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
12106 of the integer part of the revision, and <tt>F</tt> is the
12107 decimal digit of its fractional part (including leading and
12108 trailing zeros).
12109 Note that for interval filters, it's best to use the hexadecimal
12110 form, because the revision is stored as a 16 bit packed BCD value;
12111 so the expression <tt>int:0x0100-0x0199</tt> will match any
12112 revision from <tt>1.0</tt> to <tt>1.99</tt>.
12113 </desc>
12114 </attribute>
12115
12116 <attribute name="manufacturer" type="wstring">
12117 <desc>
12118 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
12119 </desc>
12120 </attribute>
12121
12122 <attribute name="product" type="wstring">
12123 <desc>
12124 <link to="IUSBDevice::product">Product</link> filter.
12125 </desc>
12126 </attribute>
12127
12128 <attribute name="serialNumber" type="wstring">
12129 <desc>
12130 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
12131 </desc>
12132 </attribute>
12133
12134 <attribute name="port" type="wstring">
12135 <desc>
12136 <link to="IUSBDevice::port">Host USB port</link> filter.
12137 </desc>
12138 </attribute>
12139
12140 <attribute name="remote" type="wstring">
12141 <desc>
12142 <link to="IUSBDevice::remote">Remote state</link> filter.
12143 <note>
12144 This filter makes sense only for machine USB filters,
12145 i.e. it is ignored by IHostUSBDeviceFilter objects.
12146 </note>
12147 </desc>
12148 </attribute>
12149
12150 <attribute name="maskedInterfaces" type="unsigned long">
12151 <desc>
12152 This is an advanced option for hiding one or more USB interfaces
12153 from the guest. The value is a bit mask where the bits that are set
12154 means the corresponding USB interface should be hidden, masked off
12155 if you like.
12156 This feature only works on Linux hosts.
12157 </desc>
12158 </attribute>
12159
12160 </interface>
12161
12162
12163 <!--
12164 // IHostUSBDevice
12165 /////////////////////////////////////////////////////////////////////////
12166 -->
12167
12168 <enum
12169 name="USBDeviceState"
12170 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
12171 >
12172 <desc>
12173 USB device state. This enumeration represents all possible states
12174 of the USB device physically attached to the host computer regarding
12175 its state on the host computer and availability to guest computers
12176 (all currently running virtual machines).
12177
12178 Once a supported USB device is attached to the host, global USB
12179 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
12180 either ignore the device, or put it to USBDeviceState_Held state, or do
12181 nothing. Unless the device is ignored by global filters, filters of all
12182 currently running guests (<link to="IUSBController::deviceFilters"/>) are
12183 activated that can put it to USBDeviceState_Captured state.
12184
12185 If the device was ignored by global filters, or didn't match
12186 any filters at all (including guest ones), it is handled by the host
12187 in a normal way. In this case, the device state is determined by
12188 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
12189 or USBDeviceState_Available, depending on the current device usage.
12190
12191 Besides auto-capturing based on filters, the device can be manually
12192 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
12193 state is USBDeviceState_Busy, USBDeviceState_Available or
12194 USBDeviceState_Held.
12195
12196 <note>
12197 Due to differences in USB stack implementations in Linux and Win32,
12198 states USBDeviceState_Busy and USBDeviceState_Unavailable are applicable
12199 only to the Linux version of the product. This also means that (<link
12200 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
12201 device state is USBDeviceState_Held.
12202 </note>
12203
12204 <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
12205 </desc>
12206
12207 <const name="NotSupported" value="0">
12208 <desc>
12209 Not supported by the VirtualBox server, not available to guests.
12210 </desc>
12211 </const>
12212 <const name="Unavailable" value="1">
12213 <desc>
12214 Being used by the host computer exclusively,
12215 not available to guests.
12216 </desc>
12217 </const>
12218 <const name="Busy" value="2">
12219 <desc>
12220 Being used by the host computer, potentially available to guests.
12221 </desc>
12222 </const>
12223 <const name="Available" value="3">
12224 <desc>
12225 Not used by the host computer, available to guests (the host computer
12226 can also start using the device at any time).
12227 </desc>
12228 </const>
12229 <const name="Held" value="4">
12230 <desc>
12231 Held by the VirtualBox server (ignored by the host computer),
12232 available to guests.
12233 </desc>
12234 </const>
12235 <const name="Captured" value="5">
12236 <desc>
12237 Captured by one of the guest computers, not available
12238 to anybody else.
12239 </desc>
12240 </const>
12241 </enum>
12242
12243 <interface
12244 name="IHostUSBDevice" extends="IUSBDevice"
12245 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
12246 wsmap="managed"
12247 >
12248 <desc>
12249 The IHostUSBDevice interface represents a physical USB device attached
12250 to the host computer.
12251
12252 Besides properties inherited from IUSBDevice, this interface adds the
12253 <link to="#state"/> property that holds the current state of the USB
12254 device.
12255
12256 <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
12257 </desc>
12258
12259 <attribute name="state" type="USBDeviceState" readonly="yes">
12260 <desc>
12261 Current state of the device.
12262 </desc>
12263 </attribute>
12264
12265 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
12266
12267 </interface>
12268
12269
12270 <!--
12271 // IHostUSBDeviceFilter
12272 /////////////////////////////////////////////////////////////////////////
12273 -->
12274
12275 <enum
12276 name="USBDeviceFilterAction"
12277 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
12278 >
12279 <desc>
12280 Actions for host USB device filters.
12281 <see>IHostUSBDeviceFilter, USBDeviceState</see>
12282 </desc>
12283
12284 <const name="Null" value="0">
12285 <desc>Null value (never used by the API).</desc>
12286 </const>
12287 <const name="Ignore" value="1">
12288 <desc>Ignore the matched USB device.</desc>
12289 </const>
12290 <const name="Hold" value="2">
12291 <desc>Hold the matched USB device.</desc>
12292 </const>
12293 </enum>
12294
12295 <interface
12296 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
12297 uuid="4cc70246-d74a-400f-8222-3900489c0374"
12298 wsmap="managed"
12299 >
12300 <desc>
12301 The IHostUSBDeviceFilter interface represents a global filter for a
12302 physical USB device used by the host computer. Used indirectly in
12303 <link to="IHost::USBDeviceFilters"/>.
12304
12305 Using filters of this type, the host computer determines the initial
12306 state of the USB device after it is physically attached to the
12307 host's USB controller.
12308
12309 <note>
12310 The <link to="IUSBDeviceFilter::remote"/> attribute is ignored by this type of
12311 filters, because it makes sense only for
12312 <link to="IUSBController::deviceFilters">machine USB filters</link>.
12313 </note>
12314
12315 <see>IHost::USBDeviceFilters</see>
12316 </desc>
12317
12318 <attribute name="action" type="USBDeviceFilterAction">
12319 <desc>
12320 Action performed by the host when an attached USB device
12321 matches this filter.
12322 </desc>
12323 </attribute>
12324
12325 </interface>
12326
12327 <!--
12328 // IAudioAdapter
12329 /////////////////////////////////////////////////////////////////////////
12330 -->
12331
12332 <enum
12333 name="AudioDriverType"
12334 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
12335 >
12336 <desc>
12337 Host audio driver type.
12338 </desc>
12339
12340 <const name="Null" value="0">
12341 <desc>Null value, also means "dummy audio driver".</desc>
12342 </const>
12343 <const name="WinMM" value="1">
12344 <desc>Windows multimedia (Windows hosts only).</desc>
12345 </const>
12346 <const name="OSS" value="2">
12347 <desc>Open Sound System (Linux hosts only).</desc>
12348 </const>
12349 <const name="ALSA" value="3">
12350 <desc>Advanced Linux Sound Architecture (Linux hosts only).</desc>
12351 </const>
12352 <const name="DirectSound" value="4">
12353 <desc>DirectSound (Windows hosts only).</desc>
12354 </const>
12355 <const name="CoreAudio" value="5">
12356 <desc>CoreAudio (Mac hosts only).</desc>
12357 </const>
12358 <const name="MMPM" value="6">
12359 <desc>Reserved for historical reasons.</desc>
12360 </const>
12361 <const name="Pulse" value="7">
12362 <desc>PulseAudio (Linux hosts only).</desc>
12363 </const>
12364 <const name="SolAudio" value="8">
12365 <desc>Solaris audio (Solaris hosts only).</desc>
12366 </const>
12367 </enum>
12368
12369 <enum
12370 name="AudioControllerType"
12371 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
12372 >
12373 <desc>
12374 Virtual audio controller type.
12375 </desc>
12376
12377 <const name="AC97" value="0"/>
12378 <const name="SB16" value="1"/>
12379 <const name="HDA" value="2"/>
12380 </enum>
12381
12382 <interface
12383 name="IAudioAdapter" extends="$unknown"
12384 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
12385 wsmap="managed"
12386 >
12387 <desc>
12388 The IAudioAdapter interface represents the virtual audio adapter of
12389 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
12390 </desc>
12391 <attribute name="enabled" type="boolean">
12392 <desc>
12393 Flag whether the audio adapter is present in the
12394 guest system. If disabled, the virtual guest hardware will
12395 not contain any audio adapter. Can only be changed when
12396 the VM is not running.
12397 </desc>
12398 </attribute>
12399 <attribute name="audioController" type="AudioControllerType">
12400 <desc>
12401 The audio hardware we emulate.
12402 </desc>
12403 </attribute>
12404 <attribute name="audioDriver" type="AudioDriverType">
12405 <desc>
12406 Audio driver the adapter is connected to. This setting
12407 can only be changed when the VM is not running.
12408 </desc>
12409 </attribute>
12410 </interface>
12411
12412 <enum
12413 name="AuthType"
12414 uuid="7eef6ef6-98c2-4dc2-ab35-10d2b292028d"
12415 >
12416 <desc>
12417 VirtualBox authentication type.
12418 </desc>
12419
12420 <const name="Null" value="0">
12421 <desc>Null value, also means "no authentication".</desc>
12422 </const>
12423 <const name="External" value="1"/>
12424 <const name="Guest" value="2"/>
12425 </enum>
12426
12427 <!--
12428 // IVRDEServer
12429 /////////////////////////////////////////////////////////////////////////
12430 -->
12431
12432 <interface
12433 name="IVRDEServer" extends="$unknown"
12434 uuid="468ab3d3-4808-489e-a301-05d60e959fbc"
12435 wsmap="managed"
12436 >
12437 <attribute name="enabled" type="boolean">
12438 <desc>VRDE server status.</desc>
12439 </attribute>
12440
12441 <attribute name="authType" type="AuthType">
12442 <desc>VRDE authentication method.</desc>
12443 </attribute>
12444
12445 <attribute name="authTimeout" type="unsigned long">
12446 <desc>Timeout for guest authentication. Milliseconds.</desc>
12447 </attribute>
12448
12449 <attribute name="allowMultiConnection" type="boolean">
12450 <desc>
12451 Flag whether multiple simultaneous connections to the VM are permitted.
12452 Note that this will be replaced by a more powerful mechanism in the future.
12453 </desc>
12454 </attribute>
12455
12456 <attribute name="reuseSingleConnection" type="boolean">
12457 <desc>
12458 Flag whether the existing connection must be dropped and a new connection
12459 must be established by the VRDE server, when a new client connects in single
12460 connection mode.
12461 </desc>
12462 </attribute>
12463
12464 <attribute name="videoChannel" type="boolean">
12465 <desc>
12466 Flag whether video redirectiron channel is enabled.
12467 </desc>
12468 </attribute>
12469
12470 <attribute name="videoChannelQuality" type="unsigned long">
12471 <desc>
12472 Image quality in percents.
12473 </desc>
12474 </attribute>
12475
12476 <attribute name="VRDEExtPack" type="wstring">
12477 <desc>
12478 The name of Extension Pack providing VRDE for this VM. Overrides
12479 <link to="ISystemProperties::defaultVRDEExtPack"/>.
12480 </desc>
12481 </attribute>
12482
12483 <method name="setVRDEProperty">
12484 <desc>
12485 Sets a VRDE specific property string.
12486
12487 If you pass @c null or empty string as a key @a value, the given @a key
12488 will be deleted.
12489
12490 </desc>
12491 <param name="key" type="wstring" dir="in">
12492 <desc>Name of the key to set.</desc>
12493 </param>
12494 <param name="value" type="wstring" dir="in">
12495 <desc>Value to assign to the key.</desc>
12496 </param>
12497 </method>
12498
12499 <method name="getVRDEProperty">
12500 <desc>
12501 Returns a VRDE specific property string.
12502
12503 If the requested data @a key does not exist, this function will
12504 succeed and return an empty string in the @a value argument.
12505
12506 </desc>
12507 <param name="key" type="wstring" dir="in">
12508 <desc>Name of the key to get.</desc>
12509 </param>
12510 <param name="value" type="wstring" dir="return">
12511 <desc>Value of the requested key.</desc>
12512 </param>
12513 </method>
12514
12515 </interface>
12516
12517
12518 <!--
12519 // ISharedFolder
12520 /////////////////////////////////////////////////////////////////////////
12521 -->
12522
12523 <interface
12524 name="ISharedFolder" extends="$unknown"
12525 uuid="8388da11-b559-4574-a5b7-2bd7acd5cef8"
12526 wsmap="struct"
12527 >
12528 <desc>
12529 The ISharedFolder interface represents a folder in the host computer's
12530 file system accessible from the guest OS running inside a virtual
12531 machine using an associated logical name.
12532
12533 There are three types of shared folders:
12534 <ul>
12535 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
12536 folders available to all virtual machines.</li>
12537 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
12538 VM-specific shared folders available to the given virtual machine at
12539 startup.</li>
12540 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
12541 VM-specific shared folders created in the session context (for
12542 example, when the virtual machine is running) and automatically
12543 discarded when the session is closed (the VM is powered off).</li>
12544 </ul>
12545
12546 Logical names of shared folders must be unique within the given scope
12547 (global, permanent or transient). However, they do not need to be unique
12548 across scopes. In this case, the definition of the shared folder in a
12549 more specific scope takes precedence over definitions in all other
12550 scopes. The order of precedence is (more specific to more general):
12551 <ol>
12552 <li>Transient definitions</li>
12553 <li>Permanent definitions</li>
12554 <li>Global definitions</li>
12555 </ol>
12556
12557 For example, if MyMachine has a shared folder named
12558 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
12559 transient shared folder named <tt>C_DRIVE</tt> (that points
12560 to <tt>C:\\\\WINDOWS</tt>) will change the definition
12561 of <tt>C_DRIVE</tt> in the guest OS so
12562 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
12563 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
12564 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
12565 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
12566 to <tt>C:\\</tt> if it still exists.
12567
12568 Note that permanent and transient shared folders of different machines
12569 are in different name spaces, so they don't overlap and don't need to
12570 have unique logical names.
12571
12572 <note>
12573 Global shared folders are not implemented in the current version of the
12574 product.
12575 </note>
12576 </desc>
12577
12578 <attribute name="name" type="wstring" readonly="yes">
12579 <desc>Logical name of the shared folder.</desc>
12580 </attribute>
12581
12582 <attribute name="hostPath" type="wstring" readonly="yes">
12583 <desc>Full path to the shared folder in the host file system.</desc>
12584 </attribute>
12585
12586 <attribute name="accessible" type="boolean" readonly="yes">
12587 <desc>
12588 Whether the folder defined by the host path is currently
12589 accessible or not.
12590 For example, the folder can be inaccessible if it is placed
12591 on the network share that is not available by the time
12592 this property is read.
12593 </desc>
12594 </attribute>
12595
12596 <attribute name="writable" type="boolean" readonly="yes">
12597 <desc>
12598 Whether the folder defined by the host path is writable or
12599 not.
12600 </desc>
12601 </attribute>
12602
12603 <attribute name="autoMount" type="boolean" readonly="yes">
12604 <desc>
12605 Whether the folder gets automatically mounted by the guest or not.
12606 </desc>
12607 </attribute>
12608
12609 <attribute name="lastAccessError" type="wstring" readonly="yes">
12610 <desc>
12611 Text message that represents the result of the last accessibility
12612 check.
12613
12614 Accessibility checks are performed each time the <link to="#accessible"/>
12615 attribute is read. An empty string is returned if the last
12616 accessibility check was successful. A non-empty string indicates a
12617 failure and should normally describe a reason of the failure (for
12618 example, a file read error).
12619 </desc>
12620 </attribute>
12621
12622 </interface>
12623
12624 <!--
12625 // ISession
12626 /////////////////////////////////////////////////////////////////////////
12627 -->
12628
12629 <interface
12630 name="IInternalSessionControl" extends="$unknown"
12631 uuid="06ef98a7-f7c0-45ba-bf99-9aca7a4d5530"
12632 internal="yes"
12633 wsmap="suppress"
12634 >
12635 <method name="getPID">
12636 <desc>PID of the process that has created this Session object.
12637 </desc>
12638 <param name="pid" type="unsigned long" dir="return"/>
12639 </method>
12640
12641 <method name="getRemoteConsole">
12642 <desc>
12643 Returns the console object suitable for remote control.
12644
12645 <result name="VBOX_E_INVALID_VM_STATE">
12646 Session state prevents operation.
12647 </result>
12648 <result name="VBOX_E_INVALID_OBJECT_STATE">
12649 Session type prevents operation.
12650 </result>
12651
12652 </desc>
12653 <param name="console" type="IConsole" dir="return"/>
12654 </method>
12655
12656 <method name="assignMachine">
12657 <desc>
12658 Assigns the machine object associated with this direct-type
12659 session or informs the session that it will be a remote one
12660 (if @a machine == @c null).
12661
12662 <result name="VBOX_E_INVALID_VM_STATE">
12663 Session state prevents operation.
12664 </result>
12665 <result name="VBOX_E_INVALID_OBJECT_STATE">
12666 Session type prevents operation.
12667 </result>
12668
12669 </desc>
12670 <param name="machine" type="IMachine" dir="in"/>
12671 </method>
12672
12673 <method name="assignRemoteMachine">
12674 <desc>
12675 Assigns the machine and the (remote) console object associated with
12676 this remote-type session.
12677
12678 <result name="VBOX_E_INVALID_VM_STATE">
12679 Session state prevents operation.
12680 </result>
12681
12682 </desc>
12683 <param name="machine" type="IMachine" dir="in"/>
12684 <param name="console" type="IConsole" dir="in"/>
12685 </method>
12686
12687 <method name="updateMachineState">
12688 <desc>
12689 Updates the machine state in the VM process.
12690 Must be called only in certain cases
12691 (see the method implementation).
12692
12693 <result name="VBOX_E_INVALID_VM_STATE">
12694 Session state prevents operation.
12695 </result>
12696 <result name="VBOX_E_INVALID_OBJECT_STATE">
12697 Session type prevents operation.
12698 </result>
12699
12700 </desc>
12701 <param name="aMachineState" type="MachineState" dir="in"/>
12702 </method>
12703
12704 <method name="uninitialize">
12705 <desc>
12706 Uninitializes (closes) this session. Used by VirtualBox to close
12707 the corresponding remote session when the direct session dies
12708 or gets closed.
12709
12710 <result name="VBOX_E_INVALID_VM_STATE">
12711 Session state prevents operation.
12712 </result>
12713
12714 </desc>
12715 </method>
12716
12717 <method name="onNetworkAdapterChange">
12718 <desc>
12719 Triggered when settings of a network adapter of the
12720 associated virtual machine have changed.
12721
12722 <result name="VBOX_E_INVALID_VM_STATE">
12723 Session state prevents operation.
12724 </result>
12725 <result name="VBOX_E_INVALID_OBJECT_STATE">
12726 Session type prevents operation.
12727 </result>
12728
12729 </desc>
12730 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
12731 <param name="changeAdapter" type="boolean" dir="in"/>
12732 </method>
12733
12734 <method name="onSerialPortChange">
12735 <desc>
12736 Triggered when settings of a serial port of the
12737 associated virtual machine have changed.
12738
12739 <result name="VBOX_E_INVALID_VM_STATE">
12740 Session state prevents operation.
12741 </result>
12742 <result name="VBOX_E_INVALID_OBJECT_STATE">
12743 Session type prevents operation.
12744 </result>
12745
12746 </desc>
12747 <param name="serialPort" type="ISerialPort" dir="in"/>
12748 </method>
12749
12750 <method name="onParallelPortChange">
12751 <desc>
12752 Triggered when settings of a parallel port of the
12753 associated virtual machine have changed.
12754
12755 <result name="VBOX_E_INVALID_VM_STATE">
12756 Session state prevents operation.
12757 </result>
12758 <result name="VBOX_E_INVALID_OBJECT_STATE">
12759 Session type prevents operation.
12760 </result>
12761
12762 </desc>
12763 <param name="parallelPort" type="IParallelPort" dir="in"/>
12764 </method>
12765
12766 <method name="onStorageControllerChange">
12767 <desc>
12768 Triggered when settings of a storage controller of the
12769 associated virtual machine have changed.
12770
12771 <result name="VBOX_E_INVALID_VM_STATE">
12772 Session state prevents operation.
12773 </result>
12774 <result name="VBOX_E_INVALID_OBJECT_STATE">
12775 Session type prevents operation.
12776 </result>
12777
12778 </desc>
12779 </method>
12780
12781 <method name="onMediumChange">
12782 <desc>
12783 Triggered when attached media of the
12784 associated virtual machine have changed.
12785
12786 <result name="VBOX_E_INVALID_VM_STATE">
12787 Session state prevents operation.
12788 </result>
12789 <result name="VBOX_E_INVALID_OBJECT_STATE">
12790 Session type prevents operation.
12791 </result>
12792
12793 </desc>
12794
12795 <param name="mediumAttachment" type="IMediumAttachment" dir="in"/>
12796 <param name="force" type="boolean" dir="in"/>
12797 </method>
12798
12799 <method name="onCPUChange">
12800 <desc>
12801 Notification when a CPU changes.
12802 </desc>
12803 <param name="cpu" type="unsigned long" dir="in">
12804 <desc>The CPU which changed</desc>
12805 </param>
12806 <param name="add" type="boolean" dir="in">
12807 <desc>Flag whether the CPU was added or removed</desc>
12808 </param>
12809 </method>
12810
12811 <method name="onCPUExecutionCapChange">
12812 <desc>
12813 Notification when the CPU execution cap changes.
12814 </desc>
12815 <param name="executionCap" type="unsigned long" dir="in">
12816 <desc>The new CPU execution cap value. (1-100)</desc>
12817 </param>
12818 </method>
12819
12820 <method name="onVRDEServerChange">
12821 <desc>
12822 Triggered when settings of the VRDE server object of the
12823 associated virtual machine have changed.
12824
12825 <result name="VBOX_E_INVALID_VM_STATE">
12826 Session state prevents operation.
12827 </result>
12828 <result name="VBOX_E_INVALID_OBJECT_STATE">
12829 Session type prevents operation.
12830 </result>
12831
12832 </desc>
12833 <param name="restart" type="boolean" dir="in">
12834 <desc>Flag whether the server must be restarted</desc>
12835 </param>
12836 </method>
12837
12838 <method name="onUSBControllerChange">
12839 <desc>
12840 Triggered when settings of the USB controller object of the
12841 associated virtual machine have changed.
12842
12843 <result name="VBOX_E_INVALID_VM_STATE">
12844 Session state prevents operation.
12845 </result>
12846 <result name="VBOX_E_INVALID_OBJECT_STATE">
12847 Session type prevents operation.
12848 </result>
12849
12850 </desc>
12851 </method>
12852
12853 <method name="onSharedFolderChange">
12854 <desc>
12855 Triggered when a permanent (global or machine) shared folder has been
12856 created or removed.
12857 <note>
12858 We don't pass shared folder parameters in this notification because
12859 the order in which parallel notifications are delivered is not defined,
12860 therefore it could happen that these parameters were outdated by the
12861 time of processing this notification.
12862 </note>
12863
12864 <result name="VBOX_E_INVALID_VM_STATE">
12865 Session state prevents operation.
12866 </result>
12867 <result name="VBOX_E_INVALID_OBJECT_STATE">
12868 Session type prevents operation.
12869 </result>
12870
12871 </desc>
12872 <param name="global" type="boolean" dir="in"/>
12873 </method>
12874
12875 <method name="onUSBDeviceAttach">
12876 <desc>
12877 Triggered when a request to capture a USB device (as a result
12878 of matched USB filters or direct call to
12879 <link to="IConsole::attachUSBDevice"/>) has completed.
12880 A @c null @a error object means success, otherwise it
12881 describes a failure.
12882
12883 <result name="VBOX_E_INVALID_VM_STATE">
12884 Session state prevents operation.
12885 </result>
12886 <result name="VBOX_E_INVALID_OBJECT_STATE">
12887 Session type prevents operation.
12888 </result>
12889
12890 </desc>
12891 <param name="device" type="IUSBDevice" dir="in"/>
12892 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
12893 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
12894 </method>
12895
12896 <method name="onUSBDeviceDetach">
12897 <desc>
12898 Triggered when a request to release the USB device (as a result
12899 of machine termination or direct call to
12900 <link to="IConsole::detachUSBDevice"/>) has completed.
12901 A @c null @a error object means success, otherwise it
12902 describes a failure.
12903
12904 <result name="VBOX_E_INVALID_VM_STATE">
12905 Session state prevents operation.
12906 </result>
12907 <result name="VBOX_E_INVALID_OBJECT_STATE">
12908 Session type prevents operation.
12909 </result>
12910
12911 </desc>
12912 <param name="id" type="uuid" mod="string" dir="in"/>
12913 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
12914 </method>
12915
12916 <method name="onShowWindow">
12917 <desc>
12918 Called by <link to="IMachine::canShowConsoleWindow"/> and by
12919 <link to="IMachine::showConsoleWindow"/> in order to notify
12920 console listeners
12921 <link to="ICanShowWindowEvent"/>
12922 and <link to="IShowWindowEvent"/>.
12923
12924 <result name="VBOX_E_INVALID_OBJECT_STATE">
12925 Session type prevents operation.
12926 </result>
12927
12928 </desc>
12929 <param name="check" type="boolean" dir="in"/>
12930 <param name="canShow" type="boolean" dir="out"/>
12931 <param name="winId" type="long long" dir="out"/>
12932 </method>
12933
12934 <method name="accessGuestProperty">
12935 <desc>
12936 Called by <link to="IMachine::getGuestProperty"/> and by
12937 <link to="IMachine::setGuestProperty"/> in order to read and
12938 modify guest properties.
12939
12940 <result name="VBOX_E_INVALID_VM_STATE">
12941 Machine session is not open.
12942 </result>
12943 <result name="VBOX_E_INVALID_OBJECT_STATE">
12944 Session type is not direct.
12945 </result>
12946
12947 </desc>
12948 <param name="name" type="wstring" dir="in"/>
12949 <param name="value" type="wstring" dir="in"/>
12950 <param name="flags" type="wstring" dir="in"/>
12951 <param name="isSetter" type="boolean" dir="in"/>
12952 <param name="retValue" type="wstring" dir="out"/>
12953 <param name="retTimestamp" type="long long" dir="out"/>
12954 <param name="retFlags" type="wstring" dir="out"/>
12955 </method>
12956
12957 <method name="enumerateGuestProperties">
12958 <desc>
12959 Return a list of the guest properties matching a set of patterns along
12960 with their values, time stamps and flags.
12961
12962 <result name="VBOX_E_INVALID_VM_STATE">
12963 Machine session is not open.
12964 </result>
12965 <result name="VBOX_E_INVALID_OBJECT_STATE">
12966 Session type is not direct.
12967 </result>
12968
12969 </desc>
12970 <param name="patterns" type="wstring" dir="in">
12971 <desc>
12972 The patterns to match the properties against as a comma-separated
12973 string. If this is empty, all properties currently set will be
12974 returned.
12975 </desc>
12976 </param>
12977 <param name="key" type="wstring" dir="out" safearray="yes">
12978 <desc>
12979 The key names of the properties returned.
12980 </desc>
12981 </param>
12982 <param name="value" type="wstring" dir="out" safearray="yes">
12983 <desc>
12984 The values of the properties returned. The array entries match the
12985 corresponding entries in the @a key array.
12986 </desc>
12987 </param>
12988 <param name="timestamp" type="long long" dir="out" safearray="yes">
12989 <desc>
12990 The time stamps of the properties returned. The array entries match
12991 the corresponding entries in the @a key array.
12992 </desc>
12993 </param>
12994 <param name="flags" type="wstring" dir="out" safearray="yes">
12995 <desc>
12996 The flags of the properties returned. The array entries match the
12997 corresponding entries in the @a key array.
12998 </desc>
12999 </param>
13000 </method>
13001
13002 <method name="onlineMergeMedium">
13003 <desc>
13004 Triggers online merging of a hard disk. Used internally when deleting
13005 a snapshot while a VM referring to the same hard disk chain is running.
13006
13007 <result name="VBOX_E_INVALID_VM_STATE">
13008 Machine session is not open.
13009 </result>
13010 <result name="VBOX_E_INVALID_OBJECT_STATE">
13011 Session type is not direct.
13012 </result>
13013
13014 </desc>
13015 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
13016 <desc>The medium attachment to identify the medium chain.</desc>
13017 </param>
13018 <param name="sourceIdx" type="unsigned long" dir="in">
13019 <desc>The index of the source image in the chain.
13020 Redundant, but drastically reduces IPC.</desc>
13021 </param>
13022 <param name="targetIdx" type="unsigned long" dir="in">
13023 <desc>The index of the target image in the chain.
13024 Redundant, but drastically reduces IPC.</desc>
13025 </param>
13026 <param name="source" type="IMedium" dir="in">
13027 <desc>Merge source medium.</desc>
13028 </param>
13029 <param name="target" type="IMedium" dir="in">
13030 <desc>Merge target medium.</desc>
13031 </param>
13032 <param name="mergeForward" type="boolean" dir="in">
13033 <desc>Merge direction.</desc>
13034 </param>
13035 <param name="parentForTarget" type="IMedium" dir="in">
13036 <desc>For forward merges: new parent for target medium.</desc>
13037 </param>
13038 <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
13039 <desc>For backward merges: list of media which need their parent UUID
13040 updated.</desc>
13041 </param>
13042 <param name="progress" type="IProgress" dir="in">
13043 <desc>
13044 Progress object for this operation.
13045 </desc>
13046 </param>
13047 </method>
13048
13049 </interface>
13050
13051 <interface
13052 name="ISession" extends="$unknown"
13053 uuid="12F4DCDB-12B2-4EC1-B7CD-DDD9F6C5BF4D"
13054 wsmap="managed"
13055 >
13056 <desc>
13057 The ISession interface represents a client process and allows for locking
13058 virtual machines (represented by IMachine objects) to prevent conflicting
13059 changes to the machine.
13060
13061 Any caller wishing to manipulate a virtual machine needs to create a session
13062 object first, which lives in its own process space. Such session objects are
13063 then associated with <link to="IMachine" /> objects living in the VirtualBox
13064 server process to coordinate such changes.
13065
13066 There are two typical scenarios in which sessions are used:
13067
13068 <ul>
13069 <li>To alter machine settings or control a running virtual machine, one
13070 needs to lock a machine for a given session (client process) by calling
13071 <link to="IMachine::lockMachine"/>.
13072
13073 Whereas multiple sessions may control a running virtual machine, only
13074 one process can obtain a write lock on the machine to prevent conflicting
13075 changes. A write lock is also needed if a process wants to actually run a
13076 virtual machine in its own context, such as the VirtualBox GUI or
13077 VBoxHeadless front-ends. They must also lock a machine for their own
13078 sessions before they are allowed to power up the virtual machine.
13079
13080 As a result, no machine settings can be altered while another process is
13081 already using it, either because that process is modifying machine settings
13082 or because the machine is running.
13083 </li>
13084 <li>
13085 To start a VM using one of the existing VirtualBox front-ends (e.g. the
13086 VirtualBox GUI or VBoxHeadless), one would use
13087 <link to="IMachine::launchVMProcess"/>, which also takes a session object
13088 as its first parameter. This session then identifies the caller and lets the
13089 caller control the started machine (for example, pause machine execution or
13090 power it down) as well as be notified about machine execution state changes.
13091 </li>
13092 </ul>
13093
13094 How sessions objects are created in a client process depends on whether you use
13095 the Main API via COM or via the webservice:
13096
13097 <ul>
13098 <li>When using the COM API directly, an object of the Session class from the
13099 VirtualBox type library needs to be created. In regular COM C++ client code,
13100 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
13101 This object will then act as a local session object in further calls to open
13102 a session.
13103 </li>
13104
13105 <li>In the webservice, the session manager (IWebsessionManager) instead creates
13106 a session object automatically whenever <link to="IWebsessionManager::logon" />
13107 is called. A managed object reference to that session object can be retrieved by
13108 calling <link to="IWebsessionManager::getSessionObject" />.
13109 </li>
13110 </ul>
13111 </desc>
13112
13113 <attribute name="state" type="SessionState" readonly="yes">
13114 <desc>Current state of this session.</desc>
13115 </attribute>
13116
13117 <attribute name="type" type="SessionType" readonly="yes">
13118 <desc>
13119 Type of this session. The value of this attribute is valid only
13120 if the session currently has a machine locked (i.e. its
13121 <link to="#state" /> is Locked), otherwise an error will be returned.
13122 </desc>
13123 </attribute>
13124
13125 <attribute name="machine" type="IMachine" readonly="yes">
13126 <desc>Machine object associated with this session.</desc>
13127 </attribute>
13128
13129 <attribute name="console" type="IConsole" readonly="yes">
13130 <desc>Console object associated with this session.</desc>
13131 </attribute>
13132
13133 <method name="unlockMachine">
13134 <desc>
13135 Unlocks a machine that was previously locked for the current session.
13136
13137 Calling this method is required every time a machine has been locked
13138 for a particular session using the <link to="IMachine::launchVMProcess" />
13139 or <link to="IMachine::lockMachine" /> calls. Otherwise the state of
13140 the machine will be set to <link to="MachineState_Aborted" /> on the
13141 server, and changes made to the machine settings will be lost.
13142
13143 Generally, it is recommended to unlock all machines explicitly
13144 before terminating the application (regardless of the reason for
13145 the termination).
13146
13147 <note>
13148 Do not expect the session state (<link to="ISession::state" />
13149 to return to "Unlocked" immediately after you invoke this method,
13150 particularly if you have started a new VM process. The session
13151 state will automatically return to "Unlocked" once the VM is no
13152 longer executing, which can of course take a very long time.
13153 </note>
13154
13155 <result name="E_UNEXPECTED">
13156 Session is not locked.
13157 </result>
13158
13159 </desc>
13160 </method>
13161
13162 </interface>
13163
13164 <!--
13165 // IStorageController
13166 /////////////////////////////////////////////////////////////////////////
13167 -->
13168
13169 <enum
13170 name="StorageBus"
13171 uuid="eee67ab3-668d-4ef5-91e0-7025fe4a0d7a"
13172 >
13173 <desc>
13174 The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy);
13175 see <link to="IStorageController::bus" />.
13176 </desc>
13177 <const name="Null" value="0">
13178 <desc>@c null value. Never used by the API.</desc>
13179 </const>
13180 <const name="IDE" value="1"/>
13181 <const name="SATA" value="2"/>
13182 <const name="SCSI" value="3"/>
13183 <const name="Floppy" value="4"/>
13184 <const name="SAS" value="5"/>
13185 </enum>
13186
13187 <enum
13188 name="StorageControllerType"
13189 uuid="8a412b8a-f43e-4456-bd37-b474f0879a58"
13190 >
13191 <desc>
13192 The exact variant of storage controller hardware presented
13193 to the guest; see <link to="IStorageController::controllerType" />.
13194 </desc>
13195
13196 <const name="Null" value="0">
13197 <desc>@c null value. Never used by the API.</desc>
13198 </const>
13199 <const name="LsiLogic" value="1">
13200 <desc>A SCSI controller of the LsiLogic variant.</desc>
13201 </const>
13202 <const name="BusLogic" value="2">
13203 <desc>A SCSI controller of the BusLogic variant.</desc>
13204 </const>
13205 <const name="IntelAhci" value="3">
13206 <desc>An Intel AHCI SATA controller; this is the only variant for SATA.</desc>
13207 </const>
13208 <const name="PIIX3" value="4">
13209 <desc>An IDE controller of the PIIX3 variant.</desc>
13210 </const>
13211 <const name="PIIX4" value="5">
13212 <desc>An IDE controller of the PIIX4 variant.</desc>
13213 </const>
13214 <const name="ICH6" value="6">
13215 <desc>An IDE controller of the ICH6 variant.</desc>
13216 </const>
13217 <const name="I82078" value="7">
13218 <desc>A floppy disk controller; this is the only variant for floppy drives.</desc>
13219 </const>
13220 <const name="LsiLogicSas" value="8">
13221 <desc>A variant of the LsiLogic controller using SAS.</desc>
13222 </const>
13223 </enum>
13224
13225 <enum
13226 name="ChipsetType"
13227 uuid="8b4096a8-a7c3-4d3b-bbb1-05a0a51ec394"
13228 >
13229 <desc>
13230 Type of emulated chipset (mostly southbridge).
13231 </desc>
13232
13233 <const name="Null" value="0">
13234 <desc>@c null value. Never used by the API.</desc>
13235 </const>
13236 <const name="PIIX3" value="1">
13237 <desc>A PIIX3 (PCI IDE ISA Xcelerator) chipset.</desc>
13238 </const>
13239 <const name="ICH9" value="2">
13240 <desc>A ICH9 (I/O Controller Hub) chipset.</desc>
13241 </const>
13242 </enum>
13243
13244 <interface
13245 name="IStorageController" extends="$unknown"
13246 uuid="a1556333-09b6-46d9-bfb7-fc239b7fbe1e"
13247 wsmap="managed"
13248 >
13249 <desc>
13250 Represents a storage controller that is attached to a virtual machine
13251 (<link to="IMachine" />). Just as drives (hard disks, DVDs, FDs) are
13252 attached to storage controllers in a real computer, virtual drives
13253 (represented by <link to="IMediumAttachment" />) are attached to virtual
13254 storage controllers, represented by this interface.
13255
13256 As opposed to physical hardware, VirtualBox has a very generic concept
13257 of a storage controller, and for purposes of the Main API, all virtual
13258 storage is attached to virtual machines via instances of this interface.
13259 There are five types of such virtual storage controllers: IDE, SCSI, SATA,
13260 SAS and Floppy (see <link to="#bus" />). Depending on which of these four
13261 is used, certain sub-types may be available and can be selected in
13262 <link to="#controllerType" />.
13263
13264 Depending on these settings, the guest operating system might see
13265 significantly different virtual hardware.
13266 </desc>
13267
13268 <attribute name="name" type="wstring" readonly="yes">
13269 <desc>
13270 Name of the storage controller, as originally specified with
13271 <link to="IMachine::addStorageController" />. This then uniquely
13272 identifies this controller with other method calls such as
13273 <link to="IMachine::attachDevice" /> and <link to="IMachine::mountMedium" />.
13274 </desc>
13275 </attribute>
13276
13277 <attribute name="maxDevicesPerPortCount" type="unsigned long" readonly="yes">
13278 <desc>
13279 Maximum number of devices which can be attached to one port.
13280 </desc>
13281 </attribute>
13282
13283 <attribute name="minPortCount" type="unsigned long" readonly="yes">
13284 <desc>
13285 Minimum number of ports that <link to="IStorageController::portCount"/> can be set to.
13286 </desc>
13287 </attribute>
13288
13289 <attribute name="maxPortCount" type="unsigned long" readonly="yes">
13290 <desc>
13291 Maximum number of ports that <link to="IStorageController::portCount"/> can be set to.
13292 </desc>
13293 </attribute>
13294
13295 <attribute name="instance" type="unsigned long">
13296 <desc>
13297 The instance number of the device in the running VM.
13298 </desc>
13299 </attribute>
13300
13301 <attribute name="portCount" type="unsigned long">
13302 <desc>
13303 The number of currently usable ports on the controller.
13304 The minimum and maximum number of ports for one controller are
13305 stored in <link to="IStorageController::minPortCount"/>
13306 and <link to="IStorageController::maxPortCount"/>.
13307 </desc>
13308 </attribute>
13309
13310 <attribute name="bus" type="StorageBus" readonly="yes">
13311 <desc>
13312 The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy).
13313 </desc>
13314 </attribute>
13315
13316 <attribute name="controllerType" type="StorageControllerType">
13317 <desc>
13318 The exact variant of storage controller hardware presented
13319 to the guest.
13320 Depending on this value, VirtualBox will provide a different
13321 virtual storage controller hardware to the guest.
13322 For SATA, SAS and floppy controllers, only one variant is
13323 available, but for IDE and SCSI, there are several.
13324
13325 For SCSI controllers, the default type is LsiLogic.
13326 </desc>
13327 </attribute>
13328
13329 <attribute name="useHostIOCache" type="boolean">
13330 <desc>
13331 If true, the storage controller emulation will use a dedicated I/O thread, enable the host I/O
13332 caches and use synchronous file APIs on the host. This was the only option in the API before
13333 VirtualBox 3.2 and is still the default for IDE controllers.
13334
13335 If false, the host I/O cache will be disabled for image files attached to this storage controller.
13336 Instead, the storage controller emulation will use asynchronous I/O APIs on the host. This makes
13337 it possible to turn off the host I/O caches because the emulation can handle unaligned access to
13338 the file. This should be used on OS X and Linux hosts if a high I/O load is expected or many
13339 virtual machines are running at the same time to prevent I/O cache related hangs.
13340 This option new with the API of VirtualBox 3.2 and is now the default for non-IDE storage controllers.
13341 </desc>
13342 </attribute>
13343
13344 <attribute name="bootable" type="boolean" readonly="yes">
13345 <desc>
13346 Returns whether it is possible to boot from disks attached to this controller.
13347 </desc>
13348 </attribute>
13349
13350 <method name="getIDEEmulationPort">
13351 <desc>
13352 Gets the corresponding port number which is emulated as an IDE device.
13353 Works only with SATA controllers.
13354
13355 <result name="E_INVALIDARG">
13356 The @a devicePosition is not in the range 0 to 3.
13357 </result>
13358 <result name="E_NOTIMPL">
13359 The storage controller type is not SATAIntelAhci.
13360 </result>
13361
13362 </desc>
13363 <param name="devicePosition" type="long" dir="in"/>
13364 <param name="portNumber" type="long" dir="return"/>
13365 </method>
13366
13367 <method name="setIDEEmulationPort">
13368 <desc>
13369 Sets the port number which is emulated as an IDE device.
13370 Works only with SATA controllers.
13371
13372 <result name="E_INVALIDARG">
13373 The @a devicePosition is not in the range 0 to 3 or the
13374 @a portNumber is not in the range 0 to 29.
13375 </result>
13376 <result name="E_NOTIMPL">
13377 The storage controller type is not SATAIntelAhci.
13378 </result>
13379
13380 </desc>
13381 <param name="devicePosition" type="long" dir="in"/>
13382 <param name="portNumber" type="long" dir="in"/>
13383 </method>
13384
13385 </interface>
13386
13387<if target="wsdl">
13388
13389 <!--
13390 // IManagedObjectRef
13391 /////////////////////////////////////////////////////////////////////////
13392 -->
13393
13394 <interface
13395 name="IManagedObjectRef" extends="$unknown"
13396 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
13397 internal="yes"
13398 wsmap="managed"
13399 wscpp="hardcoded"
13400 >
13401 <desc>
13402 Managed object reference.
13403
13404 Only within the webservice, a managed object reference (which is really
13405 an opaque number) allows a webservice client to address an object
13406 that lives in the address space of the webservice server.
13407
13408 Behind each managed object reference, there is a COM object that lives
13409 in the webservice server's address space. The COM object is not freed
13410 until the managed object reference is released, either by an explicit
13411 call to <link to="IManagedObjectRef::release" /> or by logging off from
13412 the webservice (<link to="IWebsessionManager::logoff" />), which releases
13413 all objects created during the webservice session.
13414
13415 Whenever a method call of the VirtualBox API returns a COM object, the
13416 webservice representation of that method will instead return a
13417 managed object reference, which can then be used to invoke methods
13418 on that object.
13419 </desc>
13420
13421 <method name="getInterfaceName">
13422 <desc>
13423 Returns the name of the interface that this managed object represents,
13424 for example, "IMachine", as a string.
13425 </desc>
13426 <param name="return" type="wstring" dir="return"/>
13427 </method>
13428
13429 <method name="release">
13430 <desc>
13431 Releases this managed object reference and frees the resources that
13432 were allocated for it in the webservice server process. After calling
13433 this method, the identifier of the reference can no longer be used.
13434 </desc>
13435 </method>
13436
13437 </interface>
13438
13439 <!--
13440 // IWebsessionManager
13441 /////////////////////////////////////////////////////////////////////////
13442 -->
13443
13444 <interface
13445 name="IWebsessionManager" extends="$unknown"
13446 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
13447 internal="yes"
13448 wsmap="global"
13449 wscpp="hardcoded"
13450 >
13451 <desc>
13452 Websession manager. This provides essential services
13453 to webservice clients.
13454 </desc>
13455 <method name="logon">
13456 <desc>
13457 Logs a new client onto the webservice and returns a managed object reference to
13458 the IVirtualBox instance, which the client can then use as a basis to further
13459 queries, since all calls to the VirtualBox API are based on the IVirtualBox
13460 interface, in one way or the other.
13461 </desc>
13462 <param name="username" type="wstring" dir="in"/>
13463 <param name="password" type="wstring" dir="in"/>
13464 <param name="return" type="IVirtualBox" dir="return"/>
13465 </method>
13466
13467 <method name="getSessionObject">
13468 <desc>
13469 Returns a managed object reference to the internal ISession object that was created
13470 for this web service session when the client logged on.
13471
13472 <see>ISession</see>
13473 </desc>
13474 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
13475 <param name="return" type="ISession" dir="return"/>
13476 </method>
13477
13478 <method name="logoff">
13479 <desc>
13480 Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
13481 and destroys all resources associated with the session (most importantly, all
13482 managed objects created in the server while the session was active).
13483 </desc>
13484 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
13485 </method>
13486
13487 </interface>
13488
13489</if>
13490
13491 <!--
13492 // IPerformanceCollector & friends
13493 /////////////////////////////////////////////////////////////////////////
13494 -->
13495
13496 <interface
13497 name="IPerformanceMetric" extends="$unknown"
13498 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
13499 >
13500 <desc>
13501 The IPerformanceMetric interface represents parameters of the given
13502 performance metric.
13503 </desc>
13504
13505 <attribute name="metricName" type="wstring" readonly="yes">
13506 <desc>
13507 Name of the metric.
13508 </desc>
13509 </attribute>
13510
13511 <attribute name="object" type="$unknown" readonly="yes">
13512 <desc>
13513 Object this metric belongs to.
13514 </desc>
13515 </attribute>
13516
13517 <attribute name="description" type="wstring" readonly="yes">
13518 <desc>
13519 Textual description of the metric.
13520 </desc>
13521 </attribute>
13522
13523 <attribute name="period" type="unsigned long" readonly="yes">
13524 <desc>
13525 Time interval between samples, measured in seconds.
13526 </desc>
13527 </attribute>
13528
13529 <attribute name="count" type="unsigned long" readonly="yes">
13530 <desc>
13531 Number of recent samples retained by the performance collector for this
13532 metric.
13533
13534 When the collected sample count exceeds this number, older samples
13535 are discarded.
13536 </desc>
13537 </attribute>
13538
13539 <attribute name="unit" type="wstring" readonly="yes">
13540 <desc>
13541 Unit of measurement.
13542 </desc>
13543 </attribute>
13544
13545 <attribute name="minimumValue" type="long" readonly="yes">
13546 <desc>
13547 Minimum possible value of this metric.
13548 </desc>
13549 </attribute>
13550
13551 <attribute name="maximumValue" type="long" readonly="yes">
13552 <desc>
13553 Maximum possible value of this metric.
13554 </desc>
13555 </attribute>
13556 </interface>
13557
13558 <interface
13559 name="IPerformanceCollector" extends="$unknown"
13560 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
13561 wsmap="managed"
13562 >
13563 <desc>
13564 The IPerformanceCollector interface represents a service that collects
13565 and stores performance metrics data.
13566
13567 Performance metrics are associated with objects of interfaces like IHost
13568 and IMachine. Each object has a distinct set of performance metrics. The
13569 set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
13570
13571 Metric data is collected at the specified intervals and is retained
13572 internally. The interval and the number of retained samples can be set
13573 with <link to="IPerformanceCollector::setupMetrics" />. Both metric data
13574 and collection settings are not persistent, they are discarded as soon as
13575 VBoxSVC process terminates. Moreover, metric settings and data associated
13576 with a particular VM only exist while VM is running. They disappear as
13577 soon as VM shuts down. It is not possible to set up metrics for machines
13578 that are powered off. One needs to start VM first, then set up metric
13579 collection parameters.
13580
13581 Metrics are organized hierarchically, with each level separated by a
13582 slash (/) character. Generally, the scheme for metric names is like this:
13583
13584 <tt>Category/Metric[/SubMetric][:aggregation]</tt>
13585
13586 "Category/Metric" together form the base metric name. A base metric is
13587 the smallest unit for which a sampling interval and the number of
13588 retained samples can be set. Only base metrics can be enabled and
13589 disabled. All sub-metrics are collected when their base metric is
13590 collected. Collected values for any set of sub-metrics can be queried
13591 with <link to="IPerformanceCollector::queryMetricsData" />.
13592
13593 For example "CPU/Load/User:avg" metric name stands for the "CPU"
13594 category, "Load" metric, "User" submetric, "average" aggregate. An
13595 aggregate function is computed over all retained data. Valid aggregate
13596 functions are:
13597
13598 <ul>
13599 <li>avg -- average</li>
13600 <li>min -- minimum</li>
13601 <li>max -- maximum</li>
13602 </ul>
13603
13604 When setting up metric parameters, querying metric data, enabling or
13605 disabling metrics wildcards can be used in metric names to specify a
13606 subset of metrics. For example, to select all CPU-related metrics
13607 use <tt>CPU/*</tt>, all averages can be queried using <tt>*:avg</tt> and
13608 so on. To query metric values without aggregates <tt>*:</tt> can be used.
13609
13610 The valid names for base metrics are:
13611
13612 <ul>
13613 <li>CPU/Load</li>
13614 <li>CPU/MHz</li>
13615 <li>RAM/Usage</li>
13616 </ul>
13617
13618 The general sequence for collecting and retrieving the metrics is:
13619 <ul>
13620 <li>
13621 Obtain an instance of IPerformanceCollector with
13622 <link to="IVirtualBox::performanceCollector" />
13623 </li>
13624 <li>
13625 Allocate and populate an array with references to objects the metrics
13626 will be collected for. Use references to IHost and IMachine objects.
13627 </li>
13628 <li>
13629 Allocate and populate an array with base metric names the data will
13630 be collected for.
13631 </li>
13632 <li>
13633 Call <link to="IPerformanceCollector::setupMetrics" />. From now on
13634 the metric data will be collected and stored.
13635 </li>
13636 <li>
13637 Wait for the data to get collected.
13638 </li>
13639 <li>
13640 Allocate and populate an array with references to objects the metric
13641 values will be queried for. You can re-use the object array used for
13642 setting base metrics.
13643 </li>
13644 <li>
13645 Allocate and populate an array with metric names the data will be
13646 collected for. Note that metric names differ from base metric names.
13647 </li>
13648 <li>
13649 Call <link to="IPerformanceCollector::queryMetricsData" />. The data
13650 that have been collected so far are returned. Note that the values
13651 are still retained internally and data collection continues.
13652 </li>
13653 </ul>
13654
13655 For an example of usage refer to the following files in VirtualBox SDK:
13656 <ul>
13657 <li>
13658 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
13659 </li>
13660 <li>
13661 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
13662 </li>
13663 </ul>
13664 </desc>
13665
13666 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
13667 <desc>
13668 Array of unique names of metrics.
13669
13670 This array represents all metrics supported by the performance
13671 collector. Individual objects do not necessarily support all of them.
13672 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
13673 list of supported metrics for a particular object.
13674 </desc>
13675 </attribute>
13676
13677 <method name="getMetrics">
13678 <desc>
13679 Returns parameters of specified metrics for a set of objects.
13680 <note>
13681 @c Null metrics array means all metrics. @c Null object array means
13682 all existing objects.
13683 </note>
13684 </desc>
13685 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13686 <desc>
13687 Metric name filter. Currently, only a comma-separated list of metrics
13688 is supported.
13689 </desc>
13690 </param>
13691 <param name="objects" type="$unknown" dir="in" safearray="yes">
13692 <desc>
13693 Set of objects to return metric parameters for.
13694 </desc>
13695 </param>
13696 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
13697 <desc>
13698 Array of returned metric parameters.
13699 </desc>
13700 </param>
13701 </method>
13702
13703 <method name="setupMetrics">
13704 <desc>
13705 Sets parameters of specified base metrics for a set of objects. Returns
13706 an array of <link to="IPerformanceMetric" /> describing the metrics
13707 have been affected.
13708 <note>
13709 @c Null or empty metric name array means all metrics. @c Null or
13710 empty object array means all existing objects. If metric name array
13711 contains a single element and object array contains many, the single
13712 metric name array element is applied to each object array element to
13713 form metric/object pairs.
13714 </note>
13715 </desc>
13716 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13717 <desc>
13718 Metric name filter. Comma-separated list of metrics with wildcard
13719 support.
13720 </desc>
13721 </param>
13722 <param name="objects" type="$unknown" dir="in" safearray="yes">
13723 <desc>
13724 Set of objects to setup metric parameters for.
13725 </desc>
13726 </param>
13727 <param name="period" type="unsigned long" dir="in">
13728 <desc>
13729 Time interval in seconds between two consecutive samples of
13730 performance data.
13731 </desc>
13732 </param>
13733 <param name="count" type="unsigned long" dir="in">
13734 <desc>
13735 Number of samples to retain in performance data history. Older
13736 samples get discarded.
13737 </desc>
13738 </param>
13739 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13740 <desc>
13741 Array of metrics that have been modified by the call to this method.
13742 </desc>
13743 </param>
13744 </method>
13745
13746 <method name="enableMetrics">
13747 <desc>
13748 Turns on collecting specified base metrics. Returns an array of
13749 <link to="IPerformanceMetric" /> describing the metrics have been
13750 affected.
13751 <note>
13752 @c Null or empty metric name array means all metrics. @c Null or
13753 empty object array means all existing objects. If metric name array
13754 contains a single element and object array contains many, the single
13755 metric name array element is applied to each object array element to
13756 form metric/object pairs.
13757 </note>
13758 </desc>
13759 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13760 <desc>
13761 Metric name filter. Comma-separated list of metrics with wildcard
13762 support.
13763 </desc>
13764 </param>
13765 <param name="objects" type="$unknown" dir="in" safearray="yes">
13766 <desc>
13767 Set of objects to enable metrics for.
13768 </desc>
13769 </param>
13770 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13771 <desc>
13772 Array of metrics that have been modified by the call to this method.
13773 </desc>
13774 </param>
13775 </method>
13776
13777 <method name="disableMetrics">
13778 <desc>
13779 Turns off collecting specified base metrics. Returns an array of
13780 <link to="IPerformanceMetric" /> describing the metrics have been
13781 affected.
13782 <note>
13783 @c Null or empty metric name array means all metrics. @c Null or
13784 empty object array means all existing objects. If metric name array
13785 contains a single element and object array contains many, the single
13786 metric name array element is applied to each object array element to
13787 form metric/object pairs.
13788 </note>
13789 </desc>
13790 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13791 <desc>
13792 Metric name filter. Comma-separated list of metrics with wildcard
13793 support.
13794 </desc>
13795 </param>
13796 <param name="objects" type="$unknown" dir="in" safearray="yes">
13797 <desc>
13798 Set of objects to disable metrics for.
13799 </desc>
13800 </param>
13801 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13802 <desc>
13803 Array of metrics that have been modified by the call to this method.
13804 </desc>
13805 </param>
13806 </method>
13807
13808 <method name="queryMetricsData">
13809 <desc>
13810 Queries collected metrics data for a set of objects.
13811
13812 The data itself and related metric information are returned in seven
13813 parallel and one flattened array of arrays. Elements of
13814 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
13815 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
13816 the same index describe one set of values corresponding to a single
13817 metric.
13818
13819 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
13820 start and length of a sub-array is indicated by
13821 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
13822 value for metric <tt>metricNames[i]</tt> is at
13823 <tt>returnData[returnIndices[i]]</tt>.
13824
13825 <note>
13826 @c Null or empty metric name array means all metrics. @c Null or
13827 empty object array means all existing objects. If metric name array
13828 contains a single element and object array contains many, the single
13829 metric name array element is applied to each object array element to
13830 form metric/object pairs.
13831 </note>
13832 <note>
13833 Data collection continues behind the scenes after call to @c
13834 queryMetricsData. The return data can be seen as the snapshot of the
13835 current state at the time of @c queryMetricsData call. The internally
13836 kept metric values are not cleared by the call. This makes possible
13837 querying different subsets of metrics or aggregates with subsequent
13838 calls. If periodic querying is needed it is highly suggested to query
13839 the values with @c interval*count period to avoid confusion. This way
13840 a completely new set of data values will be provided by each query.
13841 </note>
13842 </desc>
13843 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13844 <desc>
13845 Metric name filter. Comma-separated list of metrics with wildcard
13846 support.
13847 </desc>
13848 </param>
13849 <param name="objects" type="$unknown" dir="in" safearray="yes">
13850 <desc>
13851 Set of objects to query metrics for.
13852 </desc>
13853 </param>
13854 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
13855 <desc>
13856 Names of metrics returned in @c returnData.
13857 </desc>
13858 </param>
13859 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
13860 <desc>
13861 Objects associated with metrics returned in @c returnData.
13862 </desc>
13863 </param>
13864 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
13865 <desc>
13866 Units of measurement for each returned metric.
13867 </desc>
13868 </param>
13869 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
13870 <desc>
13871 Divisor that should be applied to return values in order to get
13872 floating point values. For example:
13873 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
13874 will retrieve the floating point value of i-th sample of the first
13875 metric.
13876 </desc>
13877 </param>
13878 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
13879 <desc>
13880 Sequence numbers of the first elements of value sequences of
13881 particular metrics returned in @c returnData. For aggregate metrics
13882 it is the sequence number of the sample the aggregate started
13883 calculation from.
13884 </desc>
13885 </param>
13886 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
13887 <desc>
13888 Indices of the first elements of value sequences of particular
13889 metrics returned in @c returnData.
13890 </desc>
13891 </param>
13892 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
13893 <desc>
13894 Lengths of value sequences of particular metrics.
13895 </desc>
13896 </param>
13897 <param name="returnData" type="long" dir="return" safearray="yes">
13898 <desc>
13899 Flattened array of all metric data containing sequences of values for
13900 each metric.
13901 </desc>
13902 </param>
13903 </method>
13904
13905 </interface>
13906 <enum
13907 name="NATAliasMode"
13908 uuid="67772168-50d9-11df-9669-7fb714ee4fa1">
13909 <desc></desc>
13910 <const name="AliasLog" value="0x1">
13911 <desc></desc>
13912 </const>
13913 <const name="AliasProxyOnly" value="0x02">
13914 <desc></desc>
13915 </const>
13916 <const name="AliasUseSamePorts" value="0x04">
13917 <desc></desc>
13918 </const>
13919 </enum>
13920 <enum
13921 name="NATProtocol"
13922 uuid="e90164be-eb03-11de-94af-fff9b1c1b19f"
13923 >
13924 <desc>Protocol definitions used with NAT port-forwarding rules.</desc>
13925 <const name="UDP" value="0">
13926 <desc>Port-forwarding uses UDP protocol.</desc>
13927 </const>
13928 <const name="TCP" value="1">
13929 <desc>Port-forwarding uses TCP protocol.</desc>
13930 </const>
13931 </enum>
13932
13933 <interface
13934 name="INATEngine" extends="$unknown"
13935 uuid="4b286616-eb03-11de-b0fb-1701eca42246"
13936 wsmap="managed"
13937 >
13938 <desc>Interface for managing a NAT engine which is used with a virtual machine. This
13939 allows for changing NAT behavior such as port-forwarding rules. This interface is
13940 used in the <link to="INetworkAdapter::natDriver" /> attribute.</desc>
13941 <attribute name="network" type="wstring">
13942 <desc>The network attribute of the NAT engine (the same value is used with built-in
13943 DHCP server to fill corresponding fields of DHCP leases).</desc>
13944 </attribute>
13945 <attribute name="hostIP" type="wstring">
13946 <desc>IP of host interface to bind all opened sockets to.
13947 <note>Changing this does not change binding of port forwarding.</note>
13948 </desc>
13949 </attribute>
13950 <attribute name="tftpPrefix" type="wstring">
13951 <desc>TFTP prefix attribute which is used with the built-in DHCP server to fill
13952 the corresponding fields of DHCP leases.</desc>
13953 </attribute>
13954 <attribute name="tftpBootFile" type="wstring">
13955 <desc>TFTP boot file attribute which is used with the built-in DHCP server to fill
13956 the corresponding fields of DHCP leases.</desc>
13957 </attribute>
13958 <attribute name="tftpNextServer" type="wstring">
13959 <desc>TFTP server attribute which is used with the built-in DHCP server to fill
13960 the corresponding fields of DHCP leases.
13961 <note>The preferred form is IPv4 addresses.</note>
13962 </desc>
13963 </attribute>
13964 <attribute name="aliasMode" type="unsigned long">
13965 <desc></desc>
13966 </attribute>
13967 <attribute name="dnsPassDomain" type="boolean">
13968 <desc>Whether the DHCP server should pass the DNS domain used by the host.</desc>
13969 </attribute>
13970 <attribute name="dnsProxy" type="boolean">
13971 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
13972 of the DNS proxy and process traffic using DNS servers registered on the host.</desc>
13973 </attribute>
13974 <attribute name="dnsUseHostResolver" type="boolean">
13975 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
13976 of the DNS proxy and process traffic using the host resolver mechanism.</desc>
13977 </attribute>
13978 <attribute name="redirects" type="wstring" readonly="yes" safearray="yes">
13979 <desc>Array of NAT port-forwarding rules in string representation, in the following
13980 format: "name,protocol id,host ip,host port,guest ip,guest port".</desc>
13981 </attribute>
13982 <method name="setNetworkSettings">
13983 <desc>Sets network configuration of the NAT engine.</desc>
13984 <param name="mtu" type="unsigned long" dir="in">
13985 <desc>MTU (maximum transmission unit) of the NAT engine in bytes.</desc>
13986 </param>
13987 <param name="sockSnd" type="unsigned long" dir="in">
13988 <desc>Capacity of the socket send buffer in bytes when creating a new socket.</desc>
13989 </param>
13990 <param name="sockRcv" type="unsigned long" dir="in">
13991 <desc>Capacity of the socket receive buffer in bytes when creating a new socket.</desc>
13992 </param>
13993 <param name="TcpWndSnd" type="unsigned long" dir="in">
13994 <desc>Initial size of the NAT engine's sending TCP window in bytes when
13995 establishing a new TCP connection.</desc>
13996 </param>
13997 <param name="TcpWndRcv" type="unsigned long" dir="in">
13998 <desc>Initial size of the NAT engine's receiving TCP window in bytes when
13999 establishing a new TCP connection.</desc>
14000 </param>
14001 </method>
14002 <method name="getNetworkSettings">
14003 <desc>Returns network configuration of NAT engine. See <link to="#setNetworkSettings" />
14004 for parameter descriptions.</desc>
14005 <param name="mtu" type="unsigned long" dir="out" />
14006 <param name="sockSnd" type="unsigned long" dir="out" />
14007 <param name="sockRcv" type="unsigned long" dir="out" />
14008 <param name="TcpWndSnd" type="unsigned long" dir="out" />
14009 <param name="TcpWndRcv" type="unsigned long" dir="out" />
14010 </method>
14011 <method name="addRedirect">
14012 <desc>Adds a new NAT port-forwarding rule.</desc>
14013 <param name="name" type="wstring" dir="in">
14014 <desc>The name of the rule. An empty name is acceptable, in which case the NAT engine
14015 auto-generates one using the other parameters.</desc>
14016 </param>
14017 <param name="proto" type="NATProtocol" dir="in">
14018 <desc>Protocol handled with the rule.</desc>
14019 </param>
14020 <param name="hostIp" type="wstring" dir="in">
14021 <desc>IP of the host interface to which the rule should apply. An empty ip address is
14022 acceptable, in which case the NAT engine binds the handling socket to any interface.</desc>
14023 </param>
14024 <param name="hostPort" type="unsigned short" dir="in">
14025 <desc>The port number to listen on.</desc>
14026 </param>
14027 <param name="guestIp" type="wstring" dir="in">
14028 <desc>The IP address of the guest which the NAT engine will forward matching packets
14029 to. An empty IP address is acceptable, in which case the NAT engine will forward
14030 packets to the first DHCP lease (x.x.x.15).</desc>
14031 </param>
14032 <param name="guestPort" type="unsigned short" dir="in">
14033 <desc>The port number to forward.</desc>
14034 </param>
14035 </method>
14036 <method name="removeRedirect">
14037 <desc>Removes a port-forwarding rule that was previously registered.</desc>
14038 <param name="name" type="wstring" dir="in">
14039 <desc>The name of the rule to delete.</desc>
14040 </param>
14041 </method>
14042 </interface>
14043
14044 <!--
14045 // IExtPackManager
14046 /////////////////////////////////////////////////////////////////////////
14047 -->
14048
14049 <interface
14050 name="IExtPackPlugIn" extends="$unknown"
14051 uuid="58000040-e718-4746-bbce-4b86d96da461"
14052 wsmap="suppress"
14053 >
14054 <desc>
14055 Interface for keeping information about a plug-in that ships with an
14056 extension pack.
14057 </desc>
14058 <attribute name="name" type="wstring" readonly="yes">
14059 <desc>The plug-in name.</desc>
14060 </attribute>
14061 <attribute name="description" type="wstring" readonly="yes">
14062 <desc>The plug-in description.</desc>
14063 </attribute>
14064 <attribute name="frontend" type="wstring" readonly="yes">
14065 <desc>
14066 The name of the frontend or component name this plug-in plugs into.
14067 </desc>
14068 </attribute>
14069 <attribute name="modulePath" type="wstring" readonly="yes">
14070 <desc> The module path. </desc>
14071 </attribute>
14072 </interface>
14073
14074 <interface
14075 name="IExtPack" extends="$unknown"
14076 uuid="94564309-5966-419a-81cc-4aec0b6dbd4d"
14077 wsmap="suppress"
14078 >
14079 <desc>
14080 Interface for querying information about an extension pack as well as
14081 accessing COM objects within it.
14082 </desc>
14083 <attribute name="name" type="wstring" readonly="yes">
14084 <desc>The extension pack name. This is unique.</desc>
14085 </attribute>
14086 <attribute name="description" type="wstring" readonly="yes">
14087 <desc>The extension pack description.</desc>
14088 </attribute>
14089 <attribute name="version" type="wstring" readonly="yes">
14090 <desc>
14091 The extension pack version string. This is on the same form as
14092 other VirtualBox version strings, i.e.: "1.2.3", "1.2.3_BETA1",
14093 "1.2.3-OSE", "1.2.3r45678", "1.2.3r45678-OSE", "1.2.3_BETA1-r45678"
14094 or "1.2.3_BETA1-r45678-OSE"
14095 </desc>
14096 </attribute>
14097 <attribute name="revision" type="unsigned long" readonly="yes">
14098 <desc>The extension pack internal revision number.</desc>
14099 </attribute>
14100 <attribute name="VRDEModule" type="wstring" readonly="yes">
14101 <desc>The name of the VRDE module if the extension pack sports one.</desc>
14102 </attribute>
14103 <attribute name="plugIns" type="IExtPackPlugIn" safearray="yes" readonly="yes">
14104 <desc>Plug-ins provided by this extension pack.</desc>
14105 </attribute>
14106 <attribute name="usable" type="boolean" readonly="yes">
14107 <desc>
14108 Indicates whether the extension pack is usable or not. An
14109 extension pack that is not compatible with the current VirtualBox
14110 version will be flagged as not usable.
14111 </desc>
14112 </attribute>
14113 <attribute name="whyUnusable" type="wstring" readonly="yes">
14114 <desc>
14115 String indicating why the extension pack is not usable. This is an
14116 empty string if usable and always a non-empty string if not usable.
14117 </desc>
14118 </attribute>
14119 <method name="queryObject">
14120 <desc>
14121 Queries the IUnknown interface to an object in the extension pack
14122 main module. This allows plug-ins and others to talk directly to an
14123 extension pack.
14124 </desc>
14125 <param name="objUuid" type="wstring" dir="in">
14126 <desc>The object ID. What exactly this is </desc>
14127 </param>
14128 <param name="returnInterface" type="$unknown" dir="out">
14129 <desc>The queried interface.</desc>
14130 </param>
14131 </method>
14132 </interface>
14133
14134 <interface
14135 name="IExtPackManager" extends="$unknown"
14136 uuid="ba1fbfca-53f1-471c-b5a1-416386f0f52b"
14137 wsmap="suppress"
14138 >
14139 <desc>
14140 Interface for managing VirtualBox Extension Packs.
14141
14142 TODO: Describe extension packs, how they are managed and how to create
14143 one.
14144 </desc>
14145
14146 <attribute name="installedExtPacks" type="IExtPack" safearray="yes" readonly="yes">
14147 <desc>
14148 List of the installed extension packs.
14149 </desc>
14150 </attribute>
14151
14152 <method name="find">
14153 <desc>
14154 Returns the extension pack with the specified name if found.
14155
14156 <result name="VBOX_E_OBJECT_NOT_FOUND">
14157 No extension pack matching @a name was found.
14158 </result>
14159 </desc>
14160 <param name="name" type="wstring" dir="in">
14161 <desc>The name of the extension pack to locate.</desc>
14162 </param>
14163 <param name="returnData" type="IExtPack" dir="return">
14164 <desc>The extension pack if found.</desc>
14165 </param>
14166 </method>
14167
14168 <method name="install">
14169 <param name="path" type="wstring" dir="in">
14170 <desc>The path of the extension pack tarball.</desc>
14171 </param>
14172 <param name="name" type="wstring" dir="out">
14173 <desc>The name of the installed extension pack.</desc>
14174 </param>
14175 </method>
14176
14177 <method name="uninstall">
14178 <desc>Uninstalls an extension pack, removing all related files.</desc>
14179 <param name="name" type="wstring" dir="in">
14180 <desc>The name of the extension pack to uninstall.</desc>
14181 </param>
14182 <param name="forcedRemoval" type="boolean" dir="in">
14183 <desc>
14184 Forced removal of the extension pack. This means that the uninstall
14185 hook will not be called.
14186 </desc>
14187 </param>
14188 </method>
14189
14190 <method name="cleanup">
14191 <desc>Cleans up failed installs and uninstalls</desc>
14192 </method>
14193
14194 <method name="QueryAllPlugInsForFrontend">
14195 <desc>
14196 Gets the path to all the plug-in modules for a given frontend.
14197
14198 This is a convenience method that is intended to simplify the plug-in
14199 loading process for a frontend.
14200 </desc>
14201 <param name="frontendName" type="wstring" dir="in">
14202 <desc>The name of the frontend or component.</desc>
14203 </param>
14204 <param name="plugInModules" type="wstring" dir="out" safearray="yes">
14205 <desc>Array containing the plug-in modules (full paths).</desc>
14206 </param>
14207 </method>
14208
14209 </interface>
14210
14211 <!--
14212 // Events
14213 /////////////////////////////////////////////////////////////////////////
14214 -->
14215 <enum
14216 name="VBoxEventType"
14217 uuid="e085d0b1-05e6-4f40-a709-b7266fbdb236">
14218
14219 <desc>
14220 Type of an event.
14221 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
14222 </desc>
14223
14224 <const name="Invalid" value="0">
14225 <desc>
14226 Invalid event, must be first.
14227 </desc>
14228 </const>
14229
14230 <const name="Any" value="1">
14231 <desc>
14232 Wildcard for all events.
14233 Events of this type are never delivered, and only used in
14234 registerListener() call to simplify registration.
14235 </desc>
14236 </const>
14237
14238 <const name="Vetoable" value="2">
14239 <desc>
14240 Wildcard for all vetoable events. Events of this type are never delivered, and only
14241 used in registerListener() call to simplify registration.
14242 </desc>
14243 </const>
14244
14245 <const name="MachineEvent" value="3">
14246 <desc>
14247 Wildcard for all machine events. Events of this type are never delivered, and only used in
14248 registerListener() call to simplify registration.
14249 </desc>
14250 </const>
14251
14252 <const name="SnapshotEvent" value="4">
14253 <desc>
14254 Wildcard for all snapshot events. Events of this type are never delivered, and only used in
14255 registerListener() call to simplify registration.
14256 </desc>
14257 </const>
14258
14259 <const name="InputEvent" value="5">
14260 <desc>
14261 Wildcard for all input device (keyboard, mouse) events.
14262 Events of this type are never delivered, and only used in
14263 registerListener() call to simplify registration.
14264 </desc>
14265 </const>
14266
14267 <const name="LastWildcard" value="31">
14268 <desc>
14269 Last wildcard.
14270 </desc>
14271 </const>
14272
14273 <const name="OnMachineStateChanged" value="32">
14274 <desc>
14275 See <link to="IMachineStateChangedEvent">IMachineStateChangedEvent</link>.
14276 </desc>
14277 </const>
14278 <const name="OnMachineDataChanged" value="33">
14279 <desc>
14280 See <link to="IMachineDataChangedEvent">IMachineDataChangedEvent</link>.
14281 </desc>
14282 </const>
14283 <const name="OnExtraDataChanged" value="34">
14284 <desc>
14285 See <link to="IExtraDataChangedEvent">IExtraDataChangedEvent</link>.
14286 </desc>
14287 </const>
14288 <const name="OnExtraDataCanChange" value="35">
14289 <desc>
14290 See <link to="IExtraDataCanChangeEvent">IExtraDataCanChangeEvent</link>.
14291 </desc>
14292 </const>
14293 <const name="OnMediumRegistered" value="36">
14294 <desc>
14295 See <link to="IMediumRegisteredEvent">IMediumRegisteredEvent</link>.
14296 </desc>
14297 </const>
14298 <const name="OnMachineRegistered" value="37">
14299 <desc>
14300 See <link to="IMachineRegisteredEvent">IMachineRegisteredEvent</link>.
14301 </desc>
14302 </const>
14303 <const name="OnSessionStateChanged" value="38">
14304 <desc>
14305 See <link to="ISessionStateChangedEvent">ISessionStateChangedEvent</link>.
14306 </desc>
14307 </const>
14308 <const name="OnSnapshotTaken" value="39">
14309 <desc>
14310 See <link to="ISnapshotTakenEvent">ISnapshotTakenEvent</link>.
14311 </desc>
14312 </const>
14313 <const name="OnSnapshotDeleted" value="40">
14314 <desc>
14315 See <link to="ISnapshotDeletedEvent">ISnapshotDeletedEvent</link>.
14316 </desc>
14317 </const>
14318 <const name="OnSnapshotChanged" value="41">
14319 <desc>
14320 See <link to="ISnapshotChangedEvent">ISnapshotChangedEvent</link>.
14321 </desc>
14322 </const>
14323 <const name="OnGuestPropertyChanged" value="42">
14324 <desc>
14325 See <link to="IGuestPropertyChangedEvent">IGuestPropertyChangedEvent</link>.
14326 </desc>
14327 </const>
14328 <!-- Console events -->
14329 <const name="OnMousePointerShapeChanged" value="43">
14330 <desc>
14331 See <link to="IMousePointerShapeChangedEvent">IMousePointerShapeChangedEvent</link>.
14332 </desc>
14333 </const>
14334 <const name="OnMouseCapabilityChanged" value="44">
14335 <desc>
14336 See <link to="IMouseCapabilityChangedEvent">IMouseCapabilityChangedEvent</link>.
14337 </desc>
14338 </const>
14339 <const name="OnKeyboardLedsChanged" value="45">
14340 <desc>
14341 See <link to="IKeyboardLedsChangedEvent">IKeyboardLedsChangedEvent</link>.
14342 </desc>
14343 </const>
14344 <const name="OnStateChanged" value="46">
14345 <desc>
14346 See <link to="IStateChangedEvent">IStateChangedEvent</link>.
14347 </desc>
14348 </const>
14349 <const name="OnAdditionsStateChanged" value="47">
14350 <desc>
14351 See <link to="IAdditionsStateChangedEvent">IAdditionsStateChangedEvent</link>.
14352 </desc>
14353 </const>
14354 <const name="OnNetworkAdapterChanged" value="48">
14355 <desc>
14356 See <link to="INetworkAdapterChangedEvent">INetworkAdapterChangedEvent</link>.
14357 </desc>
14358 </const>
14359 <const name="OnSerialPortChanged" value="49">
14360 <desc>
14361 See <link to="ISerialPortChangedEvent">ISerialPortChangedEvent</link>.
14362 </desc>
14363 </const>
14364 <const name="OnParallelPortChanged" value="50">
14365 <desc>
14366 See <link to="IParallelPortChangedEvent">IParallelPortChangedEvent</link>.
14367 </desc>
14368 </const>
14369 <const name="OnStorageControllerChanged" value="51">
14370 <desc>
14371 See <link to="IStorageControllerChangedEvent">IStorageControllerChangedEvent</link>.
14372 </desc>
14373 </const>
14374 <const name="OnMediumChanged" value="52">
14375 <desc>
14376 See <link to="IMediumChangedEvent">IMediumChangedEvent</link>.
14377 </desc>
14378 </const>
14379 <const name="OnVRDEServerChanged" value="53">
14380 <desc>
14381 See <link to="IVRDEServerChangedEvent">IVRDEServerChangedEvent</link>.
14382 </desc>
14383 </const>
14384 <const name="OnUSBControllerChanged" value="54">
14385 <desc>
14386 See <link to="IUSBControllerChangedEvent">IUSBControllerChangedEvent</link>.
14387 </desc>
14388 </const>
14389 <const name="OnUSBDeviceStateChanged" value="55">
14390 <desc>
14391 See <link to="IUSBDeviceStateChangedEvent">IUSBDeviceStateChangedEvent</link>.
14392 </desc>
14393 </const>
14394 <const name="OnSharedFolderChanged" value="56">
14395 <desc>
14396 See <link to="ISharedFolderChangedEvent">ISharedFolderChangedEvent</link>.
14397 </desc>
14398 </const>
14399 <const name="OnRuntimeError" value="57">
14400 <desc>
14401 See <link to="IRuntimeErrorEvent">IRuntimeErrorEvent</link>.
14402 </desc>
14403 </const>
14404 <const name="OnCanShowWindow" value="58">
14405 <desc>
14406 See <link to="ICanShowWindowEvent">ICanShowWindowEvent</link>.
14407 </desc>
14408 </const>
14409 <const name="OnShowWindow" value="59">
14410 <desc>
14411 See <link to="IShowWindowEvent">IShowWindowEvent</link>.
14412 </desc>
14413 </const>
14414 <const name="OnCPUChanged" value="60">
14415 <desc>
14416 See <link to="ICPUChangedEvent">ICPUChangedEvent</link>.
14417 </desc>
14418 </const>
14419 <const name="OnVRDEServerInfoChanged" value="61">
14420 <desc>
14421 See <link to="IVRDEServerInfoChangedEvent">IVRDEServerInfoChangedEvent</link>.
14422 </desc>
14423 </const>
14424 <const name="OnEventSourceChanged" value="62">
14425 <desc>
14426 See <link to="IEventSourceChangedEvent">IEventSourceChangedEvent</link>.
14427 </desc>
14428 </const>
14429 <const name="OnCPUExecutionCapChanged" value="63">
14430 <desc>
14431 See <link to="ICPUExecutionCapChangedEvent">ICPUExecutionCapChangedEvent</link>.
14432 </desc>
14433 </const>
14434 <const name="OnGuestKeyboardEvent" value="64">
14435 <desc>
14436 See <link to="IGuestKeyboardEvent">IGuestKeyboardEvent</link>.
14437 </desc>
14438 </const>
14439 <const name="OnGuestMouseEvent" value="65">
14440 <desc>
14441 See <link to="IGuestMouseEvent">IGuestMouseEvent</link>.
14442 </desc>
14443 </const>
14444 <const name="OnNATRedirectEvent" value="66">
14445 <desc>
14446 See <link to="INATRedirectEvent">INATRedirectEvent</link>.
14447 </desc>
14448 </const>
14449 <!-- Last event marker -->
14450 <const name="Last" value="67">
14451 <desc>
14452 Must be last event, used for iterations and structures relying on numerical event values.
14453 </desc>
14454 </const>
14455
14456 </enum>
14457
14458 <interface
14459 name="IEventSource" extends="$unknown"
14460 uuid="9b6e1aee-35f3-4f4d-b5bb-ed0ecefd8538"
14461 wsmap="managed"
14462 >
14463 <desc>
14464 Event source. Generally, any object which could generate events can be an event source,
14465 or aggregate one. To simplify using one-way protocols such as webservices running on top of HTTP(S),
14466 an event source can work with listeners in either active or passive mode. In active mode it is up to
14467 the IEventSource implementation to call <link to="IEventListener::handleEvent" />, in passive mode the
14468 event source keeps track of pending events for each listener and returns available events on demand.
14469
14470 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
14471 </desc>
14472
14473 <method name="createListener">
14474 <desc>
14475 Creates a new listener object, useful for passive mode.
14476 </desc>
14477 <param name="listener" type="IEventListener" dir="return"/>
14478 </method>
14479
14480 <method name="createAggregator">
14481 <desc>
14482 Creates a aggregator event source, collecting events from multiple sources.
14483 This way single listener can listen for events coming from multiple sources,
14484 using single blocking getEvent() of this aggregator.
14485 </desc>
14486 <param name="subordinates" type="IEventSource" dir="in" safearray="yes">
14487 <desc>
14488 Subordinate event source this one aggregatres.
14489 </desc>
14490 </param>
14491 <param name="result" type="IEventSource" dir="return"/>
14492 </method>
14493
14494 <method name="registerListener">
14495 <desc>
14496 Register an event listener.
14497
14498 <note>
14499 To avoid system overload, the VirtualBox server process checks if passive event
14500 listeners call <link to="IEventSource::getEvent"/> frequently enough. In the
14501 current implementation, if more than 500 pending events are detected for a passive
14502 event listener, it is forcefully unregistered by the system, and further
14503 <link to="#getEvent" /> calls will return @c VBOX_E_OBJECT_NOT_FOUND.
14504 </note>
14505 </desc>
14506 <param name="listener" type="IEventListener" dir="in">
14507 <desc>Listener to register.</desc>
14508 </param>
14509 <param name="interesting" type="VBoxEventType" dir="in" safearray="yes">
14510 <desc>
14511 Event types listener is interested in. One can use wildcards like -
14512 <link to="VBoxEventType_Any"/> to specify wildcards, matching more
14513 than one event.
14514 </desc>
14515 </param>
14516 <param name="active" type="boolean" dir="in">
14517 <desc>
14518 Which mode this listener is operating in.
14519 In active mode, <link to="IEventListener::handleEvent" /> is called directly.
14520 In passive mode, an internal event queue is created for this this IEventListener.
14521 For each event coming in, it is added to queues for all interested registered passive
14522 listeners. It is then up to the external code to call the listener's
14523 <link to="IEventListener::handleEvent" /> method. When done with an event, the
14524 external code must call <link to="#eventProcessed" />.
14525 </desc>
14526 </param>
14527 </method>
14528
14529 <method name="unregisterListener">
14530 <desc>
14531 Unregister an event listener. If listener is passive, and some waitable events are still
14532 in queue they are marked as processed automatically.
14533 </desc>
14534 <param name="listener" type="IEventListener" dir="in">
14535 <desc>Listener to unregister.</desc>
14536 </param>
14537 </method>
14538
14539 <method name="fireEvent">
14540 <desc>
14541 Fire an event for this source.
14542 </desc>
14543 <param name="event" type="IEvent" dir="in">
14544 <desc>Event to deliver.</desc>
14545 </param>
14546 <param name="timeout" type="long" dir="in">
14547 <desc>
14548 Maximum time to wait for event processing (if event is waitable), in ms;
14549 0 = no wait, -1 = indefinite wait.
14550 </desc>
14551 </param>
14552 <param name="result" type="boolean" dir="return">
14553 <desc>true if an event was delivered to all targets, or is non-waitable.</desc>
14554 </param>
14555 </method>
14556
14557 <method name="getEvent">
14558 <desc>
14559 Get events from this peer's event queue (for passive mode). Calling this method
14560 regularly is required for passive event listeners to avoid system overload;
14561 see <link to="IEventSource::registerListener" /> for details.
14562
14563 <result name="VBOX_E_OBJECT_NOT_FOUND">
14564 Listener is not registered, or autounregistered.
14565 </result>
14566 </desc>
14567 <param name="listener" type="IEventListener" dir="in">
14568 <desc>Which listener to get data for.</desc>
14569 </param>
14570 <param name="timeout" type="long" dir="in">
14571 <desc>
14572 Maximum time to wait for events, in ms;
14573 0 = no wait, -1 = indefinite wait.
14574 </desc>
14575 </param>
14576 <param name="event" type="IEvent" dir="return">
14577 <desc>Event retrieved, or null if none available.</desc>
14578 </param>
14579 </method>
14580
14581 <method name="eventProcessed">
14582 <desc>
14583 Must be called for waitable events after a particular listener finished its
14584 event processing. When all listeners of a particular event have called this
14585 method, the system will then call <link to="IEvent::setProcessed" />.
14586 </desc>
14587 <param name="listener" type="IEventListener" dir="in">
14588 <desc>Which listener processed event.</desc>
14589 </param>
14590 <param name="event" type="IEvent" dir="in">
14591 <desc>Which event.</desc>
14592 </param>
14593 </method>
14594
14595 </interface>
14596
14597 <interface
14598 name="IEventListener" extends="$unknown"
14599 uuid="67099191-32e7-4f6c-85ee-422304c71b90"
14600 wsmap="managed"
14601 >
14602 <desc>
14603 Event listener. An event listener can work in either active or passive mode, depending on the way
14604 it was registered.
14605 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
14606 </desc>
14607
14608 <method name="handleEvent">
14609 <desc>
14610 Handle event callback (called directly by IEventSource in active mode, or could be
14611 called by event processor thread in passive mode).
14612 </desc>
14613 <param name="event" type="IEvent" dir="in">
14614 <desc>Event available.</desc>
14615 </param>
14616 </method>
14617
14618 </interface>
14619
14620 <interface
14621 name="IEvent" extends="$unknown"
14622 uuid="0ca2adba-8f30-401b-a8cd-fe31dbe839c0"
14623 wsmap="managed"
14624 >
14625 <desc>
14626 Abstract parent interface for VirtualBox events. Actual events will typically implement
14627 a more specific interface which derives from this (see below).
14628
14629 <b>Introduction to VirtualBox events</b>
14630
14631 Generally speaking, an event (represented by this interface) signals that something
14632 happened, while an event listener (see <link to="IEventListener" />) represents an
14633 entity that is interested in certain events. In order for this to work with
14634 unidirectional protocols (i.e. web services), the concepts of passive and active
14635 listener are used.
14636
14637 Event consumers can register themselves as listeners, providing an array of
14638 events they are interested in (see <link to="IEventSource::registerListener" />).
14639 When an event triggers, the listener is notified about the event. The exact
14640 mechanism of the notification depends on whether the listener was registered as
14641 an active or passive listener:
14642
14643 <ul>
14644 <li>An active listener is very similar to a callback: it is a function invoked
14645 by the API. As opposed to the callbacks that were used in the API before
14646 VirtualBox 4.0 however, events are now objects with an interface hierarchy.
14647 </li>
14648
14649 <li>Passive listeners are somewhat trickier to implement, but do not require
14650 a client function to be callable, which is not an option with scripting
14651 languages or web service clients. Internally the <link to="IEventSource" />
14652 implementation maintains an event queue for each passive listener, and
14653 newly arrived events are put in this queue. When the listener calls
14654 <link to="IEventSource::getEvent"/>, first element from its internal event
14655 queue is returned. When the client completes processing of an event,
14656 the <link to="IEventSource::eventProcessed" /> function must be called,
14657 acknowledging that the event was processed. It supports implementing
14658 waitable events. On passive listener unregistration, all events from its
14659 queue are auto-acknowledged.
14660 </li>
14661 </ul>
14662
14663 Waitable events are useful in situations where the event generator wants to track
14664 delivery or a party wants to wait until all listeners have completed the event. A
14665 typical example would be a vetoable event (see <link to="IVetoEvent" />) where a
14666 listeners might veto a certain action, and thus the event producer has to make
14667 sure that all listeners have processed the event and not vetoed before taking
14668 the action.
14669
14670 A given event may have both passive and active listeners at the same time.
14671
14672 <b>Using events</b>
14673
14674 Any VirtualBox object capable of producing externally visible events provides an
14675 @c eventSource read-only attribute, which is of the type <link to="IEventSource" />.
14676 This event source object is notified by VirtualBox once something has happened, so
14677 consumers may register event listeners with this event source. To register a listener,
14678 an object implementing the <link to="IEventListener" /> interface must be provided.
14679 For active listeners, such an object is typically created by the consumer, while for
14680 passive listeners <link to="IEventSource::createListener" /> should be used. Please
14681 note that a listener created with @c createListener() must not be used as an active listener.
14682
14683 Once created, the listener must be registered to listen for the desired events
14684 (see <link to="IEventSource::registerListener" />), providing an array of
14685 <link to="VBoxEventType" /> enums. Those elements can either be the individual
14686 event IDs or wildcards matching multiple event IDs.
14687
14688 After registration, the callback's <link to="IEventListener::handleEvent" /> method is
14689 called automatically when the event is triggered, while passive listeners have to call
14690 <link to="IEventSource::getEvent" /> and <link to="IEventSource::eventProcessed" /> in
14691 an event processing loop.
14692
14693 The IEvent interface is an abstract parent interface for all such VirtualBox events
14694 coming in. As a result, the standard use pattern inside <link to="IEventListener::handleEvent" />
14695 or the event processing loop is to check the <link to="#type" /> attribute of the event and
14696 then cast to the appropriate specific interface using @c QueryInterface().
14697 </desc>
14698
14699 <attribute name="type" readonly="yes" type="VBoxEventType">
14700 <desc>
14701 Event type.
14702 </desc>
14703 </attribute>
14704
14705 <attribute name="source" readonly="yes" type="IEventSource">
14706 <desc>
14707 Source of this event.
14708 </desc>
14709 </attribute>
14710
14711 <attribute name="waitable" readonly="yes" type="boolean">
14712 <desc>
14713 If we can wait for this event being processed. If false, waitProcessed() returns immediately,
14714 and setProcessed() doesn't make sense. Non-waitable events are generally better performing,
14715 as no additional overhead associated with waitability imposed.
14716 Waitable events are needed when one need to be able to wait for particular event processed,
14717 for example for vetoable changes, or if event refers to some resource which need to be kept immutable
14718 until all consumers confirmed events.
14719 </desc>
14720 </attribute>
14721
14722 <method name="setProcessed">
14723 <desc>
14724 Internal method called by the system when all listeners of a particular event have called
14725 <link to="IEventSource::eventProcessed" />. This should not be called by client code.
14726 </desc>
14727 </method>
14728
14729 <method name="waitProcessed">
14730 <desc>
14731 Wait until time outs, or this event is processed. Event must be waitable for this operation to have
14732 described semantics, for non-waitable returns true immediately.
14733 </desc>
14734 <param name="timeout" type="long" dir="in">
14735 <desc>
14736 Maximum time to wait for event processeing, in ms;
14737 0 = no wait, -1 = indefinite wait.
14738 </desc>
14739 </param>
14740 <param name="result" type="boolean" dir="return">
14741 <desc>If this event was processed before timeout.</desc>
14742 </param>
14743 </method>
14744 </interface>
14745
14746
14747 <interface
14748 name="IReusableEvent" extends="IEvent"
14749 uuid="69bfb134-80f6-4266-8e20-16371f68fa25"
14750 wsmap="managed"
14751 >
14752 <desc>Base abstract interface for all reusable events.</desc>
14753
14754 <attribute name="generation" readonly="yes" type="unsigned long">
14755 <desc>Current generation of event, incremented on reuse.</desc>
14756 </attribute>
14757
14758 <method name="reuse">
14759 <desc>
14760 Marks an event as reused, increments 'generation', fields shall no
14761 longer be considered valid.
14762 </desc>
14763 </method>
14764 </interface>
14765
14766 <interface
14767 name="IMachineEvent" extends="IEvent"
14768 uuid="92ed7b1a-0d96-40ed-ae46-a564d484325e"
14769 wsmap="managed" id="MachineEvent"
14770 >
14771 <desc>Base abstract interface for all machine events.</desc>
14772
14773 <attribute name="machineId" readonly="yes" type="uuid" mod="string">
14774 <desc>ID of the machine this event relates to.</desc>
14775 </attribute>
14776
14777 </interface>
14778
14779 <interface
14780 name="IMachineStateChangedEvent" extends="IMachineEvent"
14781 uuid="5748F794-48DF-438D-85EB-98FFD70D18C9"
14782 wsmap="managed" autogen="VBoxEvent" id="OnMachineStateChanged"
14783 >
14784 <desc>Machine state change event.</desc>
14785
14786 <attribute name="state" readonly="yes" type="MachineState">
14787 <desc>New execution state.</desc>
14788 </attribute>
14789 </interface>
14790
14791 <interface
14792 name="IMachineDataChangedEvent" extends="IMachineEvent"
14793 uuid="6AA70A6C-0DCA-4810-8C5C-457B278E3D49"
14794 wsmap="managed" autogen="VBoxEvent" id="OnMachineDataChanged"
14795 >
14796 <desc>
14797 Any of the settings of the given machine has changed.
14798 </desc>
14799 </interface>
14800
14801 <interface
14802 name="IMediumRegisteredEvent" extends="IEvent"
14803 uuid="53fac49a-b7f1-4a5a-a4ef-a11dd9c2a458"
14804 wsmap="managed" autogen="VBoxEvent" id="OnMediumRegistered"
14805 >
14806 <desc>
14807 The given medium was registered or unregistered
14808 within this VirtualBox installation.
14809 </desc>
14810
14811 <attribute name="mediumId" readonly="yes" type="uuid" mod="string">
14812 <desc>ID of the medium this event relates to.</desc>
14813 </attribute>
14814
14815 <attribute name="mediumType" readonly="yes" type="DeviceType">
14816 <desc>Type of the medium this event relates to.</desc>
14817 </attribute>
14818
14819 <attribute name="registered" type="boolean" readonly="yes">
14820 <desc>
14821 If @c true, the medium was registered, otherwise it was
14822 unregistered.
14823 </desc>
14824 </attribute>
14825 </interface>
14826
14827 <interface
14828 name="IMachineRegisteredEvent" extends="IMachineEvent"
14829 uuid="c354a762-3ff2-4f2e-8f09-07382ee25088"
14830 wsmap="managed" autogen="VBoxEvent" id="OnMachineRegistered"
14831 >
14832 <desc>
14833 The given machine was registered or unregistered
14834 within this VirtualBox installation.
14835 </desc>
14836
14837 <attribute name="registered" type="boolean" readonly="yes">
14838 <desc>
14839 If @c true, the machine was registered, otherwise it was
14840 unregistered.
14841 </desc>
14842 </attribute>
14843 </interface>
14844
14845 <interface
14846 name="ISessionStateChangedEvent" extends="IMachineEvent"
14847 uuid="714a3eef-799a-4489-86cd-fe8e45b2ff8e"
14848 wsmap="managed" autogen="VBoxEvent" id="OnSessionStateChanged"
14849 >
14850 <desc>
14851 The state of the session for the given machine was changed.
14852 <see>IMachine::sessionState</see>
14853 </desc>
14854
14855 <attribute name="state" type="SessionState" readonly="yes">
14856 <desc>
14857 New session state.
14858 </desc>
14859 </attribute>
14860 </interface>
14861
14862 <interface
14863 name="IGuestPropertyChangedEvent" extends="IMachineEvent"
14864 uuid="3f63597a-26f1-4edb-8dd2-6bddd0912368"
14865 wsmap="managed" autogen="VBoxEvent" id="OnGuestPropertyChanged"
14866 >
14867 <desc>
14868 Notification when a guest property has changed.
14869 </desc>
14870
14871 <attribute name="name" readonly="yes" type="wstring">
14872 <desc>
14873 The name of the property that has changed.
14874 </desc>
14875 </attribute>
14876
14877 <attribute name="value" readonly="yes" type="wstring">
14878 <desc>
14879 The new property value.
14880 </desc>
14881 </attribute>
14882
14883 <attribute name="flags" readonly="yes" type="wstring">
14884 <desc>
14885 The new property flags.
14886 </desc>
14887 </attribute>
14888
14889 </interface>
14890
14891 <interface
14892 name="ISnapshotEvent" extends="IMachineEvent"
14893 uuid="21637b0e-34b8-42d3-acfb-7e96daf77c22"
14894 wsmap="managed" id="SnapshotEvent"
14895 >
14896 <desc>Base interface for all snapshot events.</desc>
14897
14898 <attribute name="snapshotId" readonly="yes" type="uuid" mod="string">
14899 <desc>ID of the snapshot this event relates to.</desc>
14900 </attribute>
14901
14902 </interface>
14903
14904 <interface
14905 name="ISnapshotTakenEvent" extends="ISnapshotEvent"
14906 uuid="d27c0b3d-6038-422c-b45e-6d4a0503d9f1"
14907 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotTaken"
14908 >
14909 <desc>
14910 A new snapshot of the machine has been taken.
14911 <see>ISnapshot</see>
14912 </desc>
14913 </interface>
14914
14915 <interface
14916 name="ISnapshotDeletedEvent" extends="ISnapshotEvent"
14917 uuid="c48f3401-4a9e-43f4-b7a7-54bd285e22f4"
14918 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotDeleted"
14919 >
14920 <desc>
14921 Snapshot of the given machine has been deleted.
14922
14923 <note>
14924 This notification is delivered <b>after</b> the snapshot
14925 object has been uninitialized on the server (so that any
14926 attempt to call its methods will return an error).
14927 </note>
14928
14929 <see>ISnapshot</see>
14930 </desc>
14931 </interface>
14932
14933 <interface
14934 name="ISnapshotChangedEvent" extends="ISnapshotEvent"
14935 uuid="07541941-8079-447a-a33e-47a69c7980db"
14936 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotChanged"
14937 >
14938 <desc>
14939 Snapshot properties (name and/or description) have been changed.
14940 <see>ISnapshot</see>
14941 </desc>
14942 </interface>
14943
14944 <interface
14945 name="IMousePointerShapeChangedEvent" extends="IEvent"
14946 uuid="a6dcf6e8-416b-4181-8c4a-45ec95177aef"
14947 wsmap="managed" autogen="VBoxEvent" id="OnMousePointerShapeChanged"
14948 >
14949 <desc>
14950 Notification when the guest mouse pointer shape has
14951 changed. The new shape data is given.
14952 </desc>
14953
14954 <attribute name="visible" type="boolean" readonly="yes">
14955 <desc>
14956 Flag whether the pointer is visible.
14957 </desc>
14958 </attribute>
14959 <attribute name="alpha" type="boolean" readonly="yes">
14960 <desc>
14961 Flag whether the pointer has an alpha channel.
14962 </desc>
14963 </attribute>
14964 <attribute name="xhot" type="unsigned long" readonly="yes">
14965 <desc>
14966 The pointer hot spot X coordinate.
14967 </desc>
14968 </attribute>
14969 <attribute name="yhot" type="unsigned long" readonly="yes">
14970 <desc>
14971 The pointer hot spot Y coordinate.
14972 </desc>
14973 </attribute>
14974 <attribute name="width" type="unsigned long" readonly="yes">
14975 <desc>
14976 Width of the pointer shape in pixels.
14977 </desc>
14978 </attribute>
14979 <attribute name="height" type="unsigned long" readonly="yes">
14980 <desc>
14981 Height of the pointer shape in pixels.
14982 </desc>
14983 </attribute>
14984 <attribute name="shape" type="octet" safearray="yes" readonly="yes">
14985 <desc>
14986 Shape buffer arrays.
14987
14988 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
14989 followed by a 32-bpp XOR (color) mask.
14990
14991 For pointers without alpha channel the XOR mask pixels are 32
14992 bit values: (lsb)BGR0(msb). For pointers with alpha channel
14993 the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
14994
14995 An AND mask is used for pointers with alpha channel, so if the
14996 callback does not support alpha, the pointer could be
14997 displayed as a normal color pointer.
14998
14999 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
15000 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
15001 height</tt>. The padding bits at the end of each scanline are
15002 undefined.
15003
15004 The XOR mask follows the AND mask on the next 4-byte aligned
15005 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
15006 Bytes in the gap between the AND and the XOR mask are undefined.
15007 The XOR mask scanlines have no gap between them and the size of
15008 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
15009
15010 <note>
15011 If @a shape is 0, only the pointer visibility is changed.
15012 </note>
15013 </desc>
15014 </attribute>
15015 </interface>
15016
15017 <interface
15018 name="IMouseCapabilityChangedEvent" extends="IEvent"
15019 uuid="d633ad48-820c-4207-b46c-6bd3596640d5"
15020 wsmap="managed" autogen="VBoxEvent" id="OnMouseCapabilityChanged"
15021 >
15022 <desc>
15023 Notification when the mouse capabilities reported by the
15024 guest have changed. The new capabilities are passed.
15025 </desc>
15026 <attribute name="supportsAbsolute" type="boolean" readonly="yes">
15027 <desc>
15028 Supports absolute coordinates.
15029 </desc>
15030 </attribute>
15031 <attribute name="supportsRelative" type="boolean" readonly="yes">
15032 <desc>
15033 Supports relative coordinates.
15034 </desc>
15035 </attribute>
15036 <attribute name="needsHostCursor" type="boolean" readonly="yes">
15037 <desc>
15038 If host cursor is needed.
15039 </desc>
15040 </attribute>
15041 </interface>
15042
15043 <interface
15044 name="IKeyboardLedsChangedEvent" extends="IEvent"
15045 uuid="6DDEF35E-4737-457B-99FC-BC52C851A44F"
15046 wsmap="managed" autogen="VBoxEvent" id="OnKeyboardLedsChanged"
15047 >
15048 <desc>
15049 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
15050 to alter the state of the keyboard LEDs.
15051 </desc>
15052 <attribute name="numLock" type="boolean" readonly="yes">
15053 <desc>
15054 NumLock status.
15055 </desc>
15056 </attribute>
15057 <attribute name="capsLock" type="boolean" readonly="yes">
15058 <desc>
15059 CapsLock status.
15060 </desc>
15061 </attribute>
15062 <attribute name="scrollLock" type="boolean" readonly="yes">
15063 <desc>
15064 ScrollLock status.
15065 </desc>
15066 </attribute>
15067 </interface>
15068
15069 <interface
15070 name="IStateChangedEvent" extends="IEvent"
15071 uuid="4376693C-CF37-453B-9289-3B0F521CAF27"
15072 wsmap="managed" autogen="VBoxEvent" id="OnStateChanged"
15073 >
15074 <desc>
15075 Notification when the execution state of the machine has changed.
15076 The new state is given.
15077 </desc>
15078 <attribute name="state" type="MachineState" readonly="yes">
15079 <desc>
15080 New machine state.
15081 </desc>
15082 </attribute>
15083 </interface>
15084
15085 <interface
15086 name="IAdditionsStateChangedEvent" extends="IEvent"
15087 uuid="D70F7915-DA7C-44C8-A7AC-9F173490446A"
15088 wsmap="managed" autogen="VBoxEvent" id="OnAdditionsStateChanged"
15089 >
15090 <desc>
15091 Notification when a Guest Additions property changes.
15092 Interested callees should query IGuest attributes to
15093 find out what has changed.
15094 </desc>
15095 </interface>
15096
15097 <interface
15098 name="INetworkAdapterChangedEvent" extends="IEvent"
15099 uuid="08889892-1EC6-4883-801D-77F56CFD0103"
15100 wsmap="managed" autogen="VBoxEvent" id="OnNetworkAdapterChanged"
15101 >
15102 <desc>
15103 Notification when a property of one of the
15104 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
15105 changes. Interested callees should use INetworkAdapter methods and
15106 attributes to find out what has changed.
15107 </desc>
15108 <attribute name="networkAdapter" type="INetworkAdapter" readonly="yes">
15109 <desc>
15110 Network adapter that is subject to change.
15111 </desc>
15112 </attribute>
15113 </interface>
15114
15115 <interface
15116 name="ISerialPortChangedEvent" extends="IEvent"
15117 uuid="3BA329DC-659C-488B-835C-4ECA7AE71C6C"
15118 wsmap="managed" autogen="VBoxEvent" id="OnSerialPortChanged"
15119 >
15120 <desc>
15121 Notification when a property of one of the
15122 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
15123 Interested callees should use ISerialPort methods and attributes
15124 to find out what has changed.
15125 </desc>
15126 <attribute name="serialPort" type="ISerialPort" readonly="yes">
15127 <desc>
15128 Serial port that is subject to change.
15129 </desc>
15130 </attribute>
15131 </interface>
15132
15133 <interface
15134 name="IParallelPortChangedEvent" extends="IEvent"
15135 uuid="813C99FC-9849-4F47-813E-24A75DC85615"
15136 wsmap="managed" autogen="VBoxEvent" id="OnParallelPortChanged"
15137 >
15138 <desc>
15139 Notification when a property of one of the
15140 virtual <link to="IMachine::getParallelPort">parallel ports</link>
15141 changes. Interested callees should use ISerialPort methods and
15142 attributes to find out what has changed.
15143 </desc>
15144 <attribute name="parallelPort" type="IParallelPort" readonly="yes">
15145 <desc>
15146 Parallel port that is subject to change.
15147 </desc>
15148 </attribute>
15149 </interface>
15150
15151 <interface
15152 name="IStorageControllerChangedEvent" extends="IEvent"
15153 uuid="715212BF-DA59-426E-8230-3831FAA52C56"
15154 wsmap="managed" autogen="VBoxEvent" id="OnStorageControllerChanged"
15155 >
15156 <desc>
15157 Notification when a
15158 <link to="IMachine::mediumAttachments">medium attachment</link>
15159 changes.
15160 </desc>
15161 </interface>
15162
15163 <interface
15164 name="IMediumChangedEvent" extends="IEvent"
15165 uuid="0FE2DA40-5637-472A-9736-72019EABD7DE"
15166 wsmap="managed" autogen="VBoxEvent" id="OnMediumChanged"
15167 >
15168 <desc>
15169 Notification when a
15170 <link to="IMachine::mediumAttachments">medium attachment</link>
15171 changes.
15172 </desc>
15173 <attribute name="mediumAttachment" type="IMediumAttachment" readonly="yes">
15174 <desc>
15175 Medium attachment that is subject to change.
15176 </desc>
15177 </attribute>
15178 </interface>
15179
15180 <interface
15181 name="ICPUChangedEvent" extends="IEvent"
15182 uuid="D0F0BECC-EE17-4D17-A8CC-383B0EB55E9D"
15183 wsmap="managed" autogen="VBoxEvent" id="OnCPUChanged"
15184 >
15185 <desc>
15186 Notification when a CPU changes.
15187 </desc>
15188 <attribute name="cpu" type="unsigned long" readonly="yes">
15189 <desc>
15190 The CPU which changed.
15191 </desc>
15192 </attribute>
15193 <attribute name="add" type="boolean" readonly="yes">
15194 <desc>
15195 Flag whether the CPU was added or removed.
15196 </desc>
15197 </attribute>
15198 </interface>
15199
15200 <interface
15201 name="ICPUExecutionCapChangedEvent" extends="IEvent"
15202 uuid="dfa7e4f5-b4a4-44ce-85a8-127ac5eb59dc"
15203 wsmap="managed" autogen="VBoxEvent" id="OnCPUExecutionCapChanged"
15204 >
15205 <desc>
15206 Notification when the CPU execution cap changes.
15207 </desc>
15208 <attribute name="executionCap" type="unsigned long" readonly="yes">
15209 <desc>
15210 The new CPU execution cap value. (1-100)
15211 </desc>
15212 </attribute>
15213 </interface>
15214
15215 <interface
15216 name="IGuestKeyboardEvent" extends="IEvent"
15217 uuid="88394258-7006-40d4-b339-472ee3801844"
15218 wsmap="managed" autogen="VBoxEvent" id="OnGuestKeyboardEvent"
15219 >
15220 <desc>
15221 Notification when guest keyboard event happens.
15222 </desc>
15223 <attribute name="scancodes" type="long" safearray="yes" readonly="yes">
15224 <desc>
15225 Array of scancodes.
15226 </desc>
15227 </attribute>
15228 </interface>
15229
15230 <interface
15231 name="IGuestMouseEvent" extends="IReusableEvent"
15232 uuid="1f85d35c-c524-40ff-8e98-307000df0992"
15233 wsmap="managed" autogen="VBoxEvent" id="OnGuestMouseEvent"
15234 >
15235 <desc>
15236 Notification when guest mouse event happens.
15237 </desc>
15238
15239 <attribute name="absolute" type="boolean" readonly="yes">
15240 <desc>
15241 If this event is relative or absolute.
15242 </desc>
15243 </attribute>
15244
15245 <attribute name="x" type="long" readonly="yes">
15246 <desc>
15247 New X position, or X delta.
15248 </desc>
15249 </attribute>
15250
15251 <attribute name="y" type="long" readonly="yes">
15252 <desc>
15253 New Y position, or Y delta.
15254 </desc>
15255 </attribute>
15256
15257 <attribute name="z" type="long" readonly="yes">
15258 <desc>
15259 Z delta.
15260 </desc>
15261 </attribute>
15262
15263 <attribute name="w" type="long" readonly="yes">
15264 <desc>
15265 W delta.
15266 </desc>
15267 </attribute>
15268
15269 <attribute name="buttons" type="long" readonly="yes">
15270 <desc>
15271 Button state bitmask.
15272 </desc>
15273 </attribute>
15274
15275 </interface>
15276
15277
15278 <interface
15279 name="IVRDEServerChangedEvent" extends="IEvent"
15280 uuid="a06fd66a-3188-4c8c-8756-1395e8cb691c"
15281 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerChanged"
15282 >
15283 <desc>
15284 Notification when a property of the
15285 <link to="IMachine::VRDEServer">VRDE server</link> changes.
15286 Interested callees should use IVRDEServer methods and attributes to
15287 find out what has changed.
15288 </desc>
15289 </interface>
15290
15291 <interface
15292 name="IVRDEServerInfoChangedEvent" extends="IEvent"
15293 uuid="dd6a1080-e1b7-4339-a549-f0878115596e"
15294 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerInfoChanged"
15295 >
15296 <desc>
15297 Notification when the status of the VRDE server changes. Interested callees
15298 should use <link to="IConsole::VRDEServerInfo">IVRDEServerInfo</link>
15299 attributes to find out what is the current status.
15300 </desc>
15301 </interface>
15302
15303 <interface
15304 name="IUSBControllerChangedEvent" extends="IEvent"
15305 uuid="93BADC0C-61D9-4940-A084-E6BB29AF3D83"
15306 wsmap="managed" autogen="VBoxEvent" id="OnUSBControllerChanged"
15307 >
15308 <desc>
15309 Notification when a property of the virtual
15310 <link to="IMachine::USBController">USB controller</link> changes.
15311 Interested callees should use IUSBController methods and attributes to
15312 find out what has changed.
15313 </desc>
15314 </interface>
15315
15316 <interface
15317 name="IUSBDeviceStateChangedEvent" extends="IEvent"
15318 uuid="806da61b-6679-422a-b629-51b06b0c6d93"
15319 wsmap="managed" autogen="VBoxEvent" id="OnUSBDeviceStateChanged"
15320 >
15321 <desc>
15322 Notification when a USB device is attached to or detached from
15323 the virtual USB controller.
15324
15325 This notification is sent as a result of the indirect
15326 request to attach the device because it matches one of the
15327 machine USB filters, or as a result of the direct request
15328 issued by <link to="IConsole::attachUSBDevice"/> or
15329 <link to="IConsole::detachUSBDevice"/>.
15330
15331 This notification is sent in case of both a succeeded and a
15332 failed request completion. When the request succeeds, the
15333 @a error parameter is @c null, and the given device has been
15334 already added to (when @a attached is @c true) or removed from
15335 (when @a attached is @c false) the collection represented by
15336 <link to="IConsole::USBDevices"/>. On failure, the collection
15337 doesn't change and the @a error parameter represents the error
15338 message describing the failure.
15339 </desc>
15340 <attribute name="device" type="IUSBDevice" readonly="yes">
15341 <desc>
15342 Device that is subject to state change.
15343 </desc>
15344 </attribute>
15345 <attribute name="attached" type="boolean" readonly="yes">
15346 <desc>
15347 @c true if the device was attached and @c false otherwise.
15348 </desc>
15349 </attribute>
15350 <attribute name="error" type="IVirtualBoxErrorInfo" readonly="yes">
15351 <desc>
15352 @c null on success or an error message object on failure.
15353 </desc>
15354 </attribute>
15355 </interface>
15356
15357 <interface
15358 name="ISharedFolderChangedEvent" extends="IEvent"
15359 uuid="B66349B5-3534-4239-B2DE-8E1535D94C0B"
15360 wsmap="managed" autogen="VBoxEvent" id="OnSharedFolderChanged"
15361 >
15362 <desc>
15363 Notification when a shared folder is added or removed.
15364 The @a scope argument defines one of three scopes:
15365 <link to="IVirtualBox::sharedFolders">global shared folders</link>
15366 (<link to="Scope_Global">Global</link>),
15367 <link to="IMachine::sharedFolders">permanent shared folders</link> of
15368 the machine (<link to="Scope_Machine">Machine</link>) or <link
15369 to="IConsole::sharedFolders">transient shared folders</link> of the
15370 machine (<link to="Scope_Session">Session</link>). Interested callees
15371 should use query the corresponding collections to find out what has
15372 changed.
15373 </desc>
15374 <attribute name="scope" type="Scope" readonly="yes">
15375 <desc>
15376 Scope of the notification.
15377 </desc>
15378 </attribute>
15379 </interface>
15380
15381 <interface
15382 name="IRuntimeErrorEvent" extends="IEvent"
15383 uuid="883DD18B-0721-4CDE-867C-1A82ABAF914C"
15384 wsmap="managed" autogen="VBoxEvent" id="OnRuntimeError"
15385 >
15386 <desc>
15387 Notification when an error happens during the virtual
15388 machine execution.
15389
15390 There are three kinds of runtime errors:
15391 <ul>
15392 <li><i>fatal</i></li>
15393 <li><i>non-fatal with retry</i></li>
15394 <li><i>non-fatal warnings</i></li>
15395 </ul>
15396
15397 <b>Fatal</b> errors are indicated by the @a fatal parameter set
15398 to @c true. In case of fatal errors, the virtual machine
15399 execution is always paused before calling this notification, and
15400 the notification handler is supposed either to immediately save
15401 the virtual machine state using <link to="IConsole::saveState"/>
15402 or power it off using <link to="IConsole::powerDown"/>.
15403 Resuming the execution can lead to unpredictable results.
15404
15405 <b>Non-fatal</b> errors and warnings are indicated by the
15406 @a fatal parameter set to @c false. If the virtual machine
15407 is in the Paused state by the time the error notification is
15408 received, it means that the user can <i>try to resume</i> the machine
15409 execution after attempting to solve the problem that caused the
15410 error. In this case, the notification handler is supposed
15411 to show an appropriate message to the user (depending on the
15412 value of the @a id parameter) that offers several actions such
15413 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
15414 wants to retry, the notification handler should continue
15415 the machine execution using the <link to="IConsole::resume"/>
15416 call. If the machine execution is not Paused during this
15417 notification, then it means this notification is a <i>warning</i>
15418 (for example, about a fatal condition that can happen very soon);
15419 no immediate action is required from the user, the machine
15420 continues its normal execution.
15421
15422 Note that in either case the notification handler
15423 <b>must not</b> perform any action directly on a thread
15424 where this notification is called. Everything it is allowed to
15425 do is to post a message to another thread that will then talk
15426 to the user and take the corresponding action.
15427
15428 Currently, the following error identifiers are known:
15429 <ul>
15430 <li><tt>"HostMemoryLow"</tt></li>
15431 <li><tt>"HostAudioNotResponding"</tt></li>
15432 <li><tt>"VDIStorageFull"</tt></li>
15433 <li><tt>"3DSupportIncompatibleAdditions"</tt></li>
15434 </ul>
15435 </desc>
15436 <attribute name="fatal" type="boolean" readonly="yes">
15437 <desc>
15438 Whether the error is fatal or not.
15439 </desc>
15440 </attribute>
15441 <attribute name="id" type="wstring" readonly="yes">
15442 <desc>
15443 Error identifier.
15444 </desc>
15445 </attribute>
15446 <attribute name="message" type="wstring" readonly="yes">
15447 <desc>
15448 Optional error message.
15449 </desc>
15450 </attribute>
15451 </interface>
15452
15453
15454 <interface
15455 name="IEventSourceChangedEvent" extends="IEvent"
15456 uuid="e7932cb8-f6d4-4ab6-9cbf-558eb8959a6a"
15457 waitable="yes"
15458 wsmap="managed" autogen="VBoxEvent" id="OnEventSourceChanged"
15459 >
15460 <desc>
15461 Notification when an event source state changes (listener added or removed).
15462 </desc>
15463
15464 <attribute name="listener" type="IEventListener" readonly="yes">
15465 <desc>
15466 Event listener which has changed.
15467 </desc>
15468 </attribute>
15469
15470 <attribute name="add" type="boolean" readonly="yes">
15471 <desc>
15472 Flag whether listener was added or removed.
15473 </desc>
15474 </attribute>
15475 </interface>
15476
15477 <interface
15478 name="IExtraDataChangedEvent" extends="IEvent"
15479 uuid="024F00CE-6E0B-492A-A8D0-968472A94DC7"
15480 wsmap="managed" autogen="VBoxEvent" id="OnExtraDataChanged"
15481 >
15482 <desc>
15483 Notification when machine specific or global extra data
15484 has changed.
15485 </desc>
15486 <attribute name="machineId" type="uuid" mod="string" readonly="yes">
15487 <desc>
15488 ID of the machine this event relates to.
15489 Null for global extra data changes.
15490 </desc>
15491 </attribute>
15492 <attribute name="key" type="wstring" readonly="yes">
15493 <desc>
15494 Extra data key that has changed.
15495 </desc>
15496 </attribute>
15497 <attribute name="value" type="wstring" readonly="yes">
15498 <desc>
15499 Extra data value for the given key.
15500 </desc>
15501 </attribute>
15502 </interface>
15503
15504 <interface
15505 name="IVetoEvent" extends="IEvent"
15506 uuid="9a1a4130-69fe-472f-ac10-c6fa25d75007"
15507 wsmap="managed"
15508 >
15509 <desc>Base abstract interface for veto events.</desc>
15510
15511 <method name="addVeto">
15512 <desc>
15513 Adds a veto on this event.
15514 </desc>
15515 <param name="reason" type="wstring" dir="in">
15516 <desc>
15517 Reason for veto, could be null or empty string.
15518 </desc>
15519 </param>
15520 </method>
15521
15522 <method name="isVetoed">
15523 <desc>
15524 If this event was vetoed.
15525 </desc>
15526 <param name="result" type="boolean" dir="return">
15527 <desc>
15528 Reason for veto.
15529 </desc>
15530 </param>
15531 </method>
15532
15533 <method name="getVetos">
15534 <desc>
15535 Current veto reason list, if size is 0 - no veto.
15536 </desc>
15537 <param name="result" type="wstring" dir="return" safearray="yes">
15538 <desc>
15539 Array of reasons for veto provided by different event handlers.
15540 </desc>
15541 </param>
15542 </method>
15543
15544 </interface>
15545
15546 <interface
15547 name="IExtraDataCanChangeEvent" extends="IVetoEvent"
15548 uuid="245d88bd-800a-40f8-87a6-170d02249a55"
15549 wsmap="managed" autogen="VBoxEvent" id="OnExtraDataCanChange"
15550 waitable="true"
15551 >
15552 <desc>
15553 Notification when someone tries to change extra data for
15554 either the given machine or (if @c null) global extra data.
15555 This gives the chance to veto against changes.
15556 </desc>
15557 <attribute name="machineId" type="uuid" mod="string" readonly="yes">
15558 <desc>
15559 ID of the machine this event relates to.
15560 Null for global extra data changes.
15561 </desc>
15562 </attribute>
15563 <attribute name="key" type="wstring" readonly="yes">
15564 <desc>
15565 Extra data key that has changed.
15566 </desc>
15567 </attribute>
15568 <attribute name="value" type="wstring" readonly="yes">
15569 <desc>
15570 Extra data value for the given key.
15571 </desc>
15572 </attribute>
15573 </interface>
15574
15575 <interface
15576 name="ICanShowWindowEvent" extends="IVetoEvent"
15577 uuid="adf292b0-92c9-4a77-9d35-e058b39fe0b9"
15578 wsmap="managed" autogen="VBoxEvent" id="OnCanShowWindow"
15579 waitable="true"
15580 >
15581 <desc>
15582 Notification when a call to
15583 <link to="IMachine::canShowConsoleWindow"/> is made by a
15584 front-end to check if a subsequent call to
15585 <link to="IMachine::showConsoleWindow"/> can succeed.
15586
15587 The callee should give an answer appropriate to the current
15588 machine state using event veto. This answer must
15589 remain valid at least until the next
15590 <link to="IConsole::state">machine state</link> change.
15591 </desc>
15592 </interface>
15593
15594 <interface
15595 name="IShowWindowEvent" extends="IEvent"
15596 uuid="B0A0904D-2F05-4D28-855F-488F96BAD2B2"
15597 wsmap="managed" autogen="VBoxEvent" id="OnShowWindow"
15598 waitable="true"
15599 >
15600 <desc>
15601 Notification when a call to
15602 <link to="IMachine::showConsoleWindow"/>
15603 requests the console window to be activated and brought to
15604 foreground on the desktop of the host PC.
15605
15606 This notification should cause the VM console process to
15607 perform the requested action as described above. If it is
15608 impossible to do it at a time of this notification, this
15609 method should return a failure.
15610
15611 Note that many modern window managers on many platforms
15612 implement some sort of focus stealing prevention logic, so
15613 that it may be impossible to activate a window without the
15614 help of the currently active application (which is supposedly
15615 an initiator of this notification). In this case, this method
15616 must return a non-zero identifier that represents the
15617 top-level window of the VM console process. The caller, if it
15618 represents a currently active process, is responsible to use
15619 this identifier (in a platform-dependent manner) to perform
15620 actual window activation.
15621
15622 This method must set @a winId to zero if it has performed all
15623 actions necessary to complete the request and the console
15624 window is now active and in foreground, to indicate that no
15625 further action is required on the caller's side.
15626 </desc>
15627 <attribute name="winId" type="long long">
15628 <desc>
15629 Platform-dependent identifier of the top-level VM console
15630 window, or zero if this method has performed all actions
15631 necessary to implement the <i>show window</i> semantics for
15632 the given platform and/or this VirtualBox front-end.
15633 </desc>
15634 </attribute>
15635 </interface>
15636
15637 <interface
15638 name="INATRedirectEvent" extends="IMachineEvent"
15639 uuid="57DE97D7-3CBB-42A0-888F-610D5832D16B"
15640 wsmap="managed" autogen="VBoxEvent" id="OnNATRedirectEvent"
15641 >
15642 <desc>
15643 Notification when NAT redirect rule added or removed.
15644 </desc>
15645 <attribute name="slot" type="unsigned long" readonly="yes">
15646 <desc>
15647 Adapter which NAT attached to.
15648 </desc>
15649 </attribute>
15650 <attribute name="remove" type="boolean" readonly="yes">
15651 <desc>
15652 Whether rule remove or add.
15653 </desc>
15654 </attribute>
15655 <attribute name="name" type="wstring" readonly="yes">
15656 <desc>
15657 Name of the rule.
15658 </desc>
15659 </attribute>
15660 <attribute name="proto" type="NATProtocol" readonly="yes">
15661 <desc>
15662 Protocol (TCP or UDP) of the redirect rule.
15663 </desc>
15664 </attribute>
15665 <attribute name="hostIp" type="wstring" readonly="yes">
15666 <desc>
15667 Host ip address to bind socket on.
15668 </desc>
15669 </attribute>
15670 <attribute name="hostPort" type="long" readonly="yes">
15671 <desc>
15672 Host port to bind socket on.
15673 </desc>
15674 </attribute>
15675 <attribute name="guestIp" type="wstring" readonly="yes">
15676 <desc>
15677 Guest ip address to redirect to.
15678 </desc>
15679 </attribute>
15680 <attribute name="guestPort" type="long" readonly="yes">
15681 <desc>
15682 Guest port to redirect to.
15683 </desc>
15684 </attribute>
15685 </interface>
15686
15687 <module name="VBoxSVC" context="LocalServer">
15688 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
15689 namespace="virtualbox.org">
15690 <interface name="IVirtualBox" default="yes"/>
15691 </class>
15692 </module>
15693
15694 <module name="VBoxC" context="InprocServer" threadingModel="Free">
15695 <class name="Session" uuid="3C02F46D-C9D2-4F11-A384-53F0CF917214"
15696 namespace="virtualbox.org">
15697 <interface name="ISession" default="yes"/>
15698 </class>
15699
15700 <class name="Console" uuid="577230FF-164F-4CAC-8548-312D8275A4A7"
15701 namespace="virtualbox.org">
15702 <interface name="IConsole" default="yes"/>
15703 </class>
15704 </module>
15705
15706</library>
15707
15708</idl>
15709
15710<!-- 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