VirtualBox

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

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

Main/NetworkAdapter: Bandwidth group minor fixes (#5582)

  • Property svn:eol-style set to native
File size: 616.5 KB
Line 
1<?xml version="1.0" ?>
2
3<!--
4
5 Copyright (C) 2006-2011 Oracle Corporation
6
7 This file is part of VirtualBox Open Source Edition (OSE), as
8 available from http://www.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
388 name="SettingsVersion"
389 uuid="52bd6f5f-1adb-4493-975d-581a9c4b803f"
390 >
391 <desc>
392 Settings version of VirtualBox settings files. This is written to
393 the "version" attribute of the root "VirtualBox" element in the settings
394 file XML and indicates which VirtualBox version wrote the file.
395 </desc>
396
397 <const name="Null" value="0">
398 <desc>Null value, indicates invalid version.</desc>
399 </const>
400 <const name="v1_0" value="1">
401 <desc>Legacy settings version, not currently supported.</desc>
402 </const>
403 <const name="v1_1" value="2">
404 <desc>Legacy settings version, not currently supported.</desc>
405 </const>
406 <const name="v1_2" value="3">
407 <desc>Legacy settings version, not currently supported.</desc>
408 </const>
409 <const name="v1_3pre" value="4">
410 <desc>Legacy settings version, not currently supported.</desc>
411 </const>
412 <const name="v1_3" value="5">
413 <desc>Settings version "1.3", written by VirtualBox 2.0.12.</desc>
414 <!--
415 Machine XML: Capitalization of Uart, Lpt elements and many attributes changed.
416 -->
417 </const>
418 <const name="v1_4" value="6">
419 <desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
420 <!--
421 VirtualBox.xml: big DiskRegistry -> MediaRegistry revamp, various HardDisk types merged
422 (was VirtualDiskImage, VMDKImage, VHDImage, ISCSIHardDisk, CustomHardDisk, DiffHardDisk)
423 -->
424 </const>
425 <const name="v1_5" value="7">
426 <desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
427 <!--
428 2008-09-04: 2.0.0 released
429 2008-11-20: settings version 1.5 introduced
430 2008-12-17: 2.1.0 released
431 Machine changes:
432 guest OS identifiers changed;
433 Machine/Hardware/Display/MonitorCount renamed to monitorCount;
434 Machine/Hardware/Display/Accelerate3D renamed to accelerate3D;
435 Machine/Hardware/CPU/CPUCount/@count changed to CPU/@count
436 -->
437 </const>
438 <const name="v1_6" value="8">
439 <desc>Settings version "1.6", written by VirtualBox 2.1.4 (at least).</desc>
440 <!--
441 2008-12-17: 2.1.0 released
442 2008-12-19: settings version 1.6 introduced (is in 2.1 branch)
443 2009-04-08: 2.2.0 released
444 Machine changes: remove all Machine/Hardware/Network/Adapter/HostInterface[@TAPSetup or @TAPTerminate]/ attributes (done)
445 -->
446 </const>
447 <const name="v1_7" value="9">
448 <desc>Settings version "1.7", written by VirtualBox 2.2.x and 3.0.x.</desc>
449 <!--
450 2008-12-17: 2.1.0 released
451 2009-03-11: settings version 1.7 introduced (is in 2.2 branch)
452 2009-04-08: 2.2.0 released
453 VirtualBox.xml additions: NetserviceRegistry with DHCPServers (done)
454 Machine changes: HardDiskAttachments is now StorageControllers (done)
455 -->
456 </const>
457 <const name="v1_8" value="10">
458 <desc>Intermediate settings version "1.8", understood by VirtualBox 3.1.x.</desc>
459 <!--
460 Machine additions: Display/@accelerate2DVideo (done)
461 -->
462 </const>
463 <const name="v1_9" value="11">
464 <desc>Settings version "1.9", written by VirtualBox 3.1.x.</desc>
465 <!--
466 The big storage controller / DVD / Floppy rework (done)
467 -->
468 </const>
469 <const name="v1_10" value="12">
470 <desc>Settings version "1.10", written by VirtualBox 3.2.x.</desc>
471 <!--
472 Machine changes: RTC localOrUTC (done)
473 CPU hot-plug support
474 -->
475 </const>
476 <const name="v1_11" value="13">
477 <desc>Settings version "1.11", written by VirtualBox 4.0.x.</desc>
478 <!--
479 Machine changes: HD Audio controller, per-machine disk registries,
480 /@format attribute for DVD and floppy images.
481 -->
482 </const>
483 <const name="v1_12" value="14">
484 <desc>Settings version "1.12", written by VirtualBox 4.1.x.</desc>
485 <!--
486 Machine changes: raw PCI device attachment;
487 NetworkAdapter changes: bandwidth group.
488 -->
489 </const>
490
491 <const name="Future" value="99999">
492 <desc>Settings version greater than "1.11", written by a future VirtualBox version.</desc>
493 </const>
494 </enum>
495
496 <enum
497 name="AccessMode"
498 uuid="1da0007c-ddf7-4be8-bcac-d84a1558785f"
499 >
500 <desc>
501 Access mode for opening files.
502 </desc>
503
504 <const name="ReadOnly" value="1"/>
505 <const name="ReadWrite" value="2"/>
506 </enum>
507
508 <enum
509 name="MachineState"
510 uuid="ec6c6a9e-113d-4ff4-b44f-0b69f21c97fe"
511 >
512 <desc>
513 Virtual machine execution state.
514
515 This enumeration represents possible values of the <link
516 to="IMachine::state"/> attribute.
517
518 Below is the basic virtual machine state diagram. It shows how the state
519 changes during virtual machine execution. The text in square braces shows
520 a method of the IConsole interface that performs the given state
521 transition.
522
523 <pre>
524 +---------[powerDown()] &lt;- Stuck &lt;--[failure]-+
525 V |
526 +-&gt; PoweredOff --+--&gt;[powerUp()]--&gt; Starting --+ | +-----[resume()]-----+
527 | | | | V |
528 | Aborted -----+ +--&gt; Running --[pause()]--&gt; Paused
529 | | ^ | ^ |
530 | Saved -----------[powerUp()]--&gt; Restoring -+ | | | |
531 | ^ | | | |
532 | | +-----------------------------------------+-|-------------------+ +
533 | | | | |
534 | | +-- Saving &lt;--------[takeSnapshot()]&lt;-------+---------------------+
535 | | | |
536 | +-------- Saving &lt;--------[saveState()]&lt;----------+---------------------+
537 | | |
538 +-------------- Stopping -------[powerDown()]&lt;----------+---------------------+
539 </pre>
540
541 Note that states to the right from PoweredOff, Aborted and Saved in the
542 above diagram are called <i>online VM states</i>. These states
543 represent the virtual machine which is being executed in a dedicated
544 process (usually with a GUI window attached to it where you can see the
545 activity of the virtual machine and interact with it). There are two
546 special pseudo-states, FirstOnline and LastOnline, that can be used in
547 relational expressions to detect if the given machine state is online or
548 not:
549
550 <pre>
551 if (machine.GetState() &gt;= MachineState_FirstOnline &amp;&amp;
552 machine.GetState() &lt;= MachineState_LastOnline)
553 {
554 ...the machine is being executed...
555 }
556 </pre>
557
558 When the virtual machine is in one of the online VM states (that is, being
559 executed), only a few machine settings can be modified. Methods working
560 with such settings contain an explicit note about that. An attempt to
561 change any oter setting or perform a modifying operation during this time
562 will result in the <link to="VBOX_E_INVALID_VM_STATE"/> error.
563
564 All online states except Running, Paused and Stuck are transitional: they
565 represent temporary conditions of the virtual machine that will last as
566 long as the operation that initiated such a condition.
567
568 The Stuck state is a special case. It means that execution of the machine
569 has reached the "Guru Meditation" condition. This condition indicates an
570 internal VMM (virtual machine manager) failure which may happen as a
571 result of either an unhandled low-level virtual hardware exception or one
572 of the recompiler exceptions (such as the <i>too-many-traps</i>
573 condition).
574
575 Note also that any online VM state may transit to the Aborted state. This
576 happens if the process that is executing the virtual machine terminates
577 unexpectedly (for example, crashes). Other than that, the Aborted state is
578 equivalent to PoweredOff.
579
580 There are also a few additional state diagrams that do not deal with
581 virtual machine execution and therefore are shown separately. The states
582 shown on these diagrams are called <i>offline VM states</i> (this includes
583 PoweredOff, Aborted and Saved too).
584
585 The first diagram shows what happens when a lengthy setup operation is
586 being executed (such as <link to="IMachine::attachDevice"/>).
587
588 <pre>
589 +----------------------------------(same state as before the call)------+
590 | |
591 +-&gt; PoweredOff --+ |
592 | | |
593 |-&gt; Aborted -----+--&gt;[lengthy VM configuration call] --&gt; SettingUp -----+
594 | |
595 +-&gt; Saved -------+
596 </pre>
597
598 The next two diagrams demonstrate the process of taking a snapshot of a
599 powered off virtual machine, restoring the state to that as of a snapshot
600 or deleting a snapshot, respectively.
601
602 <pre>
603 +----------------------------------(same state as before the call)------+
604 | |
605 +-&gt; PoweredOff --+ |
606 | +--&gt;[takeSnapshot()] -------------------&gt; Saving ------+
607 +-&gt; Aborted -----+
608
609 +-&gt; PoweredOff --+
610 | |
611 | Aborted -----+--&gt;[restoreSnapshot() ]-------&gt; RestoringSnapshot -+
612 | | [deleteSnapshot() ]-------&gt; DeletingSnapshot --+
613 +-&gt; Saved -------+ |
614 | |
615 +---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
616 </pre>
617
618 Note that the Saving state is present in both the offline state group and
619 online state group. Currently, the only way to determine what group is
620 assumed in a particular case is to remember the previous machine state: if
621 it was Running or Paused, then Saving is an online state, otherwise it is
622 an offline state. This inconsistency may be removed in one of the future
623 versions of VirtualBox by adding a new state.
624
625 <note internal="yes">
626 For whoever decides to touch this enum: In order to keep the
627 comparisons involving FirstOnline and LastOnline pseudo-states valid,
628 the numeric values of these states must be correspondingly updated if
629 needed: for any online VM state, the condition
630 <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
631 @c true. The same relates to transient states for which
632 the condition <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
633 @c true.
634 </note>
635 </desc>
636
637 <const name="Null" value="0">
638 <desc>Null value (never used by the API).</desc>
639 </const>
640 <const name="PoweredOff" value="1">
641 <desc>
642 The machine is not running and has no saved execution state; it has
643 either never been started or been shut down successfully.
644 </desc>
645 </const>
646 <const name="Saved" value="2">
647 <desc>
648 The machine is not currently running, but the execution state of the machine
649 has been saved to an external file when it was running, from where
650 it can be resumed.
651 </desc>
652 </const>
653 <const name="Teleported" value="3">
654 <desc>
655 The machine was teleported to a different host (or process) and then
656 powered off. Take care when powering it on again may corrupt resources
657 it shares with the teleportation target (e.g. disk and network).
658 </desc>
659 </const>
660 <const name="Aborted" value="4">
661 <desc>
662 The process running the machine has terminated abnormally. This may
663 indicate a crash of the VM process in host execution context, or
664 the VM process has been terminated externally.
665 </desc>
666 </const>
667 <const name="Running" value="5">
668 <desc>
669 The machine is currently being executed.
670 <note internal="yes">
671 For whoever decides to touch this enum: In order to keep the
672 comparisons in the old source code valid, this state must immediately
673 precede the Paused state.
674 TODO: Lift this spectacularly wonderful restriction.
675 </note>
676 </desc>
677 </const>
678 <const name="Paused" value="6">
679 <desc>
680 Execution of the machine has been paused.
681 <note internal="yes">
682 For whoever decides to touch this enum: In order to keep the
683 comparisons in the old source code valid, this state must immediately
684 follow the Running state.
685 TODO: Lift this spectacularly wonderful restriction.
686 </note>
687 </desc>
688 </const>
689 <const name="Stuck" value="7">
690 <desc>
691 Execution of the machine has reached the "Guru Meditation"
692 condition. This indicates a severe error in the hypervisor itself.
693 <note internal="yes">
694 bird: Why this uncool name? Could we rename it to "GuruMeditation" or
695 "Guru", perhaps? Or are there some other VMM states that are
696 intended to be lumped in here as well?
697 </note>
698 </desc>
699 </const>
700 <const name="Teleporting" value="8">
701 <desc>
702 The machine is about to be teleported to a different host or process.
703 It is possible to pause a machine in this state, but it will go to the
704 @c TeleportingPausedVM state and it will not be
705 possible to resume it again unless the teleportation fails.
706 </desc>
707 </const>
708 <const name="LiveSnapshotting" value="9">
709 <desc>
710 A live snapshot is being taken. The machine is running normally, but
711 some of the runtime configuration options are inaccessible. Also, if
712 paused while in this state it will transition to
713 @c Saving and it will not be resume the
714 execution until the snapshot operation has completed.
715 </desc>
716 </const>
717 <const name="Starting" value="10">
718 <desc>
719 Machine is being started after powering it on from a
720 zero execution state.
721 </desc>
722 </const>
723 <const name="Stopping" value="11">
724 <desc>
725 Machine is being normally stopped powering it off, or after the guest OS
726 has initiated a shutdown sequence.
727 </desc>
728 </const>
729 <const name="Saving" value="12">
730 <desc>
731 Machine is saving its execution state to a file, or an online
732 snapshot of the machine is being taken.
733 </desc>
734 </const>
735 <const name="Restoring" value="13">
736 <desc>
737 Execution state of the machine is being restored from a file
738 after powering it on from the saved execution state.
739 </desc>
740 </const>
741 <const name="TeleportingPausedVM" value="14">
742 <desc>
743 The machine is being teleported to another host or process, but it is
744 not running. This is the paused variant of the
745 @c state.
746 </desc>
747 </const>
748 <const name="TeleportingIn" value="15">
749 <desc>
750 Teleporting the machine state in from another host or process.
751 </desc>
752 </const>
753 <const name="FaultTolerantSyncing" value="16">
754 <desc>
755 The machine is being synced with a fault tolerant VM running elsewhere.
756 </desc>
757 </const>
758 <const name="DeletingSnapshotOnline" value="17">
759 <desc>
760 Like @c DeletingSnapshot, but the merging of media is ongoing in
761 the background while the machine is running.
762 </desc>
763 </const>
764 <const name="DeletingSnapshotPaused" value="18">
765 <desc>
766 Like @c DeletingSnapshotOnline, but the machine was paused when the
767 merging of differencing media was started.
768 </desc>
769 </const>
770 <const name="RestoringSnapshot" value="19">
771 <desc>
772 A machine snapshot is being restored; this typically does not take long.
773 </desc>
774 </const>
775 <const name="DeletingSnapshot" value="20">
776 <desc>
777 A machine snapshot is being deleted; this can take a long time since this
778 may require merging differencing media. This value indicates that the
779 machine is not running while the snapshot is being deleted.
780 </desc>
781 </const>
782 <const name="SettingUp" value="21">
783 <desc>
784 Lengthy setup operation is in progress.
785 </desc>
786 </const>
787
788 <const name="FirstOnline" value="5" wsmap="suppress"> <!-- Running -->
789 <desc>
790 Pseudo-state: first online state (for use in relational expressions).
791 </desc>
792 </const>
793 <const name="LastOnline" value="18" wsmap="suppress"> <!-- DeletingSnapshotPaused -->
794 <desc>
795 Pseudo-state: last online state (for use in relational expressions).
796 </desc>
797 </const>
798
799 <const name="FirstTransient" value="8" wsmap="suppress"> <!-- Teleporting -->
800 <desc>
801 Pseudo-state: first transient state (for use in relational expressions).
802 </desc>
803 </const>
804 <const name="LastTransient" value="21" wsmap="suppress"> <!-- SettingUp -->
805 <desc>
806 Pseudo-state: last transient state (for use in relational expressions).
807 </desc>
808 </const>
809
810 </enum>
811
812 <enum
813 name="SessionState"
814 uuid="cf2700c0-ea4b-47ae-9725-7810114b94d8"
815 >
816 <desc>
817 Session state. This enumeration represents possible values of
818 <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
819 attributes.
820 </desc>
821
822 <const name="Null" value="0">
823 <desc>Null value (never used by the API).</desc>
824 </const>
825 <const name="Unlocked" value="1">
826 <desc>
827 In <link to="IMachine::sessionState"/>, this means that the machine
828 is not locked for any sessions.
829
830 In <link to="ISession::state"/>, this means that no machine is
831 currently locked for this session.
832 </desc>
833 </const>
834 <const name="Locked" value="2">
835 <desc>
836 In <link to="IMachine::sessionState"/>, this means that the machine
837 is currently locked for a session, whose process identifier can
838 then be found in the <link to="IMachine::sessionPid" /> attribute.
839
840 In <link to="ISession::state"/>, this means that a machine is
841 currently locked for this session, and the mutable machine object
842 can be found in the <link to="ISession::machine"/> attribute
843 (see <link to="IMachine::lockMachine" /> for details).
844 </desc>
845 </const>
846 <const name="Spawning" value="3">
847 <desc>
848 A new process is being spawned for the machine as a result of
849 <link to="IMachine::launchVMProcess"/> call. This state also occurs
850 as a short transient state during an <link to="IMachine::lockMachine"/>
851 call.
852 </desc>
853 </const>
854 <const name="Unlocking" value="4">
855 <desc>
856 The session is being unlocked.
857 </desc>
858 </const>
859 </enum>
860
861 <enum
862 name="CPUPropertyType"
863 uuid="24d356a6-2f45-4abd-b977-1cbe9c4701f5"
864 >
865 <desc>
866 Virtual CPU property type. This enumeration represents possible values of the
867 IMachine get- and setCPUProperty methods.
868 </desc>
869 <const name="Null" value="0">
870 <desc>Null value (never used by the API).</desc>
871 </const>
872 <const name="PAE" value="1">
873 <desc>
874 This setting determines whether VirtualBox will expose the Physical Address
875 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
876 is not available, it will not be reported.
877 </desc>
878 </const>
879 <const name="Synthetic" value="2">
880 <desc>
881 This setting determines whether VirtualBox will expose a synthetic CPU to the guest to allow
882 teleporting between host systems that differ significantly.
883 </desc>
884 </const>
885 </enum>
886
887
888 <enum
889 name="HWVirtExPropertyType"
890 uuid="ce81dfdd-d2b8-4a90-bbea-40ee8b7ffcee"
891 >
892 <desc>
893 Hardware virtualization property type. This enumeration represents possible values
894 for the <link to="IMachine::getHWVirtExProperty"/> and
895 <link to="IMachine::setHWVirtExProperty"/> methods.
896 </desc>
897 <const name="Null" value="0">
898 <desc>Null value (never used by the API).</desc>
899 </const>
900 <const name="Enabled" value="1">
901 <desc>
902 Whether hardware virtualization (VT-x/AMD-V) is enabled at all. If
903 such extensions are not available, they will not be used.
904 </desc>
905 </const>
906 <const name="Exclusive" value="2">
907 <desc>
908 Whether hardware virtualization is used exclusively by VirtualBox. When enabled,
909 VirtualBox assumes it can acquire full and exclusive access to the VT-x or AMD-V
910 feature of the host. To share these with other hypervisors, you must disable this property.
911 </desc>
912 </const>
913 <const name="VPID" value="3">
914 <desc>
915 Whether VT-x VPID is enabled. If this extension is not available, it will not be used.
916 </desc>
917 </const>
918 <const name="NestedPaging" value="4">
919 <desc>
920 Whether Nested Paging is enabled. If this extension is not available, it will not be used.
921 </desc>
922 </const>
923 <const name="LargePages" value="5">
924 <desc>
925 Whether large page allocation is enabled; requires nested paging and a 64 bits host.
926 </desc>
927 </const>
928 <const name="Force" value="6">
929 <desc>
930 Whether the VM should fail to start if hardware virtualization (VT-x/AMD-V) cannot be used. If
931 not set, there will be an automatic fallback to software virtualization.
932 </desc>
933 </const>
934 </enum>
935
936 <enum
937 name="FaultToleranceState"
938 uuid="5124f7ec-6b67-493c-9dee-ee45a44114e1"
939 >
940 <desc>
941 Used with <link to="IMachine::faultToleranceState" />.
942 </desc>
943 <const name="Inactive" value="1">
944 <desc>No fault tolerance enabled.</desc>
945 </const>
946 <const name="Master" value="2">
947 <desc>Fault tolerant master VM.</desc>
948 </const>
949 <const name="Standby" value="3">
950 <desc>Fault tolerant standby VM.</desc>
951 </const>
952 </enum>
953
954 <enum
955 name="LockType"
956 uuid="138b53f8-db4b-47c5-b32b-4ef52f769413"
957 >
958 <desc>
959 Used with <link to="IMachine::lockMachine" />.
960 </desc>
961 <const name="Write" value="2">
962 <desc>Lock the machine for writing.</desc>
963 </const>
964 <const name="Shared" value="1">
965 <desc>Request only a shared read lock for remote-controlling the machine.</desc>
966 </const>
967 </enum>
968
969 <enum
970 name="SessionType"
971 uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
972 >
973 <desc>
974 Session type. This enumeration represents possible values of the
975 <link to="ISession::type"/> attribute.
976 </desc>
977
978 <const name="Null" value="0">
979 <desc>Null value (never used by the API).</desc>
980 </const>
981 <const name="WriteLock" value="1">
982 <desc>
983 Session has acquired an exclusive write lock on a machine
984 using <link to="IMachine::lockMachine"/>.
985 </desc>
986 </const>
987 <const name="Remote" value="2">
988 <desc>
989 Session has launched a VM process using
990 <link to="IMachine::launchVMProcess"/>
991 </desc>
992 </const>
993 <const name="Shared" value="3">
994 <desc>
995 Session has obtained a link to another session using
996 <link to="IMachine::lockMachine"/>
997 </desc>
998 </const>
999 </enum>
1000
1001 <enum
1002 name="DeviceType"
1003 uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
1004 >
1005 <desc>
1006 Device type.
1007 </desc>
1008 <const name="Null" value="0">
1009 <desc>
1010 Null value, may also mean "no device" (not allowed for
1011 <link to="IConsole::getDeviceActivity"/>).
1012 </desc>
1013 </const>
1014 <const name="Floppy" value="1">
1015 <desc>Floppy device.</desc>
1016 </const>
1017 <const name="DVD" value="2">
1018 <desc>CD/DVD-ROM device.</desc>
1019 </const>
1020 <const name="HardDisk" value="3">
1021 <desc>Hard disk device.</desc>
1022 </const>
1023 <const name="Network" value="4">
1024 <desc>Network device.</desc>
1025 </const>
1026 <const name="USB" value="5">
1027 <desc>USB device.</desc>
1028 </const>
1029 <const name="SharedFolder" value="6">
1030 <desc>Shared folder device.</desc>
1031 </const>
1032 </enum>
1033
1034 <enum
1035 name="DeviceActivity"
1036 uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
1037 >
1038 <desc>
1039 Device activity for <link to="IConsole::getDeviceActivity"/>.
1040 </desc>
1041
1042 <const name="Null" value="0"/>
1043 <const name="Idle" value="1"/>
1044 <const name="Reading" value="2"/>
1045 <const name="Writing" value="3"/>
1046 </enum>
1047
1048 <enum
1049 name="ClipboardMode"
1050 uuid="33364716-4008-4701-8f14-be0fa3d62950"
1051 >
1052 <desc>
1053 Host-Guest clipboard interchange mode.
1054 </desc>
1055
1056 <const name="Disabled" value="0"/>
1057 <const name="HostToGuest" value="1"/>
1058 <const name="GuestToHost" value="2"/>
1059 <const name="Bidirectional" value="3"/>
1060 </enum>
1061
1062 <enum
1063 name="Scope"
1064 uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
1065 >
1066 <desc>
1067 Scope of the operation.
1068
1069 A generic enumeration used in various methods to define the action or
1070 argument scope.
1071 </desc>
1072
1073 <const name="Global" value="0"/>
1074 <const name="Machine" value="1"/>
1075 <const name="Session" value="2"/>
1076 </enum>
1077
1078 <enum
1079 name="BIOSBootMenuMode"
1080 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
1081 >
1082 <desc>
1083 BIOS boot menu mode.
1084 </desc>
1085
1086 <const name="Disabled" value="0"/>
1087 <const name="MenuOnly" value="1"/>
1088 <const name="MessageAndMenu" value="2"/>
1089 </enum>
1090
1091 <enum
1092 name="ProcessorFeature"
1093 uuid="64c38e6b-8bcf-45ad-ac03-9b406287c5bf"
1094 >
1095 <desc>
1096 CPU features.
1097 </desc>
1098
1099 <const name="HWVirtEx" value="0"/>
1100 <const name="PAE" value="1"/>
1101 <const name="LongMode" value="2"/>
1102 <const name="NestedPaging" value="3"/>
1103 </enum>
1104
1105 <enum
1106 name="FirmwareType"
1107 uuid="b903f264-c230-483e-ac74-2b37ce60d371"
1108 >
1109 <desc>
1110 Firmware type.
1111 </desc>
1112 <const name="BIOS" value="1">
1113 <desc>BIOS Firmware.</desc>
1114 </const>
1115 <const name="EFI" value="2">
1116 <desc>EFI Firmware, bitness detected basing on OS type.</desc>
1117 </const>
1118 <const name="EFI32" value="3">
1119 <desc>Efi firmware, 32-bit.</desc>
1120 </const>
1121 <const name="EFI64" value="4">
1122 <desc>Efi firmware, 64-bit.</desc>
1123 </const>
1124 <const name="EFIDUAL" value="5">
1125 <desc>Efi firmware, combined 32 and 64-bit.</desc>
1126 </const>
1127 </enum>
1128
1129 <enum
1130 name="PointingHidType"
1131 uuid="0d3c17a2-821a-4b2e-ae41-890c6c60aa97"
1132 >
1133 <desc>
1134 Type of pointing device used in a virtual machine.
1135 </desc>
1136 <const name="None" value="1">
1137 <desc>No mouse.</desc>
1138 </const>
1139 <const name="PS2Mouse" value="2">
1140 <desc>PS/2 auxiliary device, a.k.a. mouse.</desc>
1141 </const>
1142 <const name="USBMouse" value="3">
1143 <desc>USB mouse (relative pointer).</desc>
1144 </const>
1145 <const name="USBTablet" value="4">
1146 <desc>USB tablet (absolute pointer).</desc>
1147 </const>
1148 <const name="ComboMouse" value="5">
1149 <desc>Combined device, working as PS/2 or USB mouse, depending on guest behavior.
1150 Using of such device can have negative performance implications. </desc>
1151 </const>
1152 </enum>
1153
1154 <enum
1155 name="KeyboardHidType"
1156 uuid="5a5b0996-3a3e-44bb-9019-56979812cbcc"
1157 >
1158 <desc>
1159 Type of keyboard device used in a virtual machine.
1160 </desc>
1161 <const name="None" value="1">
1162 <desc>No keyboard.</desc>
1163 </const>
1164 <const name="PS2Keyboard" value="2">
1165 <desc>PS/2 keyboard.</desc>
1166 </const>
1167 <const name="USBKeyboard" value="3">
1168 <desc>USB keyboard.</desc>
1169 </const>
1170 <const name="ComboKeyboard" value="4">
1171 <desc>Combined device, working as PS/2 or USB keyboard, depending on guest behavior.
1172 Using of such device can have negative performance implications. </desc>
1173 </const>
1174 </enum>
1175
1176 <!--
1177 // IVirtualBoxErrorInfo
1178 /////////////////////////////////////////////////////////////////////////
1179 -->
1180
1181 <interface
1182 name="IVirtualBoxErrorInfo" extends="$errorinfo"
1183 uuid="e053d3c0-f493-491b-a735-3a9f0b1feed4"
1184 supportsErrorInfo="no"
1185 wsmap="managed"
1186 >
1187 <desc>
1188 The IVirtualBoxErrorInfo interface represents extended error information.
1189
1190 Extended error information can be set by VirtualBox components after
1191 unsuccessful or partially successful method invocation. This information
1192 can be retrieved by the calling party as an IVirtualBoxErrorInfo object
1193 and then shown to the client in addition to the plain 32-bit result code.
1194
1195 In MS COM, this interface extends the IErrorInfo interface,
1196 in XPCOM, it extends the nsIException interface. In both cases,
1197 it provides a set of common attributes to retrieve error
1198 information.
1199
1200 Sometimes invocation of some component's method may involve methods of
1201 other components that may also fail (independently of this method's
1202 failure), or a series of non-fatal errors may precede a fatal error that
1203 causes method failure. In cases like that, it may be desirable to preserve
1204 information about all errors happened during method invocation and deliver
1205 it to the caller. The <link to="#next"/> attribute is intended
1206 specifically for this purpose and allows to represent a chain of errors
1207 through a single IVirtualBoxErrorInfo object set after method invocation.
1208
1209 Note that errors are stored to a chain in the reverse order, i.e. the
1210 initial error object you query right after method invocation is the last
1211 error set by the callee, the object it points to in the @a next attribute
1212 is the previous error and so on, up to the first error (which is the last
1213 in the chain).
1214 </desc>
1215
1216 <attribute name="resultCode" type="long" readonly="yes">
1217 <desc>
1218 Result code of the error.
1219 Usually, it will be the same as the result code returned
1220 by the method that provided this error information, but not
1221 always. For example, on Win32, CoCreateInstance() will most
1222 likely return E_NOINTERFACE upon unsuccessful component
1223 instantiation attempt, but not the value the component factory
1224 returned. Value is typed 'long', not 'result',
1225 to make interface usable from scripting languages.
1226 <note>
1227 In MS COM, there is no equivalent.
1228 In XPCOM, it is the same as nsIException::result.
1229 </note>
1230 </desc>
1231 </attribute>
1232
1233 <attribute name="interfaceID" type="uuid" mod="string" readonly="yes">
1234 <desc>
1235 UUID of the interface that defined the error.
1236 <note>
1237 In MS COM, it is the same as IErrorInfo::GetGUID, except for the
1238 data type.
1239 In XPCOM, there is no equivalent.
1240 </note>
1241 </desc>
1242 </attribute>
1243
1244 <attribute name="component" type="wstring" readonly="yes">
1245 <desc>
1246 Name of the component that generated the error.
1247 <note>
1248 In MS COM, it is the same as IErrorInfo::GetSource.
1249 In XPCOM, there is no equivalent.
1250 </note>
1251 </desc>
1252 </attribute>
1253
1254 <attribute name="text" type="wstring" readonly="yes">
1255 <desc>
1256 Text description of the error.
1257 <note>
1258 In MS COM, it is the same as IErrorInfo::GetDescription.
1259 In XPCOM, it is the same as nsIException::message.
1260 </note>
1261 </desc>
1262 </attribute>
1263
1264 <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
1265 <desc>
1266 Next error object if there is any, or @c null otherwise.
1267 <note>
1268 In MS COM, there is no equivalent.
1269 In XPCOM, it is the same as nsIException::inner.
1270 </note>
1271 </desc>
1272 </attribute>
1273
1274 </interface>
1275
1276 <!--
1277 // IVirtualBox
1278 /////////////////////////////////////////////////////////////////////////
1279 -->
1280
1281 <interface
1282 name="IDHCPServer" extends="$unknown"
1283 uuid="6cfe387c-74fb-4ca7-bff6-973bec8af7a3"
1284 wsmap="managed"
1285 >
1286 <desc>
1287 The IDHCPServer interface represents the vbox dhcp server configuration.
1288
1289 To enumerate all the dhcp servers on the host, use the
1290 <link to="IVirtualBox::DHCPServers"/> attribute.
1291 </desc>
1292
1293 <attribute name="enabled" type="boolean">
1294 <desc>
1295 specifies if the dhcp server is enabled
1296 </desc>
1297 </attribute>
1298
1299 <attribute name="IPAddress" type="wstring" readonly="yes">
1300 <desc>
1301 specifies server IP
1302 </desc>
1303 </attribute>
1304
1305 <attribute name="networkMask" type="wstring" readonly="yes">
1306 <desc>
1307 specifies server network mask
1308 </desc>
1309 </attribute>
1310
1311 <attribute name="networkName" type="wstring" readonly="yes">
1312 <desc>
1313 specifies internal network name the server is used for
1314 </desc>
1315 </attribute>
1316
1317 <attribute name="lowerIP" type="wstring" readonly="yes">
1318 <desc>
1319 specifies from IP address in server address range
1320 </desc>
1321 </attribute>
1322
1323 <attribute name="upperIP" type="wstring" readonly="yes">
1324 <desc>
1325 specifies to IP address in server address range
1326 </desc>
1327 </attribute>
1328
1329 <method name="setConfiguration">
1330 <desc>
1331 configures the server
1332 <result name="E_INVALIDARG">
1333 invalid configuration supplied
1334 </result>
1335 </desc>
1336 <param name="IPAddress" type="wstring" dir="in">
1337 <desc>
1338 server IP address
1339 </desc>
1340 </param>
1341 <param name="networkMask" type="wstring" dir="in">
1342 <desc>
1343 server network mask
1344 </desc>
1345 </param>
1346 <param name="FromIPAddress" type="wstring" dir="in">
1347 <desc>
1348 server From IP address for address range
1349 </desc>
1350 </param>
1351 <param name="ToIPAddress" type="wstring" dir="in">
1352 <desc>
1353 server To IP address for address range
1354 </desc>
1355 </param>
1356 </method>
1357
1358 <method name="start">
1359 <desc>
1360 Starts DHCP server process.
1361 <result name="E_FAIL">
1362 Failed to start the process.
1363 </result>
1364 </desc>
1365 <param name="networkName" type="wstring" dir="in">
1366 <desc>
1367 Name of internal network DHCP server should attach to.
1368 </desc>
1369 </param>
1370 <param name="trunkName" type="wstring" dir="in">
1371 <desc>
1372 Name of internal network trunk.
1373 </desc>
1374 </param>
1375 <param name="trunkType" type="wstring" dir="in">
1376 <desc>
1377 Type of internal network trunk.
1378 </desc>
1379 </param>
1380 </method>
1381
1382 <method name="stop">
1383 <desc>
1384 Stops DHCP server process.
1385 <result name="E_FAIL">
1386 Failed to stop the process.
1387 </result>
1388 </desc>
1389 </method>
1390 </interface>
1391
1392 <interface
1393 name="IVirtualBox" extends="$unknown"
1394 uuid="d2de270c-1d4b-4c9e-843f-bbb9b47269ff"
1395 wsmap="managed"
1396 >
1397 <desc>
1398 The IVirtualBox interface represents the main interface exposed by the
1399 product that provides virtual machine management.
1400
1401 An instance of IVirtualBox is required for the product to do anything
1402 useful. Even though the interface does not expose this, internally,
1403 IVirtualBox is implemented as a singleton and actually lives in the
1404 process of the VirtualBox server (VBoxSVC.exe). This makes sure that
1405 IVirtualBox can track the state of all virtual machines on a particular
1406 host, regardless of which frontend started them.
1407
1408 To enumerate all the virtual machines on the host, use the
1409 <link to="IVirtualBox::machines"/> attribute.
1410 </desc>
1411
1412 <attribute name="version" type="wstring" readonly="yes">
1413 <desc>
1414 A string representing the version number of the product. The
1415 format is 3 integer numbers divided by dots (e.g. 1.0.1). The
1416 last number represents the build number and will frequently change.
1417 </desc>
1418 </attribute>
1419
1420 <attribute name="revision" type="unsigned long" readonly="yes">
1421 <desc>
1422 The internal build revision number of the product.
1423 </desc>
1424 </attribute>
1425
1426 <attribute name="packageType" type="wstring" readonly="yes">
1427 <desc>
1428 A string representing the package type of this product. The
1429 format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
1430 SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
1431 is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
1432 this.
1433 </desc>
1434 </attribute>
1435
1436 <attribute name="homeFolder" type="wstring" readonly="yes">
1437 <desc>
1438 Full path to the directory where the global settings file,
1439 <tt>VirtualBox.xml</tt>, is stored.
1440
1441 In this version of VirtualBox, the value of this property is
1442 always <tt>&lt;user_dir&gt;/.VirtualBox</tt> (where
1443 <tt>&lt;user_dir&gt;</tt> is the path to the user directory,
1444 as determined by the host OS), and cannot be changed.
1445
1446 This path is also used as the base to resolve relative paths in
1447 places where relative paths are allowed (unless otherwise
1448 expressly indicated).
1449 </desc>
1450 </attribute>
1451
1452 <attribute name="settingsFilePath" type="wstring" readonly="yes">
1453 <desc>
1454 Full name of the global settings file.
1455 The value of this property corresponds to the value of
1456 <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
1457 </desc>
1458 </attribute>
1459
1460 <attribute name="host" type="IHost" readonly="yes">
1461 <desc>Associated host object.</desc>
1462 </attribute>
1463
1464 <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
1465 <desc>Associated system information object.</desc>
1466 </attribute>
1467
1468 <attribute name="machines" type="IMachine" readonly="yes" safearray="yes">
1469 <desc>
1470 Array of machine objects registered within this VirtualBox instance.
1471 </desc>
1472 </attribute>
1473
1474 <attribute name="hardDisks" type="IMedium" readonly="yes" safearray="yes">
1475 <desc>
1476 Array of medium objects known to this VirtualBox installation.
1477
1478 This array contains only base media. All differencing
1479 media of the given base medium can be enumerated using
1480 <link to="IMedium::children"/>.
1481 </desc>
1482 </attribute>
1483
1484 <attribute name="DVDImages" type="IMedium" readonly="yes" safearray="yes">
1485 <desc>
1486 Array of CD/DVD image objects currently in use by this VirtualBox instance.
1487 </desc>
1488 </attribute>
1489
1490 <attribute name="floppyImages" type="IMedium" readonly="yes" safearray="yes">
1491 <desc>
1492 Array of floppy image objects currently in use by this VirtualBox instance.
1493 </desc>
1494 </attribute>
1495
1496 <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
1497
1498 <attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
1499
1500 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
1501 <desc>
1502 Collection of global shared folders. Global shared folders are
1503 available to all virtual machines.
1504
1505 New shared folders are added to the collection using
1506 <link to="#createSharedFolder"/>. Existing shared folders can be
1507 removed using <link to="#removeSharedFolder"/>.
1508
1509 <note>
1510 In the current version of the product, global shared folders are not
1511 implemented and therefore this collection is always empty.
1512 </note>
1513 </desc>
1514 </attribute>
1515
1516 <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
1517 <desc>
1518 Associated performance collector object.
1519 </desc>
1520 </attribute>
1521
1522 <attribute name="DHCPServers" type="IDHCPServer" safearray="yes" readonly="yes">
1523 <desc>
1524 DHCP servers.
1525 </desc>
1526 </attribute>
1527
1528 <attribute name="eventSource" type="IEventSource" readonly="yes">
1529 <desc>
1530 Event source for VirtualBox events.
1531 </desc>
1532 </attribute>
1533
1534 <attribute name="extensionPackManager" type="IExtPackManager" readonly="yes">
1535 <desc>
1536 The extension pack manager.
1537 </desc>
1538 </attribute>
1539
1540
1541 <method name="composeMachineFilename">
1542 <desc>
1543 Returns a recommended full path of the settings file name for a new virtual
1544 machine.
1545
1546 This API serves two purposes:
1547
1548 <ul>
1549 <li>It gets called by <link to="#createMachine" /> if NULL is specified
1550 for the @a settingsFile argument there, which means that API should use
1551 a recommended default file name.</li>
1552
1553 <li>It can be called manually by a client software before creating a machine,
1554 e.g. if that client wants to pre-create the machine directory to create
1555 virtual hard disks in that directory together with the new machine
1556 settings file. In that case, the file name should be stripped from the
1557 full settings file path returned by this function to obtain the
1558 machine directory.</li>
1559 </ul>
1560
1561 See <link to="IMachine::name"/> and <link to="#createMachine"/> for more
1562 details about the machine name.
1563
1564 If @a baseFolder is a @c null or empty string (which is recommended), the
1565 default machine settings folder
1566 (see <link to="ISystemProperties::defaultMachineFolder" />) will be used as
1567 a base folder for the created machine, resulting in a file name like
1568 "/home/user/VirtualBox VMs/name/name.vbox". Otherwise the given base folder
1569 will be used.
1570
1571 This method does not access the host disks. In particular, it does not check
1572 for whether a machine of this name already exists.
1573 </desc>
1574 <param name="name" type="wstring" dir="in">
1575 <desc>Suggested machine name.</desc>
1576 </param>
1577 <param name="baseFolder" type="wstring" dir="in">
1578 <desc>Base machine folder (optional).</desc>
1579 </param>
1580 <param name="file" type="wstring" dir="return">
1581 <desc>Fully qualified path where the machine would be created.</desc>
1582 </param>
1583 </method>
1584
1585 <method name="createMachine">
1586 <desc>
1587 Creates a new virtual machine by creating a machine settings file at
1588 the given location.
1589
1590 VirtualBox machine settings files use a custom XML dialect. Starting
1591 with VirtualBox 4.0, a ".vbox" extension is recommended, but not enforced,
1592 and machine files can be created at arbitrary locations.
1593
1594 However, it is is recommended that machines be created in the default
1595 machine folder (e.g. "/home/user/VirtualBox VMs/name/name.vbox"; see
1596 <link to="ISystemProperties::defaultMachineFolder" />). If you specify
1597 NULL for the @a settingsFile argument, <link to="#composeMachineFilename" />
1598 is called automatically to have such a recommended name composed based
1599 on the machine name given in the @a name argument.
1600
1601 If the resulting settings file already exists, this method will fail,
1602 unless @a forceOverwrite is set.
1603
1604 The new machine is created unregistered, with the initial configuration
1605 set according to the specified guest OS type. A typical sequence of
1606 actions to create a new virtual machine is as follows:
1607
1608 <ol>
1609 <li>
1610 Call this method to have a new machine created. The returned machine
1611 object will be "mutable" allowing to change any machine property.
1612 </li>
1613
1614 <li>
1615 Configure the machine using the appropriate attributes and methods.
1616 </li>
1617
1618 <li>
1619 Call <link to="IMachine::saveSettings" /> to write the settings
1620 to the machine's XML settings file. The configuration of the newly
1621 created machine will not be saved to disk until this method is
1622 called.
1623 </li>
1624
1625 <li>
1626 Call <link to="#registerMachine" /> to add the machine to the list
1627 of machines known to VirtualBox.
1628 </li>
1629 </ol>
1630
1631 The specified guest OS type identifier must match an ID of one of known
1632 guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
1633 array.
1634
1635 Optionally, you may specify an UUID of to assign to the created machine.
1636 However, this is not recommended and you should normally pass an empty
1637 (@c null) UUID to this method so that a new UUID will be automatically
1638 generated for every created machine. You can use UUID
1639 00000000-0000-0000-0000-000000000000 as @c null value.
1640
1641 <note>
1642 There is no way to change the name of the settings file or
1643 subfolder of the created machine directly.
1644 </note>
1645
1646 <result name="VBOX_E_OBJECT_NOT_FOUND">
1647 @a osTypeId is invalid.
1648 </result>
1649 <result name="VBOX_E_FILE_ERROR">
1650 Resulting settings file name is invalid or the settings file already
1651 exists or could not be created due to an I/O error.
1652 </result>
1653 <result name="E_INVALIDARG">
1654 @a name is empty or @c null.
1655 </result>
1656 </desc>
1657
1658 <param name="settingsFile" type="wstring" dir="in">
1659 <desc>Fully qualified path where the settings file should be created,
1660 or NULL for a default folder and file based on the @a name argument
1661 (see <link to="#composeMachineFilename" />).</desc>
1662 </param>
1663 <param name="name" type="wstring" dir="in">
1664 <desc>Machine name.</desc>
1665 </param>
1666 <param name="osTypeId" type="wstring" dir="in">
1667 <desc>Guest OS Type ID.</desc>
1668 </param>
1669 <param name="id" type="uuid" mod="string" dir="in">
1670 <desc>Machine UUID (optional).</desc>
1671 </param>
1672 <param name="forceOverwrite" type="boolean" dir="in">
1673 <desc>If true, an existing machine settings file will be overwritten.</desc>
1674 </param>
1675 <param name="machine" type="IMachine" dir="return">
1676 <desc>Created machine object.</desc>
1677 </param>
1678 </method>
1679
1680 <method name="openMachine">
1681 <desc>
1682 Opens a virtual machine from the existing settings file.
1683 The opened machine remains unregistered until you call
1684 <link to="#registerMachine"/>.
1685
1686 The specified settings file name must be fully qualified.
1687 The file must exist and be a valid machine XML settings file
1688 whose contents will be used to construct the machine object.
1689
1690 <result name="VBOX_E_FILE_ERROR">
1691 Settings file name invalid, not found or sharing violation.
1692 </result>
1693 </desc>
1694 <param name="settingsFile" type="wstring" dir="in">
1695 <desc>
1696 Name of the machine settings file.
1697 </desc>
1698 </param>
1699 <param name="machine" type="IMachine" dir="return">
1700 <desc>Opened machine object.</desc>
1701 </param>
1702 <note>
1703 <link to="IMachine::settingsModified"/> will return
1704 @c false for the created machine, until any of machine settings
1705 are changed.
1706 </note>
1707 </method>
1708
1709 <method name="registerMachine">
1710 <desc>
1711
1712 Registers the machine previously created using
1713 <link to="#createMachine"/> or opened using
1714 <link to="#openMachine"/> within this VirtualBox installation. After
1715 successful method invocation, the
1716 <link to="IMachineRegisteredEvent"/> event is fired.
1717
1718 <note>
1719 This method implicitly calls <link to="IMachine::saveSettings"/>
1720 to save all current machine settings before registering it.
1721 </note>
1722
1723 <result name="VBOX_E_OBJECT_NOT_FOUND">
1724 No matching virtual machine found.
1725 </result>
1726 <result name="VBOX_E_INVALID_OBJECT_STATE">
1727 Virtual machine was not created within this VirtualBox instance.
1728 </result>
1729
1730 </desc>
1731 <param name="machine" type="IMachine" dir="in"/>
1732 </method>
1733
1734 <method name="findMachine">
1735 <desc>
1736 Attempts to find a virtual machine given its name or UUID.
1737
1738 <note>Inaccessible machines cannot be found by name, only by UUID, because their name
1739 cannot safely be determined.</note>
1740
1741 <result name="VBOX_E_OBJECT_NOT_FOUND">
1742 Could not find registered machine matching @a nameOrId.
1743 </result>
1744
1745 </desc>
1746 <param name="nameOrId" type="wstring" dir="in">
1747 <desc>What to search for. This can either be the UUID or the name of a virtual machine.</desc>
1748 </param>
1749 <param name="machine" type="IMachine" dir="return">
1750 <desc>Machine object, if found.</desc>
1751 </param>
1752 </method>
1753
1754 <method name="createAppliance">
1755 <desc>
1756 Creates a new appliance object, which represents an appliance in the Open Virtual Machine
1757 Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
1758 machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
1759 </desc>
1760 <param name="appliance" type="IAppliance" dir="return">
1761 <desc>New appliance.</desc>
1762 </param>
1763 </method>
1764
1765 <method name="createHardDisk">
1766 <desc>
1767 Creates a new base medium object that will use the given storage
1768 format and location for medium data.
1769
1770 Note that the actual storage unit is not created by this method. In
1771 order to do it, and before you are able to attach the created medium
1772 to virtual machines, you must call one of the following methods to
1773 allocate a format-specific storage unit at the specified location:
1774 <ul>
1775 <li><link to="IMedium::createBaseStorage"/></li>
1776 <li><link to="IMedium::createDiffStorage"/></li>
1777 </ul>
1778
1779 Some medium attributes, such as <link to="IMedium::id"/>, may
1780 remain uninitialized until the medium storage unit is successfully
1781 created by one of the above methods.
1782
1783 After the storage unit is successfully created, it will be
1784 accessible through the <link to="#findMedium"/> method and can
1785 be found in the <link to="#hardDisks"/> array.
1786
1787 The list of all storage formats supported by this VirtualBox
1788 installation can be obtained using
1789 <link to="ISystemProperties::mediumFormats"/>. If the @a format
1790 attribute is empty or @c null then the default storage format
1791 specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
1792 be used for creating a storage unit of the medium.
1793
1794 Note that the format of the location string is storage format specific.
1795 See <link to="IMedium::location"/> and IMedium for more details.
1796
1797 <result name="VBOX_E_OBJECT_NOT_FOUND">
1798 @a format identifier is invalid. See
1799 <link to="ISystemProperties::mediumFormats"/>.
1800 </result>
1801 <result name="VBOX_E_FILE_ERROR">
1802 @a location is a not valid file name (for file-based formats only).
1803 </result>
1804 </desc>
1805 <param name="format" type="wstring" dir="in">
1806 <desc>
1807 Identifier of the storage format to use for the new medium.
1808 </desc>
1809 </param>
1810 <param name="location" type="wstring" dir="in">
1811 <desc>
1812 Location of the storage unit for the new medium.
1813 </desc>
1814 </param>
1815 <param name="medium" type="IMedium" dir="return">
1816 <desc>Created medium object.</desc>
1817 </param>
1818 </method>
1819
1820 <method name="openMedium">
1821 <desc>
1822 Opens a medium from an existing storage location.
1823
1824 Once a medium has been opened, it can be passed to other VirtualBox
1825 methods, in particular to <link to="IMachine::attachDevice" />.
1826
1827 Depending on the given device type, the file at the storage location
1828 must be in one of the media formats understood by VirtualBox:
1829
1830 <ul>
1831 <li>With a "HardDisk" device type, the file must be a hard disk image
1832 in one of the formats supported by VirtualBox (see
1833 <link to="ISystemProperties::mediumFormats" />).
1834 After this method succeeds, if the medium is a base medium, it
1835 will be added to the <link to="#hardDisks"/> array attribute. </li>
1836 <li>With a "DVD" device type, the file must be an ISO 9960 CD/DVD image.
1837 After this method succeeds, the medium will be added to the
1838 <link to="#DVDImages"/> array attribute.</li>
1839 <li>With a "Floppy" device type, the file must be an RAW floppy image.
1840 After this method succeeds, the medium will be added to the
1841 <link to="#floppyImages"/> array attribute.</li>
1842 </ul>
1843
1844 After having been opened, the medium can be found by the <link to="#findMedium"/>
1845 method and can be attached to virtual machines. See <link to="IMedium" /> for more details.
1846
1847 The UUID of the newly opened medium will either be retrieved from the
1848 storage location, if the format supports it (e.g. for hard disk images),
1849 or a new UUID will be randomly generated (e.g. for ISO and RAW files).
1850 If for some reason you need to change the medium's UUID, use
1851 <link to="IMedium::setIDs" />.
1852
1853 If a differencing hard disk medium is to be opened by this method, the
1854 operation will succeed only if its parent medium and all ancestors,
1855 if any, are already known to this VirtualBox installation (for example,
1856 were opened by this method before).
1857
1858 This method attempts to guess the storage format of the specified medium
1859 by reading medium data at the specified location.
1860
1861 If @a accessMode is ReadWrite (which it should be for hard disks and floppies),
1862 the image is opened for read/write access and must have according permissions,
1863 as VirtualBox may actually write status information into the disk's metadata
1864 sections.
1865
1866 Note that write access is required for all typical hard disk usage in VirtualBox,
1867 since VirtualBox may need to write metadata such as a UUID into the image.
1868 The only exception is opening a source image temporarily for copying and
1869 cloning (see <link to="IMedium::cloneTo" /> when the image will be closed
1870 again soon.
1871
1872 The format of the location string is storage format specific. See
1873 <link to="IMedium::location"/> and IMedium for more details.
1874
1875 <result name="VBOX_E_FILE_ERROR">
1876 Invalid medium storage file location or could not find the medium
1877 at the specified location.
1878 </result>
1879 <result name="VBOX_E_IPRT_ERROR">
1880 Could not get medium storage format.
1881 </result>
1882 <result name="E_INVALIDARG">
1883 Invalid medium storage format.
1884 </result>
1885 <result name="VBOX_E_INVALID_OBJECT_STATE">
1886 Medium has already been added to a media registry.
1887 </result>
1888 </desc>
1889 <param name="location" type="wstring" dir="in">
1890 <desc>
1891 Location of the storage unit that contains medium data in one of
1892 the supported storage formats.
1893 </desc>
1894 </param>
1895 <param name="deviceType" type="DeviceType" dir="in">
1896 <desc>
1897 Must be one of "HardDisk", "DVD" or "Floppy".
1898 </desc>
1899 </param>
1900 <param name="accessMode" type="AccessMode" dir="in">
1901 <desc>Whether to open the image in read/write or read-only mode. For
1902 a "DVD" device type, this is ignored and read-only mode is always assumed.</desc>
1903 </param>
1904 <param name="medium" type="IMedium" dir="return">
1905 <desc>Opened medium object.</desc>
1906 </param>
1907 </method>
1908
1909 <method name="findMedium">
1910 <desc>
1911 Returns a medium of the given type that uses the given fully qualified
1912 location or UUID to store medium data.
1913
1914 The given medium must be known to this VirtualBox installation, i.e.
1915 it must be previously created by <link to="#createHardDisk"/> or opened
1916 by <link to="#openMedium"/>.
1917
1918 The search is done by comparing the value of the @a location argument to
1919 the <link to="IMedium::location"/> and <link to="IMedium::id" />
1920 attributes of each known medium.
1921
1922 On case sensitive file systems, a case sensitive comparison is performed,
1923 otherwise the case of symbols in the file path is ignored.
1924
1925 <result name="VBOX_E_OBJECT_NOT_FOUND">
1926 No medium object matching @a location found.
1927 </result>
1928 </desc>
1929 <param name="location" type="wstring" dir="in">
1930 <desc>What to search for. This can either be the UUID or the location string of an open medium.</desc>
1931 </param>
1932 <param name="type" type="DeviceType" dir="in">
1933 <desc>Device type (must be HardDisk, DVD or Floppy)</desc>
1934 </param>
1935 <param name="medium" type="IMedium" dir="return">
1936 <desc>Medium object, if found.</desc>
1937 </param>
1938 </method>
1939
1940 <method name="getGuestOSType">
1941 <desc>
1942 Returns an object describing the specified guest OS type.
1943
1944 The requested guest OS type is specified using a string which is a
1945 mnemonic identifier of the guest operating system, such as
1946 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
1947 particular virtual machine can be read or set using the
1948 <link to="IMachine::OSTypeId"/> attribute.
1949
1950 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
1951 available guest OS type objects. Each object has an
1952 <link to="IGuestOSType::id"/> attribute which contains an identifier of
1953 the guest OS this object describes.
1954
1955 <result name="E_INVALIDARG">
1956 @a id is not a valid Guest OS type.
1957 </result>
1958
1959 </desc>
1960 <param name="id" type="uuid" mod="string" dir="in">
1961 <desc>Guest OS type ID string.</desc>
1962 </param>
1963 <param name="type" type="IGuestOSType" dir="return">
1964 <desc>Guest OS type object.</desc>
1965 </param>
1966 </method>
1967
1968 <method name="createSharedFolder">
1969 <desc>
1970 Creates a new global shared folder by associating the given logical
1971 name with the given host path, adds it to the collection of shared
1972 folders and starts sharing it. Refer to the description of
1973 <link to="ISharedFolder"/> to read more about logical names.
1974 <note>
1975 In the current implementation, this operation is not
1976 implemented.
1977 </note>
1978 </desc>
1979 <param name="name" type="wstring" dir="in">
1980 <desc>Unique logical name of the shared folder.</desc>
1981 </param>
1982 <param name="hostPath" type="wstring" dir="in">
1983 <desc>Full path to the shared folder in the host file system.</desc>
1984 </param>
1985 <param name="writable" type="boolean" dir="in">
1986 <desc>Whether the share is writable or readonly</desc>
1987 </param>
1988 <param name="automount" type="boolean" dir="in">
1989 <desc>Whether the share gets automatically mounted by the guest
1990 or not.</desc>
1991 </param>
1992 </method>
1993
1994 <method name="removeSharedFolder">
1995 <desc>
1996 Removes the global shared folder with the given name previously
1997 created by <link to="#createSharedFolder"/> from the collection of
1998 shared folders and stops sharing it.
1999 <note>
2000 In the current implementation, this operation is not
2001 implemented.
2002 </note>
2003 </desc>
2004 <param name="name" type="wstring" dir="in">
2005 <desc>Logical name of the shared folder to remove.</desc>
2006 </param>
2007 </method>
2008
2009 <method name="getExtraDataKeys">
2010 <desc>
2011 Returns an array representing the global extra data keys which currently
2012 have values defined.
2013 </desc>
2014 <param name="value" type="wstring" dir="return" safearray="yes">
2015 <desc>Array of extra data keys.</desc>
2016 </param>
2017 </method>
2018
2019 <method name="getExtraData">
2020 <desc>
2021 Returns associated global extra data.
2022
2023 If the requested data @a key does not exist, this function will
2024 succeed and return an empty string in the @a value argument.
2025
2026 <result name="VBOX_E_FILE_ERROR">
2027 Settings file not accessible.
2028 </result>
2029 <result name="VBOX_E_XML_ERROR">
2030 Could not parse the settings file.
2031 </result>
2032
2033 </desc>
2034 <param name="key" type="wstring" dir="in">
2035 <desc>Name of the data key to get.</desc>
2036 </param>
2037 <param name="value" type="wstring" dir="return">
2038 <desc>Value of the requested data key.</desc>
2039 </param>
2040 </method>
2041
2042 <method name="setExtraData">
2043 <desc>
2044 Sets associated global extra data.
2045
2046 If you pass @c null or empty string as a key @a value, the given @a key
2047 will be deleted.
2048
2049 <note>
2050 Before performing the actual data change, this method will ask all
2051 registered event listener using the
2052 <link to="IExtraDataCanChangeEvent"/>
2053 notification for a permission. If one of the listeners refuses the
2054 new value, the change will not be performed.
2055 </note>
2056 <note>
2057 On success, the
2058 <link to="IExtraDataChangedEvent"/> notification
2059 is called to inform all registered listeners about a successful data
2060 change.
2061 </note>
2062
2063 <result name="VBOX_E_FILE_ERROR">
2064 Settings file not accessible.
2065 </result>
2066 <result name="VBOX_E_XML_ERROR">
2067 Could not parse the settings file.
2068 </result>
2069 <result name="E_ACCESSDENIED">
2070 Modification request refused.
2071 </result>
2072
2073 </desc>
2074 <param name="key" type="wstring" dir="in">
2075 <desc>Name of the data key to set.</desc>
2076 </param>
2077 <param name="value" type="wstring" dir="in">
2078 <desc>Value to assign to the key.</desc>
2079 </param>
2080 </method>
2081
2082 <!--method name="createDHCPServerForInterface">
2083 <desc>
2084 Creates a dhcp server settings to be used for the given interface
2085 <result name="E_INVALIDARG">
2086 Host network interface @a name already exists.
2087 </result>
2088 </desc>
2089 <param name="interface" type="IHostNetworkInterface" dir="in">
2090 <desc>Network Interface</desc>
2091 </param>
2092 <param name="server" type="IDHCPServer" dir="out">
2093 <desc>Dhcp server settings</desc>
2094 </param>
2095 </method-->
2096
2097 <method name="createDHCPServer">
2098 <desc>
2099 Creates a dhcp server settings to be used for the given internal network name
2100 <result name="E_INVALIDARG">
2101 Host network interface @a name already exists.
2102 </result>
2103 </desc>
2104 <param name="name" type="wstring" dir="in">
2105 <desc>server name</desc>
2106 </param>
2107 <param name="server" type="IDHCPServer" dir="return">
2108 <desc>Dhcp server settings</desc>
2109 </param>
2110 </method>
2111
2112 <method name="findDHCPServerByNetworkName">
2113 <desc>
2114 Searches a dhcp server settings to be used for the given internal network name
2115 <result name="E_INVALIDARG">
2116 Host network interface @a name already exists.
2117 </result>
2118
2119 </desc>
2120 <param name="name" type="wstring" dir="in">
2121 <desc>server name</desc>
2122 </param>
2123 <param name="server" type="IDHCPServer" dir="return">
2124 <desc>Dhcp server settings</desc>
2125 </param>
2126 </method>
2127
2128 <!--method name="findDHCPServerForInterface">
2129 <desc>
2130 Searches a dhcp server settings to be used for the given interface
2131 <result name="E_INVALIDARG">
2132 Host network interface @a name already exists.
2133 </result>
2134 </desc>
2135 <param name="interface" type="IHostNetworkInterface" dir="in">
2136 <desc>Network Interface</desc>
2137 </param>
2138 <param name="server" type="IDHCPServer" dir="out">
2139 <desc>Dhcp server settings</desc>
2140 </param>
2141 </method-->
2142
2143 <method name="removeDHCPServer">
2144 <desc>
2145 Removes the dhcp server settings
2146 <result name="E_INVALIDARG">
2147 Host network interface @a name already exists.
2148 </result>
2149 </desc>
2150 <param name="server" type="IDHCPServer" dir="in">
2151 <desc>Dhcp server settings to be removed</desc>
2152 </param>
2153 </method>
2154
2155
2156 <method name="checkFirmwarePresent">
2157 <desc>
2158 Check if this VirtualBox installation has a firmware
2159 of the given type available, either system-wide or per-user.
2160 Optionally, this may return a hint where this firmware can be
2161 downloaded from.
2162 </desc>
2163 <param name="firmwareType" type="FirmwareType" dir="in">
2164 <desc>
2165 Type of firmware to check.
2166 </desc>
2167 </param>
2168 <param name="version" type="wstring" dir="in">
2169 <desc>Expected version number, usually empty string (presently ignored).</desc>
2170 </param>
2171
2172 <param name="url" type="wstring" dir="out">
2173 <desc>
2174 Suggested URL to download this firmware from.
2175 </desc>
2176 </param>
2177
2178 <param name="file" type="wstring" dir="out">
2179 <desc>
2180 Filename of firmware, only valid if result == TRUE.
2181 </desc>
2182 </param>
2183
2184 <param name="result" type="boolean" dir="return">
2185 <desc>If firmware of this type and version is available.</desc>
2186 </param>
2187 </method>
2188
2189 </interface>
2190
2191 <!--
2192 // IVFSExplorer
2193 /////////////////////////////////////////////////////////////////////////
2194 -->
2195
2196 <enum
2197 name="VFSType"
2198 uuid="813999ba-b949-48a8-9230-aadc6285e2f2"
2199 >
2200 <desc>
2201 Virtual file systems supported by VFSExplorer.
2202 </desc>
2203
2204 <const name="File" value="1" />
2205 <const name="Cloud" value="2" />
2206 <const name="S3" value="3" />
2207 <const name="WebDav" value="4" />
2208 </enum>
2209
2210 <enum
2211 name="VFSFileType"
2212 uuid="714333cd-44e2-415f-a245-d378fa9b1242"
2213 >
2214 <desc>
2215 File types known by VFSExplorer.
2216 </desc>
2217
2218 <const name="Unknown" value="1" />
2219 <const name="Fifo" value="2" />
2220 <const name="DevChar" value="3" />
2221 <const name="Directory" value="4" />
2222 <const name="DevBlock" value="5" />
2223 <const name="File" value="6" />
2224 <const name="SymLink" value="7" />
2225 <const name="Socket" value="8" />
2226 <const name="WhiteOut" value="9" />
2227 </enum>
2228
2229 <interface
2230 name="IVFSExplorer" extends="$unknown"
2231 uuid="003d7f92-d38e-487f-b790-8c5e8631cb2f"
2232 wsmap="managed"
2233 >
2234 <desc>
2235 The VFSExplorer interface unifies access to different file system
2236 types. This includes local file systems as well remote file systems like
2237 S3. For a list of supported types see <link to="VFSType" />.
2238 An instance of this is returned by <link to="IAppliance::createVFSExplorer" />.
2239 </desc>
2240
2241 <attribute name="path" type="wstring" readonly="yes">
2242 <desc>Returns the current path in the virtual file system.</desc>
2243 </attribute>
2244
2245 <attribute name="type" type="VFSType" readonly="yes">
2246 <desc>Returns the file system type which is currently in use.</desc>
2247 </attribute>
2248
2249 <method name="update">
2250 <desc>Updates the internal list of files/directories from the
2251 current directory level. Use <link to="#entryList" /> to get the full list
2252 after a call to this method.</desc>
2253
2254 <param name="aProgress" type="IProgress" dir="return">
2255 <desc>Progress object to track the operation completion.</desc>
2256 </param>
2257 </method>
2258
2259 <method name="cd">
2260 <desc>Change the current directory level.</desc>
2261
2262 <param name="aDir" type="wstring" dir="in">
2263 <desc>The name of the directory to go in.</desc>
2264 </param>
2265
2266 <param name="aProgress" type="IProgress" dir="return">
2267 <desc>Progress object to track the operation completion.</desc>
2268 </param>
2269 </method>
2270
2271 <method name="cdUp">
2272 <desc>Go one directory upwards from the current directory level.</desc>
2273
2274 <param name="aProgress" type="IProgress" dir="return">
2275 <desc>Progress object to track the operation completion.</desc>
2276 </param>
2277 </method>
2278
2279 <method name="entryList">
2280 <desc>Returns a list of files/directories after a call to <link
2281 to="#update" />. The user is responsible for keeping this internal
2282 list up do date.</desc>
2283
2284 <param name="aNames" type="wstring" safearray="yes" dir="out">
2285 <desc>The list of names for the entries.</desc>
2286 </param>
2287
2288 <param name="aTypes" type="unsigned long" safearray="yes" dir="out">
2289 <desc>The list of types for the entries.</desc>
2290 </param>
2291
2292 <param name="aSizes" type="unsigned long" safearray="yes" dir="out">
2293 <desc>The list of sizes (in bytes) for the entries.</desc>
2294 </param>
2295
2296 <param name="aModes" type="unsigned long" safearray="yes" dir="out">
2297 <desc>The list of file modes (in octal form) for the entries.</desc>
2298 </param>
2299 </method>
2300
2301 <method name="exists">
2302 <desc>Checks if the given file list exists in the current directory
2303 level.</desc>
2304
2305 <param name="aNames" type="wstring" safearray="yes" dir="in">
2306 <desc>The names to check.</desc>
2307 </param>
2308
2309 <param name="aExists" type="wstring" safearray="yes" dir="return">
2310 <desc>The names which exist.</desc>
2311 </param>
2312 </method>
2313
2314 <method name="remove">
2315 <desc>Deletes the given files in the current directory level.</desc>
2316
2317 <param name="aNames" type="wstring" safearray="yes" dir="in">
2318 <desc>The names to remove.</desc>
2319 </param>
2320
2321 <param name="aProgress" type="IProgress" dir="return">
2322 <desc>Progress object to track the operation completion.</desc>
2323 </param>
2324 </method>
2325
2326 </interface>
2327
2328 <!--
2329 // IAppliance
2330 /////////////////////////////////////////////////////////////////////////
2331 -->
2332
2333 <interface
2334 name="IAppliance" extends="$unknown"
2335 uuid="7b148032-4124-4f46-b56a-b48ac1273f5a"
2336 wsmap="managed"
2337 >
2338 <desc>
2339 Represents a platform-independent appliance in OVF format. An instance of this is returned
2340 by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
2341 virtual machines within an appliance with VirtualBox.
2342
2343 The OVF standard suggests two different physical file formats:
2344
2345 <ol>
2346 <li>If the appliance is distributed as a set of files, there must be at least one XML descriptor
2347 file that conforms to the OVF standard and carries an <tt>.ovf</tt> file extension. If
2348 this descriptor file references other files such as disk images, as OVF appliances typically
2349 do, those additional files must be in the same directory as the descriptor file.</li>
2350
2351 <li>If the appliance is distributed as a single file, it must be in TAR format and have the
2352 <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
2353 files and optionally other files.
2354
2355 At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
2356 be added with a later version.</li>
2357 </ol>
2358
2359 <b>Importing</b> an OVF appliance into VirtualBox as instances of
2360 <link to="IMachine" /> involves the following sequence of API calls:
2361
2362 <ol>
2363 <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
2364 </li>
2365
2366 <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
2367 would like to import. So long as this file is syntactically valid, this will succeed
2368 and fill the appliance object with the parsed data from the OVF file.
2369 </li>
2370
2371 <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
2372 contents of the IAppliance attributes accordingly. These can be inspected by a
2373 VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
2374 user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
2375 instances of <link to="IVirtualSystemDescription" /> which represent the virtual
2376 systems (machines) in the OVF, which in turn describe the virtual hardware prescribed
2377 by the OVF (network and hardware adapters, virtual disk images, memory size and so on).
2378 The GUI can then give the user the option to confirm and/or change these suggestions.
2379 </li>
2380
2381 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2382 virtual system (machine) to override the suggestions made by the interpret() routine.
2383 </li>
2384
2385 <li>Finally, call <link to="#importMachines" /> to create virtual machines in
2386 VirtualBox as instances of <link to="IMachine" /> that match the information in the
2387 virtual system descriptions. After this call succeeded, the UUIDs of the machines created
2388 can be found in the <link to="#machines" /> array attribute.
2389 </li>
2390 </ol>
2391
2392 <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
2393
2394 <ol>
2395 <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
2396 an empty IAppliance object.
2397 </li>
2398
2399 <li>For each machine you would like to export, call <link to="IMachine::export" />
2400 with the IAppliance object you just created. Each such call creates one instance of
2401 <link to="IVirtualSystemDescription" /> inside the appliance.
2402 </li>
2403
2404 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2405 virtual system (machine) to override the suggestions made by the export() routine.
2406 </li>
2407
2408 <li>Finally, call <link to="#write" /> with a path specification to have the OVF
2409 file written.</li>
2410 </ol>
2411
2412 </desc>
2413
2414 <attribute name="path" type="wstring" readonly="yes">
2415 <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
2416 the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
2417 <link to="#write" /> (for export).
2418 This attribute is empty until one of these methods has been called.
2419 </desc>
2420 </attribute>
2421
2422 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
2423 <desc>
2424 Array of virtual disk definitions. One such description exists for each
2425 disk definition in the OVF; each string array item represents one such piece of
2426 disk information, with the information fields separated by tab (\\t) characters.
2427
2428 The caller should be prepared for additional fields being appended to
2429 this string in future versions of VirtualBox and therefore check for
2430 the number of tabs in the strings returned.
2431
2432 In the current version, the following eight fields are returned per string
2433 in the array:
2434
2435 <ol>
2436 <li>Disk ID (unique string identifier given to disk)</li>
2437
2438 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
2439
2440 <li>Populated size (optional unsigned integer indicating the current size of the
2441 disk; can be approximate; -1 if unspecified)</li>
2442
2443 <li>Format (string identifying the disk format, typically
2444 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
2445
2446 <li>Reference (where to find the disk image, typically a file name; if empty,
2447 then the disk should be created on import)</li>
2448
2449 <li>Image size (optional unsigned integer indicating the size of the image,
2450 which need not necessarily be the same as the values specified above, since
2451 the image may be compressed or sparse; -1 if not specified)</li>
2452
2453 <li>Chunk size (optional unsigned integer if the image is split into chunks;
2454 presently unsupported and always -1)</li>
2455
2456 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
2457 </ol>
2458 </desc>
2459 </attribute>
2460
2461 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
2462 <desc> Array of virtual system descriptions. One such description is created
2463 for each virtual system (machine) found in the OVF.
2464 This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::export" />
2465 (for export) has been called.
2466 </desc>
2467 </attribute>
2468
2469 <attribute name="machines" type="wstring" readonly="yes" safearray="yes">
2470 <desc>
2471 Contains the UUIDs of the machines created from the information in this appliances. This is only
2472 relevant for the import case, and will only contain data after a call to <link to="#importMachines" />
2473 succeeded.
2474 </desc>
2475 </attribute>
2476
2477 <method name="read">
2478 <desc>
2479 Reads an OVF file into the appliance object.
2480
2481 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
2482 mere fact that this method returns successfully does not mean that VirtualBox supports all
2483 features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
2484 </desc>
2485 <param name="file" type="wstring" dir="in">
2486 <desc>
2487 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2488 on whether the appliance is distributed as a set of files or as a single file, respectively).
2489 </desc>
2490 </param>
2491 <param name="aProgress" type="IProgress" dir="return">
2492 <desc>Progress object to track the operation completion.</desc>
2493 </param>
2494 </method>
2495
2496 <method name="interpret">
2497 <desc>
2498 Interprets the OVF data that was read when the appliance was constructed. After
2499 calling this method, one can inspect the
2500 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
2501 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
2502 the appliance.
2503
2504 Calling this method is the second step of importing an appliance into VirtualBox;
2505 see <link to="IAppliance" /> for an overview.
2506
2507 After calling this method, one should call <link to="#getWarnings" /> to find out
2508 if problems were encountered during the processing which might later lead to
2509 errors.
2510 </desc>
2511 </method>
2512
2513 <method name="importMachines">
2514 <desc>
2515 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
2516 and other interfaces that match the information contained in the appliance as
2517 closely as possible, as represented by the import instructions in the
2518 <link to="#virtualSystemDescriptions" /> array.
2519
2520 Calling this method is the final step of importing an appliance into VirtualBox;
2521 see <link to="IAppliance" /> for an overview.
2522
2523 Since importing the appliance will most probably involve copying and converting
2524 disk images, which can take a long time, this method operates asynchronously and
2525 returns an IProgress object to allow the caller to monitor the progress.
2526
2527 After the import succeeded, the UUIDs of the IMachine instances created can be
2528 retrieved from the <link to="#machines" /> array attribute.
2529 </desc>
2530
2531 <param name="aProgress" type="IProgress" dir="return">
2532 <desc>Progress object to track the operation completion.</desc>
2533 </param>
2534 </method>
2535
2536 <method name="createVFSExplorer">
2537 <desc>Returns a <link to="IVFSExplorer" /> object for the given URI.</desc>
2538
2539 <param name="aUri" type="wstring" dir="in">
2540 <desc>The URI describing the file system to use.</desc>
2541 </param>
2542
2543 <param name="aExplorer" type="IVFSExplorer" dir="return">
2544 <desc></desc>
2545 </param>
2546 </method>
2547
2548 <method name="write">
2549 <desc>
2550 Writes the contents of the appliance exports into a new OVF file.
2551
2552 Calling this method is the final step of exporting an appliance from VirtualBox;
2553 see <link to="IAppliance" /> for an overview.
2554
2555 Since exporting the appliance will most probably involve copying and converting
2556 disk images, which can take a long time, this method operates asynchronously and
2557 returns an IProgress object to allow the caller to monitor the progress.
2558 </desc>
2559 <param name="format" type="wstring" dir="in">
2560 <desc>
2561 Output format, as a string. Currently supported formats are "ovf-0.9" and "ovf-1.0";
2562 future versions of VirtualBox may support additional formats.
2563 </desc>
2564 </param>
2565 <param name="manifest" type="boolean" dir="in">
2566 <desc>
2567 Indicate if the optional manifest file (.mf) should be written. The manifest file
2568 is used for integrity checks prior import.
2569 </desc>
2570 </param>
2571 <param name="path" type="wstring" dir="in">
2572 <desc>
2573 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2574 on whether the appliance is distributed as a set of files or as a single file, respectively).
2575 </desc>
2576 </param>
2577 <param name="progress" type="IProgress" dir="return">
2578 <desc>Progress object to track the operation completion.</desc>
2579 </param>
2580 </method>
2581
2582 <method name="getWarnings">
2583 <desc>Returns textual warnings which occurred during execution of <link to="#interpret" />.</desc>
2584
2585 <param name="aWarnings" type="wstring" dir="return" safearray="yes">
2586 <desc></desc>
2587 </param>
2588 </method>
2589
2590 </interface>
2591
2592 <enum
2593 name="VirtualSystemDescriptionType"
2594 uuid="c0f8f135-3a1d-417d-afa6-b38b95a91f90"
2595 >
2596 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
2597 a configuration value.</desc>
2598
2599 <const name="Ignore" value="1" />
2600 <const name="OS" value="2" />
2601 <const name="Name" value="3" />
2602 <const name="Product" value="4" />
2603 <const name="Vendor" value="5" />
2604 <const name="Version" value="6" />
2605 <const name="ProductUrl" value="7" />
2606 <const name="VendorUrl" value="8" />
2607 <const name="Description" value="9" />
2608 <const name="License" value="10" />
2609 <const name="Miscellaneous" value="11" />
2610 <const name="CPU" value="12" />
2611 <const name="Memory" value="13" />
2612 <const name="HardDiskControllerIDE" value="14" />
2613 <const name="HardDiskControllerSATA" value="15" />
2614 <const name="HardDiskControllerSCSI" value="16" />
2615 <const name="HardDiskControllerSAS" value="17" />
2616 <const name="HardDiskImage" value="18" />
2617 <const name="Floppy" value="19" />
2618 <const name="CDROM" value="20" />
2619 <const name="NetworkAdapter" value="21" />
2620 <const name="USBController" value="22" />
2621 <const name="SoundCard" value="23" />
2622
2623 </enum>
2624
2625 <enum
2626 name="VirtualSystemDescriptionValueType"
2627 uuid="56d9403f-3425-4118-9919-36f2a9b8c77c"
2628 >
2629 <desc>Used with <link to="IVirtualSystemDescription::getValuesByType" /> to describe the value
2630 type to fetch.</desc>
2631
2632 <const name="Reference" value="1" />
2633 <const name="Original" value="2" />
2634 <const name="Auto" value="3" />
2635 <const name="ExtraConfig" value="4" />
2636
2637 </enum>
2638
2639 <interface
2640 name="IVirtualSystemDescription" extends="$unknown"
2641 uuid="d7525e6c-531a-4c51-8e04-41235083a3d8"
2642 wsmap="managed"
2643 >
2644
2645 <desc>Represents one virtual system (machine) in an appliance. This interface is used in
2646 the <link to="IAppliance::virtualSystemDescriptions" /> array. After
2647 <link to="IAppliance::interpret" /> has been called, that array contains information
2648 about how the virtual systems described in the OVF should best be imported into
2649 VirtualBox virtual machines. See <link to="IAppliance" /> for the steps required to
2650 import an OVF into VirtualBox.
2651 </desc>
2652
2653 <attribute name="count" type="unsigned long" readonly="yes">
2654 <desc>Return the number of virtual system description entries.</desc>
2655 </attribute>
2656
2657 <method name="getDescription">
2658 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
2659 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
2660
2661 The list below identifies the value sets that are possible depending on the
2662 <link to="VirtualSystemDescriptionType" /> enum value in the array item in @a aTypes[]. In each case,
2663 the array item with the same index in @a aOvfValues[] will contain the original value as contained
2664 in the OVF file (just for informational purposes), and the corresponding item in @a aVBoxValues[]
2665 will contain a suggested value to be used for VirtualBox. Depending on the description type,
2666 the @a aExtraConfigValues[] array item may also be used.
2667
2668 <ul>
2669 <li>
2670 "OS": the guest operating system type. There must be exactly one such array item on import. The
2671 corresponding item in @a aVBoxValues[] contains the suggested guest operating system for VirtualBox.
2672 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
2673 item in @a aOvfValues[] will contain a numerical value that described the operating system in the OVF.
2674 </li>
2675 <li>
2676 "Name": the name to give to the new virtual machine. There can be at most one such array item;
2677 if none is present on import, then an automatic name will be created from the operating system
2678 type. The corresponding item im @a aOvfValues[] will contain the suggested virtual machine name
2679 from the OVF file, and @a aVBoxValues[] will contain a suggestion for a unique VirtualBox
2680 <link to="IMachine" /> name that does not exist yet.
2681 </li>
2682 <li>
2683 "Description": an arbitrary description.
2684 </li>
2685 <li>
2686 "License": the EULA section from the OVF, if present. It is the responsibility of the calling
2687 code to display such a license for agreement; the Main API does not enforce any such policy.
2688 </li>
2689 <li>
2690 Miscellaneous: reserved for future use.
2691 </li>
2692 <li>
2693 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
2694 </li>
2695 <li>
2696 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
2697 is present on import, then VirtualBox will set a meaningful default based on the operating system
2698 type.
2699 </li>
2700 <li>
2701 "HardDiskControllerIDE": an IDE hard disk controller. There can be at most two such items.
2702 An optional value in @a aOvfValues[] and @a aVBoxValues[] can be "PIIX3" or "PIIX4" to specify
2703 the type of IDE controller; this corresponds to the ResourceSubType element which VirtualBox
2704 writes into the OVF.
2705 The matching item in the @a aRefs[] array will contain an integer that items of the "Harddisk"
2706 type can use to specify which hard disk controller a virtual disk should be connected to.
2707 Note that in OVF, an IDE controller has two channels, corresponding to "master" and "slave"
2708 in traditional terminology, whereas the IDE storage controller that VirtualBox supports in
2709 its virtual machines supports four channels (primary master, primary slave, secondary master,
2710 secondary slave) and thus maps to two IDE controllers in the OVF sense.
2711 </li>
2712 <li>
2713 "HardDiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
2714 has no value in @a aOvfValues[] or @a aVBoxValues[].
2715 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
2716 </li>
2717 <li>
2718 "HardDiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
2719 The items in @a aOvfValues[] and @a aVBoxValues[] will either be "LsiLogic", "BusLogic" or
2720 "LsiLogicSas". (Note that in OVF, the LsiLogicSas controller is treated as a SCSI controller
2721 whereas VirtualBox considers it a class of storage controllers of its own; see
2722 <link to="StorageControllerType" />).
2723 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
2724 </li>
2725 <li>
2726 "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
2727 arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
2728
2729 The array item in @a aOvfValues[] will contain the file specification from the OVF file (without
2730 a path since the image file should be in the same location as the OVF file itself), whereas the
2731 item in @a aVBoxValues[] will contain a qualified path specification to where VirtualBox uses the
2732 hard disk image. This means that on import the image will be copied and converted from the
2733 "ovf" location to the "vbox" location; on export, this will be handled the other way round.
2734
2735 The matching item in the @a aExtraConfigValues[] array must contain a string of the following
2736 format: "controller=&lt;index&gt;;channel=&lt;c&gt;"
2737 In this string, &lt;index&gt; must be an integer specifying the hard disk controller to connect
2738 the image to. That number must be the index of an array item with one of the hard disk controller
2739 types (HardDiskControllerSCSI, HardDiskControllerSATA, HardDiskControllerIDE).
2740 In addition, &lt;c&gt; must specify the channel to use on that controller. For IDE controllers,
2741 this can be 0 or 1 for master or slave, respectively. For compatibility with VirtualBox versions
2742 before 3.2, the values 2 and 3 (for secondary master and secondary slave) are also supported, but
2743 no longer exported. For SATA and SCSI controllers, the channel can range from 0-29.
2744 </li>
2745 <li>
2746 "CDROM": a virtual CD-ROM drive. The matching item in @a aExtraConfigValue[] contains the same
2747 attachment information as with "HardDiskImage" items.
2748 </li>
2749 <li>
2750 "CDROM": a virtual floppy drive. The matching item in @a aExtraConfigValue[] contains the same
2751 attachment information as with "HardDiskImage" items.
2752 </li>
2753 <li>
2754 "NetworkAdapter": a network adapter. The array item in @a aVBoxValues[] will specify the hardware
2755 for the network adapter, whereas the array item in @a aExtraConfigValues[] will have a string
2756 of the "type=&lt;X&gt;" format, where &lt;X&gt; must be either "NAT" or "Bridged".
2757 </li>
2758 <li>
2759 "USBController": a USB controller. There can be at most one such item. If and only if such an
2760 item ispresent, USB support will be enabled for the new virtual machine.
2761 </li>
2762 <li>
2763 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
2764 present, sound support will be enabled for the new virtual machine. Note that the virtual
2765 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
2766 may be different from the virtual soundcard expected by the appliance.
2767 </li>
2768 </ul>
2769
2770 </desc>
2771
2772 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
2773 <desc></desc>
2774 </param>
2775
2776 <param name="aRefs" type="wstring" dir="out" safearray="yes">
2777 <desc></desc>
2778 </param>
2779
2780 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
2781 <desc></desc>
2782 </param>
2783
2784 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
2785 <desc></desc>
2786 </param>
2787
2788 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
2789 <desc></desc>
2790 </param>
2791
2792 </method>
2793
2794 <method name="getDescriptionByType">
2795 <desc>This is the same as <link to="#getDescription" /> except that you can specify which types
2796 should be returned.</desc>
2797
2798 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
2799 <desc></desc>
2800 </param>
2801
2802 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
2803 <desc></desc>
2804 </param>
2805
2806 <param name="aRefs" type="wstring" dir="out" safearray="yes">
2807 <desc></desc>
2808 </param>
2809
2810 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
2811 <desc></desc>
2812 </param>
2813
2814 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
2815 <desc></desc>
2816 </param>
2817
2818 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
2819 <desc></desc>
2820 </param>
2821
2822 </method>
2823
2824 <method name="getValuesByType">
2825 <desc>This is the same as <link to="#getDescriptionByType" /> except that you can specify which
2826 value types should be returned. See <link to="VirtualSystemDescriptionValueType" /> for possible
2827 values.</desc>
2828
2829 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
2830 <desc></desc>
2831 </param>
2832
2833 <param name="aWhich" type="VirtualSystemDescriptionValueType" dir="in">
2834 <desc></desc>
2835 </param>
2836
2837 <param name="aValues" type="wstring" dir="return" safearray="yes">
2838 <desc></desc>
2839 </param>
2840
2841 </method>
2842
2843 <method name="setFinalValues">
2844 <desc>
2845 This method allows the appliance's user to change the configuration for the virtual
2846 system descriptions. For each array item returned from <link to="#getDescription" />,
2847 you must pass in one boolean value and one configuration value.
2848
2849 Each item in the boolean array determines whether the particular configuration item
2850 should be enabled.
2851 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
2852 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
2853 and SoundCard.
2854
2855 For the "vbox" and "extra configuration" values, if you pass in the same arrays
2856 as returned in the aVBoxValues and aExtraConfigValues arrays from getDescription(),
2857 the configuration remains unchanged. Please see the documentation for getDescription()
2858 for valid configuration values for the individual array item types. If the
2859 corresponding item in the aEnabled array is @c false, the configuration value is ignored.
2860 </desc>
2861
2862 <param name="aEnabled" type="boolean" dir="in" safearray="yes">
2863 <desc></desc>
2864 </param>
2865
2866 <param name="aVBoxValues" type="wstring" dir="in" safearray="yes">
2867 <desc></desc>
2868 </param>
2869
2870 <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
2871 <desc></desc>
2872 </param>
2873 </method>
2874
2875 <method name="addDescription">
2876 <desc>
2877 This method adds an additional description entry to the stack of already
2878 available descriptions for this virtual system. This is handy for writing
2879 values which aren't directly supported by VirtualBox. One example would
2880 be the License type of <link to="VirtualSystemDescriptionType" />.
2881 </desc>
2882
2883 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
2884 <desc></desc>
2885 </param>
2886
2887 <param name="aVBoxValue" type="wstring" dir="in">
2888 <desc></desc>
2889 </param>
2890
2891 <param name="aExtraConfigValue" type="wstring" dir="in">
2892 <desc></desc>
2893 </param>
2894 </method>
2895 </interface>
2896
2897
2898 <!--
2899 // IMachine
2900 /////////////////////////////////////////////////////////////////////////
2901 -->
2902
2903 <interface
2904 name="IInternalMachineControl" extends="$unknown"
2905 uuid="8e723ab0-812c-5662-dd8e-7ebc89637acf"
2906 internal="yes"
2907 wsmap="suppress"
2908 >
2909 <method name="setRemoveSavedStateFile">
2910 <desc>
2911 Updates the flag whether the saved state file is removed on a
2912 machine state change from Saved to PoweredOff.
2913 </desc>
2914 <param name="aRemove" type="boolean" dir="in"/>
2915 </method>
2916
2917 <method name="updateState">
2918 <desc>
2919 Updates the VM state.
2920 <note>
2921 This operation will also update the settings file with the correct
2922 information about the saved state file and delete this file from disk
2923 when appropriate.
2924 </note>
2925 </desc>
2926 <param name="state" type="MachineState" dir="in"/>
2927 </method>
2928
2929 <method name="getIPCId">
2930 <param name="id" type="wstring" dir="return"/>
2931 </method>
2932
2933 <method name="beginPowerUp">
2934 <desc>
2935 Tells VBoxSVC that <link to="IConsole::powerUp"/> is under ways and
2936 gives it the progress object that should be part of any pending
2937 <link to="IMachine::launchVMProcess"/> operations. The progress
2938 object may be called back to reflect an early cancelation, so some care
2939 have to be taken with respect to any cancelation callbacks. The console
2940 object will call <link to="IInternalMachineControl::endPowerUp"/>
2941 to signal the completion of the progress object.
2942 </desc>
2943 <param name="aProgress" type="IProgress" dir="in" />
2944 </method>
2945
2946 <method name="endPowerUp">
2947 <desc>
2948 Tells VBoxSVC that <link to="IConsole::powerUp"/> has completed.
2949 This method may query status information from the progress object it
2950 received in <link to="IInternalMachineControl::beginPowerUp"/> and copy
2951 it over to any in-progress <link to="IMachine::launchVMProcess"/>
2952 call in order to complete that progress object.
2953 </desc>
2954 <param name="result" type="long" dir="in"/>
2955 </method>
2956
2957 <method name="beginPoweringDown">
2958 <desc>
2959 Called by the VM process to inform the server it wants to
2960 stop the VM execution and power down.
2961 </desc>
2962 <param name="progress" type="IProgress" dir="out">
2963 <desc>
2964 Progress object created by VBoxSVC to wait until
2965 the VM is powered down.
2966 </desc>
2967 </param>
2968 </method>
2969
2970 <method name="endPoweringDown">
2971 <desc>
2972 Called by the VM process to inform the server that powering
2973 down previously requested by #beginPoweringDown is either
2974 successfully finished or there was a failure.
2975
2976 <result name="VBOX_E_FILE_ERROR">
2977 Settings file not accessible.
2978 </result>
2979 <result name="VBOX_E_XML_ERROR">
2980 Could not parse the settings file.
2981 </result>
2982
2983 </desc>
2984
2985 <param name="result" type="long" dir="in">
2986 <desc>@c S_OK to indicate success.
2987 </desc>
2988 </param>
2989 <param name="errMsg" type="wstring" dir="in">
2990 <desc>@c human readable error message in case of failure.
2991 </desc>
2992 </param>
2993 </method>
2994
2995 <method name="runUSBDeviceFilters">
2996 <desc>
2997 Asks the server to run USB devices filters of the associated
2998 machine against the given USB device and tell if there is
2999 a match.
3000 <note>
3001 Intended to be used only for remote USB devices. Local
3002 ones don't require to call this method (this is done
3003 implicitly by the Host and USBProxyService).
3004 </note>
3005 </desc>
3006 <param name="device" type="IUSBDevice" dir="in"/>
3007 <param name="matched" type="boolean" dir="out"/>
3008 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
3009 </method>
3010
3011 <method name="captureUSBDevice">
3012 <desc>
3013 Requests a capture of the given host USB device.
3014 When the request is completed, the VM process will
3015 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3016 notification.
3017 </desc>
3018 <param name="id" type="uuid" mod="string" dir="in"/>
3019 </method>
3020
3021 <method name="detachUSBDevice">
3022 <desc>
3023 Notification that a VM is going to detach (@a done = @c false) or has
3024 already detached (@a done = @c true) the given USB device.
3025 When the @a done = @c true request is completed, the VM process will
3026 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
3027 notification.
3028 <note>
3029 In the @a done = @c true case, the server must run its own filters
3030 and filters of all VMs but this one on the detached device
3031 as if it were just attached to the host computer.
3032 </note>
3033 </desc>
3034 <param name="id" type="uuid" mod="string" dir="in"/>
3035 <param name="done" type="boolean" dir="in"/>
3036 </method>
3037
3038 <method name="autoCaptureUSBDevices">
3039 <desc>
3040 Requests a capture all matching USB devices attached to the host.
3041 When the request is completed, the VM process will
3042 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3043 notification per every captured device.
3044 </desc>
3045 </method>
3046
3047 <method name="detachAllUSBDevices">
3048 <desc>
3049 Notification that a VM that is being powered down. The done
3050 parameter indicates whether which stage of the power down
3051 we're at. When @a done = @c false the VM is announcing its
3052 intentions, while when @a done = @c true the VM is reporting
3053 what it has done.
3054 <note>
3055 In the @a done = @c true case, the server must run its own filters
3056 and filters of all VMs but this one on all detach devices as
3057 if they were just attached to the host computer.
3058 </note>
3059 </desc>
3060 <param name="done" type="boolean" dir="in"/>
3061 </method>
3062
3063 <method name="onSessionEnd">
3064 <desc>
3065 Triggered by the given session object when the session is about
3066 to close normally.
3067 </desc>
3068 <param name="session" type="ISession" dir="in">
3069 <desc>Session that is being closed</desc>
3070 </param>
3071 <param name="progress" type="IProgress" dir="return">
3072 <desc>
3073 Used to wait until the corresponding machine is actually
3074 dissociated from the given session on the server.
3075 Returned only when this session is a direct one.
3076 </desc>
3077 </param>
3078 </method>
3079
3080 <method name="beginSavingState">
3081 <desc>
3082 Called by the VM process to inform the server it wants to
3083 save the current state and stop the VM execution.
3084 </desc>
3085 <param name="progress" type="IProgress" dir="out">
3086 <desc>
3087 Progress object created by VBoxSVC to wait until
3088 the state is saved.
3089 </desc>
3090 </param>
3091 <param name="stateFilePath" type="wstring" dir="out">
3092 <desc>
3093 File path the VM process must save the execution state to.
3094 </desc>
3095 </param>
3096 </method>
3097
3098 <method name="endSavingState">
3099 <desc>
3100 Called by the VM process to inform the server that saving
3101 the state previously requested by #beginSavingState is either
3102 successfully finished or there was a failure.
3103
3104 <result name="VBOX_E_FILE_ERROR">
3105 Settings file not accessible.
3106 </result>
3107 <result name="VBOX_E_XML_ERROR">
3108 Could not parse the settings file.
3109 </result>
3110
3111 </desc>
3112
3113 <param name="result" type="long" dir="in">
3114 <desc>@c S_OK to indicate success.
3115 </desc>
3116 </param>
3117 <param name="errMsg" type="wstring" dir="in">
3118 <desc>@c human readable error message in case of failure.
3119 </desc>
3120 </param>
3121 </method>
3122
3123 <method name="adoptSavedState">
3124 <desc>
3125 Gets called by IConsole::adoptSavedState.
3126 <result name="VBOX_E_FILE_ERROR">
3127 Invalid saved state file path.
3128 </result>
3129 </desc>
3130 <param name="savedStateFile" type="wstring" dir="in">
3131 <desc>Path to the saved state file to adopt.</desc>
3132 </param>
3133 </method>
3134
3135 <method name="beginTakingSnapshot">
3136 <desc>
3137 Called from the VM process to request from the server to perform the
3138 server-side actions of creating a snapshot (creating differencing images
3139 and the snapshot object).
3140
3141 <result name="VBOX_E_FILE_ERROR">
3142 Settings file not accessible.
3143 </result>
3144 <result name="VBOX_E_XML_ERROR">
3145 Could not parse the settings file.
3146 </result>
3147 </desc>
3148 <param name="initiator" type="IConsole" dir="in">
3149 <desc>The console object that initiated this call.</desc>
3150 </param>
3151 <param name="name" type="wstring" dir="in">
3152 <desc>Snapshot name.</desc>
3153 </param>
3154 <param name="description" type="wstring" dir="in">
3155 <desc>Snapshot description.</desc>
3156 </param>
3157 <param name="consoleProgress" type="IProgress" dir="in">
3158 <desc>
3159 Progress object created by the VM process tracking the
3160 snapshot's progress. This has the following sub-operations:
3161 <ul>
3162 <li>setting up (weight 1);</li>
3163 <li>one for each medium attachment that needs a differencing image (weight 1 each);</li>
3164 <li>another one to copy the VM state (if offline with saved state, weight is VM memory size in MB);</li>
3165 <li>another one to save the VM state (if online, weight is VM memory size in MB);</li>
3166 <li>finishing up (weight 1)</li>
3167 </ul>
3168 </desc>
3169 </param>
3170 <param name="fTakingSnapshotOnline" type="boolean" dir="in">
3171 <desc>
3172 Whether this is an online snapshot (i.e. the machine is running).
3173 </desc>
3174 </param>
3175 <param name="stateFilePath" type="wstring" dir="out">
3176 <desc>
3177 File path the VM process must save the execution state to.
3178 </desc>
3179 </param>
3180 </method>
3181
3182 <method name="endTakingSnapshot">
3183 <desc>
3184 Called by the VM process to inform the server that the snapshot
3185 previously requested by #beginTakingSnapshot is either
3186 successfully taken or there was a failure.
3187 </desc>
3188
3189 <param name="success" type="boolean" dir="in">
3190 <desc>@c true to indicate success and @c false otherwise</desc>
3191 </param>
3192 </method>
3193
3194 <method name="deleteSnapshot">
3195 <desc>
3196 Gets called by IConsole::deleteSnapshot.
3197 <result name="VBOX_E_INVALID_OBJECT_STATE">
3198 Snapshot has more than one child snapshot.
3199 </result>
3200 </desc>
3201 <param name="initiator" type="IConsole" dir="in">
3202 <desc>The console object that initiated this call.</desc>
3203 </param>
3204 <param name="id" type="uuid" mod="string" dir="in">
3205 <desc>UUID of the snapshot to delete.</desc>
3206 </param>
3207 <param name="machineState" type="MachineState" dir="out">
3208 <desc>New machine state after this operation is started.</desc>
3209 </param>
3210 <param name="progress" type="IProgress" dir="return">
3211 <desc>Progress object to track the operation completion.</desc>
3212 </param>
3213 </method>
3214
3215 <method name="finishOnlineMergeMedium">
3216 <desc>
3217 Gets called by IConsole::onlineMergeMedium.
3218 </desc>
3219 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
3220 <desc>The medium attachment which needs to be cleaned up.</desc>
3221 </param>
3222 <param name="source" type="IMedium" dir="in">
3223 <desc>Merge source medium.</desc>
3224 </param>
3225 <param name="target" type="IMedium" dir="in">
3226 <desc>Merge target medium.</desc>
3227 </param>
3228 <param name="mergeForward" type="boolean" dir="in">
3229 <desc>Merge direction.</desc>
3230 </param>
3231 <param name="parentForTarget" type="IMedium" dir="in">
3232 <desc>For forward merges: new parent for target medium.</desc>
3233 </param>
3234 <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
3235 <desc>For backward merges: list of media which need their parent UUID
3236 updated.</desc>
3237 </param>
3238 </method>
3239
3240 <method name="restoreSnapshot">
3241 <desc>
3242 Gets called by IConsole::RestoreSnapshot.
3243 </desc>
3244 <param name="initiator" type="IConsole" dir="in">
3245 <desc>The console object that initiated this call.</desc>
3246 </param>
3247 <param name="snapshot" type="ISnapshot" dir="in">
3248 <desc>The snapshot to restore the VM state from.</desc>
3249 </param>
3250 <param name="machineState" type="MachineState" dir="out">
3251 <desc>New machine state after this operation is started.</desc>
3252 </param>
3253 <param name="progress" type="IProgress" dir="return">
3254 <desc>Progress object to track the operation completion.</desc>
3255 </param>
3256 </method>
3257
3258 <method name="pullGuestProperties">
3259 <desc>
3260 Get the list of the guest properties matching a set of patterns along
3261 with their values, time stamps and flags and give responsibility for
3262 managing properties to the console.
3263 </desc>
3264 <param name="name" type="wstring" dir="out" safearray="yes">
3265 <desc>
3266 The names of the properties returned.
3267 </desc>
3268 </param>
3269 <param name="value" type="wstring" dir="out" safearray="yes">
3270 <desc>
3271 The values of the properties returned. The array entries match the
3272 corresponding entries in the @a name array.
3273 </desc>
3274 </param>
3275 <param name="timestamp" type="long long" dir="out" safearray="yes">
3276 <desc>
3277 The time stamps of the properties returned. The array entries match
3278 the corresponding entries in the @a name array.
3279 </desc>
3280 </param>
3281 <param name="flags" type="wstring" dir="out" safearray="yes">
3282 <desc>
3283 The flags of the properties returned. The array entries match the
3284 corresponding entries in the @a name array.
3285 </desc>
3286 </param>
3287 </method>
3288
3289 <method name="pushGuestProperty">
3290 <desc>
3291 Update a single guest property in IMachine.
3292 </desc>
3293 <param name="name" type="wstring" dir="in">
3294 <desc>
3295 The name of the property to be updated.
3296 </desc>
3297 </param>
3298 <param name="value" type="wstring" dir="in">
3299 <desc>
3300 The value of the property.
3301 </desc>
3302 </param>
3303 <param name="timestamp" type="long long" dir="in">
3304 <desc>
3305 The timestamp of the property.
3306 </desc>
3307 </param>
3308 <param name="flags" type="wstring" dir="in">
3309 <desc>
3310 The flags of the property.
3311 </desc>
3312 </param>
3313 </method>
3314
3315 <method name="lockMedia">
3316 <desc>
3317 Locks all media attached to the machine for writing and parents of
3318 attached differencing media (if any) for reading. This operation is
3319 atomic so that if it fails no media is actually locked.
3320
3321 This method is intended to be called when the machine is in Starting or
3322 Restoring state. The locked media will be automatically unlocked when
3323 the machine is powered off or crashed.
3324 </desc>
3325 </method>
3326 <method name="unlockMedia">
3327 <desc>
3328 Unlocks all media previously locked using
3329 <link to="IInternalMachineControl::lockMedia"/>.
3330
3331 This method is intended to be used with teleportation so that it is
3332 possible to teleport between processes on the same machine.
3333 </desc>
3334 </method>
3335 </interface>
3336
3337 <interface
3338 name="IBIOSSettings" extends="$unknown"
3339 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
3340 wsmap="managed"
3341 >
3342 <desc>
3343 The IBIOSSettings interface represents BIOS settings of the virtual
3344 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
3345 </desc>
3346 <attribute name="logoFadeIn" type="boolean">
3347 <desc>Fade in flag for BIOS logo animation.</desc>
3348 </attribute>
3349
3350 <attribute name="logoFadeOut" type="boolean">
3351 <desc>Fade out flag for BIOS logo animation.</desc>
3352 </attribute>
3353
3354 <attribute name="logoDisplayTime" type="unsigned long">
3355 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
3356 </attribute>
3357
3358 <attribute name="logoImagePath" type="wstring">
3359 <desc>
3360 Local file system path for external BIOS splash image. Empty string
3361 means the default image is shown on boot.
3362 </desc>
3363 </attribute>
3364
3365 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
3366 <desc>Mode of the BIOS boot device menu.</desc>
3367 </attribute>
3368
3369 <attribute name="ACPIEnabled" type="boolean">
3370 <desc>ACPI support flag.</desc>
3371 </attribute>
3372
3373 <attribute name="IOAPICEnabled" type="boolean">
3374 <desc>
3375 IO APIC support flag. If set, VirtualBox will provide an IO APIC
3376 and support IRQs above 15.
3377 </desc>
3378 </attribute>
3379
3380 <attribute name="timeOffset" type="long long">
3381 <desc>
3382 Offset in milliseconds from the host system time. This allows for
3383 guests running with a different system date/time than the host.
3384 It is equivalent to setting the system date/time in the BIOS except
3385 it is not an absolute value but a relative one. Guest Additions
3386 time synchronization honors this offset.
3387 </desc>
3388 </attribute>
3389
3390 <attribute name="PXEDebugEnabled" type="boolean">
3391 <desc>
3392 PXE debug logging flag. If set, VirtualBox will write extensive
3393 PXE trace information to the release log.
3394 </desc>
3395 </attribute>
3396
3397 </interface>
3398
3399 <enum
3400 name="CleanupMode"
3401 uuid="67897c50-7cca-47a9-83f6-ce8fd8eb5441"
3402 >
3403 <desc>Cleanup mode, used with <link to="IMachine::unregister" />.
3404 </desc>
3405 <const name="UnregisterOnly" value="1">
3406 <desc>Unregister only the machine, but neither delete snapshots nor detach media.</desc>
3407 </const>
3408 <const name="DetachAllReturnNone" value="2">
3409 <desc>Delete all snapshots and detach all media but return none; this will keep all media registered.</desc>
3410 </const>
3411 <const name="DetachAllReturnHardDisksOnly" value="3">
3412 <desc>Delete all snapshots, detach all media and return hard disks for closing, but not removable media.</desc>
3413 </const>
3414 <const name="Full" value="4">
3415 <desc>Delete all snapshots, detach all media and return all media for closing.</desc>
3416 </const>
3417 </enum>
3418
3419 <interface
3420 name="IPciAddress" extends="$unknown"
3421 uuid="D88B324F-DB19-4D3B-A1A9-BF5B127199A8"
3422 wsmap="struct"
3423 >
3424
3425 <desc>
3426 Address on the PCI bus.
3427 </desc>
3428
3429 <attribute name="bus" type="short">
3430 <desc>
3431 Bus number.
3432 </desc>
3433 </attribute>
3434
3435 <attribute name="device" type="short">
3436 <desc>
3437 Device number.
3438 </desc>
3439 </attribute>
3440
3441 <attribute name="devFunction" type="short">
3442 <desc>
3443 Device function number.
3444 </desc>
3445 </attribute>
3446
3447 <method name="asLong">
3448 <desc>
3449 Convert PCI address into long.
3450 </desc>
3451 <param name="result" type="long" dir="return" />
3452 </method>
3453
3454 <method name="fromLong">
3455 <desc>
3456 Make PCI address from long.
3457 </desc>
3458 <param name="number" type="long" dir="in" />
3459 </method>
3460 </interface>
3461
3462 <interface
3463 name="IPciDeviceAttachment" extends="$unknown"
3464 uuid="91f33d6f-e621-4f70-a77e-15f0e3c714d5"
3465 wsmap="struct"
3466 >
3467
3468 <desc>
3469 Information about PCI attachments.
3470 </desc>
3471
3472 <attribute name="name" type="wstring" readonly="yes">
3473 <desc>
3474 Device name.
3475 </desc>
3476 </attribute>
3477
3478 <attribute name="isPhysicalDevice" type="boolean" readonly="yes">
3479 <desc>
3480 If this is physical or virtual device.
3481 </desc>
3482 </attribute>
3483
3484 <attribute name="hostAddress" type="long" readonly="yes">
3485 <desc>
3486 Address of device on the host, applicable only to host devices.
3487 </desc>
3488 </attribute>
3489
3490 <attribute name="guestAddress" type="long" readonly="yes">
3491 <desc>
3492 Address of device on the guest.
3493 </desc>
3494 </attribute>
3495
3496 </interface>
3497
3498
3499 <interface
3500 name="IMachine" extends="$unknown"
3501 uuid="662c175e-a69d-40b8-a77a-1d719d0ab062"
3502 wsmap="managed"
3503 >
3504 <desc>
3505 The IMachine interface represents a virtual machine, or guest, created
3506 in VirtualBox.
3507
3508 This interface is used in two contexts. First of all, a collection of
3509 objects implementing this interface is stored in the
3510 <link to="IVirtualBox::machines"/> attribute which lists all the virtual
3511 machines that are currently registered with this VirtualBox
3512 installation. Also, once a session has been opened for the given virtual
3513 machine (e.g. the virtual machine is running), the machine object
3514 associated with the open session can be queried from the session object;
3515 see <link to="ISession"/> for details.
3516
3517 The main role of this interface is to expose the settings of the virtual
3518 machine and provide methods to change various aspects of the virtual
3519 machine's configuration. For machine objects stored in the
3520 <link to="IVirtualBox::machines"/> collection, all attributes are
3521 read-only unless explicitly stated otherwise in individual attribute
3522 and method descriptions.
3523
3524 In order to change a machine setting, a session for this machine must be
3525 opened using one of the <link to="IMachine::lockMachine" /> or
3526 <link to="IMachine::launchVMProcess"/> methods. After the
3527 machine has been successfully locked for a session, a mutable machine object
3528 needs to be queried from the session object and then the desired settings
3529 changes can be applied to the returned object using IMachine attributes and
3530 methods. See the <link to="ISession"/> interface description for more
3531 information about sessions.
3532
3533 Note that IMachine does not provide methods to control virtual machine
3534 execution (such as start the machine, or power it down) -- these methods
3535 are grouped in a separate interface called <link to="IConsole" />.
3536
3537 <see>ISession, IConsole</see>
3538 </desc>
3539
3540 <attribute name="parent" type="IVirtualBox" readonly="yes">
3541 <desc>Associated parent object.</desc>
3542 </attribute>
3543
3544 <attribute name="accessible" type="boolean" readonly="yes">
3545 <desc>
3546 Whether this virtual machine is currently accessible or not.
3547
3548 A machine is always deemed accessible unless it is registered <i>and</i>
3549 its settings file cannot be read or parsed (either because the file itself
3550 is unavailable or has invalid XML contents).
3551
3552 Every time this property is read, the accessibility state of
3553 this machine is re-evaluated. If the returned value is @c false,
3554 the <link to="#accessError"/> property may be used to get the
3555 detailed error information describing the reason of
3556 inaccessibility, including XML error messages.
3557
3558 When the machine is inaccessible, only the following properties
3559 can be used on it:
3560 <ul>
3561 <li><link to="#parent"/></li>
3562 <li><link to="#id"/></li>
3563 <li><link to="#settingsFilePath"/></li>
3564 <li><link to="#accessible"/></li>
3565 <li><link to="#accessError"/></li>
3566 </ul>
3567
3568 An attempt to access any other property or method will return
3569 an error.
3570
3571 The only possible action you can perform on an inaccessible
3572 machine is to unregister it using the
3573 <link to="IMachine::unregister"/> call (or, to check
3574 for the accessibility state once more by querying this
3575 property).
3576
3577 <note>
3578 In the current implementation, once this property returns
3579 @c true, the machine will never become inaccessible
3580 later, even if its settings file cannot be successfully
3581 read/written any more (at least, until the VirtualBox
3582 server is restarted). This limitation may be removed in
3583 future releases.
3584 </note>
3585 </desc>
3586 </attribute>
3587
3588 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
3589 <desc>
3590 Error information describing the reason of machine
3591 inaccessibility.
3592
3593 Reading this property is only valid after the last call to
3594 <link to="#accessible"/> returned @c false (i.e. the
3595 machine is currently inaccessible). Otherwise, a @c null
3596 IVirtualBoxErrorInfo object will be returned.
3597 </desc>
3598 </attribute>
3599
3600 <attribute name="name" type="wstring">
3601 <desc>
3602 Name of the virtual machine.
3603
3604 Besides being used for human-readable identification purposes
3605 everywhere in VirtualBox, the virtual machine name is also used
3606 as a name of the machine's settings file and as a name of the
3607 subdirectory this settings file resides in. Thus, every time you
3608 change the value of this property, the settings file will be
3609 renamed once you call <link to="#saveSettings"/> to confirm the
3610 change. The containing subdirectory will be also renamed, but
3611 only if it has exactly the same name as the settings file
3612 itself prior to changing this property (for backward compatibility
3613 with previous API releases). The above implies the following
3614 limitations:
3615 <ul>
3616 <li>The machine name cannot be empty.</li>
3617 <li>The machine name can contain only characters that are valid
3618 file name characters according to the rules of the file
3619 system used to store VirtualBox configuration.</li>
3620 <li>You cannot have two or more machines with the same name
3621 if they use the same subdirectory for storing the machine
3622 settings files.</li>
3623 <li>You cannot change the name of the machine if it is running,
3624 or if any file in the directory containing the settings file
3625 is being used by another running machine or by any other
3626 process in the host operating system at a time when
3627 <link to="#saveSettings"/> is called.
3628 </li>
3629 </ul>
3630 If any of the above limitations are hit, <link to="#saveSettings"/>
3631 will return an appropriate error message explaining the exact
3632 reason and the changes you made to this machine will not be saved.
3633
3634 Starting with VirtualBox 4.0, a “.vbox” extension of the settings
3635 file is recommended, but not enforced. (Previous versions always
3636 used a generic ".xml" extension.)
3637 </desc>
3638 </attribute>
3639
3640 <attribute name="description" type="wstring">
3641 <desc>
3642 Description of the virtual machine.
3643
3644 The description attribute can contain any text and is
3645 typically used to describe the hardware and software
3646 configuration of the virtual machine in detail (i.e. network
3647 settings, versions of the installed software and so on).
3648 </desc>
3649 </attribute>
3650
3651 <attribute name="id" type="uuid" mod="string" readonly="yes">
3652 <desc>UUID of the virtual machine.</desc>
3653 </attribute>
3654
3655 <attribute name="OSTypeId" type="wstring">
3656 <desc>
3657 User-defined identifier of the Guest OS type.
3658 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
3659 an IGuestOSType object representing details about the given
3660 Guest OS type.
3661 <note>
3662 This value may differ from the value returned by
3663 <link to="IGuest::OSTypeId"/> if Guest Additions are
3664 installed to the guest OS.
3665 </note>
3666 </desc>
3667 </attribute>
3668
3669 <attribute name="HardwareVersion" type="wstring">
3670 <desc>Hardware version identifier. Internal use only for now.</desc>
3671 </attribute>
3672
3673 <attribute name="hardwareUUID" type="uuid" mod="string">
3674 <desc>
3675 The UUID presented to the guest via memory tables, hardware and guest
3676 properties. For most VMs this is the same as the @a id, but for VMs
3677 which have been cloned or teleported it may be the same as the source
3678 VM. This latter is because the guest shouldn't notice that it was
3679 cloned or teleported.
3680 </desc>
3681 </attribute>
3682
3683 <attribute name="CPUCount" type="unsigned long">
3684 <desc>Number of virtual CPUs in the VM.</desc>
3685 </attribute>
3686
3687 <attribute name="CPUHotPlugEnabled" type="boolean">
3688 <desc>
3689 This setting determines whether VirtualBox allows CPU
3690 hotplugging for this machine.</desc>
3691 </attribute>
3692
3693 <attribute name="CPUExecutionCap" type="unsigned long">
3694 <desc>
3695 Means to limit the number of CPU cycles a guest can use. The unit
3696 is percentage of host CPU cycles per second. The valid range
3697 is 1 - 100. 100 (the default) implies no limit.
3698 </desc>
3699 </attribute>
3700
3701 <attribute name="memorySize" type="unsigned long">
3702 <desc>System memory size in megabytes.</desc>
3703 </attribute>
3704
3705 <attribute name="memoryBalloonSize" type="unsigned long">
3706 <desc>Memory balloon size in megabytes.</desc>
3707 </attribute>
3708
3709 <attribute name="PageFusionEnabled" type="boolean">
3710 <desc>
3711 This setting determines whether VirtualBox allows page
3712 fusion for this machine (64 bits host only).
3713 </desc>
3714 </attribute>
3715
3716 <attribute name="VRAMSize" type="unsigned long">
3717 <desc>Video memory size in megabytes.</desc>
3718 </attribute>
3719
3720 <attribute name="accelerate3DEnabled" type="boolean" default="false">
3721 <desc>
3722 This setting determines whether VirtualBox allows this machine to make
3723 use of the 3D graphics support available on the host.</desc>
3724 </attribute>
3725
3726 <attribute name="accelerate2DVideoEnabled" type="boolean" default="false">
3727 <desc>
3728 This setting determines whether VirtualBox allows this machine to make
3729 use of the 2D video acceleration support available on the host.</desc>
3730 </attribute>
3731
3732 <attribute name="monitorCount" type="unsigned long">
3733 <desc>
3734 Number of virtual monitors.
3735 <note>
3736 Only effective on Windows XP and later guests with
3737 Guest Additions installed.
3738 </note>
3739 </desc>
3740 </attribute>
3741
3742 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
3743 <desc>Object containing all BIOS settings.</desc>
3744 </attribute>
3745
3746 <attribute name="firmwareType" type="FirmwareType">
3747 <desc>Type of firmware (such as legacy BIOS or EFI), used for initial
3748 bootstrap in this VM.</desc>
3749 </attribute>
3750
3751 <attribute name="pointingHidType" type="PointingHidType">
3752 <desc>Type of pointing HID (such as mouse or tablet) used in this VM.
3753 The default is typically "PS2Mouse" but can vary depending on the
3754 requirements of the guest operating system.</desc>
3755 </attribute>
3756
3757 <attribute name="keyboardHidType" type="KeyboardHidType">
3758 <desc>Type of keyboard HID used in this VM.
3759 The default is typically "PS2Keyboard" but can vary depending on the
3760 requirements of the guest operating system.</desc>
3761 </attribute>
3762
3763 <attribute name="hpetEnabled" type="boolean">
3764 <desc>This attribute controls if High Precision Event Timer (HPET) is
3765 enabled in this VM. Use this property if you want to provide guests
3766 with additional time source, or if guest requires HPET to function correctly.
3767 Default is false.</desc>
3768 </attribute>
3769
3770 <attribute name="chipsetType" type="ChipsetType">
3771 <desc>Chipset type used in this VM.</desc>
3772 </attribute>
3773
3774 <attribute name="snapshotFolder" type="wstring">
3775 <desc>
3776 Full path to the directory used to store snapshot data
3777 (differencing media and saved state files) of this machine.
3778
3779 The initial value of this property is
3780 <tt>&lt;</tt><link to="#settingsFilePath">
3781 path_to_settings_file</link><tt>&gt;/&lt;</tt>
3782 <link to="#id">machine_uuid</link>
3783 <tt>&gt;</tt>.
3784
3785 Currently, it is an error to try to change this property on
3786 a machine that has snapshots (because this would require to
3787 move possibly large files to a different location).
3788 A separate method will be available for this purpose later.
3789
3790 <note>
3791 Setting this property to @c null or to an empty string will restore
3792 the initial value.
3793 </note>
3794 <note>
3795 When setting this property, the specified path can be
3796 absolute (full path) or relative to the directory where the
3797 <link to="#settingsFilePath">machine settings file</link>
3798 is located. When reading this property, a full path is
3799 always returned.
3800 </note>
3801 <note>
3802 The specified path may not exist, it will be created
3803 when necessary.
3804 </note>
3805 </desc>
3806 </attribute>
3807
3808 <attribute name="VRDEServer" type="IVRDEServer" readonly="yes">
3809 <desc>VirtualBox Remote Desktop Extension (VRDE) server object.</desc>
3810 </attribute>
3811
3812 <attribute name="mediumAttachments" type="IMediumAttachment" readonly="yes" safearray="yes">
3813 <desc>Array of media attached to this machine.</desc>
3814 </attribute>
3815
3816 <attribute name="USBController" type="IUSBController" readonly="yes">
3817 <desc>
3818 Associated USB controller object.
3819
3820 <note>
3821 If USB functionality is not available in the given edition of
3822 VirtualBox, this method will set the result code to @c E_NOTIMPL.
3823 </note>
3824 </desc>
3825 </attribute>
3826
3827 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
3828 <desc>Associated audio adapter, always present.</desc>
3829 </attribute>
3830
3831 <attribute name="storageControllers" type="IStorageController" readonly="yes" safearray="yes">
3832 <desc>Array of storage controllers attached to this machine.</desc>
3833 </attribute>
3834
3835 <attribute name="settingsFilePath" type="wstring" readonly="yes">
3836 <desc>
3837 Full name of the file containing machine settings data.
3838 </desc>
3839 </attribute>
3840
3841 <attribute name="settingsModified" type="boolean" readonly="yes">
3842 <desc>
3843 Whether the settings of this machine have been modified
3844 (but neither yet saved nor discarded).
3845 <note>
3846 Reading this property is only valid on instances returned
3847 by <link to="ISession::machine"/> and on new machines
3848 created by <link to="IVirtualBox::createMachine"/> or opened
3849 by <link to="IVirtualBox::openMachine"/> but not
3850 yet registered, or on unregistered machines after calling
3851 <link to="IMachine::unregister"/>. For all other
3852 cases, the settings can never be modified.
3853 </note>
3854 <note>
3855 For newly created unregistered machines, the value of this
3856 property is always @c true until <link to="#saveSettings"/>
3857 is called (no matter if any machine settings have been
3858 changed after the creation or not). For opened machines
3859 the value is set to @c false (and then follows to normal rules).
3860 </note>
3861 </desc>
3862 </attribute>
3863
3864 <attribute name="sessionState" type="SessionState" readonly="yes">
3865 <desc>Current session state for this machine.</desc>
3866 </attribute>
3867
3868 <attribute name="sessionType" type="wstring" readonly="yes">
3869 <desc>
3870 Type of the session. If <link to="#sessionState"/> is
3871 Spawning or Locked, this attribute contains the
3872 same value as passed to the
3873 <link to="IMachine::launchVMProcess"/> method in the
3874 @a type parameter. If the session was used with
3875 <link to="IMachine::lockMachine" />, or if
3876 <link to="#sessionState"/> is SessionClosed, the value of this
3877 attribute is an empty string.
3878 </desc>
3879 </attribute>
3880
3881 <attribute name="sessionPid" type="unsigned long" readonly="yes">
3882 <desc>
3883 Identifier of the session process. This attribute contains the
3884 platform-dependent identifier of the process whose session was
3885 used with <link to="IMachine::lockMachine" /> call. The returned
3886 value is only valid if <link to="#sessionState"/> is Locked or
3887 Unlocking by the time this property is read.
3888 </desc>
3889 </attribute>
3890
3891 <attribute name="state" type="MachineState" readonly="yes">
3892 <desc>Current execution state of this machine.</desc>
3893 </attribute>
3894
3895 <attribute name="lastStateChange" type="long long" readonly="yes">
3896 <desc>
3897 Time stamp of the last execution state change,
3898 in milliseconds since 1970-01-01 UTC.
3899 </desc>
3900 </attribute>
3901
3902 <attribute name="stateFilePath" type="wstring" readonly="yes">
3903 <desc>
3904 Full path to the file that stores the execution state of
3905 the machine when it is in the <link to="MachineState_Saved"/> state.
3906 <note>
3907 When the machine is not in the Saved state, this attribute is
3908 an empty string.
3909 </note>
3910 </desc>
3911 </attribute>
3912
3913 <attribute name="logFolder" type="wstring" readonly="yes">
3914 <desc>
3915 Full path to the folder that stores a set of rotated log files
3916 recorded during machine execution. The most recent log file is
3917 named <tt>VBox.log</tt>, the previous log file is
3918 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
3919 in the current version).
3920 </desc>
3921 </attribute>
3922
3923 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
3924 <desc>
3925 Current snapshot of this machine. This is @c null if the machine
3926 currently has no snapshots. If it is not @c null, then it was
3927 set by one of <link to="IConsole::takeSnapshot" />,
3928 <link to="IConsole::deleteSnapshot" />
3929 or <link to="IConsole::restoreSnapshot" />, depending on which
3930 was called last. See <link to="ISnapshot"/> for details.
3931 </desc>
3932 </attribute>
3933
3934 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
3935 <desc>
3936 Number of snapshots taken on this machine. Zero means the
3937 machine doesn't have any snapshots.
3938 </desc>
3939 </attribute>
3940
3941 <attribute name="currentStateModified" type="boolean" readonly="yes">
3942 <desc>
3943 Returns @c true if the current state of the machine is not
3944 identical to the state stored in the current snapshot.
3945
3946 The current state is identical to the current snapshot only
3947 directly after one of the following calls are made:
3948
3949 <ul>
3950 <li><link to="IConsole::restoreSnapshot"/>
3951 </li>
3952 <li><link to="IConsole::takeSnapshot"/> (issued on a
3953 "powered off" or "saved" machine, for which
3954 <link to="#settingsModified"/> returns @c false)
3955 </li>
3956 </ul>
3957
3958 The current state remains identical until one of the following
3959 happens:
3960 <ul>
3961 <li>settings of the machine are changed</li>
3962 <li>the saved state is deleted</li>
3963 <li>the current snapshot is deleted</li>
3964 <li>an attempt to execute the machine is made</li>
3965 </ul>
3966
3967 <note>
3968 For machines that don't have snapshots, this property is
3969 always @c false.
3970 </note>
3971 </desc>
3972 </attribute>
3973
3974 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
3975 <desc>
3976 Collection of shared folders for this machine (permanent shared
3977 folders). These folders are shared automatically at machine startup
3978 and available only to the guest OS installed within this machine.
3979
3980 New shared folders are added to the collection using
3981 <link to="#createSharedFolder"/>. Existing shared folders can be
3982 removed using <link to="#removeSharedFolder"/>.
3983 </desc>
3984 </attribute>
3985
3986 <attribute name="clipboardMode" type="ClipboardMode">
3987 <desc>
3988 Synchronization mode between the host OS clipboard
3989 and the guest OS clipboard.
3990 </desc>
3991 </attribute>
3992
3993 <attribute name="guestPropertyNotificationPatterns" type="wstring">
3994 <desc>
3995 A comma-separated list of simple glob patterns. Changes to guest
3996 properties whose name matches one of the patterns will generate an
3997 <link to="IGuestPropertyChangedEvent"/> signal.
3998 </desc>
3999 </attribute>
4000
4001 <attribute name="teleporterEnabled" type="boolean">
4002 <desc>
4003 When set to @a true, the virtual machine becomes a target teleporter
4004 the next time it is powered on. This can only set to @a true when the
4005 VM is in the @a PoweredOff or @a Aborted state.
4006
4007 <!-- This property is automatically set to @a false when the VM is powered
4008 on. (bird: This doesn't work yet ) -->
4009 </desc>
4010 </attribute>
4011
4012 <attribute name="teleporterPort" type="unsigned long">
4013 <desc>
4014 The TCP port the target teleporter will listen for incoming
4015 teleportations on.
4016
4017 0 means the port is automatically selected upon power on. The actual
4018 value can be read from this property while the machine is waiting for
4019 incoming teleportations.
4020 </desc>
4021 </attribute>
4022
4023 <attribute name="teleporterAddress" type="wstring">
4024 <desc>
4025 The address the target teleporter will listen on. If set to an empty
4026 string, it will listen on all addresses.
4027 </desc>
4028 </attribute>
4029
4030 <attribute name="teleporterPassword" type="wstring">
4031 <desc>
4032 The password to check for on the target teleporter. This is just a
4033 very basic measure to prevent simple hacks and operators accidentally
4034 beaming a virtual machine to the wrong place.
4035 </desc>
4036 </attribute>
4037
4038 <attribute name="faultToleranceState" type="FaultToleranceState">
4039 <desc>
4040 Fault tolerance state; disabled, source or target.
4041 This property can be changed at any time. If you change it for a running
4042 VM, then the fault tolerance address and port must be set beforehand.
4043 </desc>
4044 </attribute>
4045
4046 <attribute name="faultTolerancePort" type="unsigned long">
4047 <desc>
4048 The TCP port the fault tolerance source or target will use for
4049 communication.
4050 </desc>
4051 </attribute>
4052
4053 <attribute name="faultToleranceAddress" type="wstring">
4054 <desc>
4055 The address the fault tolerance source or target.
4056 </desc>
4057 </attribute>
4058
4059 <attribute name="faultTolerancePassword" type="wstring">
4060 <desc>
4061 The password to check for on the standby VM. This is just a
4062 very basic measure to prevent simple hacks and operators accidentally
4063 choosing the wrong standby VM.
4064 </desc>
4065 </attribute>
4066
4067 <attribute name="faultToleranceSyncInterval" type="unsigned long">
4068 <desc>
4069 The interval in ms used for syncing the state between source and target.
4070 </desc>
4071 </attribute>
4072
4073 <attribute name="RTCUseUTC" type="boolean">
4074 <desc>
4075 When set to @a true, the RTC device of the virtual machine will run
4076 in UTC time, otherwise in local time. Especially Unix guests prefer
4077 the time in UTC.
4078 </desc>
4079 </attribute>
4080
4081 <attribute name="ioCacheEnabled" type="boolean">
4082 <desc>
4083 When set to @a true, the builtin I/O cache of the virtual machine
4084 will be enabled.
4085 </desc>
4086 </attribute>
4087
4088 <attribute name="ioCacheSize" type="unsigned long">
4089 <desc>
4090 Maximum size of the I/O cache in MB.
4091 </desc>
4092 </attribute>
4093
4094 <attribute name="bandwidthControl" type="IBandwidthControl" readonly="yes">
4095 <desc>
4096 Bandwidth control manager.
4097 </desc>
4098 </attribute>
4099
4100 <attribute name="pciDeviceAssignments" type="IPciDeviceAttachment" readonly="yes" safearray="yes">
4101 <desc>Array of PCI devices assigned to this machine, to get list of all PCI devices
4102 attached to the machine use IConsole::attachedPciDevices attribute, as
4103 this attribute is intended to list only devices additional to what
4104 described in virtual hardware config. Usually, this list keeps host's
4105 physical devices assigned to the particular machine.
4106 </desc>
4107 </attribute>
4108
4109 <method name="lockMachine">
4110 <desc>
4111 Locks the machine for the given session to enable the caller
4112 to make changes to the machine or start the VM or control
4113 VM execution.
4114
4115 There are two ways to lock a machine for such uses:
4116
4117 <ul>
4118 <li>If you want to make changes to the machine settings,
4119 you must obtain an exclusive write lock on the machine
4120 by setting @a lockType to @c Write.
4121
4122 This will only succeed if no other process has locked
4123 the machine to prevent conflicting changes. Only after
4124 an exclusive write lock has been obtained using this method, one
4125 can change all VM settings or execute the VM in the process
4126 space of the session object. (Note that the latter is only of
4127 interest if you actually want to write a new front-end for
4128 virtual machines; but this API gets called internally by
4129 the existing front-ends such as VBoxHeadless and the VirtualBox
4130 GUI to acquire a write lock on the machine that they are running.)
4131
4132 On success, write-locking the machine for a session creates
4133 a second copy of the IMachine object. It is this second object
4134 upon which changes can be made; in VirtualBox terminology, the
4135 second copy is "mutable". It is only this second, mutable machine
4136 object upon which you can call methods that change the
4137 machine state. After having called this method, you can
4138 obtain this second, mutable machine object using the
4139 <link to="ISession::machine" /> attribute.
4140 </li>
4141 <li>If you only want to check the machine state or control
4142 machine execution without actually changing machine
4143 settings (e.g. to get access to VM statistics or take
4144 a snapshot or save the machine state), then set the
4145 @a lockType argument to @c Shared.
4146
4147 If no other session has obtained a lock, you will obtain an
4148 exclusive write lock as described above. However, if another
4149 session has already obtained such a lock, then a link to that
4150 existing session will be established which allows you
4151 to control that existing session.
4152
4153 To find out which type of lock was obtained, you can
4154 inspect <link to="ISession::type" />, which will have been
4155 set to either @c WriteLock or @c Shared.
4156 </li>
4157 </ul>
4158
4159 In either case, you can get access to the <link to="IConsole" />
4160 object which controls VM execution.
4161
4162 Also in all of the above cases, one must always call
4163 <link to="ISession::unlockMachine" /> to release the lock on the machine, or
4164 the machine's state will eventually be set to "Aborted".
4165
4166 To change settings on a machine, the following sequence is typically
4167 performed:
4168
4169 <ol>
4170 <li>Call this method to obtain an exclusive write lock for the current session.</li>
4171
4172 <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
4173
4174 <li>Change the settings of the machine by invoking IMachine methods.</li>
4175
4176 <li>Call <link to="IMachine::saveSettings" />.</li>
4177
4178 <li>Release the write lock by calling <link to="ISession::unlockMachine"/>.</li>
4179 </ol>
4180
4181 <result name="E_UNEXPECTED">
4182 Virtual machine not registered.
4183 </result>
4184 <result name="E_ACCESSDENIED">
4185 Process not started by OpenRemoteSession.
4186 </result>
4187 <result name="VBOX_E_INVALID_OBJECT_STATE">
4188 Session already open or being opened.
4189 </result>
4190 <result name="VBOX_E_VM_ERROR">
4191 Failed to assign machine to session.
4192 </result>
4193 </desc>
4194 <param name="session" type="ISession" dir="in">
4195 <desc>
4196 Session object for which the machine will be locked.
4197 </desc>
4198 </param>
4199 <param name="lockType" type="LockType" dir="in">
4200 <desc>
4201 If set to @c Write, then attempt to acquire an exclusive write lock or fail.
4202 If set to @c Shared, then either acquire an exclusive write lock or establish
4203 a link to an existing session.
4204 </desc>
4205 </param>
4206 </method>
4207
4208 <method name="launchVMProcess">
4209 <desc>
4210 Spawns a new process that will execute the virtual machine and obtains a shared
4211 lock on the machine for the calling session.
4212
4213 If launching the VM succeeds, the new VM process will create its own session
4214 and write-lock the machine for it, preventing conflicting changes from other
4215 processes. If the machine is already locked (because it is already running or
4216 because another session has a write lock), launching the VM process will therefore
4217 fail. Reversely, future attempts to obtain a write lock will also fail while the
4218 machine is running.
4219
4220 The caller's session object remains separate from the session opened by the new
4221 VM process. It receives its own <link to="IConsole" /> object which can be used
4222 to control machine execution, but it cannot be used to change all VM settings
4223 which would be available after a <link to="#lockMachine" /> call.
4224
4225 The caller must eventually release the session's shared lock by calling
4226 <link to="ISession::unlockMachine" /> on the local session object once this call
4227 has returned. However, the session's state (see <link to="ISession::state" />)
4228 will not return to "Unlocked" until the remote session has also unlocked
4229 the machine (i.e. the machine has stopped running).
4230
4231 Launching a VM process can take some time (a new VM is started in a new process,
4232 for which memory and other resources need to be set up). Because of this,
4233 an <link to="IProgress" /> object is returned to allow the caller to wait
4234 for this asynchronous operation to be completed. Until then, the caller's
4235 session object remains in the "Unlocked" state, and its <link to="ISession::machine" />
4236 and <link to="ISession::console" /> attributes cannot be accessed.
4237 It is recommended to use <link to="IProgress::waitForCompletion" /> or
4238 similar calls to wait for completion. Completion is signalled when the VM
4239 is powered on. If launching the VM fails, error messages can be queried
4240 via the progress object, if available.
4241
4242 The progress object will have at least 2 sub-operations. The first
4243 operation covers the period up to the new VM process calls powerUp.
4244 The subsequent operations mirror the <link to="IConsole::powerUp"/>
4245 progress object. Because <link to="IConsole::powerUp"/> may require
4246 some extra sub-operations, the <link to="IProgress::operationCount"/>
4247 may change at the completion of operation.
4248
4249 For details on the teleportation progress operation, see
4250 <link to="IConsole::powerUp"/>.
4251
4252 The @a environment argument is a string containing definitions of
4253 environment variables in the following format:
4254 @code
4255 NAME[=VALUE]\n
4256 NAME[=VALUE]\n
4257 ...
4258 @endcode
4259 where <tt>\\n</tt> is the new line character. These environment
4260 variables will be appended to the environment of the VirtualBox server
4261 process. If an environment variable exists both in the server process
4262 and in this list, the value from this list takes precedence over the
4263 server's variable. If the value of the environment variable is
4264 omitted, this variable will be removed from the resulting environment.
4265 If the environment string is @c null or empty, the server environment
4266 is inherited by the started process as is.
4267
4268 <result name="E_UNEXPECTED">
4269 Virtual machine not registered.
4270 </result>
4271 <result name="E_INVALIDARG">
4272 Invalid session type @a type.
4273 </result>
4274 <result name="VBOX_E_OBJECT_NOT_FOUND">
4275 No machine matching @a machineId found.
4276 </result>
4277 <result name="VBOX_E_INVALID_OBJECT_STATE">
4278 Session already open or being opened.
4279 </result>
4280 <result name="VBOX_E_IPRT_ERROR">
4281 Launching process for machine failed.
4282 </result>
4283 <result name="VBOX_E_VM_ERROR">
4284 Failed to assign machine to session.
4285 </result>
4286 </desc>
4287 <param name="session" type="ISession" dir="in">
4288 <desc>
4289 Client session object to which the VM process will be connected (this
4290 must be in "Unlocked" state).
4291 </desc>
4292 </param>
4293 <param name="type" type="wstring" dir="in">
4294 <desc>
4295 Front-end to use for the new VM process. The following are currently supported:
4296 <ul>
4297 <li><tt>"gui"</tt>: VirtualBox Qt GUI front-end</li>
4298 <li><tt>"headless"</tt>: VBoxHeadless (VRDE Server) front-end</li>
4299 <li><tt>"sdl"</tt>: VirtualBox SDL front-end</li>
4300 </ul>
4301 </desc>
4302 </param>
4303 <param name="environment" type="wstring" dir="in">
4304 <desc>
4305 Environment to pass to the VM process.
4306 </desc>
4307 </param>
4308 <param name="progress" type="IProgress" dir="return">
4309 <desc>Progress object to track the operation completion.</desc>
4310 </param>
4311 </method>
4312
4313 <method name="setBootOrder">
4314 <desc>
4315 Puts the given device to the specified position in
4316 the boot order.
4317
4318 To indicate that no device is associated with the given position,
4319 <link to="DeviceType_Null"/> should be used.
4320
4321 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4322
4323 <result name="E_INVALIDARG">
4324 Boot @a position out of range.
4325 </result>
4326 <result name="E_NOTIMPL">
4327 Booting from USB @a device currently not supported.
4328 </result>
4329
4330 </desc>
4331 <param name="position" type="unsigned long" dir="in">
4332 <desc>
4333 Position in the boot order (@c 1 to the total number of
4334 devices the machine can boot from, as returned by
4335 <link to="ISystemProperties::maxBootPosition"/>).
4336 </desc>
4337 </param>
4338 <param name="device" type="DeviceType" dir="in">
4339 <desc>
4340 The type of the device used to boot at the given position.
4341 </desc>
4342 </param>
4343 </method>
4344
4345 <method name="getBootOrder" const="yes">
4346 <desc>
4347 Returns the device type that occupies the specified
4348 position in the boot order.
4349
4350 @todo [remove?]
4351 If the machine can have more than one device of the returned type
4352 (such as hard disks), then a separate method should be used to
4353 retrieve the individual device that occupies the given position.
4354
4355 If here are no devices at the given position, then
4356 <link to="DeviceType_Null"/> is returned.
4357
4358 @todo getHardDiskBootOrder(), getNetworkBootOrder()
4359
4360 <result name="E_INVALIDARG">
4361 Boot @a position out of range.
4362 </result>
4363
4364 </desc>
4365 <param name="position" type="unsigned long" dir="in">
4366 <desc>
4367 Position in the boot order (@c 1 to the total number of
4368 devices the machine can boot from, as returned by
4369 <link to="ISystemProperties::maxBootPosition"/>).
4370 </desc>
4371 </param>
4372 <param name="device" type="DeviceType" dir="return">
4373 <desc>
4374 Device at the given position.
4375 </desc>
4376 </param>
4377 </method>
4378
4379 <method name="attachDevice">
4380 <desc>
4381 Attaches a device and optionally mounts a medium to the given storage
4382 controller (<link to="IStorageController" />, identified by @a name),
4383 at the indicated port and device.
4384
4385 This method is intended for managing storage devices in general while a
4386 machine is powered off. It can be used to attach and detach fixed
4387 and removable media. The following kind of media can be attached
4388 to a machine:
4389
4390 <ul>
4391 <li>For fixed and removable media, you can pass in a medium that was
4392 previously opened using <link to="IVirtualBox::openMedium" />.
4393 </li>
4394
4395 <li>Only for storage devices supporting removable media (such as
4396 DVDs and floppies), you can also specify a null pointer to
4397 indicate an empty drive or one of the medium objects listed
4398 in the <link to="IHost::DVDDrives" /> and <link to="IHost::floppyDrives"/>
4399 arrays to indicate a host drive.
4400 For removable devices, you can also use <link to="IMachine::mountMedium"/>
4401 to change the media while the machine is running.
4402 </li>
4403 </ul>
4404
4405 In a VM's default configuration of virtual machines, the secondary
4406 master of the IDE controller is used for a CD/DVD drive.
4407
4408 After calling this returns successfully, a new instance of
4409 <link to="IMediumAttachment"/> will appear in the machine's list of medium
4410 attachments (see <link to="IMachine::mediumAttachments"/>).
4411
4412 See <link to="IMedium"/> and <link to="IMediumAttachment"/> for more
4413 information about attaching media.
4414
4415 The specified device slot must not have a device attached to it,
4416 or this method will fail.
4417
4418 <note>
4419 You cannot attach a device to a newly created machine until
4420 this machine's settings are saved to disk using
4421 <link to="#saveSettings"/>.
4422 </note>
4423 <note>
4424 If the medium is being attached indirectly, a new differencing medium
4425 will implicitly be created for it and attached instead. If the
4426 changes made to the machine settings (including this indirect
4427 attachment) are later cancelled using <link to="#discardSettings"/>,
4428 this implicitly created differencing medium will implicitly
4429 be deleted.
4430 </note>
4431
4432 <result name="E_INVALIDARG">
4433 SATA device, SATA port, IDE port or IDE slot out of range, or
4434 file or UUID not found.
4435 </result>
4436 <result name="VBOX_E_INVALID_OBJECT_STATE">
4437 Machine must be registered before media can be attached.
4438 </result>
4439 <result name="VBOX_E_INVALID_VM_STATE">
4440 Invalid machine state.
4441 </result>
4442 <result name="VBOX_E_OBJECT_IN_USE">
4443 A medium is already attached to this or another virtual machine.
4444 </result>
4445
4446 </desc>
4447 <param name="name" type="wstring" dir="in">
4448 <desc>Name of the storage controller to attach the device to.</desc>
4449 </param>
4450 <param name="controllerPort" type="long" dir="in">
4451 <desc>Port to attach the device to. For an IDE controller, 0 specifies
4452 the primary controller and 1 specifies the secondary controller.
4453 For a SCSI controller, this must range from 0 to 15; for a SATA controller,
4454 from 0 to 29; for an SAS controller, from 0 to 7.</desc>
4455 </param>
4456 <param name="device" type="long" dir="in">
4457 <desc>Device slot in the given port to attach the device to. This is only
4458 relevant for IDE controllers, for which 0 specifies the master device and
4459 1 specifies the slave device. For all other controller types, this must
4460 be 0.</desc>
4461 </param>
4462 <param name="type" type="DeviceType" dir="in">
4463 <desc>Device type of the attached device. For media opened by
4464 <link to="IVirtualBox::openMedium" />, this must match the device type
4465 specified there.</desc>
4466 </param>
4467 <param name="medium" type="IMedium" dir="in">
4468 <desc>Medium to mount or NULL for an empty drive.</desc>
4469 </param>
4470 </method>
4471
4472 <method name="detachDevice">
4473 <desc>
4474 Detaches the device attached to a device slot of the specified bus.
4475
4476 Detaching the device from the virtual machine is deferred. This means
4477 that the medium remains associated with the machine when this method
4478 returns and gets actually de-associated only after a successful
4479 <link to="#saveSettings"/> call. See <link to="IMedium"/>
4480 for more detailed information about attaching media.
4481
4482 <note>
4483 You cannot detach a device from a running machine.
4484 </note>
4485 <note>
4486 Detaching differencing media implicitly created by <link
4487 to="#attachDevice"/> for the indirect attachment using this
4488 method will <b>not</b> implicitly delete them. The
4489 <link to="IMedium::deleteStorage"/> operation should be
4490 explicitly performed by the caller after the medium is successfully
4491 detached and the settings are saved with
4492 <link to="#saveSettings"/>, if it is the desired action.
4493 </note>
4494
4495 <result name="VBOX_E_INVALID_VM_STATE">
4496 Attempt to detach medium from a running virtual machine.
4497 </result>
4498 <result name="VBOX_E_OBJECT_NOT_FOUND">
4499 No medium attached to given slot/bus.
4500 </result>
4501 <result name="VBOX_E_NOT_SUPPORTED">
4502 Medium format does not support storage deletion.
4503 </result>
4504
4505 </desc>
4506 <param name="name" type="wstring" dir="in">
4507 <desc>Name of the storage controller to detach the medium from.</desc>
4508 </param>
4509 <param name="controllerPort" type="long" dir="in">
4510 <desc>Port number to detach the medium from.</desc>
4511 </param>
4512 <param name="device" type="long" dir="in">
4513 <desc>Device slot number to detach the medium from.</desc>
4514 </param>
4515 </method>
4516
4517 <method name="passthroughDevice">
4518 <desc>
4519 Sets the passthrough mode of an existing DVD device. Changing the
4520 setting while the VM is running is forbidden. The setting is only used
4521 if at VM start the device is configured as a host DVD drive, in all
4522 other cases it is ignored. The device must already exist; see
4523 <link to="IMachine::attachDevice"/> for how to attach a new device.
4524
4525 The @a controllerPort and @a device parameters specify the device slot and
4526 have have the same meaning as with <link to="IMachine::attachDevice" />.
4527
4528 <result name="E_INVALIDARG">
4529 SATA device, SATA port, IDE port or IDE slot out of range.
4530 </result>
4531 <result name="VBOX_E_INVALID_OBJECT_STATE">
4532 Attempt to modify an unregistered virtual machine.
4533 </result>
4534 <result name="VBOX_E_INVALID_VM_STATE">
4535 Invalid machine state.
4536 </result>
4537
4538 </desc>
4539 <param name="name" type="wstring" dir="in">
4540 <desc>Name of the storage controller.</desc>
4541 </param>
4542 <param name="controllerPort" type="long" dir="in">
4543 <desc>Storage controller port.</desc>
4544 </param>
4545 <param name="device" type="long" dir="in">
4546 <desc>Device slot in the given port.</desc>
4547 </param>
4548 <param name="passthrough" type="boolean" dir="in">
4549 <desc>New value for the passthrough setting.</desc>
4550 </param>
4551 </method>
4552
4553 <method name="setBandwidthGroupForDevice">
4554 <desc>
4555 Sets the bandwidth group of an existing storage device.
4556 The device must already exist; see <link to="IMachine::attachDevice"/>
4557 for how to attach a new device.
4558
4559 The @a controllerPort and @a device parameters specify the device slot and
4560 have have the same meaning as with <link to="IMachine::attachDevice" />.
4561
4562 <result name="E_INVALIDARG">
4563 SATA device, SATA port, IDE port or IDE slot out of range.
4564 </result>
4565 <result name="VBOX_E_INVALID_OBJECT_STATE">
4566 Attempt to modify an unregistered virtual machine.
4567 </result>
4568 <result name="VBOX_E_INVALID_VM_STATE">
4569 Invalid machine state.
4570 </result>
4571
4572 </desc>
4573 <param name="name" type="wstring" dir="in">
4574 <desc>Name of the storage controller.</desc>
4575 </param>
4576 <param name="controllerPort" type="long" dir="in">
4577 <desc>Storage controller port.</desc>
4578 </param>
4579 <param name="device" type="long" dir="in">
4580 <desc>Device slot in the given port.</desc>
4581 </param>
4582 <param name="bandwidthGroup" type="IBandwidthGroup" dir="in">
4583 <desc>New value for the bandwidth group or NULL for no group.</desc>
4584 </param>
4585 </method>
4586
4587 <method name="mountMedium">
4588 <desc>
4589 Mounts a medium (<link to="IMedium" />, identified
4590 by the given UUID @a id) to the given storage controller
4591 (<link to="IStorageController" />, identified by @a name),
4592 at the indicated port and device. The device must already exist;
4593 see <link to="IMachine::attachDevice"/> for how to attach a new device.
4594
4595 This method is intended only for managing removable media, where the
4596 device is fixed but media is changeable at runtime (such as DVDs
4597 and floppies). It cannot be used for fixed media such as hard disks.
4598
4599 The @a controllerPort and @a device parameters specify the device slot and
4600 have have the same meaning as with <link to="IMachine::attachDevice" />.
4601
4602 The specified device slot can have a medium mounted, which will be
4603 unmounted first. Specifying a zero UUID (or an empty string) for
4604 @a medium does just an unmount.
4605
4606 See <link to="IMedium"/> for more detailed information about
4607 attaching media.
4608
4609 <result name="E_INVALIDARG">
4610 SATA device, SATA port, IDE port or IDE slot out of range.
4611 </result>
4612 <result name="VBOX_E_INVALID_OBJECT_STATE">
4613 Attempt to attach medium to an unregistered virtual machine.
4614 </result>
4615 <result name="VBOX_E_INVALID_VM_STATE">
4616 Invalid machine state.
4617 </result>
4618 <result name="VBOX_E_OBJECT_IN_USE">
4619 Medium already attached to this or another virtual machine.
4620 </result>
4621
4622 </desc>
4623 <param name="name" type="wstring" dir="in">
4624 <desc>Name of the storage controller to attach the medium to.</desc>
4625 </param>
4626 <param name="controllerPort" type="long" dir="in">
4627 <desc>Port to attach the medium to.</desc>
4628 </param>
4629 <param name="device" type="long" dir="in">
4630 <desc>Device slot in the given port to attach the medium to.</desc>
4631 </param>
4632 <param name="medium" type="IMedium" dir="in">
4633 <desc>Medium to mount or NULL for an empty drive.</desc>
4634 </param>
4635 <param name="force" type="boolean" dir="in">
4636 <desc>Allows to force unmount/mount of a medium which is locked by
4637 the device slot in the given port to attach the medium to.</desc>
4638 </param>
4639 </method>
4640
4641 <method name="getMedium" const="yes">
4642 <desc>
4643 Returns the virtual medium attached to a device slot of the specified
4644 bus.
4645
4646 Note that if the medium was indirectly attached by
4647 <link to="#mountMedium"/> to the given device slot then this
4648 method will return not the same object as passed to the
4649 <link to="#mountMedium"/> call. See <link to="IMedium"/> for
4650 more detailed information about mounting a medium.
4651
4652 <result name="VBOX_E_OBJECT_NOT_FOUND">
4653 No medium attached to given slot/bus.
4654 </result>
4655
4656 </desc>
4657 <param name="name" type="wstring" dir="in">
4658 <desc>Name of the storage controller the medium is attached to.</desc>
4659 </param>
4660 <param name="controllerPort" type="long" dir="in">
4661 <desc>Port to query.</desc>
4662 </param>
4663 <param name="device" type="long" dir="in">
4664 <desc>Device slot in the given port to query.</desc>
4665 </param>
4666 <param name="medium" type="IMedium" dir="return">
4667 <desc>Attached medium object.</desc>
4668 </param>
4669 </method>
4670
4671 <method name="getMediumAttachmentsOfController" const="yes">
4672 <desc>
4673 Returns an array of medium attachments which are attached to the
4674 the controller with the given name.
4675
4676 <result name="VBOX_E_OBJECT_NOT_FOUND">
4677 A storage controller with given name doesn't exist.
4678 </result>
4679 </desc>
4680 <param name="name" type="wstring" dir="in"/>
4681 <param name="mediumAttachments" type="IMediumAttachment" safearray="yes" dir="return"/>
4682 </method>
4683
4684 <method name="getMediumAttachment" const="yes">
4685 <desc>
4686 Returns a medium attachment which corresponds to the controller with
4687 the given name, on the given port and device slot.
4688
4689 <result name="VBOX_E_OBJECT_NOT_FOUND">
4690 No attachment exists for the given controller/port/device combination.
4691 </result>
4692 </desc>
4693 <param name="name" type="wstring" dir="in"/>
4694 <param name="controllerPort" type="long" dir="in"/>
4695 <param name="device" type="long" dir="in"/>
4696 <param name="attachment" type="IMediumAttachment" dir="return"/>
4697 </method>
4698
4699 <method name="attachHostPciDevice">
4700 <desc>
4701 Attaches host PCI device with the given (host) PCI address to the
4702 PCI bus of the virtual machine. Please note, that this operation
4703 is two phase, as real attachment will happen when VM will start,
4704 and most information will be delivered as IHostPciDevicePlugEvent
4705 on IVirtualBox event source.
4706 <note>
4707 Not yet implemented.
4708 </note>
4709
4710 <see>IHostPciDevicePlugEvent</see>
4711
4712 <result name="VBOX_E_INVALID_VM_STATE">
4713 Virtual machine state is not stopped (PCI hotplug not yet implemented).
4714 </result>
4715 <result name="VBOX_E_PDM_ERROR">
4716 Virtual machine does not have a PCI controller allowing attachment of physical devices.
4717 </result>
4718 <result name="VBOX_E_NOT_SUPPORTED">
4719 Hardware or host OS doesn't allow PCI device passthrought.
4720 </result>
4721 </desc>
4722 <param name="hostAddress" type="long" dir="in">
4723 <desc>Address of the host PCI device.</desc>
4724 </param>
4725 <param name="desiredGuestAddress" type="long" dir="in">
4726 <desc>Desired position of this device on guest PCI bus.</desc>
4727 </param>
4728 <param name="tryToUnbind" type="boolean" dir="in">
4729 <desc>If VMM shall try to unbind existing drivers from the
4730 device before attaching it to the guest.</desc>
4731 </param>
4732 </method>
4733
4734 <method name="detachHostPciDevice">
4735 <desc>
4736 Detach host PCI device from the virtual machine.
4737 Also HostPciDevicePlugEvent on IVirtualBox event source
4738 will be delivered. As currently we don't support hot device
4739 unplug, IHostPciDevicePlugEvent event is delivered immediately.
4740
4741 <note>
4742 Not yet implemented.
4743 </note>
4744
4745 <see>IHostPciDevicePlugEvent</see>
4746
4747 <result name="VBOX_E_INVALID_VM_STATE">
4748 Virtual machine state is not stopped (PCI hotplug not yet implemented).
4749 </result>
4750 <result name="VBOX_E_OBJECT_NOT_FOUND">
4751 This host device is not attached to this machine.
4752 </result>
4753 <result name="VBOX_E_PDM_ERROR">
4754 Virtual machine does not have a PCI controller allowing attachment of physical devices.
4755 </result>
4756 <result name="VBOX_E_NOT_SUPPORTED">
4757 Hardware or host OS doesn't allow PCI device passthrought.
4758 </result>
4759 </desc>
4760 <param name="hostAddress" type="long" dir="in">
4761 <desc>Address of the host PCI device.</desc>
4762 </param>
4763 </method>
4764
4765 <method name="getNetworkAdapter" const="yes">
4766 <desc>
4767 Returns the network adapter associated with the given slot.
4768 Slots are numbered sequentially, starting with zero. The total
4769 number of adapters per machine is defined by the
4770 <link to="ISystemProperties::getMaxNetworkAdapters"/> property,
4771 so the maximum slot number is one less than that property's value.
4772
4773 <result name="E_INVALIDARG">
4774 Invalid @a slot number.
4775 </result>
4776
4777 </desc>
4778 <param name="slot" type="unsigned long" dir="in"/>
4779 <param name="adapter" type="INetworkAdapter" dir="return"/>
4780 </method>
4781
4782 <method name="addStorageController">
4783 <desc>
4784 Adds a new storage controller (SCSI, SAS or SATA controller) to the
4785 machine and returns it as an instance of
4786 <link to="IStorageController" />.
4787
4788 @a name identifies the controller for subsequent calls such as
4789 <link to="#getStorageControllerByName" />,
4790 <link to="#getStorageControllerByInstance" />,
4791 <link to="#removeStorageController" />,
4792 <link to="#attachDevice" /> or <link to="#mountMedium" />.
4793
4794 After the controller has been added, you can set its exact
4795 type by setting the <link to="IStorageController::controllerType" />.
4796
4797 <result name="VBOX_E_OBJECT_IN_USE">
4798 A storage controller with given name exists already.
4799 </result>
4800 <result name="E_INVALIDARG">
4801 Invalid @a controllerType.
4802 </result>
4803 </desc>
4804 <param name="name" type="wstring" dir="in"/>
4805 <param name="connectionType" type="StorageBus" dir="in"/>
4806 <param name="controller" type="IStorageController" dir="return"/>
4807 </method>
4808
4809 <method name="getStorageControllerByName" const="yes">
4810 <desc>
4811 Returns a storage controller with the given name.
4812
4813 <result name="VBOX_E_OBJECT_NOT_FOUND">
4814 A storage controller with given name doesn't exist.
4815 </result>
4816 </desc>
4817 <param name="name" type="wstring" dir="in"/>
4818 <param name="storageController" type="IStorageController" dir="return"/>
4819 </method>
4820
4821 <method name="getStorageControllerByInstance" const="yes">
4822 <desc>
4823 Returns a storage controller with the given instance number.
4824
4825 <result name="VBOX_E_OBJECT_NOT_FOUND">
4826 A storage controller with given instance number doesn't exist.
4827 </result>
4828 </desc>
4829 <param name="instance" type="unsigned long" dir="in"/>
4830 <param name="storageController" type="IStorageController" dir="return"/>
4831 </method>
4832
4833 <method name="removeStorageController">
4834 <desc>
4835 Removes a storage controller from the machine.
4836
4837 <result name="VBOX_E_OBJECT_NOT_FOUND">
4838 A storage controller with given name doesn't exist.
4839 </result>
4840 </desc>
4841 <param name="name" type="wstring" dir="in"/>
4842 </method>
4843
4844 <method name="setStorageControllerBootable">
4845 <desc>
4846 Sets the bootable flag of the storage controller with the given name.
4847
4848 <result name="VBOX_E_OBJECT_NOT_FOUND">
4849 A storage controller with given name doesn't exist.
4850 </result>
4851 <result name="VBOX_E_OBJECT_IN_USE">
4852 Another storage controller is marked as bootable already.
4853 </result>
4854 </desc>
4855 <param name="name" type="wstring" dir="in"/>
4856 <param name="bootable" type="boolean" dir="in"/>
4857 </method>
4858
4859 <method name="getSerialPort" const="yes">
4860 <desc>
4861 Returns the serial port associated with the given slot.
4862 Slots are numbered sequentially, starting with zero. The total
4863 number of serial ports per machine is defined by the
4864 <link to="ISystemProperties::serialPortCount"/> property,
4865 so the maximum slot number is one less than that property's value.
4866
4867 <result name="E_INVALIDARG">
4868 Invalid @a slot number.
4869 </result>
4870
4871 </desc>
4872 <param name="slot" type="unsigned long" dir="in"/>
4873 <param name="port" type="ISerialPort" dir="return"/>
4874 </method>
4875
4876 <method name="getParallelPort" const="yes">
4877 <desc>
4878 Returns the parallel port associated with the given slot.
4879 Slots are numbered sequentially, starting with zero. The total
4880 number of parallel ports per machine is defined by the
4881 <link to="ISystemProperties::parallelPortCount"/> property,
4882 so the maximum slot number is one less than that property's value.
4883
4884 <result name="E_INVALIDARG">
4885 Invalid @a slot number.
4886 </result>
4887
4888 </desc>
4889 <param name="slot" type="unsigned long" dir="in"/>
4890 <param name="port" type="IParallelPort" dir="return"/>
4891 </method>
4892
4893 <method name="getExtraDataKeys">
4894 <desc>
4895 Returns an array representing the machine-specific extra data keys
4896 which currently have values defined.
4897 </desc>
4898 <param name="value" type="wstring" dir="return" safearray="yes">
4899 <desc>Array of extra data keys.</desc>
4900 </param>
4901 </method>
4902
4903 <method name="getExtraData">
4904 <desc>
4905 Returns associated machine-specific extra data.
4906
4907 If the requested data @a key does not exist, this function will
4908 succeed and return an empty string in the @a value argument.
4909
4910 <result name="VBOX_E_FILE_ERROR">
4911 Settings file not accessible.
4912 </result>
4913 <result name="VBOX_E_XML_ERROR">
4914 Could not parse the settings file.
4915 </result>
4916
4917 </desc>
4918 <param name="key" type="wstring" dir="in">
4919 <desc>Name of the data key to get.</desc>
4920 </param>
4921 <param name="value" type="wstring" dir="return">
4922 <desc>Value of the requested data key.</desc>
4923 </param>
4924 </method>
4925
4926 <method name="setExtraData">
4927 <desc>
4928 Sets associated machine-specific extra data.
4929
4930 If you pass @c null or an empty string as a key @a value, the given
4931 @a key will be deleted.
4932
4933 <note>
4934 Before performing the actual data change, this method will ask all
4935 registered listeners using the
4936 <link to="IExtraDataCanChangeEvent"/>
4937 notification for a permission. If one of the listeners refuses the
4938 new value, the change will not be performed.
4939 </note>
4940 <note>
4941 On success, the
4942 <link to="IExtraDataChangedEvent"/> notification
4943 is called to inform all registered listeners about a successful data
4944 change.
4945 </note>
4946 <note>
4947 This method can be called outside the machine session and therefore
4948 it's a caller's responsibility to handle possible race conditions
4949 when several clients change the same key at the same time.
4950 </note>
4951
4952 <result name="VBOX_E_FILE_ERROR">
4953 Settings file not accessible.
4954 </result>
4955 <result name="VBOX_E_XML_ERROR">
4956 Could not parse the settings file.
4957 </result>
4958
4959 </desc>
4960 <param name="key" type="wstring" dir="in">
4961 <desc>Name of the data key to set.</desc>
4962 </param>
4963 <param name="value" type="wstring" dir="in">
4964 <desc>Value to assign to the key.</desc>
4965 </param>
4966 </method>
4967
4968 <method name="getCPUProperty" const="yes">
4969 <desc>
4970 Returns the virtual CPU boolean value of the specified property.
4971
4972 <result name="E_INVALIDARG">
4973 Invalid property.
4974 </result>
4975
4976 </desc>
4977 <param name="property" type="CPUPropertyType" dir="in">
4978 <desc>
4979 Property type to query.
4980 </desc>
4981 </param>
4982 <param name="value" type="boolean" dir="return">
4983 <desc>
4984 Property value.
4985 </desc>
4986 </param>
4987 </method>
4988
4989 <method name="setCPUProperty">
4990 <desc>
4991 Sets the virtual CPU boolean value of the specified property.
4992
4993 <result name="E_INVALIDARG">
4994 Invalid property.
4995 </result>
4996
4997 </desc>
4998 <param name="property" type="CPUPropertyType" dir="in">
4999 <desc>
5000 Property type to query.
5001 </desc>
5002 </param>
5003 <param name="value" type="boolean" dir="in">
5004 <desc>
5005 Property value.
5006 </desc>
5007 </param>
5008 </method>
5009
5010 <method name="getCPUIDLeaf" const="yes">
5011 <desc>
5012 Returns the virtual CPU cpuid information for the specified leaf.
5013
5014 Currently supported index values for cpuid:
5015 Standard CPUID leafs: 0 - 0xA
5016 Extended CPUID leafs: 0x80000000 - 0x8000000A
5017
5018 See the Intel and AMD programmer's manuals for detailed information
5019 about the cpuid instruction and its leafs.
5020 <result name="E_INVALIDARG">
5021 Invalid id.
5022 </result>
5023
5024 </desc>
5025 <param name="id" type="unsigned long" dir="in">
5026 <desc>
5027 CPUID leaf index.
5028 </desc>
5029 </param>
5030 <param name="valEax" type="unsigned long" dir="out">
5031 <desc>
5032 CPUID leaf value for register eax.
5033 </desc>
5034 </param>
5035 <param name="valEbx" type="unsigned long" dir="out">
5036 <desc>
5037 CPUID leaf value for register ebx.
5038 </desc>
5039 </param>
5040 <param name="valEcx" type="unsigned long" dir="out">
5041 <desc>
5042 CPUID leaf value for register ecx.
5043 </desc>
5044 </param>
5045 <param name="valEdx" type="unsigned long" dir="out">
5046 <desc>
5047 CPUID leaf value for register edx.
5048 </desc>
5049 </param>
5050 </method>
5051
5052 <method name="setCPUIDLeaf">
5053 <desc>
5054 Sets the virtual CPU cpuid information for the specified leaf. Note that these values
5055 are not passed unmodified. VirtualBox clears features that it doesn't support.
5056
5057 Currently supported index values for cpuid:
5058 Standard CPUID leafs: 0 - 0xA
5059 Extended CPUID leafs: 0x80000000 - 0x8000000A
5060
5061 See the Intel and AMD programmer's manuals for detailed information
5062 about the cpuid instruction and its leafs.
5063
5064 Do not use this method unless you know exactly what you're doing. Misuse can lead to
5065 random crashes inside VMs.
5066 <result name="E_INVALIDARG">
5067 Invalid id.
5068 </result>
5069
5070 </desc>
5071 <param name="id" type="unsigned long" dir="in">
5072 <desc>
5073 CPUID leaf index.
5074 </desc>
5075 </param>
5076 <param name="valEax" type="unsigned long" dir="in">
5077 <desc>
5078 CPUID leaf value for register eax.
5079 </desc>
5080 </param>
5081 <param name="valEbx" type="unsigned long" dir="in">
5082 <desc>
5083 CPUID leaf value for register ebx.
5084 </desc>
5085 </param>
5086 <param name="valEcx" type="unsigned long" dir="in">
5087 <desc>
5088 CPUID leaf value for register ecx.
5089 </desc>
5090 </param>
5091 <param name="valEdx" type="unsigned long" dir="in">
5092 <desc>
5093 CPUID leaf value for register edx.
5094 </desc>
5095 </param>
5096 </method>
5097
5098 <method name="removeCPUIDLeaf">
5099 <desc>
5100 Removes the virtual CPU cpuid leaf for the specified index
5101
5102 <result name="E_INVALIDARG">
5103 Invalid id.
5104 </result>
5105
5106 </desc>
5107 <param name="id" type="unsigned long" dir="in">
5108 <desc>
5109 CPUID leaf index.
5110 </desc>
5111 </param>
5112 </method>
5113
5114 <method name="removeAllCPUIDLeaves">
5115 <desc>
5116 Removes all the virtual CPU cpuid leaves
5117 </desc>
5118 </method>
5119
5120 <method name="getHWVirtExProperty" const="yes">
5121 <desc>
5122 Returns the value of the specified hardware virtualization boolean property.
5123
5124 <result name="E_INVALIDARG">
5125 Invalid property.
5126 </result>
5127
5128 </desc>
5129 <param name="property" type="HWVirtExPropertyType" dir="in">
5130 <desc>
5131 Property type to query.
5132 </desc>
5133 </param>
5134 <param name="value" type="boolean" dir="return">
5135 <desc>
5136 Property value.
5137 </desc>
5138 </param>
5139 </method>
5140
5141 <method name="setHWVirtExProperty">
5142 <desc>
5143 Sets a new value for the specified hardware virtualization boolean property.
5144
5145 <result name="E_INVALIDARG">
5146 Invalid property.
5147 </result>
5148
5149 </desc>
5150 <param name="property" type="HWVirtExPropertyType" dir="in">
5151 <desc>
5152 Property type to set.
5153 </desc>
5154 </param>
5155 <param name="value" type="boolean" dir="in">
5156 <desc>
5157 New property value.
5158 </desc>
5159 </param>
5160 </method>
5161
5162 <method name="saveSettings">
5163 <desc>
5164 Saves any changes to machine settings made since the session
5165 has been opened or a new machine has been created, or since the
5166 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
5167 For registered machines, new settings become visible to all
5168 other VirtualBox clients after successful invocation of this
5169 method.
5170 <note>
5171 The method sends <link to="IMachineDataChangedEvent"/>
5172 notification event after the configuration has been successfully
5173 saved (only for registered machines).
5174 </note>
5175 <note>
5176 Calling this method is only valid on instances returned
5177 by <link to="ISession::machine"/> and on new machines
5178 created by <link to="IVirtualBox::createMachine"/> but not
5179 yet registered, or on unregistered machines after calling
5180 <link to="IMachine::unregister"/>.
5181 </note>
5182
5183 <result name="VBOX_E_FILE_ERROR">
5184 Settings file not accessible.
5185 </result>
5186 <result name="VBOX_E_XML_ERROR">
5187 Could not parse the settings file.
5188 </result>
5189 <result name="E_ACCESSDENIED">
5190 Modification request refused.
5191 </result>
5192
5193 </desc>
5194 </method>
5195
5196 <method name="discardSettings">
5197 <desc>
5198 Discards any changes to the machine settings made since the session
5199 has been opened or since the last call to <link to="#saveSettings"/>
5200 or <link to="#discardSettings"/>.
5201 <note>
5202 Calling this method is only valid on instances returned
5203 by <link to="ISession::machine"/> and on new machines
5204 created by <link to="IVirtualBox::createMachine"/> or
5205 opened by <link to="IVirtualBox::openMachine"/> but not
5206 yet registered, or on unregistered machines after calling
5207 <link to="IMachine::unregister"/>.
5208 </note>
5209
5210 <result name="VBOX_E_INVALID_VM_STATE">
5211 Virtual machine is not mutable.
5212 </result>
5213
5214 </desc>
5215 </method>
5216
5217 <method name="unregister">
5218 <desc>
5219 Unregisters a machine previously registered with
5220 <link to="IVirtualBox::registerMachine"/> and optionally do additional
5221 cleanup before the machine is unregistered.
5222
5223 This method does not delete any files. It only changes the machine configuration and
5224 the list of registered machines in the VirtualBox object. To delete the files which
5225 belonged to the machine, including the XML file of the machine itself, call
5226 <link to="#delete"/>, optionally with the array of IMedium objects which was returned
5227 from this method.
5228
5229 How thoroughly this method cleans up the machine configuration before unregistering
5230 the machine depends on the @a cleanupMode argument.
5231
5232 <ul>
5233 <li>With "UnregisterOnly", the machine will only be unregistered, but no additional
5234 cleanup will be performed. The call will fail if the machine is in "Saved" state
5235 or has any snapshots or any media attached (see <link to="IMediumAttachment" />).
5236 It is the responsibility of the caller to delete all such configuration in this mode.
5237 In this mode, the API behaves like the former @c IVirtualBox::unregisterMachine() API
5238 which it replaces.</li>
5239 <li>With "DetachAllReturnNone", the call will succeed even if the machine is in "Saved"
5240 state or if it has snapshots or media attached. All media attached to the current machine
5241 state or in snapshots will be detached. No medium objects will be returned;
5242 all of the machine's media will remain open.</li>
5243 <li>With "DetachAllReturnHardDisksOnly", the call will behave like with "DetachAllReturnNone",
5244 except that all the hard disk medium objects which were detached from the machine will
5245 be returned as an array. This allows for quickly passing them to the <link to="#delete" />
5246 API for closing and deletion.</li>
5247 <li>With "Full", the call will behave like with "DetachAllReturnHardDisksOnly", except
5248 that all media will be returned in the array, including removable media like DVDs and
5249 floppies. This might be useful if the user wants to inspect in detail which media were
5250 attached to the machine. Be careful when passing the media array to <link to="#delete" />
5251 in that case because users will typically want to preserve ISO and RAW image files.</li>
5252 </ul>
5253
5254 A typical implementation will use "DetachAllReturnHardDisksOnly" and then pass the
5255 resulting IMedium array to <link to="#delete"/>. This way, the machine is completely
5256 deleted with all its saved states and hard disk images, but images for removable
5257 drives (such as ISO and RAW files) will remain on disk.
5258
5259 This API does not verify whether the media files returned in the array are still
5260 attached to other machines (i.e. shared between several machines). If such a shared
5261 image is passed to <link to="#delete" /> however, closing the image will fail there
5262 and the image will be silently skipped.
5263
5264 This API may, however, move media from this machine's media registry to other media
5265 registries (see <link to="IMedium" /> for details on media registries). For machines
5266 created with VirtualBox 4.0 or later, if media from this machine's media registry
5267 are also attached to another machine (shared attachments), each such medium will be
5268 moved to another machine's registry. This is because without this machine's media
5269 registry, the other machine cannot find its media any more and would become inaccessible.
5270
5271 This API implicitly calls <link to="#saveSettings"/> to save all current machine settings
5272 before unregistering it. It may also silently call saveSettings() on other machines
5273 if media are moved to other machines' media registries.
5274
5275 After successful method invocation, the <link to="IMachineRegisteredEvent"/> event
5276 is fired.
5277
5278 The call will fail if the machine is currently locked (see <link to="ISession" />).
5279
5280 <note>
5281 If the given machine is inaccessible (see <link to="#accessible"/>), it
5282 will be unregistered and fully uninitialized right afterwards. As a result,
5283 the returned machine object will be unusable and an attempt to call
5284 <b>any</b> method will return the "Object not ready" error.
5285 </note>
5286
5287 <result name="VBOX_E_INVALID_OBJECT_STATE">
5288 Machine is currently locked for a session.
5289 </result>
5290 </desc>
5291
5292 <param name="cleanupMode" type="CleanupMode" dir="in">
5293 <desc>How to clean up after the machine has been unregistered.</desc>
5294 </param>
5295 <param name="aMedia" type="IMedium" safearray="yes" dir="return">
5296 <desc>List of media detached from the machine, depending on the @a cleanupMode parameter.</desc>
5297 </param>
5298 </method>
5299
5300 <method name="delete">
5301 <desc>
5302 Deletes the files associated with this machine from disk. If medium objects are passed
5303 in with the @a aMedia argument, they are closed and, if closing was successful, their
5304 storage files are deleted as well. For convenience, this array of media files can be
5305 the same as the one returned from a previous <link to="#unregister" /> call.
5306
5307 This method must only be called on machines which are either write-locked (i.e. on instances
5308 returned by <link to="ISession::machine"/>) or on unregistered machines (i.e. not yet
5309 registered machines created by <link to="IVirtualBox::createMachine"/> or opened by
5310 <link to="IVirtualBox::openMachine"/>, or after having called <link to="#unregister"/>).
5311
5312 The following files will be deleted by this method:
5313 <ul>
5314 <li>If <link to="#unregister" /> had been previously called with a @a cleanupMode
5315 argument other than "UnregisterOnly", this will delete all saved state files that
5316 the machine had in use; possibly one if the machine was in "Saved" state and one
5317 for each online snapshot that the machine had.</li>
5318 <li>On each medium object passed in the @a aMedia array, this will call
5319 <link to="IMedium::close" />. If that succeeds, this will attempt to delete the
5320 medium's storage on disk. Since the close() call will fail if the medium is still
5321 in use, e.g. because it is still attached to a second machine; in that case the
5322 storage will not be deleted.</li>
5323 <li>Finally, the machine's own XML file will be deleted.</li>
5324 </ul>
5325
5326 Since deleting large disk image files can be a time-consuming I/O operation, this
5327 method operates asynchronously and returns an IProgress object to allow the caller
5328 to monitor the progress. There will be one sub-operation for each file that is
5329 being deleted (saved state or medium storage file).
5330
5331 <note>
5332 <link to="#settingsModified"/> will return @c true after this
5333 method successfully returns.
5334 </note>
5335
5336 <result name="VBOX_E_INVALID_VM_STATE">
5337 Machine is registered but not write-locked.
5338 </result>
5339 <result name="VBOX_E_IPRT_ERROR">
5340 Could not delete the settings file.
5341 </result>
5342 </desc>
5343 <param name="aMedia" type="IMedium" safearray="yes" dir="in">
5344 <desc>List of media to be closed and whose storage files will be deleted.</desc>
5345 </param>
5346 <param name="aProgress" type="IProgress" dir="return">
5347 <desc>Progress object to track the operation completion.</desc>
5348 </param>
5349 </method>
5350
5351 <method name="export">
5352 <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
5353 steps required to export VirtualBox machines to OVF.
5354 </desc>
5355
5356 <param name="aAppliance" type="IAppliance" dir="in">
5357 <desc>Appliance to export this machine to.</desc>
5358 </param>
5359 <param name="location" type="wstring" dir="in">
5360 <desc>The target location.</desc>
5361 </param>
5362 <param name="aDescription" type="IVirtualSystemDescription" dir="return">
5363 <desc>VirtualSystemDescription object which is created for this machine.</desc>
5364 </param>
5365 </method >
5366
5367 <method name="findSnapshot">
5368 <desc>
5369 Returns a snapshot of this machine with the given name or UUID.
5370
5371 Returns a snapshot of this machine with the given UUID.
5372 A @c null argument can be used to obtain the first snapshot
5373 taken on this machine. To traverse the whole tree of snapshots
5374 starting from the root, inspect the root snapshot's
5375 <link to="ISnapshot::children" /> attribute and recurse over those children.
5376
5377 <result name="VBOX_E_OBJECT_NOT_FOUND">
5378 Virtual machine has no snapshots or snapshot not found.
5379 </result>
5380
5381 </desc>
5382 <param name="nameOrId" type="wstring" dir="in">
5383 <desc>What to search for. Name or UUID of the snapshot to find</desc>
5384 </param>
5385 <param name="snapshot" type="ISnapshot" dir="return">
5386 <desc>Snapshot object with the given name.</desc>
5387 </param>
5388 </method>
5389
5390 <method name="createSharedFolder">
5391 <desc>
5392 Creates a new permanent shared folder by associating the given logical
5393 name with the given host path, adds it to the collection of shared
5394 folders and starts sharing it. Refer to the description of
5395 <link to="ISharedFolder"/> to read more about logical names.
5396
5397 <result name="VBOX_E_OBJECT_IN_USE">
5398 Shared folder already exists.
5399 </result>
5400 <result name="VBOX_E_FILE_ERROR">
5401 Shared folder @a hostPath not accessible.
5402 </result>
5403
5404 </desc>
5405 <param name="name" type="wstring" dir="in">
5406 <desc>Unique logical name of the shared folder.</desc>
5407 </param>
5408 <param name="hostPath" type="wstring" dir="in">
5409 <desc>Full path to the shared folder in the host file system.</desc>
5410 </param>
5411 <param name="writable" type="boolean" dir="in">
5412 <desc>Whether the share is writable or readonly.</desc>
5413 </param>
5414 <param name="automount" type="boolean" dir="in">
5415 <desc>Whether the share gets automatically mounted by the guest
5416 or not.</desc>
5417 </param>
5418 </method>
5419
5420 <method name="removeSharedFolder">
5421 <desc>
5422 Removes the permanent shared folder with the given name previously
5423 created by <link to="#createSharedFolder"/> from the collection of
5424 shared folders and stops sharing it.
5425
5426 <result name="VBOX_E_INVALID_VM_STATE">
5427 Virtual machine is not mutable.
5428 </result>
5429 <result name="VBOX_E_OBJECT_NOT_FOUND">
5430 Shared folder @a name does not exist.
5431 </result>
5432
5433 </desc>
5434 <param name="name" type="wstring" dir="in">
5435 <desc>Logical name of the shared folder to remove.</desc>
5436 </param>
5437 </method>
5438
5439 <method name="canShowConsoleWindow">
5440 <desc>
5441 Returns @c true if the VM console process can activate the
5442 console window and bring it to foreground on the desktop of
5443 the host PC.
5444 <note>
5445 This method will fail if a session for this machine is not
5446 currently open.
5447 </note>
5448
5449 <result name="VBOX_E_INVALID_VM_STATE">
5450 Machine session is not open.
5451 </result>
5452
5453 </desc>
5454 <param name="canShow" type="boolean" dir="return">
5455 <desc>
5456 @c true if the console window can be shown and @c false otherwise.
5457 </desc>
5458 </param>
5459 </method>
5460
5461 <method name="showConsoleWindow">
5462 <desc>
5463 Activates the console window and brings it to foreground on
5464 the desktop of the host PC. Many modern window managers on
5465 many platforms implement some sort of focus stealing
5466 prevention logic, so that it may be impossible to activate
5467 a window without the help of the currently active
5468 application. In this case, this method will return a non-zero
5469 identifier that represents the top-level window of the VM
5470 console process. The caller, if it represents a currently
5471 active process, is responsible to use this identifier (in a
5472 platform-dependent manner) to perform actual window
5473 activation.
5474 <note>
5475 This method will fail if a session for this machine is not
5476 currently open.
5477 </note>
5478
5479 <result name="VBOX_E_INVALID_VM_STATE">
5480 Machine session is not open.
5481 </result>
5482
5483 </desc>
5484 <param name="winId" type="long long" dir="return">
5485 <desc>
5486 Platform-dependent identifier of the top-level VM console
5487 window, or zero if this method has performed all actions
5488 necessary to implement the <i>show window</i> semantics for
5489 the given platform and/or VirtualBox front-end.
5490 </desc>
5491 </param>
5492 </method>
5493
5494 <method name="getGuestProperty" const="yes">
5495 <desc>
5496 Reads an entry from the machine's guest property store.
5497
5498 <result name="VBOX_E_INVALID_VM_STATE">
5499 Machine session is not open.
5500 </result>
5501
5502 </desc>
5503 <param name="name" type="wstring" dir="in">
5504 <desc>
5505 The name of the property to read.
5506 </desc>
5507 </param>
5508 <param name="value" type="wstring" dir="out">
5509 <desc>
5510 The value of the property. If the property does not exist then this
5511 will be empty.
5512 </desc>
5513 </param>
5514 <param name="timestamp" type="long long" dir="out">
5515 <desc>
5516 The time at which the property was last modified, as seen by the
5517 server process.
5518 </desc>
5519 </param>
5520 <param name="flags" type="wstring" dir="out">
5521 <desc>
5522 Additional property parameters, passed as a comma-separated list of
5523 "name=value" type entries.
5524 </desc>
5525 </param>
5526 </method>
5527
5528 <method name="getGuestPropertyValue" const="yes">
5529 <desc>
5530 Reads a value from the machine's guest property store.
5531
5532 <result name="VBOX_E_INVALID_VM_STATE">
5533 Machine session is not open.
5534 </result>
5535
5536 </desc>
5537 <param name="property" type="wstring" dir="in">
5538 <desc>
5539 The name of the property to read.
5540 </desc>
5541 </param>
5542 <param name="value" type="wstring" dir="return">
5543 <desc>
5544 The value of the property. If the property does not exist then this
5545 will be empty.
5546 </desc>
5547 </param>
5548 </method>
5549
5550 <method name="getGuestPropertyTimestamp" const="yes">
5551 <desc>
5552 Reads a property timestamp from the machine's guest property store.
5553
5554 <result name="VBOX_E_INVALID_VM_STATE">
5555 Machine session is not open.
5556 </result>
5557
5558 </desc>
5559 <param name="property" type="wstring" dir="in">
5560 <desc>
5561 The name of the property to read.
5562 </desc>
5563 </param>
5564 <param name="value" type="long long" dir="return">
5565 <desc>
5566 The timestamp. If the property does not exist then this will be
5567 empty.
5568 </desc>
5569 </param>
5570 </method>
5571
5572 <method name="setGuestProperty">
5573 <desc>
5574 Sets, changes or deletes an entry in the machine's guest property
5575 store.
5576
5577 <result name="E_ACCESSDENIED">
5578 Property cannot be changed.
5579 </result>
5580 <result name="E_INVALIDARG">
5581 Invalid @a flags.
5582 </result>
5583 <result name="VBOX_E_INVALID_VM_STATE">
5584 Virtual machine is not mutable or session not open.
5585 </result>
5586 <result name="VBOX_E_INVALID_OBJECT_STATE">
5587 Cannot set transient property when machine not running.
5588 </result>
5589
5590 </desc>
5591 <param name="property" type="wstring" dir="in">
5592 <desc>
5593 The name of the property to set, change or delete.
5594 </desc>
5595 </param>
5596 <param name="value" type="wstring" dir="in">
5597 <desc>
5598 The new value of the property to set, change or delete. If the
5599 property does not yet exist and value is non-empty, it will be
5600 created. If the value is @c null or empty, the property will be
5601 deleted if it exists.
5602 </desc>
5603 </param>
5604 <param name="flags" type="wstring" dir="in">
5605 <desc>
5606 Additional property parameters, passed as a comma-separated list of
5607 "name=value" type entries.
5608 </desc>
5609 </param>
5610 </method>
5611
5612 <method name="setGuestPropertyValue">
5613 <desc>
5614 Sets, changes or deletes a value in the machine's guest property
5615 store. The flags field will be left unchanged or created empty for a
5616 new property.
5617
5618 <result name="E_ACCESSDENIED">
5619 Property cannot be changed.
5620 </result>
5621 <result name="VBOX_E_INVALID_VM_STATE">
5622 Virtual machine is not mutable or session not open.
5623 </result>
5624 <result name="VBOX_E_INVALID_OBJECT_STATE">
5625 Cannot set transient property when machine not running.
5626 </result>
5627 </desc>
5628
5629 <param name="property" type="wstring" dir="in">
5630 <desc>
5631 The name of the property to set, change or delete.
5632 </desc>
5633 </param>
5634 <param name="value" type="wstring" dir="in">
5635 <desc>
5636 The new value of the property to set, change or delete. If the
5637 property does not yet exist and value is non-empty, it will be
5638 created. If the value is @c null or empty, the property will be
5639 deleted if it exists.
5640 </desc>
5641 </param>
5642 </method>
5643
5644 <method name="enumerateGuestProperties">
5645 <desc>
5646 Return a list of the guest properties matching a set of patterns along
5647 with their values, time stamps and flags.
5648 </desc>
5649 <param name="patterns" type="wstring" dir="in">
5650 <desc>
5651 The patterns to match the properties against, separated by '|'
5652 characters. If this is empty or @c null, all properties will match.
5653 </desc>
5654 </param>
5655 <param name="name" type="wstring" dir="out" safearray="yes">
5656 <desc>
5657 The names of the properties returned.
5658 </desc>
5659 </param>
5660 <param name="value" type="wstring" dir="out" safearray="yes">
5661 <desc>
5662 The values of the properties returned. The array entries match the
5663 corresponding entries in the @a name array.
5664 </desc>
5665 </param>
5666 <param name="timestamp" type="long long" dir="out" safearray="yes">
5667 <desc>
5668 The time stamps of the properties returned. The array entries match
5669 the corresponding entries in the @a name array.
5670 </desc>
5671 </param>
5672 <param name="flags" type="wstring" dir="out" safearray="yes">
5673 <desc>
5674 The flags of the properties returned. The array entries match the
5675 corresponding entries in the @a name array.
5676 </desc>
5677 </param>
5678 </method>
5679
5680 <method name="querySavedGuestSize">
5681 <desc>
5682 Returns the guest dimensions from the saved state.
5683 </desc>
5684 <param name="screenId" type="unsigned long" dir="in">
5685 <desc>
5686 Saved guest screen to query info from.
5687 </desc>
5688 </param>
5689 <param name="width" type="unsigned long" dir="out">
5690 <desc>
5691 Guest width at the time of the saved state was taken.
5692 </desc>
5693 </param>
5694 <param name="height" type="unsigned long" dir="out">
5695 <desc>
5696 Guest height at the time of the saved state was taken.
5697 </desc>
5698 </param>
5699 </method>
5700
5701 <method name="querySavedThumbnailSize">
5702 <desc>
5703 Returns size in bytes and dimensions in pixels of a saved thumbnail bitmap from saved state.
5704 </desc>
5705 <param name="screenId" type="unsigned long" dir="in">
5706 <desc>
5707 Saved guest screen to query info from.
5708 </desc>
5709 </param>
5710 <param name="size" type="unsigned long" dir="out">
5711 <desc>
5712 Size of buffer required to store the bitmap.
5713 </desc>
5714 </param>
5715 <param name="width" type="unsigned long" dir="out">
5716 <desc>
5717 Bitmap width.
5718 </desc>
5719 </param>
5720 <param name="height" type="unsigned long" dir="out">
5721 <desc>
5722 Bitmap height.
5723 </desc>
5724 </param>
5725 </method>
5726
5727 <method name="readSavedThumbnailToArray">
5728 <desc>
5729 Thumbnail is retrieved to an array of bytes in uncompressed 32-bit BGRA or RGBA format.
5730 </desc>
5731 <param name="screenId" type="unsigned long" dir="in">
5732 <desc>
5733 Saved guest screen to read from.
5734 </desc>
5735 </param>
5736 <param name="BGR" type="boolean" dir="in">
5737 <desc>
5738 How to order bytes in the pixel. A pixel consists of 4 bytes. If this parameter is true, then
5739 bytes order is: B, G, R, 0xFF. If this parameter is false, then bytes order is: R, G, B, 0xFF.
5740 </desc>
5741 </param>
5742 <param name="width" type="unsigned long" dir="out">
5743 <desc>
5744 Bitmap width.
5745 </desc>
5746 </param>
5747 <param name="height" type="unsigned long" dir="out">
5748 <desc>
5749 Bitmap height.
5750 </desc>
5751 </param>
5752 <param name="data" type="octet" safearray="yes" dir="return">
5753 <desc>
5754 Array with resulting bitmap data.
5755 </desc>
5756 </param>
5757 </method>
5758
5759 <method name="readSavedThumbnailPNGToArray">
5760 <desc>
5761 Thumbnail in PNG format is retrieved to an array of bytes.
5762 </desc>
5763 <param name="screenId" type="unsigned long" dir="in">
5764 <desc>
5765 Saved guest screen to read from.
5766 </desc>
5767 </param>
5768 <param name="width" type="unsigned long" dir="out">
5769 <desc>
5770 Image width.
5771 </desc>
5772 </param>
5773 <param name="height" type="unsigned long" dir="out">
5774 <desc>
5775 Image height.
5776 </desc>
5777 </param>
5778 <param name="data" type="octet" dir="return" safearray="yes">
5779 <desc>
5780 Array with resulting PNG data.
5781 </desc>
5782 </param>
5783 </method>
5784
5785 <method name="querySavedScreenshotPNGSize">
5786 <desc>
5787 Returns size in bytes and dimensions of a saved PNG image of screenshot from saved state.
5788 </desc>
5789 <param name="screenId" type="unsigned long" dir="in">
5790 <desc>
5791 Saved guest screen to query info from.
5792 </desc>
5793 </param>
5794 <param name="size" type="unsigned long" dir="out">
5795 <desc>
5796 Size of buffer required to store the PNG binary data.
5797 </desc>
5798 </param>
5799 <param name="width" type="unsigned long" dir="out">
5800 <desc>
5801 Image width.
5802 </desc>
5803 </param>
5804 <param name="height" type="unsigned long" dir="out">
5805 <desc>
5806 Image height.
5807 </desc>
5808 </param>
5809 </method>
5810
5811 <method name="readSavedScreenshotPNGToArray">
5812 <desc>
5813 Screenshot in PNG format is retrieved to an array of bytes.
5814 </desc>
5815 <param name="screenId" type="unsigned long" dir="in">
5816 <desc>
5817 Saved guest screen to read from.
5818 </desc>
5819 </param>
5820 <param name="width" type="unsigned long" dir="out">
5821 <desc>
5822 Image width.
5823 </desc>
5824 </param>
5825 <param name="height" type="unsigned long" dir="out">
5826 <desc>
5827 Image height.
5828 </desc>
5829 </param>
5830 <param name="data" type="octet" dir="return" safearray="yes">
5831 <desc>
5832 Array with resulting PNG data.
5833 </desc>
5834 </param>
5835 </method>
5836
5837 <method name="hotPlugCPU">
5838 <desc>
5839 Plugs a CPU into the machine.
5840 </desc>
5841 <param name="cpu" type="unsigned long" dir="in">
5842 <desc>
5843 The CPU id to insert.
5844 </desc>
5845 </param>
5846 </method>
5847
5848 <method name="hotUnplugCPU">
5849 <desc>
5850 Removes a CPU from the machine.
5851 </desc>
5852 <param name="cpu" type="unsigned long" dir="in">
5853 <desc>
5854 The CPU id to remove.
5855 </desc>
5856 </param>
5857 </method>
5858
5859 <method name="getCPUStatus">
5860 <desc>
5861 Returns the current status of the given CPU.
5862 </desc>
5863 <param name="cpu" type="unsigned long" dir="in">
5864 <desc>
5865 The CPU id to check for.
5866 </desc>
5867 </param>
5868 <param name="attached" type="boolean" dir="return">
5869 <desc>
5870 Status of the CPU.
5871 </desc>
5872 </param>
5873 </method>
5874
5875 <method name="queryLogFilename">
5876 <desc>
5877 Queries for the VM log file name of an given index. Returns an empty
5878 string if a log file with that index doesn't exists.
5879 </desc>
5880 <param name="idx" type="unsigned long" dir="in">
5881 <desc>
5882 Which log file name to query. 0=current log file.
5883 </desc>
5884 </param>
5885 <param name="filename" type="wstring" dir="return">
5886 <desc>
5887 On return the full path to the log file or an empty string on error.
5888 </desc>
5889 </param>
5890 </method>
5891
5892 <method name="readLog">
5893 <desc>
5894 Reads the VM log file. The chunk size is limited, so even if you
5895 ask for a big piece there might be less data returned.
5896 </desc>
5897 <param name="idx" type="unsigned long" dir="in">
5898 <desc>
5899 Which log file to read. 0=current log file.
5900 </desc>
5901 </param>
5902 <param name="offset" type="long long" dir="in">
5903 <desc>
5904 Offset in the log file.
5905 </desc>
5906 </param>
5907 <param name="size" type="long long" dir="in">
5908 <desc>
5909 Chunk size to read in the log file.
5910 </desc>
5911 </param>
5912 <param name="data" type="octet" dir="return" safearray="yes">
5913 <desc>
5914 Data read from the log file. A data size of 0 means end of file
5915 if the requested chunk size was not 0. This is the unprocessed
5916 file data, i.e. the line ending style depends on the platform of
5917 the system the server is running on.
5918 </desc>
5919 </param>
5920 </method>
5921 </interface>
5922
5923 <!--
5924 // IConsole
5925 /////////////////////////////////////////////////////////////////////////
5926 -->
5927
5928 <interface
5929 name="IVRDEServerInfo" extends="$unknown"
5930 uuid="714434a1-58c3-4aab-9049-7652c5df113b"
5931 wsmap="struct"
5932 >
5933 <desc>
5934 Contains information about the remote desktop (VRDE) server capabilities and status.
5935 This is used in the <link to="IConsole::VRDEServerInfo" /> attribute.
5936 </desc>
5937
5938 <attribute name="active" type="boolean" readonly="yes">
5939 <desc>
5940 Whether the remote desktop connection is active.
5941 </desc>
5942 </attribute>
5943
5944 <attribute name="port" type="long" readonly="yes">
5945 <desc>
5946 VRDE server port number. If this property is equal to <tt>0</tt>, then
5947 the VRDE server failed to start, usually because there are no free IP
5948 ports to bind to. If this property is equal to <tt>-1</tt>, then the VRDE
5949 server has not yet been started.
5950 </desc>
5951 </attribute>
5952
5953 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
5954 <desc>
5955 How many times a client connected.
5956 </desc>
5957 </attribute>
5958
5959 <attribute name="beginTime" type="long long" readonly="yes">
5960 <desc>
5961 When the last connection was established, in milliseconds since 1970-01-01 UTC.
5962 </desc>
5963 </attribute>
5964
5965 <attribute name="endTime" type="long long" readonly="yes">
5966 <desc>
5967 When the last connection was terminated or the current time, if
5968 connection is still active, in milliseconds since 1970-01-01 UTC.
5969 </desc>
5970 </attribute>
5971
5972 <attribute name="bytesSent" type="long long" readonly="yes">
5973 <desc>
5974 How many bytes were sent in last or current, if still active, connection.
5975 </desc>
5976 </attribute>
5977
5978 <attribute name="bytesSentTotal" type="long long" readonly="yes">
5979 <desc>
5980 How many bytes were sent in all connections.
5981 </desc>
5982 </attribute>
5983
5984 <attribute name="bytesReceived" type="long long" readonly="yes">
5985 <desc>
5986 How many bytes were received in last or current, if still active, connection.
5987 </desc>
5988 </attribute>
5989
5990 <attribute name="bytesReceivedTotal" type="long long" readonly="yes">
5991 <desc>
5992 How many bytes were received in all connections.
5993 </desc>
5994 </attribute>
5995
5996 <attribute name="user" type="wstring" readonly="yes">
5997 <desc>
5998 Login user name supplied by the client.
5999 </desc>
6000 </attribute>
6001
6002 <attribute name="domain" type="wstring" readonly="yes">
6003 <desc>
6004 Login domain name supplied by the client.
6005 </desc>
6006 </attribute>
6007
6008 <attribute name="clientName" type="wstring" readonly="yes">
6009 <desc>
6010 The client name supplied by the client.
6011 </desc>
6012 </attribute>
6013
6014 <attribute name="clientIP" type="wstring" readonly="yes">
6015 <desc>
6016 The IP address of the client.
6017 </desc>
6018 </attribute>
6019
6020 <attribute name="clientVersion" type="unsigned long" readonly="yes">
6021 <desc>
6022 The client software version number.
6023 </desc>
6024 </attribute>
6025
6026 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
6027 <desc>
6028 Public key exchange method used when connection was established.
6029 Values: 0 - RDP4 public key exchange scheme.
6030 1 - X509 certificates were sent to client.
6031 </desc>
6032 </attribute>
6033
6034 </interface>
6035
6036 <interface
6037 name="IConsole" extends="$unknown"
6038 uuid="515e8e8d-f932-4d8e-9f32-79a52aead882"
6039 wsmap="managed"
6040 >
6041 <desc>
6042 The IConsole interface represents an interface to control virtual
6043 machine execution.
6044
6045 A console object gets created when a machine has been locked for a
6046 particular session (client process) using <link to="IMachine::lockMachine" />
6047 or <link to="IMachine::launchVMProcess"/>. The console object can
6048 then be found in the session's <link to="ISession::console" /> attribute.
6049
6050 Methods of the IConsole interface allow the caller to query the current
6051 virtual machine execution state, pause the machine or power it down, save
6052 the machine state or take a snapshot, attach and detach removable media
6053 and so on.
6054
6055 <see>ISession</see>
6056 </desc>
6057
6058 <attribute name="machine" type="IMachine" readonly="yes">
6059 <desc>
6060 Machine object for this console session.
6061 <note>
6062 This is a convenience property, it has the same value as
6063 <link to="ISession::machine"/> of the corresponding session
6064 object.
6065 </note>
6066 </desc>
6067 </attribute>
6068
6069 <attribute name="state" type="MachineState" readonly="yes">
6070 <desc>
6071 Current execution state of the machine.
6072 <note>
6073 This property always returns the same value as the corresponding
6074 property of the IMachine object for this console session.
6075 For the process that owns (executes) the VM, this is the
6076 preferable way of querying the VM state, because no IPC
6077 calls are made.
6078 </note>
6079 </desc>
6080 </attribute>
6081
6082 <attribute name="guest" type="IGuest" readonly="yes">
6083 <desc>Guest object.</desc>
6084 </attribute>
6085
6086 <attribute name="keyboard" type="IKeyboard" readonly="yes">
6087 <desc>
6088 Virtual keyboard object.
6089 <note>
6090 If the machine is not running, any attempt to use
6091 the returned object will result in an error.
6092 </note>
6093 </desc>
6094 </attribute>
6095
6096 <attribute name="mouse" type="IMouse" readonly="yes">
6097 <desc>
6098 Virtual mouse object.
6099 <note>
6100 If the machine is not running, any attempt to use
6101 the returned object will result in an error.
6102 </note>
6103 </desc>
6104 </attribute>
6105
6106 <attribute name="display" type="IDisplay" readonly="yes">
6107 <desc>Virtual display object.
6108 <note>
6109 If the machine is not running, any attempt to use
6110 the returned object will result in an error.
6111 </note>
6112 </desc>
6113 </attribute>
6114
6115 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
6116 <desc>Debugging interface.</desc>
6117 </attribute>
6118
6119 <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
6120 <desc>
6121 Collection of USB devices currently attached to the virtual
6122 USB controller.
6123 <note>
6124 The collection is empty if the machine is not running.
6125 </note>
6126 </desc>
6127 </attribute>
6128
6129 <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
6130 <desc>
6131 List of USB devices currently attached to the remote VRDE client.
6132 Once a new device is physically attached to the remote host computer,
6133 it appears in this list and remains there until detached.
6134 </desc>
6135 </attribute>
6136
6137 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
6138 <desc>
6139 Collection of shared folders for the current session. These folders
6140 are called transient shared folders because they are available to the
6141 guest OS running inside the associated virtual machine only for the
6142 duration of the session (as opposed to
6143 <link to="IMachine::sharedFolders"/> which represent permanent shared
6144 folders). When the session is closed (e.g. the machine is powered down),
6145 these folders are automatically discarded.
6146
6147 New shared folders are added to the collection using
6148 <link to="#createSharedFolder"/>. Existing shared folders can be
6149 removed using <link to="#removeSharedFolder"/>.
6150 </desc>
6151 </attribute>
6152
6153 <attribute name="VRDEServerInfo" type="IVRDEServerInfo" readonly="yes">
6154 <desc>
6155 Interface that provides information on Remote Desktop Extension (VRDE) connection.
6156 </desc>
6157 </attribute>
6158
6159 <attribute name="eventSource" type="IEventSource" readonly="yes">
6160 <desc>
6161 Event source for console events.
6162 </desc>
6163 </attribute>
6164
6165 <attribute name="attachedPciDevices" type="IPciDeviceAttachment" readonly="yes" safearray="yes">
6166 <desc>Array of PCI devices attached to this machine.</desc>
6167 </attribute>
6168
6169 <method name="powerUp">
6170 <desc>
6171 Starts the virtual machine execution using the current machine
6172 state (that is, its current execution state, current settings and
6173 current storage devices).
6174
6175 <note>
6176 This method is only useful for front-ends that want to actually
6177 execute virtual machines in their own process (like the VirtualBox
6178 or VBoxSDL front-ends). Unless you are intending to write such a
6179 front-end, do not call this method. If you simply want to
6180 start virtual machine execution using one of the existing front-ends
6181 (for example the VirtualBox GUI or headless server), use
6182 <link to="IMachine::launchVMProcess"/> instead; these
6183 front-ends will power up the machine automatically for you.
6184 </note>
6185
6186 If the machine is powered off or aborted, the execution will
6187 start from the beginning (as if the real hardware were just
6188 powered on).
6189
6190 If the machine is in the <link to="MachineState_Saved"/> state,
6191 it will continue its execution the point where the state has
6192 been saved.
6193
6194 If the machine <link to="IMachine::teleporterEnabled"/> property is
6195 enabled on the machine being powered up, the machine will wait for an
6196 incoming teleportation in the <link to="MachineState_TeleportingIn"/>
6197 state. The returned progress object will have at least three
6198 operations where the last three are defined as: (1) powering up and
6199 starting TCP server, (2) waiting for incoming teleportations, and
6200 (3) perform teleportation. These operations will be reflected as the
6201 last three operations of the progress objected returned by
6202 <link to="IMachine::launchVMProcess"/> as well.
6203
6204 <see>#saveState</see>
6205
6206 <result name="VBOX_E_INVALID_VM_STATE">
6207 Virtual machine already running.
6208 </result>
6209 <result name="VBOX_E_HOST_ERROR">
6210 Host interface does not exist or name not set.
6211 </result>
6212 <result name="VBOX_E_FILE_ERROR">
6213 Invalid saved state file.
6214 </result>
6215 </desc>
6216 <param name="progress" type="IProgress" dir="return">
6217 <desc>Progress object to track the operation completion.</desc>
6218 </param>
6219 </method>
6220
6221 <method name="powerUpPaused">
6222 <desc>
6223 Identical to powerUp except that the VM will enter the
6224 <link to="MachineState_Paused"/> state, instead of
6225 <link to="MachineState_Running"/>.
6226
6227 <see>#powerUp</see>
6228 <result name="VBOX_E_INVALID_VM_STATE">
6229 Virtual machine already running.
6230 </result>
6231 <result name="VBOX_E_HOST_ERROR">
6232 Host interface does not exist or name not set.
6233 </result>
6234 <result name="VBOX_E_FILE_ERROR">
6235 Invalid saved state file.
6236 </result>
6237 </desc>
6238 <param name="progress" type="IProgress" dir="return">
6239 <desc>Progress object to track the operation completion.</desc>
6240 </param>
6241 </method>
6242
6243 <method name="powerDown">
6244 <desc>
6245 Initiates the power down procedure to stop the virtual machine
6246 execution.
6247
6248 The completion of the power down procedure is tracked using the returned
6249 IProgress object. After the operation is complete, the machine will go
6250 to the PoweredOff state.
6251 <result name="VBOX_E_INVALID_VM_STATE">
6252 Virtual machine must be Running, Paused or Stuck to be powered down.
6253 </result>
6254 </desc>
6255 <param name="progress" type="IProgress" dir="return">
6256 <desc>Progress object to track the operation completion.</desc>
6257 </param>
6258 </method>
6259
6260 <method name="reset">
6261 <desc>Resets the virtual machine.
6262 <result name="VBOX_E_INVALID_VM_STATE">
6263 Virtual machine not in Running state.
6264 </result>
6265 <result name="VBOX_E_VM_ERROR">
6266 Virtual machine error in reset operation.
6267 </result>
6268 </desc>
6269 </method>
6270
6271 <method name="pause">
6272 <desc>Pauses the virtual machine execution.
6273 <result name="VBOX_E_INVALID_VM_STATE">
6274 Virtual machine not in Running state.
6275 </result>
6276 <result name="VBOX_E_VM_ERROR">
6277 Virtual machine error in suspend operation.
6278 </result>
6279 </desc>
6280 </method>
6281
6282 <method name="resume">
6283 <desc>Resumes the virtual machine execution.
6284 <result name="VBOX_E_INVALID_VM_STATE">
6285 Virtual machine not in Paused state.
6286 </result>
6287 <result name="VBOX_E_VM_ERROR">
6288 Virtual machine error in resume operation.
6289 </result>
6290 </desc>
6291 </method>
6292
6293 <method name="powerButton">
6294 <desc>Sends the ACPI power button event to the guest.
6295 <result name="VBOX_E_INVALID_VM_STATE">
6296 Virtual machine not in Running state.
6297 </result>
6298 <result name="VBOX_E_PDM_ERROR">
6299 Controlled power off failed.
6300 </result>
6301 </desc>
6302 </method>
6303
6304 <method name="sleepButton">
6305 <desc>Sends the ACPI sleep button event to the guest.
6306 <result name="VBOX_E_INVALID_VM_STATE">
6307 Virtual machine not in Running state.
6308 </result>
6309 <result name="VBOX_E_PDM_ERROR">
6310 Sending sleep button event failed.
6311 </result>
6312 </desc>
6313 </method>
6314
6315 <method name="getPowerButtonHandled">
6316 <desc>Checks if the last power button event was handled by guest.
6317 <result name="VBOX_E_PDM_ERROR">
6318 Checking if the event was handled by the guest OS failed.
6319 </result>
6320 </desc>
6321 <param name="handled" type="boolean" dir="return"/>
6322 </method>
6323
6324 <method name="getGuestEnteredACPIMode">
6325 <desc>Checks if the guest entered the ACPI mode G0 (working) or
6326 G1 (sleeping). If this method returns @c false, the guest will
6327 most likely not respond to external ACPI events.
6328 <result name="VBOX_E_INVALID_VM_STATE">
6329 Virtual machine not in Running state.
6330 </result>
6331 </desc>
6332 <param name="entered" type="boolean" dir="return"/>
6333 </method>
6334
6335 <method name="saveState">
6336 <desc>
6337 Saves the current execution state of a running virtual machine
6338 and stops its execution.
6339
6340 After this operation completes, the machine will go to the
6341 Saved state. Next time it is powered up, this state will
6342 be restored and the machine will continue its execution from
6343 the place where it was saved.
6344
6345 This operation differs from taking a snapshot to the effect
6346 that it doesn't create new differencing media. Also, once
6347 the machine is powered up from the state saved using this method,
6348 the saved state is deleted, so it will be impossible to return
6349 to this state later.
6350
6351 <note>
6352 On success, this method implicitly calls
6353 <link to="IMachine::saveSettings"/> to save all current machine
6354 settings (including runtime changes to the DVD medium, etc.).
6355 Together with the impossibility to change any VM settings when it is
6356 in the Saved state, this guarantees adequate hardware
6357 configuration of the machine when it is restored from the saved
6358 state file.
6359 </note>
6360
6361 <note>
6362 The machine must be in the Running or Paused state, otherwise
6363 the operation will fail.
6364 </note>
6365 <result name="VBOX_E_INVALID_VM_STATE">
6366 Virtual machine state neither Running nor Paused.
6367 </result>
6368 <result name="VBOX_E_FILE_ERROR">
6369 Failed to create directory for saved state file.
6370 </result>
6371
6372 <see><link to="#takeSnapshot"/></see>
6373 </desc>
6374 <param name="progress" type="IProgress" dir="return">
6375 <desc>Progress object to track the operation completion.</desc>
6376 </param>
6377 </method>
6378
6379 <method name="adoptSavedState">
6380 <desc>
6381 Associates the given saved state file to the virtual machine.
6382
6383 On success, the machine will go to the Saved state. Next time it is
6384 powered up, it will be restored from the adopted saved state and
6385 continue execution from the place where the saved state file was
6386 created.
6387
6388 The specified saved state file path may be absolute or relative to the
6389 folder the VM normally saves the state to (usually,
6390 <link to="IMachine::snapshotFolder"/>).
6391
6392 <note>
6393 It's a caller's responsibility to make sure the given saved state
6394 file is compatible with the settings of this virtual machine that
6395 represent its virtual hardware (memory size, storage disk configuration
6396 etc.). If there is a mismatch, the behavior of the virtual machine
6397 is undefined.
6398 </note>
6399 <result name="VBOX_E_INVALID_VM_STATE">
6400 Virtual machine state neither PoweredOff nor Aborted.
6401 </result>
6402 </desc>
6403 <param name="savedStateFile" type="wstring" dir="in">
6404 <desc>Path to the saved state file to adopt.</desc>
6405 </param>
6406 </method>
6407
6408 <method name="discardSavedState">
6409 <desc>
6410 Forcibly resets the machine to "Powered Off" state if it is
6411 currently in the "Saved" state (previously created by <link to="#saveState"/>).
6412 Next time the machine is powered up, a clean boot will occur.
6413 <note>
6414 This operation is equivalent to resetting or powering off
6415 the machine without doing a proper shutdown of the guest
6416 operating system; as with resetting a running phyiscal
6417 computer, it can can lead to data loss.
6418 </note>
6419 If @a fRemoveFile is @c true, the file in the machine directory
6420 into which the machine state was saved is also deleted. If
6421 this is @c false, then the state can be recovered and later
6422 re-inserted into a machine using <link to="#adoptSavedState" />.
6423 The location of the file can be found in the
6424 <link to="IMachine::stateFilePath" /> attribute.
6425 <result name="VBOX_E_INVALID_VM_STATE">
6426 Virtual machine not in state Saved.
6427 </result>
6428 </desc>
6429 <param name="fRemoveFile" type="boolean" dir="in" >
6430 <desc>Whether to also remove the saved state file.</desc>
6431 </param>
6432 </method>
6433
6434 <method name="getDeviceActivity">
6435 <desc>
6436 Gets the current activity type of a given device or device group.
6437 <result name="E_INVALIDARG">
6438 Invalid device type.
6439 </result>
6440 </desc>
6441 <param name="type" type="DeviceType" dir="in"/>
6442 <param name="activity" type="DeviceActivity" dir="return"/>
6443 </method>
6444
6445 <method name="attachUSBDevice">
6446 <desc>
6447 Attaches a host USB device with the given UUID to the
6448 USB controller of the virtual machine.
6449
6450 The device needs to be in one of the following states:
6451 <link to="USBDeviceState_Busy"/>,
6452 <link to="USBDeviceState_Available"/> or
6453 <link to="USBDeviceState_Held"/>,
6454 otherwise an error is immediately returned.
6455
6456 When the device state is
6457 <link to="USBDeviceState_Busy">Busy</link>, an error may also
6458 be returned if the host computer refuses to release it for some reason.
6459
6460 <see>IUSBController::deviceFilters, USBDeviceState</see>
6461 <result name="VBOX_E_INVALID_VM_STATE">
6462 Virtual machine state neither Running nor Paused.
6463 </result>
6464 <result name="VBOX_E_PDM_ERROR">
6465 Virtual machine does not have a USB controller.
6466 </result>
6467 </desc>
6468 <param name="id" type="uuid" mod="string" dir="in">
6469 <desc>UUID of the host USB device to attach.</desc>
6470 </param>
6471 </method>
6472
6473 <method name="detachUSBDevice">
6474 <desc>
6475 Detaches an USB device with the given UUID from the USB controller
6476 of the virtual machine.
6477
6478 After this method succeeds, the VirtualBox server re-initiates
6479 all USB filters as if the device were just physically attached
6480 to the host, but filters of this machine are ignored to avoid
6481 a possible automatic re-attachment.
6482
6483 <see>IUSBController::deviceFilters, USBDeviceState</see>
6484
6485 <result name="VBOX_E_PDM_ERROR">
6486 Virtual machine does not have a USB controller.
6487 </result>
6488 <result name="E_INVALIDARG">
6489 USB device not attached to this virtual machine.
6490 </result>
6491 </desc>
6492 <param name="id" type="uuid" mod="string" dir="in">
6493 <desc>UUID of the USB device to detach.</desc>
6494 </param>
6495 <param name="device" type="IUSBDevice" dir="return">
6496 <desc>Detached USB device.</desc>
6497 </param>
6498 </method>
6499
6500 <method name="findUSBDeviceByAddress">
6501 <desc>
6502 Searches for a USB device with the given host address.
6503
6504 <result name="VBOX_E_OBJECT_NOT_FOUND">
6505 Given @c name does not correspond to any USB device.
6506 </result>
6507
6508 <see>IUSBDevice::address</see>
6509 </desc>
6510 <param name="name" type="wstring" dir="in">
6511 <desc>
6512 Address of the USB device (as assigned by the host) to
6513 search for.
6514 </desc>
6515 </param>
6516 <param name="device" type="IUSBDevice" dir="return">
6517 <desc>Found USB device object.</desc>
6518 </param>
6519 </method>
6520
6521 <method name="findUSBDeviceById">
6522 <desc>
6523 Searches for a USB device with the given UUID.
6524
6525 <result name="VBOX_E_OBJECT_NOT_FOUND">
6526 Given @c id does not correspond to any USB device.
6527 </result>
6528
6529 <see>IUSBDevice::id</see>
6530 </desc>
6531 <param name="id" type="uuid" mod="string" dir="in">
6532 <desc>UUID of the USB device to search for.</desc>
6533 </param>
6534 <param name="device" type="IUSBDevice" dir="return">
6535 <desc>Found USB device object.</desc>
6536 </param>
6537 </method>
6538
6539 <method name="createSharedFolder">
6540 <desc>
6541 Creates a transient new shared folder by associating the given logical
6542 name with the given host path, adds it to the collection of shared
6543 folders and starts sharing it. Refer to the description of
6544 <link to="ISharedFolder"/> to read more about logical names.
6545
6546 <result name="VBOX_E_INVALID_VM_STATE">
6547 Virtual machine in Saved state or currently changing state.
6548 </result>
6549 <result name="VBOX_E_FILE_ERROR">
6550 Shared folder already exists or not accessible.
6551 </result>
6552 </desc>
6553 <param name="name" type="wstring" dir="in">
6554 <desc>Unique logical name of the shared folder.</desc>
6555 </param>
6556 <param name="hostPath" type="wstring" dir="in">
6557 <desc>Full path to the shared folder in the host file system.</desc>
6558 </param>
6559 <param name="writable" type="boolean" dir="in">
6560 <desc>Whether the share is writable or readonly</desc>
6561 </param>
6562 <param name="automount" type="boolean" dir="in">
6563 <desc>Whether the share gets automatically mounted by the guest
6564 or not.</desc>
6565 </param>
6566 </method>
6567
6568 <method name="removeSharedFolder">
6569 <desc>
6570 Removes a transient shared folder with the given name previously
6571 created by <link to="#createSharedFolder"/> from the collection of
6572 shared folders and stops sharing it.
6573 <result name="VBOX_E_INVALID_VM_STATE">
6574 Virtual machine in Saved state or currently changing state.
6575 </result>
6576 <result name="VBOX_E_FILE_ERROR">
6577 Shared folder does not exists.
6578 </result>
6579 </desc>
6580 <param name="name" type="wstring" dir="in">
6581 <desc>Logical name of the shared folder to remove.</desc>
6582 </param>
6583 </method>
6584
6585 <method name="takeSnapshot">
6586 <desc>
6587 Saves the current execution state
6588 and all settings of the machine and creates differencing images
6589 for all normal (non-independent) media.
6590 See <link to="ISnapshot" /> for an introduction to snapshots.
6591
6592 This method can be called for a PoweredOff, Saved (see
6593 <link to="#saveState"/>), Running or
6594 Paused virtual machine. When the machine is PoweredOff, an
6595 offline snapshot is created. When the machine is Running a live
6596 snapshot is created, and an online snapshot is is created when Paused.
6597
6598 The taken snapshot is always based on the
6599 <link to="IMachine::currentSnapshot">current snapshot</link>
6600 of the associated virtual machine and becomes a new current snapshot.
6601
6602 <note>
6603 This method implicitly calls <link to="IMachine::saveSettings"/> to
6604 save all current machine settings before taking an offline snapshot.
6605 </note>
6606
6607 <result name="VBOX_E_INVALID_VM_STATE">
6608 Virtual machine currently changing state.
6609 </result>
6610 </desc>
6611 <param name="name" type="wstring" dir="in">
6612 <desc>Short name for the snapshot.</desc>
6613 </param>
6614 <param name="description" type="wstring" dir="in">
6615 <desc>Optional description of the snapshot.</desc>
6616 </param>
6617 <param name="progress" type="IProgress" dir="return">
6618 <desc>Progress object to track the operation completion.</desc>
6619 </param>
6620 </method>
6621
6622 <method name="deleteSnapshot">
6623 <desc>
6624 Starts deleting the specified snapshot asynchronously.
6625 See <link to="ISnapshot" /> for an introduction to snapshots.
6626
6627 The execution state and settings of the associated machine stored in
6628 the snapshot will be deleted. The contents of all differencing media of
6629 this snapshot will be merged with the contents of their dependent child
6630 media to keep the medium chain valid (in other words, all changes
6631 represented by media being deleted will be propagated to their child
6632 medium). After that, this snapshot's differencing medium will be
6633 deleted. The parent of this snapshot will become a new parent for all
6634 its child snapshots.
6635
6636 If the deleted snapshot is the current one, its parent snapshot will
6637 become a new current snapshot. The current machine state is not directly
6638 affected in this case, except that currently attached differencing
6639 media based on media of the deleted snapshot will be also merged as
6640 described above.
6641
6642 If the deleted snapshot is the first or current snapshot, then the
6643 respective IMachine attributes will be adjusted. Deleting the current
6644 snapshot will also implicitly call <link to="IMachine::saveSettings"/>
6645 to make all current machine settings permanent.
6646
6647 Deleting a snapshot has the following preconditions:
6648
6649 <ul>
6650 <li>Child media of all normal media of the deleted snapshot
6651 must be accessible (see <link to="IMedium::state"/>) for this
6652 operation to succeed. In particular, this means that all virtual
6653 machines whose media are directly or indirectly based on the
6654 media of deleted snapshot must be powered off.</li>
6655
6656 <li>You cannot delete the snapshot if a medium attached to it has
6657 more than once child medium (differencing images) because otherwise
6658 merging would be impossible. This might be the case if there is
6659 more than one child snapshot or differencing images were created
6660 for other reason (e.g. implicitly because of multiple machine
6661 attachments).</li>
6662 </ul>
6663
6664
6665 The virtual machine's <link to="IMachine::state">state</link> is
6666 changed to "DeletingSnapshot", "DeletingSnapshotOnline" or
6667 "DeletingSnapshotPaused" while this operation is in progress.
6668
6669 <note>
6670 Merging medium contents can be very time and disk space
6671 consuming, if these media are big in size and have many
6672 children. However, if the snapshot being deleted is the last
6673 (head) snapshot on the branch, the operation will be rather
6674 quick.
6675 </note>
6676 <result name="VBOX_E_INVALID_VM_STATE">
6677 The running virtual machine prevents deleting this snapshot. This
6678 happens only in very specific situations, usually snapshots can be
6679 deleted without trouble while a VM is running. The error message
6680 text explains the reason for the failure.
6681 </result>
6682 </desc>
6683 <param name="id" type="uuid" mod="string" dir="in">
6684 <desc>UUID of the snapshot to delete.</desc>
6685 </param>
6686 <param name="progress" type="IProgress" dir="return">
6687 <desc>Progress object to track the operation completion.</desc>
6688 </param>
6689 </method>
6690
6691 <method name="restoreSnapshot">
6692 <desc>
6693 Starts resetting the machine's current state to the state contained
6694 in the given snapshot, asynchronously. All current settings of the
6695 machine will be reset and changes stored in differencing media
6696 will be lost.
6697 See <link to="ISnapshot" /> for an introduction to snapshots.
6698
6699 After this operation is successfully completed, new empty differencing
6700 media are created for all normal media of the machine.
6701
6702 If the given snapshot is an online snapshot, the machine will go to
6703 the <link to="MachineState_Saved"> saved state</link>, so that the
6704 next time it is powered on, the execution state will be restored
6705 from the state of the snapshot.
6706
6707 <note>
6708 The machine must not be running, otherwise the operation will fail.
6709 </note>
6710
6711 <note>
6712 If the machine state is <link to="MachineState_Saved">Saved</link>
6713 prior to this operation, the saved state file will be implicitly
6714 deleted (as if <link to="IConsole::discardSavedState"/> were
6715 called).
6716 </note>
6717
6718 <result name="VBOX_E_INVALID_VM_STATE">
6719 Virtual machine is running.
6720 </result>
6721 </desc>
6722 <param name="snapshot" type="ISnapshot" dir="in">
6723 <desc>The snapshot to restore the VM state from.</desc>
6724 </param>
6725 <param name="progress" type="IProgress" dir="return">
6726 <desc>Progress object to track the operation completion.</desc>
6727 </param>
6728 </method>
6729
6730 <method name="teleport">
6731 <desc>
6732 Teleport the VM to a different host machine or process.
6733
6734 TODO explain the details.
6735
6736 <result name="VBOX_E_INVALID_VM_STATE">
6737 Virtual machine not running or paused.
6738 </result>
6739 </desc>
6740 <param name="hostname" type="wstring" dir="in">
6741 <desc>The name or IP of the host to teleport to.</desc>
6742 </param>
6743 <param name="tcpport" type="unsigned long" dir="in">
6744 <desc>The TCP port to connect to (1..65535).</desc>
6745 </param>
6746 <param name="password" type="wstring" dir="in">
6747 <desc>The password.</desc>
6748 </param>
6749 <param name="maxDowntime" type="unsigned long" dir="in">
6750 <desc>
6751 The maximum allowed downtime given as milliseconds. 0 is not a valid
6752 value. Recommended value: 250 ms.
6753
6754 The higher the value is, the greater the chance for a successful
6755 teleportation. A small value may easily result in the teleportation
6756 process taking hours and eventually fail.
6757
6758 <note>
6759 The current implementation treats this a guideline, not as an
6760 absolute rule.
6761 </note>
6762 </desc>
6763 </param>
6764 <param name="progress" type="IProgress" dir="return">
6765 <desc>Progress object to track the operation completion.</desc>
6766 </param>
6767 </method>
6768
6769 </interface>
6770
6771 <!--
6772 // IHost
6773 /////////////////////////////////////////////////////////////////////////
6774 -->
6775
6776 <enum
6777 name="HostNetworkInterfaceMediumType"
6778 uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
6779 >
6780 <desc>
6781 Type of encapsulation. Ethernet encapsulation includes both wired and
6782 wireless Ethernet connections.
6783 <see>IHostNetworkInterface</see>
6784 </desc>
6785
6786 <const name="Unknown" value="0">
6787 <desc>
6788 The type of interface cannot be determined.
6789 </desc>
6790 </const>
6791 <const name="Ethernet" value="1">
6792 <desc>
6793 Ethernet frame encapsulation.
6794 </desc>
6795 </const>
6796 <const name="PPP" value="2">
6797 <desc>
6798 Point-to-point protocol encapsulation.
6799 </desc>
6800 </const>
6801 <const name="SLIP" value="3">
6802 <desc>
6803 Serial line IP encapsulation.
6804 </desc>
6805 </const>
6806 </enum>
6807
6808 <enum
6809 name="HostNetworkInterfaceStatus"
6810 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
6811 >
6812 <desc>
6813 Current status of the interface.
6814 <see>IHostNetworkInterface</see>
6815 </desc>
6816
6817 <const name="Unknown" value="0">
6818 <desc>
6819 The state of interface cannot be determined.
6820 </desc>
6821 </const>
6822 <const name="Up" value="1">
6823 <desc>
6824 The interface is fully operational.
6825 </desc>
6826 </const>
6827 <const name="Down" value="2">
6828 <desc>
6829 The interface is not functioning.
6830 </desc>
6831 </const>
6832 </enum>
6833
6834 <enum
6835 name="HostNetworkInterfaceType"
6836 uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
6837 >
6838 <desc>
6839 Network interface type.
6840 </desc>
6841 <const name="Bridged" value="1"/>
6842 <const name="HostOnly" value="2"/>
6843 </enum>
6844
6845 <interface
6846 name="IHostNetworkInterface" extends="$unknown"
6847 uuid="ce6fae58-7642-4102-b5db-c9005c2320a8"
6848 wsmap="managed"
6849 >
6850 <desc>
6851 Represents one of host's network interfaces. IP V6 address and network
6852 mask are strings of 32 hexdecimal digits grouped by four. Groups are
6853 separated by colons.
6854 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
6855 </desc>
6856 <attribute name="name" type="wstring" readonly="yes">
6857 <desc>Returns the host network interface name.</desc>
6858 </attribute>
6859
6860 <attribute name="id" type="uuid" mod="string" readonly="yes">
6861 <desc>Returns the interface UUID.</desc>
6862 </attribute>
6863
6864 <attribute name="networkName" type="wstring" readonly="yes">
6865 <desc>Returns the name of a virtual network the interface gets attached to.</desc>
6866 </attribute>
6867
6868 <attribute name="dhcpEnabled" type="boolean" readonly="yes">
6869 <desc>Specifies whether the DHCP is enabled for the interface.</desc>
6870 </attribute>
6871
6872 <attribute name="IPAddress" type="wstring" readonly="yes">
6873 <desc>Returns the IP V4 address of the interface.</desc>
6874 </attribute>
6875
6876 <attribute name="networkMask" type="wstring" readonly="yes">
6877 <desc>Returns the network mask of the interface.</desc>
6878 </attribute>
6879
6880 <attribute name="IPV6Supported" type="boolean" readonly="yes">
6881 <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
6882 </attribute>
6883
6884 <attribute name="IPV6Address" type="wstring" readonly="yes">
6885 <desc>Returns the IP V6 address of the interface.</desc>
6886 </attribute>
6887
6888 <attribute name="IPV6NetworkMaskPrefixLength" type="unsigned long" readonly="yes">
6889 <desc>Returns the length IP V6 network mask prefix of the interface.</desc>
6890 </attribute>
6891
6892 <attribute name="hardwareAddress" type="wstring" readonly="yes">
6893 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
6894 </attribute>
6895
6896 <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
6897 <desc>Type of protocol encapsulation used.</desc>
6898 </attribute>
6899
6900 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
6901 <desc>Status of the interface.</desc>
6902 </attribute>
6903
6904 <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
6905 <desc>specifies the host interface type.</desc>
6906 </attribute>
6907
6908 <method name="enableStaticIpConfig">
6909 <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
6910 <param name="IPAddress" type="wstring" dir="in">
6911 <desc>
6912 IP address.
6913 </desc>
6914 </param>
6915 <param name="networkMask" type="wstring" dir="in">
6916 <desc>
6917 network mask.
6918 </desc>
6919 </param>
6920 </method>
6921
6922 <method name="enableStaticIpConfigV6">
6923 <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
6924 <param name="IPV6Address" type="wstring" dir="in">
6925 <desc>
6926 IP address.
6927 </desc>
6928 </param>
6929 <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
6930 <desc>
6931 network mask.
6932 </desc>
6933 </param>
6934 </method>
6935
6936 <method name="enableDynamicIpConfig">
6937 <desc>enables the dynamic IP configuration.</desc>
6938 </method>
6939
6940 <method name="dhcpRediscover">
6941 <desc>refreshes the IP configuration for dhcp-enabled interface.</desc>
6942 </method>
6943
6944 </interface>
6945
6946 <interface
6947 name="IHost" extends="$unknown"
6948 uuid="35b004f4-7806-4009-bfa8-d1308adba7e5"
6949 wsmap="managed"
6950 >
6951 <desc>
6952 The IHost interface represents the physical machine that this VirtualBox
6953 installation runs on.
6954
6955 An object implementing this interface is returned by the
6956 <link to="IVirtualBox::host" /> attribute. This interface contains
6957 read-only information about the host's physical hardware (such as what
6958 processors and disks are available, what the host operating system is,
6959 and so on) and also allows for manipulating some of the host's hardware,
6960 such as global USB device filters and host interface networking.
6961
6962 </desc>
6963 <attribute name="DVDDrives" type="IMedium" readonly="yes" safearray="yes">
6964 <desc>List of DVD drives available on the host.</desc>
6965 </attribute>
6966
6967 <attribute name="floppyDrives" type="IMedium" readonly="yes" safearray="yes">
6968 <desc>List of floppy drives available on the host.</desc>
6969 </attribute>
6970
6971 <attribute name="USBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
6972 <desc>
6973 List of USB devices currently attached to the host.
6974 Once a new device is physically attached to the host computer,
6975 it appears in this list and remains there until detached.
6976
6977 <note>
6978 If USB functionality is not available in the given edition of
6979 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6980 </note>
6981 </desc>
6982 </attribute>
6983
6984 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
6985 <desc>
6986 List of USB device filters in action.
6987 When a new device is physically attached to the host computer,
6988 filters from this list are applied to it (in order they are stored
6989 in the list). The first matched filter will determine the
6990 <link to="IHostUSBDeviceFilter::action">action</link>
6991 performed on the device.
6992
6993 Unless the device is ignored by these filters, filters of all
6994 currently running virtual machines
6995 (<link to="IUSBController::deviceFilters"/>) are applied to it.
6996
6997 <note>
6998 If USB functionality is not available in the given edition of
6999 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7000 </note>
7001
7002 <see>IHostUSBDeviceFilter, USBDeviceState</see>
7003 </desc>
7004 </attribute>
7005
7006 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
7007 <desc>List of host network interfaces currently defined on the host.</desc>
7008 </attribute>
7009
7010 <attribute name="processorCount" type="unsigned long" readonly="yes">
7011 <desc>Number of (logical) CPUs installed in the host system.</desc>
7012 </attribute>
7013
7014 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
7015 <desc>Number of (logical) CPUs online in the host system.</desc>
7016 </attribute>
7017
7018 <attribute name="processorCoreCount" type="unsigned long" readonly="yes">
7019 <desc>Number of physical processor cores installed in the host system.</desc>
7020 </attribute>
7021
7022 <method name="getProcessorSpeed">
7023 <desc>Query the (approximate) maximum speed of a specified host CPU in
7024 Megahertz.
7025 </desc>
7026 <param name="cpuId" type="unsigned long" dir="in">
7027 <desc>
7028 Identifier of the CPU.
7029 </desc>
7030 </param>
7031 <param name="speed" type="unsigned long" dir="return">
7032 <desc>
7033 Speed value. 0 is returned if value is not known or @a cpuId is
7034 invalid.
7035 </desc>
7036 </param>
7037 </method>
7038
7039 <method name="getProcessorFeature">
7040 <desc>Query whether a CPU feature is supported or not.</desc>
7041 <param name="feature" type="ProcessorFeature" dir="in">
7042 <desc>
7043 CPU Feature identifier.
7044 </desc>
7045 </param>
7046 <param name="supported" type="boolean" dir="return">
7047 <desc>
7048 Feature is supported or not.
7049 </desc>
7050 </param>
7051 </method>
7052
7053 <method name="getProcessorDescription">
7054 <desc>Query the model string of a specified host CPU.
7055 </desc>
7056 <param name="cpuId" type="unsigned long" dir="in">
7057 <desc>
7058 Identifier of the CPU.
7059 <note>
7060 The current implementation might not necessarily return the
7061 description for this exact CPU.
7062 </note>
7063 </desc>
7064 </param>
7065 <param name="description" type="wstring" dir="return">
7066 <desc>
7067 Model string. An empty string is returned if value is not known or
7068 @a cpuId is invalid.
7069 </desc>
7070 </param>
7071 </method>
7072
7073 <method name="getProcessorCPUIDLeaf">
7074 <desc>
7075 Returns the CPU cpuid information for the specified leaf.
7076 </desc>
7077 <param name="cpuId" type="unsigned long" dir="in">
7078 <desc>
7079 Identifier of the CPU. The CPU most be online.
7080 <note>
7081 The current implementation might not necessarily return the
7082 description for this exact CPU.
7083 </note>
7084 </desc>
7085 </param>
7086 <param name="leaf" type="unsigned long" dir="in">
7087 <desc>
7088 CPUID leaf index (eax).
7089 </desc>
7090 </param>
7091 <param name="subLeaf" type="unsigned long" dir="in">
7092 <desc>
7093 CPUID leaf sub index (ecx). This currently only applies to cache
7094 information on Intel CPUs. Use 0 if retrieving values for
7095 <link to="IMachine::setCPUIDLeaf"/>.
7096 </desc>
7097 </param>
7098 <param name="valEax" type="unsigned long" dir="out">
7099 <desc>
7100 CPUID leaf value for register eax.
7101 </desc>
7102 </param>
7103 <param name="valEbx" type="unsigned long" dir="out">
7104 <desc>
7105 CPUID leaf value for register ebx.
7106 </desc>
7107 </param>
7108 <param name="valEcx" type="unsigned long" dir="out">
7109 <desc>
7110 CPUID leaf value for register ecx.
7111 </desc>
7112 </param>
7113 <param name="valEdx" type="unsigned long" dir="out">
7114 <desc>
7115 CPUID leaf value for register edx.
7116 </desc>
7117 </param>
7118 </method>
7119
7120 <attribute name="memorySize" type="unsigned long" readonly="yes">
7121 <desc>Amount of system memory in megabytes installed in the host system.</desc>
7122 </attribute>
7123
7124 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
7125 <desc>Available system memory in the host system.</desc>
7126 </attribute>
7127
7128 <attribute name="operatingSystem" type="wstring" readonly="yes">
7129 <desc>Name of the host system's operating system.</desc>
7130 </attribute>
7131
7132 <attribute name="OSVersion" type="wstring" readonly="yes">
7133 <desc>Host operating system's version string.</desc>
7134 </attribute>
7135
7136 <attribute name="UTCTime" type="long long" readonly="yes">
7137 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
7138 </attribute>
7139
7140 <attribute name="Acceleration3DAvailable" type="boolean" readonly="yes">
7141 <desc>Returns @c true when the host supports 3D hardware acceleration.</desc>
7142 </attribute>
7143
7144 <method name="createHostOnlyNetworkInterface">
7145 <desc>
7146 Creates a new adapter for Host Only Networking.
7147 <result name="E_INVALIDARG">
7148 Host network interface @a name already exists.
7149 </result>
7150 </desc>
7151 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
7152 <desc>
7153 Created host interface object.
7154 </desc>
7155 </param>
7156 <param name="progress" type="IProgress" dir="return">
7157 <desc>
7158 Progress object to track the operation completion.
7159 </desc>
7160 </param>
7161 </method>
7162
7163 <method name="removeHostOnlyNetworkInterface">
7164 <desc>
7165 Removes the given Host Only Networking interface.
7166 <result name="VBOX_E_OBJECT_NOT_FOUND">
7167 No host network interface matching @a id found.
7168 </result>
7169 </desc>
7170 <param name="id" type="uuid" mod="string" dir="in">
7171 <desc>
7172 Adapter GUID.
7173 </desc>
7174 </param>
7175 <param name="progress" type="IProgress" dir="return">
7176 <desc>
7177 Progress object to track the operation completion.
7178 </desc>
7179 </param>
7180 </method>
7181
7182 <method name="createUSBDeviceFilter">
7183 <desc>
7184 Creates a new USB device filter. All attributes except
7185 the filter name are set to empty (any match),
7186 <i>active</i> is @c false (the filter is not active).
7187
7188 The created filter can be added to the list of filters using
7189 <link to="#insertUSBDeviceFilter"/>.
7190
7191 <see>#USBDeviceFilters</see>
7192 </desc>
7193 <param name="name" type="wstring" dir="in">
7194 <desc>
7195 Filter name. See <link to="IUSBDeviceFilter::name"/> for more information.
7196 </desc>
7197 </param>
7198 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
7199 <desc>Created filter object.</desc>
7200 </param>
7201 </method>
7202
7203 <method name="insertUSBDeviceFilter">
7204 <desc>
7205 Inserts the given USB device to the specified position
7206 in the list of filters.
7207
7208 Positions are numbered starting from @c 0. If the specified
7209 position is equal to or greater than the number of elements in
7210 the list, the filter is added at the end of the collection.
7211
7212 <note>
7213 Duplicates are not allowed, so an attempt to insert a
7214 filter already in the list is an error.
7215 </note>
7216 <note>
7217 If USB functionality is not available in the given edition of
7218 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7219 </note>
7220
7221 <see>#USBDeviceFilters</see>
7222
7223 <result name="VBOX_E_INVALID_OBJECT_STATE">
7224 USB device filter is not created within this VirtualBox instance.
7225 </result>
7226 <result name="E_INVALIDARG">
7227 USB device filter already in list.
7228 </result>
7229
7230 </desc>
7231 <param name="position" type="unsigned long" dir="in">
7232 <desc>Position to insert the filter to.</desc>
7233 </param>
7234 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
7235 <desc>USB device filter to insert.</desc>
7236 </param>
7237 </method>
7238
7239 <method name="removeUSBDeviceFilter">
7240 <desc>
7241 Removes a USB device filter from the specified position in the
7242 list of filters.
7243
7244 Positions are numbered starting from @c 0. Specifying a
7245 position equal to or greater than the number of elements in
7246 the list will produce an error.
7247
7248 <note>
7249 If USB functionality is not available in the given edition of
7250 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7251 </note>
7252
7253 <see>#USBDeviceFilters</see>
7254
7255 <result name="E_INVALIDARG">
7256 USB device filter list empty or invalid @a position.
7257 </result>
7258
7259 </desc>
7260 <param name="position" type="unsigned long" dir="in">
7261 <desc>Position to remove the filter from.</desc>
7262 </param>
7263 </method>
7264
7265 <method name="findHostDVDDrive">
7266 <desc>
7267 Searches for a host DVD drive with the given @c name.
7268
7269 <result name="VBOX_E_OBJECT_NOT_FOUND">
7270 Given @c name does not correspond to any host drive.
7271 </result>
7272
7273 </desc>
7274 <param name="name" type="wstring" dir="in">
7275 <desc>Name of the host drive to search for</desc>
7276 </param>
7277 <param name="drive" type="IMedium" dir="return">
7278 <desc>Found host drive object</desc>
7279 </param>
7280 </method>
7281
7282 <method name="findHostFloppyDrive">
7283 <desc>
7284 Searches for a host floppy drive with the given @c name.
7285
7286 <result name="VBOX_E_OBJECT_NOT_FOUND">
7287 Given @c name does not correspond to any host floppy drive.
7288 </result>
7289
7290 </desc>
7291 <param name="name" type="wstring" dir="in">
7292 <desc>Name of the host floppy drive to search for</desc>
7293 </param>
7294 <param name="drive" type="IMedium" dir="return">
7295 <desc>Found host floppy drive object</desc>
7296 </param>
7297 </method>
7298
7299 <method name="findHostNetworkInterfaceByName">
7300 <desc>
7301 Searches through all host network interfaces for an interface with
7302 the given @c name.
7303 <note>
7304 The method returns an error if the given @c name does not
7305 correspond to any host network interface.
7306 </note>
7307 </desc>
7308 <param name="name" type="wstring" dir="in">
7309 <desc>Name of the host network interface to search for.</desc>
7310 </param>
7311 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
7312 <desc>Found host network interface object.</desc>
7313 </param>
7314 </method>
7315 <method name="findHostNetworkInterfaceById">
7316 <desc>
7317 Searches through all host network interfaces for an interface with
7318 the given GUID.
7319 <note>
7320 The method returns an error if the given GUID does not
7321 correspond to any host network interface.
7322 </note>
7323 </desc>
7324 <param name="id" type="uuid" mod="string" dir="in">
7325 <desc>GUID of the host network interface to search for.</desc>
7326 </param>
7327 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
7328 <desc>Found host network interface object.</desc>
7329 </param>
7330 </method>
7331 <method name="findHostNetworkInterfacesOfType">
7332 <desc>
7333 Searches through all host network interfaces and returns a list of interfaces of the specified type
7334 </desc>
7335 <param name="type" type="HostNetworkInterfaceType" dir="in">
7336 <desc>type of the host network interfaces to search for.</desc>
7337 </param>
7338 <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
7339 <desc>Found host network interface objects.</desc>
7340 </param>
7341 </method>
7342
7343 <method name="findUSBDeviceById">
7344 <desc>
7345 Searches for a USB device with the given UUID.
7346
7347 <result name="VBOX_E_OBJECT_NOT_FOUND">
7348 Given @c id does not correspond to any USB device.
7349 </result>
7350
7351 <see>IHostUSBDevice::id</see>
7352 </desc>
7353 <param name="id" type="uuid" mod="string" dir="in">
7354 <desc>UUID of the USB device to search for.</desc>
7355 </param>
7356 <param name="device" type="IHostUSBDevice" dir="return">
7357 <desc>Found USB device object.</desc>
7358 </param>
7359 </method>
7360
7361 <method name="findUSBDeviceByAddress">
7362 <desc>
7363 Searches for a USB device with the given host address.
7364
7365 <result name="VBOX_E_OBJECT_NOT_FOUND">
7366 Given @c name does not correspond to any USB device.
7367 </result>
7368
7369 <see>IHostUSBDevice::address</see>
7370 </desc>
7371 <param name="name" type="wstring" dir="in">
7372 <desc>
7373 Address of the USB device (as assigned by the host) to
7374 search for.
7375 </desc>
7376 </param>
7377 <param name="device" type="IHostUSBDevice" dir="return">
7378 <desc>Found USB device object.</desc>
7379 </param>
7380 </method>
7381
7382 </interface>
7383
7384 <!--
7385 // ISystemProperties
7386 /////////////////////////////////////////////////////////////////////////
7387 -->
7388
7389 <interface
7390 name="ISystemProperties"
7391 extends="$unknown"
7392 uuid="2f89cdfe-2d10-43d4-b37f-61760f877f29"
7393 wsmap="managed"
7394 >
7395 <desc>
7396 The ISystemProperties interface represents global properties of the given
7397 VirtualBox installation.
7398
7399 These properties define limits and default values for various attributes
7400 and parameters. Most of the properties are read-only, but some can be
7401 changed by a user.
7402 </desc>
7403
7404 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
7405 <desc>Minimum guest system memory in Megabytes.</desc>
7406 </attribute>
7407
7408 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
7409 <desc>Maximum guest system memory in Megabytes.</desc>
7410 </attribute>
7411
7412 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
7413 <desc>Minimum guest video memory in Megabytes.</desc>
7414 </attribute>
7415
7416 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
7417 <desc>Maximum guest video memory in Megabytes.</desc>
7418 </attribute>
7419
7420 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
7421 <desc>Minimum CPU count.</desc>
7422 </attribute>
7423
7424 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
7425 <desc>Maximum CPU count.</desc>
7426 </attribute>
7427
7428 <attribute name="maxGuestMonitors" type="unsigned long" readonly="yes">
7429 <desc>Maximum of monitors which could be connected.</desc>
7430 </attribute>
7431
7432 <attribute name="infoVDSize" type="long long" readonly="yes">
7433 <desc>Maximum size of a virtual disk image in bytes. Informational value,
7434 does not reflect the limits of any virtual disk image format.</desc>
7435 </attribute>
7436
7437 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
7438 <desc>
7439 Maximum number of serial ports associated with every
7440 <link to="IMachine"/> instance.
7441 </desc>
7442 </attribute>
7443
7444 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
7445 <desc>
7446 Maximum number of parallel ports associated with every
7447 <link to="IMachine"/> instance.
7448 </desc>
7449 </attribute>
7450
7451 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
7452 <desc>
7453 Maximum device position in the boot order. This value corresponds
7454 to the total number of devices a machine can boot from, to make it
7455 possible to include all possible devices to the boot list.
7456 <see><link to="IMachine::setBootOrder"/></see>
7457 </desc>
7458 </attribute>
7459
7460 <attribute name="defaultMachineFolder" type="wstring">
7461 <desc>
7462 Full path to the default directory used to create new or open
7463 existing machines when a machine settings file name contains no
7464 path.
7465
7466 Starting with VirtualBox 4.0, by default, this attribute contains
7467 the full path of folder named "VirtualBox VMs" in the user's
7468 home directory, which depends on the host platform.
7469
7470 When setting this attribute, a full path must be specified.
7471 Setting this property to @c null or an empty string or the
7472 special value "Machines" (for compatibility reasons) will restore
7473 that default value.
7474
7475 If the folder specified herein does not exist, it will be created
7476 automatically as needed.
7477
7478 <see>
7479 <link to="IVirtualBox::createMachine"/>,
7480 <link to="IVirtualBox::openMachine"/>
7481 </see>
7482 </desc>
7483 </attribute>
7484
7485 <attribute name="mediumFormats" type="IMediumFormat" safearray="yes" readonly="yes">
7486 <desc>
7487 List of all medium storage formats supported by this VirtualBox
7488 installation.
7489
7490 Keep in mind that the medium format identifier
7491 (<link to="IMediumFormat::id"/>) used in other API calls like
7492 <link to="IVirtualBox::createHardDisk"/> to refer to a particular
7493 medium format is a case-insensitive string. This means that, for
7494 example, all of the following strings:
7495 <pre>
7496 "VDI"
7497 "vdi"
7498 "VdI"</pre>
7499 refer to the same medium format.
7500
7501 Note that the virtual medium framework is backend-based, therefore
7502 the list of supported formats depends on what backends are currently
7503 installed.
7504
7505 <see>
7506 <link to="IMediumFormat"/>,
7507 </see>
7508 </desc>
7509 </attribute>
7510
7511 <attribute name="defaultHardDiskFormat" type="wstring">
7512 <desc>
7513 Identifier of the default medium format used by VirtualBox.
7514
7515 The medium format set by this attribute is used by VirtualBox
7516 when the medium format was not specified explicitly. One example is
7517 <link to="IVirtualBox::createHardDisk"/> with the empty
7518 format argument. A more complex example is implicit creation of
7519 differencing media when taking a snapshot of a virtual machine:
7520 this operation will try to use a format of the parent medium first
7521 and if this format does not support differencing media the default
7522 format specified by this argument will be used.
7523
7524 The list of supported medium formats may be obtained by the
7525 <link to="#mediumFormats"/> call. Note that the default medium
7526 format must have a capability to create differencing media;
7527 otherwise operations that create media implicitly may fail
7528 unexpectedly.
7529
7530 The initial value of this property is <tt>"VDI"</tt> in the current
7531 version of the VirtualBox product, but may change in the future.
7532
7533 <note>
7534 Setting this property to @c null or empty string will restore the
7535 initial value.
7536 </note>
7537
7538 <see>
7539 <link to="#mediumFormats"/>,
7540 <link to="IMediumFormat::id"/>,
7541 <link to="IVirtualBox::createHardDisk"/>
7542 </see>
7543 </desc>
7544 </attribute>
7545
7546 <attribute name="freeDiskSpaceWarning" type="long long">
7547 <desc>Issue a warning if the free disk space is below (or in some disk
7548 intensive operation is expected to go below) the given size in
7549 bytes.</desc>
7550 </attribute>
7551
7552 <attribute name="freeDiskSpacePercentWarning" type="unsigned long">
7553 <desc>Issue a warning if the free disk space is below (or in some disk
7554 intensive operation is expected to go below) the given percentage.</desc>
7555 </attribute>
7556
7557 <attribute name="freeDiskSpaceError" type="long long">
7558 <desc>Issue an error if the free disk space is below (or in some disk
7559 intensive operation is expected to go below) the given size in
7560 bytes.</desc>
7561 </attribute>
7562
7563 <attribute name="freeDiskSpacePercentError" type="unsigned long">
7564 <desc>Issue an error if the free disk space is below (or in some disk
7565 intensive operation is expected to go below) the given percentage.</desc>
7566 </attribute>
7567
7568 <attribute name="VRDEAuthLibrary" type="wstring">
7569 <desc>
7570 Library that provides authentication for Remote Desktop clients. The library
7571 is used if a virtual machine's authentication type is set to "external"
7572 in the VM RemoteDisplay configuration.
7573
7574 The system library extension (".DLL" or ".so") must be omitted.
7575 A full path can be specified; if not, then the library must reside on the
7576 system's default library path.
7577
7578 The default value of this property is <tt>"VBoxAuth"</tt>. There is a library
7579 of that name in one of the default VirtualBox library directories.
7580
7581 For details about VirtualBox authentication libraries and how to implement
7582 them, please refer to the VirtualBox manual.
7583
7584 <note>
7585 Setting this property to @c null or empty string will restore the
7586 initial value.
7587 </note>
7588 </desc>
7589 </attribute>
7590
7591 <attribute name="webServiceAuthLibrary" type="wstring">
7592 <desc>
7593 Library that provides authentication for webservice clients. The library
7594 is used if a virtual machine's authentication type is set to "external"
7595 in the VM RemoteDisplay configuration and will be called from
7596 within the <link to="IWebsessionManager::logon" /> implementation.
7597
7598 As opposed to <link to="ISystemProperties::VRDEAuthLibrary" />,
7599 there is no per-VM setting for this, as the webservice is a global
7600 resource (if it is running). Only for this setting (for the webservice),
7601 setting this value to a literal <tt>"null"</tt> string disables authentication,
7602 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
7603 no matter what user name and password are supplied.
7604
7605 The initial value of this property is <tt>"VBoxAuth"</tt>,
7606 meaning that the webservice will use the same authentication
7607 library that is used by default for VRDE (again, see
7608 <link to="ISystemProperties::VRDEAuthLibrary" />).
7609 The format and calling convention of authentication libraries
7610 is the same for the webservice as it is for VRDE.
7611
7612 <note>
7613 Setting this property to @c null or empty string will restore the
7614 initial value.
7615 </note>
7616 </desc>
7617 </attribute>
7618
7619 <attribute name="defaultVRDEExtPack" type="wstring">
7620 <desc>
7621 The name of the extension pack providing the default VRDE.
7622
7623 This attribute is for choosing between multiple extension packs
7624 providing VRDE. If only one is installed, it will automatically be the
7625 default one. The attribute value can be empty if no VRDE extension
7626 pack is installed.
7627
7628 For details about VirtualBox Remote Desktop Extension and how to
7629 implement one, please refer to the VirtualBox SDK.
7630 </desc>
7631 </attribute>
7632
7633 <attribute name="LogHistoryCount" type="unsigned long">
7634 <desc>
7635 This value specifies how many old release log files are kept.
7636 </desc>
7637 </attribute>
7638
7639 <attribute name="defaultAudioDriver" type="AudioDriverType" readonly="yes">
7640 <desc>This value hold the default audio driver for the current
7641 system.</desc>
7642 </attribute>
7643
7644
7645 <method name="getMaxNetworkAdapters">
7646 <desc>
7647 Maximum total number of network adapters associated with every
7648 <link to="IMachine"/> instance.
7649 </desc>
7650
7651 <param name="chipset" type="ChipsetType" dir="in">
7652 <desc>The chipset type to get the value for.</desc>
7653 </param>
7654
7655
7656 <param name="maxNetworkAdapters" type="unsigned long" dir="return">
7657 <desc>The maximum total number of network adapters allowed.</desc>
7658 </param>
7659
7660 </method>
7661
7662 <method name="getMaxNetworkAdaptersOfType">
7663 <desc>
7664 Maximum number of network adapters of a given attachment type,
7665 associated with every <link to="IMachine"/> instance.
7666 </desc>
7667
7668 <param name="chipset" type="ChipsetType" dir="in">
7669 <desc>The chipset type to get the value for.</desc>
7670 </param>
7671
7672 <param name="type" type="NetworkAttachmentType" dir="in">
7673 <desc>Type of attachment.</desc>
7674 </param>
7675
7676 <param name="maxNetworkAdapters" type="unsigned long" dir="return">
7677 <desc>The maximum number of network adapters allowed for
7678 particular chipset and attachment type.</desc>
7679 </param>
7680
7681 </method>
7682
7683
7684 <method name="getMaxDevicesPerPortForStorageBus">
7685 <desc>Returns the maximum number of devices which can be attached to a port
7686 for the given storage bus.</desc>
7687
7688 <param name="bus" type="StorageBus" dir="in">
7689 <desc>The storage bus type to get the value for.</desc>
7690 </param>
7691
7692 <param name="maxDevicesPerPort" type="unsigned long" dir="return">
7693 <desc>The maximum number of devices which can be attached to the port for the given
7694 storage bus.</desc>
7695 </param>
7696 </method>
7697
7698 <method name="getMinPortCountForStorageBus">
7699 <desc>Returns the minimum number of ports the given storage bus supports.</desc>
7700
7701 <param name="bus" type="StorageBus" dir="in">
7702 <desc>The storage bus type to get the value for.</desc>
7703 </param>
7704
7705 <param name="minPortCount" type="unsigned long" dir="return">
7706 <desc>The minimum number of ports for the given storage bus.</desc>
7707 </param>
7708 </method>
7709
7710 <method name="getMaxPortCountForStorageBus">
7711 <desc>Returns the maximum number of ports the given storage bus supports.</desc>
7712
7713 <param name="bus" type="StorageBus" dir="in">
7714 <desc>The storage bus type to get the value for.</desc>
7715 </param>
7716
7717 <param name="maxPortCount" type="unsigned long" dir="return">
7718 <desc>The maximum number of ports for the given storage bus.</desc>
7719 </param>
7720 </method>
7721
7722 <method name="getMaxInstancesOfStorageBus">
7723 <desc>Returns the maximum number of storage bus instances which
7724 can be configured for each VM. This corresponds to the number of
7725 storage controllers one can have. Value may depend on chipset type
7726 used.</desc>
7727
7728 <param name="chipset" type="ChipsetType" dir="in">
7729 <desc>The chipset type to get the value for.</desc>
7730 </param>
7731
7732 <param name="bus" type="StorageBus" dir="in">
7733 <desc>The storage bus type to get the value for.</desc>
7734 </param>
7735
7736 <param name="maxInstances" type="unsigned long" dir="return">
7737 <desc>The maximum number of instances for the given storage bus.</desc>
7738 </param>
7739 </method>
7740
7741 <method name="getDeviceTypesForStorageBus">
7742 <desc>Returns list of all the supported device types
7743 (<link to="DeviceType"/>) for the given type of storage
7744 bus.</desc>
7745
7746 <param name="bus" type="StorageBus" dir="in">
7747 <desc>The storage bus type to get the value for.</desc>
7748 </param>
7749
7750 <param name="deviceTypes" type="DeviceType" safearray="yes" dir="return">
7751 <desc>The list of all supported device types for the given storage bus.</desc>
7752 </param>
7753 </method>
7754
7755 <method name="getDefaultIoCacheSettingForStorageController">
7756 <desc>Returns the default I/O cache setting for the
7757 given storage controller</desc>
7758
7759 <param name="controllerType" type="StorageControllerType" dir="in">
7760 <desc>The storage controller to the setting for.</desc>
7761 </param>
7762
7763 <param name="enabled" type="boolean" dir="return">
7764 <desc>Returned flag indicating the default value</desc>
7765 </param>
7766 </method>
7767 </interface>
7768
7769 <!--
7770 // IGuest
7771 /////////////////////////////////////////////////////////////////////////
7772 -->
7773
7774 <interface
7775 name="IGuestOSType" extends="$unknown"
7776 uuid="432c1546-1354-4abf-bf08-878a32a373f5"
7777 wsmap="struct"
7778 >
7779 <desc>
7780 </desc>
7781
7782 <attribute name="familyId" type="wstring" readonly="yes">
7783 <desc>Guest OS family identifier string.</desc>
7784 </attribute>
7785
7786 <attribute name="familyDescription" type="wstring" readonly="yes">
7787 <desc>Human readable description of the guest OS family.</desc>
7788 </attribute>
7789
7790 <attribute name="id" type="wstring" readonly="yes">
7791 <desc>Guest OS identifier string.</desc>
7792 </attribute>
7793
7794 <attribute name="description" type="wstring" readonly="yes">
7795 <desc>Human readable description of the guest OS.</desc>
7796 </attribute>
7797
7798 <attribute name="is64Bit" type="boolean" readonly="yes">
7799 <desc>Returns @c true if the given OS is 64-bit</desc>
7800 </attribute>
7801
7802 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
7803 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
7804 </attribute>
7805
7806 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
7807 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
7808 </attribute>
7809
7810 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
7811 <desc>Recommended RAM size in Megabytes.</desc>
7812 </attribute>
7813
7814 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
7815 <desc>Recommended video RAM size in Megabytes.</desc>
7816 </attribute>
7817
7818 <attribute name="recommendedHDD" type="long long" readonly="yes">
7819 <desc>Recommended hard disk size in bytes.</desc>
7820 </attribute>
7821
7822 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
7823 <desc>Returns recommended network adapter for this OS type.</desc>
7824 </attribute>
7825
7826 <attribute name="recommendedPae" type="boolean" readonly="yes">
7827 <desc>Returns @c true if using PAE is recommended for this OS type.</desc>
7828 </attribute>
7829
7830 <attribute name="recommendedDvdStorageController" type="StorageControllerType" readonly="yes">
7831 <desc>Recommended storage controller type for DVD/CD drives.</desc>
7832 </attribute>
7833
7834 <attribute name="recommendedDvdStorageBus" type="StorageBus" readonly="yes">
7835 <desc>Recommended storage bus type for DVD/CD drives.</desc>
7836 </attribute>
7837
7838 <attribute name="recommendedHdStorageController" type="StorageControllerType" readonly="yes">
7839 <desc>Recommended storage controller type for HD drives.</desc>
7840 </attribute>
7841
7842 <attribute name="recommendedHdStorageBus" type="StorageBus" readonly="yes">
7843 <desc>Recommended storage bus type for HD drives.</desc>
7844 </attribute>
7845
7846 <attribute name="recommendedFirmware" type="FirmwareType" readonly="yes">
7847 <desc>Recommended firmware type.</desc>
7848 </attribute>
7849
7850 <attribute name="recommendedUsbHid" type="boolean" readonly="yes">
7851 <desc>Returns @c true if using USB Human Interface Devices, such as keyboard and mouse recommended.</desc>
7852 </attribute>
7853
7854 <attribute name="recommendedHpet" type="boolean" readonly="yes">
7855 <desc>Returns @c true if using HPET is recommended for this OS type.</desc>
7856 </attribute>
7857
7858 <attribute name="recommendedUsbTablet" type="boolean" readonly="yes">
7859 <desc>Returns @c true if using a USB Tablet is recommended.</desc>
7860 </attribute>
7861
7862 <attribute name="recommendedRtcUseUtc" type="boolean" readonly="yes">
7863 <desc>Returns @c true if the RTC of this VM should be set to UTC</desc>
7864 </attribute>
7865
7866 <attribute name="recommendedChipset" type="ChipsetType" readonly="yes">
7867 <desc>Recommended chipset type.</desc>
7868 </attribute>
7869
7870 <attribute name="recommendedAudioController" type="AudioControllerType" readonly="yes">
7871 <desc>Recommended audio type.</desc>
7872 </attribute>
7873
7874 </interface>
7875
7876 <enum
7877 name="AdditionsFacilityType"
7878 uuid="98f7f957-89fb-49b6-a3b1-31e3285eb1d8"
7879 >
7880 <desc>
7881 Guest Additions facility IDs.
7882 </desc>
7883
7884 <const name="None" value="0">
7885 <desc>No/invalid facility.</desc>
7886 </const>
7887 <const name="VBoxGuestDriver" value="20">
7888 <desc>VirtualBox base driver (VBoxGuest).</desc>
7889 </const>
7890 <const name="VBoxService" value="100">
7891 <desc>VirtualBox system service (VBoxService).</desc>
7892 </const>
7893 <const name="VBoxTrayClient" value="101">
7894 <desc>VirtualBox desktop integration (VBoxTray on Windows, VBoxClient on non-Windows).</desc>
7895 </const>
7896 <const name="Seamless" value="1000">
7897 <desc>Seamless guest desktop integration.</desc>
7898 </const>
7899 <const name="Graphics" value="1100">
7900 <desc>Guest graphics mode. If not enabled, seamless rendering will not work, resize hints
7901 are not immediately acted on and guest display resizes are probably not initiated by
7902 the guest additions.
7903 </desc>
7904 </const>
7905 <const name="All" value="2147483646">
7906 <desc>All facilities selected.</desc>
7907 </const>
7908 </enum>
7909
7910 <enum
7911 name="AdditionsFacilityClass"
7912 uuid="446451b2-c88d-4e5d-84c9-91bc7f533f5f"
7913 >
7914 <desc>
7915 Guest Additions facility classes.
7916 </desc>
7917
7918 <const name="None" value="0">
7919 <desc>No/invalid class.</desc>
7920 </const>
7921 <const name="Driver" value="10">
7922 <desc>Driver.</desc>
7923 </const>
7924 <const name="Service" value="30">
7925 <desc>System service.</desc>
7926 </const>
7927 <const name="Program" value="50">
7928 <desc>Program.</desc>
7929 </const>
7930 <const name="Feature" value="100">
7931 <desc>Feature.</desc>
7932 </const>
7933 <const name="ThirdParty" value="999">
7934 <desc>Third party.</desc>
7935 </const>
7936 <const name="All" value="2147483646">
7937 <desc>All facility classes selected.</desc>
7938 </const>
7939 </enum>
7940
7941 <enum
7942 name="AdditionsFacilityStatus"
7943 uuid="ce06f9e1-394e-4fe9-9368-5a88c567dbde"
7944 >
7945 <desc>
7946 Guest Additions facility states.
7947 </desc>
7948
7949 <const name="Inactive" value="0">
7950 <desc>Facility is not active.</desc>
7951 </const>
7952 <const name="Paused" value="1">
7953 <desc>Facility has been paused.</desc>
7954 </const>
7955 <const name="PreInit" value="20">
7956 <desc>Facility is preparing to initialize.</desc>
7957 </const>
7958 <const name="Init" value="30">
7959 <desc>Facility is initializing.</desc>
7960 </const>
7961 <const name="Active" value="50">
7962 <desc>Facility is up and running.</desc>
7963 </const>
7964 <const name="Terminating" value="100">
7965 <desc>Facility is shutting down.</desc>
7966 </const>
7967 <const name="Terminated" value="101">
7968 <desc>Facility successfully shut down.</desc>
7969 </const>
7970 <const name="Failed" value="800">
7971 <desc>Facility failed to start.</desc>
7972 </const>
7973 <const name="Unknown" value="999">
7974 <desc>Facility status is unknown.</desc>
7975 </const>
7976 </enum>
7977
7978 <interface
7979 name="IAdditionsFacility" extends="$unknown"
7980 uuid="54992946-6af1-4e49-98ec-58b558b7291e"
7981 wsmap="struct"
7982 >
7983 <desc>
7984 Structure representing a Guest Additions facility.
7985 </desc>
7986
7987 <attribute name="classType" type="AdditionsFacilityClass" readonly="yes">
7988 <desc>The class this facility is part of.</desc>
7989 </attribute>
7990
7991 <attribute name="lastUpdated" type="long long" readonly="yes">
7992 <desc>
7993 Time stamp of the last status update,
7994 in milliseconds since 1970-01-01 UTC.
7995 </desc>
7996 </attribute>
7997
7998 <attribute name="name" type="wstring" readonly="yes">
7999 <desc>The facility's friendly name.</desc>
8000 </attribute>
8001
8002 <attribute name="status" type="AdditionsFacilityStatus" readonly="yes">
8003 <desc>The current status.</desc>
8004 </attribute>
8005
8006 <attribute name="type" type="AdditionsFacilityType" readonly="yes">
8007 <desc>The facility's type ID.</desc>
8008 </attribute>
8009 </interface>
8010
8011 <enum
8012 name="AdditionsRunLevelType"
8013 uuid="a25417ee-a9dd-4f5b-b0dc-377860087754"
8014 >
8015 <desc>
8016 Guest Additions run level type.
8017 </desc>
8018
8019 <const name="None" value="0">
8020 <desc>Guest Additions are not loaded.</desc>
8021 </const>
8022 <const name="System" value="1">
8023 <desc>Guest drivers are loaded.</desc>
8024 </const>
8025 <const name="Userland" value="2">
8026 <desc>Common components (such as application services) are loaded.</desc>
8027 </const>
8028 <const name="Desktop" value="3">
8029 <desc>Per-user desktop components are loaded.</desc>
8030 </const>
8031 </enum>
8032
8033 <enum
8034 name="AdditionsUpdateFlag"
8035 uuid="726a818d-18d6-4389-94e8-3e9e6826171a"
8036 >
8037 <desc>
8038 Guest Additions update flags.
8039 </desc>
8040
8041 <const name="None" value="0">
8042 <desc>No flag set.</desc>
8043 </const>
8044 <const name="WaitForUpdateStartOnly" value="1">
8045 <desc>Only wait for the update process being started and do not
8046 wait while peforming the actual update.</desc>
8047 </const>
8048 </enum>
8049
8050 <enum
8051 name="ExecuteProcessFlag"
8052 uuid="3258e8a5-ba0c-43d5-86b5-cf91405fddc0"
8053 >
8054 <desc>
8055 Guest process execution flags.
8056 </desc>
8057
8058 <const name="None" value="0">
8059 <desc>No flag set.</desc>
8060 </const>
8061
8062 <const name="WaitForProcessStartOnly" value="1">
8063 <desc>Only use the specified timeout value to wait for starting the guest process - the guest
8064 process itself then uses an infinite timeout.</desc>
8065 </const>
8066
8067 <const name="IgnoreOrphanedProcesses" value="2">
8068 <desc>Do not report an error when executed processes are still alive when VBoxService or the guest OS is shutting down.</desc>
8069 </const>
8070
8071 <const name="Hidden" value="4">
8072 <desc>Don't show the started process according to the guest OS guidelines.</desc>
8073 </const>
8074 </enum>
8075
8076 <enum
8077 name="ExecuteProcessStatus"
8078 uuid="153768d9-d971-4098-8b5a-c5cb1ab9ea88"
8079 >
8080 <desc>
8081 Guest process execution status.
8082 </desc>
8083
8084 <const name="Undefined" value="0">
8085 <desc>Process is in an undefined state.</desc>
8086 </const>
8087
8088 <const name="Started" value="1">
8089 <desc>Process has been started.</desc>
8090 </const>
8091
8092 <const name="TerminatedNormally" value="2">
8093 <desc>Process terminated normally.</desc>
8094 </const>
8095
8096 <const name="TerminatedSignal" value="3">
8097 <desc>Process terminated via signal.</desc>
8098 </const>
8099
8100 <const name="TerminatedAbnormally" value="4">
8101 <desc>Process terminated abnormally.</desc>
8102 </const>
8103
8104 <const name="TimedOutKilled" value="5">
8105 <desc>Process timed out and was killed.</desc>
8106 </const>
8107
8108 <const name="TimedOutAbnormally" value="6">
8109 <desc>Process timed out and was not killed successfully.</desc>
8110 </const>
8111
8112 <const name="Down" value="7">
8113 <desc>Service/OS is stopping, process was killed.</desc>
8114 </const>
8115
8116 <const name="Error" value="8">
8117 <desc>Something went wrong (error code in flags).</desc>
8118 </const>
8119 </enum>
8120
8121 <enum
8122 name="ProcessInputFlag"
8123 uuid="5d38c1dd-2604-4ddf-92e5-0c0cdd3bdbd5"
8124 >
8125 <desc>
8126 Guest process input flags.
8127 </desc>
8128
8129 <const name="None" value="0">
8130 <desc>No flag set.</desc>
8131 </const>
8132
8133 <const name="EndOfFile" value="1">
8134 <desc>End of file (input) reached.</desc>
8135 </const>
8136 </enum>
8137
8138 <enum
8139 name="CopyFileFlag"
8140 uuid="23f79fdf-738a-493d-b80b-42d607c9b916"
8141 >
8142 <desc>
8143 Host/Guest copy flags. At the moment none of these flags
8144 are implemented.
8145 </desc>
8146
8147 <const name="None" value="0">
8148 <desc>No flag set.</desc>
8149 </const>
8150
8151 <const name="Recursive" value="1">
8152 <desc>Copy directories recursively.</desc>
8153 </const>
8154
8155 <const name="Update" value="2">
8156 <desc>Only copy when the source file is newer than the destination file or when the destination file is missing.</desc>
8157 </const>
8158
8159 <const name="FollowLinks" value="4">
8160 <desc>Follow symbolic links.</desc>
8161 </const>
8162 </enum>
8163
8164 <enum
8165 name="CreateDirectoryFlag"
8166 uuid="26ff5bdd-c81f-4304-857b-b8be5e3f9cd6"
8167 >
8168 <desc>
8169 Directory creation flags.
8170 </desc>
8171
8172 <const name="None" value="0">
8173 <desc>No flag set.</desc>
8174 </const>
8175
8176 <const name="Parents" value="1">
8177 <desc>No error if existing, make parent directories as needed.</desc>
8178 </const>
8179 </enum>
8180
8181 <interface
8182 name="IGuest" extends="$unknown"
8183 uuid="4e78f7dd-8ca1-47e5-a344-5207f793df71"
8184 wsmap="managed"
8185 >
8186 <desc>
8187 The IGuest interface represents information about the operating system
8188 running inside the virtual machine. Used in
8189 <link to="IConsole::guest"/>.
8190
8191 IGuest provides information about the guest operating system, whether
8192 Guest Additions are installed and other OS-specific virtual machine
8193 properties.
8194 </desc>
8195
8196 <attribute name="OSTypeId" type="wstring" readonly="yes">
8197 <desc>
8198 Identifier of the Guest OS type as reported by the Guest
8199 Additions.
8200 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
8201 an IGuestOSType object representing details about the given
8202 Guest OS type.
8203 <note>
8204 If Guest Additions are not installed, this value will be
8205 the same as <link to="IMachine::OSTypeId"/>.
8206 </note>
8207 </desc>
8208 </attribute>
8209
8210 <attribute name="additionsRunLevel" type="AdditionsRunLevelType" readonly="yes">
8211 <desc>
8212 Current run level of the Guest Additions.
8213 </desc>
8214 </attribute>
8215
8216 <attribute name="additionsVersion" type="wstring" readonly="yes">
8217 <desc>
8218 Version of the Guest Additions including the revision (3 decimal numbers
8219 separated by dots + revision number) installed on the guest or empty
8220 when the Additions are not installed.
8221 </desc>
8222 </attribute>
8223
8224 <attribute name="facilities" type="IAdditionsFacility" readonly="yes" safearray="yes">
8225 <desc>
8226 Array of current known facilities. Only returns facilities where a status is known,
8227 e.g. facilities with an unknown status will not be returned.
8228 </desc>
8229 </attribute>
8230
8231 <attribute name="memoryBalloonSize" type="unsigned long">
8232 <desc>Guest system memory balloon size in megabytes (transient property).</desc>
8233 </attribute>
8234
8235 <attribute name="statisticsUpdateInterval" type="unsigned long">
8236 <desc>Interval to update guest statistics in seconds.</desc>
8237 </attribute>
8238
8239 <method name="internalGetStatistics">
8240 <desc>
8241 Internal method; do not use as it might change at any time.
8242 </desc>
8243 <param name="cpuUser" type="unsigned long" dir="out">
8244 <desc>Percentage of processor time spent in user mode as seen by the guest.</desc>
8245 </param>
8246 <param name="cpuKernel" type="unsigned long" dir="out">
8247 <desc>Percentage of processor time spent in kernel mode as seen by the guest.</desc>
8248 </param>
8249 <param name="cpuIdle" type="unsigned long" dir="out">
8250 <desc>Percentage of processor time spent idling as seen by the guest.</desc>
8251 </param>
8252 <param name="memTotal" type="unsigned long" dir="out">
8253 <desc>Total amount of physical guest RAM.</desc>
8254 </param>
8255 <param name="memFree" type="unsigned long" dir="out">
8256 <desc>Free amount of physical guest RAM.</desc>
8257 </param>
8258 <param name="memBalloon" type="unsigned long" dir="out">
8259 <desc>Amount of ballooned physical guest RAM.</desc>
8260 </param>
8261 <param name="memShared" type="unsigned long" dir="out">
8262 <desc>Amount of shared physical guest RAM.</desc>
8263 </param>
8264 <param name="memCache" type="unsigned long" dir="out">
8265 <desc>Total amount of guest (disk) cache memory.</desc>
8266 </param>
8267 <param name="pagedTotal" type="unsigned long" dir="out">
8268 <desc>Total amount of space in the page file.</desc>
8269 </param>
8270 <param name="memAllocTotal" type="unsigned long" dir="out">
8271 <desc>Total amount of memory allocated by the hypervisor.</desc>
8272 </param>
8273 <param name="memFreeTotal" type="unsigned long" dir="out">
8274 <desc>Total amount of free memory available in the hypervisor.</desc>
8275 </param>
8276 <param name="memBalloonTotal" type="unsigned long" dir="out">
8277 <desc>Total amount of memory ballooned by the hypervisor.</desc>
8278 </param>
8279 <param name="memSharedTotal" type="unsigned long" dir="out">
8280 <desc>Total amount of shared memory in the hypervisor.</desc>
8281 </param>
8282 </method>
8283
8284 <method name="getFacilityStatus">
8285 <desc>
8286 Get the current status of a Guest Additions facility.
8287 </desc>
8288 <param name="facility" type="AdditionsFacilityType" dir="in">
8289 <desc>Facility to check status for.</desc>
8290 </param>
8291 <param name="timestamp" type="long long" dir="out">
8292 <desc>Timestamp (in ms) of last status update seen by the host.</desc>
8293 </param>
8294 <param name="status" type="AdditionsFacilityStatus" dir="return">
8295 <desc>The current (latest) facility status.</desc>
8296 </param>
8297 </method>
8298
8299 <method name="getAdditionsStatus">
8300 <desc>
8301 Retrieve the current status of a certain Guest Additions run level.
8302
8303 <result name="VBOX_E_NOT_SUPPORTED">
8304 Wrong status level specified.
8305 </result>
8306
8307 </desc>
8308 <param name="level" type="AdditionsRunLevelType" dir="in">
8309 <desc>Status level to check</desc>
8310 </param>
8311 <param name="active" type="boolean" dir="return">
8312 <desc>Flag whether the status level has been reached or not</desc>
8313 </param>
8314 </method>
8315
8316 <method name="setCredentials">
8317 <desc>
8318 Store login credentials that can be queried by guest operating
8319 systems with Additions installed. The credentials are transient
8320 to the session and the guest may also choose to erase them. Note
8321 that the caller cannot determine whether the guest operating system
8322 has queried or made use of the credentials.
8323
8324 <result name="VBOX_E_VM_ERROR">
8325 VMM device is not available.
8326 </result>
8327
8328 </desc>
8329 <param name="userName" type="wstring" dir="in">
8330 <desc>User name string, can be empty</desc>
8331 </param>
8332 <param name="password" type="wstring" dir="in">
8333 <desc>Password string, can be empty</desc>
8334 </param>
8335 <param name="domain" type="wstring" dir="in">
8336 <desc>Domain name (guest logon scheme specific), can be empty</desc>
8337 </param>
8338 <param name="allowInteractiveLogon" type="boolean" dir="in">
8339 <desc>
8340 Flag whether the guest should alternatively allow the user to
8341 interactively specify different credentials. This flag might
8342 not be supported by all versions of the Additions.
8343 </desc>
8344 </param>
8345 </method>
8346
8347 <method name="executeProcess">
8348 <desc>
8349 Executes an existing program inside the guest VM.
8350
8351 <result name="VBOX_E_IPRT_ERROR">
8352 Could not execute process.
8353 </result>
8354
8355 </desc>
8356 <param name="execName" type="wstring" dir="in">
8357 <desc>
8358 Full path name of the command to execute on the guest; the
8359 commands has to exists in the guest VM in order to be executed.
8360 </desc>
8361 </param>
8362 <param name="flags" type="unsigned long" dir="in">
8363 <desc>
8364 <link to="ExecuteProcessFlag"/> flags.
8365 </desc>
8366 </param>
8367 <param name="arguments" type="wstring" safearray="yes" dir="in">
8368 <desc>
8369 Array of arguments passed to the execution command.
8370 </desc>
8371 </param>
8372 <param name="environment" type="wstring" safearray="yes" dir="in">
8373 <desc>
8374 Environment variables that can be set while the command is being
8375 executed, in form of "NAME=VALUE"; one pair per entry. To unset a
8376 variable just set its name ("NAME") without a value.
8377 </desc>
8378 </param>
8379 <param name="userName" type="wstring" dir="in">
8380 <desc>
8381 User name under which the command will be executed; has to exist
8382 and have the appropriate rights to execute programs in the VM.
8383 </desc>
8384 </param>
8385 <param name="password" type="wstring" dir="in">
8386 <desc>
8387 Password of the user account specified.
8388 </desc>
8389 </param>
8390 <param name="timeoutMS" type="unsigned long" dir="in">
8391 <desc>
8392 The maximum timeout value (in msec) to wait for finished program
8393 execution. Pass 0 for an infinite timeout.
8394 </desc>
8395 </param>
8396 <param name="pid" type="unsigned long" dir="out">
8397 <desc>
8398 The PID (process ID) of the started command for later reference.
8399 </desc>
8400 </param>
8401 <param name="progress" type="IProgress" dir="return">
8402 <desc>Progress object to track the operation completion.</desc>
8403 </param>
8404 </method>
8405
8406 <method name="getProcessOutput">
8407 <desc>
8408 Retrieves output of a formerly started process.
8409
8410 <result name="VBOX_E_IPRT_ERROR">
8411 Could not retrieve output.
8412 </result>
8413
8414 </desc>
8415 <param name="pid" type="unsigned long" dir="in">
8416 <desc>
8417 Process id returned by earlier executeProcess() call.
8418 </desc>
8419 </param>
8420 <param name="flags" type="unsigned long" dir="in">
8421 <desc>
8422 Flags describing which output to retrieve.
8423 </desc>
8424 </param>
8425 <param name="timeoutMS" type="unsigned long" dir="in">
8426 <desc>
8427 The maximum timeout value (in msec) to wait for output
8428 data. Pass 0 for an infinite timeout.
8429 </desc>
8430 </param>
8431 <param name="size" type="long long" dir="in">
8432 <desc>
8433 Size in bytes to read in the buffer.
8434 </desc>
8435 </param>
8436 <param name="data" type="octet" dir="return" safearray="yes">
8437 <desc>
8438 Buffer for retrieving the actual output. A data size of 0 means end of file
8439 if the requested size was not 0. This is the unprocessed
8440 output data, i.e. the line ending style depends on the platform of
8441 the system the server is running on.
8442 </desc>
8443 </param>
8444 </method>
8445
8446 <method name="getProcessStatus">
8447 <desc>
8448 Retrieves status, exit code and the exit reason of a formerly started process.
8449
8450 <result name="VBOX_E_IPRT_ERROR">
8451 Process with specified PID was not found.
8452 </result>
8453
8454 </desc>
8455 <param name="pid" type="unsigned long" dir="in">
8456 <desc>
8457 Process id returned by earlier executeProcess() call.
8458 </desc>
8459 </param>
8460 <param name="exitcode" type="unsigned long" dir="out">
8461 <desc>
8462 The exit code (if available).
8463 </desc>
8464 </param>
8465 <param name="flags" type="unsigned long" dir="out">
8466 <desc>
8467 Additional flags of process status. Not used at the moment and
8468 must be set to 0.
8469 </desc>
8470 </param>
8471 <param name="reason" type="ExecuteProcessStatus" dir="return">
8472 <desc>
8473 The current process status.
8474 </desc>
8475 </param>
8476 </method>
8477
8478 <method name="copyToGuest">
8479 <desc>
8480 Copies files/directories from host to the guest.
8481
8482 <result name="VBOX_E_IPRT_ERROR">
8483 Error while copying.
8484 </result>
8485
8486 </desc>
8487 <param name="source" type="wstring" dir="in">
8488 <desc>
8489 Source file on the host to copy.
8490 </desc>
8491 </param>
8492 <param name="dest" type="wstring" dir="in">
8493 <desc>
8494 Destination path on the guest.
8495 </desc>
8496 </param>
8497 <param name="userName" type="wstring" dir="in">
8498 <desc>
8499 User name under which the copy command will be executed; the
8500 user has to exist and have the appropriate rights to write to
8501 the destination path.
8502 </desc>
8503 </param>
8504 <param name="password" type="wstring" dir="in">
8505 <desc>
8506 Password of the user account specified.
8507 </desc>
8508 </param>
8509 <param name="flags" type="unsigned long" dir="in">
8510 <desc>
8511 <link to="CopyFileFlag"/> flags. Not used at the moment and should be set to 0.
8512 </desc>
8513 </param>
8514 <param name="progress" type="IProgress" dir="return">
8515 <desc>Progress object to track the operation completion.</desc>
8516 </param>
8517 </method>
8518
8519 <method name="createDirectory">
8520 <desc>
8521 Creates a directory on the guest.
8522
8523 <result name="VBOX_E_IPRT_ERROR">
8524 Error while creating directory.
8525 </result>
8526
8527 </desc>
8528 <param name="directory" type="wstring" dir="in">
8529 <desc>
8530 Directory to create.
8531 </desc>
8532 </param>
8533 <param name="userName" type="wstring" dir="in">
8534 <desc>
8535 User name under which the directory creation will be executed; the
8536 user has to exist and have the appropriate rights to create the
8537 desired directory.
8538 </desc>
8539 </param>
8540 <param name="password" type="wstring" dir="in">
8541 <desc>
8542 Password of the user account specified.
8543 </desc>
8544 </param>
8545 <param name="mode" type="unsigned long" dir="in">
8546 <desc>
8547 File mode.
8548 </desc>
8549 </param>
8550 <param name="flags" type="unsigned long" dir="in">
8551 <desc>
8552 <link to="CreateDirectoryFlag"/> flags.
8553 </desc>
8554 </param>
8555 <param name="progress" type="IProgress" dir="return">
8556 <desc>Progress object to track the operation completion.</desc>
8557 </param>
8558 </method>
8559
8560 <method name="setProcessInput">
8561 <desc>
8562 Sends input into a formerly started process.
8563
8564 <result name="VBOX_E_IPRT_ERROR">
8565 Could not send input.
8566 </result>
8567
8568 </desc>
8569 <param name="pid" type="unsigned long" dir="in">
8570 <desc>
8571 Process id returned by earlier executeProcess() call.
8572 </desc>
8573 </param>
8574 <param name="flags" type="unsigned long" dir="in">
8575 <desc>
8576 <link to="ProcessInputFlag"/> flags.
8577 </desc>
8578 </param>
8579 <param name="timeoutMS" type="unsigned long" dir="in">
8580 <desc>
8581 The maximum timeout value (in msec) to wait for getting the
8582 data transfered to the guest. Pass 0 for an infinite timeout.
8583 </desc>
8584 </param>
8585 <param name="data" type="octet" dir="in" safearray="yes">
8586 <desc>
8587 Buffer of input data to send to the started process to.
8588 </desc>
8589 </param>
8590 <param name="written" type="unsigned long" dir="return">
8591 <desc>
8592 Number of bytes written.
8593 </desc>
8594 </param>
8595 </method>
8596
8597 <method name="updateGuestAdditions">
8598 <desc>
8599 Updates already installed Guest Additions in a VM
8600 (Windows guests only).
8601
8602 <result name="VBOX_E_IPRT_ERROR">
8603 Error while updating.
8604 </result>
8605
8606 </desc>
8607 <param name="source" type="wstring" dir="in">
8608 <desc>
8609 Path to the Guest Additions .ISO file to use for the upate.
8610 </desc>
8611 </param>
8612 <param name="flags" type="unsigned long" dir="in">
8613 <desc>
8614 <link to="AdditionsUpdateFlag"/> flags.
8615 </desc>
8616 </param>
8617 <param name="progress" type="IProgress" dir="return">
8618 <desc>Progress object to track the operation completion.</desc>
8619 </param>
8620 </method>
8621
8622 </interface>
8623
8624
8625 <!--
8626 // IProgress
8627 /////////////////////////////////////////////////////////////////////////
8628 -->
8629
8630 <interface
8631 name="IProgress" extends="$unknown"
8632 uuid="A163C98F-8635-4AA8-B770-A9941737F3EF"
8633 wsmap="managed"
8634 >
8635 <desc>
8636 The IProgress interface is used to track and control
8637 asynchronous tasks within VirtualBox.
8638
8639 An instance of this is returned every time VirtualBox starts
8640 an asynchronous task (in other words, a separate thread) which
8641 continues to run after a method call returns. For example,
8642 <link to="IConsole::saveState" />, which saves the state of
8643 a running virtual machine, can take a long time to complete.
8644 To be able to display a progress bar, a user interface such as
8645 the VirtualBox graphical user interface can use the IProgress
8646 object returned by that method.
8647
8648 Note that IProgress is a "read-only" interface in the sense
8649 that only the VirtualBox internals behind the Main API can
8650 create and manipulate progress objects, whereas client code
8651 can only use the IProgress object to monitor a task's
8652 progress and, if <link to="#cancelable" /> is @c true,
8653 cancel the task by calling <link to="#cancel" />.
8654
8655 A task represented by IProgress consists of either one or
8656 several sub-operations that run sequentially, one by one (see
8657 <link to="#operation" /> and <link to="#operationCount" />).
8658 Every operation is identified by a number (starting from 0)
8659 and has a separate description.
8660
8661 You can find the individual percentage of completion of the current
8662 operation in <link to="#operationPercent" /> and the
8663 percentage of completion of the task as a whole
8664 in <link to="#percent" />.
8665
8666 Similarly, you can wait for the completion of a particular
8667 operation via <link to="#waitForOperationCompletion" /> or
8668 for the completion of the whole task via
8669 <link to="#waitForCompletion" />.
8670 </desc>
8671
8672 <attribute name="id" type="uuid" mod="string" readonly="yes">
8673 <desc>ID of the task.</desc>
8674 </attribute>
8675
8676 <attribute name="description" type="wstring" readonly="yes">
8677 <desc>Description of the task.</desc>
8678 </attribute>
8679
8680 <attribute name="initiator" type="$unknown" readonly="yes">
8681 <desc>Initiator of the task.</desc>
8682 </attribute>
8683
8684 <attribute name="cancelable" type="boolean" readonly="yes">
8685 <desc>Whether the task can be interrupted.</desc>
8686 </attribute>
8687
8688 <attribute name="percent" type="unsigned long" readonly="yes">
8689 <desc>
8690 Current progress value of the task as a whole, in percent.
8691 This value depends on how many operations are already complete.
8692 Returns 100 if <link to="#completed" /> is @c true.
8693 </desc>
8694 </attribute>
8695
8696 <attribute name="timeRemaining" type="long" readonly="yes">
8697 <desc>
8698 Estimated remaining time until the task completes, in
8699 seconds. Returns 0 once the task has completed; returns -1
8700 if the remaining time cannot be computed, in particular if
8701 the current progress is 0.
8702
8703 Even if a value is returned, the estimate will be unreliable
8704 for low progress values. It will become more reliable as the
8705 task progresses; it is not recommended to display an ETA
8706 before at least 20% of a task have completed.
8707 </desc>
8708 </attribute>
8709
8710 <attribute name="completed" type="boolean" readonly="yes">
8711 <desc>Whether the task has been completed.</desc>
8712 </attribute>
8713
8714 <attribute name="canceled" type="boolean" readonly="yes">
8715 <desc>Whether the task has been canceled.</desc>
8716 </attribute>
8717
8718 <attribute name="resultCode" type="long" readonly="yes">
8719 <desc>
8720 Result code of the progress task.
8721 Valid only if <link to="#completed"/> is @c true.
8722 </desc>
8723 </attribute>
8724
8725 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
8726 <desc>
8727 Extended information about the unsuccessful result of the
8728 progress operation. May be @c null if no extended information
8729 is available.
8730 Valid only if <link to="#completed"/> is @c true and
8731 <link to="#resultCode"/> indicates a failure.
8732 </desc>
8733 </attribute>
8734
8735 <attribute name="operationCount" type="unsigned long" readonly="yes">
8736 <desc>
8737 Number of sub-operations this task is divided into.
8738 Every task consists of at least one suboperation.
8739 </desc>
8740 </attribute>
8741
8742 <attribute name="operation" type="unsigned long" readonly="yes">
8743 <desc>Number of the sub-operation being currently executed.</desc>
8744 </attribute>
8745
8746 <attribute name="operationDescription" type="wstring" readonly="yes">
8747 <desc>
8748 Description of the sub-operation being currently executed.
8749 </desc>
8750 </attribute>
8751
8752 <attribute name="operationPercent" type="unsigned long" readonly="yes">
8753 <desc>Progress value of the current sub-operation only, in percent.</desc>
8754 </attribute>
8755
8756 <attribute name="operationWeight" type="unsigned long" readonly="yes">
8757 <desc>Weight value of the current sub-operation only.</desc>
8758 </attribute>
8759
8760 <attribute name="timeout" type="unsigned long">
8761 <desc>
8762 When non-zero, this specifies the number of milliseconds after which
8763 the operation will automatically be canceled. This can only be set on
8764 cancelable objects.
8765 </desc>
8766 </attribute>
8767
8768 <method name="setCurrentOperationProgress">
8769 <desc>Internal method, not to be called externally.</desc>
8770 <param name="percent" type="unsigned long" dir="in" />
8771 </method>
8772 <method name="setNextOperation">
8773 <desc>Internal method, not to be called externally.</desc>
8774 <param name="nextOperationDescription" type="wstring" dir="in" />
8775 <param name="nextOperationsWeight" type="unsigned long" dir="in" />
8776 </method>
8777
8778 <method name="waitForCompletion">
8779 <desc>
8780 Waits until the task is done (including all sub-operations)
8781 with a given timeout in milliseconds; specify -1 for an indefinite wait.
8782
8783 Note that the VirtualBox/XPCOM/COM/native event queues of the calling
8784 thread are not processed while waiting. Neglecting event queues may
8785 have dire consequences (degrade performance, resource hogs,
8786 deadlocks, etc.), this is specially so for the main thread on
8787 platforms using XPCOM. Callers are adviced wait for short periods
8788 and service their event queues between calls, or to create a worker
8789 thread to do the waiting.
8790
8791 <result name="VBOX_E_IPRT_ERROR">
8792 Failed to wait for task completion.
8793 </result>
8794 </desc>
8795
8796 <param name="timeout" type="long" dir="in">
8797 <desc>
8798 Maximum time in milliseconds to wait or -1 to wait indefinitely.
8799 </desc>
8800 </param>
8801 </method>
8802
8803 <method name="waitForOperationCompletion">
8804 <desc>
8805 Waits until the given operation is done with a given timeout in
8806 milliseconds; specify -1 for an indefinite wait.
8807
8808 See <link to="#waitForCompletion"> for event queue considerations.</link>
8809
8810 <result name="VBOX_E_IPRT_ERROR">
8811 Failed to wait for operation completion.
8812 </result>
8813
8814 </desc>
8815 <param name="operation" type="unsigned long" dir="in">
8816 <desc>
8817 Number of the operation to wait for.
8818 Must be less than <link to="#operationCount"/>.
8819 </desc>
8820 </param>
8821 <param name="timeout" type="long" dir="in">
8822 <desc>
8823 Maximum time in milliseconds to wait or -1 to wait indefinitely.
8824 </desc>
8825 </param>
8826 </method>
8827
8828 <method name="cancel">
8829 <desc>
8830 Cancels the task.
8831 <note>
8832 If <link to="#cancelable"/> is @c false, then this method will fail.
8833 </note>
8834
8835 <result name="VBOX_E_INVALID_OBJECT_STATE">
8836 Operation cannot be canceled.
8837 </result>
8838
8839 </desc>
8840 </method>
8841
8842 </interface>
8843
8844 <!--
8845 // ISnapshot
8846 /////////////////////////////////////////////////////////////////////////
8847 -->
8848
8849 <interface
8850 name="ISnapshot" extends="$unknown"
8851 uuid="1a2d0551-58a4-4107-857e-ef414fc42ffc"
8852 wsmap="managed"
8853 >
8854 <desc>
8855 The ISnapshot interface represents a snapshot of the virtual
8856 machine.
8857
8858 Together with the differencing media that are created
8859 when a snapshot is taken, a machine can be brought back to
8860 the exact state it was in when the snapshot was taken.
8861
8862 The ISnapshot interface has no methods, only attributes; snapshots
8863 are controlled through methods of the <link to="IConsole" /> interface
8864 which also manage the media associated with the snapshot.
8865 The following operations exist:
8866
8867 <ul>
8868 <li><link to="IConsole::takeSnapshot"/> creates a new snapshot
8869 by creating new, empty differencing images for the machine's
8870 media and saving the VM settings and (if the VM is running)
8871 the current VM state in the snapshot.
8872
8873 The differencing images will then receive all data written to
8874 the machine's media, while their parent (base) images
8875 remain unmodified after the snapshot has been taken (see
8876 <link to="IMedium" /> for details about differencing images).
8877 This simplifies restoring a machine to the state of a snapshot:
8878 only the differencing images need to be deleted.
8879
8880 The current machine state is not changed by taking a snapshot
8881 except that <link to="IMachine::currentSnapshot" /> is set to
8882 the newly created snapshot, which is also added to the machine's
8883 snapshots tree.
8884 </li>
8885
8886 <li><link to="IConsole::restoreSnapshot"/> resets a machine to
8887 the state of a previous snapshot by deleting the differencing
8888 image of each of the machine's media and setting the machine's
8889 settings and state to the state that was saved in the snapshot (if any).
8890
8891 This destroys the machine's current state. After calling this,
8892 <link to="IMachine::currentSnapshot" /> points to the snapshot
8893 that was restored.
8894 </li>
8895
8896 <li><link to="IConsole::deleteSnapshot"/> deletes a snapshot
8897 without affecting the current machine state.
8898
8899 This does not change the current machine state, but instead frees the
8900 resources allocated when the snapshot was taken: the settings and machine
8901 state file are deleted (if any), and the snapshot's differencing image for
8902 each of the machine's media gets merged with its parent image.
8903
8904 Neither the current machine state nor other snapshots are affected
8905 by this operation, except that parent media will be modified
8906 to contain the disk data associated with the snapshot being deleted.
8907
8908 When deleting the current snapshot, the <link to="IMachine::currentSnapshot" />
8909 attribute is set to the current snapshot's parent or NULL if it
8910 has no parent. Otherwise the attribute is unchanged.
8911 </li>
8912 </ul>
8913
8914 Each snapshot contains a copy of virtual machine's settings (hardware
8915 configuration etc.). This copy is contained in an immutable (read-only)
8916 instance of <link to="IMachine" /> which is available from the snapshot's
8917 <link to="#machine" /> attribute. When restoring the snapshot, these
8918 settings are copied back to the original machine.
8919
8920 In addition, if the machine was running when the
8921 snapshot was taken (<link to="IMachine::state"/> is <link to="MachineState_Running"/>),
8922 the current VM state is saved in the snapshot (similarly to what happens
8923 when a VM's state is saved). The snapshot is then said to be <i>online</i>
8924 because when restoring it, the VM will be running.
8925
8926 If the machine was in <link to="MachineState_Saved">saved</link> saved,
8927 the snapshot receives a copy of the execution state file
8928 (<link to="IMachine::stateFilePath"/>).
8929
8930 Otherwise, if the machine was not running (<link to="MachineState_PoweredOff"/>
8931 or <link to="MachineState_Aborted"/>), the snapshot is <i>offline</i>;
8932 it then contains a so-called "zero execution state", representing a
8933 machine that is powered off.
8934 </desc>
8935
8936 <attribute name="id" type="uuid" mod="string" readonly="yes">
8937 <desc>UUID of the snapshot.</desc>
8938 </attribute>
8939
8940 <attribute name="name" type="wstring">
8941 <desc>Short name of the snapshot.
8942 <note>Setting this attribute causes <link to="IMachine::saveSettings" /> to
8943 be called implicitly.</note>
8944 </desc>
8945 </attribute>
8946
8947 <attribute name="description" type="wstring">
8948 <desc>Optional description of the snapshot.
8949 <note>Setting this attribute causes <link to="IMachine::saveSettings" /> to
8950 be called implicitly.</note>
8951 </desc>
8952 </attribute>
8953
8954 <attribute name="timeStamp" type="long long" readonly="yes">
8955 <desc>
8956 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
8957 </desc>
8958 </attribute>
8959
8960 <attribute name="online" type="boolean" readonly="yes">
8961 <desc>
8962 @c true if this snapshot is an online snapshot and @c false otherwise.
8963
8964 When this attribute is @c true, the
8965 <link to="IMachine::stateFilePath"/> attribute of the
8966 <link to="#machine"/> object associated with this snapshot
8967 will point to the saved state file. Otherwise, it will be
8968 an empty string.
8969 </desc>
8970 </attribute>
8971
8972 <attribute name="machine" type="IMachine" readonly="yes">
8973 <desc>
8974 Virtual machine this snapshot is taken on. This object
8975 stores all settings the machine had when taking this snapshot.
8976 <note>
8977 The returned machine object is immutable, i.e. no
8978 any settings can be changed.
8979 </note>
8980 </desc>
8981 </attribute>
8982
8983 <attribute name="parent" type="ISnapshot" readonly="yes">
8984 <desc>
8985 Parent snapshot (a snapshot this one is based on), or
8986 @c null if the snapshot has no parent (i.e. is the first snapshot).
8987 </desc>
8988 </attribute>
8989
8990 <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
8991 <desc>
8992 Child snapshots (all snapshots having this one as a parent).
8993 By inspecting this attribute starting with a machine's root snapshot
8994 (which can be obtained by calling <link to="IMachine::findSnapshot" />
8995 with a @c null UUID), a machine's snapshots tree can be iterated over.
8996 </desc>
8997 </attribute>
8998
8999 </interface>
9000
9001
9002 <!--
9003 // IMedium
9004 /////////////////////////////////////////////////////////////////////////
9005 -->
9006
9007 <enum
9008 name="MediumState"
9009 uuid="ef41e980-e012-43cd-9dea-479d4ef14d13"
9010 >
9011 <desc>
9012 Virtual medium state.
9013 <see>IMedium</see>
9014 </desc>
9015
9016 <const name="NotCreated" value="0">
9017 <desc>
9018 Associated medium storage does not exist (either was not created yet or
9019 was deleted).
9020 </desc>
9021 </const>
9022 <const name="Created" value="1">
9023 <desc>
9024 Associated storage exists and accessible; this gets set if the
9025 accessibility check performed by <link to="IMedium::refreshState" />
9026 was successful.
9027 </desc>
9028 </const>
9029 <const name="LockedRead" value="2">
9030 <desc>
9031 Medium is locked for reading (see <link to="IMedium::lockRead"/>),
9032 no data modification is possible.
9033 </desc>
9034 </const>
9035 <const name="LockedWrite" value="3">
9036 <desc>
9037 Medium is locked for writing (see <link to="IMedium::lockWrite"/>),
9038 no concurrent data reading or modification is possible.
9039 </desc>
9040 </const>
9041 <const name="Inaccessible" value="4">
9042 <desc>
9043 Medium accessibility check (see <link to="IMedium::refreshState" />) has
9044 not yet been performed, or else, associated medium storage is not
9045 accessible. In the first case, <link to="IMedium::lastAccessError"/>
9046 is empty, in the second case, it describes the error that occurred.
9047 </desc>
9048 </const>
9049 <const name="Creating" value="5">
9050 <desc>
9051 Associated medium storage is being created.
9052 </desc>
9053 </const>
9054 <const name="Deleting" value="6">
9055 <desc>
9056 Associated medium storage is being deleted.
9057 </desc>
9058 </const>
9059 </enum>
9060
9061 <enum
9062 name="MediumType"
9063 uuid="fe663fb5-c244-4e1b-9d81-c628b417dd04"
9064 >
9065 <desc>
9066 Virtual medium type. For each <link to="IMedium" />, this defines how the medium is
9067 attached to a virtual machine (see <link to="IMediumAttachment" />) and what happens
9068 when a snapshot (see <link to="ISnapshot" />) is taken of a virtual machine which has
9069 the medium attached. At the moment DVD and floppy media are always of type "writethrough".
9070 </desc>
9071
9072 <const name="Normal" value="0">
9073 <desc>
9074 Normal medium (attached directly or indirectly, preserved
9075 when taking snapshots).
9076 </desc>
9077 </const>
9078 <const name="Immutable" value="1">
9079 <desc>
9080 Immutable medium (attached indirectly, changes are wiped out
9081 the next time the virtual machine is started).
9082 </desc>
9083 </const>
9084 <const name="Writethrough" value="2">
9085 <desc>
9086 Write through medium (attached directly, ignored when
9087 taking snapshots).
9088 </desc>
9089 </const>
9090 <const name="Shareable" value="3">
9091 <desc>
9092 Allow using this medium concurrently by several machines.
9093 <note>Present since VirtualBox 3.2.0, and accepted since 3.2.8.</note>
9094 </desc>
9095 </const>
9096 <const name="Readonly" value="4">
9097 <desc>
9098 A readonly medium, which can of course be used by several machines.
9099 <note>Present and accepted since VirtualBox 4.0.</note>
9100 </desc>
9101 </const>
9102 <const name="MultiAttach" value="5">
9103 <desc>
9104 A medium which is is indirectly attached, so that one base medium can
9105 be used for several VMs which have their own differencing medium to
9106 store their modifications. In some sense a variant of Immutable
9107 with unset AutoReset flag in each differencing medium.
9108 <note>Present and accepted since VirtualBox 4.0.</note>
9109 </desc>
9110 </const>
9111 </enum>
9112
9113 <enum
9114 name="MediumVariant"
9115 uuid="584ea502-143b-4ab0-ad14-d1028fdf0316"
9116 >
9117 <desc>
9118 Virtual medium image variant. More than one flag may be set.
9119 <see>IMedium</see>
9120 </desc>
9121
9122 <const name="Standard" value="0">
9123 <desc>
9124 No particular variant requested, results in using the backend default.
9125 </desc>
9126 </const>
9127 <const name="VmdkSplit2G" value="0x01">
9128 <desc>
9129 VMDK image split in chunks of less than 2GByte.
9130 </desc>
9131 </const>
9132 <const name="VmdkStreamOptimized" value="0x04">
9133 <desc>
9134 VMDK streamOptimized image. Special import/export format which is
9135 read-only/append-only.
9136 </desc>
9137 </const>
9138 <const name="VmdkESX" value="0x08">
9139 <desc>
9140 VMDK format variant used on ESX products.
9141 </desc>
9142 </const>
9143 <const name="Fixed" value="0x10000">
9144 <desc>
9145 Fixed image. Only allowed for base images.
9146 </desc>
9147 </const>
9148 <const name="Diff" value="0x20000">
9149 <desc>
9150 Differencing image. Only allowed for child images.
9151 </desc>
9152 </const>
9153 </enum>
9154
9155 <interface
9156 name="IMediumAttachment" extends="$unknown"
9157 uuid="aa4b4840-934f-454d-9a28-23e8f4235edf"
9158 wsmap="struct"
9159 >
9160 <desc>
9161 The IMediumAttachment interface links storage media to virtual machines.
9162 For each medium (<link to="IMedium"/>) which has been attached to a
9163 storage controller (<link to="IStorageController"/>) of a machine
9164 (<link to="IMachine"/>) via the <link to="IMachine::attachDevice" />
9165 method, one instance of IMediumAttachment is added to the machine's
9166 <link to="IMachine::mediumAttachments"/> array attribute.
9167
9168 Each medium attachment specifies the storage controller as well as a
9169 port and device number and the IMedium instance representing a virtual
9170 hard disk or floppy or DVD image.
9171
9172 For removable media (DVDs or floppies), there are two additional
9173 options. For one, the IMedium instance can be @c null to represent
9174 an empty drive with no media inserted (see <link to="IMachine::mountMedium" />);
9175 secondly, the medium can be one of the pseudo-media for host drives
9176 listed in <link to="IHost::DVDDrives"/> or <link to="IHost::floppyDrives"/>.
9177
9178 <h3>Attaching Hard Disks</h3>
9179
9180 Hard disks are attached to virtual machines using the
9181 <link to="IMachine::attachDevice"/> method and detached using the
9182 <link to="IMachine::detachDevice"/> method. Depending on a medium's
9183 type (see <link to="IMedium::type" />), hard disks are attached either
9184 <i>directly</i> or <i>indirectly</i>.
9185
9186 When a hard disk is being attached directly, it is associated with the
9187 virtual machine and used for hard disk operations when the machine is
9188 running. When a hard disk is being attached indirectly, a new differencing
9189 hard disk linked to it is implicitly created and this differencing hard
9190 disk is associated with the machine and used for hard disk operations.
9191 This also means that if <link to="IMachine::attachDevice"/> performs
9192 a direct attachment then the same hard disk will be returned in response
9193 to the subsequent <link to="IMachine::getMedium"/> call; however if
9194 an indirect attachment is performed then
9195 <link to="IMachine::getMedium"/> will return the implicitly created
9196 differencing hard disk, not the original one passed to <link
9197 to="IMachine::attachDevice"/>. In detail:
9198
9199 <ul>
9200 <li><b>Normal base</b> hard disks that do not have children (i.e.
9201 differencing hard disks linked to them) and that are not already
9202 attached to virtual machines in snapshots are attached <b>directly</b>.
9203 Otherwise, they are attached <b>indirectly</b> because having
9204 dependent children or being part of the snapshot makes it impossible
9205 to modify hard disk contents without breaking the integrity of the
9206 dependent party. The <link to="IMedium::readOnly"/> attribute allows to
9207 quickly determine the kind of the attachment for the given hard
9208 disk. Note that if a normal base hard disk is to be indirectly
9209 attached to a virtual machine with snapshots then a special
9210 procedure called <i>smart attachment</i> is performed (see below).</li>
9211 <li><b>Normal differencing</b> hard disks are like normal base hard disks:
9212 they are attached <b>directly</b> if they do not have children and are
9213 not attached to virtual machines in snapshots, and <b>indirectly</b>
9214 otherwise. Note that the smart attachment procedure is never performed
9215 for differencing hard disks.</li>
9216 <li><b>Immutable</b> hard disks are always attached <b>indirectly</b> because
9217 they are designed to be non-writable. If an immutable hard disk is
9218 attached to a virtual machine with snapshots then a special
9219 procedure called smart attachment is performed (see below).</li>
9220 <li><b>Writethrough</b> hard disks are always attached <b>directly</b>,
9221 also as designed. This also means that writethrough hard disks cannot
9222 have other hard disks linked to them at all.</li>
9223 <li><b>Shareable</b> hard disks are always attached <b>directly</b>,
9224 also as designed. This also means that shareable hard disks cannot
9225 have other hard disks linked to them at all. They behave almost
9226 like writethrough hard disks, except that shareable hard disks can
9227 be attached to several virtual machines which are running, allowing
9228 concurrent accesses. You need special cluster software running in
9229 the virtual machines to make use of such disks.</li>
9230 </ul>
9231
9232 Note that the same hard disk, regardless of its type, may be attached to
9233 more than one virtual machine at a time. In this case, the machine that is
9234 started first gains exclusive access to the hard disk and attempts to
9235 start other machines having this hard disk attached will fail until the
9236 first machine is powered down.
9237
9238 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
9239 that the given hard disk remains associated with the given machine after a
9240 successful <link to="IMachine::detachDevice"/> call until
9241 <link to="IMachine::saveSettings"/> is called to save all changes to
9242 machine settings to disk. This deferring is necessary to guarantee that
9243 the hard disk configuration may be restored at any time by a call to
9244 <link to="IMachine::discardSettings"/> before the settings
9245 are saved (committed).
9246
9247 Note that if <link to="IMachine::discardSettings"/> is called after
9248 indirectly attaching some hard disks to the machine but before a call to
9249 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
9250 all differencing hard disks implicitly created by
9251 <link to="IMachine::attachDevice"/> for these indirect attachments.
9252 Such implicitly created hard disks will also be immediately deleted when
9253 detached explicitly using the <link to="IMachine::detachDevice"/>
9254 call if it is made before <link to="IMachine::saveSettings"/>. This
9255 implicit deletion is safe because newly created differencing hard
9256 disks do not contain any user data.
9257
9258 However, keep in mind that detaching differencing hard disks that were
9259 implicitly created by <link to="IMachine::attachDevice"/>
9260 before the last <link to="IMachine::saveSettings"/> call will
9261 <b>not</b> implicitly delete them as they may already contain some data
9262 (for example, as a result of virtual machine execution). If these hard
9263 disks are no more necessary, the caller can always delete them explicitly
9264 using <link to="IMedium::deleteStorage"/> after they are actually de-associated
9265 from this machine by the <link to="IMachine::saveSettings"/> call.
9266
9267 <h3>Smart Attachment</h3>
9268
9269 When normal base or immutable hard disks are indirectly attached to a
9270 virtual machine then some additional steps are performed to make sure the
9271 virtual machine will have the most recent "view" of the hard disk being
9272 attached. These steps include walking through the machine's snapshots
9273 starting from the current one and going through ancestors up to the first
9274 snapshot. Hard disks attached to the virtual machine in all
9275 of the encountered snapshots are checked whether they are descendants of
9276 the given normal base or immutable hard disk. The first found child (which
9277 is the differencing hard disk) will be used instead of the normal base or
9278 immutable hard disk as a parent for creating a new differencing hard disk
9279 that will be actually attached to the machine. And only if no descendants
9280 are found or if the virtual machine does not have any snapshots then the
9281 normal base or immutable hard disk will be used itself as a parent for
9282 this differencing hard disk.
9283
9284 It is easier to explain what smart attachment does using the
9285 following example:
9286 <pre>
9287BEFORE attaching B.vdi: AFTER attaching B.vdi:
9288
9289Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
9290 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
9291 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
9292 Snapshot 4 (none) Snapshot 4 (none)
9293 CurState (none) CurState (D3->D2.vdi)
9294
9295 NOT
9296 ...
9297 CurState (D3->B.vdi)
9298 </pre>
9299 The first column is the virtual machine configuration before the base hard
9300 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
9301 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
9302 mean that the hard disk that is actually attached to the machine is a
9303 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
9304 another hard disk, <tt>B.vdi</tt>.
9305
9306 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
9307 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
9308 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
9309 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
9310 it cannot be attached directly and needs an indirect attachment (i.e.
9311 implicit creation of a new differencing hard disk). Due to the smart
9312 attachment procedure, the new differencing hard disk
9313 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
9314 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
9315 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
9316 machine.
9317
9318 Note that if there is more than one descendant hard disk of the given base
9319 hard disk found in a snapshot, and there is an exact device, channel and
9320 bus match, then this exact match will be used. Otherwise, the youngest
9321 descendant will be picked up.
9322
9323 There is one more important aspect of the smart attachment procedure which
9324 is not related to snapshots at all. Before walking through the snapshots
9325 as described above, the backup copy of the current list of hard disk
9326 attachment is searched for descendants. This backup copy is created when
9327 the hard disk configuration is changed for the first time after the last
9328 <link to="IMachine::saveSettings"/> call and used by
9329 <link to="IMachine::discardSettings"/> to undo the recent hard disk
9330 changes. When such a descendant is found in this backup copy, it will be
9331 simply re-attached back, without creating a new differencing hard disk for
9332 it. This optimization is necessary to make it possible to re-attach the
9333 base or immutable hard disk to a different bus, channel or device slot
9334 without losing the contents of the differencing hard disk actually
9335 attached to the machine in place of it.
9336
9337 </desc>
9338
9339 <attribute name="medium" type="IMedium" readonly="yes">
9340 <desc>Medium object associated with this attachment; it
9341 can be @c null for removable devices.</desc>
9342 </attribute>
9343
9344 <attribute name="controller" type="wstring" readonly="yes">
9345 <desc>Name of the storage controller of this attachment; this
9346 refers to one of the controllers in <link to="IMachine::storageControllers" />
9347 by name.</desc>
9348 </attribute>
9349
9350 <attribute name="port" type="long" readonly="yes">
9351 <desc>Port number of this attachment.
9352 See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
9353 </desc>
9354 </attribute>
9355
9356 <attribute name="device" type="long" readonly="yes">
9357 <desc>Device slot number of this attachment.
9358 See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
9359 </desc>
9360 </attribute>
9361
9362 <attribute name="type" type="DeviceType" readonly="yes">
9363 <desc>Device type of this attachment.</desc>
9364 </attribute>
9365
9366 <attribute name="passthrough" type="boolean" readonly="yes">
9367 <desc>Pass I/O requests through to a device on the host.</desc>
9368 </attribute>
9369
9370 <attribute name="bandwidthGroup" type="IBandwidthGroup" readonly="yes">
9371 <desc>The bandwidth group this medium attachment is assigned to.</desc>
9372 </attribute>
9373
9374 </interface>
9375
9376 <interface
9377 name="IMedium" extends="$unknown"
9378 uuid="9edda847-1279-4b0a-9af7-9d66251ccc18"
9379 wsmap="managed"
9380 >
9381 <desc>
9382 The IMedium interface represents virtual storage for a machine's
9383 hard disks, CD/DVD or floppy drives. It will typically represent
9384 a disk image on the host, for example a VDI or VMDK file representing
9385 a virtual hard disk, or an ISO or RAW file representing virtual
9386 removable media, but can also point to a network location (e.g.
9387 for iSCSI targets).
9388
9389 Instances of IMedium are connected to virtual machines by way of medium
9390 attachments, which link the storage medium to a particular device slot
9391 of a storage controller of the virtual machine.
9392 In the VirtualBox API, virtual storage is therefore always represented
9393 by the following chain of object links:
9394
9395 <ul>
9396 <li><link to="IMachine::storageControllers"/> contains an array of
9397 storage controllers (IDE, SATA, SCSI, SAS or a floppy controller;
9398 these are instances of <link to="IStorageController"/>).</li>
9399 <li><link to="IMachine::mediumAttachments"/> contains an array of
9400 medium attachments (instances of <link to="IMediumAttachment"/>
9401 created by <link to="IMachine::attachDevice" />),
9402 each containing a storage controller from the above array, a
9403 port/device specification, and an instance of IMedium representing
9404 the medium storage (image file).
9405
9406 For removable media, the storage medium is optional; a medium
9407 attachment with no medium represents a CD/DVD or floppy drive
9408 with no medium inserted. By contrast, hard disk attachments
9409 will always have an IMedium object attached.</li>
9410 <li>Each IMedium in turn points to a storage unit (such as a file
9411 on the host computer or a network resource) that holds actual
9412 data. This location is represented by the <link to="#location"/>
9413 attribute.</li>
9414 </ul>
9415
9416 Existing media are opened using <link to="IVirtualBox::openMedium"/>;
9417 new hard disk media can be created with the VirtualBox API using the
9418 <link to="IVirtualBox::createHardDisk"/> method. Differencing hard
9419 disks (see below) are usually implicitly created by VirtualBox as
9420 needed, but may also be created explicitly using <link to="#createDiffStorage"/>.
9421 VirtualBox cannot create CD/DVD or floppy images (ISO and RAW files); these
9422 should be created with external tools and then opened from within VirtualBox.
9423
9424 Only for CD/DVDs and floppies, an IMedium instance can also represent a host
9425 drive. In that case the <link to="#id" /> attribute contains the UUID of
9426 one of the drives in <link to="IHost::DVDDrives" /> or <link to="IHost::floppyDrives" />.
9427
9428 <h3>Media registries</h3>
9429
9430 When a medium has been opened or created using one of the aforementioned
9431 APIs, it becomes "known" to VirtualBox. Known media can be attached
9432 to virtual machines and accessed through <link to="IVirtualBox::findMedium"/>.
9433 They also appear in the global
9434 <link to="IVirtualBox::hardDisks" />,
9435 <link to="IVirtualBox::DVDImages" /> and
9436 <link to="IVirtualBox::floppyImages" /> arrays.
9437
9438 Prior to VirtualBox 4.0, opening a medium added it to a global media registry
9439 in the VirtualBox.xml file, which was shared between all machines and made
9440 transporting machines and their media from one host to another difficult.
9441
9442 Starting with VirtualBox 4.0, media are only added to a registry when they are
9443 <i>attached</i> to a machine using <link to="IMachine::attachDevice" />. For
9444 backwards compatibility, which registry a medium is added to depends on which
9445 VirtualBox version created a machine:
9446
9447 <ul>
9448 <li>If the medium has first been attached to a machine which was created by
9449 VirtualBox 4.0 or later, it is added to that machine's media registry in
9450 the machine XML settings file. This way all information about a machine's
9451 media attachments is contained in a single file and can be transported
9452 easily.</li>
9453 <li>For older media attachments (i.e. if the medium was first attached to a
9454 machine which was created with a VirtualBox version before 4.0), media
9455 continue to be registered in the global VirtualBox settings file, for
9456 backwards compatibility.</li>
9457 </ul>
9458
9459 See <link to="IVirtualBox::openMedium" /> for more information.
9460
9461 Media are removed from media registries by the <link to="#close"/>,
9462 <link to="#deleteStorage"/> and <link to="#mergeTo"/> methods.
9463
9464 <h3>Accessibility checks</h3>
9465
9466 VirtualBox defers media accessibility checks until the <link to="#refreshState" />
9467 method is called explicitly on a medium. This is done to make the VirtualBox object
9468 ready for serving requests as fast as possible and let the end-user
9469 application decide if it needs to check media accessibility right away or not.
9470
9471 As a result, when VirtualBox starts up (e.g. the VirtualBox
9472 object gets created for the first time), all known media are in the
9473 "Inaccessible" state, but the value of the <link to="#lastAccessError"/>
9474 attribute is an empty string because no actual accessibility check has
9475 been made yet.
9476
9477 After calling <link to="#refreshState" />, a medium is considered
9478 <i>accessible</i> if its storage unit can be read. In that case, the
9479 <link to="#state"/> attribute has a value of "Created". If the storage
9480 unit cannot be read (for example, because it is located on a disconnected
9481 network resource, or was accidentally deleted outside VirtualBox),
9482 the medium is considered <i>inaccessible</i>, which is indicated by the
9483 "Inaccessible" state. The exact reason why the medium is inaccessible can be
9484 obtained by reading the <link to="#lastAccessError"/> attribute.
9485
9486 <h3>Medium types</h3>
9487
9488 There are five types of medium behavior which are stored in the
9489 <link to="#type"/> attribute (see <link to="MediumType" />) and
9490 which define the medium's behavior with attachments and snapshots.
9491
9492 All media can be also divided in two groups: <i>base</i> media and
9493 <i>differencing</i> media. A base medium contains all sectors of the
9494 medium data in its own storage and therefore can be used independently.
9495 In contrast, a differencing medium is a "delta" to some other medium and
9496 contains only those sectors which differ from that other medium, which is
9497 then called a <i>parent</i>. The differencing medium is said to be
9498 <i>linked to</i> that parent. The parent may be itself a differencing
9499 medium, thus forming a chain of linked media. The last element in that
9500 chain must always be a base medium. Note that several differencing
9501 media may be linked to the same parent medium.
9502
9503 Differencing media can be distinguished from base media by querying the
9504 <link to="#parent"/> attribute: base media do not have parents they would
9505 depend on, so the value of this attribute is always @c null for them.
9506 Using this attribute, it is possible to walk up the medium tree (from the
9507 child medium to its parent). It is also possible to walk down the tree
9508 using the <link to="#children"/> attribute.
9509
9510 Note that the type of all differencing media is "normal"; all other
9511 values are meaningless for them. Base media may be of any type.
9512
9513 <h3>Automatic composition of the file name part</h3>
9514
9515 Another extension to the <link to="IMedium::location"/> attribute is that
9516 there is a possibility to cause VirtualBox to compose a unique value for
9517 the file name part of the location using the UUID of the hard disk. This
9518 applies only to hard disks in <link to="MediumState_NotCreated"/> state,
9519 e.g. before the storage unit is created, and works as follows. You set the
9520 value of the <link to="IMedium::location"/> attribute to a location
9521 specification which only contains the path specification but not the file
9522 name part and ends with either a forward slash or a backslash character.
9523 In response, VirtualBox will generate a new UUID for the hard disk and
9524 compose the file name using the following pattern:
9525 <pre>
9526 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
9527 </pre>
9528 where <tt>&lt;path&gt;</tt> is the supplied path specification,
9529 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
9530 is the default extension for the storage format of this hard disk. After
9531 that, you may call any of the methods that create a new hard disk storage
9532 unit and they will use the generated UUID and file name.
9533 </desc>
9534
9535 <attribute name="id" type="uuid" mod="string" readonly="yes">
9536 <desc>
9537 UUID of the medium. For a newly created medium, this value is a randomly
9538 generated UUID.
9539
9540 <note>
9541 For media in one of MediumState_NotCreated, MediumState_Creating or
9542 MediumState_Deleting states, the value of this property is undefined
9543 and will most likely be an empty UUID.
9544 </note>
9545 </desc>
9546 </attribute>
9547
9548 <attribute name="description" type="wstring">
9549 <desc>
9550 Optional description of the medium. For a newly created medium the value
9551 of this attribute is an empty string.
9552
9553 Medium types that don't support this attribute will return E_NOTIMPL in
9554 attempt to get or set this attribute's value.
9555
9556 <note>
9557 For some storage types, reading this attribute may return an outdated
9558 (last known) value when <link to="#state"/> is <link
9559 to="MediumState_Inaccessible"/> or <link
9560 to="MediumState_LockedWrite"/> because the value of this attribute is
9561 stored within the storage unit itself. Also note that changing the
9562 attribute value is not possible in such case, as well as when the
9563 medium is the <link to="MediumState_LockedRead"/> state.
9564 </note>
9565 </desc>
9566 </attribute>
9567
9568 <attribute name="state" type="MediumState" readonly="yes">
9569 <desc>
9570 Returns the current medium state, which is the last state set by
9571 the accessibility check performed by <link to="#refreshState"/>.
9572 If that method has not yet been called on the medium, the state
9573 is "Inaccessible"; as opposed to truly inaccessible media, the
9574 value of <link to="#lastAccessError"/> will be an empty string in
9575 that case.
9576
9577 <note>As of version 3.1, this no longer performs an accessibility check
9578 automatically; call <link to="#refreshState"/> for that.
9579 </note>
9580 </desc>
9581 </attribute>
9582
9583 <attribute name="variant" type="unsigned long" readonly="yes">
9584 <desc>
9585 Returns the storage format variant information for this medium
9586 as a combination of the flags described at <link to="MediumVariant" />.
9587 Before <link to="#refreshState"/> is called this method returns
9588 an undefined value.
9589 </desc>
9590 </attribute>
9591
9592 <attribute name="location" type="wstring">
9593 <desc>
9594 Location of the storage unit holding medium data.
9595
9596 The format of the location string is medium type specific. For medium
9597 types using regular files in a host's file system, the location
9598 string is the full file name.
9599
9600 Some medium types may support changing the storage unit location by
9601 simply changing the value of this property. If this operation is not
9602 supported, the implementation will return E_NOTIMPL in attempt to set
9603 this attribute's value.
9604
9605 When setting a value of the location attribute which is a regular file
9606 in the host's file system, the given file name may be either relative to
9607 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
9608 absolute. Note that if the given location specification does not contain
9609 the file extension part then a proper default extension will be
9610 automatically appended by the implementation depending on the medium type.
9611 </desc>
9612 </attribute>
9613
9614 <attribute name="name" type="wstring" readonly="yes">
9615 <desc>
9616 Name of the storage unit holding medium data.
9617
9618 The returned string is a short version of the <link to="#location"/>
9619 attribute that is suitable for representing the medium in situations
9620 where the full location specification is too long (such as lists
9621 and comboboxes in GUI frontends). This string is also used by frontends
9622 to sort the media list alphabetically when needed.
9623
9624 For example, for locations that are regular files in the host's file
9625 system, the value of this attribute is just the file name (+ extension),
9626 without the path specification.
9627
9628 Note that as opposed to the <link to="#location"/> attribute, the name
9629 attribute will not necessary be unique for a list of media of the
9630 given type and format.
9631 </desc>
9632 </attribute>
9633
9634 <attribute name="deviceType" type="DeviceType" readonly="yes">
9635 <desc>Kind of device (DVD/Floppy/HardDisk) which is applicable to this
9636 medium.</desc>
9637 </attribute>
9638
9639 <attribute name="hostDrive" type="boolean" readonly="yes">
9640 <desc>True if this corresponds to a drive on the host.</desc>
9641 </attribute>
9642
9643 <attribute name="size" type="long long" readonly="yes">
9644 <desc>
9645 Physical size of the storage unit used to hold medium data (in bytes).
9646
9647 <note>
9648 For media whose <link to="#state"/> is <link
9649 to="MediumState_Inaccessible"/>, the value of this property is the
9650 last known size. For <link to="MediumState_NotCreated"/> media,
9651 the returned value is zero.
9652 </note>
9653 </desc>
9654 </attribute>
9655
9656 <attribute name="format" type="wstring" readonly="yes">
9657 <desc>
9658 Storage format of this medium.
9659
9660 The value of this attribute is a string that specifies a backend used
9661 to store medium data. The storage format is defined when you create a
9662 new medium or automatically detected when you open an existing medium,
9663 and cannot be changed later.
9664
9665 The list of all storage formats supported by this VirtualBox
9666 installation can be obtained using
9667 <link to="ISystemProperties::mediumFormats"/>.
9668 </desc>
9669 </attribute>
9670
9671 <attribute name="mediumFormat" type="IMediumFormat" readonly="yes">
9672 <desc>
9673 Storage medium format object corresponding to this medium.
9674
9675 The value of this attribute is a reference to the medium format object
9676 that specifies the backend properties used to store medium data. The
9677 storage format is defined when you create a new medium or automatically
9678 detected when you open an existing medium, and cannot be changed later.
9679
9680 <note>@c null is returned if there is no associated medium format
9681 object. This can e.g. happen for medium objects representing host
9682 drives and other special medium objects.</note>
9683 </desc>
9684 </attribute>
9685
9686 <attribute name="type" type="MediumType">
9687 <desc>
9688 Type (role) of this medium.
9689
9690 The following constraints apply when changing the value of this
9691 attribute:
9692 <ul>
9693 <li>If a medium is attached to a virtual machine (either in the
9694 current state or in one of the snapshots), its type cannot be
9695 changed.
9696 </li>
9697 <li>As long as the medium has children, its type cannot be set
9698 to <link to="MediumType_Writethrough"/>.
9699 </li>
9700 <li>The type of all differencing media is
9701 <link to="MediumType_Normal"/> and cannot be changed.
9702 </li>
9703 </ul>
9704
9705 The type of a newly created or opened medium is set to
9706 <link to="MediumType_Normal"/>, except for DVD and floppy media,
9707 which have a type of <link to="MediumType_Writethrough"/>.
9708 </desc>
9709 </attribute>
9710
9711 <attribute name="parent" type="IMedium" readonly="yes">
9712 <desc>
9713 Parent of this medium (the medium this medium is directly based
9714 on).
9715
9716 Only differencing media have parents. For base (non-differencing)
9717 media, @c null is returned.
9718 </desc>
9719 </attribute>
9720
9721 <attribute name="children" type="IMedium" safearray="yes" readonly="yes">
9722 <desc>
9723 Children of this medium (all differencing media directly based
9724 on this medium). A @c null array is returned if this medium
9725 does not have any children.
9726 </desc>
9727 </attribute>
9728
9729 <attribute name="base" type="IMedium" readonly="yes">
9730 <desc>
9731 Base medium of this medium.
9732
9733 If this is a differencing medium, its base medium is the medium
9734 the given medium branch starts from. For all other types of media, this
9735 property returns the medium object itself (i.e. the same object this
9736 property is read on).
9737 </desc>
9738 </attribute>
9739
9740 <attribute name="readOnly" type="boolean" readonly="yes">
9741 <desc>
9742 Returns @c true if this medium is read-only and @c false otherwise.
9743
9744 A medium is considered to be read-only when its contents cannot be
9745 modified without breaking the integrity of other parties that depend on
9746 this medium such as its child media or snapshots of virtual machines
9747 where this medium is attached to these machines. If there are no
9748 children and no such snapshots then there is no dependency and the
9749 medium is not read-only.
9750
9751 The value of this attribute can be used to determine the kind of the
9752 attachment that will take place when attaching this medium to a
9753 virtual machine. If the value is @c false then the medium will
9754 be attached directly. If the value is @c true then the medium
9755 will be attached indirectly by creating a new differencing child
9756 medium for that. See the interface description for more information.
9757
9758 Note that all <link to="MediumType_Immutable">Immutable</link> media
9759 are always read-only while all
9760 <link to="MediumType_Writethrough">Writethrough</link> media are
9761 always not.
9762
9763 <note>
9764 The read-only condition represented by this attribute is related to
9765 the medium type and usage, not to the current
9766 <link to="IMedium::state">medium state</link> and not to the read-only
9767 state of the storage unit.
9768 </note>
9769 </desc>
9770 </attribute>
9771
9772 <attribute name="logicalSize" type="long long" readonly="yes">
9773 <desc>
9774 Logical size of this medium (in bytes), as reported to the
9775 guest OS running inside the virtual machine this medium is
9776 attached to. The logical size is defined when the medium is created
9777 and cannot be changed later.
9778
9779 <note>
9780 Reading this property on a differencing medium will return the size
9781 of its <link to="#base"/> medium.
9782 </note>
9783 <note>
9784 For media whose state is <link to="#state"/> is <link
9785 to="MediumState_Inaccessible"/>, the value of this property is the
9786 last known logical size. For <link to="MediumState_NotCreated"/>
9787 media, the returned value is zero.
9788 </note>
9789 </desc>
9790 </attribute>
9791
9792 <attribute name="autoReset" type="boolean">
9793 <desc>
9794 Whether this differencing medium will be automatically reset each
9795 time a virtual machine it is attached to is powered up. This
9796 attribute is automatically set to @c true for the last
9797 differencing image of an "immutable" medium (see
9798 <link to="MediumType" />).
9799
9800 See <link to="#reset"/> for more information about resetting
9801 differencing media.
9802
9803 <note>
9804 Reading this property on a base (non-differencing) medium will
9805 always @c false. Changing the value of this property in this
9806 case is not supported.
9807 </note>
9808
9809 <result name="VBOX_E_NOT_SUPPORTED">
9810 This is not a differencing medium (when changing the attribute
9811 value).
9812 </result>
9813 </desc>
9814 </attribute>
9815
9816 <attribute name="lastAccessError" type="wstring" readonly="yes">
9817 <desc>
9818 Text message that represents the result of the last accessibility
9819 check performed by <link to="#refreshState"/>.
9820
9821 An empty string is returned if the last accessibility check
9822 was successful or has not yet been called. As a result, if
9823 <link to="#state" /> is "Inaccessible" and this attribute is empty,
9824 then <link to="#refreshState"/> has yet to be called; this is the
9825 default value of media after VirtualBox initialization.
9826 A non-empty string indicates a failure and should normally describe
9827 a reason of the failure (for example, a file read error).
9828 </desc>
9829 </attribute>
9830
9831 <attribute name="machineIds" type="uuid" mod="string" safearray="yes" readonly="yes">
9832 <desc>
9833 Array of UUIDs of all machines this medium is attached to.
9834
9835 A @c null array is returned if this medium is not attached to any
9836 machine or to any machine's snapshot.
9837
9838 <note>
9839 The returned array will include a machine even if this medium is not
9840 attached to that machine in the current state but attached to it in
9841 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
9842 details.
9843 </note>
9844 </desc>
9845 </attribute>
9846
9847 <method name="setIDs">
9848 <desc>
9849 Changes the UUID and parent UUID for a hard disk medium.
9850 </desc>
9851 <param name="setImageId" type="boolean" dir="in">
9852 <desc>
9853 Select whether a new image UUID is set or not.
9854 </desc>
9855 </param>
9856 <param name="imageId" type="uuid" mod="string" dir="in">
9857 <desc>
9858 New UUID for the image. If an empty string is passed, then a new
9859 UUID is automatically created, provided that @a setImageId is @c true.
9860 Specifying a zero UUID is not allowed.
9861 </desc>
9862 </param>
9863 <param name="setParentId" type="boolean" dir="in">
9864 <desc>
9865 Select whether a new parent UUID is set or not.
9866 </desc>
9867 </param>
9868 <param name="parentId" type="uuid" mod="string" dir="in">
9869 <desc>
9870 New parent UUID for the image. If an empty string is passed, then a
9871 new UUID is automatically created, provided @a setParentId is
9872 @c true. A zero UUID is valid.
9873 </desc>
9874 </param>
9875 <result name="E_INVALIDARG">
9876 Invalid parameter combination.
9877 </result>
9878 <result name="VBOX_E_NOT_SUPPORTED">
9879 Medium is not a hard disk medium.
9880 </result>
9881 </method>
9882
9883 <method name="refreshState">
9884 <desc>
9885 If the current medium state (see <link to="MediumState"/>) is one of
9886 "Created", "Inaccessible" or "LockedRead", then this performs an
9887 accessibility check on the medium and sets the value of the <link to="#state"/>
9888 attribute accordingly; that value is also returned for convenience.
9889
9890 For all other state values, this does not perform a refresh but returns
9891 the state only.
9892
9893 The refresh, if performed, may take a long time (several seconds or even
9894 minutes, depending on the storage unit location and format) because it performs an
9895 accessibility check of the storage unit. This check may cause a significant
9896 delay if the storage unit of the given medium is, for example, a file located
9897 on a network share which is not currently accessible due to connectivity
9898 problems. In that case, the call will not return until a timeout
9899 interval defined by the host OS for this operation expires. For this reason,
9900 it is recommended to never read this attribute on the main UI thread to avoid
9901 making the UI unresponsive.
9902
9903 If the last known state of the medium is "Created" and the accessibility
9904 check fails, then the state would be set to "Inaccessible", and
9905 <link to="#lastAccessError"/> may be used to get more details about the
9906 failure. If the state of the medium is "LockedRead", then it remains the
9907 same, and a non-empty value of <link to="#lastAccessError"/> will
9908 indicate a failed accessibility check in this case.
9909
9910 Note that not all medium states are applicable to all medium types.
9911 </desc>
9912 <param name="state" type="MediumState" dir="return">
9913 <desc>
9914 New medium state.
9915 </desc>
9916 </param>
9917 </method>
9918
9919 <method name="getSnapshotIds">
9920 <desc>
9921 Returns an array of UUIDs of all snapshots of the given machine where
9922 this medium is attached to.
9923
9924 If the medium is attached to the machine in the current state, then the
9925 first element in the array will always be the ID of the queried machine
9926 (i.e. the value equal to the @c machineId argument), followed by
9927 snapshot IDs (if any).
9928
9929 If the medium is not attached to the machine in the current state, then
9930 the array will contain only snapshot IDs.
9931
9932 The returned array may be @c null if this medium is not attached
9933 to the given machine at all, neither in the current state nor in one of
9934 the snapshots.
9935 </desc>
9936 <param name="machineId" type="uuid" mod="string" dir="in">
9937 <desc>
9938 UUID of the machine to query.
9939 </desc>
9940 </param>
9941 <param name="snapshotIds" type="uuid" mod="string" safearray="yes" dir="return">
9942 <desc>
9943 Array of snapshot UUIDs of the given machine using this medium.
9944 </desc>
9945 </param>
9946 </method>
9947
9948 <method name="lockRead">
9949 <desc>
9950 Locks this medium for reading.
9951
9952 A read lock is shared: many clients can simultaneously lock the
9953 same medium for reading unless it is already locked for writing (see
9954 <link to="#lockWrite"/>) in which case an error is returned.
9955
9956 When the medium is locked for reading, it cannot be modified
9957 from within VirtualBox. This means that any method that changes
9958 the properties of this medium or contents of the storage unit
9959 will return an error (unless explicitly stated otherwise). That
9960 includes an attempt to start a virtual machine that wants to
9961 write to the the medium.
9962
9963 When the virtual machine is started up, it locks for reading all
9964 media it uses in read-only mode. If some medium cannot be locked
9965 for reading, the startup procedure will fail.
9966 A medium is typically locked for reading while it is used by a running
9967 virtual machine but has a depending differencing image that receives
9968 the actual write operations. This way one base medium can have
9969 multiple child differencing images which can be written to
9970 simultaneously. Read-only media such as DVD and floppy images are
9971 also locked for reading only (so they can be in use by multiple
9972 machines simultaneously).
9973
9974 A medium is also locked for reading when it is the source of a
9975 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
9976
9977 The medium locked for reading must be unlocked using the <link
9978 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
9979 can be nested and must be followed by the same number of paired
9980 <link to="#unlockRead"/> calls.
9981
9982 This method sets the medium state (see <link to="#state"/>) to
9983 "LockedRead" on success. The medium's previous state must be
9984 one of "Created", "Inaccessible" or "LockedRead".
9985
9986 Locking an inaccessible medium is not an error; this method performs
9987 a logical lock that prevents modifications of this medium through
9988 the VirtualBox API, not a physical file-system lock of the underlying
9989 storage unit.
9990
9991 This method returns the current state of the medium
9992 <i>before</i> the operation.
9993
9994 <result name="VBOX_E_INVALID_OBJECT_STATE">
9995 Invalid medium state (e.g. not created, locked, inaccessible,
9996 creating, deleting).
9997 </result>
9998
9999 </desc>
10000 <param name="state" type="MediumState" dir="return">
10001 <desc>
10002 State of the medium after the operation.
10003 </desc>
10004 </param>
10005 </method>
10006
10007 <method name="unlockRead">
10008 <desc>
10009 Cancels the read lock previously set by <link to="#lockRead"/>.
10010
10011 For both success and failure, this method returns the current state
10012 of the medium <i>after</i> the operation.
10013
10014 See <link to="#lockRead"/> for more details.
10015
10016 <result name="VBOX_E_INVALID_OBJECT_STATE">
10017 Medium not locked for reading.
10018 </result>
10019
10020 </desc>
10021 <param name="state" type="MediumState" dir="return">
10022 <desc>
10023 State of the medium after the operation.
10024 </desc>
10025 </param>
10026 </method>
10027
10028 <method name="lockWrite">
10029 <desc>
10030 Locks this medium for writing.
10031
10032 A write lock, as opposed to <link to="#lockRead"/>, is
10033 exclusive: there may be only one client holding a write lock,
10034 and there may be no read locks while the write lock is held.
10035 As a result, read-locking fails if a write lock is held, and
10036 write-locking fails if either a read or another write lock is held.
10037
10038 When a medium is locked for writing, it cannot be modified
10039 from within VirtualBox, and it is not guaranteed that the values
10040 of its properties are up-to-date. Any method that changes the
10041 properties of this medium or contents of the storage unit will
10042 return an error (unless explicitly stated otherwise).
10043
10044 When a virtual machine is started up, it locks for writing all
10045 media it uses to write data to. If any medium could not be locked
10046 for writing, the startup procedure will fail. If a medium has
10047 differencing images, then while the machine is running, only
10048 the last ("leaf") differencing image is locked for writing,
10049 whereas its parents are locked for reading only.
10050
10051 A medium is also locked for writing when it is the target of a
10052 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
10053
10054 The medium locked for writing must be unlocked using the <link
10055 to="#unlockWrite"/> method. Write locks <i>cannot</i> be nested.
10056
10057 This method sets the medium state (see <link to="#state"/>) to
10058 "LockedWrite" on success. The medium's previous state must be
10059 either "Created" or "Inaccessible".
10060
10061 Locking an inaccessible medium is not an error; this method performs
10062 a logical lock that prevents modifications of this medium through
10063 the VirtualBox API, not a physical file-system lock of the underlying
10064 storage unit.
10065
10066 For both, success and failure, this method returns the current
10067 state of the medium <i>before</i> the operation.
10068
10069 <result name="VBOX_E_INVALID_OBJECT_STATE">
10070 Invalid medium state (e.g. not created, locked, inaccessible,
10071 creating, deleting).
10072 </result>
10073
10074 </desc>
10075 <param name="state" type="MediumState" dir="return">
10076 <desc>
10077 State of the medium after the operation.
10078 </desc>
10079 </param>
10080 </method>
10081
10082 <method name="unlockWrite">
10083 <desc>
10084 Cancels the write lock previously set by <link to="#lockWrite"/>.
10085
10086 For both success and failure, this method returns the current
10087 state of the medium <i>after</i> the operation.
10088
10089 See <link to="#lockWrite"/> for more details.
10090
10091 <result name="VBOX_E_INVALID_OBJECT_STATE">
10092 Medium not locked for writing.
10093 </result>
10094
10095 </desc>
10096 <param name="state" type="MediumState" dir="return">
10097 <desc>
10098 State of the medium after the operation.
10099 </desc>
10100 </param>
10101 </method>
10102
10103 <method name="close">
10104 <desc>
10105 Closes this medium.
10106
10107 The medium must not be attached to any known virtual machine
10108 and must not have any known child media, otherwise the
10109 operation will fail.
10110
10111 When the medium is successfully closed, it is removed from
10112 the list of registered media, but its storage unit is not
10113 deleted. In particular, this means that this medium can
10114 later be opened again using the <link to="IVirtualBox::openMedium"/>
10115 call.
10116
10117 Note that after this method successfully returns, the given medium
10118 object becomes uninitialized. This means that any attempt
10119 to call any of its methods or attributes will fail with the
10120 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
10121
10122 <result name="VBOX_E_INVALID_OBJECT_STATE">
10123 Invalid medium state (other than not created, created or
10124 inaccessible).
10125 </result>
10126 <result name="VBOX_E_OBJECT_IN_USE">
10127 Medium attached to virtual machine.
10128 </result>
10129 <result name="VBOX_E_FILE_ERROR">
10130 Settings file not accessible.
10131 </result>
10132 <result name="VBOX_E_XML_ERROR">
10133 Could not parse the settings file.
10134 </result>
10135
10136 </desc>
10137 </method>
10138
10139 <!-- storage methods -->
10140
10141 <method name="getProperty">
10142 <desc>
10143 Returns the value of the custom medium property with the given name.
10144
10145 The list of all properties supported by the given medium format can
10146 be obtained with <link to="IMediumFormat::describeProperties"/>.
10147
10148 Note that if this method returns an empty string in @a value, the
10149 requested property is supported but currently not assigned any value.
10150
10151 <result name="VBOX_E_OBJECT_NOT_FOUND">
10152 Requested property does not exist (not supported by the format).
10153 </result>
10154 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
10155 </desc>
10156 <param name="name" type="wstring" dir="in">
10157 <desc>Name of the property to get.</desc>
10158 </param>
10159 <param name="value" type="wstring" dir="return">
10160 <desc>Current property value.</desc>
10161 </param>
10162 </method>
10163
10164 <method name="setProperty">
10165 <desc>
10166 Sets the value of the custom medium property with the given name.
10167
10168 The list of all properties supported by the given medium format can
10169 be obtained with <link to="IMediumFormat::describeProperties"/>.
10170
10171 Note that setting the property value to @c null or an empty string is
10172 equivalent to deleting the existing value. A default value (if it is
10173 defined for this property) will be used by the format backend in this
10174 case.
10175
10176 <result name="VBOX_E_OBJECT_NOT_FOUND">
10177 Requested property does not exist (not supported by the format).
10178 </result>
10179 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
10180 </desc>
10181 <param name="name" type="wstring" dir="in">
10182 <desc>Name of the property to set.</desc>
10183 </param>
10184 <param name="value" type="wstring" dir="in">
10185 <desc>Property value to set.</desc>
10186 </param>
10187 </method>
10188
10189 <method name="getProperties">
10190 <desc>
10191 Returns values for a group of properties in one call.
10192
10193 The names of the properties to get are specified using the @a names
10194 argument which is a list of comma-separated property names or
10195 an empty string if all properties are to be returned. Note that currently
10196 the value of this argument is ignored and the method always returns all
10197 existing properties.
10198
10199 The list of all properties supported by the given medium format can
10200 be obtained with <link to="IMediumFormat::describeProperties"/>.
10201
10202 The method returns two arrays, the array of property names corresponding
10203 to the @a names argument and the current values of these properties.
10204 Both arrays have the same number of elements with each elemend at the
10205 given index in the first array corresponds to an element at the same
10206 index in the second array.
10207
10208 Note that for properties that do not have assigned values,
10209 an empty string is returned at the appropriate index in the
10210 @a returnValues array.
10211
10212 </desc>
10213 <param name="names" type="wstring" dir="in">
10214 <desc>
10215 Names of properties to get.
10216 </desc>
10217 </param>
10218 <param name="returnNames" type="wstring" safearray="yes" dir="out">
10219 <desc>Names of returned properties.</desc>
10220 </param>
10221 <param name="returnValues" type="wstring" safearray="yes" dir="return">
10222 <desc>Values of returned properties.</desc>
10223 </param>
10224 </method>
10225
10226 <method name="setProperties">
10227 <desc>
10228 Sets values for a group of properties in one call.
10229
10230 The names of the properties to set are passed in the @a names
10231 array along with the new values for them in the @a values array. Both
10232 arrays have the same number of elements with each elemend at the given
10233 index in the first array corresponding to an element at the same index
10234 in the second array.
10235
10236 If there is at least one property name in @a names that is not valid,
10237 the method will fail before changing the values of any other properties
10238 from the @a names array.
10239
10240 Using this method over <link to="#setProperty"/> is preferred if you
10241 need to set several properties at once since it will result into less
10242 IPC calls.
10243
10244 The list of all properties supported by the given medium format can
10245 be obtained with <link to="IMediumFormat::describeProperties"/>.
10246
10247 Note that setting the property value to @c null or an empty string is
10248 equivalent to deleting the existing value. A default value (if it is
10249 defined for this property) will be used by the format backend in this
10250 case.
10251 </desc>
10252 <param name="names" type="wstring" safearray="yes" dir="in">
10253 <desc>Names of properties to set.</desc>
10254 </param>
10255 <param name="values" type="wstring" safearray="yes" dir="in">
10256 <desc>Values of properties to set.</desc>
10257 </param>
10258 </method>
10259
10260 <!-- storage methods -->
10261
10262 <method name="createBaseStorage">
10263 <desc>
10264 Starts creating a hard disk storage unit (fixed/dynamic, according
10265 to the variant flags) in in the background. The previous storage unit
10266 created for this object, if any, must first be deleted using
10267 <link to="#deleteStorage"/>, otherwise the operation will fail.
10268
10269 Before the operation starts, the medium is placed in
10270 <link to="MediumState_Creating"/> state. If the create operation
10271 fails, the medium will be placed back in <link to="MediumState_NotCreated"/>
10272 state.
10273
10274 After the returned progress object reports that the operation has
10275 successfully completed, the medium state will be set to <link
10276 to="MediumState_Created"/>, the medium will be remembered by this
10277 VirtualBox installation and may be attached to virtual machines.
10278
10279 <result name="VBOX_E_NOT_SUPPORTED">
10280 The variant of storage creation operation is not supported. See <link
10281 to="IMediumFormat::capabilities"/>.
10282 </result>
10283 </desc>
10284 <param name="logicalSize" type="long long" dir="in">
10285 <desc>Maximum logical size of the medium in bytes.</desc>
10286 </param>
10287 <param name="variant" type="unsigned long" dir="in">
10288 <desc>Exact image variant which should be created (as a combination of
10289 <link to="MediumVariant" /> flags).</desc>
10290 </param>
10291 <param name="progress" type="IProgress" dir="return">
10292 <desc>Progress object to track the operation completion.</desc>
10293 </param>
10294 </method>
10295
10296 <method name="deleteStorage">
10297 <desc>
10298 Starts deleting the storage unit of this medium.
10299
10300 The medium must not be attached to any known virtual machine and must
10301 not have any known child media, otherwise the operation will fail.
10302 It will also fail if there is no storage unit to delete or if deletion
10303 is already in progress, or if the medium is being in use (locked for
10304 read or for write) or inaccessible. Therefore, the only valid state for
10305 this operation to succeed is <link to="MediumState_Created"/>.
10306
10307 Before the operation starts, the medium is placed in
10308 <link to="MediumState_Deleting"/> state and gets removed from the list
10309 of remembered hard disks (media registry). If the delete operation
10310 fails, the medium will be remembered again and placed back to
10311 <link to="MediumState_Created"/> state.
10312
10313 After the returned progress object reports that the operation is
10314 complete, the medium state will be set to
10315 <link to="MediumState_NotCreated"/> and you will be able to use one of
10316 the storage creation methods to create it again.
10317
10318 <see>#close()</see>
10319
10320 <result name="VBOX_E_OBJECT_IN_USE">
10321 Medium is attached to a virtual machine.
10322 </result>
10323 <result name="VBOX_E_NOT_SUPPORTED">
10324 Storage deletion is not allowed because neither of storage creation
10325 operations are supported. See
10326 <link to="IMediumFormat::capabilities"/>.
10327 </result>
10328
10329 <note>
10330 If the deletion operation fails, it is not guaranteed that the storage
10331 unit still exists. You may check the <link to="IMedium::state"/> value
10332 to answer this question.
10333 </note>
10334 </desc>
10335 <param name="progress" type="IProgress" dir="return">
10336 <desc>Progress object to track the operation completion.</desc>
10337 </param>
10338 </method>
10339
10340 <!-- diff methods -->
10341
10342 <method name="createDiffStorage">
10343 <desc>
10344 Starts creating an empty differencing storage unit based on this
10345 medium in the format and at the location defined by the @a target
10346 argument.
10347
10348 The target medium must be in <link to="MediumState_NotCreated"/>
10349 state (i.e. must not have an existing storage unit). Upon successful
10350 completion, this operation will set the type of the target medium to
10351 <link to="MediumType_Normal"/> and create a storage unit necessary to
10352 represent the differencing medium data in the given format (according
10353 to the storage format of the target object).
10354
10355 After the returned progress object reports that the operation is
10356 successfully complete, the target medium gets remembered by this
10357 VirtualBox installation and may be attached to virtual machines.
10358
10359 <note>
10360 The medium will be set to <link to="MediumState_LockedRead"/>
10361 state for the duration of this operation.
10362 </note>
10363 <result name="VBOX_E_OBJECT_IN_USE">
10364 Medium not in @c NotCreated state.
10365 </result>
10366 </desc>
10367 <param name="target" type="IMedium" dir="in">
10368 <desc>Target medium.</desc>
10369 </param>
10370 <param name="variant" type="unsigned long" dir="in">
10371 <desc>Exact image variant which should be created (as a combination of
10372 <link to="MediumVariant" /> flags).</desc>
10373 </param>
10374 <param name="progress" type="IProgress" dir="return">
10375 <desc>Progress object to track the operation completion.</desc>
10376 </param>
10377 </method>
10378
10379 <method name="mergeTo">
10380 <desc>
10381 Starts merging the contents of this medium and all intermediate
10382 differencing media in the chain to the given target medium.
10383
10384 The target medium must be either a descendant of this medium or
10385 its ancestor (otherwise this method will immediately return a failure).
10386 It follows that there are two logical directions of the merge operation:
10387 from ancestor to descendant (<i>forward merge</i>) and from descendant to
10388 ancestor (<i>backward merge</i>). Let us consider the following medium
10389 chain:
10390
10391 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
10392
10393 Here, calling this method on the <tt>Base</tt> medium object with
10394 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
10395 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
10396 merge. Note that in both cases the contents of the resulting medium
10397 will be the same, the only difference is the medium object that takes
10398 the result of the merge operation. In case of the forward merge in the
10399 above example, the result will be written to <tt>Diff_2</tt>; in case of
10400 the backward merge, the result will be written to <tt>Base</tt>. In
10401 other words, the result of the operation is always stored in the target
10402 medium.
10403
10404 Upon successful operation completion, the storage units of all media in
10405 the chain between this (source) medium and the target medium, including
10406 the source medium itself, will be automatically deleted and the
10407 relevant medium objects (including this medium) will become
10408 uninitialized. This means that any attempt to call any of
10409 their methods or attributes will fail with the
10410 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
10411 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
10412 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> media.
10413 Note that <tt>Diff_2</tt> in this case will become a base medium
10414 itself since it will no longer be based on any other medium.
10415
10416 Considering the above, all of the following conditions must be met in
10417 order for the merge operation to succeed:
10418 <ul>
10419 <li>
10420 Neither this (source) medium nor any intermediate
10421 differencing medium in the chain between it and the target
10422 medium is attached to any virtual machine.
10423 </li>
10424 <li>
10425 Neither the source medium nor the target medium is an
10426 <link to="MediumType_Immutable"/> medium.
10427 </li>
10428 <li>
10429 The part of the medium tree from the source medium to the
10430 target medium is a linear chain, i.e. all medium in this
10431 chain have exactly one child which is the next medium in this
10432 chain. The only exception from this rule is the target medium in
10433 the forward merge operation; it is allowed to have any number of
10434 child media because the merge operation will not change its
10435 logical contents (as it is seen by the guest OS or by children).
10436 </li>
10437 <li>
10438 None of the involved media are in
10439 <link to="MediumState_LockedRead"/> or
10440 <link to="MediumState_LockedWrite"/> state.
10441 </li>
10442 </ul>
10443
10444 <note>
10445 This (source) medium and all intermediates will be placed to <link
10446 to="MediumState_Deleting"/> state and the target medium will be
10447 placed to <link to="MediumState_LockedWrite"/> state and for the
10448 duration of this operation.
10449 </note>
10450 </desc>
10451 <param name="target" type="IMedium" dir="in">
10452 <desc>Target medium.</desc>
10453 </param>
10454 <param name="progress" type="IProgress" dir="return">
10455 <desc>Progress object to track the operation completion.</desc>
10456 </param>
10457 </method>
10458
10459 <!-- clone method -->
10460
10461 <method name="cloneTo">
10462 <desc>
10463 Starts creating a clone of this medium in the format and at the
10464 location defined by the @a target argument.
10465
10466 The target medium must be either in <link to="MediumState_NotCreated"/>
10467 state (i.e. must not have an existing storage unit) or in
10468 <link to="MediumState_Created"/> state (i.e. created and not locked, and
10469 big enough to hold the data or else the copy will be partial). Upon
10470 successful completion, the cloned medium will contain exactly the
10471 same sector data as the medium being cloned, except that in the
10472 first case a new UUID for the clone will be randomly generated, and in
10473 the second case the UUID will remain unchanged.
10474
10475 The @a parent argument defines which medium will be the parent
10476 of the clone. Passing a @c null reference indicates that the clone will
10477 be a base image, i.e. completely independent. It is possible to specify
10478 an arbitrary medium for this parameter, including the parent of the
10479 medium which is being cloned. Even cloning to a child of the source
10480 medium is possible. Note that when cloning to an existing image, the
10481 @a parent irgument is ignored.
10482
10483 After the returned progress object reports that the operation is
10484 successfully complete, the target medium gets remembered by this
10485 VirtualBox installation and may be attached to virtual machines.
10486
10487 <note>
10488 This medium will be placed to <link to="MediumState_LockedRead"/>
10489 state for the duration of this operation.
10490 </note>
10491 <result name="E_NOTIMPL">
10492 The specified cloning variant is not supported at the moment.
10493 </result>
10494 </desc>
10495 <param name="target" type="IMedium" dir="in">
10496 <desc>Target medium.</desc>
10497 </param>
10498 <param name="variant" type="unsigned long" dir="in">
10499 <desc>Exact image variant which should be created (as a combination of
10500 <link to="MediumVariant" /> flags).</desc>
10501 </param>
10502 <param name="parent" type="IMedium" dir="in">
10503 <desc>Parent of the cloned medium.</desc>
10504 </param>
10505 <param name="progress" type="IProgress" dir="return">
10506 <desc>Progress object to track the operation completion.</desc>
10507 </param>
10508 </method>
10509
10510 <!-- other methods -->
10511
10512 <method name="compact">
10513 <desc>
10514 Starts compacting of this medium. This means that the medium is
10515 transformed into a possibly more compact storage representation.
10516 This potentially creates temporary images, which can require a
10517 substantial amount of additional disk space.
10518
10519 This medium will be placed to <link to="MediumState_LockedWrite"/>
10520 state and all its parent media (if any) will be placed to
10521 <link to="MediumState_LockedRead"/> state for the duration of this
10522 operation.
10523
10524 Please note that the results can be either returned straight away,
10525 or later as the result of the background operation via the object
10526 returned via the @a progress parameter.
10527
10528 <result name="VBOX_E_NOT_SUPPORTED">
10529 Medium format does not support compacting (but potentially
10530 needs it).
10531 </result>
10532 </desc>
10533 <param name="progress" type="IProgress" dir="return">
10534 <desc>Progress object to track the operation completion.</desc>
10535 </param>
10536 </method>
10537
10538 <method name="resize">
10539 <desc>
10540 Starts resizing this medium. This means that the nominal size of the
10541 medium is set to the new value. Both increasing and decreasing the
10542 size is possible, and there are no safety checks, since VirtualBox
10543 does not make any assumptions about the medium contents.
10544
10545 Resizing usually needs additional disk space, and possibly also
10546 some temporary disk space. Note that resize does not create a full
10547 temporary copy of the medium, so the additional disk space requirement
10548 is usually much lower than using the clone operation.
10549
10550 This medium will be placed to <link to="MediumState_LockedWrite"/>
10551 state for the duration of this operation.
10552
10553 Please note that the results can be either returned straight away,
10554 or later as the result of the background operation via the object
10555 returned via the @a progress parameter.
10556
10557 <result name="VBOX_E_NOT_SUPPORTED">
10558 Medium format does not support resizing.
10559 </result>
10560 </desc>
10561 <param name="logicalSize" type="long long" dir="in">
10562 <desc>New nominal capacity of the medium in bytes.</desc>
10563 </param>
10564 <param name="progress" type="IProgress" dir="return">
10565 <desc>Progress object to track the operation completion.</desc>
10566 </param>
10567 </method>
10568
10569 <method name="reset">
10570 <desc>
10571 Starts erasing the contents of this differencing medium.
10572
10573 This operation will reset the differencing medium to its initial
10574 state when it does not contain any sector data and any read operation is
10575 redirected to its parent medium. This automatically gets called
10576 during VM power-up for every medium whose <link to="#autoReset" />
10577 attribute is @c true.
10578
10579 The medium will be write-locked for the duration of this operation (see
10580 <link to="#lockWrite" />).
10581
10582 <result name="VBOX_E_NOT_SUPPORTED">
10583 This is not a differencing medium.
10584 </result>
10585 <result name="VBOX_E_INVALID_OBJECT_STATE">
10586 Medium is not in <link to="MediumState_Created"/> or
10587 <link to="MediumState_Inaccessible"/> state.
10588 </result>
10589 </desc>
10590 <param name="progress" type="IProgress" dir="return">
10591 <desc>Progress object to track the operation completion.</desc>
10592 </param>
10593 </method>
10594
10595 </interface>
10596
10597
10598 <!--
10599 // IMediumFormat
10600 /////////////////////////////////////////////////////////////////////////
10601 -->
10602
10603 <enum
10604 name="DataType"
10605 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
10606 >
10607 <const name="Int32" value="0"/>
10608 <const name="Int8" value="1"/>
10609 <const name="String" value="2"/>
10610 </enum>
10611
10612 <enum
10613 name="DataFlags"
10614 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
10615 >
10616 <const name="None" value="0x00"/>
10617 <const name="Mandatory" value="0x01"/>
10618 <const name="Expert" value="0x02"/>
10619 <const name="Array" value="0x04"/>
10620 <const name="FlagMask" value="0x07"/>
10621 </enum>
10622
10623 <enum
10624 name="MediumFormatCapabilities"
10625 uuid="7342ba79-7ce0-4d94-8f86-5ed5a185d9bd"
10626 >
10627 <desc>
10628 Medium format capability flags.
10629 </desc>
10630
10631 <const name="Uuid" value="0x01">
10632 <desc>
10633 Supports UUIDs as expected by VirtualBox code.
10634 </desc>
10635 </const>
10636
10637 <const name="CreateFixed" value="0x02">
10638 <desc>
10639 Supports creating fixed size images, allocating all space instantly.
10640 </desc>
10641 </const>
10642
10643 <const name="CreateDynamic" value="0x04">
10644 <desc>
10645 Supports creating dynamically growing images, allocating space on
10646 demand.
10647 </desc>
10648 </const>
10649
10650 <const name="CreateSplit2G" value="0x08">
10651 <desc>
10652 Supports creating images split in chunks of a bit less than 2 GBytes.
10653 </desc>
10654 </const>
10655
10656 <const name="Differencing" value="0x10">
10657 <desc>
10658 Supports being used as a format for differencing media (see <link
10659 to="IMedium::createDiffStorage"/>).
10660 </desc>
10661 </const>
10662
10663 <const name="Asynchronous" value="0x20">
10664 <desc>
10665 Supports asynchronous I/O operations for at least some configurations.
10666 </desc>
10667 </const>
10668
10669 <const name="File" value="0x40">
10670 <desc>
10671 The format backend operates on files (the <link to="IMedium::location"/>
10672 attribute of the medium specifies a file used to store medium
10673 data; for a list of supported file extensions see
10674 <link to="IMediumFormat::describeFileExtensions"/>).
10675 </desc>
10676 </const>
10677
10678 <const name="Properties" value="0x80">
10679 <desc>
10680 The format backend uses the property interface to configure the storage
10681 location and properties (the <link to="IMediumFormat::describeProperties"/>
10682 method is used to get access to properties supported by the given medium format).
10683 </desc>
10684 </const>
10685
10686 <const name="TcpNetworking" value="0x100">
10687 <desc>
10688 The format backend uses the TCP networking interface for network access.
10689 </desc>
10690 </const>
10691
10692 <const name="VFS" value="0x200">
10693 <desc>
10694 The format backend supports virtual filesystem functionality.
10695 </desc>
10696 </const>
10697
10698 <const name="CapabilityMask" value="0x3FF"/>
10699 </enum>
10700
10701 <interface
10702 name="IMediumFormat" extends="$unknown"
10703 uuid="4e9a873f-0599-434a-8345-619ef3fb3111"
10704 wsmap="managed"
10705 >
10706 <desc>
10707 The IMediumFormat interface represents a medium format.
10708
10709 Each medium format has an associated backend which is used to handle
10710 media stored in this format. This interface provides information
10711 about the properties of the associated backend.
10712
10713 Each medium format is identified by a string represented by the
10714 <link to="#id"/> attribute. This string is used in calls like
10715 <link to="IVirtualBox::createHardDisk"/> to specify the desired
10716 format.
10717
10718 The list of all supported medium formats can be obtained using
10719 <link to="ISystemProperties::mediumFormats"/>.
10720
10721 <see>IMedium</see>
10722 </desc>
10723
10724 <attribute name="id" type="wstring" readonly="yes">
10725 <desc>
10726 Identifier of this format.
10727
10728 The format identifier is a non-@c null non-empty ASCII string. Note that
10729 this string is case-insensitive. This means that, for example, all of
10730 the following strings:
10731 <pre>
10732 "VDI"
10733 "vdi"
10734 "VdI"</pre>
10735 refer to the same medium format.
10736
10737 This string is used in methods of other interfaces where it is necessary
10738 to specify a medium format, such as
10739 <link to="IVirtualBox::createHardDisk"/>.
10740 </desc>
10741 </attribute>
10742
10743 <attribute name="name" type="wstring" readonly="yes">
10744 <desc>
10745 Human readable description of this format.
10746
10747 Mainly for use in file open dialogs.
10748 </desc>
10749 </attribute>
10750
10751 <attribute name="capabilities" type="unsigned long" readonly="yes">
10752 <desc>
10753 Capabilities of the format as a set of bit flags.
10754
10755 For the meaning of individual capability flags see
10756 <link to="MediumFormatCapabilities"/>.
10757 </desc>
10758 </attribute>
10759
10760 <method name="describeFileExtensions">
10761 <desc>
10762 Returns two arrays describing the supported file extensions.
10763
10764 The first array contains the supported extensions and the seconds one
10765 the type each extension supports. Both have the same size.
10766
10767 Note that some backends do not work on files, so this array may be
10768 empty.
10769
10770 <see>IMediumFormat::capabilities</see>
10771 </desc>
10772 <param name="extensions" type="wstring" safearray="yes" dir="out">
10773 <desc>The array of supported extensions.</desc>
10774 </param>
10775 <param name="type" type="DeviceType" safearray="yes" dir="out">
10776 <desc>The array which indicates the device type for every given extension.</desc>
10777 </param>
10778 </method>
10779
10780 <method name="describeProperties">
10781 <desc>
10782 Returns several arrays describing the properties supported by this
10783 format.
10784
10785 An element with the given index in each array describes one
10786 property. Thus, the number of elements in each returned array is the
10787 same and corresponds to the number of supported properties.
10788
10789 The returned arrays are filled in only if the
10790 <link to="MediumFormatCapabilities_Properties"/> flag is set.
10791 All arguments must be non-@c null.
10792
10793 <see>DataType</see>
10794 <see>DataFlags</see>
10795 </desc>
10796
10797 <param name="names" type="wstring" safearray="yes" dir="out">
10798 <desc>Array of property names.</desc>
10799 </param>
10800 <param name="description" type="wstring" safearray="yes" dir="out">
10801 <desc>Array of property descriptions.</desc>
10802 </param>
10803 <param name="types" type="DataType" safearray="yes" dir="out">
10804 <desc>Array of property types.</desc>
10805 </param>
10806 <param name="flags" type="unsigned long" safearray="yes" dir="out">
10807 <desc>Array of property flags.</desc>
10808 </param>
10809 <param name="defaults" type="wstring" safearray="yes" dir="out">
10810 <desc>Array of default property values.</desc>
10811 </param>
10812 </method>
10813
10814 </interface>
10815
10816
10817 <!--
10818 // IKeyboard
10819 /////////////////////////////////////////////////////////////////////////
10820 -->
10821
10822 <interface
10823 name="IKeyboard" extends="$unknown"
10824 uuid="f6916ec5-a881-4237-898f-7de58cf88672"
10825 wsmap="managed"
10826 >
10827 <desc>
10828 The IKeyboard interface represents the virtual machine's keyboard. Used
10829 in <link to="IConsole::keyboard"/>.
10830
10831 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
10832 to the virtual machine.
10833
10834 </desc>
10835 <method name="putScancode">
10836 <desc>Sends a scancode to the keyboard.
10837
10838 <result name="VBOX_E_IPRT_ERROR">
10839 Could not send scan code to virtual keyboard.
10840 </result>
10841
10842 </desc>
10843 <param name="scancode" type="long" dir="in"/>
10844 </method>
10845
10846 <method name="putScancodes">
10847 <desc>Sends an array of scancodes to the keyboard.
10848
10849 <result name="VBOX_E_IPRT_ERROR">
10850 Could not send all scan codes to virtual keyboard.
10851 </result>
10852
10853 </desc>
10854 <param name="scancodes" type="long" dir="in" safearray="yes"/>
10855 <param name="codesStored" type="unsigned long" dir="return"/>
10856 </method>
10857
10858 <method name="putCAD">
10859 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
10860 function is nothing special, it is just a convenience function
10861 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
10862
10863 <result name="VBOX_E_IPRT_ERROR">
10864 Could not send all scan codes to virtual keyboard.
10865 </result>
10866
10867 </desc>
10868 </method>
10869
10870 <attribute name="eventSource" type="IEventSource" readonly="yes">
10871 <desc>
10872 Event source for keyboard events.
10873 </desc>
10874 </attribute>
10875
10876 </interface>
10877
10878
10879 <!--
10880 // IMouse
10881 /////////////////////////////////////////////////////////////////////////
10882 -->
10883
10884 <enum
10885 name="MouseButtonState"
10886 uuid="9ee094b8-b28a-4d56-a166-973cb588d7f8"
10887 >
10888 <desc>
10889 Mouse button state.
10890 </desc>
10891
10892 <const name="LeftButton" value="0x01"/>
10893 <const name="RightButton" value="0x02"/>
10894 <const name="MiddleButton" value="0x04"/>
10895 <const name="WheelUp" value="0x08"/>
10896 <const name="WheelDown" value="0x10"/>
10897 <const name="XButton1" value="0x20"/>
10898 <const name="XButton2" value="0x40"/>
10899 <const name="MouseStateMask" value="0x7F"/>
10900 </enum>
10901
10902 <interface
10903 name="IMouse" extends="$unknown"
10904 uuid="05044a52-7811-4f00-ae3a-0ab7ff707b10"
10905 wsmap="managed"
10906 >
10907 <desc>
10908 The IMouse interface represents the virtual machine's mouse. Used in
10909 <link to="IConsole::mouse"/>.
10910
10911 Through this interface, the virtual machine's virtual mouse can be
10912 controlled.
10913 </desc>
10914
10915 <attribute name="absoluteSupported" type="boolean" readonly="yes">
10916 <desc>
10917 Whether the guest OS supports absolute mouse pointer positioning
10918 or not.
10919 <note>
10920 You can use the <link to="IMouseCapabilityChangedEvent"/>
10921 event to be instantly informed about changes of this attribute
10922 during virtual machine execution.
10923 </note>
10924 <see><link to="#putMouseEventAbsolute"/></see>
10925 </desc>
10926 </attribute>
10927
10928 <attribute name="relativeSupported" type="boolean" readonly="yes">
10929 <desc>
10930 Whether the guest OS supports relative mouse pointer positioning
10931 or not.
10932 <note>
10933 You can use the <link to="IMouseCapabilityChangedEvent"/>
10934 event to be instantly informed about changes of this attribute
10935 during virtual machine execution.
10936 </note>
10937 <see><link to="#putMouseEvent"/></see>
10938 </desc>
10939 </attribute>
10940
10941 <attribute name="needsHostCursor" type="boolean" readonly="yes">
10942 <desc>
10943 Whether the guest OS can currently switch to drawing it's own mouse
10944 cursor on demand.
10945 <note>
10946 You can use the <link to="IMouseCapabilityChangedEvent"/>
10947 event to be instantly informed about changes of this attribute
10948 during virtual machine execution.
10949 </note>
10950 <see><link to="#putMouseEvent"/></see>
10951 </desc>
10952 </attribute>
10953
10954 <method name="putMouseEvent">
10955 <desc>
10956 Initiates a mouse event using relative pointer movements
10957 along x and y axis.
10958
10959 <result name="E_ACCESSDENIED">
10960 Console not powered up.
10961 </result>
10962 <result name="VBOX_E_IPRT_ERROR">
10963 Could not send mouse event to virtual mouse.
10964 </result>
10965
10966 </desc>
10967
10968 <param name="dx" type="long" dir="in">
10969 <desc>
10970 Amount of pixels the mouse should move to the right.
10971 Negative values move the mouse to the left.
10972 </desc>
10973 </param>
10974 <param name="dy" type="long" dir="in">
10975 <desc>
10976 Amount of pixels the mouse should move downwards.
10977 Negative values move the mouse upwards.
10978 </desc>
10979 </param>
10980 <param name="dz" type="long" dir="in">
10981 <desc>
10982 Amount of mouse wheel moves.
10983 Positive values describe clockwise wheel rotations,
10984 negative values describe counterclockwise rotations.
10985 </desc>
10986 </param>
10987 <param name="dw" type="long" dir="in">
10988 <desc>
10989 Amount of horizontal mouse wheel moves.
10990 Positive values describe a movement to the left,
10991 negative values describe a movement to the right.
10992 </desc>
10993 </param>
10994 <param name="buttonState" type="long" dir="in">
10995 <desc>
10996 The current state of mouse buttons. Every bit represents
10997 a mouse button as follows:
10998 <table>
10999 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
11000 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
11001 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
11002 </table>
11003 A value of <tt>1</tt> means the corresponding button is pressed.
11004 otherwise it is released.
11005 </desc>
11006 </param>
11007 </method>
11008
11009 <method name="putMouseEventAbsolute">
11010 <desc>
11011 Positions the mouse pointer using absolute x and y coordinates.
11012 These coordinates are expressed in pixels and
11013 start from <tt>[1,1]</tt> which corresponds to the top left
11014 corner of the virtual display.
11015
11016 <result name="E_ACCESSDENIED">
11017 Console not powered up.
11018 </result>
11019 <result name="VBOX_E_IPRT_ERROR">
11020 Could not send mouse event to virtual mouse.
11021 </result>
11022
11023 <note>
11024 This method will have effect only if absolute mouse
11025 positioning is supported by the guest OS.
11026 </note>
11027
11028 <see><link to="#absoluteSupported"/></see>
11029 </desc>
11030
11031 <param name="x" type="long" dir="in">
11032 <desc>
11033 X coordinate of the pointer in pixels, starting from @c 1.
11034 </desc>
11035 </param>
11036 <param name="y" type="long" dir="in">
11037 <desc>
11038 Y coordinate of the pointer in pixels, starting from @c 1.
11039 </desc>
11040 </param>
11041 <param name="dz" type="long" dir="in">
11042 <desc>
11043 Amount of mouse wheel moves.
11044 Positive values describe clockwise wheel rotations,
11045 negative values describe counterclockwise rotations.
11046 </desc>
11047 </param>
11048 <param name="dw" type="long" dir="in">
11049 <desc>
11050 Amount of horizontal mouse wheel moves.
11051 Positive values describe a movement to the left,
11052 negative values describe a movement to the right.
11053 </desc>
11054 </param>
11055 <param name="buttonState" type="long" dir="in">
11056 <desc>
11057 The current state of mouse buttons. Every bit represents
11058 a mouse button as follows:
11059 <table>
11060 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
11061 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
11062 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
11063 </table>
11064 A value of @c 1 means the corresponding button is pressed.
11065 otherwise it is released.
11066 </desc>
11067 </param>
11068 </method>
11069
11070 <attribute name="eventSource" type="IEventSource" readonly="yes">
11071 <desc>
11072 Event source for mouse events.
11073 </desc>
11074 </attribute>
11075
11076 </interface>
11077
11078 <!--
11079 // IDisplay
11080 /////////////////////////////////////////////////////////////////////////
11081 -->
11082
11083 <enum
11084 name="FramebufferPixelFormat"
11085 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
11086 >
11087 <desc>
11088 Format of the video memory buffer. Constants represented by this enum can
11089 be used to test for particular values of <link
11090 to="IFramebuffer::pixelFormat"/>. See also <link
11091 to="IFramebuffer::requestResize"/>.
11092
11093 See also www.fourcc.org for more information about FOURCC pixel formats.
11094 </desc>
11095
11096 <const name="Opaque" value="0">
11097 <desc>
11098 Unknown buffer format (the user may not assume any particular format of
11099 the buffer).
11100 </desc>
11101 </const>
11102 <const name="FOURCC_RGB" value="0x32424752">
11103 <desc>
11104 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
11105 bit layout).
11106 </desc>
11107 </const>
11108 </enum>
11109
11110 <interface
11111 name="IFramebuffer" extends="$unknown"
11112 uuid="b7ed347a-5765-40a0-ae1c-f543eb4ddeaf"
11113 wsmap="suppress"
11114 >
11115 <attribute name="address" type="octet" mod="ptr" readonly="yes">
11116 <desc>Address of the start byte of the frame buffer.</desc>
11117 </attribute>
11118
11119 <attribute name="width" type="unsigned long" readonly="yes">
11120 <desc>Frame buffer width, in pixels.</desc>
11121 </attribute>
11122
11123 <attribute name="height" type="unsigned long" readonly="yes">
11124 <desc>Frame buffer height, in pixels.</desc>
11125 </attribute>
11126
11127 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
11128 <desc>
11129 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
11130 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
11131 are: 8, 15, 16, 24 and 32.
11132 </desc>
11133 </attribute>
11134
11135 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
11136 <desc>
11137 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
11138 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
11139 size of the scan line must be aligned to 32 bits.
11140 </desc>
11141 </attribute>
11142
11143 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
11144 <desc>
11145 Frame buffer pixel format. It's either one of the values defined by <link
11146 to="FramebufferPixelFormat"/> or a raw FOURCC code.
11147 <note>
11148 This attribute must never return <link
11149 to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
11150 <link to="#address"/> points to must be always known.
11151 </note>
11152 </desc>
11153 </attribute>
11154
11155 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
11156 <desc>
11157 Defines whether this frame buffer uses the virtual video card's memory
11158 buffer (guest VRAM) directly or not. See <link
11159 to="IFramebuffer::requestResize"/> for more information.
11160 </desc>
11161 </attribute>
11162
11163 <attribute name="heightReduction" type="unsigned long" readonly="yes">
11164 <desc>
11165 Hint from the frame buffer about how much of the standard
11166 screen height it wants to use for itself. This information is
11167 exposed to the guest through the VESA BIOS and VMMDev interface
11168 so that it can use it for determining its video mode table. It
11169 is not guaranteed that the guest respects the value.
11170 </desc>
11171 </attribute>
11172
11173 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
11174 <desc>
11175 An alpha-blended overlay which is superposed over the frame buffer.
11176 The initial purpose is to allow the display of icons providing
11177 information about the VM state, including disk activity, in front
11178 ends which do not have other means of doing that. The overlay is
11179 designed to controlled exclusively by IDisplay. It has no locking
11180 of its own, and any changes made to it are not guaranteed to be
11181 visible until the affected portion of IFramebuffer is updated. The
11182 overlay can be created lazily the first time it is requested. This
11183 attribute can also return @c null to signal that the overlay is not
11184 implemented.
11185 </desc>
11186 </attribute>
11187
11188 <attribute name="winId" type="long long" readonly="yes">
11189 <desc>
11190 Platform-dependent identifier of the window where context of this
11191 frame buffer is drawn, or zero if there's no such window.
11192 </desc>
11193 </attribute>
11194
11195 <method name="lock">
11196 <desc>
11197 Locks the frame buffer.
11198 Gets called by the IDisplay object where this frame buffer is
11199 bound to.
11200 </desc>
11201 </method>
11202
11203 <method name="unlock">
11204 <desc>
11205 Unlocks the frame buffer.
11206 Gets called by the IDisplay object where this frame buffer is
11207 bound to.
11208 </desc>
11209 </method>
11210
11211 <method name="notifyUpdate">
11212 <desc>
11213 Informs about an update.
11214 Gets called by the display object where this buffer is
11215 registered.
11216 </desc>
11217 <param name="x" type="unsigned long" dir="in"/>
11218 <param name="y" type="unsigned long" dir="in"/>
11219 <param name="width" type="unsigned long" dir="in"/>
11220 <param name="height" type="unsigned long" dir="in"/>
11221 </method>
11222
11223 <method name="requestResize">
11224 <desc>
11225 Requests a size and pixel format change.
11226
11227 There are two modes of working with the video buffer of the virtual
11228 machine. The <i>indirect</i> mode implies that the IFramebuffer
11229 implementation allocates a memory buffer for the requested display mode
11230 and provides it to the virtual machine. In <i>direct</i> mode, the
11231 IFramebuffer implementation uses the memory buffer allocated and owned
11232 by the virtual machine. This buffer represents the video memory of the
11233 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
11234 usually faster because the implementation gets a raw pointer to the
11235 guest VRAM buffer which it can directly use for visualizing the contents
11236 of the virtual display, as opposed to the indirect mode where the
11237 contents of guest VRAM are copied to the memory buffer provided by
11238 the implementation every time a display update occurs.
11239
11240 It is important to note that the direct mode is really fast only when
11241 the implementation uses the given guest VRAM buffer directly, for
11242 example, by blitting it to the window representing the virtual machine's
11243 display, which saves at least one copy operation comparing to the
11244 indirect mode. However, using the guest VRAM buffer directly is not
11245 always possible: the format and the color depth of this buffer may be
11246 not supported by the target window, or it may be unknown (opaque) as in
11247 case of text or non-linear multi-plane VGA video modes. In this case,
11248 the indirect mode (that is always available) should be used as a
11249 fallback: when the guest VRAM contents are copied to the
11250 implementation-provided memory buffer, color and format conversion is
11251 done automatically by the underlying code.
11252
11253 The @a pixelFormat parameter defines whether the direct mode is
11254 available or not. If @a pixelFormat is <link
11255 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
11256 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
11257 @a bytesPerLine parameters must be ignored and the implementation must use
11258 the indirect mode (where it provides its own buffer in one of the
11259 supported formats). In all other cases, @a pixelFormat together with
11260 @a bitsPerPixel and @a bytesPerLine define the format of the video memory
11261 buffer pointed to by the @a VRAM parameter and the implementation is
11262 free to choose which mode to use. To indicate that this frame buffer uses
11263 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
11264 attribute must return @c true and <link to="#address"/> must
11265 return exactly the same address that is passed in the @a VRAM parameter
11266 of this method; otherwise it is assumed that the indirect strategy is
11267 chosen.
11268
11269 The @a width and @a height parameters represent the size of the
11270 requested display mode in both modes. In case of indirect mode, the
11271 provided memory buffer should be big enough to store data of the given
11272 display mode. In case of direct mode, it is guaranteed that the given
11273 @a VRAM buffer contains enough space to represent the display mode of the
11274 given size. Note that this frame buffer's <link to="#width"/> and <link
11275 to="#height"/> attributes must return exactly the same values as
11276 passed to this method after the resize is completed (see below).
11277
11278 The @a finished output parameter determines if the implementation has
11279 finished resizing the frame buffer or not. If, for some reason, the
11280 resize cannot be finished immediately during this call, @a finished
11281 must be set to @c false, and the implementation must call
11282 <link to="IDisplay::resizeCompleted"/> after it has returned from
11283 this method as soon as possible. If @a finished is @c false, the
11284 machine will not call any frame buffer methods until
11285 <link to="IDisplay::resizeCompleted"/> is called.
11286
11287 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
11288 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
11289 this frame buffer must return exactly the same values as specified in the
11290 parameters of this method, after the resize is completed. If the
11291 indirect mode is chosen, these attributes must return values describing
11292 the format of the implementation's own memory buffer <link
11293 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
11294 value must always correlate with <link to="#pixelFormat"/>. Note that
11295 the <link to="#pixelFormat"/> attribute must never return <link
11296 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
11297
11298 <note>
11299 This method is called by the IDisplay object under the
11300 <link to="#lock"/> provided by this IFramebuffer
11301 implementation. If this method returns @c false in @a finished, then
11302 this lock is not released until
11303 <link to="IDisplay::resizeCompleted"/> is called.
11304 </note>
11305 </desc>
11306 <param name="screenId" type="unsigned long" dir="in">
11307 <desc>
11308 Logical screen number. Must be used in the corresponding call to
11309 <link to="IDisplay::resizeCompleted"/> if this call is made.
11310 </desc>
11311 </param>
11312 <param name="pixelFormat" type="unsigned long" dir="in">
11313 <desc>
11314 Pixel format of the memory buffer pointed to by @a VRAM.
11315 See also <link to="FramebufferPixelFormat"/>.
11316 </desc>
11317 </param>
11318 <param name="VRAM" type="octet" mod="ptr" dir="in">
11319 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
11320 </param>
11321 <param name="bitsPerPixel" type="unsigned long" dir="in">
11322 <desc>Color depth, bits per pixel.</desc>
11323 </param>
11324 <param name="bytesPerLine" type="unsigned long" dir="in">
11325 <desc>Size of one scan line, in bytes.</desc>
11326 </param>
11327 <param name="width" type="unsigned long" dir="in">
11328 <desc>Width of the guest display, in pixels.</desc>
11329 </param>
11330 <param name="height" type="unsigned long" dir="in">
11331 <desc>Height of the guest display, in pixels.</desc>
11332 </param>
11333 <param name="finished" type="boolean" dir="return">
11334 <desc>
11335 Can the VM start using the new frame buffer immediately
11336 after this method returns or it should wait for
11337 <link to="IDisplay::resizeCompleted"/>.
11338 </desc>
11339 </param>
11340 </method>
11341
11342 <method name="videoModeSupported">
11343 <desc>
11344 Returns whether the frame buffer implementation is willing to
11345 support a given video mode. In case it is not able to render
11346 the video mode (or for some reason not willing), it should
11347 return @c false. Usually this method is called when the guest
11348 asks the VMM device whether a given video mode is supported
11349 so the information returned is directly exposed to the guest.
11350 It is important that this method returns very quickly.
11351 </desc>
11352 <param name="width" type="unsigned long" dir="in"/>
11353 <param name="height" type="unsigned long" dir="in"/>
11354 <param name="bpp" type="unsigned long" dir="in"/>
11355 <param name="supported" type="boolean" dir="return"/>
11356 </method>
11357
11358 <method name="getVisibleRegion">
11359 <desc>
11360 Returns the visible region of this frame buffer.
11361
11362 If the @a rectangles parameter is @c null then the value of the
11363 @a count parameter is ignored and the number of elements necessary to
11364 describe the current visible region is returned in @a countCopied.
11365
11366 If @a rectangles is not @c null but @a count is less
11367 than the required number of elements to store region data, the method
11368 will report a failure. If @a count is equal or greater than the
11369 required number of elements, then the actual number of elements copied
11370 to the provided array will be returned in @a countCopied.
11371
11372 <note>
11373 The address of the provided array must be in the process space of
11374 this IFramebuffer object.
11375 </note>
11376 <note>
11377 Method not yet implemented.
11378 </note>
11379 </desc>
11380 <param name="rectangles" type="octet" mod="ptr" dir="in">
11381 <desc>Pointer to the @c RTRECT array to receive region data.</desc>
11382 </param>
11383 <param name="count" type="unsigned long" dir="in">
11384 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
11385 </param>
11386 <param name="countCopied" type="unsigned long" dir="return">
11387 <desc>Number of elements copied to the @a rectangles array.</desc>
11388 </param>
11389 </method>
11390
11391 <method name="setVisibleRegion">
11392 <desc>
11393 Suggests a new visible region to this frame buffer. This region
11394 represents the area of the VM display which is a union of regions of
11395 all top-level windows of the guest operating system running inside the
11396 VM (if the Guest Additions for this system support this
11397 functionality). This information may be used by the frontends to
11398 implement the seamless desktop integration feature.
11399
11400 <note>
11401 The address of the provided array must be in the process space of
11402 this IFramebuffer object.
11403 </note>
11404 <note>
11405 The IFramebuffer implementation must make a copy of the provided
11406 array of rectangles.
11407 </note>
11408 <note>
11409 Method not yet implemented.
11410 </note>
11411 </desc>
11412 <param name="rectangles" type="octet" mod="ptr" dir="in">
11413 <desc>Pointer to the @c RTRECT array.</desc>
11414 </param>
11415 <param name="count" type="unsigned long" dir="in">
11416 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
11417 </param>
11418 </method>
11419
11420 <method name="processVHWACommand">
11421 <desc>
11422 Posts a Video HW Acceleration Command to the frame buffer for processing.
11423 The commands used for 2D video acceleration (DDraw surface creation/destroying, blitting, scaling, color conversion, overlaying, etc.)
11424 are posted from quest to the host to be processed by the host hardware.
11425
11426 <note>
11427 The address of the provided command must be in the process space of
11428 this IFramebuffer object.
11429 </note>
11430 </desc>
11431
11432 <param name="command" type="octet" mod="ptr" dir="in">
11433 <desc>Pointer to VBOXVHWACMD containing the command to execute.</desc>
11434 </param>
11435 </method>
11436
11437 </interface>
11438
11439 <interface
11440 name="IFramebufferOverlay" extends="IFramebuffer"
11441 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
11442 wsmap="suppress"
11443 >
11444 <desc>
11445 The IFramebufferOverlay interface represents an alpha blended overlay
11446 for displaying status icons above an IFramebuffer. It is always created
11447 not visible, so that it must be explicitly shown. It only covers a
11448 portion of the IFramebuffer, determined by its width, height and
11449 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
11450 that order) format, and may be written to directly. Do re-read the
11451 width though, after setting it, as it may be adjusted (increased) to
11452 make it more suitable for the front end.
11453 </desc>
11454 <attribute name="x" type="unsigned long" readonly="yes">
11455 <desc>X position of the overlay, relative to the frame buffer.</desc>
11456 </attribute>
11457
11458 <attribute name="y" type="unsigned long" readonly="yes">
11459 <desc>Y position of the overlay, relative to the frame buffer.</desc>
11460 </attribute>
11461
11462 <attribute name="visible" type="boolean" readonly="no">
11463 <desc>
11464 Whether the overlay is currently visible.
11465 </desc>
11466 </attribute>
11467
11468 <attribute name="alpha" type="unsigned long" readonly="no">
11469 <desc>
11470 The global alpha value for the overlay. This may or may not be
11471 supported by a given front end.
11472 </desc>
11473 </attribute>
11474
11475 <method name="move">
11476 <desc>
11477 Changes the overlay's position relative to the IFramebuffer.
11478 </desc>
11479 <param name="x" type="unsigned long" dir="in"/>
11480 <param name="y" type="unsigned long" dir="in"/>
11481 </method>
11482
11483 </interface>
11484
11485 <interface
11486 name="IDisplay" extends="$unknown"
11487 uuid="09EED313-CD56-4D06-BD56-FAC0F716B5DD"
11488 wsmap="managed"
11489 >
11490 <desc>
11491 The IDisplay interface represents the virtual machine's display.
11492
11493 The object implementing this interface is contained in each
11494 <link to="IConsole::display"/> attribute and represents the visual
11495 output of the virtual machine.
11496
11497 The virtual display supports pluggable output targets represented by the
11498 IFramebuffer interface. Examples of the output target are a window on
11499 the host computer or an RDP session's display on a remote computer.
11500 </desc>
11501 <method name="getScreenResolution">
11502 <desc>Queries display width, height and color depth for given screen.</desc>
11503 <param name="screenId" type="unsigned long" dir="in"/>
11504 <param name="width" type="unsigned long" dir="out"/>
11505 <param name="height" type="unsigned long" dir="out"/>
11506 <param name="bitsPerPixel" type="unsigned long" dir="out"/>
11507 </method>
11508
11509 <method name="setFramebuffer">
11510 <desc>
11511 Sets the framebuffer for given screen.
11512 </desc>
11513 <param name="screenId" type="unsigned long" dir="in"/>
11514 <param name="framebuffer" type="IFramebuffer" dir="in"/>
11515 </method>
11516
11517 <method name="getFramebuffer">
11518 <desc>
11519 Queries the framebuffer for given screen.
11520 </desc>
11521 <param name="screenId" type="unsigned long" dir="in"/>
11522 <param name="framebuffer" type="IFramebuffer" dir="out"/>
11523 <param name="xOrigin" type="long" dir="out"/>
11524 <param name="yOrigin" type="long" dir="out"/>
11525 </method>
11526
11527 <method name="setVideoModeHint">
11528 <desc>
11529 Asks VirtualBox to request the given video mode from
11530 the guest. This is just a hint and it cannot be guaranteed
11531 that the requested resolution will be used. Guest Additions
11532 are required for the request to be seen by guests. The caller
11533 should issue the request and wait for a resolution change and
11534 after a timeout retry.
11535
11536 Specifying @c 0 for either @a width, @a height or @a bitsPerPixel
11537 parameters means that the corresponding values should be taken from the
11538 current video mode (i.e. left unchanged).
11539
11540 If the guest OS supports multi-monitor configuration then the @a display
11541 parameter specifies the number of the guest display to send the hint to:
11542 @c 0 is the primary display, @c 1 is the first secondary and
11543 so on. If the multi-monitor configuration is not supported, @a display
11544 must be @c 0.
11545
11546 <result name="E_INVALIDARG">
11547 The @a display is not associated with any monitor.
11548 </result>
11549
11550 </desc>
11551 <param name="width" type="unsigned long" dir="in"/>
11552 <param name="height" type="unsigned long" dir="in"/>
11553 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
11554 <param name="display" type="unsigned long" dir="in"/>
11555 </method>
11556
11557 <method name="setSeamlessMode">
11558 <desc>
11559 Enables or disables seamless guest display rendering (seamless desktop
11560 integration) mode.
11561 <note>
11562 Calling this method has no effect if <link
11563 to="IGuest::getFacilityStatus"/> with facility <link to="AdditionsFacilityType::Seamless"/>
11564 does not return <link to="AdditionsFacilityStatus::Active"/>.
11565 </note>
11566 </desc>
11567 <param name="enabled" type="boolean" dir="in"/>
11568 </method>
11569
11570 <method name="takeScreenShot">
11571 <desc>
11572 Takes a screen shot of the requested size and copies it to the
11573 32-bpp buffer allocated by the caller and pointed to by @a address.
11574 A pixel consists of 4 bytes in order: B, G, R, 0.
11575
11576 <note>This API can be used only by the COM/XPCOM C++ API as it
11577 requires pointer support. Use <link to="#takeScreenShotToArray" />
11578 with other language bindings.
11579 </note>
11580
11581 <result name="E_NOTIMPL">
11582 Feature not implemented.
11583 </result>
11584 <result name="VBOX_E_IPRT_ERROR">
11585 Could not take a screenshot.
11586 </result>
11587
11588 </desc>
11589 <param name="screenId" type="unsigned long" dir="in"/>
11590 <param name="address" type="octet" mod="ptr" dir="in"/>
11591 <param name="width" type="unsigned long" dir="in"/>
11592 <param name="height" type="unsigned long" dir="in"/>
11593 </method>
11594
11595 <method name="takeScreenShotToArray">
11596 <desc>
11597 Takes a guest screen shot of the requested size and returns it as
11598 an array of bytes in uncompressed 32-bit RGBA format.
11599 A pixel consists of 4 bytes in order: R, G, B, 0xFF.
11600
11601 This API is slow, but could be the only option to get guest screenshot
11602 for scriptable languages not allowed to manipulate with addresses
11603 directly.
11604
11605 <result name="E_NOTIMPL">
11606 Feature not implemented.
11607 </result>
11608 <result name="VBOX_E_IPRT_ERROR">
11609 Could not take a screenshot.
11610 </result>
11611 </desc>
11612 <param name="screenId" type="unsigned long" dir="in">
11613 <desc>
11614 Monitor to take screenshot from.
11615 </desc>
11616 </param>
11617 <param name="width" type="unsigned long" dir="in">
11618 <desc>
11619 Desired image width.
11620 </desc>
11621 </param>
11622 <param name="height" type="unsigned long" dir="in">
11623 <desc>
11624 Desired image height.
11625 </desc>
11626 </param>
11627 <param name="screenData" type="octet" dir="return" safearray="yes">
11628 <desc>
11629 Array with resulting screen data.
11630 </desc>
11631 </param>
11632 </method>
11633
11634 <method name="takeScreenShotPNGToArray">
11635 <desc>
11636 Takes a guest screen shot of the requested size and returns it as
11637 PNG image in array.
11638
11639 <result name="E_NOTIMPL">
11640 Feature not implemented.
11641 </result>
11642 <result name="VBOX_E_IPRT_ERROR">
11643 Could not take a screenshot.
11644 </result>
11645 </desc>
11646 <param name="screenId" type="unsigned long" dir="in">
11647 <desc>
11648 Monitor to take the screenshot from.
11649 </desc>
11650 </param>
11651 <param name="width" type="unsigned long" dir="in">
11652 <desc>
11653 Desired image width.
11654 </desc>
11655 </param>
11656 <param name="height" type="unsigned long" dir="in">
11657 <desc>
11658 Desired image height.
11659 </desc>
11660 </param>
11661 <param name="screenData" type="octet" dir="return" safearray="yes">
11662 <desc>
11663 Array with resulting screen data.
11664 </desc>
11665 </param>
11666 </method>
11667
11668 <method name="drawToScreen">
11669 <desc>
11670 Draws a 32-bpp image of the specified size from the given buffer
11671 to the given point on the VM display.
11672
11673 <result name="E_NOTIMPL">
11674 Feature not implemented.
11675 </result>
11676 <result name="VBOX_E_IPRT_ERROR">
11677 Could not draw to screen.
11678 </result>
11679
11680 </desc>
11681 <param name="screenId" type="unsigned long" dir="in">
11682 <desc>
11683 Monitor to take the screenshot from.
11684 </desc>
11685 </param>
11686 <param name="address" type="octet" mod="ptr" dir="in">
11687 <desc>
11688 Address to store the screenshot to
11689 </desc>
11690 </param>
11691 <param name="x" type="unsigned long" dir="in">
11692 <desc>
11693 Relative to the screen top left corner.
11694 </desc>
11695 </param>
11696 <param name="y" type="unsigned long" dir="in">
11697 <desc>
11698 Relative to the screen top left corner.
11699 </desc>
11700 </param>
11701 <param name="width" type="unsigned long" dir="in">
11702 <desc>
11703 Desired image width.
11704 </desc>
11705 </param>
11706 <param name="height" type="unsigned long" dir="in">
11707 <desc>
11708 Desired image height.
11709 </desc>
11710 </param>
11711 </method>
11712
11713 <method name="invalidateAndUpdate">
11714 <desc>
11715 Does a full invalidation of the VM display and instructs the VM
11716 to update it.
11717
11718 <result name="VBOX_E_IPRT_ERROR">
11719 Could not invalidate and update screen.
11720 </result>
11721
11722 </desc>
11723 </method>
11724
11725 <method name="resizeCompleted">
11726 <desc>
11727 Signals that a framebuffer has completed the resize operation.
11728
11729 <result name="VBOX_E_NOT_SUPPORTED">
11730 Operation only valid for external frame buffers.
11731 </result>
11732
11733 </desc>
11734 <param name="screenId" type="unsigned long" dir="in"/>
11735 </method>
11736
11737 <method name="completeVHWACommand">
11738 <desc>
11739 Signals that the Video HW Acceleration command has completed.
11740 </desc>
11741
11742 <param name="command" type="octet" mod="ptr" dir="in">
11743 <desc>Pointer to VBOXVHWACMD containing the completed command.</desc>
11744 </param>
11745 </method>
11746
11747 </interface>
11748
11749 <!--
11750 // INetworkAdapter
11751 /////////////////////////////////////////////////////////////////////////
11752 -->
11753
11754 <enum
11755 name="NetworkAttachmentType"
11756 uuid="44bce1ee-99f7-4e8e-89fc-80597fd9eeaf"
11757 >
11758 <desc>
11759 Network attachment type.
11760 </desc>
11761
11762 <const name="Null" value="0">
11763 <desc>Null value, also means "not attached".</desc>
11764 </const>
11765 <const name="NAT" value="1"/>
11766 <const name="Bridged" value="2"/>
11767 <const name="Internal" value="3"/>
11768 <const name="HostOnly" value="4"/>
11769 <const name="VDE" value="5"/>
11770 </enum>
11771
11772 <enum
11773 name="NetworkAdapterType"
11774 uuid="3c2281e4-d952-4e87-8c7d-24379cb6a81c"
11775 >
11776 <desc>
11777 Network adapter type.
11778 </desc>
11779
11780 <const name="Null" value="0">
11781 <desc>Null value (never used by the API).</desc>
11782 </const>
11783 <const name="Am79C970A" value="1">
11784 <desc>AMD PCNet-PCI II network card (Am79C970A).</desc>
11785 </const>
11786 <const name="Am79C973" value="2">
11787 <desc>AMD PCNet-FAST III network card (Am79C973).</desc>
11788 </const>
11789 <const name="I82540EM" value="3">
11790 <desc>Intel PRO/1000 MT Desktop network card (82540EM).</desc>
11791 </const>
11792 <const name="I82543GC" value="4">
11793 <desc>Intel PRO/1000 T Server network card (82543GC).</desc>
11794 </const>
11795 <const name="I82545EM" value="5">
11796 <desc>Intel PRO/1000 MT Server network card (82545EM).</desc>
11797 </const>
11798 <const name="Virtio" value="6">
11799 <desc>Virtio network device.</desc>
11800 </const>
11801 </enum>
11802
11803 <enum
11804 name="NetworkAdapterPromiscModePolicy"
11805 uuid="c963768a-376f-4c85-8d84-d8ced4b7269e"
11806 >
11807 <desc>
11808 The promiscuous mode policy of an interface.
11809 </desc>
11810
11811 <const name="Deny" value="1">
11812 <desc>Deny promiscuous mode requests.</desc>
11813 </const>
11814 <const name="AllowNetwork" value="2">
11815 <desc>
11816 Allow promicuous mode, but restrict the scope it to the internal
11817 network so that it only applies to other VMs.
11818 </desc>
11819 </const>
11820 <const name="AllowAll" value="3">
11821 <desc>
11822 Allow promicuous mode, include unrelated traffic going over the wire
11823 and internally on the host.
11824 </desc>
11825 </const>
11826 </enum>
11827
11828 <interface
11829 name="INetworkAdapter" extends="$unknown"
11830 uuid="6aa240a1-dd58-478e-92e8-aac001ce5547"
11831 wsmap="managed"
11832 >
11833 <desc>
11834 Represents a virtual network adapter that is attached to a virtual machine.
11835 Each virtual machine has a fixed number of network adapter slots with one
11836 instance of this attached to each of them. Call
11837 <link to="IMachine::getNetworkAdapter" /> to get the network adapter that
11838 is attached to a given slot in a given machine.
11839
11840 Each network adapter can be in one of five attachment modes, which are
11841 represented by the <link to="NetworkAttachmentType" /> enumeration;
11842 see the <link to="#attachmentType" /> attribute.
11843 </desc>
11844
11845 <attribute name="adapterType" type="NetworkAdapterType">
11846 <desc>
11847 Type of the virtual network adapter. Depending on this value,
11848 VirtualBox will provide a different virtual network hardware
11849 to the guest.
11850 </desc>
11851 </attribute>
11852
11853 <attribute name="slot" type="unsigned long" readonly="yes">
11854 <desc>
11855 Slot number this adapter is plugged into. Corresponds to
11856 the value you pass to <link to="IMachine::getNetworkAdapter"/>
11857 to obtain this instance.
11858 </desc>
11859 </attribute>
11860
11861 <attribute name="enabled" type="boolean">
11862 <desc>
11863 Flag whether the network adapter is present in the
11864 guest system. If disabled, the virtual guest hardware will
11865 not contain this network adapter. Can only be changed when
11866 the VM is not running.
11867 </desc>
11868 </attribute>
11869
11870 <attribute name="MACAddress" type="wstring">
11871 <desc>
11872 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
11873 it to @c null or an empty string, VirtualBox will generate a unique MAC address.
11874 </desc>
11875 </attribute>
11876
11877 <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
11878
11879 <attribute name="hostInterface" type="wstring">
11880 <desc>
11881 Name of the host network interface the VM is attached to.
11882 </desc>
11883 </attribute>
11884
11885 <attribute name="internalNetwork" type="wstring">
11886 <desc>
11887 Name of the internal network the VM is attached to.
11888 </desc>
11889 </attribute>
11890
11891 <attribute name="NATNetwork" type="wstring">
11892 <desc>
11893 Name of the NAT network the VM is attached to.
11894 </desc>
11895 </attribute>
11896
11897 <attribute name="VDENetwork" type="wstring">
11898 <desc>
11899 Name of the VDE switch the VM is attached to.
11900 </desc>
11901 </attribute>
11902
11903 <attribute name="cableConnected" type="boolean">
11904 <desc>
11905 Flag whether the adapter reports the cable as connected or not.
11906 It can be used to report offline situations to a VM.
11907 </desc>
11908 </attribute>
11909
11910 <attribute name="lineSpeed" type="unsigned long">
11911 <desc>
11912 Line speed reported by custom drivers, in units of 1 kbps.
11913 </desc>
11914 </attribute>
11915
11916 <attribute name="promiscModePolicy" type="NetworkAdapterPromiscModePolicy">
11917 <desc>
11918 The promiscuous mode policy of the network adapter when attached to an
11919 internal network, host only network or a bridge.
11920 </desc>
11921 </attribute>
11922
11923 <attribute name="traceEnabled" type="boolean">
11924 <desc>
11925 Flag whether network traffic from/to the network card should be traced.
11926 Can only be toggled when the VM is turned off.
11927 </desc>
11928 </attribute>
11929
11930 <attribute name="traceFile" type="wstring">
11931 <desc>
11932 Filename where a network trace will be stored. If not set, VBox-pid.pcap
11933 will be used.
11934 </desc>
11935 </attribute>
11936
11937 <attribute name="natDriver" type="INATEngine" readonly="yes">
11938 <desc>
11939 Points to the NAT engine which handles the network address translation
11940 for this interface. This is active only when the interface actually uses
11941 NAT (see <link to="#attachToNAT" />).
11942 </desc>
11943 </attribute>
11944
11945 <attribute name="bootPriority" type="unsigned long">
11946 <desc>
11947 Network boot priority of the adapter. Priority 1 is highest. If not set,
11948 the priority is considered to be at the lowest possible setting.
11949 </desc>
11950 </attribute>
11951
11952 <attribute name="bandwidthGroup" type="IBandwidthGroup">
11953 <desc>The bandwidth group this network adapter is assigned to.</desc>
11954 </attribute>
11955
11956 <method name="attachToNAT">
11957 <desc>
11958 Attach the network adapter to the Network Address Translation (NAT) interface.
11959 </desc>
11960 </method>
11961
11962 <method name="attachToBridgedInterface">
11963 <desc>
11964 Attach the network adapter to a bridged host interface.
11965 </desc>
11966 </method>
11967
11968 <method name="attachToInternalNetwork">
11969 <desc>
11970 Attach the network adapter to an internal network.
11971 </desc>
11972 </method>
11973
11974 <method name="attachToHostOnlyInterface">
11975 <desc>
11976 Attach the network adapter to the host-only network.
11977 </desc>
11978 </method>
11979
11980 <method name="attachToVDE">
11981 <desc>
11982 Attach the network adapter to a VDE network.
11983 </desc>
11984 </method>
11985
11986 <method name="detach">
11987 <desc>
11988 Detach the network adapter
11989 </desc>
11990 </method>
11991 </interface>
11992
11993
11994 <!--
11995 // ISerialPort
11996 /////////////////////////////////////////////////////////////////////////
11997 -->
11998
11999 <enum
12000 name="PortMode"
12001 uuid="533b5fe3-0185-4197-86a7-17e37dd39d76"
12002 >
12003 <desc>
12004 The PortMode enumeration represents possible communication modes for
12005 the virtual serial port device.
12006 </desc>
12007
12008 <const name="Disconnected" value="0">
12009 <desc>Virtual device is not attached to any real host device.</desc>
12010 </const>
12011 <const name="HostPipe" value="1">
12012 <desc>Virtual device is attached to a host pipe.</desc>
12013 </const>
12014 <const name="HostDevice" value="2">
12015 <desc>Virtual device is attached to a host device.</desc>
12016 </const>
12017 <const name="RawFile" value="3">
12018 <desc>Virtual device is attached to a raw file.</desc>
12019 </const>
12020 </enum>
12021
12022 <interface
12023 name="ISerialPort" extends="$unknown"
12024 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
12025 wsmap="managed"
12026 >
12027
12028 <desc>
12029 The ISerialPort interface represents the virtual serial port device.
12030
12031 The virtual serial port device acts like an ordinary serial port
12032 inside the virtual machine. This device communicates to the real
12033 serial port hardware in one of two modes: host pipe or host device.
12034
12035 In host pipe mode, the #path attribute specifies the path to the pipe on
12036 the host computer that represents a serial port. The #server attribute
12037 determines if this pipe is created by the virtual machine process at
12038 machine startup or it must already exist before starting machine
12039 execution.
12040
12041 In host device mode, the #path attribute specifies the name of the
12042 serial port device on the host computer.
12043
12044 There is also a third communication mode: the disconnected mode. In this
12045 mode, the guest OS running inside the virtual machine will be able to
12046 detect the serial port, but all port write operations will be discarded
12047 and all port read operations will return no data.
12048
12049 <see>IMachine::getSerialPort</see>
12050 </desc>
12051
12052 <attribute name="slot" type="unsigned long" readonly="yes">
12053 <desc>
12054 Slot number this serial port is plugged into. Corresponds to
12055 the value you pass to <link to="IMachine::getSerialPort"/>
12056 to obtain this instance.
12057 </desc>
12058 </attribute>
12059
12060 <attribute name="enabled" type="boolean">
12061 <desc>
12062 Flag whether the serial port is enabled. If disabled,
12063 the serial port will not be reported to the guest OS.
12064 </desc>
12065 </attribute>
12066
12067 <attribute name="IOBase" type="unsigned long">
12068 <desc>Base I/O address of the serial port.</desc>
12069 </attribute>
12070
12071 <attribute name="IRQ" type="unsigned long">
12072 <desc>IRQ number of the serial port.</desc>
12073 </attribute>
12074
12075 <attribute name="hostMode" type="PortMode">
12076 <desc>
12077 How is this port connected to the host.
12078 <note>
12079 Changing this attribute may fail if the conditions for
12080 <link to="#path"/> are not met.
12081 </note>
12082 </desc>
12083 </attribute>
12084
12085 <attribute name="server" type="boolean">
12086 <desc>
12087 Flag whether this serial port acts as a server (creates a new pipe on
12088 the host) or as a client (uses the existing pipe). This attribute is
12089 used only when <link to="#hostMode"/> is PortMode_HostPipe.
12090 </desc>
12091 </attribute>
12092
12093 <attribute name="path" type="wstring">
12094 <desc>
12095 Path to the serial port's pipe on the host when <link to="ISerialPort::hostMode"/> is
12096 PortMode_HostPipe, or the host serial device name when
12097 <link to="ISerialPort::hostMode"/> is PortMode_HostDevice. For both
12098 cases, setting a @c null or empty string as the attribute's value
12099 is an error. Otherwise, the value of this property is ignored.
12100 </desc>
12101 </attribute>
12102
12103 </interface>
12104
12105 <!--
12106 // IParallelPort
12107 /////////////////////////////////////////////////////////////////////////
12108 -->
12109
12110 <interface
12111 name="IParallelPort" extends="$unknown"
12112 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
12113 wsmap="managed"
12114 >
12115
12116 <desc>
12117 The IParallelPort interface represents the virtual parallel port device.
12118
12119 The virtual parallel port device acts like an ordinary parallel port
12120 inside the virtual machine. This device communicates to the real
12121 parallel port hardware using the name of the parallel device on the host
12122 computer specified in the #path attribute.
12123
12124 Each virtual parallel port device is assigned a base I/O address and an
12125 IRQ number that will be reported to the guest operating system and used
12126 to operate the given parallel port from within the virtual machine.
12127
12128 <see>IMachine::getParallelPort</see>
12129 </desc>
12130
12131 <attribute name="slot" type="unsigned long" readonly="yes">
12132 <desc>
12133 Slot number this parallel port is plugged into. Corresponds to
12134 the value you pass to <link to="IMachine::getParallelPort"/>
12135 to obtain this instance.
12136 </desc>
12137 </attribute>
12138
12139 <attribute name="enabled" type="boolean">
12140 <desc>
12141 Flag whether the parallel port is enabled. If disabled,
12142 the parallel port will not be reported to the guest OS.
12143 </desc>
12144 </attribute>
12145
12146 <attribute name="IOBase" type="unsigned long">
12147 <desc>Base I/O address of the parallel port.</desc>
12148 </attribute>
12149
12150 <attribute name="IRQ" type="unsigned long">
12151 <desc>IRQ number of the parallel port.</desc>
12152 </attribute>
12153
12154 <attribute name="path" type="wstring">
12155 <desc>
12156 Host parallel device name. If this parallel port is enabled, setting a
12157 @c null or an empty string as this attribute's value will result into
12158 an error.
12159 </desc>
12160 </attribute>
12161
12162 </interface>
12163
12164
12165 <!--
12166 // IMachineDebugger
12167 /////////////////////////////////////////////////////////////////////////
12168 -->
12169
12170 <interface
12171 name="IMachineDebugger" extends="$unknown"
12172 uuid="1bfd2fa9-0d91-44d3-9515-368dcbb3eb4d"
12173 wsmap="suppress"
12174 >
12175 <method name="dumpGuestCore">
12176 <desc>
12177 Takes a core dump of the guest.
12178
12179 See include/VBox/dbgfcorefmt.h for details on the file format.
12180 </desc>
12181 <param name="filename" type="wstring" dir="in">
12182 <desc>
12183 The name of the output file. The file must not exist.
12184 </desc>
12185 </param>
12186 <param name="compression" type="wstring" dir="in">
12187 <desc>
12188 Reserved for future compression method indicator.
12189 </desc>
12190 </param>
12191 </method>
12192
12193 <method name="dumpHostProcessCore">
12194 <desc>
12195 Takes a core dump of the VM process on the host.
12196
12197 This feature is not implemented in the 4.0.0 release but it may show up
12198 in a dot release.
12199 </desc>
12200 <param name="filename" type="wstring" dir="in">
12201 <desc>
12202 The name of the output file. The file must not exist.
12203 </desc>
12204 </param>
12205 <param name="compression" type="wstring" dir="in">
12206 <desc>
12207 Reserved for future compression method indicator.
12208 </desc>
12209 </param>
12210 </method>
12211
12212 <method name="info">
12213 <desc>
12214 Interfaces with the info dumpers (DBGFInfo).
12215
12216 This feature is not implemented in the 4.0.0 release but it may show up
12217 in a dot release.
12218 </desc>
12219 <param name="name" type="wstring" dir="in">
12220 <desc>
12221 The name of the info item.
12222 </desc>
12223 </param>
12224 <param name="args" type="wstring" dir="in">
12225 <desc>
12226 Arguments to the info dumper.
12227 </desc>
12228 </param>
12229 <param name="info" type="wstring" dir="return">
12230 <desc>
12231 The into string.
12232 </desc>
12233 </param>
12234 </method>
12235
12236 <method name="injectNMI">
12237 <desc>
12238 Inject an NMI into a running VT-x/AMD-V VM.
12239 </desc>
12240 </method>
12241
12242 <method name="modifyLogGroups">
12243 <desc>
12244 Modifies the group settings of the debug logger.
12245
12246 This feature is not implemented in the 4.0.0 release but may show up
12247 in a dot release.
12248 </desc>
12249 <param name="settings" type="wstring" dir="in">
12250 <desc>The group settings string. See iprt/log.h for details.</desc>
12251 </param>
12252 </method>
12253
12254 <method name="modifyLogFlags">
12255 <desc>
12256 Modifies the debug logger flags.
12257
12258 This feature is not implemented in the 4.0.0 release but may show up
12259 in a dot release.
12260 </desc>
12261 <param name="settings" type="wstring" dir="in">
12262 <desc>The flags settings string. See iprt/log.h for details.</desc>
12263 </param>
12264 </method>
12265
12266 <method name="modifyLogDestinations">
12267 <desc>
12268 Modifies the debug logger destinations.
12269
12270 This feature is not implemented in the 4.0.0 release but may show up
12271 in a dot release.
12272 </desc>
12273 <param name="settings" type="wstring" dir="in">
12274 <desc>The destination settings string. See iprt/log.h for details.</desc>
12275 </param>
12276 </method>
12277
12278 <method name="readPhysicalMemory">
12279 <desc>
12280 Reads guest physical memory, no side effects (MMIO++).
12281
12282 This feature is not implemented in the 4.0.0 release but may show up
12283 in a dot release.
12284 </desc>
12285 <param name="address" type="long long" dir="in">
12286 <desc>The guest physical address.</desc>
12287 </param>
12288 <param name="size" type="unsigned long" dir="in">
12289 <desc>The number of bytes to read.</desc>
12290 </param>
12291 <param name="bytes" type="octet" safearray="yes" dir="return">
12292 <desc>The bytes read.</desc>
12293 </param>
12294 </method>
12295
12296 <method name="writePhysicalMemory">
12297 <desc>
12298 Writes guest physical memory, access handles (MMIO++) are ignored.
12299
12300 This feature is not implemented in the 4.0.0 release but may show up
12301 in a dot release.
12302 </desc>
12303 <param name="address" type="long long" dir="in">
12304 <desc>The guest physical address.</desc>
12305 </param>
12306 <param name="size" type="unsigned long" dir="in">
12307 <desc>The number of bytes to read.</desc>
12308 </param>
12309 <param name="bytes" type="octet" safearray="yes" dir="in">
12310 <desc>The bytes to write.</desc>
12311 </param>
12312 </method>
12313
12314 <method name="readVirtualMemory">
12315 <desc>
12316 Reads guest virtual memory, no side effects (MMIO++).
12317
12318 This feature is not implemented in the 4.0.0 release but may show up
12319 in a dot release.
12320 </desc>
12321 <param name="cpuId" type="unsigned long" dir="in">
12322 <desc>The identifier of the Virtual CPU.</desc>
12323 </param>
12324 <param name="address" type="long long" dir="in">
12325 <desc>The guest virtual address.</desc>
12326 </param>
12327 <param name="size" type="unsigned long" dir="in">
12328 <desc>The number of bytes to read.</desc>
12329 </param>
12330 <param name="bytes" type="octet" safearray="yes" dir="return">
12331 <desc>The bytes read.</desc>
12332 </param>
12333 </method>
12334
12335 <method name="writeVirtualMemory">
12336 <desc>
12337 Writes guest virtual memory, access handles (MMIO++) are ignored.
12338
12339 This feature is not implemented in the 4.0.0 release but may show up
12340 in a dot release.
12341 </desc>
12342 <param name="cpuId" type="unsigned long" dir="in">
12343 <desc>The identifier of the Virtual CPU.</desc>
12344 </param>
12345 <param name="address" type="long long" dir="in">
12346 <desc>The guest virtual address.</desc>
12347 </param>
12348 <param name="size" type="unsigned long" dir="in">
12349 <desc>The number of bytes to read.</desc>
12350 </param>
12351 <param name="bytes" type="octet" safearray="yes" dir="in">
12352 <desc>The bytes to write.</desc>
12353 </param>
12354 </method>
12355
12356 <method name="detectOS">
12357 <desc>
12358 Tries to (re-)detect the guest OS kernel.
12359
12360 This feature is not implemented in the 4.0.0 release but may show up
12361 in a dot release.
12362 </desc>
12363 <param name="os" type="wstring" dir="return">
12364 <desc>
12365 The detected OS kernel on success.
12366 </desc>
12367 </param>
12368 </method>
12369
12370 <method name="getRegister">
12371 <desc>
12372 Gets one register.
12373
12374 This feature is not implemented in the 4.0.0 release but may show up
12375 in a dot release.
12376 </desc>
12377 <param name="cpuId" type="unsigned long" dir="in">
12378 <desc>The identifier of the Virtual CPU.</desc>
12379 </param>
12380 <param name="name" type="wstring" dir="in">
12381 <desc>The register name, case is ignored.</desc>
12382 </param>
12383 <param name="value" type="wstring" dir="return">
12384 <desc>
12385 The register value. This is usually a hex value (always 0x prefixed)
12386 but other format may be used for floating point registers (TBD).
12387 </desc>
12388 </param>
12389 </method>
12390
12391 <method name="getRegisters">
12392 <desc>
12393 Gets all the registers for the given CPU.
12394
12395 This feature is not implemented in the 4.0.0 release but may show up
12396 in a dot release.
12397 </desc>
12398 <param name="cpuId" type="unsigned long" dir="in">
12399 <desc>The identifier of the Virtual CPU.</desc>
12400 </param>
12401 <param name="names" type="wstring" dir="out" safearray="yes">
12402 <desc>Array containing the lowercase register names.</desc>
12403 </param>
12404 <param name="values" type="wstring" dir="out" safearray="yes">
12405 <desc>
12406 Array paralell to the names holding the register values as if the
12407 register was returned by <link to="IMachineDebugger::getRegister"/>.
12408 </desc>
12409 </param>
12410 </method>
12411
12412 <method name="setRegister">
12413 <desc>
12414 Gets one register.
12415
12416 This feature is not implemented in the 4.0.0 release but may show up
12417 in a dot release.
12418 </desc>
12419 <param name="cpuId" type="unsigned long" dir="in">
12420 <desc>The identifier of the Virtual CPU.</desc>
12421 </param>
12422 <param name="name" type="wstring" dir="in">
12423 <desc>The register name, case is ignored.</desc>
12424 </param>
12425 <param name="value" type="wstring" dir="in">
12426 <desc>
12427 The new register value. Hexadecimal, decimal and octal formattings
12428 are supported in addition to any special formattings returned by
12429 the getters.
12430 </desc>
12431 </param>
12432 </method>
12433
12434 <method name="setRegisters">
12435 <desc>
12436 Sets zero or more registers atomically.
12437
12438 This feature is not implemented in the 4.0.0 release but may show up
12439 in a dot release.
12440 </desc>
12441 <param name="cpuId" type="unsigned long" dir="in">
12442 <desc>The identifier of the Virtual CPU.</desc>
12443 </param>
12444 <param name="names" type="wstring" dir="in" safearray="yes">
12445 <desc>Array containing the register names, case ignored.</desc>
12446 </param>
12447 <param name="values" type="wstring" dir="in" safearray="yes">
12448 <desc>
12449 Array paralell to the names holding the register values. See
12450 <link to="IMachineDebugger::setRegister"/> for formatting
12451 guidelines.
12452 </desc>
12453 </param>
12454 </method>
12455
12456 <method name="dumpGuestStack">
12457 <desc>
12458 Produce a simple stack dump using the current guest state.
12459
12460 This feature is not implemented in the 4.0.0 release but may show up
12461 in a dot release.
12462 </desc>
12463 <param name="cpuId" type="unsigned long" dir="in">
12464 <desc>The identifier of the Virtual CPU.</desc>
12465 </param>
12466 <param name="stack" type="wstring" dir="return">
12467 <desc>String containing the formatted stack dump.</desc>
12468 </param>
12469 </method>
12470
12471 <method name="resetStats">
12472 <desc>
12473 Reset VM statistics.
12474 </desc>
12475 <param name="pattern" type="wstring" dir="in">
12476 <desc>The selection pattern. A bit similar to filename globbing.</desc>
12477 </param>
12478 </method>
12479
12480 <method name="dumpStats">
12481 <desc>
12482 Dumps VM statistics.
12483 </desc>
12484 <param name="pattern" type="wstring" dir="in">
12485 <desc>The selection pattern. A bit similar to filename globbing.</desc>
12486 </param>
12487 </method>
12488
12489 <method name="getStats">
12490 <desc>
12491 Get the VM statistics in a XMLish format.
12492 </desc>
12493 <param name="pattern" type="wstring" dir="in">
12494 <desc>The selection pattern. A bit similar to filename globbing.</desc>
12495 </param>
12496 <param name="withDescriptions" type="boolean" dir="in">
12497 <desc>Whether to include the descriptions.</desc>
12498 </param>
12499 <param name="stats" type="wstring" dir="out">
12500 <desc>The XML document containing the statistics.</desc>
12501 </param>
12502 </method>
12503
12504 <attribute name="singlestep" type="boolean">
12505 <desc>Switch for enabling singlestepping.</desc>
12506 </attribute>
12507
12508 <attribute name="recompileUser" type="boolean">
12509 <desc>Switch for forcing code recompilation for user mode code.</desc>
12510 </attribute>
12511
12512 <attribute name="recompileSupervisor" type="boolean">
12513 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
12514 </attribute>
12515
12516 <attribute name="PATMEnabled" type="boolean">
12517 <desc>Switch for enabling and disabling the PATM component.</desc>
12518 </attribute>
12519
12520 <attribute name="CSAMEnabled" type="boolean">
12521 <desc>Switch for enabling and disabling the CSAM component.</desc>
12522 </attribute>
12523
12524 <attribute name="logEnabled" type="boolean">
12525 <desc>Switch for enabling and disabling the debug logger.</desc>
12526 </attribute>
12527
12528 <attribute name="logFlags" type="wstring" readonly="yes">
12529 <desc>The debug logger flags.</desc>
12530 </attribute>
12531
12532 <attribute name="logGroups" type="wstring" readonly="yes">
12533 <desc>The debug logger's group settings.</desc>
12534 </attribute>
12535
12536 <attribute name="logDestinations" type="wstring" readonly="yes">
12537 <desc>The debug logger's destination settings.</desc>
12538 </attribute>
12539
12540 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
12541 <desc>
12542 Flag indicating whether the VM is currently making use of CPU hardware
12543 virtualization extensions.
12544 </desc>
12545 </attribute>
12546
12547 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
12548 <desc>
12549 Flag indicating whether the VM is currently making use of the nested paging
12550 CPU hardware virtualization extension.
12551 </desc>
12552 </attribute>
12553
12554 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
12555 <desc>
12556 Flag indicating whether the VM is currently making use of the VPID
12557 VT-x extension.
12558 </desc>
12559 </attribute>
12560
12561 <attribute name="OSName" type="wstring" readonly="yes">
12562 <desc>
12563 Query the guest OS kernel name as detected by the DBGF.
12564
12565 This feature is not implemented in the 4.0.0 release but may show up
12566 in a dot release.
12567 </desc>
12568 </attribute>
12569
12570 <attribute name="OSVersion" type="wstring" readonly="yes">
12571 <desc>
12572 Query the guest OS kernel version string as detected by the DBGF.
12573
12574 This feature is not implemented in the 4.0.0 release but may show up
12575 in a dot release.
12576 </desc>
12577 </attribute>
12578
12579 <attribute name="PAEEnabled" type="boolean" readonly="yes">
12580 <desc>
12581 Flag indicating whether the VM is currently making use of the Physical
12582 Address Extension CPU feature.
12583 </desc>
12584 </attribute>
12585
12586 <attribute name="virtualTimeRate" type="unsigned long">
12587 <desc>
12588 The rate at which the virtual time runs expressed as a percentage.
12589 The accepted range is 2% to 20000%.
12590 </desc>
12591 </attribute>
12592
12593 <attribute name="VM" type="long long" readonly="yes">
12594 <desc>
12595 Gets the VM handle. This is only for internal use while
12596 we carve the details of this interface.
12597 </desc>
12598 </attribute>
12599
12600 </interface>
12601
12602 <!--
12603 // IUSBController
12604 /////////////////////////////////////////////////////////////////////////
12605 -->
12606
12607 <interface
12608 name="IUSBController" extends="$unknown"
12609 uuid="6fdcccc5-abd3-4fec-9387-2ad3914fc4a8"
12610 wsmap="managed"
12611 >
12612 <attribute name="enabled" type="boolean">
12613 <desc>
12614 Flag whether the USB controller is present in the
12615 guest system. If disabled, the virtual guest hardware will
12616 not contain any USB controller. Can only be changed when
12617 the VM is powered off.
12618 </desc>
12619 </attribute>
12620
12621 <attribute name="enabledEhci" type="boolean">
12622 <desc>
12623 Flag whether the USB EHCI controller is present in the
12624 guest system. If disabled, the virtual guest hardware will
12625 not contain a USB EHCI controller. Can only be changed when
12626 the VM is powered off.
12627 </desc>
12628 </attribute>
12629
12630 <attribute name="proxyAvailable" type="boolean" readonly="yes">
12631 <desc>
12632 Flag whether there is an USB proxy available.
12633 </desc>
12634 </attribute>
12635
12636 <attribute name="USBStandard" type="unsigned short" readonly="yes">
12637 <desc>
12638 USB standard version which the controller implements.
12639 This is a BCD which means that the major version is in the
12640 high byte and minor version is in the low byte.
12641 </desc>
12642 </attribute>
12643
12644 <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
12645 <desc>
12646 List of USB device filters associated with the machine.
12647
12648 If the machine is currently running, these filters are activated
12649 every time a new (supported) USB device is attached to the host
12650 computer that was not ignored by global filters
12651 (<link to="IHost::USBDeviceFilters"/>).
12652
12653 These filters are also activated when the machine is powered up.
12654 They are run against a list of all currently available USB
12655 devices (in states
12656 <link to="USBDeviceState_Available"/>,
12657 <link to="USBDeviceState_Busy"/>,
12658 <link to="USBDeviceState_Held"/>) that were not previously
12659 ignored by global filters.
12660
12661 If at least one filter matches the USB device in question, this
12662 device is automatically captured (attached to) the virtual USB
12663 controller of this machine.
12664
12665 <see>IUSBDeviceFilter, ::IUSBController</see>
12666 </desc>
12667 </attribute>
12668
12669 <method name="createDeviceFilter">
12670 <desc>
12671 Creates a new USB device filter. All attributes except
12672 the filter name are set to empty (any match),
12673 <i>active</i> is @c false (the filter is not active).
12674
12675 The created filter can then be added to the list of filters using
12676 <link to="#insertDeviceFilter"/>.
12677
12678 <result name="VBOX_E_INVALID_VM_STATE">
12679 The virtual machine is not mutable.
12680 </result>
12681
12682 <see>#deviceFilters</see>
12683 </desc>
12684 <param name="name" type="wstring" dir="in">
12685 <desc>
12686 Filter name. See <link to="IUSBDeviceFilter::name"/>
12687 for more info.
12688 </desc>
12689 </param>
12690 <param name="filter" type="IUSBDeviceFilter" dir="return">
12691 <desc>Created filter object.</desc>
12692 </param>
12693 </method>
12694
12695 <method name="insertDeviceFilter">
12696 <desc>
12697 Inserts the given USB device to the specified position
12698 in the list of filters.
12699
12700 Positions are numbered starting from <tt>0</tt>. If the specified
12701 position is equal to or greater than the number of elements in
12702 the list, the filter is added to the end of the collection.
12703
12704 <note>
12705 Duplicates are not allowed, so an attempt to insert a
12706 filter that is already in the collection, will return an
12707 error.
12708 </note>
12709
12710 <result name="VBOX_E_INVALID_VM_STATE">
12711 Virtual machine is not mutable.
12712 </result>
12713 <result name="E_INVALIDARG">
12714 USB device filter not created within this VirtualBox instance.
12715 </result>
12716 <result name="VBOX_E_INVALID_OBJECT_STATE">
12717 USB device filter already in list.
12718 </result>
12719
12720 <see>#deviceFilters</see>
12721 </desc>
12722 <param name="position" type="unsigned long" dir="in">
12723 <desc>Position to insert the filter to.</desc>
12724 </param>
12725 <param name="filter" type="IUSBDeviceFilter" dir="in">
12726 <desc>USB device filter to insert.</desc>
12727 </param>
12728 </method>
12729
12730 <method name="removeDeviceFilter">
12731 <desc>
12732 Removes a USB device filter from the specified position in the
12733 list of filters.
12734
12735 Positions are numbered starting from <tt>0</tt>. Specifying a
12736 position equal to or greater than the number of elements in
12737 the list will produce an error.
12738
12739 <see>#deviceFilters</see>
12740
12741 <result name="VBOX_E_INVALID_VM_STATE">
12742 Virtual machine is not mutable.
12743 </result>
12744 <result name="E_INVALIDARG">
12745 USB device filter list empty or invalid @a position.
12746 </result>
12747
12748 </desc>
12749 <param name="position" type="unsigned long" dir="in">
12750 <desc>Position to remove the filter from.</desc>
12751 </param>
12752 <param name="filter" type="IUSBDeviceFilter" dir="return">
12753 <desc>Removed USB device filter.</desc>
12754 </param>
12755 </method>
12756
12757 </interface>
12758
12759
12760 <!--
12761 // IUSBDevice
12762 /////////////////////////////////////////////////////////////////////////
12763 -->
12764
12765 <interface
12766 name="IUSBDevice" extends="$unknown"
12767 uuid="f8967b0b-4483-400f-92b5-8b675d98a85b"
12768 wsmap="managed"
12769 >
12770 <desc>
12771 The IUSBDevice interface represents a virtual USB device attached to the
12772 virtual machine.
12773
12774 A collection of objects implementing this interface is stored in the
12775 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
12776 attached to a running virtual machine's USB controller.
12777 </desc>
12778
12779 <attribute name="id" type="uuid" mod="string" readonly="yes">
12780 <desc>
12781 Unique USB device ID. This ID is built from #vendorId,
12782 #productId, #revision and #serialNumber.
12783 </desc>
12784 </attribute>
12785
12786 <attribute name="vendorId" type="unsigned short" readonly="yes">
12787 <desc>Vendor ID.</desc>
12788 </attribute>
12789
12790 <attribute name="productId" type="unsigned short" readonly="yes">
12791 <desc>Product ID.</desc>
12792 </attribute>
12793
12794 <attribute name="revision" type="unsigned short" readonly="yes">
12795 <desc>
12796 Product revision number. This is a packed BCD represented as
12797 unsigned short. The high byte is the integer part and the low
12798 byte is the decimal.
12799 </desc>
12800 </attribute>
12801
12802 <attribute name="manufacturer" type="wstring" readonly="yes">
12803 <desc>Manufacturer string.</desc>
12804 </attribute>
12805
12806 <attribute name="product" type="wstring" readonly="yes">
12807 <desc>Product string.</desc>
12808 </attribute>
12809
12810 <attribute name="serialNumber" type="wstring" readonly="yes">
12811 <desc>Serial number string.</desc>
12812 </attribute>
12813
12814 <attribute name="address" type="wstring" readonly="yes">
12815 <desc>Host specific address of the device.</desc>
12816 </attribute>
12817
12818 <attribute name="port" type="unsigned short" readonly="yes">
12819 <desc>
12820 Host USB port number the device is physically
12821 connected to.
12822 </desc>
12823 </attribute>
12824
12825 <attribute name="version" type="unsigned short" readonly="yes">
12826 <desc>
12827 The major USB version of the device - 1 or 2.
12828 </desc>
12829 </attribute>
12830
12831 <attribute name="portVersion" type="unsigned short" readonly="yes">
12832 <desc>
12833 The major USB version of the host USB port the device is
12834 physically connected to - 1 or 2. For devices not connected to
12835 anything this will have the same value as the version attribute.
12836 </desc>
12837 </attribute>
12838
12839 <attribute name="remote" type="boolean" readonly="yes">
12840 <desc>
12841 Whether the device is physically connected to a remote VRDE
12842 client or to a local host machine.
12843 </desc>
12844 </attribute>
12845
12846 </interface>
12847
12848
12849 <!--
12850 // IUSBDeviceFilter
12851 /////////////////////////////////////////////////////////////////////////
12852 -->
12853
12854 <interface
12855 name="IUSBDeviceFilter" extends="$unknown"
12856 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
12857 wsmap="managed"
12858 >
12859 <desc>
12860 The IUSBDeviceFilter interface represents an USB device filter used
12861 to perform actions on a group of USB devices.
12862
12863 This type of filters is used by running virtual machines to
12864 automatically capture selected USB devices once they are physically
12865 attached to the host computer.
12866
12867 A USB device is matched to the given device filter if and only if all
12868 attributes of the device match the corresponding attributes of the
12869 filter (that is, attributes are joined together using the logical AND
12870 operation). On the other hand, all together, filters in the list of
12871 filters carry the semantics of the logical OR operation. So if it is
12872 desirable to create a match like "this vendor id OR this product id",
12873 one needs to create two filters and specify "any match" (see below)
12874 for unused attributes.
12875
12876 All filter attributes used for matching are strings. Each string
12877 is an expression representing a set of values of the corresponding
12878 device attribute, that will match the given filter. Currently, the
12879 following filtering expressions are supported:
12880
12881 <ul>
12882 <li><i>Interval filters</i>. Used to specify valid intervals for
12883 integer device attributes (Vendor ID, Product ID and Revision).
12884 The format of the string is:
12885
12886 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
12887
12888 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
12889 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
12890 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
12891 is omitted before a dash (<tt>-</tt>), the minimum possible integer
12892 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
12893 possible integer is assumed.
12894 </li>
12895 <li><i>Boolean filters</i>. Used to specify acceptable values for
12896 boolean device attributes. The format of the string is:
12897
12898 <tt>true|false|yes|no|0|1</tt>
12899
12900 </li>
12901 <li><i>Exact match</i>. Used to specify a single value for the given
12902 device attribute. Any string that doesn't start with <tt>int:</tt>
12903 represents the exact match. String device attributes are compared to
12904 this string including case of symbols. Integer attributes are first
12905 converted to a string (see individual filter attributes) and then
12906 compared ignoring case.
12907
12908 </li>
12909 <li><i>Any match</i>. Any value of the corresponding device attribute
12910 will match the given filter. An empty or @c null string is
12911 used to construct this type of filtering expressions.
12912
12913 </li>
12914 </ul>
12915
12916 <note>
12917 On the Windows host platform, interval filters are not currently
12918 available. Also all string filter attributes
12919 (<link to="#manufacturer"/>, <link to="#product"/>,
12920 <link to="#serialNumber"/>) are ignored, so they behave as
12921 <i>any match</i> no matter what string expression is specified.
12922 </note>
12923
12924 <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
12925 </desc>
12926
12927 <attribute name="name" type="wstring">
12928 <desc>
12929 Visible name for this filter.
12930 This name is used to visually distinguish one filter from another,
12931 so it can neither be @c null nor an empty string.
12932 </desc>
12933 </attribute>
12934
12935 <attribute name="active" type="boolean">
12936 <desc>Whether this filter active or has been temporarily disabled.</desc>
12937 </attribute>
12938
12939 <attribute name="vendorId" type="wstring">
12940 <desc>
12941 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
12942 The string representation for the <i>exact matching</i>
12943 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
12944 (including leading zeroes).
12945 </desc>
12946 </attribute>
12947
12948 <attribute name="productId" type="wstring">
12949 <desc>
12950 <link to="IUSBDevice::productId">Product ID</link> filter.
12951 The string representation for the <i>exact matching</i>
12952 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
12953 (including leading zeroes).
12954 </desc>
12955 </attribute>
12956
12957 <attribute name="revision" type="wstring">
12958 <desc>
12959 <link to="IUSBDevice::productId">Product revision number</link>
12960 filter. The string representation for the <i>exact matching</i>
12961 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
12962 of the integer part of the revision, and <tt>F</tt> is the
12963 decimal digit of its fractional part (including leading and
12964 trailing zeros).
12965 Note that for interval filters, it's best to use the hexadecimal
12966 form, because the revision is stored as a 16 bit packed BCD value;
12967 so the expression <tt>int:0x0100-0x0199</tt> will match any
12968 revision from <tt>1.0</tt> to <tt>1.99</tt>.
12969 </desc>
12970 </attribute>
12971
12972 <attribute name="manufacturer" type="wstring">
12973 <desc>
12974 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
12975 </desc>
12976 </attribute>
12977
12978 <attribute name="product" type="wstring">
12979 <desc>
12980 <link to="IUSBDevice::product">Product</link> filter.
12981 </desc>
12982 </attribute>
12983
12984 <attribute name="serialNumber" type="wstring">
12985 <desc>
12986 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
12987 </desc>
12988 </attribute>
12989
12990 <attribute name="port" type="wstring">
12991 <desc>
12992 <link to="IUSBDevice::port">Host USB port</link> filter.
12993 </desc>
12994 </attribute>
12995
12996 <attribute name="remote" type="wstring">
12997 <desc>
12998 <link to="IUSBDevice::remote">Remote state</link> filter.
12999 <note>
13000 This filter makes sense only for machine USB filters,
13001 i.e. it is ignored by IHostUSBDeviceFilter objects.
13002 </note>
13003 </desc>
13004 </attribute>
13005
13006 <attribute name="maskedInterfaces" type="unsigned long">
13007 <desc>
13008 This is an advanced option for hiding one or more USB interfaces
13009 from the guest. The value is a bit mask where the bits that are set
13010 means the corresponding USB interface should be hidden, masked off
13011 if you like.
13012 This feature only works on Linux hosts.
13013 </desc>
13014 </attribute>
13015
13016 </interface>
13017
13018
13019 <!--
13020 // IHostUSBDevice
13021 /////////////////////////////////////////////////////////////////////////
13022 -->
13023
13024 <enum
13025 name="USBDeviceState"
13026 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
13027 >
13028 <desc>
13029 USB device state. This enumeration represents all possible states
13030 of the USB device physically attached to the host computer regarding
13031 its state on the host computer and availability to guest computers
13032 (all currently running virtual machines).
13033
13034 Once a supported USB device is attached to the host, global USB
13035 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
13036 either ignore the device, or put it to USBDeviceState_Held state, or do
13037 nothing. Unless the device is ignored by global filters, filters of all
13038 currently running guests (<link to="IUSBController::deviceFilters"/>) are
13039 activated that can put it to USBDeviceState_Captured state.
13040
13041 If the device was ignored by global filters, or didn't match
13042 any filters at all (including guest ones), it is handled by the host
13043 in a normal way. In this case, the device state is determined by
13044 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
13045 or USBDeviceState_Available, depending on the current device usage.
13046
13047 Besides auto-capturing based on filters, the device can be manually
13048 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
13049 state is USBDeviceState_Busy, USBDeviceState_Available or
13050 USBDeviceState_Held.
13051
13052 <note>
13053 Due to differences in USB stack implementations in Linux and Win32,
13054 states USBDeviceState_Busy and USBDeviceState_Unavailable are applicable
13055 only to the Linux version of the product. This also means that (<link
13056 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
13057 device state is USBDeviceState_Held.
13058 </note>
13059
13060 <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
13061 </desc>
13062
13063 <const name="NotSupported" value="0">
13064 <desc>
13065 Not supported by the VirtualBox server, not available to guests.
13066 </desc>
13067 </const>
13068 <const name="Unavailable" value="1">
13069 <desc>
13070 Being used by the host computer exclusively,
13071 not available to guests.
13072 </desc>
13073 </const>
13074 <const name="Busy" value="2">
13075 <desc>
13076 Being used by the host computer, potentially available to guests.
13077 </desc>
13078 </const>
13079 <const name="Available" value="3">
13080 <desc>
13081 Not used by the host computer, available to guests (the host computer
13082 can also start using the device at any time).
13083 </desc>
13084 </const>
13085 <const name="Held" value="4">
13086 <desc>
13087 Held by the VirtualBox server (ignored by the host computer),
13088 available to guests.
13089 </desc>
13090 </const>
13091 <const name="Captured" value="5">
13092 <desc>
13093 Captured by one of the guest computers, not available
13094 to anybody else.
13095 </desc>
13096 </const>
13097 </enum>
13098
13099 <interface
13100 name="IHostUSBDevice" extends="IUSBDevice"
13101 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
13102 wsmap="managed"
13103 >
13104 <desc>
13105 The IHostUSBDevice interface represents a physical USB device attached
13106 to the host computer.
13107
13108 Besides properties inherited from IUSBDevice, this interface adds the
13109 <link to="#state"/> property that holds the current state of the USB
13110 device.
13111
13112 <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
13113 </desc>
13114
13115 <attribute name="state" type="USBDeviceState" readonly="yes">
13116 <desc>
13117 Current state of the device.
13118 </desc>
13119 </attribute>
13120
13121 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
13122
13123 </interface>
13124
13125
13126 <!--
13127 // IHostUSBDeviceFilter
13128 /////////////////////////////////////////////////////////////////////////
13129 -->
13130
13131 <enum
13132 name="USBDeviceFilterAction"
13133 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
13134 >
13135 <desc>
13136 Actions for host USB device filters.
13137 <see>IHostUSBDeviceFilter, USBDeviceState</see>
13138 </desc>
13139
13140 <const name="Null" value="0">
13141 <desc>Null value (never used by the API).</desc>
13142 </const>
13143 <const name="Ignore" value="1">
13144 <desc>Ignore the matched USB device.</desc>
13145 </const>
13146 <const name="Hold" value="2">
13147 <desc>Hold the matched USB device.</desc>
13148 </const>
13149 </enum>
13150
13151 <interface
13152 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
13153 uuid="4cc70246-d74a-400f-8222-3900489c0374"
13154 wsmap="managed"
13155 >
13156 <desc>
13157 The IHostUSBDeviceFilter interface represents a global filter for a
13158 physical USB device used by the host computer. Used indirectly in
13159 <link to="IHost::USBDeviceFilters"/>.
13160
13161 Using filters of this type, the host computer determines the initial
13162 state of the USB device after it is physically attached to the
13163 host's USB controller.
13164
13165 <note>
13166 The <link to="IUSBDeviceFilter::remote"/> attribute is ignored by this type of
13167 filters, because it makes sense only for
13168 <link to="IUSBController::deviceFilters">machine USB filters</link>.
13169 </note>
13170
13171 <see>IHost::USBDeviceFilters</see>
13172 </desc>
13173
13174 <attribute name="action" type="USBDeviceFilterAction">
13175 <desc>
13176 Action performed by the host when an attached USB device
13177 matches this filter.
13178 </desc>
13179 </attribute>
13180
13181 </interface>
13182
13183 <!--
13184 // IAudioAdapter
13185 /////////////////////////////////////////////////////////////////////////
13186 -->
13187
13188 <enum
13189 name="AudioDriverType"
13190 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
13191 >
13192 <desc>
13193 Host audio driver type.
13194 </desc>
13195
13196 <const name="Null" value="0">
13197 <desc>Null value, also means "dummy audio driver".</desc>
13198 </const>
13199 <const name="WinMM" value="1">
13200 <desc>Windows multimedia (Windows hosts only).</desc>
13201 </const>
13202 <const name="OSS" value="2">
13203 <desc>Open Sound System (Linux hosts only).</desc>
13204 </const>
13205 <const name="ALSA" value="3">
13206 <desc>Advanced Linux Sound Architecture (Linux hosts only).</desc>
13207 </const>
13208 <const name="DirectSound" value="4">
13209 <desc>DirectSound (Windows hosts only).</desc>
13210 </const>
13211 <const name="CoreAudio" value="5">
13212 <desc>CoreAudio (Mac hosts only).</desc>
13213 </const>
13214 <const name="MMPM" value="6">
13215 <desc>Reserved for historical reasons.</desc>
13216 </const>
13217 <const name="Pulse" value="7">
13218 <desc>PulseAudio (Linux hosts only).</desc>
13219 </const>
13220 <const name="SolAudio" value="8">
13221 <desc>Solaris audio (Solaris hosts only).</desc>
13222 </const>
13223 </enum>
13224
13225 <enum
13226 name="AudioControllerType"
13227 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
13228 >
13229 <desc>
13230 Virtual audio controller type.
13231 </desc>
13232
13233 <const name="AC97" value="0"/>
13234 <const name="SB16" value="1"/>
13235 <const name="HDA" value="2"/>
13236 </enum>
13237
13238 <interface
13239 name="IAudioAdapter" extends="$unknown"
13240 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
13241 wsmap="managed"
13242 >
13243 <desc>
13244 The IAudioAdapter interface represents the virtual audio adapter of
13245 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
13246 </desc>
13247 <attribute name="enabled" type="boolean">
13248 <desc>
13249 Flag whether the audio adapter is present in the
13250 guest system. If disabled, the virtual guest hardware will
13251 not contain any audio adapter. Can only be changed when
13252 the VM is not running.
13253 </desc>
13254 </attribute>
13255 <attribute name="audioController" type="AudioControllerType">
13256 <desc>
13257 The audio hardware we emulate.
13258 </desc>
13259 </attribute>
13260 <attribute name="audioDriver" type="AudioDriverType">
13261 <desc>
13262 Audio driver the adapter is connected to. This setting
13263 can only be changed when the VM is not running.
13264 </desc>
13265 </attribute>
13266 </interface>
13267
13268 <enum
13269 name="AuthType"
13270 uuid="7eef6ef6-98c2-4dc2-ab35-10d2b292028d"
13271 >
13272 <desc>
13273 VirtualBox authentication type.
13274 </desc>
13275
13276 <const name="Null" value="0">
13277 <desc>Null value, also means "no authentication".</desc>
13278 </const>
13279 <const name="External" value="1"/>
13280 <const name="Guest" value="2"/>
13281 </enum>
13282
13283 <!--
13284 // IVRDEServer
13285 /////////////////////////////////////////////////////////////////////////
13286 -->
13287
13288 <interface
13289 name="IVRDEServer" extends="$unknown"
13290 uuid="be24e0db-e1d6-4d58-b85b-21053d1511b4"
13291 wsmap="managed"
13292 >
13293 <attribute name="enabled" type="boolean">
13294 <desc>VRDE server status.</desc>
13295 </attribute>
13296
13297 <attribute name="authType" type="AuthType">
13298 <desc>VRDE authentication method.</desc>
13299 </attribute>
13300
13301 <attribute name="authTimeout" type="unsigned long">
13302 <desc>Timeout for guest authentication. Milliseconds.</desc>
13303 </attribute>
13304
13305 <attribute name="allowMultiConnection" type="boolean">
13306 <desc>
13307 Flag whether multiple simultaneous connections to the VM are permitted.
13308 Note that this will be replaced by a more powerful mechanism in the future.
13309 </desc>
13310 </attribute>
13311
13312 <attribute name="reuseSingleConnection" type="boolean">
13313 <desc>
13314 Flag whether the existing connection must be dropped and a new connection
13315 must be established by the VRDE server, when a new client connects in single
13316 connection mode.
13317 </desc>
13318 </attribute>
13319
13320 <attribute name="VRDEExtPack" type="wstring">
13321 <desc>
13322 The name of Extension Pack providing VRDE for this VM. Overrides
13323 <link to="ISystemProperties::defaultVRDEExtPack"/>.
13324 </desc>
13325 </attribute>
13326
13327 <attribute name="AuthLibrary" type="wstring">
13328 <desc>
13329 Library used for authentication of RDP clients by this VM. Overrides
13330 <link to="ISystemProperties::VRDEAuthLibrary"/>.
13331 </desc>
13332 </attribute>
13333
13334 <attribute name="VRDEProperties" type="wstring" readonly="yes" safearray="yes">
13335 <desc>
13336 Array of names of properties, which are supported by this VRDE server.
13337 </desc>
13338 </attribute>
13339
13340 <method name="setVRDEProperty">
13341 <desc>
13342 Sets a VRDE specific property string.
13343
13344 If you pass @c null or empty string as a key @a value, the given @a key
13345 will be deleted.
13346
13347 </desc>
13348 <param name="key" type="wstring" dir="in">
13349 <desc>Name of the key to set.</desc>
13350 </param>
13351 <param name="value" type="wstring" dir="in">
13352 <desc>Value to assign to the key.</desc>
13353 </param>
13354 </method>
13355
13356 <method name="getVRDEProperty">
13357 <desc>
13358 Returns a VRDE specific property string.
13359
13360 If the requested data @a key does not exist, this function will
13361 succeed and return an empty string in the @a value argument.
13362
13363 </desc>
13364 <param name="key" type="wstring" dir="in">
13365 <desc>Name of the key to get.</desc>
13366 </param>
13367 <param name="value" type="wstring" dir="return">
13368 <desc>Value of the requested key.</desc>
13369 </param>
13370 </method>
13371
13372 </interface>
13373
13374
13375 <!--
13376 // ISharedFolder
13377 /////////////////////////////////////////////////////////////////////////
13378 -->
13379
13380 <interface
13381 name="ISharedFolder" extends="$unknown"
13382 uuid="8388da11-b559-4574-a5b7-2bd7acd5cef8"
13383 wsmap="struct"
13384 >
13385 <desc>
13386 The ISharedFolder interface represents a folder in the host computer's
13387 file system accessible from the guest OS running inside a virtual
13388 machine using an associated logical name.
13389
13390 There are three types of shared folders:
13391 <ul>
13392 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
13393 folders available to all virtual machines.</li>
13394 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
13395 VM-specific shared folders available to the given virtual machine at
13396 startup.</li>
13397 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
13398 VM-specific shared folders created in the session context (for
13399 example, when the virtual machine is running) and automatically
13400 discarded when the session is closed (the VM is powered off).</li>
13401 </ul>
13402
13403 Logical names of shared folders must be unique within the given scope
13404 (global, permanent or transient). However, they do not need to be unique
13405 across scopes. In this case, the definition of the shared folder in a
13406 more specific scope takes precedence over definitions in all other
13407 scopes. The order of precedence is (more specific to more general):
13408 <ol>
13409 <li>Transient definitions</li>
13410 <li>Permanent definitions</li>
13411 <li>Global definitions</li>
13412 </ol>
13413
13414 For example, if MyMachine has a shared folder named
13415 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
13416 transient shared folder named <tt>C_DRIVE</tt> (that points
13417 to <tt>C:\\\\WINDOWS</tt>) will change the definition
13418 of <tt>C_DRIVE</tt> in the guest OS so
13419 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
13420 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
13421 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
13422 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
13423 to <tt>C:\\</tt> if it still exists.
13424
13425 Note that permanent and transient shared folders of different machines
13426 are in different name spaces, so they don't overlap and don't need to
13427 have unique logical names.
13428
13429 <note>
13430 Global shared folders are not implemented in the current version of the
13431 product.
13432 </note>
13433 </desc>
13434
13435 <attribute name="name" type="wstring" readonly="yes">
13436 <desc>Logical name of the shared folder.</desc>
13437 </attribute>
13438
13439 <attribute name="hostPath" type="wstring" readonly="yes">
13440 <desc>Full path to the shared folder in the host file system.</desc>
13441 </attribute>
13442
13443 <attribute name="accessible" type="boolean" readonly="yes">
13444 <desc>
13445 Whether the folder defined by the host path is currently
13446 accessible or not.
13447 For example, the folder can be inaccessible if it is placed
13448 on the network share that is not available by the time
13449 this property is read.
13450 </desc>
13451 </attribute>
13452
13453 <attribute name="writable" type="boolean" readonly="yes">
13454 <desc>
13455 Whether the folder defined by the host path is writable or
13456 not.
13457 </desc>
13458 </attribute>
13459
13460 <attribute name="autoMount" type="boolean" readonly="yes">
13461 <desc>
13462 Whether the folder gets automatically mounted by the guest or not.
13463 </desc>
13464 </attribute>
13465
13466 <attribute name="lastAccessError" type="wstring" readonly="yes">
13467 <desc>
13468 Text message that represents the result of the last accessibility
13469 check.
13470
13471 Accessibility checks are performed each time the <link to="#accessible"/>
13472 attribute is read. An empty string is returned if the last
13473 accessibility check was successful. A non-empty string indicates a
13474 failure and should normally describe a reason of the failure (for
13475 example, a file read error).
13476 </desc>
13477 </attribute>
13478
13479 </interface>
13480
13481 <!--
13482 // ISession
13483 /////////////////////////////////////////////////////////////////////////
13484 -->
13485
13486 <interface
13487 name="IInternalSessionControl" extends="$unknown"
13488 uuid="a2fbf834-149d-41da-ae52-0dc3b0f032b3"
13489 internal="yes"
13490 wsmap="suppress"
13491 >
13492 <method name="getPID">
13493 <desc>PID of the process that has created this Session object.
13494 </desc>
13495 <param name="pid" type="unsigned long" dir="return"/>
13496 </method>
13497
13498 <method name="getRemoteConsole">
13499 <desc>
13500 Returns the console object suitable for remote control.
13501
13502 <result name="VBOX_E_INVALID_VM_STATE">
13503 Session state prevents operation.
13504 </result>
13505 <result name="VBOX_E_INVALID_OBJECT_STATE">
13506 Session type prevents operation.
13507 </result>
13508
13509 </desc>
13510 <param name="console" type="IConsole" dir="return"/>
13511 </method>
13512
13513 <method name="assignMachine">
13514 <desc>
13515 Assigns the machine object associated with this direct-type
13516 session or informs the session that it will be a remote one
13517 (if @a machine == @c null).
13518
13519 <result name="VBOX_E_INVALID_VM_STATE">
13520 Session state prevents operation.
13521 </result>
13522 <result name="VBOX_E_INVALID_OBJECT_STATE">
13523 Session type prevents operation.
13524 </result>
13525
13526 </desc>
13527 <param name="machine" type="IMachine" dir="in"/>
13528 </method>
13529
13530 <method name="assignRemoteMachine">
13531 <desc>
13532 Assigns the machine and the (remote) console object associated with
13533 this remote-type session.
13534
13535 <result name="VBOX_E_INVALID_VM_STATE">
13536 Session state prevents operation.
13537 </result>
13538
13539 </desc>
13540 <param name="machine" type="IMachine" dir="in"/>
13541 <param name="console" type="IConsole" dir="in"/>
13542 </method>
13543
13544 <method name="updateMachineState">
13545 <desc>
13546 Updates the machine state in the VM process.
13547 Must be called only in certain cases
13548 (see the method implementation).
13549
13550 <result name="VBOX_E_INVALID_VM_STATE">
13551 Session state prevents operation.
13552 </result>
13553 <result name="VBOX_E_INVALID_OBJECT_STATE">
13554 Session type prevents operation.
13555 </result>
13556
13557 </desc>
13558 <param name="aMachineState" type="MachineState" dir="in"/>
13559 </method>
13560
13561 <method name="uninitialize">
13562 <desc>
13563 Uninitializes (closes) this session. Used by VirtualBox to close
13564 the corresponding remote session when the direct session dies
13565 or gets closed.
13566
13567 <result name="VBOX_E_INVALID_VM_STATE">
13568 Session state prevents operation.
13569 </result>
13570
13571 </desc>
13572 </method>
13573
13574 <method name="onNetworkAdapterChange">
13575 <desc>
13576 Triggered when settings of a network adapter of the
13577 associated virtual machine have changed.
13578
13579 <result name="VBOX_E_INVALID_VM_STATE">
13580 Session state prevents operation.
13581 </result>
13582 <result name="VBOX_E_INVALID_OBJECT_STATE">
13583 Session type prevents operation.
13584 </result>
13585
13586 </desc>
13587 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
13588 <param name="changeAdapter" type="boolean" dir="in"/>
13589 </method>
13590
13591 <method name="onSerialPortChange">
13592 <desc>
13593 Triggered when settings of a serial port of the
13594 associated virtual machine have changed.
13595
13596 <result name="VBOX_E_INVALID_VM_STATE">
13597 Session state prevents operation.
13598 </result>
13599 <result name="VBOX_E_INVALID_OBJECT_STATE">
13600 Session type prevents operation.
13601 </result>
13602
13603 </desc>
13604 <param name="serialPort" type="ISerialPort" dir="in"/>
13605 </method>
13606
13607 <method name="onParallelPortChange">
13608 <desc>
13609 Triggered when settings of a parallel port of the
13610 associated virtual machine have changed.
13611
13612 <result name="VBOX_E_INVALID_VM_STATE">
13613 Session state prevents operation.
13614 </result>
13615 <result name="VBOX_E_INVALID_OBJECT_STATE">
13616 Session type prevents operation.
13617 </result>
13618
13619 </desc>
13620 <param name="parallelPort" type="IParallelPort" dir="in"/>
13621 </method>
13622
13623 <method name="onStorageControllerChange">
13624 <desc>
13625 Triggered when settings of a storage controller of the
13626 associated virtual machine have changed.
13627
13628 <result name="VBOX_E_INVALID_VM_STATE">
13629 Session state prevents operation.
13630 </result>
13631 <result name="VBOX_E_INVALID_OBJECT_STATE">
13632 Session type prevents operation.
13633 </result>
13634
13635 </desc>
13636 </method>
13637
13638 <method name="onMediumChange">
13639 <desc>
13640 Triggered when attached media of the
13641 associated virtual machine have changed.
13642
13643 <result name="VBOX_E_INVALID_VM_STATE">
13644 Session state prevents operation.
13645 </result>
13646 <result name="VBOX_E_INVALID_OBJECT_STATE">
13647 Session type prevents operation.
13648 </result>
13649
13650 </desc>
13651
13652 <param name="mediumAttachment" type="IMediumAttachment" dir="in"/>
13653 <param name="force" type="boolean" dir="in"/>
13654 </method>
13655
13656 <method name="onCPUChange">
13657 <desc>
13658 Notification when a CPU changes.
13659 </desc>
13660 <param name="cpu" type="unsigned long" dir="in">
13661 <desc>The CPU which changed</desc>
13662 </param>
13663 <param name="add" type="boolean" dir="in">
13664 <desc>Flag whether the CPU was added or removed</desc>
13665 </param>
13666 </method>
13667
13668 <method name="onCPUExecutionCapChange">
13669 <desc>
13670 Notification when the CPU execution cap changes.
13671 </desc>
13672 <param name="executionCap" type="unsigned long" dir="in">
13673 <desc>The new CPU execution cap value. (1-100)</desc>
13674 </param>
13675 </method>
13676
13677 <method name="onVRDEServerChange">
13678 <desc>
13679 Triggered when settings of the VRDE server object of the
13680 associated virtual machine have changed.
13681
13682 <result name="VBOX_E_INVALID_VM_STATE">
13683 Session state prevents operation.
13684 </result>
13685 <result name="VBOX_E_INVALID_OBJECT_STATE">
13686 Session type prevents operation.
13687 </result>
13688
13689 </desc>
13690 <param name="restart" type="boolean" dir="in">
13691 <desc>Flag whether the server must be restarted</desc>
13692 </param>
13693 </method>
13694
13695 <method name="onUSBControllerChange">
13696 <desc>
13697 Triggered when settings of the USB controller object of the
13698 associated virtual machine have changed.
13699
13700 <result name="VBOX_E_INVALID_VM_STATE">
13701 Session state prevents operation.
13702 </result>
13703 <result name="VBOX_E_INVALID_OBJECT_STATE">
13704 Session type prevents operation.
13705 </result>
13706
13707 </desc>
13708 </method>
13709
13710 <method name="onSharedFolderChange">
13711 <desc>
13712 Triggered when a permanent (global or machine) shared folder has been
13713 created or removed.
13714 <note>
13715 We don't pass shared folder parameters in this notification because
13716 the order in which parallel notifications are delivered is not defined,
13717 therefore it could happen that these parameters were outdated by the
13718 time of processing this notification.
13719 </note>
13720
13721 <result name="VBOX_E_INVALID_VM_STATE">
13722 Session state prevents operation.
13723 </result>
13724 <result name="VBOX_E_INVALID_OBJECT_STATE">
13725 Session type prevents operation.
13726 </result>
13727
13728 </desc>
13729 <param name="global" type="boolean" dir="in"/>
13730 </method>
13731
13732 <method name="onUSBDeviceAttach">
13733 <desc>
13734 Triggered when a request to capture a USB device (as a result
13735 of matched USB filters or direct call to
13736 <link to="IConsole::attachUSBDevice"/>) has completed.
13737 A @c null @a error object means success, otherwise it
13738 describes a failure.
13739
13740 <result name="VBOX_E_INVALID_VM_STATE">
13741 Session state prevents operation.
13742 </result>
13743 <result name="VBOX_E_INVALID_OBJECT_STATE">
13744 Session type prevents operation.
13745 </result>
13746
13747 </desc>
13748 <param name="device" type="IUSBDevice" dir="in"/>
13749 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
13750 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
13751 </method>
13752
13753 <method name="onUSBDeviceDetach">
13754 <desc>
13755 Triggered when a request to release the USB device (as a result
13756 of machine termination or direct call to
13757 <link to="IConsole::detachUSBDevice"/>) has completed.
13758 A @c null @a error object means success, otherwise it
13759 describes a failure.
13760
13761 <result name="VBOX_E_INVALID_VM_STATE">
13762 Session state prevents operation.
13763 </result>
13764 <result name="VBOX_E_INVALID_OBJECT_STATE">
13765 Session type prevents operation.
13766 </result>
13767
13768 </desc>
13769 <param name="id" type="uuid" mod="string" dir="in"/>
13770 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
13771 </method>
13772
13773 <method name="onShowWindow">
13774 <desc>
13775 Called by <link to="IMachine::canShowConsoleWindow"/> and by
13776 <link to="IMachine::showConsoleWindow"/> in order to notify
13777 console listeners
13778 <link to="ICanShowWindowEvent"/>
13779 and <link to="IShowWindowEvent"/>.
13780
13781 <result name="VBOX_E_INVALID_OBJECT_STATE">
13782 Session type prevents operation.
13783 </result>
13784
13785 </desc>
13786 <param name="check" type="boolean" dir="in"/>
13787 <param name="canShow" type="boolean" dir="out"/>
13788 <param name="winId" type="long long" dir="out"/>
13789 </method>
13790
13791 <method name="onBandwidthGroupChange">
13792 <desc>
13793 Notification when one of the bandwidth groups change.
13794 </desc>
13795 <param name="bandwidthGroup" type="IBandwidthGroup" dir="in">
13796 <desc>The bandwidth group which changed.</desc>
13797 </param>
13798 </method>
13799
13800 <method name="accessGuestProperty">
13801 <desc>
13802 Called by <link to="IMachine::getGuestProperty"/> and by
13803 <link to="IMachine::setGuestProperty"/> in order to read and
13804 modify guest properties.
13805
13806 <result name="VBOX_E_INVALID_VM_STATE">
13807 Machine session is not open.
13808 </result>
13809 <result name="VBOX_E_INVALID_OBJECT_STATE">
13810 Session type is not direct.
13811 </result>
13812
13813 </desc>
13814 <param name="name" type="wstring" dir="in"/>
13815 <param name="value" type="wstring" dir="in"/>
13816 <param name="flags" type="wstring" dir="in"/>
13817 <param name="isSetter" type="boolean" dir="in"/>
13818 <param name="retValue" type="wstring" dir="out"/>
13819 <param name="retTimestamp" type="long long" dir="out"/>
13820 <param name="retFlags" type="wstring" dir="out"/>
13821 </method>
13822
13823 <method name="enumerateGuestProperties">
13824 <desc>
13825 Return a list of the guest properties matching a set of patterns along
13826 with their values, time stamps and flags.
13827
13828 <result name="VBOX_E_INVALID_VM_STATE">
13829 Machine session is not open.
13830 </result>
13831 <result name="VBOX_E_INVALID_OBJECT_STATE">
13832 Session type is not direct.
13833 </result>
13834
13835 </desc>
13836 <param name="patterns" type="wstring" dir="in">
13837 <desc>
13838 The patterns to match the properties against as a comma-separated
13839 string. If this is empty, all properties currently set will be
13840 returned.
13841 </desc>
13842 </param>
13843 <param name="key" type="wstring" dir="out" safearray="yes">
13844 <desc>
13845 The key names of the properties returned.
13846 </desc>
13847 </param>
13848 <param name="value" type="wstring" dir="out" safearray="yes">
13849 <desc>
13850 The values of the properties returned. The array entries match the
13851 corresponding entries in the @a key array.
13852 </desc>
13853 </param>
13854 <param name="timestamp" type="long long" dir="out" safearray="yes">
13855 <desc>
13856 The time stamps of the properties returned. The array entries match
13857 the corresponding entries in the @a key array.
13858 </desc>
13859 </param>
13860 <param name="flags" type="wstring" dir="out" safearray="yes">
13861 <desc>
13862 The flags of the properties returned. The array entries match the
13863 corresponding entries in the @a key array.
13864 </desc>
13865 </param>
13866 </method>
13867
13868 <method name="onlineMergeMedium">
13869 <desc>
13870 Triggers online merging of a hard disk. Used internally when deleting
13871 a snapshot while a VM referring to the same hard disk chain is running.
13872
13873 <result name="VBOX_E_INVALID_VM_STATE">
13874 Machine session is not open.
13875 </result>
13876 <result name="VBOX_E_INVALID_OBJECT_STATE">
13877 Session type is not direct.
13878 </result>
13879
13880 </desc>
13881 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
13882 <desc>The medium attachment to identify the medium chain.</desc>
13883 </param>
13884 <param name="sourceIdx" type="unsigned long" dir="in">
13885 <desc>The index of the source image in the chain.
13886 Redundant, but drastically reduces IPC.</desc>
13887 </param>
13888 <param name="targetIdx" type="unsigned long" dir="in">
13889 <desc>The index of the target image in the chain.
13890 Redundant, but drastically reduces IPC.</desc>
13891 </param>
13892 <param name="source" type="IMedium" dir="in">
13893 <desc>Merge source medium.</desc>
13894 </param>
13895 <param name="target" type="IMedium" dir="in">
13896 <desc>Merge target medium.</desc>
13897 </param>
13898 <param name="mergeForward" type="boolean" dir="in">
13899 <desc>Merge direction.</desc>
13900 </param>
13901 <param name="parentForTarget" type="IMedium" dir="in">
13902 <desc>For forward merges: new parent for target medium.</desc>
13903 </param>
13904 <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
13905 <desc>For backward merges: list of media which need their parent UUID
13906 updated.</desc>
13907 </param>
13908 <param name="progress" type="IProgress" dir="in">
13909 <desc>
13910 Progress object for this operation.
13911 </desc>
13912 </param>
13913 </method>
13914
13915 </interface>
13916
13917 <interface
13918 name="ISession" extends="$unknown"
13919 uuid="12F4DCDB-12B2-4EC1-B7CD-DDD9F6C5BF4D"
13920 wsmap="managed"
13921 >
13922 <desc>
13923 The ISession interface represents a client process and allows for locking
13924 virtual machines (represented by IMachine objects) to prevent conflicting
13925 changes to the machine.
13926
13927 Any caller wishing to manipulate a virtual machine needs to create a session
13928 object first, which lives in its own process space. Such session objects are
13929 then associated with <link to="IMachine" /> objects living in the VirtualBox
13930 server process to coordinate such changes.
13931
13932 There are two typical scenarios in which sessions are used:
13933
13934 <ul>
13935 <li>To alter machine settings or control a running virtual machine, one
13936 needs to lock a machine for a given session (client process) by calling
13937 <link to="IMachine::lockMachine"/>.
13938
13939 Whereas multiple sessions may control a running virtual machine, only
13940 one process can obtain a write lock on the machine to prevent conflicting
13941 changes. A write lock is also needed if a process wants to actually run a
13942 virtual machine in its own context, such as the VirtualBox GUI or
13943 VBoxHeadless front-ends. They must also lock a machine for their own
13944 sessions before they are allowed to power up the virtual machine.
13945
13946 As a result, no machine settings can be altered while another process is
13947 already using it, either because that process is modifying machine settings
13948 or because the machine is running.
13949 </li>
13950 <li>
13951 To start a VM using one of the existing VirtualBox front-ends (e.g. the
13952 VirtualBox GUI or VBoxHeadless), one would use
13953 <link to="IMachine::launchVMProcess"/>, which also takes a session object
13954 as its first parameter. This session then identifies the caller and lets the
13955 caller control the started machine (for example, pause machine execution or
13956 power it down) as well as be notified about machine execution state changes.
13957 </li>
13958 </ul>
13959
13960 How sessions objects are created in a client process depends on whether you use
13961 the Main API via COM or via the webservice:
13962
13963 <ul>
13964 <li>When using the COM API directly, an object of the Session class from the
13965 VirtualBox type library needs to be created. In regular COM C++ client code,
13966 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
13967 This object will then act as a local session object in further calls to open
13968 a session.
13969 </li>
13970
13971 <li>In the webservice, the session manager (IWebsessionManager) instead creates
13972 a session object automatically whenever <link to="IWebsessionManager::logon" />
13973 is called. A managed object reference to that session object can be retrieved by
13974 calling <link to="IWebsessionManager::getSessionObject" />.
13975 </li>
13976 </ul>
13977 </desc>
13978
13979 <attribute name="state" type="SessionState" readonly="yes">
13980 <desc>Current state of this session.</desc>
13981 </attribute>
13982
13983 <attribute name="type" type="SessionType" readonly="yes">
13984 <desc>
13985 Type of this session. The value of this attribute is valid only
13986 if the session currently has a machine locked (i.e. its
13987 <link to="#state" /> is Locked), otherwise an error will be returned.
13988 </desc>
13989 </attribute>
13990
13991 <attribute name="machine" type="IMachine" readonly="yes">
13992 <desc>Machine object associated with this session.</desc>
13993 </attribute>
13994
13995 <attribute name="console" type="IConsole" readonly="yes">
13996 <desc>Console object associated with this session.</desc>
13997 </attribute>
13998
13999 <method name="unlockMachine">
14000 <desc>
14001 Unlocks a machine that was previously locked for the current session.
14002
14003 Calling this method is required every time a machine has been locked
14004 for a particular session using the <link to="IMachine::launchVMProcess" />
14005 or <link to="IMachine::lockMachine" /> calls. Otherwise the state of
14006 the machine will be set to <link to="MachineState_Aborted" /> on the
14007 server, and changes made to the machine settings will be lost.
14008
14009 Generally, it is recommended to unlock all machines explicitly
14010 before terminating the application (regardless of the reason for
14011 the termination).
14012
14013 <note>
14014 Do not expect the session state (<link to="ISession::state" />
14015 to return to "Unlocked" immediately after you invoke this method,
14016 particularly if you have started a new VM process. The session
14017 state will automatically return to "Unlocked" once the VM is no
14018 longer executing, which can of course take a very long time.
14019 </note>
14020
14021 <result name="E_UNEXPECTED">
14022 Session is not locked.
14023 </result>
14024
14025 </desc>
14026 </method>
14027
14028 </interface>
14029
14030 <!--
14031 // IStorageController
14032 /////////////////////////////////////////////////////////////////////////
14033 -->
14034
14035 <enum
14036 name="StorageBus"
14037 uuid="eee67ab3-668d-4ef5-91e0-7025fe4a0d7a"
14038 >
14039 <desc>
14040 The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy);
14041 see <link to="IStorageController::bus" />.
14042 </desc>
14043 <const name="Null" value="0">
14044 <desc>@c null value. Never used by the API.</desc>
14045 </const>
14046 <const name="IDE" value="1"/>
14047 <const name="SATA" value="2"/>
14048 <const name="SCSI" value="3"/>
14049 <const name="Floppy" value="4"/>
14050 <const name="SAS" value="5"/>
14051 </enum>
14052
14053 <enum
14054 name="StorageControllerType"
14055 uuid="8a412b8a-f43e-4456-bd37-b474f0879a58"
14056 >
14057 <desc>
14058 The exact variant of storage controller hardware presented
14059 to the guest; see <link to="IStorageController::controllerType" />.
14060 </desc>
14061
14062 <const name="Null" value="0">
14063 <desc>@c null value. Never used by the API.</desc>
14064 </const>
14065 <const name="LsiLogic" value="1">
14066 <desc>A SCSI controller of the LsiLogic variant.</desc>
14067 </const>
14068 <const name="BusLogic" value="2">
14069 <desc>A SCSI controller of the BusLogic variant.</desc>
14070 </const>
14071 <const name="IntelAhci" value="3">
14072 <desc>An Intel AHCI SATA controller; this is the only variant for SATA.</desc>
14073 </const>
14074 <const name="PIIX3" value="4">
14075 <desc>An IDE controller of the PIIX3 variant.</desc>
14076 </const>
14077 <const name="PIIX4" value="5">
14078 <desc>An IDE controller of the PIIX4 variant.</desc>
14079 </const>
14080 <const name="ICH6" value="6">
14081 <desc>An IDE controller of the ICH6 variant.</desc>
14082 </const>
14083 <const name="I82078" value="7">
14084 <desc>A floppy disk controller; this is the only variant for floppy drives.</desc>
14085 </const>
14086 <const name="LsiLogicSas" value="8">
14087 <desc>A variant of the LsiLogic controller using SAS.</desc>
14088 </const>
14089 </enum>
14090
14091 <enum
14092 name="ChipsetType"
14093 uuid="8b4096a8-a7c3-4d3b-bbb1-05a0a51ec394"
14094 >
14095 <desc>
14096 Type of emulated chipset (mostly southbridge).
14097 </desc>
14098
14099 <const name="Null" value="0">
14100 <desc>@c null value. Never used by the API.</desc>
14101 </const>
14102 <const name="PIIX3" value="1">
14103 <desc>A PIIX3 (PCI IDE ISA Xcelerator) chipset.</desc>
14104 </const>
14105 <const name="ICH9" value="2">
14106 <desc>A ICH9 (I/O Controller Hub) chipset.</desc>
14107 </const>
14108 </enum>
14109
14110 <interface
14111 name="IStorageController" extends="$unknown"
14112 uuid="a1556333-09b6-46d9-bfb7-fc239b7fbe1e"
14113 wsmap="managed"
14114 >
14115 <desc>
14116 Represents a storage controller that is attached to a virtual machine
14117 (<link to="IMachine" />). Just as drives (hard disks, DVDs, FDs) are
14118 attached to storage controllers in a real computer, virtual drives
14119 (represented by <link to="IMediumAttachment" />) are attached to virtual
14120 storage controllers, represented by this interface.
14121
14122 As opposed to physical hardware, VirtualBox has a very generic concept
14123 of a storage controller, and for purposes of the Main API, all virtual
14124 storage is attached to virtual machines via instances of this interface.
14125 There are five types of such virtual storage controllers: IDE, SCSI, SATA,
14126 SAS and Floppy (see <link to="#bus" />). Depending on which of these four
14127 is used, certain sub-types may be available and can be selected in
14128 <link to="#controllerType" />.
14129
14130 Depending on these settings, the guest operating system might see
14131 significantly different virtual hardware.
14132 </desc>
14133
14134 <attribute name="name" type="wstring" readonly="yes">
14135 <desc>
14136 Name of the storage controller, as originally specified with
14137 <link to="IMachine::addStorageController" />. This then uniquely
14138 identifies this controller with other method calls such as
14139 <link to="IMachine::attachDevice" /> and <link to="IMachine::mountMedium" />.
14140 </desc>
14141 </attribute>
14142
14143 <attribute name="maxDevicesPerPortCount" type="unsigned long" readonly="yes">
14144 <desc>
14145 Maximum number of devices which can be attached to one port.
14146 </desc>
14147 </attribute>
14148
14149 <attribute name="minPortCount" type="unsigned long" readonly="yes">
14150 <desc>
14151 Minimum number of ports that <link to="IStorageController::portCount"/> can be set to.
14152 </desc>
14153 </attribute>
14154
14155 <attribute name="maxPortCount" type="unsigned long" readonly="yes">
14156 <desc>
14157 Maximum number of ports that <link to="IStorageController::portCount"/> can be set to.
14158 </desc>
14159 </attribute>
14160
14161 <attribute name="instance" type="unsigned long">
14162 <desc>
14163 The instance number of the device in the running VM.
14164 </desc>
14165 </attribute>
14166
14167 <attribute name="portCount" type="unsigned long">
14168 <desc>
14169 The number of currently usable ports on the controller.
14170 The minimum and maximum number of ports for one controller are
14171 stored in <link to="IStorageController::minPortCount"/>
14172 and <link to="IStorageController::maxPortCount"/>.
14173 </desc>
14174 </attribute>
14175
14176 <attribute name="bus" type="StorageBus" readonly="yes">
14177 <desc>
14178 The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy).
14179 </desc>
14180 </attribute>
14181
14182 <attribute name="controllerType" type="StorageControllerType">
14183 <desc>
14184 The exact variant of storage controller hardware presented
14185 to the guest.
14186 Depending on this value, VirtualBox will provide a different
14187 virtual storage controller hardware to the guest.
14188 For SATA, SAS and floppy controllers, only one variant is
14189 available, but for IDE and SCSI, there are several.
14190
14191 For SCSI controllers, the default type is LsiLogic.
14192 </desc>
14193 </attribute>
14194
14195 <attribute name="useHostIOCache" type="boolean">
14196 <desc>
14197 If true, the storage controller emulation will use a dedicated I/O thread, enable the host I/O
14198 caches and use synchronous file APIs on the host. This was the only option in the API before
14199 VirtualBox 3.2 and is still the default for IDE controllers.
14200
14201 If false, the host I/O cache will be disabled for image files attached to this storage controller.
14202 Instead, the storage controller emulation will use asynchronous I/O APIs on the host. This makes
14203 it possible to turn off the host I/O caches because the emulation can handle unaligned access to
14204 the file. This should be used on OS X and Linux hosts if a high I/O load is expected or many
14205 virtual machines are running at the same time to prevent I/O cache related hangs.
14206 This option new with the API of VirtualBox 3.2 and is now the default for non-IDE storage controllers.
14207 </desc>
14208 </attribute>
14209
14210 <attribute name="bootable" type="boolean" readonly="yes">
14211 <desc>
14212 Returns whether it is possible to boot from disks attached to this controller.
14213 </desc>
14214 </attribute>
14215
14216 <method name="getIDEEmulationPort">
14217 <desc>
14218 Gets the corresponding port number which is emulated as an IDE device.
14219 Works only with SATA controllers.
14220
14221 <result name="E_INVALIDARG">
14222 The @a devicePosition is not in the range 0 to 3.
14223 </result>
14224 <result name="E_NOTIMPL">
14225 The storage controller type is not SATAIntelAhci.
14226 </result>
14227
14228 </desc>
14229 <param name="devicePosition" type="long" dir="in"/>
14230 <param name="portNumber" type="long" dir="return"/>
14231 </method>
14232
14233 <method name="setIDEEmulationPort">
14234 <desc>
14235 Sets the port number which is emulated as an IDE device.
14236 Works only with SATA controllers.
14237
14238 <result name="E_INVALIDARG">
14239 The @a devicePosition is not in the range 0 to 3 or the
14240 @a portNumber is not in the range 0 to 29.
14241 </result>
14242 <result name="E_NOTIMPL">
14243 The storage controller type is not SATAIntelAhci.
14244 </result>
14245
14246 </desc>
14247 <param name="devicePosition" type="long" dir="in"/>
14248 <param name="portNumber" type="long" dir="in"/>
14249 </method>
14250
14251 </interface>
14252
14253<if target="wsdl">
14254
14255 <!--
14256 // IManagedObjectRef
14257 /////////////////////////////////////////////////////////////////////////
14258 -->
14259
14260 <interface
14261 name="IManagedObjectRef" extends="$unknown"
14262 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
14263 internal="yes"
14264 wsmap="managed"
14265 wscpp="hardcoded"
14266 >
14267 <desc>
14268 Managed object reference.
14269
14270 Only within the webservice, a managed object reference (which is really
14271 an opaque number) allows a webservice client to address an object
14272 that lives in the address space of the webservice server.
14273
14274 Behind each managed object reference, there is a COM object that lives
14275 in the webservice server's address space. The COM object is not freed
14276 until the managed object reference is released, either by an explicit
14277 call to <link to="IManagedObjectRef::release" /> or by logging off from
14278 the webservice (<link to="IWebsessionManager::logoff" />), which releases
14279 all objects created during the webservice session.
14280
14281 Whenever a method call of the VirtualBox API returns a COM object, the
14282 webservice representation of that method will instead return a
14283 managed object reference, which can then be used to invoke methods
14284 on that object.
14285 </desc>
14286
14287 <method name="getInterfaceName">
14288 <desc>
14289 Returns the name of the interface that this managed object represents,
14290 for example, "IMachine", as a string.
14291 </desc>
14292 <param name="return" type="wstring" dir="return"/>
14293 </method>
14294
14295 <method name="release">
14296 <desc>
14297 Releases this managed object reference and frees the resources that
14298 were allocated for it in the webservice server process. After calling
14299 this method, the identifier of the reference can no longer be used.
14300 </desc>
14301 </method>
14302
14303 </interface>
14304
14305 <!--
14306 // IWebsessionManager
14307 /////////////////////////////////////////////////////////////////////////
14308 -->
14309
14310 <interface
14311 name="IWebsessionManager" extends="$unknown"
14312 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
14313 internal="yes"
14314 wsmap="global"
14315 wscpp="hardcoded"
14316 >
14317 <desc>
14318 Websession manager. This provides essential services
14319 to webservice clients.
14320 </desc>
14321 <method name="logon">
14322 <desc>
14323 Logs a new client onto the webservice and returns a managed object reference to
14324 the IVirtualBox instance, which the client can then use as a basis to further
14325 queries, since all calls to the VirtualBox API are based on the IVirtualBox
14326 interface, in one way or the other.
14327 </desc>
14328 <param name="username" type="wstring" dir="in"/>
14329 <param name="password" type="wstring" dir="in"/>
14330 <param name="return" type="IVirtualBox" dir="return"/>
14331 </method>
14332
14333 <method name="getSessionObject">
14334 <desc>
14335 Returns a managed object reference to the internal ISession object that was created
14336 for this web service session when the client logged on.
14337
14338 <see>ISession</see>
14339 </desc>
14340 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
14341 <param name="return" type="ISession" dir="return"/>
14342 </method>
14343
14344 <method name="logoff">
14345 <desc>
14346 Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
14347 and destroys all resources associated with the session (most importantly, all
14348 managed objects created in the server while the session was active).
14349 </desc>
14350 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
14351 </method>
14352
14353 </interface>
14354
14355</if>
14356
14357 <!--
14358 // IPerformanceCollector & friends
14359 /////////////////////////////////////////////////////////////////////////
14360 -->
14361
14362 <interface
14363 name="IPerformanceMetric" extends="$unknown"
14364 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
14365 >
14366 <desc>
14367 The IPerformanceMetric interface represents parameters of the given
14368 performance metric.
14369 </desc>
14370
14371 <attribute name="metricName" type="wstring" readonly="yes">
14372 <desc>
14373 Name of the metric.
14374 </desc>
14375 </attribute>
14376
14377 <attribute name="object" type="$unknown" readonly="yes">
14378 <desc>
14379 Object this metric belongs to.
14380 </desc>
14381 </attribute>
14382
14383 <attribute name="description" type="wstring" readonly="yes">
14384 <desc>
14385 Textual description of the metric.
14386 </desc>
14387 </attribute>
14388
14389 <attribute name="period" type="unsigned long" readonly="yes">
14390 <desc>
14391 Time interval between samples, measured in seconds.
14392 </desc>
14393 </attribute>
14394
14395 <attribute name="count" type="unsigned long" readonly="yes">
14396 <desc>
14397 Number of recent samples retained by the performance collector for this
14398 metric.
14399
14400 When the collected sample count exceeds this number, older samples
14401 are discarded.
14402 </desc>
14403 </attribute>
14404
14405 <attribute name="unit" type="wstring" readonly="yes">
14406 <desc>
14407 Unit of measurement.
14408 </desc>
14409 </attribute>
14410
14411 <attribute name="minimumValue" type="long" readonly="yes">
14412 <desc>
14413 Minimum possible value of this metric.
14414 </desc>
14415 </attribute>
14416
14417 <attribute name="maximumValue" type="long" readonly="yes">
14418 <desc>
14419 Maximum possible value of this metric.
14420 </desc>
14421 </attribute>
14422 </interface>
14423
14424 <interface
14425 name="IPerformanceCollector" extends="$unknown"
14426 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
14427 wsmap="managed"
14428 >
14429 <desc>
14430 The IPerformanceCollector interface represents a service that collects
14431 and stores performance metrics data.
14432
14433 Performance metrics are associated with objects of interfaces like IHost
14434 and IMachine. Each object has a distinct set of performance metrics. The
14435 set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
14436
14437 Metric data is collected at the specified intervals and is retained
14438 internally. The interval and the number of retained samples can be set
14439 with <link to="IPerformanceCollector::setupMetrics" />. Both metric data
14440 and collection settings are not persistent, they are discarded as soon as
14441 VBoxSVC process terminates. Moreover, metric settings and data associated
14442 with a particular VM only exist while VM is running. They disappear as
14443 soon as VM shuts down. It is not possible to set up metrics for machines
14444 that are powered off. One needs to start VM first, then set up metric
14445 collection parameters.
14446
14447 Metrics are organized hierarchically, with each level separated by a
14448 slash (/) character. Generally, the scheme for metric names is like this:
14449
14450 <tt>Category/Metric[/SubMetric][:aggregation]</tt>
14451
14452 "Category/Metric" together form the base metric name. A base metric is
14453 the smallest unit for which a sampling interval and the number of
14454 retained samples can be set. Only base metrics can be enabled and
14455 disabled. All sub-metrics are collected when their base metric is
14456 collected. Collected values for any set of sub-metrics can be queried
14457 with <link to="IPerformanceCollector::queryMetricsData" />.
14458
14459 For example "CPU/Load/User:avg" metric name stands for the "CPU"
14460 category, "Load" metric, "User" submetric, "average" aggregate. An
14461 aggregate function is computed over all retained data. Valid aggregate
14462 functions are:
14463
14464 <ul>
14465 <li>avg -- average</li>
14466 <li>min -- minimum</li>
14467 <li>max -- maximum</li>
14468 </ul>
14469
14470 When setting up metric parameters, querying metric data, enabling or
14471 disabling metrics wildcards can be used in metric names to specify a
14472 subset of metrics. For example, to select all CPU-related metrics
14473 use <tt>CPU/*</tt>, all averages can be queried using <tt>*:avg</tt> and
14474 so on. To query metric values without aggregates <tt>*:</tt> can be used.
14475
14476 The valid names for base metrics are:
14477
14478 <ul>
14479 <li>CPU/Load</li>
14480 <li>CPU/MHz</li>
14481 <li>RAM/Usage</li>
14482 <li>RAM/VMM</li>
14483 </ul>
14484
14485 The general sequence for collecting and retrieving the metrics is:
14486 <ul>
14487 <li>
14488 Obtain an instance of IPerformanceCollector with
14489 <link to="IVirtualBox::performanceCollector" />
14490 </li>
14491 <li>
14492 Allocate and populate an array with references to objects the metrics
14493 will be collected for. Use references to IHost and IMachine objects.
14494 </li>
14495 <li>
14496 Allocate and populate an array with base metric names the data will
14497 be collected for.
14498 </li>
14499 <li>
14500 Call <link to="IPerformanceCollector::setupMetrics" />. From now on
14501 the metric data will be collected and stored.
14502 </li>
14503 <li>
14504 Wait for the data to get collected.
14505 </li>
14506 <li>
14507 Allocate and populate an array with references to objects the metric
14508 values will be queried for. You can re-use the object array used for
14509 setting base metrics.
14510 </li>
14511 <li>
14512 Allocate and populate an array with metric names the data will be
14513 collected for. Note that metric names differ from base metric names.
14514 </li>
14515 <li>
14516 Call <link to="IPerformanceCollector::queryMetricsData" />. The data
14517 that have been collected so far are returned. Note that the values
14518 are still retained internally and data collection continues.
14519 </li>
14520 </ul>
14521
14522 For an example of usage refer to the following files in VirtualBox SDK:
14523 <ul>
14524 <li>
14525 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
14526 </li>
14527 <li>
14528 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
14529 </li>
14530 </ul>
14531 </desc>
14532
14533 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
14534 <desc>
14535 Array of unique names of metrics.
14536
14537 This array represents all metrics supported by the performance
14538 collector. Individual objects do not necessarily support all of them.
14539 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
14540 list of supported metrics for a particular object.
14541 </desc>
14542 </attribute>
14543
14544 <method name="getMetrics">
14545 <desc>
14546 Returns parameters of specified metrics for a set of objects.
14547 <note>
14548 @c Null metrics array means all metrics. @c Null object array means
14549 all existing objects.
14550 </note>
14551 </desc>
14552 <param name="metricNames" type="wstring" dir="in" safearray="yes">
14553 <desc>
14554 Metric name filter. Currently, only a comma-separated list of metrics
14555 is supported.
14556 </desc>
14557 </param>
14558 <param name="objects" type="$unknown" dir="in" safearray="yes">
14559 <desc>
14560 Set of objects to return metric parameters for.
14561 </desc>
14562 </param>
14563 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
14564 <desc>
14565 Array of returned metric parameters.
14566 </desc>
14567 </param>
14568 </method>
14569
14570 <method name="setupMetrics">
14571 <desc>
14572 Sets parameters of specified base metrics for a set of objects. Returns
14573 an array of <link to="IPerformanceMetric" /> describing the metrics
14574 have been affected.
14575 <note>
14576 @c Null or empty metric name array means all metrics. @c Null or
14577 empty object array means all existing objects. If metric name array
14578 contains a single element and object array contains many, the single
14579 metric name array element is applied to each object array element to
14580 form metric/object pairs.
14581 </note>
14582 </desc>
14583 <param name="metricNames" type="wstring" dir="in" safearray="yes">
14584 <desc>
14585 Metric name filter. Comma-separated list of metrics with wildcard
14586 support.
14587 </desc>
14588 </param>
14589 <param name="objects" type="$unknown" dir="in" safearray="yes">
14590 <desc>
14591 Set of objects to setup metric parameters for.
14592 </desc>
14593 </param>
14594 <param name="period" type="unsigned long" dir="in">
14595 <desc>
14596 Time interval in seconds between two consecutive samples of
14597 performance data.
14598 </desc>
14599 </param>
14600 <param name="count" type="unsigned long" dir="in">
14601 <desc>
14602 Number of samples to retain in performance data history. Older
14603 samples get discarded.
14604 </desc>
14605 </param>
14606 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
14607 <desc>
14608 Array of metrics that have been modified by the call to this method.
14609 </desc>
14610 </param>
14611 </method>
14612
14613 <method name="enableMetrics">
14614 <desc>
14615 Turns on collecting specified base metrics. Returns an array of
14616 <link to="IPerformanceMetric" /> describing the metrics have been
14617 affected.
14618 <note>
14619 @c Null or empty metric name array means all metrics. @c Null or
14620 empty object array means all existing objects. If metric name array
14621 contains a single element and object array contains many, the single
14622 metric name array element is applied to each object array element to
14623 form metric/object pairs.
14624 </note>
14625 </desc>
14626 <param name="metricNames" type="wstring" dir="in" safearray="yes">
14627 <desc>
14628 Metric name filter. Comma-separated list of metrics with wildcard
14629 support.
14630 </desc>
14631 </param>
14632 <param name="objects" type="$unknown" dir="in" safearray="yes">
14633 <desc>
14634 Set of objects to enable metrics for.
14635 </desc>
14636 </param>
14637 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
14638 <desc>
14639 Array of metrics that have been modified by the call to this method.
14640 </desc>
14641 </param>
14642 </method>
14643
14644 <method name="disableMetrics">
14645 <desc>
14646 Turns off collecting specified base metrics. Returns an array of
14647 <link to="IPerformanceMetric" /> describing the metrics have been
14648 affected.
14649 <note>
14650 @c Null or empty metric name array means all metrics. @c Null or
14651 empty object array means all existing objects. If metric name array
14652 contains a single element and object array contains many, the single
14653 metric name array element is applied to each object array element to
14654 form metric/object pairs.
14655 </note>
14656 </desc>
14657 <param name="metricNames" type="wstring" dir="in" safearray="yes">
14658 <desc>
14659 Metric name filter. Comma-separated list of metrics with wildcard
14660 support.
14661 </desc>
14662 </param>
14663 <param name="objects" type="$unknown" dir="in" safearray="yes">
14664 <desc>
14665 Set of objects to disable metrics for.
14666 </desc>
14667 </param>
14668 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
14669 <desc>
14670 Array of metrics that have been modified by the call to this method.
14671 </desc>
14672 </param>
14673 </method>
14674
14675 <method name="queryMetricsData">
14676 <desc>
14677 Queries collected metrics data for a set of objects.
14678
14679 The data itself and related metric information are returned in seven
14680 parallel and one flattened array of arrays. Elements of
14681 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
14682 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
14683 the same index describe one set of values corresponding to a single
14684 metric.
14685
14686 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
14687 start and length of a sub-array is indicated by
14688 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
14689 value for metric <tt>metricNames[i]</tt> is at
14690 <tt>returnData[returnIndices[i]]</tt>.
14691
14692 <note>
14693 @c Null or empty metric name array means all metrics. @c Null or
14694 empty object array means all existing objects. If metric name array
14695 contains a single element and object array contains many, the single
14696 metric name array element is applied to each object array element to
14697 form metric/object pairs.
14698 </note>
14699 <note>
14700 Data collection continues behind the scenes after call to @c
14701 queryMetricsData. The return data can be seen as the snapshot of the
14702 current state at the time of @c queryMetricsData call. The internally
14703 kept metric values are not cleared by the call. This makes possible
14704 querying different subsets of metrics or aggregates with subsequent
14705 calls. If periodic querying is needed it is highly suggested to query
14706 the values with @c interval*count period to avoid confusion. This way
14707 a completely new set of data values will be provided by each query.
14708 </note>
14709 </desc>
14710 <param name="metricNames" type="wstring" dir="in" safearray="yes">
14711 <desc>
14712 Metric name filter. Comma-separated list of metrics with wildcard
14713 support.
14714 </desc>
14715 </param>
14716 <param name="objects" type="$unknown" dir="in" safearray="yes">
14717 <desc>
14718 Set of objects to query metrics for.
14719 </desc>
14720 </param>
14721 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
14722 <desc>
14723 Names of metrics returned in @c returnData.
14724 </desc>
14725 </param>
14726 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
14727 <desc>
14728 Objects associated with metrics returned in @c returnData.
14729 </desc>
14730 </param>
14731 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
14732 <desc>
14733 Units of measurement for each returned metric.
14734 </desc>
14735 </param>
14736 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
14737 <desc>
14738 Divisor that should be applied to return values in order to get
14739 floating point values. For example:
14740 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
14741 will retrieve the floating point value of i-th sample of the first
14742 metric.
14743 </desc>
14744 </param>
14745 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
14746 <desc>
14747 Sequence numbers of the first elements of value sequences of
14748 particular metrics returned in @c returnData. For aggregate metrics
14749 it is the sequence number of the sample the aggregate started
14750 calculation from.
14751 </desc>
14752 </param>
14753 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
14754 <desc>
14755 Indices of the first elements of value sequences of particular
14756 metrics returned in @c returnData.
14757 </desc>
14758 </param>
14759 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
14760 <desc>
14761 Lengths of value sequences of particular metrics.
14762 </desc>
14763 </param>
14764 <param name="returnData" type="long" dir="return" safearray="yes">
14765 <desc>
14766 Flattened array of all metric data containing sequences of values for
14767 each metric.
14768 </desc>
14769 </param>
14770 </method>
14771
14772 </interface>
14773
14774 <enum
14775 name="NATAliasMode"
14776 uuid="67772168-50d9-11df-9669-7fb714ee4fa1"
14777 >
14778 <desc></desc>
14779 <const name="AliasLog" value="0x1">
14780 <desc></desc>
14781 </const>
14782 <const name="AliasProxyOnly" value="0x02">
14783 <desc></desc>
14784 </const>
14785 <const name="AliasUseSamePorts" value="0x04">
14786 <desc></desc>
14787 </const>
14788 </enum>
14789
14790 <enum
14791 name="NATProtocol"
14792 uuid="e90164be-eb03-11de-94af-fff9b1c1b19f"
14793 >
14794 <desc>Protocol definitions used with NAT port-forwarding rules.</desc>
14795 <const name="UDP" value="0">
14796 <desc>Port-forwarding uses UDP protocol.</desc>
14797 </const>
14798 <const name="TCP" value="1">
14799 <desc>Port-forwarding uses TCP protocol.</desc>
14800 </const>
14801 </enum>
14802
14803 <interface
14804 name="INATEngine" extends="$unknown"
14805 uuid="4b286616-eb03-11de-b0fb-1701eca42246"
14806 wsmap="managed"
14807 >
14808 <desc>Interface for managing a NAT engine which is used with a virtual machine. This
14809 allows for changing NAT behavior such as port-forwarding rules. This interface is
14810 used in the <link to="INetworkAdapter::natDriver" /> attribute.</desc>
14811 <attribute name="network" type="wstring">
14812 <desc>The network attribute of the NAT engine (the same value is used with built-in
14813 DHCP server to fill corresponding fields of DHCP leases).</desc>
14814 </attribute>
14815 <attribute name="hostIP" type="wstring">
14816 <desc>IP of host interface to bind all opened sockets to.
14817 <note>Changing this does not change binding of port forwarding.</note>
14818 </desc>
14819 </attribute>
14820 <attribute name="tftpPrefix" type="wstring">
14821 <desc>TFTP prefix attribute which is used with the built-in DHCP server to fill
14822 the corresponding fields of DHCP leases.</desc>
14823 </attribute>
14824 <attribute name="tftpBootFile" type="wstring">
14825 <desc>TFTP boot file attribute which is used with the built-in DHCP server to fill
14826 the corresponding fields of DHCP leases.</desc>
14827 </attribute>
14828 <attribute name="tftpNextServer" type="wstring">
14829 <desc>TFTP server attribute which is used with the built-in DHCP server to fill
14830 the corresponding fields of DHCP leases.
14831 <note>The preferred form is IPv4 addresses.</note>
14832 </desc>
14833 </attribute>
14834 <attribute name="aliasMode" type="unsigned long">
14835 <desc></desc>
14836 </attribute>
14837 <attribute name="dnsPassDomain" type="boolean">
14838 <desc>Whether the DHCP server should pass the DNS domain used by the host.</desc>
14839 </attribute>
14840 <attribute name="dnsProxy" type="boolean">
14841 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
14842 of the DNS proxy and process traffic using DNS servers registered on the host.</desc>
14843 </attribute>
14844 <attribute name="dnsUseHostResolver" type="boolean">
14845 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
14846 of the DNS proxy and process traffic using the host resolver mechanism.</desc>
14847 </attribute>
14848 <attribute name="redirects" type="wstring" readonly="yes" safearray="yes">
14849 <desc>Array of NAT port-forwarding rules in string representation, in the following
14850 format: "name,protocol id,host ip,host port,guest ip,guest port".</desc>
14851 </attribute>
14852 <method name="setNetworkSettings">
14853 <desc>Sets network configuration of the NAT engine.</desc>
14854 <param name="mtu" type="unsigned long" dir="in">
14855 <desc>MTU (maximum transmission unit) of the NAT engine in bytes.</desc>
14856 </param>
14857 <param name="sockSnd" type="unsigned long" dir="in">
14858 <desc>Capacity of the socket send buffer in bytes when creating a new socket.</desc>
14859 </param>
14860 <param name="sockRcv" type="unsigned long" dir="in">
14861 <desc>Capacity of the socket receive buffer in bytes when creating a new socket.</desc>
14862 </param>
14863 <param name="TcpWndSnd" type="unsigned long" dir="in">
14864 <desc>Initial size of the NAT engine's sending TCP window in bytes when
14865 establishing a new TCP connection.</desc>
14866 </param>
14867 <param name="TcpWndRcv" type="unsigned long" dir="in">
14868 <desc>Initial size of the NAT engine's receiving TCP window in bytes when
14869 establishing a new TCP connection.</desc>
14870 </param>
14871 </method>
14872 <method name="getNetworkSettings">
14873 <desc>Returns network configuration of NAT engine. See <link to="#setNetworkSettings" />
14874 for parameter descriptions.</desc>
14875 <param name="mtu" type="unsigned long" dir="out" />
14876 <param name="sockSnd" type="unsigned long" dir="out" />
14877 <param name="sockRcv" type="unsigned long" dir="out" />
14878 <param name="TcpWndSnd" type="unsigned long" dir="out" />
14879 <param name="TcpWndRcv" type="unsigned long" dir="out" />
14880 </method>
14881 <method name="addRedirect">
14882 <desc>Adds a new NAT port-forwarding rule.</desc>
14883 <param name="name" type="wstring" dir="in">
14884 <desc>The name of the rule. An empty name is acceptable, in which case the NAT engine
14885 auto-generates one using the other parameters.</desc>
14886 </param>
14887 <param name="proto" type="NATProtocol" dir="in">
14888 <desc>Protocol handled with the rule.</desc>
14889 </param>
14890 <param name="hostIp" type="wstring" dir="in">
14891 <desc>IP of the host interface to which the rule should apply. An empty ip address is
14892 acceptable, in which case the NAT engine binds the handling socket to any interface.</desc>
14893 </param>
14894 <param name="hostPort" type="unsigned short" dir="in">
14895 <desc>The port number to listen on.</desc>
14896 </param>
14897 <param name="guestIp" type="wstring" dir="in">
14898 <desc>The IP address of the guest which the NAT engine will forward matching packets
14899 to. An empty IP address is acceptable, in which case the NAT engine will forward
14900 packets to the first DHCP lease (x.x.x.15).</desc>
14901 </param>
14902 <param name="guestPort" type="unsigned short" dir="in">
14903 <desc>The port number to forward.</desc>
14904 </param>
14905 </method>
14906 <method name="removeRedirect">
14907 <desc>Removes a port-forwarding rule that was previously registered.</desc>
14908 <param name="name" type="wstring" dir="in">
14909 <desc>The name of the rule to delete.</desc>
14910 </param>
14911 </method>
14912 </interface>
14913
14914 <!--
14915 // IExtPackManager
14916 /////////////////////////////////////////////////////////////////////////
14917 -->
14918
14919 <interface
14920 name="IExtPackPlugIn" extends="$unknown"
14921 uuid="58000040-e718-4746-bbce-4b86d96da461"
14922 wsmap="suppress"
14923 >
14924 <desc>
14925 Interface for keeping information about a plug-in that ships with an
14926 extension pack.
14927 </desc>
14928 <attribute name="name" type="wstring" readonly="yes">
14929 <desc>The plug-in name.</desc>
14930 </attribute>
14931 <attribute name="description" type="wstring" readonly="yes">
14932 <desc>The plug-in description.</desc>
14933 </attribute>
14934 <attribute name="frontend" type="wstring" readonly="yes">
14935 <desc>
14936 The name of the frontend or component name this plug-in plugs into.
14937 </desc>
14938 </attribute>
14939 <attribute name="modulePath" type="wstring" readonly="yes">
14940 <desc> The module path. </desc>
14941 </attribute>
14942 </interface>
14943
14944 <interface
14945 name="IExtPackBase" extends="$unknown"
14946 uuid="5ffb0b64-0ad6-467d-af62-1157e7dc3c99"
14947 wsmap="suppress"
14948 >
14949 <desc>
14950 Interface for querying information about an extension pack as well as
14951 accessing COM objects within it.
14952 </desc>
14953 <attribute name="name" type="wstring" readonly="yes">
14954 <desc>The extension pack name. This is unique.</desc>
14955 </attribute>
14956 <attribute name="description" type="wstring" readonly="yes">
14957 <desc>The extension pack description.</desc>
14958 </attribute>
14959 <attribute name="version" type="wstring" readonly="yes">
14960 <desc>
14961 The extension pack version string. This is on the same form as
14962 other VirtualBox version strings, i.e.: "1.2.3", "1.2.3_BETA1",
14963 "1.2.3-OSE", "1.2.3r45678", "1.2.3r45678-OSE", "1.2.3_BETA1-r45678"
14964 or "1.2.3_BETA1-r45678-OSE"
14965 </desc>
14966 </attribute>
14967 <attribute name="revision" type="unsigned long" readonly="yes">
14968 <desc>The extension pack internal revision number.</desc>
14969 </attribute>
14970 <attribute name="VRDEModule" type="wstring" readonly="yes">
14971 <desc>The name of the VRDE module if the extension pack sports one.</desc>
14972 </attribute>
14973 <attribute name="plugIns" type="IExtPackPlugIn" safearray="yes" readonly="yes">
14974 <desc>Plug-ins provided by this extension pack.</desc>
14975 </attribute>
14976 <attribute name="usable" type="boolean" readonly="yes">
14977 <desc>
14978 Indicates whether the extension pack is usable or not.
14979
14980 There are a number of reasons why an extension pack might be unusable,
14981 typical examples would be broken installation/file or that it is
14982 incompatible with the current VirtualBox version.
14983 </desc>
14984 </attribute>
14985 <attribute name="whyUnusable" type="wstring" readonly="yes">
14986 <desc>
14987 String indicating why the extension pack is not usable. This is an
14988 empty string if usable and always a non-empty string if not usable.
14989 </desc>
14990 </attribute>
14991 <attribute name="showLicense" type="boolean" readonly="yes">
14992 <desc>Whether to show the license before installation</desc>
14993 </attribute>
14994 <attribute name="license" type="wstring" readonly="yes">
14995 <desc>
14996 The default HTML license text for the extension pack. Same as
14997 calling <link to="#queryLicense">queryLicense</link> with
14998 preferredLocale and preferredLanguage as empty strings and format set
14999 to html.
15000 </desc>
15001 </attribute>
15002
15003 <method name="queryLicense">
15004 <desc>
15005 Full feature version of the license attribute.
15006 </desc>
15007 <param name="preferredLocale" type="wstring" dir="in">
15008 <desc>
15009 The preferred license locale. Pass an empty string to get the default
15010 license.
15011 </desc>
15012 </param>
15013 <param name="preferredLanguage" type="wstring" dir="in">
15014 <desc>
15015 The preferred license language. Pass an empty string to get the
15016 default language for the locale.
15017 </desc>
15018 </param>
15019 <param name="format" type="wstring" dir="in">
15020 <desc>
15021 The license format: html, rtf or txt. If a license is present there
15022 will always be an HTML of it, the rich text format (RTF) and plain
15023 text (txt) versions are optional. If
15024 </desc>
15025 </param>
15026 <param name="licenseText" type="wstring" dir="return">
15027 <desc>The license text.</desc>
15028 </param>
15029 </method>
15030
15031 </interface>
15032
15033 <interface
15034 name="IExtPack" extends="IExtPackBase"
15035 uuid="431685da-3618-4ebc-b038-833ba829b4b2"
15036 wsmap="suppress"
15037 >
15038 <desc>
15039 Interface for querying information about an extension pack as well as
15040 accessing COM objects within it.
15041 </desc>
15042 <method name="queryObject">
15043 <desc>
15044 Queries the IUnknown interface to an object in the extension pack
15045 main module. This allows plug-ins and others to talk directly to an
15046 extension pack.
15047 </desc>
15048 <param name="objUuid" type="wstring" dir="in">
15049 <desc>The object ID. What exactly this is </desc>
15050 </param>
15051 <param name="returnInterface" type="$unknown" dir="return">
15052 <desc>The queried interface.</desc>
15053 </param>
15054 </method>
15055 </interface>
15056
15057 <interface
15058 name="IExtPackFile" extends="IExtPackBase"
15059 uuid="b6b49f55-efcc-4f08-b486-56e8d8afb10b"
15060 wsmap="suppress"
15061 >
15062 <desc>
15063 Extension pack file (aka tarball, .vbox-extpack) representation returned
15064 by IExtPackManager::openExtPackFile. This provides the base extension
15065 pack information with the addition of the file name. It also provides an
15066 alternative to IExtPackManager::install.
15067 </desc>
15068 <attribute name="filePath" type="wstring" readonly="yes">
15069 <desc>
15070 The path to the extension pack file.
15071 </desc>
15072 </attribute>
15073
15074 <method name="install">
15075 <desc>
15076 Install the extension pack.
15077 </desc>
15078 <param name="replace" type="boolean" dir="in">
15079 <desc>
15080 Set this to automatically uninstall any existing extension pack with
15081 the same name as the one being installed.
15082 </desc>
15083 </param>
15084 <param name="displayInfo" type="wstring" dir="in">
15085 <desc>
15086 Platform specific display information. Reserved for future hacks.
15087 </desc>
15088 </param>
15089 <param name="progess" type="IProgress" dir="return">
15090 <desc>
15091 Progress object for the operation.
15092 </desc>
15093 </param>
15094 </method>
15095 </interface>
15096
15097 <interface
15098 name="IExtPackManager" extends="$unknown"
15099 uuid="2451b1ba-ab1c-42fb-b453-c58433bea8c7"
15100 wsmap="suppress"
15101 >
15102 <desc>
15103 Interface for managing VirtualBox Extension Packs.
15104
15105 TODO: Describe extension packs, how they are managed and how to create
15106 one.
15107 </desc>
15108
15109 <attribute name="installedExtPacks" type="IExtPack" safearray="yes" readonly="yes">
15110 <desc>
15111 List of the installed extension packs.
15112 </desc>
15113 </attribute>
15114
15115 <method name="find">
15116 <desc>
15117 Returns the extension pack with the specified name if found.
15118
15119 <result name="VBOX_E_OBJECT_NOT_FOUND">
15120 No extension pack matching @a name was found.
15121 </result>
15122 </desc>
15123 <param name="name" type="wstring" dir="in">
15124 <desc>The name of the extension pack to locate.</desc>
15125 </param>
15126 <param name="returnData" type="IExtPack" dir="return">
15127 <desc>The extension pack if found.</desc>
15128 </param>
15129 </method>
15130
15131 <method name="openExtPackFile">
15132 <desc>
15133 Attempts to open an extension pack file in preparation for
15134 installation.
15135 </desc>
15136 <param name="path" type="wstring" dir="in">
15137 <desc>The path of the extension pack tarball.</desc>
15138 </param>
15139 <param name="file" type="IExtPackFile" dir="return">
15140 <desc>The interface of the extension pack file object.</desc>
15141 </param>
15142 </method>
15143
15144 <method name="uninstall">
15145 <desc>Uninstalls an extension pack, removing all related files.</desc>
15146 <param name="name" type="wstring" dir="in">
15147 <desc>The name of the extension pack to uninstall.</desc>
15148 </param>
15149 <param name="forcedRemoval" type="boolean" dir="in">
15150 <desc>
15151 Forced removal of the extension pack. This means that the uninstall
15152 hook will not be called.
15153 </desc>
15154 </param>
15155 <param name="displayInfo" type="wstring" dir="in">
15156 <desc>
15157 Platform specific display information. Reserved for future hacks.
15158 </desc>
15159 </param>
15160 <param name="progess" type="IProgress" dir="return">
15161 <desc>
15162 Progress object for the operation.
15163 </desc>
15164 </param>
15165 </method>
15166
15167 <method name="cleanup">
15168 <desc>Cleans up failed installs and uninstalls</desc>
15169 </method>
15170
15171 <method name="QueryAllPlugInsForFrontend">
15172 <desc>
15173 Gets the path to all the plug-in modules for a given frontend.
15174
15175 This is a convenience method that is intended to simplify the plug-in
15176 loading process for a frontend.
15177 </desc>
15178 <param name="frontendName" type="wstring" dir="in">
15179 <desc>The name of the frontend or component.</desc>
15180 </param>
15181 <param name="plugInModules" type="wstring" dir="return" safearray="yes">
15182 <desc>Array containing the plug-in modules (full paths).</desc>
15183 </param>
15184 </method>
15185
15186 <method name="IsExtPackUsable">
15187 <desc>Check if the given extension pack is loaded and usable.</desc>
15188 <param name="name" type="wstring" dir="in">
15189 <desc>The name of the extension pack to check for.</desc>
15190 </param>
15191 <param name="usable" type="boolean" dir="return">
15192 <desc>Is the given extension pack loaded and usable.</desc>
15193 </param>
15194 </method>
15195
15196 </interface>
15197
15198 <!--
15199 // BandwidthGroupType
15200 /////////////////////////////////////////////////////////////////////////
15201 -->
15202 <enum
15203 name="BandwidthGroupType"
15204 uuid="1d92b67d-dc69-4be9-ad4c-93a01e1e0c8e">
15205
15206 <desc>
15207 Type of a bandwidth control group.
15208 </desc>
15209
15210 <const name="Null" value="0">
15211 <desc>
15212 Null type, must be first.
15213 </desc>
15214 </const>
15215
15216 <const name="Disk" value="1">
15217 <desc>
15218 The bandwidth group controls disk I/O.
15219 </desc>
15220 </const>
15221
15222 <const name="Network" value="2">
15223 <desc>
15224 The bandwidth group controls network I/O.
15225 </desc>
15226 </const>
15227
15228 </enum>
15229
15230 <!--
15231 // IBandwidthGroup
15232 /////////////////////////////////////////////////////////////////////////
15233 -->
15234 <interface
15235 name="IBandwidthGroup" extends="$unknown"
15236 uuid="badea2d7-0261-4146-89f0-6a57cc34833d"
15237 wsmap="managed"
15238 >
15239 <desc>Represents one bandwidth group.</desc>
15240
15241 <attribute name="name" type="wstring" readonly="yes">
15242 <desc>Name of the group.</desc>
15243 </attribute>
15244
15245 <attribute name="type" type="BandwidthGroupType" readonly="yes">
15246 <desc>Type of the group.</desc>
15247 </attribute>
15248
15249 <attribute name="reference" type="unsigned long" readonly="yes">
15250 <desc>How many devices/medium attachements use this group.</desc>
15251 </attribute>
15252
15253 <attribute name="maxMbPerSec" type="unsigned long">
15254 <desc>The maximum number of MBytes which can be transfered by all
15255 entities attached to this group during one second.</desc>
15256 </attribute>
15257
15258 </interface>
15259
15260 <!--
15261 // IBandwidthControl
15262 /////////////////////////////////////////////////////////////////////////
15263 -->
15264 <interface
15265 name="IBandwidthControl" extends="$unknown"
15266 uuid="d0a24db0-f756-11df-98cf-0800200c9a66"
15267 wsmap="managed"
15268 >
15269 <desc>
15270 Controls the bandwidth groups of one machine used to cap I/O done by a VM.
15271 This includes network and disk I/O.
15272 </desc>
15273
15274 <attribute name="numGroups" type="unsigned long" readonly="yes">
15275 <desc>
15276 The current number of existing bandwidth groups managed.
15277 </desc>
15278 </attribute>
15279
15280 <method name="CreateBandwidthGroup">
15281 <desc>
15282 Creates a new bandwidth group.
15283 </desc>
15284
15285 <param name="name" type="wstring" dir="in">
15286 <desc>Name of the bandwidth group.</desc>
15287 </param>
15288 <param name="type" type="BandwidthGroupType" dir="in">
15289 <desc>The type of the bandwidth group (network or disk).</desc>
15290 </param>
15291 <param name="maxMbPerSec" type="unsigned long" dir="in">
15292 <desc>The maximum number of MBytes which can be transfered by all
15293 entities attached to this group during one second.</desc>
15294 </param>
15295 </method>
15296
15297 <method name="DeleteBandwidthGroup">
15298 <desc>
15299 Deletes a new bandwidth group.
15300 </desc>
15301
15302 <param name="name" type="wstring" dir="in">
15303 <desc>Name of the bandwidth group to delete.</desc>
15304 </param>
15305 </method>
15306
15307 <method name="GetBandwidthGroup" const="yes">
15308 <desc>
15309 Get a bandwidth group by name.
15310 </desc>
15311
15312 <param name="name" type="wstring" dir="in">
15313 <desc>Name of the bandwidth group to get.</desc>
15314 </param>
15315 <param name="bandwidthGroup" type="IBandwidthGroup" dir="return">
15316 <desc>Where to store the bandwidth group on success.</desc>
15317 </param>
15318 </method>
15319
15320 <method name="GetAllBandwidthGroups" const="yes">
15321 <desc>
15322 Get all managed bandwidth groups.
15323 </desc>
15324
15325 <param name="bandwidthGroups" type="IBandwidthGroup" dir="return" safearray="yes">
15326 <desc>The array of managed bandwidth groups.</desc>
15327 </param>
15328 </method>
15329 </interface>
15330
15331 <!--
15332 // IVirtualBoxClient
15333 /////////////////////////////////////////////////////////////////////////
15334 -->
15335
15336 <interface
15337 name="IVirtualBoxClient" extends="$unknown"
15338 uuid="5fe0bd48-1181-40d1-991f-3b02f269a823"
15339 wsmap="suppress"
15340 >
15341 <desc>
15342 Convenience interface for client applications. Treat this as a
15343 singleton, i.e. never create more than one instance of this interface.
15344
15345 At the moment only available for clients of the local API (not usable
15346 via the webservice). Once the session logic is redesigned this might
15347 change.
15348 </desc>
15349
15350 <attribute name="virtualBox" type="IVirtualBox" readonly="yes">
15351 <desc>
15352 Reference to the server-side API root object.
15353 </desc>
15354 </attribute>
15355
15356 <attribute name="session" type="ISession" readonly="yes">
15357 <desc>
15358 Create a new session object and return the reference to it.
15359 </desc>
15360 </attribute>
15361
15362 <attribute name="eventSource" type="IEventSource" readonly="yes">
15363 <desc>
15364 Event source for VirtualBoxClient events.
15365 </desc>
15366 </attribute>
15367
15368 </interface>
15369
15370 <!--
15371 // Events
15372 /////////////////////////////////////////////////////////////////////////
15373 -->
15374 <enum
15375 name="VBoxEventType"
15376 uuid="e71c487f-755e-46e9-a476-dd6a5d134597"
15377 >
15378
15379 <desc>
15380 Type of an event.
15381 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
15382 </desc>
15383
15384 <const name="Invalid" value="0">
15385 <desc>
15386 Invalid event, must be first.
15387 </desc>
15388 </const>
15389
15390 <const name="Any" value="1">
15391 <desc>
15392 Wildcard for all events.
15393 Events of this type are never delivered, and only used in
15394 registerListener() call to simplify registration.
15395 </desc>
15396 </const>
15397
15398 <const name="Vetoable" value="2">
15399 <desc>
15400 Wildcard for all vetoable events. Events of this type are never delivered, and only
15401 used in registerListener() call to simplify registration.
15402 </desc>
15403 </const>
15404
15405 <const name="MachineEvent" value="3">
15406 <desc>
15407 Wildcard for all machine events. Events of this type are never delivered, and only used in
15408 registerListener() call to simplify registration.
15409 </desc>
15410 </const>
15411
15412 <const name="SnapshotEvent" value="4">
15413 <desc>
15414 Wildcard for all snapshot events. Events of this type are never delivered, and only used in
15415 registerListener() call to simplify registration.
15416 </desc>
15417 </const>
15418
15419 <const name="InputEvent" value="5">
15420 <desc>
15421 Wildcard for all input device (keyboard, mouse) events.
15422 Events of this type are never delivered, and only used in
15423 registerListener() call to simplify registration.
15424 </desc>
15425 </const>
15426
15427 <const name="LastWildcard" value="31">
15428 <desc>
15429 Last wildcard.
15430 </desc>
15431 </const>
15432
15433 <const name="OnMachineStateChanged" value="32">
15434 <desc>
15435 See <link to="IMachineStateChangedEvent">IMachineStateChangedEvent</link>.
15436 </desc>
15437 </const>
15438 <const name="OnMachineDataChanged" value="33">
15439 <desc>
15440 See <link to="IMachineDataChangedEvent">IMachineDataChangedEvent</link>.
15441 </desc>
15442 </const>
15443 <const name="OnExtraDataChanged" value="34">
15444 <desc>
15445 See <link to="IExtraDataChangedEvent">IExtraDataChangedEvent</link>.
15446 </desc>
15447 </const>
15448 <const name="OnExtraDataCanChange" value="35">
15449 <desc>
15450 See <link to="IExtraDataCanChangeEvent">IExtraDataCanChangeEvent</link>.
15451 </desc>
15452 </const>
15453 <const name="OnMediumRegistered" value="36">
15454 <desc>
15455 See <link to="IMediumRegisteredEvent">IMediumRegisteredEvent</link>.
15456 </desc>
15457 </const>
15458 <const name="OnMachineRegistered" value="37">
15459 <desc>
15460 See <link to="IMachineRegisteredEvent">IMachineRegisteredEvent</link>.
15461 </desc>
15462 </const>
15463 <const name="OnSessionStateChanged" value="38">
15464 <desc>
15465 See <link to="ISessionStateChangedEvent">ISessionStateChangedEvent</link>.
15466 </desc>
15467 </const>
15468 <const name="OnSnapshotTaken" value="39">
15469 <desc>
15470 See <link to="ISnapshotTakenEvent">ISnapshotTakenEvent</link>.
15471 </desc>
15472 </const>
15473 <const name="OnSnapshotDeleted" value="40">
15474 <desc>
15475 See <link to="ISnapshotDeletedEvent">ISnapshotDeletedEvent</link>.
15476 </desc>
15477 </const>
15478 <const name="OnSnapshotChanged" value="41">
15479 <desc>
15480 See <link to="ISnapshotChangedEvent">ISnapshotChangedEvent</link>.
15481 </desc>
15482 </const>
15483 <const name="OnGuestPropertyChanged" value="42">
15484 <desc>
15485 See <link to="IGuestPropertyChangedEvent">IGuestPropertyChangedEvent</link>.
15486 </desc>
15487 </const>
15488 <!-- Console events -->
15489 <const name="OnMousePointerShapeChanged" value="43">
15490 <desc>
15491 See <link to="IMousePointerShapeChangedEvent">IMousePointerShapeChangedEvent</link>.
15492 </desc>
15493 </const>
15494 <const name="OnMouseCapabilityChanged" value="44">
15495 <desc>
15496 See <link to="IMouseCapabilityChangedEvent">IMouseCapabilityChangedEvent</link>.
15497 </desc>
15498 </const>
15499 <const name="OnKeyboardLedsChanged" value="45">
15500 <desc>
15501 See <link to="IKeyboardLedsChangedEvent">IKeyboardLedsChangedEvent</link>.
15502 </desc>
15503 </const>
15504 <const name="OnStateChanged" value="46">
15505 <desc>
15506 See <link to="IStateChangedEvent">IStateChangedEvent</link>.
15507 </desc>
15508 </const>
15509 <const name="OnAdditionsStateChanged" value="47">
15510 <desc>
15511 See <link to="IAdditionsStateChangedEvent">IAdditionsStateChangedEvent</link>.
15512 </desc>
15513 </const>
15514 <const name="OnNetworkAdapterChanged" value="48">
15515 <desc>
15516 See <link to="INetworkAdapterChangedEvent">INetworkAdapterChangedEvent</link>.
15517 </desc>
15518 </const>
15519 <const name="OnSerialPortChanged" value="49">
15520 <desc>
15521 See <link to="ISerialPortChangedEvent">ISerialPortChangedEvent</link>.
15522 </desc>
15523 </const>
15524 <const name="OnParallelPortChanged" value="50">
15525 <desc>
15526 See <link to="IParallelPortChangedEvent">IParallelPortChangedEvent</link>.
15527 </desc>
15528 </const>
15529 <const name="OnStorageControllerChanged" value="51">
15530 <desc>
15531 See <link to="IStorageControllerChangedEvent">IStorageControllerChangedEvent</link>.
15532 </desc>
15533 </const>
15534 <const name="OnMediumChanged" value="52">
15535 <desc>
15536 See <link to="IMediumChangedEvent">IMediumChangedEvent</link>.
15537 </desc>
15538 </const>
15539 <const name="OnVRDEServerChanged" value="53">
15540 <desc>
15541 See <link to="IVRDEServerChangedEvent">IVRDEServerChangedEvent</link>.
15542 </desc>
15543 </const>
15544 <const name="OnUSBControllerChanged" value="54">
15545 <desc>
15546 See <link to="IUSBControllerChangedEvent">IUSBControllerChangedEvent</link>.
15547 </desc>
15548 </const>
15549 <const name="OnUSBDeviceStateChanged" value="55">
15550 <desc>
15551 See <link to="IUSBDeviceStateChangedEvent">IUSBDeviceStateChangedEvent</link>.
15552 </desc>
15553 </const>
15554 <const name="OnSharedFolderChanged" value="56">
15555 <desc>
15556 See <link to="ISharedFolderChangedEvent">ISharedFolderChangedEvent</link>.
15557 </desc>
15558 </const>
15559 <const name="OnRuntimeError" value="57">
15560 <desc>
15561 See <link to="IRuntimeErrorEvent">IRuntimeErrorEvent</link>.
15562 </desc>
15563 </const>
15564 <const name="OnCanShowWindow" value="58">
15565 <desc>
15566 See <link to="ICanShowWindowEvent">ICanShowWindowEvent</link>.
15567 </desc>
15568 </const>
15569 <const name="OnShowWindow" value="59">
15570 <desc>
15571 See <link to="IShowWindowEvent">IShowWindowEvent</link>.
15572 </desc>
15573 </const>
15574 <const name="OnCPUChanged" value="60">
15575 <desc>
15576 See <link to="ICPUChangedEvent">ICPUChangedEvent</link>.
15577 </desc>
15578 </const>
15579 <const name="OnVRDEServerInfoChanged" value="61">
15580 <desc>
15581 See <link to="IVRDEServerInfoChangedEvent">IVRDEServerInfoChangedEvent</link>.
15582 </desc>
15583 </const>
15584 <const name="OnEventSourceChanged" value="62">
15585 <desc>
15586 See <link to="IEventSourceChangedEvent">IEventSourceChangedEvent</link>.
15587 </desc>
15588 </const>
15589 <const name="OnCPUExecutionCapChanged" value="63">
15590 <desc>
15591 See <link to="ICPUExecutionCapChangedEvent">ICPUExecutionCapChangedEvent</link>.
15592 </desc>
15593 </const>
15594 <const name="OnGuestKeyboard" value="64">
15595 <desc>
15596 See <link to="IGuestKeyboardEvent">IGuestKeyboardEvent</link>.
15597 </desc>
15598 </const>
15599 <const name="OnGuestMouse" value="65">
15600 <desc>
15601 See <link to="IGuestMouseEvent">IGuestMouseEvent</link>.
15602 </desc>
15603 </const>
15604 <const name="OnNATRedirect" value="66">
15605 <desc>
15606 See <link to="INATRedirectEvent">INATRedirectEvent</link>.
15607 </desc>
15608 </const>
15609 <const name="OnHostPciDevicePlug" value="67">
15610 <desc>
15611 See <link to="IHostPciDevicePlugEvent">IHostPciDevicePlugEvent</link>.
15612 </desc>
15613 </const>
15614 <const name="OnVBoxSVCAvailabilityChanged" value="68">
15615 <desc>
15616 See <link to="IVBoxSVCAvailabilityChangedEvent">IVBoxSVCAvailablityChangedEvent</link>.
15617 </desc>
15618 </const>
15619 <const name="OnBandwidthGroupChanged" value="69">
15620 <desc>
15621 See <link to="IBandwidthGroupChangedEvent">IBandwidthGroupChangedEvent</link>.
15622 </desc>
15623 </const>
15624 <const name="OnGuestMonitorChanged" value="70">
15625 <desc>
15626 See <link to="IGuestMonitorChangedEvent">IGuestMonitorChangedEvent</link>.
15627 </desc>
15628 </const>
15629
15630 <!-- Last event marker -->
15631 <const name="Last" value="71">
15632 <desc>
15633 Must be last event, used for iterations and structures relying on numerical event values.
15634 </desc>
15635 </const>
15636
15637 </enum>
15638
15639 <interface
15640 name="IEventSource" extends="$unknown"
15641 uuid="9b6e1aee-35f3-4f4d-b5bb-ed0ecefd8538"
15642 wsmap="managed"
15643 >
15644 <desc>
15645 Event source. Generally, any object which could generate events can be an event source,
15646 or aggregate one. To simplify using one-way protocols such as webservices running on top of HTTP(S),
15647 an event source can work with listeners in either active or passive mode. In active mode it is up to
15648 the IEventSource implementation to call <link to="IEventListener::handleEvent" />, in passive mode the
15649 event source keeps track of pending events for each listener and returns available events on demand.
15650
15651 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
15652 </desc>
15653
15654 <method name="createListener">
15655 <desc>
15656 Creates a new listener object, useful for passive mode.
15657 </desc>
15658 <param name="listener" type="IEventListener" dir="return"/>
15659 </method>
15660
15661 <method name="createAggregator">
15662 <desc>
15663 Creates an aggregator event source, collecting events from multiple sources.
15664 This way a single listener can listen for events coming from multiple sources,
15665 using a single blocking getEvent() on the returned aggregator.
15666 </desc>
15667 <param name="subordinates" type="IEventSource" dir="in" safearray="yes">
15668 <desc>
15669 Subordinate event source this one aggregatres.
15670 </desc>
15671 </param>
15672 <param name="result" type="IEventSource" dir="return">
15673 <desc>
15674 Event source aggregating passed sources.
15675 </desc>
15676 </param>
15677 </method>
15678
15679 <method name="registerListener">
15680 <desc>
15681 Register an event listener.
15682
15683 <note>
15684 To avoid system overload, the VirtualBox server process checks if passive event
15685 listeners call <link to="IEventSource::getEvent"/> frequently enough. In the
15686 current implementation, if more than 500 pending events are detected for a passive
15687 event listener, it is forcefully unregistered by the system, and further
15688 <link to="#getEvent" /> calls will return @c VBOX_E_OBJECT_NOT_FOUND.
15689 </note>
15690 </desc>
15691 <param name="listener" type="IEventListener" dir="in">
15692 <desc>Listener to register.</desc>
15693 </param>
15694 <param name="interesting" type="VBoxEventType" dir="in" safearray="yes">
15695 <desc>
15696 Event types listener is interested in. One can use wildcards like -
15697 <link to="VBoxEventType_Any"/> to specify wildcards, matching more
15698 than one event.
15699 </desc>
15700 </param>
15701 <param name="active" type="boolean" dir="in">
15702 <desc>
15703 Which mode this listener is operating in.
15704 In active mode, <link to="IEventListener::handleEvent" /> is called directly.
15705 In passive mode, an internal event queue is created for this this IEventListener.
15706 For each event coming in, it is added to queues for all interested registered passive
15707 listeners. It is then up to the external code to call the listener's
15708 <link to="IEventListener::handleEvent" /> method. When done with an event, the
15709 external code must call <link to="#eventProcessed" />.
15710 </desc>
15711 </param>
15712 </method>
15713
15714 <method name="unregisterListener">
15715 <desc>
15716 Unregister an event listener. If listener is passive, and some waitable events are still
15717 in queue they are marked as processed automatically.
15718 </desc>
15719 <param name="listener" type="IEventListener" dir="in">
15720 <desc>Listener to unregister.</desc>
15721 </param>
15722 </method>
15723
15724 <method name="fireEvent">
15725 <desc>
15726 Fire an event for this source.
15727 </desc>
15728 <param name="event" type="IEvent" dir="in">
15729 <desc>Event to deliver.</desc>
15730 </param>
15731 <param name="timeout" type="long" dir="in">
15732 <desc>
15733 Maximum time to wait for event processing (if event is waitable), in ms;
15734 0 = no wait, -1 = indefinite wait.
15735 </desc>
15736 </param>
15737 <param name="result" type="boolean" dir="return">
15738 <desc>true if an event was delivered to all targets, or is non-waitable.</desc>
15739 </param>
15740 </method>
15741
15742 <method name="getEvent">
15743 <desc>
15744 Get events from this peer's event queue (for passive mode). Calling this method
15745 regularly is required for passive event listeners to avoid system overload;
15746 see <link to="IEventSource::registerListener" /> for details.
15747
15748 <result name="VBOX_E_OBJECT_NOT_FOUND">
15749 Listener is not registered, or autounregistered.
15750 </result>
15751 </desc>
15752 <param name="listener" type="IEventListener" dir="in">
15753 <desc>Which listener to get data for.</desc>
15754 </param>
15755 <param name="timeout" type="long" dir="in">
15756 <desc>
15757 Maximum time to wait for events, in ms;
15758 0 = no wait, -1 = indefinite wait.
15759 </desc>
15760 </param>
15761 <param name="event" type="IEvent" dir="return">
15762 <desc>Event retrieved, or null if none available.</desc>
15763 </param>
15764 </method>
15765
15766 <method name="eventProcessed">
15767 <desc>
15768 Must be called for waitable events after a particular listener finished its
15769 event processing. When all listeners of a particular event have called this
15770 method, the system will then call <link to="IEvent::setProcessed" />.
15771 </desc>
15772 <param name="listener" type="IEventListener" dir="in">
15773 <desc>Which listener processed event.</desc>
15774 </param>
15775 <param name="event" type="IEvent" dir="in">
15776 <desc>Which event.</desc>
15777 </param>
15778 </method>
15779
15780 </interface>
15781
15782 <interface
15783 name="IEventListener" extends="$unknown"
15784 uuid="67099191-32e7-4f6c-85ee-422304c71b90"
15785 wsmap="managed"
15786 >
15787 <desc>
15788 Event listener. An event listener can work in either active or passive mode, depending on the way
15789 it was registered.
15790 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
15791 </desc>
15792
15793 <method name="handleEvent">
15794 <desc>
15795 Handle event callback for active listeners. It is not called for passive listeners. After
15796 calling handleEvent() on all active listeners and having received acknowledgement from all
15797 passive listeners via IEventSource::eventProcessed(), the event is marked as processed and
15798 IEvent::waitProcessed() will return immediately.
15799 </desc>
15800 <param name="event" type="IEvent" dir="in">
15801 <desc>Event available.</desc>
15802 </param>
15803 </method>
15804
15805 </interface>
15806
15807 <interface
15808 name="IEvent" extends="$unknown"
15809 uuid="0ca2adba-8f30-401b-a8cd-fe31dbe839c0"
15810 wsmap="managed"
15811 >
15812 <desc>
15813 Abstract parent interface for VirtualBox events. Actual events will typically implement
15814 a more specific interface which derives from this (see below).
15815
15816 <b>Introduction to VirtualBox events</b>
15817
15818 Generally speaking, an event (represented by this interface) signals that something
15819 happened, while an event listener (see <link to="IEventListener" />) represents an
15820 entity that is interested in certain events. In order for this to work with
15821 unidirectional protocols (i.e. web services), the concepts of passive and active
15822 listener are used.
15823
15824 Event consumers can register themselves as listeners, providing an array of
15825 events they are interested in (see <link to="IEventSource::registerListener" />).
15826 When an event triggers, the listener is notified about the event. The exact
15827 mechanism of the notification depends on whether the listener was registered as
15828 an active or passive listener:
15829
15830 <ul>
15831 <li>An active listener is very similar to a callback: it is a function invoked
15832 by the API. As opposed to the callbacks that were used in the API before
15833 VirtualBox 4.0 however, events are now objects with an interface hierarchy.
15834 </li>
15835
15836 <li>Passive listeners are somewhat trickier to implement, but do not require
15837 a client function to be callable, which is not an option with scripting
15838 languages or web service clients. Internally the <link to="IEventSource" />
15839 implementation maintains an event queue for each passive listener, and
15840 newly arrived events are put in this queue. When the listener calls
15841 <link to="IEventSource::getEvent"/>, first element from its internal event
15842 queue is returned. When the client completes processing of an event,
15843 the <link to="IEventSource::eventProcessed" /> function must be called,
15844 acknowledging that the event was processed. It supports implementing
15845 waitable events. On passive listener unregistration, all events from its
15846 queue are auto-acknowledged.
15847 </li>
15848 </ul>
15849
15850 Waitable events are useful in situations where the event generator wants to track
15851 delivery or a party wants to wait until all listeners have completed the event. A
15852 typical example would be a vetoable event (see <link to="IVetoEvent" />) where a
15853 listeners might veto a certain action, and thus the event producer has to make
15854 sure that all listeners have processed the event and not vetoed before taking
15855 the action.
15856
15857 A given event may have both passive and active listeners at the same time.
15858
15859 <b>Using events</b>
15860
15861 Any VirtualBox object capable of producing externally visible events provides an
15862 @c eventSource read-only attribute, which is of the type <link to="IEventSource" />.
15863 This event source object is notified by VirtualBox once something has happened, so
15864 consumers may register event listeners with this event source. To register a listener,
15865 an object implementing the <link to="IEventListener" /> interface must be provided.
15866 For active listeners, such an object is typically created by the consumer, while for
15867 passive listeners <link to="IEventSource::createListener" /> should be used. Please
15868 note that a listener created with @c createListener() must not be used as an active listener.
15869
15870 Once created, the listener must be registered to listen for the desired events
15871 (see <link to="IEventSource::registerListener" />), providing an array of
15872 <link to="VBoxEventType" /> enums. Those elements can either be the individual
15873 event IDs or wildcards matching multiple event IDs.
15874
15875 After registration, the callback's <link to="IEventListener::handleEvent" /> method is
15876 called automatically when the event is triggered, while passive listeners have to call
15877 <link to="IEventSource::getEvent" /> and <link to="IEventSource::eventProcessed" /> in
15878 an event processing loop.
15879
15880 The IEvent interface is an abstract parent interface for all such VirtualBox events
15881 coming in. As a result, the standard use pattern inside <link to="IEventListener::handleEvent" />
15882 or the event processing loop is to check the <link to="#type" /> attribute of the event and
15883 then cast to the appropriate specific interface using @c QueryInterface().
15884 </desc>
15885
15886 <attribute name="type" readonly="yes" type="VBoxEventType">
15887 <desc>
15888 Event type.
15889 </desc>
15890 </attribute>
15891
15892 <attribute name="source" readonly="yes" type="IEventSource">
15893 <desc>
15894 Source of this event.
15895 </desc>
15896 </attribute>
15897
15898 <attribute name="waitable" readonly="yes" type="boolean">
15899 <desc>
15900 If we can wait for this event being processed. If false, waitProcessed() returns immediately,
15901 and setProcessed() doesn't make sense. Non-waitable events are generally better performing,
15902 as no additional overhead associated with waitability imposed.
15903 Waitable events are needed when one need to be able to wait for particular event processed,
15904 for example for vetoable changes, or if event refers to some resource which need to be kept immutable
15905 until all consumers confirmed events.
15906 </desc>
15907 </attribute>
15908
15909 <method name="setProcessed">
15910 <desc>
15911 Internal method called by the system when all listeners of a particular event have called
15912 <link to="IEventSource::eventProcessed" />. This should not be called by client code.
15913 </desc>
15914 </method>
15915
15916 <method name="waitProcessed">
15917 <desc>
15918 Wait until time outs, or this event is processed. Event must be waitable for this operation to have
15919 described semantics, for non-waitable returns true immediately.
15920 </desc>
15921 <param name="timeout" type="long" dir="in">
15922 <desc>
15923 Maximum time to wait for event processeing, in ms;
15924 0 = no wait, -1 = indefinite wait.
15925 </desc>
15926 </param>
15927 <param name="result" type="boolean" dir="return">
15928 <desc>If this event was processed before timeout.</desc>
15929 </param>
15930 </method>
15931 </interface>
15932
15933
15934 <interface
15935 name="IReusableEvent" extends="IEvent"
15936 uuid="69bfb134-80f6-4266-8e20-16371f68fa25"
15937 wsmap="managed"
15938 >
15939 <desc>Base abstract interface for all reusable events.</desc>
15940
15941 <attribute name="generation" readonly="yes" type="unsigned long">
15942 <desc>Current generation of event, incremented on reuse.</desc>
15943 </attribute>
15944
15945 <method name="reuse">
15946 <desc>
15947 Marks an event as reused, increments 'generation', fields shall no
15948 longer be considered valid.
15949 </desc>
15950 </method>
15951 </interface>
15952
15953 <interface
15954 name="IMachineEvent" extends="IEvent"
15955 uuid="92ed7b1a-0d96-40ed-ae46-a564d484325e"
15956 wsmap="managed" id="MachineEvent"
15957 >
15958 <desc>Base abstract interface for all machine events.</desc>
15959
15960 <attribute name="machineId" readonly="yes" type="uuid" mod="string">
15961 <desc>ID of the machine this event relates to.</desc>
15962 </attribute>
15963
15964 </interface>
15965
15966 <interface
15967 name="IMachineStateChangedEvent" extends="IMachineEvent"
15968 uuid="5748F794-48DF-438D-85EB-98FFD70D18C9"
15969 wsmap="managed" autogen="VBoxEvent" id="OnMachineStateChanged"
15970 >
15971 <desc>Machine state change event.</desc>
15972
15973 <attribute name="state" readonly="yes" type="MachineState">
15974 <desc>New execution state.</desc>
15975 </attribute>
15976 </interface>
15977
15978 <interface
15979 name="IMachineDataChangedEvent" extends="IMachineEvent"
15980 uuid="6AA70A6C-0DCA-4810-8C5C-457B278E3D49"
15981 wsmap="managed" autogen="VBoxEvent" id="OnMachineDataChanged"
15982 >
15983 <desc>
15984 Any of the settings of the given machine has changed.
15985 </desc>
15986 </interface>
15987
15988 <interface
15989 name="IMediumRegisteredEvent" extends="IEvent"
15990 uuid="53fac49a-b7f1-4a5a-a4ef-a11dd9c2a458"
15991 wsmap="managed" autogen="VBoxEvent" id="OnMediumRegistered"
15992 >
15993 <desc>
15994 The given medium was registered or unregistered
15995 within this VirtualBox installation.
15996 </desc>
15997
15998 <attribute name="mediumId" readonly="yes" type="uuid" mod="string">
15999 <desc>ID of the medium this event relates to.</desc>
16000 </attribute>
16001
16002 <attribute name="mediumType" readonly="yes" type="DeviceType">
16003 <desc>Type of the medium this event relates to.</desc>
16004 </attribute>
16005
16006 <attribute name="registered" type="boolean" readonly="yes">
16007 <desc>
16008 If @c true, the medium was registered, otherwise it was
16009 unregistered.
16010 </desc>
16011 </attribute>
16012 </interface>
16013
16014 <interface
16015 name="IMachineRegisteredEvent" extends="IMachineEvent"
16016 uuid="c354a762-3ff2-4f2e-8f09-07382ee25088"
16017 wsmap="managed" autogen="VBoxEvent" id="OnMachineRegistered"
16018 >
16019 <desc>
16020 The given machine was registered or unregistered
16021 within this VirtualBox installation.
16022 </desc>
16023
16024 <attribute name="registered" type="boolean" readonly="yes">
16025 <desc>
16026 If @c true, the machine was registered, otherwise it was
16027 unregistered.
16028 </desc>
16029 </attribute>
16030 </interface>
16031
16032 <interface
16033 name="ISessionStateChangedEvent" extends="IMachineEvent"
16034 uuid="714a3eef-799a-4489-86cd-fe8e45b2ff8e"
16035 wsmap="managed" autogen="VBoxEvent" id="OnSessionStateChanged"
16036 >
16037 <desc>
16038 The state of the session for the given machine was changed.
16039 <see>IMachine::sessionState</see>
16040 </desc>
16041
16042 <attribute name="state" type="SessionState" readonly="yes">
16043 <desc>
16044 New session state.
16045 </desc>
16046 </attribute>
16047 </interface>
16048
16049 <interface
16050 name="IGuestPropertyChangedEvent" extends="IMachineEvent"
16051 uuid="3f63597a-26f1-4edb-8dd2-6bddd0912368"
16052 wsmap="managed" autogen="VBoxEvent" id="OnGuestPropertyChanged"
16053 >
16054 <desc>
16055 Notification when a guest property has changed.
16056 </desc>
16057
16058 <attribute name="name" readonly="yes" type="wstring">
16059 <desc>
16060 The name of the property that has changed.
16061 </desc>
16062 </attribute>
16063
16064 <attribute name="value" readonly="yes" type="wstring">
16065 <desc>
16066 The new property value.
16067 </desc>
16068 </attribute>
16069
16070 <attribute name="flags" readonly="yes" type="wstring">
16071 <desc>
16072 The new property flags.
16073 </desc>
16074 </attribute>
16075
16076 </interface>
16077
16078 <interface
16079 name="ISnapshotEvent" extends="IMachineEvent"
16080 uuid="21637b0e-34b8-42d3-acfb-7e96daf77c22"
16081 wsmap="managed" id="SnapshotEvent"
16082 >
16083 <desc>Base interface for all snapshot events.</desc>
16084
16085 <attribute name="snapshotId" readonly="yes" type="uuid" mod="string">
16086 <desc>ID of the snapshot this event relates to.</desc>
16087 </attribute>
16088
16089 </interface>
16090
16091 <interface
16092 name="ISnapshotTakenEvent" extends="ISnapshotEvent"
16093 uuid="d27c0b3d-6038-422c-b45e-6d4a0503d9f1"
16094 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotTaken"
16095 >
16096 <desc>
16097 A new snapshot of the machine has been taken.
16098 <see>ISnapshot</see>
16099 </desc>
16100 </interface>
16101
16102 <interface
16103 name="ISnapshotDeletedEvent" extends="ISnapshotEvent"
16104 uuid="c48f3401-4a9e-43f4-b7a7-54bd285e22f4"
16105 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotDeleted"
16106 >
16107 <desc>
16108 Snapshot of the given machine has been deleted.
16109
16110 <note>
16111 This notification is delivered <b>after</b> the snapshot
16112 object has been uninitialized on the server (so that any
16113 attempt to call its methods will return an error).
16114 </note>
16115
16116 <see>ISnapshot</see>
16117 </desc>
16118 </interface>
16119
16120 <interface
16121 name="ISnapshotChangedEvent" extends="ISnapshotEvent"
16122 uuid="07541941-8079-447a-a33e-47a69c7980db"
16123 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotChanged"
16124 >
16125 <desc>
16126 Snapshot properties (name and/or description) have been changed.
16127 <see>ISnapshot</see>
16128 </desc>
16129 </interface>
16130
16131 <interface
16132 name="IMousePointerShapeChangedEvent" extends="IEvent"
16133 uuid="a6dcf6e8-416b-4181-8c4a-45ec95177aef"
16134 wsmap="managed" autogen="VBoxEvent" id="OnMousePointerShapeChanged"
16135 >
16136 <desc>
16137 Notification when the guest mouse pointer shape has
16138 changed. The new shape data is given.
16139 </desc>
16140
16141 <attribute name="visible" type="boolean" readonly="yes">
16142 <desc>
16143 Flag whether the pointer is visible.
16144 </desc>
16145 </attribute>
16146 <attribute name="alpha" type="boolean" readonly="yes">
16147 <desc>
16148 Flag whether the pointer has an alpha channel.
16149 </desc>
16150 </attribute>
16151 <attribute name="xhot" type="unsigned long" readonly="yes">
16152 <desc>
16153 The pointer hot spot X coordinate.
16154 </desc>
16155 </attribute>
16156 <attribute name="yhot" type="unsigned long" readonly="yes">
16157 <desc>
16158 The pointer hot spot Y coordinate.
16159 </desc>
16160 </attribute>
16161 <attribute name="width" type="unsigned long" readonly="yes">
16162 <desc>
16163 Width of the pointer shape in pixels.
16164 </desc>
16165 </attribute>
16166 <attribute name="height" type="unsigned long" readonly="yes">
16167 <desc>
16168 Height of the pointer shape in pixels.
16169 </desc>
16170 </attribute>
16171 <attribute name="shape" type="octet" safearray="yes" readonly="yes">
16172 <desc>
16173 Shape buffer arrays.
16174
16175 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
16176 followed by a 32-bpp XOR (color) mask.
16177
16178 For pointers without alpha channel the XOR mask pixels are 32
16179 bit values: (lsb)BGR0(msb). For pointers with alpha channel
16180 the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
16181
16182 An AND mask is used for pointers with alpha channel, so if the
16183 callback does not support alpha, the pointer could be
16184 displayed as a normal color pointer.
16185
16186 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
16187 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
16188 height</tt>. The padding bits at the end of each scanline are
16189 undefined.
16190
16191 The XOR mask follows the AND mask on the next 4-byte aligned
16192 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
16193 Bytes in the gap between the AND and the XOR mask are undefined.
16194 The XOR mask scanlines have no gap between them and the size of
16195 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
16196
16197 <note>
16198 If @a shape is 0, only the pointer visibility is changed.
16199 </note>
16200 </desc>
16201 </attribute>
16202 </interface>
16203
16204 <interface
16205 name="IMouseCapabilityChangedEvent" extends="IEvent"
16206 uuid="d633ad48-820c-4207-b46c-6bd3596640d5"
16207 wsmap="managed" autogen="VBoxEvent" id="OnMouseCapabilityChanged"
16208 >
16209 <desc>
16210 Notification when the mouse capabilities reported by the
16211 guest have changed. The new capabilities are passed.
16212 </desc>
16213 <attribute name="supportsAbsolute" type="boolean" readonly="yes">
16214 <desc>
16215 Supports absolute coordinates.
16216 </desc>
16217 </attribute>
16218 <attribute name="supportsRelative" type="boolean" readonly="yes">
16219 <desc>
16220 Supports relative coordinates.
16221 </desc>
16222 </attribute>
16223 <attribute name="needsHostCursor" type="boolean" readonly="yes">
16224 <desc>
16225 If host cursor is needed.
16226 </desc>
16227 </attribute>
16228 </interface>
16229
16230 <interface
16231 name="IKeyboardLedsChangedEvent" extends="IEvent"
16232 uuid="6DDEF35E-4737-457B-99FC-BC52C851A44F"
16233 wsmap="managed" autogen="VBoxEvent" id="OnKeyboardLedsChanged"
16234 >
16235 <desc>
16236 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
16237 to alter the state of the keyboard LEDs.
16238 </desc>
16239 <attribute name="numLock" type="boolean" readonly="yes">
16240 <desc>
16241 NumLock status.
16242 </desc>
16243 </attribute>
16244 <attribute name="capsLock" type="boolean" readonly="yes">
16245 <desc>
16246 CapsLock status.
16247 </desc>
16248 </attribute>
16249 <attribute name="scrollLock" type="boolean" readonly="yes">
16250 <desc>
16251 ScrollLock status.
16252 </desc>
16253 </attribute>
16254 </interface>
16255
16256 <interface
16257 name="IStateChangedEvent" extends="IEvent"
16258 uuid="4376693C-CF37-453B-9289-3B0F521CAF27"
16259 wsmap="managed" autogen="VBoxEvent" id="OnStateChanged"
16260 >
16261 <desc>
16262 Notification when the execution state of the machine has changed.
16263 The new state is given.
16264 </desc>
16265 <attribute name="state" type="MachineState" readonly="yes">
16266 <desc>
16267 New machine state.
16268 </desc>
16269 </attribute>
16270 </interface>
16271
16272 <interface
16273 name="IAdditionsStateChangedEvent" extends="IEvent"
16274 uuid="D70F7915-DA7C-44C8-A7AC-9F173490446A"
16275 wsmap="managed" autogen="VBoxEvent" id="OnAdditionsStateChanged"
16276 >
16277 <desc>
16278 Notification when a Guest Additions property changes.
16279 Interested callees should query IGuest attributes to
16280 find out what has changed.
16281 </desc>
16282 </interface>
16283
16284 <interface
16285 name="INetworkAdapterChangedEvent" extends="IEvent"
16286 uuid="08889892-1EC6-4883-801D-77F56CFD0103"
16287 wsmap="managed" autogen="VBoxEvent" id="OnNetworkAdapterChanged"
16288 >
16289 <desc>
16290 Notification when a property of one of the
16291 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
16292 changes. Interested callees should use INetworkAdapter methods and
16293 attributes to find out what has changed.
16294 </desc>
16295 <attribute name="networkAdapter" type="INetworkAdapter" readonly="yes">
16296 <desc>
16297 Network adapter that is subject to change.
16298 </desc>
16299 </attribute>
16300 </interface>
16301
16302 <interface
16303 name="ISerialPortChangedEvent" extends="IEvent"
16304 uuid="3BA329DC-659C-488B-835C-4ECA7AE71C6C"
16305 wsmap="managed" autogen="VBoxEvent" id="OnSerialPortChanged"
16306 >
16307 <desc>
16308 Notification when a property of one of the
16309 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
16310 Interested callees should use ISerialPort methods and attributes
16311 to find out what has changed.
16312 </desc>
16313 <attribute name="serialPort" type="ISerialPort" readonly="yes">
16314 <desc>
16315 Serial port that is subject to change.
16316 </desc>
16317 </attribute>
16318 </interface>
16319
16320 <interface
16321 name="IParallelPortChangedEvent" extends="IEvent"
16322 uuid="813C99FC-9849-4F47-813E-24A75DC85615"
16323 wsmap="managed" autogen="VBoxEvent" id="OnParallelPortChanged"
16324 >
16325 <desc>
16326 Notification when a property of one of the
16327 virtual <link to="IMachine::getParallelPort">parallel ports</link>
16328 changes. Interested callees should use ISerialPort methods and
16329 attributes to find out what has changed.
16330 </desc>
16331 <attribute name="parallelPort" type="IParallelPort" readonly="yes">
16332 <desc>
16333 Parallel port that is subject to change.
16334 </desc>
16335 </attribute>
16336 </interface>
16337
16338 <interface
16339 name="IStorageControllerChangedEvent" extends="IEvent"
16340 uuid="715212BF-DA59-426E-8230-3831FAA52C56"
16341 wsmap="managed" autogen="VBoxEvent" id="OnStorageControllerChanged"
16342 >
16343 <desc>
16344 Notification when a
16345 <link to="IMachine::mediumAttachments">medium attachment</link>
16346 changes.
16347 </desc>
16348 </interface>
16349
16350 <interface
16351 name="IMediumChangedEvent" extends="IEvent"
16352 uuid="0FE2DA40-5637-472A-9736-72019EABD7DE"
16353 wsmap="managed" autogen="VBoxEvent" id="OnMediumChanged"
16354 >
16355 <desc>
16356 Notification when a
16357 <link to="IMachine::mediumAttachments">medium attachment</link>
16358 changes.
16359 </desc>
16360 <attribute name="mediumAttachment" type="IMediumAttachment" readonly="yes">
16361 <desc>
16362 Medium attachment that is subject to change.
16363 </desc>
16364 </attribute>
16365 </interface>
16366
16367 <interface
16368 name="ICPUChangedEvent" extends="IEvent"
16369 uuid="D0F0BECC-EE17-4D17-A8CC-383B0EB55E9D"
16370 wsmap="managed" autogen="VBoxEvent" id="OnCPUChanged"
16371 >
16372 <desc>
16373 Notification when a CPU changes.
16374 </desc>
16375 <attribute name="cpu" type="unsigned long" readonly="yes">
16376 <desc>
16377 The CPU which changed.
16378 </desc>
16379 </attribute>
16380 <attribute name="add" type="boolean" readonly="yes">
16381 <desc>
16382 Flag whether the CPU was added or removed.
16383 </desc>
16384 </attribute>
16385 </interface>
16386
16387 <interface
16388 name="ICPUExecutionCapChangedEvent" extends="IEvent"
16389 uuid="dfa7e4f5-b4a4-44ce-85a8-127ac5eb59dc"
16390 wsmap="managed" autogen="VBoxEvent" id="OnCPUExecutionCapChanged"
16391 >
16392 <desc>
16393 Notification when the CPU execution cap changes.
16394 </desc>
16395 <attribute name="executionCap" type="unsigned long" readonly="yes">
16396 <desc>
16397 The new CPU execution cap value. (1-100)
16398 </desc>
16399 </attribute>
16400 </interface>
16401
16402 <interface
16403 name="IGuestKeyboardEvent" extends="IEvent"
16404 uuid="88394258-7006-40d4-b339-472ee3801844"
16405 wsmap="managed" autogen="VBoxEvent" id="OnGuestKeyboard"
16406 >
16407 <desc>
16408 Notification when guest keyboard event happens.
16409 </desc>
16410 <attribute name="scancodes" type="long" safearray="yes" readonly="yes">
16411 <desc>
16412 Array of scancodes.
16413 </desc>
16414 </attribute>
16415 </interface>
16416
16417 <interface
16418 name="IGuestMouseEvent" extends="IReusableEvent"
16419 uuid="1f85d35c-c524-40ff-8e98-307000df0992"
16420 wsmap="managed" autogen="VBoxEvent" id="OnGuestMouse"
16421 >
16422 <desc>
16423 Notification when guest mouse event happens.
16424 </desc>
16425
16426 <attribute name="absolute" type="boolean" readonly="yes">
16427 <desc>
16428 If this event is relative or absolute.
16429 </desc>
16430 </attribute>
16431
16432 <attribute name="x" type="long" readonly="yes">
16433 <desc>
16434 New X position, or X delta.
16435 </desc>
16436 </attribute>
16437
16438 <attribute name="y" type="long" readonly="yes">
16439 <desc>
16440 New Y position, or Y delta.
16441 </desc>
16442 </attribute>
16443
16444 <attribute name="z" type="long" readonly="yes">
16445 <desc>
16446 Z delta.
16447 </desc>
16448 </attribute>
16449
16450 <attribute name="w" type="long" readonly="yes">
16451 <desc>
16452 W delta.
16453 </desc>
16454 </attribute>
16455
16456 <attribute name="buttons" type="long" readonly="yes">
16457 <desc>
16458 Button state bitmask.
16459 </desc>
16460 </attribute>
16461
16462 </interface>
16463
16464
16465 <interface
16466 name="IVRDEServerChangedEvent" extends="IEvent"
16467 uuid="a06fd66a-3188-4c8c-8756-1395e8cb691c"
16468 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerChanged"
16469 >
16470 <desc>
16471 Notification when a property of the
16472 <link to="IMachine::VRDEServer">VRDE server</link> changes.
16473 Interested callees should use IVRDEServer methods and attributes to
16474 find out what has changed.
16475 </desc>
16476 </interface>
16477
16478 <interface
16479 name="IVRDEServerInfoChangedEvent" extends="IEvent"
16480 uuid="dd6a1080-e1b7-4339-a549-f0878115596e"
16481 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerInfoChanged"
16482 >
16483 <desc>
16484 Notification when the status of the VRDE server changes. Interested callees
16485 should use <link to="IConsole::VRDEServerInfo">IVRDEServerInfo</link>
16486 attributes to find out what is the current status.
16487 </desc>
16488 </interface>
16489
16490 <interface
16491 name="IUSBControllerChangedEvent" extends="IEvent"
16492 uuid="93BADC0C-61D9-4940-A084-E6BB29AF3D83"
16493 wsmap="managed" autogen="VBoxEvent" id="OnUSBControllerChanged"
16494 >
16495 <desc>
16496 Notification when a property of the virtual
16497 <link to="IMachine::USBController">USB controller</link> changes.
16498 Interested callees should use IUSBController methods and attributes to
16499 find out what has changed.
16500 </desc>
16501 </interface>
16502
16503 <interface
16504 name="IUSBDeviceStateChangedEvent" extends="IEvent"
16505 uuid="806da61b-6679-422a-b629-51b06b0c6d93"
16506 wsmap="managed" autogen="VBoxEvent" id="OnUSBDeviceStateChanged"
16507 >
16508 <desc>
16509 Notification when a USB device is attached to or detached from
16510 the virtual USB controller.
16511
16512 This notification is sent as a result of the indirect
16513 request to attach the device because it matches one of the
16514 machine USB filters, or as a result of the direct request
16515 issued by <link to="IConsole::attachUSBDevice"/> or
16516 <link to="IConsole::detachUSBDevice"/>.
16517
16518 This notification is sent in case of both a succeeded and a
16519 failed request completion. When the request succeeds, the
16520 @a error parameter is @c null, and the given device has been
16521 already added to (when @a attached is @c true) or removed from
16522 (when @a attached is @c false) the collection represented by
16523 <link to="IConsole::USBDevices"/>. On failure, the collection
16524 doesn't change and the @a error parameter represents the error
16525 message describing the failure.
16526 </desc>
16527 <attribute name="device" type="IUSBDevice" readonly="yes">
16528 <desc>
16529 Device that is subject to state change.
16530 </desc>
16531 </attribute>
16532 <attribute name="attached" type="boolean" readonly="yes">
16533 <desc>
16534 @c true if the device was attached and @c false otherwise.
16535 </desc>
16536 </attribute>
16537 <attribute name="error" type="IVirtualBoxErrorInfo" readonly="yes">
16538 <desc>
16539 @c null on success or an error message object on failure.
16540 </desc>
16541 </attribute>
16542 </interface>
16543
16544 <interface
16545 name="ISharedFolderChangedEvent" extends="IEvent"
16546 uuid="B66349B5-3534-4239-B2DE-8E1535D94C0B"
16547 wsmap="managed" autogen="VBoxEvent" id="OnSharedFolderChanged"
16548 >
16549 <desc>
16550 Notification when a shared folder is added or removed.
16551 The @a scope argument defines one of three scopes:
16552 <link to="IVirtualBox::sharedFolders">global shared folders</link>
16553 (<link to="Scope_Global">Global</link>),
16554 <link to="IMachine::sharedFolders">permanent shared folders</link> of
16555 the machine (<link to="Scope_Machine">Machine</link>) or <link
16556 to="IConsole::sharedFolders">transient shared folders</link> of the
16557 machine (<link to="Scope_Session">Session</link>). Interested callees
16558 should use query the corresponding collections to find out what has
16559 changed.
16560 </desc>
16561 <attribute name="scope" type="Scope" readonly="yes">
16562 <desc>
16563 Scope of the notification.
16564 </desc>
16565 </attribute>
16566 </interface>
16567
16568 <interface
16569 name="IRuntimeErrorEvent" extends="IEvent"
16570 uuid="883DD18B-0721-4CDE-867C-1A82ABAF914C"
16571 wsmap="managed" autogen="VBoxEvent" id="OnRuntimeError"
16572 >
16573 <desc>
16574 Notification when an error happens during the virtual
16575 machine execution.
16576
16577 There are three kinds of runtime errors:
16578 <ul>
16579 <li><i>fatal</i></li>
16580 <li><i>non-fatal with retry</i></li>
16581 <li><i>non-fatal warnings</i></li>
16582 </ul>
16583
16584 <b>Fatal</b> errors are indicated by the @a fatal parameter set
16585 to @c true. In case of fatal errors, the virtual machine
16586 execution is always paused before calling this notification, and
16587 the notification handler is supposed either to immediately save
16588 the virtual machine state using <link to="IConsole::saveState"/>
16589 or power it off using <link to="IConsole::powerDown"/>.
16590 Resuming the execution can lead to unpredictable results.
16591
16592 <b>Non-fatal</b> errors and warnings are indicated by the
16593 @a fatal parameter set to @c false. If the virtual machine
16594 is in the Paused state by the time the error notification is
16595 received, it means that the user can <i>try to resume</i> the machine
16596 execution after attempting to solve the problem that caused the
16597 error. In this case, the notification handler is supposed
16598 to show an appropriate message to the user (depending on the
16599 value of the @a id parameter) that offers several actions such
16600 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
16601 wants to retry, the notification handler should continue
16602 the machine execution using the <link to="IConsole::resume"/>
16603 call. If the machine execution is not Paused during this
16604 notification, then it means this notification is a <i>warning</i>
16605 (for example, about a fatal condition that can happen very soon);
16606 no immediate action is required from the user, the machine
16607 continues its normal execution.
16608
16609 Note that in either case the notification handler
16610 <b>must not</b> perform any action directly on a thread
16611 where this notification is called. Everything it is allowed to
16612 do is to post a message to another thread that will then talk
16613 to the user and take the corresponding action.
16614
16615 Currently, the following error identifiers are known:
16616 <ul>
16617 <li><tt>"HostMemoryLow"</tt></li>
16618 <li><tt>"HostAudioNotResponding"</tt></li>
16619 <li><tt>"VDIStorageFull"</tt></li>
16620 <li><tt>"3DSupportIncompatibleAdditions"</tt></li>
16621 </ul>
16622 </desc>
16623 <attribute name="fatal" type="boolean" readonly="yes">
16624 <desc>
16625 Whether the error is fatal or not.
16626 </desc>
16627 </attribute>
16628 <attribute name="id" type="wstring" readonly="yes">
16629 <desc>
16630 Error identifier.
16631 </desc>
16632 </attribute>
16633 <attribute name="message" type="wstring" readonly="yes">
16634 <desc>
16635 Optional error message.
16636 </desc>
16637 </attribute>
16638 </interface>
16639
16640
16641 <interface
16642 name="IEventSourceChangedEvent" extends="IEvent"
16643 uuid="e7932cb8-f6d4-4ab6-9cbf-558eb8959a6a"
16644 waitable="yes"
16645 wsmap="managed" autogen="VBoxEvent" id="OnEventSourceChanged"
16646 >
16647 <desc>
16648 Notification when an event source state changes (listener added or removed).
16649 </desc>
16650
16651 <attribute name="listener" type="IEventListener" readonly="yes">
16652 <desc>
16653 Event listener which has changed.
16654 </desc>
16655 </attribute>
16656
16657 <attribute name="add" type="boolean" readonly="yes">
16658 <desc>
16659 Flag whether listener was added or removed.
16660 </desc>
16661 </attribute>
16662 </interface>
16663
16664 <interface
16665 name="IExtraDataChangedEvent" extends="IEvent"
16666 uuid="024F00CE-6E0B-492A-A8D0-968472A94DC7"
16667 wsmap="managed" autogen="VBoxEvent" id="OnExtraDataChanged"
16668 >
16669 <desc>
16670 Notification when machine specific or global extra data
16671 has changed.
16672 </desc>
16673 <attribute name="machineId" type="uuid" mod="string" readonly="yes">
16674 <desc>
16675 ID of the machine this event relates to.
16676 Null for global extra data changes.
16677 </desc>
16678 </attribute>
16679 <attribute name="key" type="wstring" readonly="yes">
16680 <desc>
16681 Extra data key that has changed.
16682 </desc>
16683 </attribute>
16684 <attribute name="value" type="wstring" readonly="yes">
16685 <desc>
16686 Extra data value for the given key.
16687 </desc>
16688 </attribute>
16689 </interface>
16690
16691 <interface
16692 name="IVetoEvent" extends="IEvent"
16693 uuid="9a1a4130-69fe-472f-ac10-c6fa25d75007"
16694 wsmap="managed"
16695 >
16696 <desc>Base abstract interface for veto events.</desc>
16697
16698 <method name="addVeto">
16699 <desc>
16700 Adds a veto on this event.
16701 </desc>
16702 <param name="reason" type="wstring" dir="in">
16703 <desc>
16704 Reason for veto, could be null or empty string.
16705 </desc>
16706 </param>
16707 </method>
16708
16709 <method name="isVetoed">
16710 <desc>
16711 If this event was vetoed.
16712 </desc>
16713 <param name="result" type="boolean" dir="return">
16714 <desc>
16715 Reason for veto.
16716 </desc>
16717 </param>
16718 </method>
16719
16720 <method name="getVetos">
16721 <desc>
16722 Current veto reason list, if size is 0 - no veto.
16723 </desc>
16724 <param name="result" type="wstring" dir="return" safearray="yes">
16725 <desc>
16726 Array of reasons for veto provided by different event handlers.
16727 </desc>
16728 </param>
16729 </method>
16730
16731 </interface>
16732
16733 <interface
16734 name="IExtraDataCanChangeEvent" extends="IVetoEvent"
16735 uuid="245d88bd-800a-40f8-87a6-170d02249a55"
16736 wsmap="managed" autogen="VBoxEvent" id="OnExtraDataCanChange"
16737 waitable="true"
16738 >
16739 <desc>
16740 Notification when someone tries to change extra data for
16741 either the given machine or (if @c null) global extra data.
16742 This gives the chance to veto against changes.
16743 </desc>
16744 <attribute name="machineId" type="uuid" mod="string" readonly="yes">
16745 <desc>
16746 ID of the machine this event relates to.
16747 Null for global extra data changes.
16748 </desc>
16749 </attribute>
16750 <attribute name="key" type="wstring" readonly="yes">
16751 <desc>
16752 Extra data key that has changed.
16753 </desc>
16754 </attribute>
16755 <attribute name="value" type="wstring" readonly="yes">
16756 <desc>
16757 Extra data value for the given key.
16758 </desc>
16759 </attribute>
16760 </interface>
16761
16762 <interface
16763 name="ICanShowWindowEvent" extends="IVetoEvent"
16764 uuid="adf292b0-92c9-4a77-9d35-e058b39fe0b9"
16765 wsmap="managed" autogen="VBoxEvent" id="OnCanShowWindow"
16766 waitable="true"
16767 >
16768 <desc>
16769 Notification when a call to
16770 <link to="IMachine::canShowConsoleWindow"/> is made by a
16771 front-end to check if a subsequent call to
16772 <link to="IMachine::showConsoleWindow"/> can succeed.
16773
16774 The callee should give an answer appropriate to the current
16775 machine state using event veto. This answer must
16776 remain valid at least until the next
16777 <link to="IConsole::state">machine state</link> change.
16778 </desc>
16779 </interface>
16780
16781 <interface
16782 name="IShowWindowEvent" extends="IEvent"
16783 uuid="B0A0904D-2F05-4D28-855F-488F96BAD2B2"
16784 wsmap="managed" autogen="VBoxEvent" id="OnShowWindow"
16785 waitable="true"
16786 >
16787 <desc>
16788 Notification when a call to
16789 <link to="IMachine::showConsoleWindow"/>
16790 requests the console window to be activated and brought to
16791 foreground on the desktop of the host PC.
16792
16793 This notification should cause the VM console process to
16794 perform the requested action as described above. If it is
16795 impossible to do it at a time of this notification, this
16796 method should return a failure.
16797
16798 Note that many modern window managers on many platforms
16799 implement some sort of focus stealing prevention logic, so
16800 that it may be impossible to activate a window without the
16801 help of the currently active application (which is supposedly
16802 an initiator of this notification). In this case, this method
16803 must return a non-zero identifier that represents the
16804 top-level window of the VM console process. The caller, if it
16805 represents a currently active process, is responsible to use
16806 this identifier (in a platform-dependent manner) to perform
16807 actual window activation.
16808
16809 This method must set @a winId to zero if it has performed all
16810 actions necessary to complete the request and the console
16811 window is now active and in foreground, to indicate that no
16812 further action is required on the caller's side.
16813 </desc>
16814 <attribute name="winId" type="long long">
16815 <desc>
16816 Platform-dependent identifier of the top-level VM console
16817 window, or zero if this method has performed all actions
16818 necessary to implement the <i>show window</i> semantics for
16819 the given platform and/or this VirtualBox front-end.
16820 </desc>
16821 </attribute>
16822 </interface>
16823
16824 <interface
16825 name="INATRedirectEvent" extends="IMachineEvent"
16826 uuid="57DE97D7-3CBB-42A0-888F-610D5832D16B"
16827 wsmap="managed" autogen="VBoxEvent" id="OnNATRedirect"
16828 >
16829 <desc>
16830 Notification when NAT redirect rule added or removed.
16831 </desc>
16832 <attribute name="slot" type="unsigned long" readonly="yes">
16833 <desc>
16834 Adapter which NAT attached to.
16835 </desc>
16836 </attribute>
16837 <attribute name="remove" type="boolean" readonly="yes">
16838 <desc>
16839 Whether rule remove or add.
16840 </desc>
16841 </attribute>
16842 <attribute name="name" type="wstring" readonly="yes">
16843 <desc>
16844 Name of the rule.
16845 </desc>
16846 </attribute>
16847 <attribute name="proto" type="NATProtocol" readonly="yes">
16848 <desc>
16849 Protocol (TCP or UDP) of the redirect rule.
16850 </desc>
16851 </attribute>
16852 <attribute name="hostIp" type="wstring" readonly="yes">
16853 <desc>
16854 Host ip address to bind socket on.
16855 </desc>
16856 </attribute>
16857 <attribute name="hostPort" type="long" readonly="yes">
16858 <desc>
16859 Host port to bind socket on.
16860 </desc>
16861 </attribute>
16862 <attribute name="guestIp" type="wstring" readonly="yes">
16863 <desc>
16864 Guest ip address to redirect to.
16865 </desc>
16866 </attribute>
16867 <attribute name="guestPort" type="long" readonly="yes">
16868 <desc>
16869 Guest port to redirect to.
16870 </desc>
16871 </attribute>
16872 </interface>
16873
16874 <interface
16875 name="IHostPciDevicePlugEvent" extends="IMachineEvent"
16876 waitable="yes"
16877 uuid="9cebfc27-c579-4965-8eb7-d31794cd7dcf"
16878 wsmap="managed" autogen="VBoxEvent" id="OnHostPciDevicePlug"
16879 >
16880 <desc>
16881 Notification when host PCI device is plugged/unplugged. Plugging
16882 usually takes place on VM startup, unplug - when
16883 IMachine::DetachHostPciDevice is called.
16884
16885 <see>IMachine::DetachHostPciDevice</see>
16886
16887 </desc>
16888
16889 <attribute name="plugged" type="boolean" readonly="yes">
16890 <desc>
16891 If device successfully plugged or unplugged.
16892 </desc>
16893 </attribute>
16894
16895 <attribute name="success" type="boolean" readonly="yes">
16896 <desc>
16897 If operation was successful, if false - 'message' attribute
16898 may be of interest.
16899 </desc>
16900 </attribute>
16901
16902 <attribute name="attachment" type="IPciDeviceAttachment" readonly="yes">
16903 <desc>
16904 Attachment info for this device.
16905 </desc>
16906 </attribute>
16907
16908 <attribute name="message" type="wstring" readonly="yes">
16909 <desc>
16910 Optional error message.
16911 </desc>
16912 </attribute>
16913
16914 </interface>
16915
16916 <interface
16917 name="IVBoxSVCAvailabilityChangedEvent" extends="IEvent"
16918 uuid="97c78fcd-d4fc-485f-8613-5af88bfcfcdc"
16919 wsmap="managed" autogen="VBoxEvent" id="OnVBoxSVCAvailabilityChanged"
16920 >
16921 <desc>
16922 Notification when VBoxSVC becomes unavailable (due to a crash or similar
16923 unexpected circumstances) or available again.
16924 </desc>
16925
16926 <attribute name="available" type="boolean" readonly="yes">
16927 <desc>
16928 Whether VBoxSVC is available now.
16929 </desc>
16930 </attribute>
16931 </interface>
16932
16933 <interface
16934 name="IBandwidthGroupChangedEvent" extends="IEvent"
16935 uuid="334df94a-7556-4cbc-8c04-043096b02d82"
16936 wsmap="managed" autogen="VBoxEvent" id="OnBandwidthGroupChanged"
16937 >
16938 <desc>
16939 Notification when one of the bandwidth groups changed
16940 </desc>
16941 <attribute name="bandwidthGroup" type="IBandwidthGroup" readonly="yes">
16942 <desc>
16943 The changed bandwidth group.
16944 </desc>
16945 </attribute>
16946 </interface>
16947
16948 <enum
16949 name="GuestMonitorChangedEventType"
16950 uuid="ef172985-7e36-4297-95be-e46396968d66"
16951 >
16952
16953 <desc>
16954 How the guest monitor has been changed.
16955 </desc>
16956
16957 <const name="Enabled" value="0">
16958 <desc>
16959 The guest monitor has been enabled by the guest.
16960 </desc>
16961 </const>
16962
16963 <const name="Disabled" value="1">
16964 <desc>
16965 The guest monitor has been disabled by the guest.
16966 </desc>
16967 </const>
16968
16969 <const name="NewOrigin" value="2">
16970 <desc>
16971 The guest monitor origin has changed in the guest.
16972 </desc>
16973 </const>
16974 </enum>
16975
16976 <interface
16977 name="IGuestMonitorChangedEvent" extends="IEvent"
16978 uuid="0f7b8a22-c71f-4a36-8e5f-a77d01d76090"
16979 wsmap="managed" autogen="VBoxEvent" id="OnGuestMonitorChanged"
16980 >
16981 <desc>
16982 Notification when the guest enables one of its monitors.
16983 </desc>
16984
16985 <attribute name="changeType" type="GuestMonitorChangedEventType" readonly="yes">
16986 <desc>
16987 What was changed for this guest monitor.
16988 </desc>
16989 </attribute>
16990
16991 <attribute name="screenId" type="unsigned long" readonly="yes">
16992 <desc>
16993 The monitor which was changed.
16994 </desc>
16995 </attribute>
16996
16997 <attribute name="originX" type="unsigned long" readonly="yes">
16998 <desc>
16999 Physical X origin relative to the primary screen.
17000 Valid for Enabled and NewOrigin.
17001 </desc>
17002 </attribute>
17003
17004 <attribute name="originY" type="unsigned long" readonly="yes">
17005 <desc>
17006 Physical Y origin relative to the primary screen.
17007 Valid for Enabled and NewOrigin.
17008 </desc>
17009 </attribute>
17010
17011 <attribute name="width" type="unsigned long" readonly="yes">
17012 <desc>
17013 Width of the screen.
17014 Valid for Enabled.
17015 </desc>
17016 </attribute>
17017
17018 <attribute name="height" type="unsigned long" readonly="yes">
17019 <desc>
17020 Height of the screen.
17021 Valid for Enabled.
17022 </desc>
17023 </attribute>
17024
17025 </interface>
17026
17027 <module name="VBoxSVC" context="LocalServer">
17028 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
17029 namespace="virtualbox.org">
17030 <interface name="IVirtualBox" default="yes"/>
17031 </class>
17032 </module>
17033
17034 <module name="VBoxC" context="InprocServer" threadingModel="Free">
17035 <class name="VirtualBoxClient" uuid="dd3fc71d-26c0-4fe1-bf6f-67f633265bba"
17036 namespace="virtualbox.org">
17037 <interface name="IVirtualBoxClient" default="yes"/>
17038 </class>
17039
17040 <class name="Session" uuid="3C02F46D-C9D2-4F11-A384-53F0CF917214"
17041 namespace="virtualbox.org">
17042 <interface name="ISession" default="yes"/>
17043 </class>
17044 </module>
17045
17046</library>
17047
17048</idl>
17049
17050<!-- 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